Cleanup setup of gl_state in various parts of the code.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d48cd3f4
SM
12010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 Cleanup setup of gl_state in various parts of the code.
4 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7 (skip_chars):
8 * regex.c (regex_compile): Use it.
9 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10 it's now set in regex_compile when/if we need it.
11
618db430
SM
122010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
13
c0335e02
SM
14 Make it possible to C-g in a tight bytecode loop again (bug#5680).
15 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
16 (QUIT): Use it to consolidate code and remove redundancy.
17 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
18
254c06a8
SM
19 * regex.c (regex_compile): Setup gl_state as well.
20
618db430
SM
21 * syntax.c (skip_chars): Setup gl_state (bug#3823).
22 (in_classes): Use CONSP before XCAR/XCDR.
23
233f0c9f
CY
242010-03-03 Chong Yidong <cyd@stupidchicken.com>
25
26 * keymap.c (Fwhere_is_internal): Use Fequal to compare
27 definitions, so that keyboard macros are correctly handled
28 (Bug#5481).
29
75f80e63
EZ
302010-03-02 Eli Zaretskii <eliz@gnu.org>
31
32 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
33 text that could be relocated inside the call to emacs_mule_char.
34 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
35 (CODING_DECODE_CHAR): Add a comment describing its purpose.
36
dcfb9bc4
KH
372010-03-02 Kenichi Handa <handa@m17n.org>
38
fc9a17bc
KH
39 * character.c (parse_str_as_multibyte): Fix handling of the
40 multibyte form of raw-bytes.
41 (str_as_multibyte): Likewise.
42
dcfb9bc4
KH
43 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
44 form of raw-bytes.
45
412c01b6
CY
462010-02-28 Chong Yidong <cyd@stupidchicken.com>
47
48 * charset.c (load_charset_map_from_file)
49 (load_charset_map_from_vector): Zero out allocated
50 charset_map_entries before using them.
51
df7e1ea0
AS
522010-02-27 Andreas Schwab <schwab@linux-m68k.org>
53
54 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
55
fe69a722
CY
562010-02-27 Chong Yidong <cyd@stupidchicken.com>
57
4ed28cf4
CY
58 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
59 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 60
7379cfce
KH
612010-02-26 Kenichi Handa <handa@m17n.org>
62
f88cc4d6
KH
63 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
64
7379cfce
KH
65 * xdisp.c (reseat_to_string): Fix previous change.
66
cf2fdcfb
CY
672010-02-26 David Reitter <david.reitter@gmail.com>
68
69 * nsfont.m (nsfont_draw): ns_antialias_text should be a
70 Lisp_Object (Bug#4736).
71
cc6c7c75
KH
722010-02-25 Kenichi Handa <handa@m17n.org>
73
74 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
75
32e737d7
JD
762010-02-24 Jan Djärv <jan.h.d@swipnet.se>
77
78 * xterm.c (XTflash): Move declarations before statements.
79
80 * gtkutil.c (xg_get_gdk_display): Remove (unused).
81 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
82 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
83 (xg_create_tool_bar): Remove unused variables.
84 (x_wm_set_size_hint): Move declarations before statements.
85 (xg_create_frame_widgets): Remove variable grav,
86
676cae9f
CY
872010-02-21 Chong Yidong <cyd@stupidchicken.com>
88
89 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
90
886cc2b8
SM
912010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * term.c (fatal): Add a final \n if needed (bug#5596).
94
ddb2d8e2
CY
952010-02-18 Chong Yidong <cyd@stupidchicken.com>
96
97 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
98
2a4f8d3d
GM
992010-02-18 Glenn Morris <rgm@gnu.org>
100
101 * callint.c (Finteractive): Doc fix.
102
ebaf11b6
KH
1032010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
104
886cc2b8
SM
105 * coding.c (record_conversion_result):
106 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
107 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
108 memory allocation error.
109
d0396581
KH
1102010-02-17 Kenichi Handa <handa@m17n.org>
111
886cc2b8
SM
112 * coding.c (decode_coding_ccl): Don't setup ccl program here.
113 Fix for the case that the output buffer is fullfilled.
d0396581
KH
114 (decode_coding): Setup ccl program here. Keep looping when the
115 decoder stopped because the output buffer is
116 fullfilled (bug#5534).
117
118 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
119
98599f74
JD
1202010-02-13 Jan Djärv <jan.h.d@swipnet.se>
121
471e4f04 122 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 123 bug #5571.
886cc2b8 124 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 125 overdrawn.
98599f74 126
182659ae
JD
1272010-02-10 Jan Djärv <jan.h.d@swipnet.se>
128
129 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
130 doing_interact here.
131 (ice_connection_closed): New function.
132 (x_session_check_input, smc_die_CB, ice_io_error_handler)
133 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
134 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
135 returns I/O error.
136 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
137 bug #5512.
138
9be32c4e 1392010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
140
141 * nsfont.m (nsfont_open): The system's value for the font descent
142 is negative, so round it down to avoid clipping.
143
a2f3eb19
CY
1442010-02-06 Chong Yidong <cyd@stupidchicken.com>
145
146 * charset.c (load_charset_map_from_file)
147 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 148 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 149
3088147c
CY
1502010-02-05 Chong Yidong <cyd@stupidchicken.com>
151
152 * charset.c (load_charset_map_from_file): Allocate large
153 charset_map_entries structure on the heap rather than the stack.
154 (Bug#5526).
155
b57d9029
KH
1562010-01-31 Kenichi Handa <handa@m17n.org>
157
158 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 159 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 160
c67d885b
CY
1612010-01-31 Chong Yidong <cyd@stupidchicken.com>
162
163 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
164 <deactivated@gmail.com> (Bug#3605).
165
8fab2362
CY
1662010-01-31 David De La Harpe Golden <david@harpegolden.net>
167
168 * fileio.c (Frename_file): Correctly rename symlinks to
169 directories (Bug#5496).
170
cb2a62f2
CY
1712010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
172
173 * nsterm.m (ns_ring_bell): Handle visible bell like X.
174
944c7a26
AS
1752010-01-30 Andreas Schwab <schwab@linux-m68k.org>
176
177 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
178
c024ac08
CY
1792010-01-29 Chong Yidong <cyd@stupidchicken.com>
180
181 * frame.c (DEFAULT_ROWS): Change default to 35.
182
183 * xfns.c (x_default_font_parameter): Change default XFT font to
184 monospace-10 (Bug#3643).
185
af93af83
EZ
1862010-01-29 Eli Zaretskii <eliz@gnu.org>
187
188 * w32inevt.c (key_event): Remove unnecessary comparison of
189 event->uChar.AsciiChar with 128.
190
ca0eb708
CY
1912010-01-28 Chong Yidong <cyd@stupidchicken.com>
192
b242dbfc
CY
193 * fileio.c (Frename_file): Fix last change (Bug#5487).
194
ca0eb708
CY
195 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
196
197 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
198
45d45af5
JD
1992010-01-28 Jan Djärv <jan.h.d@swipnet.se>
200
201 * xfns.c (Fx_create_frame): Remove window size matching code from
202 2010-01-15.
203 (x_get_current_desktop, x_get_desktop_workarea): Remove
204
7e233730
JR
2052010-01-27 Jason Rumney <jasonr@gnu.org>
206
207 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 208 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 209
86e893e3
KH
2102010-01-27 Kenichi Handa <handa@m17n.org>
211
212 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 213 pattern string (Bug#4209).
86e893e3 214
8719abec
CY
2152010-01-27 David De La Harpe Golden <david@harpegolden.net>
216
217 * fileio.c (Frename_file): Call copy-directory and
218 delete-directory for directories, in order to handle cross-device
219 renaming (Bug#3353).
220
844794c8
JD
2212010-01-25 Jan Djärv <jan.h.d@swipnet.se>
222
aa3e13b5 223 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 224 sizes 24 and 10. Bug #3643.
844794c8 225
bd4b5750
SM
2262010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
227
8dc1adf6 228 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
229 * keymap.c (shadow_lookup): Add `remap' arg.
230 (describe_map, describe_vector): Update calls to shadow_lookup.
231 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
232 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
233 perform remapping during shadow_lookup check of remapped_sequences.
234
285d07e2
CY
2352010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
236
237 * image.c (png_load): Use png_sig_cmp instead of the obsolete
238 png_check_sig, which has been removed in libpng 1.4.
239
c6d09b8d
CY
2402010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
241
242 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
243 lacks this header file).
244
3d782998
YM
2452010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
246
247 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
248 as in Emacs 22.
249
2aff7c53
YM
2502010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
251
252 * lisp.h (make_pure_string): String pointer arg now points to const.
253
254 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
255 args now point to const.
256
74327f7a
EZ
2572010-01-22 Eli Zaretskii <eliz@gnu.org>
258
259 * lread.c (Fload): Don't treat files without .elc extension as
260 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
261 them. (bug#5303)
262
4d1e6632
KH
2632010-01-20 Kenichi Handa <handa@m17n.org>
264
265 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
266 treat the source as actual byte sequence.
267
1fdede8f
AM
2682010-01-19 Alan Mackenzie <acm@muc.de>
269
270 Fix spurious before-change-functions invocation from (insert ?\n).
271 * textprop.c (set_text_properties): rename parameter
272 `signal_after_change_p' to `coherent_change_p', and make the
273 invocation of `modify_region' conditional on it.
274
67477f30
JD
2752010-01-19 Jan Djärv <jan.h.d@swipnet.se>
276
277 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
278 for debug purpose.
279 (syms_of_xsettings): Declare xft-settings.
280
244b023e
CY
2812010-01-18 Chong Yidong <cyd@stupidchicken.com>
282
283 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
284
617364fe
CY
2852010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
286
287 * xterm.c (event_handler_gdk): Block input (Bug#5037).
288
4fe22cdf
CY
2892010-01-16 Chong Yidong <cyd@stupidchicken.com>
290
291 * emacs.c (standard_args): Adjust arg priorities to reflect how
292 they are processed in startup.el.
293
e118d2be
AS
2942010-01-16 Andreas Schwab <schwab@linux-m68k.org>
295
296 * Makefile.in (lisp, shortlisp): Update.
297
523ae620
SM
2982010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
299
300 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
301 code, link the new kboard into all_kboard before running Lisp code,
302 and protect the new terminal with GCPRO (Bug#5365).
303 (x_term_init): Remove unused var `atom'.
304 (x_delete_display, x_delete_terminal): Remove unused var `i'.
305
f0d13888
JD
3062010-01-15 Jan Djärv <jan.h.d@swipnet.se>
307
308 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
309 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
310 to find out usable size of the desktop. Don't make frames larger than
ac146f82 311 this. Bug #3643.
f0d13888 312
cc320f07
KH
3132010-01-15 Kenichi Handa <handa@m17n.org>
314
315 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
316
7ffdf101
CY
3172010-01-15 Chong Yidong <cyd@stupidchicken.com>
318
319 * nsterm.m (Qnone): Define.
320
321 * nsfns.m (Qnone): Move definition to nsterm.m.
322
d12bd917
KH
3232010-01-14 Kenichi Handa <handa@m17n.org>
324
325 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
326 systems.
327
d9a7c140
KH
3282010-01-14 Kenichi Handa <handa@m17n.org>
329
330 Make auto-composition work on all buffers even if they are
331 fundamental mode.
332
333 * composite.c (Vauto_composition_mode): New variable.
334 (composition_compute_stop_pos): Check Vauto_composition_mode
335 instead of Vauto_composition_function.
336 (composition_adjust_point, Ffind_composition_internal): Likewise.
337 (syms_of_composite): Declare Lisp variable
338 "auto-composition-mode" here.
339
63286bb2
CY
3402010-01-13 Chong Yidong <cyd@stupidchicken.com>
341
342 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
343 during call to vendor-specific-keysyms (Bug#5365).
344
c2623ee7
YM
3452010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
346
347 * keyboard.c (input_available_signal) [SYNC_INPUT]:
348 Call SIGNAL_THREAD_CHECK (Bug#5333).
349
350 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
351 Call SIGNAL_THREAD_CHECK.
352
0b5397c2
SM
3532010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
354
355 Try to fix bug#5314. This is probably not the final word, tho.
356 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
357 recent-auto-save-p as a side-effect.
358 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
359 * buffer.c (Fkill_buffer, reset_buffer):
360 * editfns.c (Fsubst_char_in_region):
361 * fileio.c (Finsert_file_contents, Fdo_auto_save)
362 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
363
dc954cb2
KH
3642010-01-13 Kenichi Handa <handa@m17n.org>
365
366 Display buffer name, etc. in mode line by composing correctly.
367
368 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
369 STRING is not nil.
0b5397c2 370 (display_mode_element): Adjust for the change of
dc954cb2
KH
371 decode_mode_spec and display_line.
372 (decode_mode_spec): Change arg MULTIBYTE to STRING.
373 (display_string): Handle the case that STRING is non-null and
374 LISP_STRING is not nil.
375
0b5397c2
SM
376 * xterm.c (x_draw_composite_glyph_string_foreground):
377 Pay attention to s->face->overstrike.
dc954cb2
KH
378
379 * composite.c (composition_reseat_it): Don't check PT if STRING is
380 non nil.
381
4a00eaca
YM
3822010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
383
384 * keyboard.c (read_char): Don't apply previous change when current
385 buffer is unchanged by command execution.
386
60abb287
JD
3872010-01-12 Jan Djärv <jan.h.d@swipnet.se>
388
389 * keyboard.c (read_char): Return after executing from special map.
390
893db5bc
GM
3912010-01-12 Glenn Morris <rgm@gnu.org>
392
393 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
394 bug-gnu-emacs rather than emacs-pretest-bug.
395
4d03ece0
CY
3962010-01-11 Chong Yidong <cyd@stupidchicken.com>
397
398 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
399 initializing the Lisp variables that depend on them.
400
1df47e38
YM
4012010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
402
403 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
404 Clear areas that will not be updated after change of menu bar lines.
405 Clear the menu bar window's current matrix when the window gets empty.
406
2f1c6384
CY
4072010-01-09 Chong Yidong <cyd@stupidchicken.com>
408
e398c61c
CY
409 * intervals.h, textprop.c (extend_property_ranges): Return value
410 and args changed. Discard properties that begin at or after the
411 new end (Bug#5306).
412
413 * editfns.c (Fformat): Caller changed.
414
e5a29a10
CY
415 * nsterm.m (ns_set_default_prefs): Delete function.
416 (syms_of_nsterm): Initialize ns_command_modifier,
417 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
418 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
419
2f1c6384
CY
420 * xdisp.c (pos_visible_p): Check for invisible text at the correct
421 position (Bug#4040).
422
d427a9fa
EZ
4232010-01-09 Eli Zaretskii <eliz@gnu.org>
424
425 * editfns.c (Ffloat_time): Doc fix.
426
21b9df2f
JD
4272010-01-09 Jan Djärv <jan.h.d@swipnet.se>
428
429 * xfns.c (Fx_create_frame): Don't create frame larger than display
430 by default bug#3643.
431
4b00d3b1
YM
4322010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
433
434 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
435 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
436 windows above internal border.
437
438 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
439 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
440 windows above internal border.
441
442 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
443 tool bar windows specially.
444
445 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
446
447 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
448 specially.
449 (XTflash): Take account of menu bar height.
450
451 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
452 specially.
453
5075d853
JD
4542010-01-08 Jan Djärv <jan.h.d@swipnet.se>
455
ac146f82 456 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
457 also be true before we can return early (bug #5339).
458
474217c8
CY
4592010-01-06 David Reitter <david.reitter@gmail.com>
460
461 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
462 (Fns_display_usable_bounds): Rewrite, computing bounds properly
463 (Bug#3233).
464
c0e6d47d
JD
4652010-01-06 Jan Djärv <jan.h.d@swipnet.se>
466
d0cf45b7
JD
467 * font.c (font_open_entity): Enable chache and call cached_font_ok
468 for the driver if defined.
469 (QCuser_spec): New symbol.
470 (font_spec_from_name): Save name as user-spec.
471 (font_load_for_lface): Keep user-spec instead of name.
472 (font_open_by_name): Save name as user-spec.
473 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 474 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
475
476 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
477 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
478 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
479
480 * font.h (struct font_driver): Add cached_font_ok.
481
c0e6d47d
JD
482 * xterm.c (x_clear_frame): Queue draw for scroll bars.
483
7c583cd8
JD
4842010-01-05 Jan Djärv <jan.h.d@swipnet.se>
485
486 * xterm.c (x_new_font): Move code for setting rows/cols before
487 resizing ...
ac146f82 488 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
489
490 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
491 (xg_frame_resized, xg_frame_set_char_size):
492 Call xg_clear_under_internal_border.
7c583cd8 493 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 494
03f77f0a
CY
4952010-01-05 Chong Yidong <cyd@stupidchicken.com>
496
497 * keyboard.c (read_key_sequence): Catch keyboard switch after
498 making a new tty frame (Bug#5095).
499
2a1ef5be
KH
5002010-01-05 Kenichi Handa <handa@m17n.org>
501
502 * fontset.c (fontset_find_font): Fix getting the frame pointer.
503
e3eb1dae
SM
5042010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
505
506 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
507 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
508 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
509
777013f2
MA
5102010-01-03 Michael Albinus <michael.albinus@gmx.de>
511
512 * dbusbind.c (xd_add_watch): Improve debug message.
513 (xd_remove_watch): Improve debug message. If DATA is the session
514 bus, unset D-Bus session environment.
515 (Fdbus_init_bus): Pass the bus as argument to
516 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 517
8932b1c2
CY
5182010-01-01 Chong Yidong <cyd@stupidchicken.com>
519
87231e2c
CY
520 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
521
4801c5fa
CY
522 * lread.c (syms_of_lread): Make it clearer that these are the
523 names of loaded files (Bug#5068).
524
8932b1c2
CY
525 * eval.c (run_hook_with_args): Handle the case where the global
526 value has the obsolete single-function form (Bug#5026).
527
11e3c684
CY
5282009-12-27 Chong Yidong <cyd@stupidchicken.com>
529
530 * minibuf.c (Fall_completions): Minor optimization.
531
5b28ce35
EZ
5322009-12-26 Eli Zaretskii <eliz@gnu.org>
533
5ce6e4f4
JB
534 * .gdbinit (pgx): Fix display of composite glyphs.
535 Display cmp.from and cmp.to as well.
536 (pitx): Fix last change.
5b28ce35 537
bcffff46
KH
5382009-12-25 Kenichi Handa <handa@m17n.org>
539
540 * composite.h (composition_adjust_point): Update prototype.
541
542 * composite.c (composition_reseat_it): Don't make a composition
543 spanning over point.
544 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
545 composable characters.
546 (composition_adjust_point): New arg NEW_PT. Callers changed.
547
548 * keyboard.c (command_loop_1): Force redisplay if the last point
549 was within a composition.
550 (adjust_point_for_property): Don't adjust point for automatic
551 composition when called after buffer modification.
552
3f670e9a
EZ
5532009-12-19 Eli Zaretskii <eliz@gnu.org>
554
5ce6e4f4
JB
555 * .gdbinit (pitx): Don't use enum names, use their values.
556 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
557 (pgx): Don't use enum names, use their values.
558 (pitmethod): New helper command.
559 (pitx): Use it to display iteration method.
560 (pgrowit): New command.
561
ad903955
EZ
562 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
563
3f670e9a
EZ
564 Update dependencies in Makefile.in.
565
566 * Makefile.in (alloc.o): Depend on termhooks.h.
567 (atimer.o): Depend on blockinput.h.
568 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
569 and frame.h.
570 (callint.o): Depend on systime.h, coding.h, and composite.h.
571 (callproc.o): Depend on buffer.h.
572 (casefiddle.o): Don't depend on charset.h.
573 (casetab.o): Depend on character.h.
574 (ccl.o): Depend on composite.h.
575 (chartab.o): Depend on ccl.h.
576 (cm.o): Depend on dispextern.h.
577 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
578 (coding.o): Don't depend on $(INTERVALS_H).
579 (composite.o): Don't depend on dispextern.h explicitly (it's in
580 $(INTERVALS_H)). Depend on ccl.h.
581 (data.o): Depend on systime.h, coding.h, composite.h,
582 dispextern.h, font.h, and ccl.h.
583 (dired.o): Depend on composite.h.
584 (dispnew.o): Depend on coding.h. Don't depend explicitly on
585 composite.h (it's in $(INTERVALS_H)).
586 (doc.o): Depend on systime.h, coding.h, and composite.h.
587 (editfns.o): Don't depend explicitly on dispextern.h.
588 (emacs.o): Depend on frame.h and coding.h.
589 (eval.o): Depend on coding.h, composite.h, and xterm.h.
590 (fileio.o): Depend on frame.h and commands.h. Don't depend
591 explicitly on dispextern.h.
592 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
593 composite.h.
594 (fns.o): Don't depend on termhooks.h.
595 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
596 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
597 coding.h, $(INTERVALS_H), window.h, xterm.h.
598 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
599 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
600 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
601 fontset.h, ccl.h, and ftfont.h.
602 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
603 (gtkutil.o): Depend on dispextern.h and composite.h.
604 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
605 termhooks.h, and ccl.h.
606 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
607 (intervals.o): Depend on systime.h and coding.h.
608 (keyboard.o): Depend on composite.h and coding.h.
609 (keymap.o): Depend on coding.h and frame.h.
610 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
611 (macros.o): Depend on systime.h, coding.h, and composite.h.
612 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
613 and atimer.h.
614 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
615 dispextern.h explicitly.
0b5397c2
SM
616 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
617 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
618 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
619 (regex.o): Don't depend on charset.h.
620 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
621 (search.o): Don't depend explicitly on composite.h.
622 (sound.o): Depend on atimer.h and systime.h.
623 (syntax.o): Don't depend explicitly on composite.h.
624 (sysdep.o): Depend on coding.h and composite.h.
625 (term.o): Depend on xterm.h and buffer.h.
626 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
627 (textprop.o): Don't depend on dispextern.h explicitly.
628 (undo.o): Depend on dispextern.h.
629 (window.o): Depend on coding.h and termhooks.h. Don't depend on
630 dispextern.h and composite.h explicitly.
631 (xdisp.o): Depend on ccl.h.
632 (xfaces.o): Depend on coding.h and ccl.h.
633 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
634 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
635 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
636 ftfont.h.
637 (xgselect.o): New dependency.
638 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
639 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
640 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
641 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
642 (xsmfns.o): Depend on frame.h and dispextern.h.
643 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
644 sysselect.h.
645
7a6f7fea
AS
6462009-12-19 Andreas Schwab <schwab@linux-m68k.org>
647
648 * font.c (Fclear_font_cache): Pass correct cache argument to
649 font_clear_cache.
650
f4c21026
AS
6512009-12-16 Andreas Schwab <schwab@linux-m68k.org>
652
653 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
654 twice.
655
f7ab0997
CY
6562009-12-15 Chong Yidong <cyd@stupidchicken.com>
657
658 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
659 calling file-remote-p. Reported by Jim Meyering.
660
fa8e045a
MA
6612009-12-15 Michael Albinus <michael.albinus@gmx.de>
662
663 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 664 avoid compiler warnings. (Bug #5217)
fa8e045a 665
a63dba42
KH
6662009-12-14 Kenichi Handa <handa@m17n.org>
667
668 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
669 in 8-bit encoding.
670
5ce6e4f4 6712009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
672
673 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
674 tooltip windows.
675
223e5fc6
JD
6762009-12-13 Jan Djärv <jan.h.d@swipnet.se>
677
36acb2a7
JD
678 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
679 Xatom_net_window_type.
680
681 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
682 Xatom_net_window_type.
683
b8f00677
JD
684 * xterm.c (my_log_handler): New function.
685 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 686 so we can filter out buggy messages. (Bug #5120).
b8f00677 687
e5f0bc9a
JD
688 * xterm.c (xg_scroll_callback): Parameter list changed,
689 use parameter GtkScrollType to determine scroll/line/page.
690 Only allow dragging if a button < 4 is grabbed (bug #5177).
691 (xg_end_scroll_callback): New function.
692 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
693 xg_create_scroll_bar.
694
695 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
696 (scroll_end_callback): Remove.
697 (xg_create_scroll_bar): Add parameter end_callback, bind it to
698 button-release-event. Replace value-changed event with change-value,
699 bug #5177,
700 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
701 bug #5177.
702
703 * gtkutil.h (XG_LAST_SB_DATA): Remove.
704 (xg_create_scroll_bar): Add GCallback end_callback.
705
223e5fc6
JD
706 * xftfont.c (QClcdfilter): New variable.
707 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
708 (syms_of_xftfont): Initialize QClcdfilter.
709
3c055b77
JD
7102009-12-12 Jan Djärv <jan.h.d@swipnet.se>
711
712 * xsettings.c (struct xsettings): Add member seen.
713 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 714 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
715 (apply_xft_settings): Only update Xft settings with what member seen
716 indicates as new.
717
05fe33ff
EZ
7182009-12-12 Eli Zaretskii <eliz@gnu.org>
719
720 * dispextern.h (struct text_pos): Use EMACS_INT;
721 (struct glyph): Use EMACS_INT for charpos.
722 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
723 region_beg_charpos, region_end_charpos,
724 redisplay_end_trigger_charpos, and also for
725 iterator_stack_entry.end_charpos and
726 iterator_stack_entry.stop_charpos.
727
e8d7886a
JD
7282009-12-12 Jan Djärv <jan.h.d@swipnet.se>
729
5ce6e4f4 730 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
731 (xg_create_scroll_bar): Call scroll_end_callback on button release
732 event (bug #5177).
733 (xg_event_is_for_scrollbar): != replaced with ==.
734
d0db2ec8
KH
7352009-12-12 Kenichi Handa <handa@m17n.org>
736
737 * ftfont.c (struct ftfont_info): New member matrix.
738 (ftfont_open): Setup xftfont_info->matrix.
739 (MFLTFontFT): New member matrix.
740 (FLOOR, CEIL, ROUND): New macros.
741 (ftfont_get_metrics): Handle matrix transformation.
742 (ftfont_shape_by_flt): New arg matrix. Callers changed.
743
744 * xftfont.c (struct xftfont_info): New member matrix.
745 (xftfont_open): Setup xftfont_info->matrix.
746
7472009-12-10 Kenichi Handa <handa@m17n.org>
748
749 * xdisp.c (append_space_for_newline): Consider face-remapping.
750
2cc7b62f
AS
7512009-12-09 Andreas Schwab <schwab@linux-m68k.org>
752
b87dd913
AS
753 * xsettings.c: Include "keyboard.h".
754
eba5eb94
AS
755 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
756
2cc7b62f
AS
757 Fix implicit function declarations.
758 * cmds.c: Include "frame.h".
759 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
760 * frame.h: Move declaration of delete_frame outside of
761 HAVE_WINDOW_SYSTEM.
762
a4ef73c8
CY
7632009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
764
765 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
766
767 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
768 GTK builds.
769
944a300c
AS
7702009-12-07 Andreas Schwab <schwab@linux-m68k.org>
771
772 * unexelf.c (unexec): Don't search for .data twice.
773
022eef62
CY
7742009-12-05 Chong Yidong <cyd@stupidchicken.com>
775
426ac949
CY
776 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
777 if push failed.
778 (handle_line_prefix): Set avoid_cursor_p here. Check return value
779 of push_display_prop (Bug#5000).
780
022eef62
CY
781 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
782 value of font_list_entities (Bug#5085).
783
be95bee9
JB
7842009-12-04 Juanma Barranquero <lekktu@gmail.com>
785
786 Fix `string-to-number' to deal consistently with integers and floats.
787 * lread.c (isfloat_string): New argument ignore_trailing to accept all
788 trailing characters, not just whitespace.
789 (read1): Pass new arg 0 to keep old behavior.
790 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
791 trailing chars, as it is already done for integers. Doc fixes.
792 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
793
24c2d7ce
EZ
7942009-12-04 Eli Zaretskii <eliz@gnu.org>
795
0b5397c2
SM
796 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
797 Delete unused enumeration value.
24c2d7ce 798
7e694795
EZ
7992009-12-03 Eli Zaretskii <eliz@gnu.org>
800
801 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
802
84b31826
SM
8032009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
804
805 * process.c (Fmake_network_process): Fix up the tests for
806 "connectionless socket", so they DTRT for seqpacket sockets as well.
807
f00c449b
SM
8082009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
809
810 * process.c (Qseqpacket): New symbol.
811 (HAVE_SEQPACKET): New macro.
812 (Fmake_network_process): Accept new :type `seqpacket'.
813 (init_process): Add `seqpacket' feature when applicable.
814 (syms_of_process): Initialize Qseqpacket.
815
8096a0ff
YM
8162009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
817
818 * font.c (font_load_for_lface, font_open_by_name): Don't store name
819 if entity is Qnil.
820
3e0de07f
SM
8212009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
822
823 * print.c (print_preprocess): Preprocess the key_and_value table of
824 hashtables, even tho they're "hidden" (bug#5082).
825
abeafb2a
JD
8262009-11-29 Jan Djärv <jan.h.d@swipnet.se>
827
828 * frame.c (frame_make_pointer_invisible)
829 (frame_make_pointer_visible): Declare f before statements.
830
4bf47195
EZ
8312009-11-28 Eli Zaretskii <eliz@gnu.org>
832
833 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
834 omitted dependencies on lisp.h.
835
c525b3f2
JD
8362009-11-27 Jan Djärv <jan.h.d@swipnet.se>
837
ece2d4ed
JD
838 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
839 is NULL.
840
841 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
842
843 * frame.c (frame_make_pointer_invisible)
3e0de07f 844 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
845 frame.
846
c525b3f2
JD
847 * search.c (simple_search): Remove warning by making *p const.
848
2f00e299
DN
8492009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
850
851 * xdisp.c (power_letter): Remove duplicate const.
852
084b049b
JD
8532009-11-25 Jan Djärv <jan.h.d@swipnet.se>
854
a1fadc6f
JD
855 * term.c (delete_tty): Remove check for last terminal (bug#4970).
856
5ce6e4f4 857 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
858 defaults (bug #5025).
859
28259cac
SM
8602009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
861
862 * insdel.c (adjust_markers_for_delete): Move it in the
863 right direction! (bug#4803)
864
e8e14166
YM
8652009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
866
867 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
868
869 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
870
86677b58
GM
8712009-11-24 Glenn Morris <rgm@gnu.org>
872
873 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
874
581e51e8
JD
8752009-11-23 Jan Djärv <jan.h.d@swipnet.se>
876
cfc86c7a
JD
877 * Makefile.in: Must create deps for ecrt0.o in its rule.
878
581e51e8
JD
879 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
880 because that is what Gtk+ font dialog understands.
881
882 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
883 of Fcopy_sequence.
884 (font_open_by_name): Put name given into QCname for font-object returned.
885
886 * frame.c (x_set_font): Save original font name as frame parameter
887 font-parameter.
888
889 * xsettings.c (set_default_xft_settings): New function.
890 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
891 is found.
892
8b264ecb
AS
8932009-11-22 Andreas Schwab <schwab@linux-m68k.org>
894
895 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
896 searching backwards through multibyte buffer.
897
872870b2
JD
8982009-11-21 Jan Djärv <jan.h.d@swipnet.se>
899
900 * xterm.c: #include xgselect.h.
901 (x_initialize): Call xgselect_initialize.
902
903 * xsettings.c (something_changedCB): C++ comments => C comments.
904 (init_gconf): Do not deal with any GLib file descriptors, xg_select
905 does that now.
906
907 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
908 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
909 (scroll_bar_button_cb): Remove.
5ce6e4f4 910 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
911 event.
912 (xg_create_scroll_bar): Don't bind button-press-event and
913 button-release-event.
914
915 * process.c: Include xgselect.h if defined (USE_GTK) ||
916 defined (HAVE_GCONF).
917 (wait_reading_process_output): Call xg_select for the same condition.
918
919 * xgselect.c (xg_select): New function to better integrate with
920 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
921
922 * xgselect.h: New file, declare xg_select, xgselect_initialize.
923
924 * Makefile.in (XOBJ): Add xgselect.o.
925
62a6e103
AS
9262009-11-21 Andreas Schwab <schwab@linux-m68k.org>
927
0b5397c2
SM
928 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
929 Remove ignored second argument. All callers changed.
62a6e103
AS
930 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
931 (RE_STRING_CHAR_AND_LENGTH): Likewise.
932 * xdisp.c (string_char_and_length): Likewise.
933
b0ca0f33
DN
9342009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
935
936 * xterm.c (x_new_font):
937 * print.c (print_object):
938 * cmds.c (Fself_insert_command): Move declarations before statements.
939
dd5a6279
CY
9402009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
941
942 * s/cygwin.h: Remove unneeded linker flags.
943
4a8e097d
JD
9442009-11-20 Jan Djärv <jan.h.d@swipnet.se>
945
0d1d0d26
JD
946 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
947
948 * xsettings.h: Declare xsettings_get_system_font.
949
950 * xsettings.c (xsettings_get_system_font): New function.
951 (init_gconf): No use initiating gconf unless we have Xft also.
952 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
953 HAVE_GCONF.
954
4a8e097d
JD
955 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
956 add a blank entry so it doesn't collapse into nothing.
957
8ab1650e
SM
9582009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
959
960 * lread.c (Funintern): Comment out last change.
961
82c602f0
RS
9622009-11-19 Richard Stallman <rms@gnu.org>
963
964 * lread.c (Funintern): Error if symbol is t or nil.
965
87e32266
SM
9662009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
967
968 * insdel.c (make_gap_larger): Don't make as many assumptions about the
969 representation of Lisp integers.
970 Reported by MJ Chan <mjchan.inbox@gmail.com>.
971
1b9ac145
AS
9722009-11-17 Andreas Schwab <schwab@linux-m68k.org>
973
974 * lisp.h: Remove declaration of Ffont_get_system_font.
975 * xfns.c: Move include of "xsettings.h".
976 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
977
dfb3c4c6
JD
9782009-11-17 Jan Djärv <jan.h.d@swipnet.se>
979
87e32266
SM
980 * xsettings.c (something_changedCB, Ffont_get_system_font):
981 Check use_system_font.
dfb3c4c6
JD
982 (syms_of_xsettings): DEFVAR font-use-system-font.
983
9370c1d8
AS
9842009-11-17 Andreas Schwab <schwab@linux-m68k.org>
985
25fe851a
AS
986 * xfns.c (x_default_font_parameter): Remove dead assignment.
987
9370c1d8
AS
988 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
989
637fa988
JD
9902009-11-17 Jan Djärv <jan.h.d@swipnet.se>
991
87e32266 992 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 993 not have FC_LCD_*. #define them if not there.
a6eb20d8 994
87e32266 995 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 996
637fa988
JD
997 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
998
999 * xterm.c (handle_one_xevent): Call xft_settings_event for
1000 ClientMessage, PropertyNotify and DestroyNotify.
1001 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1002 Call xsettings_initialize.
1003
1004 * xftfont.c (xftfont_fix_match): New function.
1005 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1006 Call xftfont_fix_match after XftFontMatch.
1007
1008 * xfont.c (xfont_driver): Initialize all members.
1009
87e32266
SM
1010 * xfns.c (x_default_font_parameter):
1011 Try font from Ffont_get_system_font.
637fa988
JD
1012 Do not get font from x_default_parameter if we got one from
1013 Ffont_get_system_font.
87e32266 1014 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1015
1016 * w32font.c (w32font_driver): Initialize all members.
1017
1018 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1019
1020 * lisp.h: Declare syms_of_xsettings.
1021
87e32266
SM
1022 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1023 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1024
1025 * ftfont.c (ftfont_filter_properties): New function.
1026
1027 * frame.c (x_set_font): Remove unused variable lval.
1028
87e32266 1029 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1030
1031 * font.c (font_put_extra): Don't return if val is nil, it means
1032 boolean option is off.
1033 (font_parse_fcname): Collect all extra properties in extra_props
1034 and call filter_properties for all drivers with extra_props and
1035 font as parameter.
87e32266
SM
1036 (font_open_entity): Do not use cache, it does not pick up new
1037 fontconfig settings like hinting.
637fa988
JD
1038 (font_load_for_lface): If spec had a name in it, store it in entity.
1039
1040 * emacs.c (main): Call syms_of_xsettings
1041
1042 * config.in: HAVE_GCONF is new.
1043
1044 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1045 xsettings.o is new.
1046
5a942932
KH
10472009-11-17 Kenichi Handa <handa@m17n.org>
1048
1049 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1050 back to the default font in case that no suitable font is found.
1051
b7c7a4d1
SM
10522009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1053
1054 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1055 Suggested by Chad Brown <yandros@mit.edu>.
1056 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1057
072f1e39
JD
10582009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1059
1060 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1061
5d1e70a2
AS
10622009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1063
87e32266 1064 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1065
a53cfbe5
JD
10662009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1067
473a99b7
JD
1068 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1069 has a parent.
1070
a53cfbe5 1071 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1072 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1073
1074 * config.in: Generated (AUTO_DEPEND).
1075
f04bb9b2
MA
10762009-11-13 Michael Albinus <michael.albinus@gmx.de>
1077
b7c7a4d1 1078 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1079 Vdbus_registered_functions_table, because it contains also
1080 properties. Fix docstring.
b7c7a4d1 1081 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1082
8f11f7ec
SM
10832009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1084
1085 * alloc.c (mark_object): Don't reprocess marked strings.
1086 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1087 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1088
8a605fe8
KH
10892009-11-13 Kenichi Handa <handa@m17n.org>
1090
8f11f7ec 1091 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1092 semantics of Vword_combining_categories.
1093 (Vword_combining_categories): Describe the slight change of the
1094 semantics.
1095
241c4680
EZ
10962009-11-13 Eli Zaretskii <eliz@gnu.org>
1097
1098 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1099
1100 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1101
5d58e44c
SM
11022009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1103
1104 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1105
5e13f9d3
JB
11062009-11-12 Juanma Barranquero <lekktu@gmail.com>
1107
1108 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1109
cf54c754
DR
11102009-11-11 David Reitter <david.reitter@gmail.com>
1111
1112 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1113 variables to fix 2009-11-09 change.
1114
a4ada374
DN
11152009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1116
91433552
DN
1117 * process.c (ifflag_def): Make flag_sym constant.
1118 (Fnetwork_interface_info): Use a constant pointer.
1119 (ifflag_table):
1120 * xfns.c (cursor_bits):
1121 * xdisp.c (power_letter):
1122 * termcap.c (speeds, esctab):
1123 * sysdep.c (baud_convert):
1124 * keyboard.c (lispy_accent_codes, modifier_names):
1125 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1126 (jpeg_format, tiff_format, gif_format, svg_format)
1127 (interlace_start, interlace_increment, gs_format):
1128 * gtkutil.c (separator_names):
1129 * fringe.c (swap_nibble):
1130 * fns.c (base64_value_to_char, base64_char_to_value):
1131 * fileio.c (make_temp_name_tbl):
1132 * coding.c (suffixes): Make constant.
1133
f4265f6c
DN
1134 * frame.c (make_initial_frame):
1135 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1136 build_string.
1137 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1138
04420943
DN
1139 * s/freebsd.h:
1140 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1141
0a5d24ae
DN
1142 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1143 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1144
a4ada374
DN
1145 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1146 * xterm.c (syms_of_xterm):
1147 * xfaces.c (syms_of_xfaces):
1148 * xdisp.c (syms_of_xdisp):
1149 * lread.c (syms_of_lread):
1150 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1151 build_string.
91433552 1152
a4ada374
DN
1153 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1154
af98fc7f
SM
11552009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1156
8ab1650e 1157 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1158
e90292a9
JD
11592009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1160
1161 * keyboard.h: Declare timer_check.
1162
1163 * keyboard.c (timer_check_2): New function that does what the old
1164 timer_check did.
1165 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1166 returned, i.e. don't return -1 with timers pending.
1167
1168 * process.c: Remove extern declaration of timer_check.
1169
1170 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1171 even if timer_check returned -1.
1172
af98fc7f
SM
1173 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1174 xg_dialog_data.
e90292a9
JD
1175 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1176 the event loop.
1177 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1178 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1179 Destroy the dialog after xg_dialog_run.
1180
045b83c0
SM
11812009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1182
1183 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1184
1fb99a3a
JD
11852009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1186
1187 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1188
04e452cb
JB
11892009-11-09 Juanma Barranquero <lekktu@gmail.com>
1190
1191 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1192
ef7417fd
SM
11932009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1194
1195 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1196 w32menu.c, and nsmenu.m.
1197 Simplify the obsolete case where position is nil.
1198 (cleanup_popup_menu): New function, moved from nsmenu.m.
1199 (struct skp): Remove slot `notreal'.
1200 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1201 adjust callers.
1202 (single_menu_item): Adjust call to parse_menu_item.
1203 (syms_of_menu): Defsubr x-popup-menu.
1204 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1205 (keymap_panes): Don't export any more.
1206 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1207 (xmenu_show): Declare.
1208 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1209 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1210 * keyboard.h (parse_menu_item): Update declaration.
1211 * xmenu.c (Fx_popup_menu): Remove.
1212 (syms_of_xmenu): Don't defsubr x-popup-menu.
1213 * w32menu.c (Fx_popup_menu): Remove.
1214 (syms_of_w32menu): Don't defsubr x-popup-menu.
1215 * nsmenu.m (cleanup_popup_menu): Remove.
1216 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1217 moved to menu.c's Fx_popup_menu.
1218 (Fx_popup_menu): Remove.
1219 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1220 menu_items (it's done in menu.c already).
1221
424d6179
SM
12222009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1223
1224 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1225 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1226
c0df13a6 12272009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1228
1229 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1230 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1231 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1232 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1233
2de9f71c
SM
12342009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1235
1236 Let integers use up 2 tags to give them one extra bit and thus double
1237 their range.
1238 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1239 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1240 New macros.
1241 (enum Lisp_Type): Use them. Give explicit values.
1242 (Lisp_Type_Limit): Remove.
1243 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1244 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1245 Pay attention to USE_2_TAGS_FOR_INTS.
1246 (INTEGERP): Use LISP_INT_TAG_P.
1247 * fns.c (internal_equal): Simplify the default case.
1248 (sxhash): Use case_Lisp_Int.
1249 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1250 any more.
1251 (Ftype_of): Use case_Lisp_Int.
1252 (store_symval_forwarding): Take into account the fact that Ints can
1253 now have more than one tag.
1254 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1255 buffer_slot_type_mismatch):
1256 * xfaces.c (face_attr_equal_p):
1257 * print.c (print_object):
1258 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1259 Use case_Lisp_Int.
1260
323637a2
EZ
12612009-11-06 Eli Zaretskii <eliz@gnu.org>
1262
7ac65b38
EZ
1263 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1264
323637a2
EZ
1265 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1266 warning.
1267
e511451f
JD
12682009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1269
1270 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1271
1272 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1273
1274 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1275 ButtonPressRelease and MotionNotify (bug#4870).
1276
5e2327cf
DN
12772009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1278
5adc433e
DN
1279 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1280
d67b4f80
DN
1281 * xterm.c (syms_of_xterm):
1282 * xselect.c (syms_of_xselect):
1283 * xmenu.c (syms_of_xmenu):
1284 * xfns.c (syms_of_xfns):
1285 * xfaces.c (syms_of_xfaces):
1286 * xdisp.c (syms_of_xdisp):
1287 * window.c (syms_of_window):
1288 * w32fns.c (syms_of_w32fns):
1289 * undo.c (syms_of_undo):
1290 * textprop.c (syms_of_textprop):
1291 * terminal.c (syms_of_terminal):
1292 * syntax.c (syms_of_syntax):
1293 * sound.c (syms_of_sound):
1294 * search.c (syms_of_search):
1295 * print.c (syms_of_print):
1296 * minibuf.c (syms_of_minibuf):
1297 * macros.c (syms_of_macros):
1298 * keymap.c (syms_of_keymap, initial_define_key)
1299 (initial_define_lispy_key):
1300 * keyboard.c (syms_of_keyboard):
1301 * insdel.c (syms_of_insdel):
1302 * image.c (syms_of_image):
1303 * fringe.c (syms_of_fringe):
1304 * frame.c (syms_of_frame):
1305 * fontset.c (syms_of_fontset):
1306 * fns.c (syms_of_fns):
1307 * fns.c (syms_of_fns):
1308 * fileio.c (syms_of_fileio):
1309 * fileio.c (syms_of_fileio):
1310 * eval.c (syms_of_eval):
1311 * doc.c (syms_of_doc):
1312 * dispnew.c (syms_of_display):
1313 * dired.c (syms_of_dired):
1314 * dbusbind.c (syms_of_dbusbind):
1315 * data.c (syms_of_data):
1316 * composite.c (syms_of_composite):
1317 * coding.c (syms_of_coding):
1318 * cmds.c (syms_of_cmds):
1319 * charset.c (define_charset_internal, syms_of_character):
1320 * ccl.c (syms_of_ccl):
1321 * category.c (syms_of_category, init_category_once):
1322 * casetab.c (syms_of_casetab):
1323 * casefiddle.c (syms_of_casefiddle):
1324 * callint.c (syms_of_callint):
1325 * bytecode.c (syms_of_bytecode):
1326 * buffer.c (keys_of_buffer, syms_of_buffer):
1327 * alloc.c (syms_of_alloc):
1328 * process.c (syms_of_process, init_process):
1329 * lread.c (syms_of_lread, init_obarray):
1330 * font.c (build_style_table):
1331 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1332 intern_c_string, calls to make_pure_string with
1333 make_pure_c_string. Use pure_cons instead of Fcons.
1334
5e2327cf
DN
1335 * process.c (socket_options): Make it const.
1336 (set_socket_option, init_process): Use a const pointer.
1337
1338 * lread.c (intern_c_string): New function.
1339 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1340 (defvar_int): Uset it. Make the name const char*.
1341
1342 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1343 (defvar_int): Update prototypes.
1344 (DEFUN, EXFUN): Support for prototypes is now required.
1345 (intern_c_string): New prototype.
1346 (struct Lisp_Subr): Make symbol_name constant.
1347
1348 * font.c (struct table_entry): Remove unused member. Make NAMES
1349 constant.
1350 (weight_table, slant_table, width_table): Make constant.
1351
1352 * emacs.c (struct standard_args): Make name and longname constant.
1353
1354 * character.h (DEFSYM): Use intern_c_string.
1355
a56eaaef
DN
13562009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1357
1358 * alloc.c (make_pure_c_string): New function.
1359
1360 * eval.c (Fautoload): Purecopy all arguments.
1361
f6a07420
KH
13622009-11-05 Kenichi Handa <handa@m17n.org>
1363
1364 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1365 the buffer in case of replace.
1366
5d28d4b1
DN
13672009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1368
1369 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1370
b349d111
SM
13712009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1372
d528b1ce
SM
1373 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1374 when applicable (bug#4851).
1375
b349d111
SM
1376 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1377 (P_): Support for prototypes is now required.
1378
c38eb027
CY
13792009-10-31 Chong Yidong <cyd@stupidchicken.com>
1380
1381 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1382 (Bug#4827).
1383
0405f8d9
EZ
13842009-10-30 Eli Zaretskii <eliz@gnu.org>
1385
d528b1ce 1386 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1387
ca0a881a
DN
13882009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1389
1390 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1391
d528b1ce
SM
1392 * lread.c (Fload): Purecopy the file name when building
1393 Vpreloaded_file_list.
ca0a881a 1394
47e0e0e4
JR
13952009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1396
1397 * w32fns.c (syms_of_w32fns): Change default value of
1398 w32-scroll-lock-modifier to nil. (Bug#2827)
1399
057bce6f
JB
14002009-10-26 Juanma Barranquero <lekktu@gmail.com>
1401
782a943e 1402 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1403
242bc74c
AS
14042009-10-26 Andreas Schwab <schwab@redhat.com>
1405
1406 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1407
522d013a
JB
14082009-10-26 Juanma Barranquero <lekktu@gmail.com>
1409
1410 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1411 For delta < 0, skip check that only makes sense when the mini-window
1412 is going to be enlarged. (Bug#4534)
1413
18060980
CY
14142009-10-25 Chong Yidong <cyd@stupidchicken.com>
1415
1416 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1417 string in menu maps (Bug#4471).
1418
fec8f0fe
CY
14192009-10-24 Chong Yidong <cyd@stupidchicken.com>
1420
1421 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1422 FRAME_NS_VIEW on terminal frames (Bug#4765).
1423
10d66ec0
AS
14242009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1425
1cae01f7
AS
1426 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1427 DBUS_TYPE_UINTnn separately to get proper sign extension.
1428
58a12889
AS
1429 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1430 can properly handle unsigned types.
d528b1ce 1431 (make_uid, make_gid): Remove.
58a12889 1432
987c9327
AS
1433 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1434 types again.
1435
522d013a 1436 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1437 (system_process_attributes): Likewise.
1438
905a9ed3
DN
14392009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1440
1441 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1442
1443 * eval.c (Fautoload): Purecopy the filename. Simplify.
1444
1445 * category.c (Fdefine_category): Purecopy docstring.
1446
a599b3e8
AS
14472009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1448
7b792fc9
AS
1449 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1450
a599b3e8
AS
1451 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1452
b35ac83e
CY
14532009-10-23 Chong Yidong <cyd@stupidchicken.com>
1454
1455 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1456 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1457 (Bug#4775).
1458
e8903e00
SM
14592009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1460
1461 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1462 (init_fileio_once):
1463 * lisp.h (init_fileio_once): Remove.
1464 * emacs.c (main): Don't call init_fileio_once.
1465
8f43cbf3
DN
14662009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1467
1468 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1469
26898943
AS
14702009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1471
1472 * doprnt.c (doprnt): Fix overflow check.
1473
5c646d5a
JD
14742009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1475
3132a7ea
JD
1476 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1477
5c646d5a
JD
1478 * xterm.h (x_wait_for_event): Declare it.
1479
1480 * xterm.c (pending_event_wait): New variable.
1481 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1482 see pending_event_wait.eventtype.
1483 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1484 (x_new_font): Call change_frame_size with new rows/columns before we
1485 try to resize the frame.
5c646d5a 1486 (x_wait_for_event): New function.
d528b1ce
SM
1487 (x_set_window_size_1): Don't change gravity unless change_gravity
1488 is set.
5c646d5a
JD
1489 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1490 don't change frame size, instead wait for the ConfigureNotify.
1491 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1492 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1493 (x_initialize): Initialize pending_event_wait.
1494
1495 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1496 size.
1497
1498 * widget.c (EmacsFrameSetValues): Add comment.
1499 (EmacsFrameSetCharSize): Just call x_set_window_size.
1500
1501 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1502 x_wait_for_event.
d528b1ce 1503 (flush_and_sync): Remove again.
5c646d5a
JD
1504 (xg_get_font_name): Suggest monospace if no previous font is known.
1505
e9c1637d
SM
15062009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1507
1508 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1509 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1510
5a72cccb
YM
15112009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1512
1513 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1514 processing pending events when event is filtered for input method.
ab04798f 1515 (Bug#3681)
5a72cccb 1516
2629aa37
JB
15172009-10-20 Juanma Barranquero <lekktu@gmail.com>
1518
1519 * fns.c: Add #endif accidentally removed in previous change.
1520
c3417a74
DN
15212009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1522
1523 * fns.c: Remove code for unsupported system: MAC_OS.
1524 * image.c: Likewise. Include setjmp.h.
1525
9685cef2
JD
15262009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1527
1528 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1529 pixel -1 (bug #4742).
1530
d7306fe6
DN
15312009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1532
019d2c4c
DN
1533 * process.c (create_pty): Remove conditionals for no longer
1534 supported systems: UNIPLUS and RTU.
1535
ee6bacd4
DN
1536 * xterm.c:
1537 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1538
d7306fe6
DN
1539 * alloc.c: Do not define struct catchtag.
1540 * eval.c: Move struct catchtag definition ...
1541 * lisp.h: ... here.
1542
1543 * image.c: Move png.h #include earlier to avoid warnings.
1544
1545 * xterm.c:
1546 * xsmfns.c:
1547 * xselect.c:
1548 * xrdb.c:
1549 * xmenu.c:
1550 * xftfont.c:
1551 * xfont.c:
1552 * xfns.c:
1553 * xfaces.c:
1554 * xdisp.c:
1555 * window.c:
1556 * widget.c:
1557 * w32xfns.c:
1558 * w32uniscribe.c:
1559 * w32term.c:
1560 * w32select.c:
1561 * w32reg.c:
1562 * w32proc.c:
1563 * w32menu.c:
1564 * w32inevt.c:
1565 * w32heap.c:
1566 * w32font.c:
1567 * w32fns.c:
1568 * w32console.c:
1569 * w32.c:
1570 * w16select.c:
1571 * vm-limit.c:
1572 * unexsol.c:
1573 * unexec.c:
1574 * unexcw.c:
1575 * unexaix.c:
1576 * undo.c:
1577 * tparam.c:
1578 * textprop.c:
1579 * terminfo.c:
1580 * terminal.c:
1581 * termcap.c:
1582 * term.c:
1583 * syntax.c:
1584 * sound.c:
1585 * sheap.c:
1586 * search.c:
1587 * scroll.c:
1588 * region-cache.c:
1589 * regex.c:
1590 * ralloc.c:
1591 * process.c:
1592 * print.c:
b024548b
DN
1593 * nsterm.m:
1594 * nsselect.m:
1595 * nsmenu.m:
1596 * nsimage.m:
1597 * nsfont.m:
1598 * nsfns.m:
d7306fe6
DN
1599 * msdos.c:
1600 * minibuf.c:
1601 * menu.c:
1602 * marker.c:
1603 * macros.c:
1604 * keymap.c:
1605 * keyboard.c:
1606 * intervals.c:
1607 * insdel.c:
1608 * indent.c:
1609 * gtkutil.c:
1610 * ftxfont.c:
1611 * ftfont.c:
1612 * fringe.c:
1613 * frame.c:
1614 * fontset.c:
1615 * font.c:
1616 * fns.c:
1617 * floatfns.c:
1618 * filelock.c:
1619 * fileio.c:
1620 * emacs.c:
1621 * editfns.c:
1622 * dosfns.c:
1623 * doprnt.c:
1624 * doc.c:
1625 * dispnew.c:
1626 * dired.c:
1627 * dbusbind.c:
1628 * data.c:
1629 * composite.c:
1630 * coding.c:
1631 * cmds.c:
1632 * cm.c:
1633 * chartab.c:
1634 * charset.c:
1635 * character.c:
1636 * ccl.c:
1637 * category.c:
1638 * casetab.c:
1639 * casefiddle.c:
1640 * callproc.c:
1641 * callint.c:
1642 * bytecode.c:
1643 * buffer.c:
1644 * atimer.c: Include setjmp.h. (Bug#4643)
1645
fd5f21e6
SM
16462009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1647
4c0354d7
SM
1648 Remove leftover table unibyte_to_multibyte_table.
1649 * character.c (unibyte_to_multibyte_table): Remove.
1650 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1651 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1652 * character.h (UNIBYTE_TO_CHAR): New macro.
1653 (MAKE_CHAR_MULTIBYTE): Use it.
1654 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1655 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1656 (message_dolog, set_message_1):
1657 * search.c (Freplace_match):
1658 * editfns.c (Fcompare_buffer_substrings):
1659 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1660 (concat):
1661 * insdel.c (copy_text, count_size_as_multibyte):
1662 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1663 * term.c (produce_glyphs):
1664 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1665 * regex.c (RE_CHAR_TO_MULTIBYTE):
1666 * cmds.c (internal_self_insert):
1667 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1668
fd5f21e6
SM
1669 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1670
4418646e
DN
16712009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1672
1673 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1674
35f5c1d2
JB
16752009-10-16 Juanma Barranquero <lekktu@gmail.com>
1676
1677 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1678
a0cd8f6b
AR
16792009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1680
1681 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1682 still needed under Tiger.
1683
1684 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1685
1686 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1687 __Apple__.
1688
1689 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1690
01a8d3fa
KH
16912009-10-15 Kenichi Handa <handa@m17n.org>
1692
1693 * print.c (print_object): Escape a symbol like "2E10" too.
1694
bf6c75c9 16952009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1696
1697 Cleanups and changes for 64-bit compile under Snow Leopard.
1698 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1699
1700 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1701
c5959062 1702 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1703 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1704 cast argument.
1705 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1706 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1707
1708 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1709
1710 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1711 where appropriate.
1712
1713 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1714 where appropriate.
6e4780c5
JB
1715 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1716 Use stringWithUTF8String.
bf6c75c9
AR
1717 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1718
6e4780c5
JB
1719 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1720 Add formal protocol mention to inheritance.
bf6c75c9
AR
1721 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1722
6e4780c5
JB
1723 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1724 Fix printf format.
bf6c75c9
AR
1725 (ns_query_color): Use CGFloat where appropriate.
1726 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1727 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1728 argument.
1729
3d87f118
AR
1730 * config.in (NS_HAVE_NSINTEGER): Drop.
1731
a95c8102
AR
1732 * dbusbind.c (dbus-method-return-internal)
1733 (dbus-method-error-internal): Use long format in printf, and cast
1734 argument.
1735
1736 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1737 in printf, and cast argument.
1738
6873acca 1739 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1740 cast argument.
1741
9ec6f100
GM
17422009-10-11 Glenn Morris <rgm@gnu.org>
1743
1744 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1745
5be883cd
JD
17462009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1747
1748 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1749 menu bar with a small width so it doesn't enlarge the frame.
1750
d7a39b51
JB
17512009-10-08 Juanma Barranquero <lekktu@gmail.com>
1752
1753 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1754
0c2b6f8e
GM
17552009-10-06 Glenn Morris <rgm@gnu.org>
1756
1757 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1758 SOME_MACHINE_LISP (this enters indirectly via DOC).
1759
e02131a2
EZ
17602009-10-05 Eli Zaretskii <eliz@gnu.org>
1761
1762 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1763
b4744254
EZ
17642009-10-04 Eli Zaretskii <eliz@gnu.org>
1765
1766 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1767 Doc fix.
1768
dbf64827
JB
17692009-10-03 Martin Rudalics <rudalics@gmx.at>
1770
1771 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1772
e9a0aef8
MA
17732009-10-02 Michael Albinus <michael.albinus@gmx.de>
1774
d528b1ce 1775 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1776 used anymore outside fileio.c.
1777
1778 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1779
64eb2b56
JB
17802009-10-01 Juanma Barranquero <lekktu@gmail.com>
1781
1782 * lisp.h (Qdelete_directory_internal):
1783 Declare, instead of Qdelete_directory.
1784
1785 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1786
9d28c33e
SM
17872009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1788
1789 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1790
9d8f3bd9
MA
17912009-10-01 Michael Albinus <michael.albinus@gmx.de>
1792
9d28c33e 1793 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1794 Fdelete_directory. It is not a command anymore. It has no file
1795 name handler.
1796
9694740b
SM
17972009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1798
1799 * xdisp.c (get_next_display_element): Use an enum in last change.
1800
748e162f
KH
18012009-09-28 Kenichi Handa <handa@m17n.org>
1802
9694740b 1803 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1804 unibyte_display_via_language_environment in handling
1805 Vnobreak_char_display.
1806
17efd58d
AR
18072009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1808
1809 * nsterm.h (ns_app_name): New extern variable.
1810
1811 * nsterm.m (ns_app_name): New variable.
1812 (ns_term_init): Set and use it.
1813 (ns_term_shutdown): Use it.
1814
1815 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1816 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1817
1818 * nsfns.m (ns_set_name_iconic, ns_set_name)
1819 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1820 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1821
9694740b
SM
1822 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1823 Remove double-casting in client_data comparison.
31c2d412 1824
3208cb35
YM
18252009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1826
1827 * keyboard.c (make_lispy_event): Remember last wheel direction.
1828 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1829
b7d552d6
GM
18302009-09-26 Glenn Morris <rgm@gnu.org>
1831
1832 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1833 internal.elc. Add term/pc-win.elc.
1834 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1835 term/x-win.elc.
1836 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1837 term/w32-win.elc.
1838 (NS_SUPPORT): New.
1839 (lisp): Add NS_SUPPORT.
1840 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1841
4ff670a8
DR
18422009-09-25 David Reitter <david.reitter@gmail.com>
1843
1844 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1845 on Mac OS X 10.6+ (bug#4513).
1846
feabfb6c
JB
18472009-09-24 Juanma Barranquero <lekktu@gmail.com>
1848
1849 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1850 some parts of Emacs code (like font selection) don't grok them.
1851 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1852
de59072a
AS
18532009-09-24 Andreas Schwab <schwab@redhat.com>
1854
1855 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1856
a489517b
JB
18572009-09-24 Juanma Barranquero <lekktu@gmail.com>
1858
1859 * dired.c (Fdirectory_files): Fix typo in docstring.
1860
0592970c
AR
18612009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1862
1863 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1864 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1865 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1866 under GNUstep.
1867 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1868
1869 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1870 glyph advancement.
1871
48e8a88b
AR
18722009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1873
1874 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1875 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1876
1877 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1878 deleted (bug #4492).
1879
e14f0a78
AR
1880 * nsfont.m (Vns_reg_to_script): New lisp variable.
1881 (syms_of_nsfont): Declare it.
1882 (ns_registry_to_script): New function.
1883 (ns_get_req_script): Call it.
1884 (ns_findfonts): Don't give up on non-unicode registry.
1885
1886 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1887
5b650faa
SM
18882009-09-20 Tom Tromey <tromey@redhat.com>
1889
1890 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1891 batch mode (bug#4228).
1892
a489517b 18932009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1894
1895 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1896 carefully. (Bug #4339)
0bae4e09 1897
fcfe06f3
CY
18982009-09-18 Chong Yidong <cyd@stupidchicken.com>
1899
d798ba87 1900 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1901
31642728
AR
19022009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1903
1904 * emacs.c (inhibit_x_resources): Update doc string for NS.
1905 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1906 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1907
1908 * nsterm.h (ns_no_defaults): Remove.
1909
1910 * nsterm.m (ns_no_defaults): Remove.
1911 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1912 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1913 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1914 don't update the NSWindow itself.
1915 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1916 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1917
1918 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1919 ns_use_qd_smoothing.
1920
1921 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1922 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1923 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1924 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1925
8686ac71
JB
19262009-09-17 Juanma Barranquero <lekktu@gmail.com>
1927
1928 * emacs.c (inhibit_x_resources): New variable.
1929 (main) [HAVE_NS]: Don't process --quick command line option.
1930 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1931
1932 * lisp.h (inhibit_x_resources): Declare it extern.
1933
1934 * w32reg.c (x_get_string_resource):
1935 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1936
e227ba05
EZ
19372009-09-17 Eli Zaretskii <eliz@gnu.org>
1938
362654a6
JB
1939 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1940 Add lisp/term/internal.elc.
e227ba05 1941
742d40e8
SM
19422009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1943
1944 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1945 (bug#4461).
1946
005bd5a2
DN
19472009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1948
1949 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1950
1951 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1952 (OBJECTS_MACHINE): Remove, unused.
1953
f9af9719
SM
19542009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1955
1956 * frame.c (x_get_resource_string): Remove unused.
1957
0307c7d2
JD
19582009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1959
1960 * xterm.c (x_new_font): Call change_frame_size before calling
1961 x_set_window_size, in case frame size won't change.
1962
1963 * frame.c (x_set_font): Remove dead code.
1964
428b13d6
SM
19652009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1966
1967 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1968
5766c380
SM
19692009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1970
1971 * lread.c (Fload): Don't output a message after loading an obsolete
1972 package any more (done in Lisp now).
1973
2fd0161b
CY
19742009-09-12 Chong Yidong <cyd@stupidchicken.com>
1975
1976 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1977
bc5e75b6
SM
19782009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1979
1980 * keymap.c (Fwhere_is_internal): Use nconc2.
1981
c31c985e
AM
19822009-09-11 Alan Mackenzie <acm@muc.de>
1983
1984 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1985 batch mode.
1986
78012bd2
AS
19872009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1988
1989 * xdisp.c (display_mode_element): Detect cycles.
1990
9d889332
SM
19912009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1992
1993 * keymap.c (where_is_internal): Don't erroneously return nil right after
1994 filling the cache.
1995 (where_is_internal_1): Fix up typo.
1996
7ab5d780
GM
19972009-09-11 Glenn Morris <rgm@gnu.org>
1998
1999 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2000 share a common doc-string.
2001
5238a749
SM
20022009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2003
66d77eda
SM
2004 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2005 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2006
5238a749
SM
2007 * keymap.c (QCadvertised_binding): New constant.
2008 (syms_of_keymap): Initialize it.
2009 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2010 if applicable.
2011
19f48442
SM
20122009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2013
50d4ba39
SM
2014 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2015 (parse_menu_item): Streamline since bindings are recomputed all the
2016 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2017 more and don't support lmenu's menu-alias any more either.
2018
a88a5372
SM
2019 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2020 (where_is_internal): Strip it down to only traverse the keymaps.
2021 Move the cache handling from Fwhere_is_internal to here.
2022 (Fwhere_is_internal): Move the handling of remapping and the choice of
2023 the best binding from where_is_internal to here.
2024 Unify the cached/noncached paths, so remapping is also handled
2025 correctly when the cache is used, and so the cache can be used to
2026 speed up remap-handling when applicable.
2027 Give preference to non-remapped bindings.
2028 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2029 non-remapped bindings.
2030 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2031 command remapping.
2032
19f48442
SM
2033 * xdisp.c (display_mode_element): Move list length limit from 50 to
2034 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2035
599498c3 20362009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2037
2038 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2039
f9b7b5ac
SM
20402009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2041
a53af587
JB
2042 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2043 (Bug#4334)
2044
f9b7b5ac
SM
2045 * keymap.c (where_is_internal): Filter out shadowed remappings.
2046 Assume that where_is_internal returns unshadowed bindings to simplify
2047 the code and get rid of the gotos. Use ASIZE.
2048
04f4b72d
JD
20492009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2050
4da146f2
JD
2051 * xterm.c (x_focus_changed): If we get a focusout and pointer
2052 is invisible, make it visible.
2053
04f4b72d
JD
2054 * xterm.h: Remove condition for declaration of
2055 x_*_window_to_frame.
2056
7cef7ce3
SM
20572009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2058
2059 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2060 initial terminal as well.
2061
a54fa5b7
JD
20622009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2063
2064 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2065 x_menubar_window_to_frame.
a54fa5b7
JD
2066
2067 * xterm.c: Remove declarations also in xterm.h
2068 (XTmouse_position): Do not return valid positions
2069 for clicks in the menubar and the toolbar for Gtk+.
2070
2071 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2072 if the widget for the event has the same top level as a frame,
2073 return the frame.
2074 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2075 internal windows, bug #4122.
2076 (x_non_menubar_window_to_frame): Remove.
2077
5a021dd0
GM
20782009-09-02 Glenn Morris <rgm@gnu.org>
2079
2080 * buffer.c (default-major-mode): Move most of the doc from here...
2081 (major-mode): ... to here.
2082
548fe2f3
NR
20832009-08-30 Nick Roberts <nickrob@snap.net.nz>
2084
2085 * process.c (wait_reading_process_output): Keep the descriptor
2086 when pty is used by a non-child process, e.g., in I/O buffer of
2087 GDB this allows inferior to be restarted.
2088
e0840eef
EZ
20892009-08-29 Eli Zaretskii <eliz@gnu.org>
2090
2091 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2092 both branches into one.
2093
82e98df4
SM
20942009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2095
2096 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2097 (main): Use enable-multibyte-characters rather than
2098 default-enable-multibyte-characters. Output a warning message when
2099 running a unibyte session.
2100
890617cb
YM
21012009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2102
2103 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2104 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2105 (copy_data_segment): Also copy __program_vars section.
2106 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2107 (dump_it) [LC_DYLD_INFO]: Use it.
2108
2109 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2110
e7adeadc
EZ
21112009-08-28 Eli Zaretskii <eliz@gnu.org>
2112
2113 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2114 $(SRC)/buildobj.h.
2115 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2116 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2117 $(SRC)/buildobj.h.
2118 (clean): Add buildobj.h.
2119
3ed8bbdc
TZ
21202009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2121
2122 * print.c (print_object): Set escapeflag to 1 when printing
2123 hashtable keys and values.
2124
155a6764
SM
21252009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2126
2127 * lread.c (read_integer): Use doubles (and potentially return a float
2128 number) as we do in string-to-number.
2129 (read1): Use strtol to read integers, signal errors on strtol's
2130 overflow and use floats if strtol's output is too large for
2131 Elisp integers.
2132
877610de
EZ
21332009-08-27 Eli Zaretskii <eliz@gnu.org>
2134
2135 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2136 (make-buildobj-SH): Fix last change.
2137 (SRC): Move to before where it's first used.
2138
ef73e7be
KH
21392009-08-27 Kenichi Handa <handa@m17n.org>
2140
550c8289
KH
2141 * process.c (send_process): Use encode_coding_object instead of
2142 encode_coding_string to perform eol-conversion even if the string
2143 is unibyte.
2144
60afa08d
KH
2145 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2146 character.
2147
ef73e7be 2148 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2149 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2150
7b3a82d7
DN
21512009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2152
5654bf63
DN
2153 * callproc.c (Fcall_process): Remove always true #if.
2154
7b3a82d7
DN
2155 * lisp.h: Replace #if 0 code for checking with text pointing to
2156 the --enable-checking configure flag.
2157
2158 * emacs.c (main): Mention the --enable-profiling configure flag
2159 instead of using CFLAGS.
2160
878bde49
KR
21612009-08-26 Ken Raeburn <raeburn@raeburn.org>
2162
2163 * Makefile.in (buildobj.h): New target.
2164 (doc.o): Depend on it.
2165 (temacs${EXEEXT}): Don't generate buildobj.lst.
2166 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2167 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2168 ($(BLD)/doc.$(O)): Depend on it.
2169 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2170 provided by Eli Zaretskii.)
2171 ($(TEMACS)): Don't generate buildobj.lst.
2172 * doc.c: Include buildobj.h.
2173 (buildobj): New static variable.
2174 (Fsnarf_documentation): Use it, instead of opening and reading
2175 buildobj.lst.
2176
1574224c
MA
21772009-08-25 Michael Albinus <michael.albinus@gmx.de>
2178
2179 * dbusbind.c (Fdbus_call_method)
2180 (Fdbus_call_method_asynchronously): Use English numeric format for
2181 timeout values in doc string.
2182
d9da2f45
KH
21832009-08-25 Kenichi Handa <handa@m17n.org>
2184
ef73e7be
KH
2185 * alloc.c (mark_char_table): New function.
2186 (mark_object): Use mark_char_table for a char-table.
2187
d9da2f45
KH
2188 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2189 (CHAR_TABLE_REF): Use it.
2190
c8edcc01
KR
21912009-08-23 Ken Raeburn <raeburn@raeburn.org>
2192
2193 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2194 before invoking the newly build emacs to check for load-path
2195 shadowing.
2196
7763401b
GM
21972009-08-22 Glenn Morris <rgm@gnu.org>
2198
2199 * Makefile.in (bootstrap_exe): New variable.
2200 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2201 Use ${bootstrap_exe}.
2202
729eadda
EZ
22032009-08-22 Eli Zaretskii <eliz@gnu.org>
2204
2205 * coding.h (encode_coding_string): Don't encode unibyte strings.
2206 (Bug#4047)
2207
eb4c6ace
MA
22082009-08-22 Michael Albinus <michael.albinus@gmx.de>
2209
2210 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2211
2212 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2213 intended as hotfix only.
2214 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2215
36e34d1b
AR
22162009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2217
2218 * nsterm.m (ns_get_color): Update documentation properly for last
2219 change, and clean up loose ends in the code left by it. Fix
2220 longstanding bug with 16-bit hex parsing, and add support for
2221 yet another X11 format (rgb:r/g/b) for compatibility.
2222 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2223 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2224
f983eb8a
SM
22252009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2226
2227 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2228
3f56d3c6
MA
22292009-08-20 Michael Albinus <michael.albinus@gmx.de>
2230
2231 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2232 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2233 (xd_initialize, xd_pending_messages): Check, whether
2234 $DBUS_SESSION_BUS_ADDRESS is set.
2235
fb641d68
YM
22362009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2237
2238 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2239
2240 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2241
cf59a374
GM
22422009-08-20 Glenn Morris <rgm@gnu.org>
2243
2244 * emacs.c (system-type): Doc fix.
2245
1373f3be
SM
22462009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2247
2248 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2249 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2250
058ed861
MA
22512009-08-18 Michael Albinus <michael.albinus@gmx.de>
2252
1373f3be
SM
2253 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2254 New functions.
058ed861
MA
2255 (xd_initialize): Revert change from 2009-08-16.
2256
563a866e 22572009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2258
2259 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2260 font-group vector, return nil.
5fc05db0 2261
e42bdf01
CY
22622009-08-17 Chong Yidong <cyd@stupidchicken.com>
2263
2264 * process.c (status_notify): Don't perform redisplay.
2265 (Fdelete_process, list_processes_1, process_send_signal):
2266 Expliticly perform redisplay.
2267 (wait_reading_process_output): Always check process status, but
2268 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2269
4230ab74
KR
22702009-08-17 Ken Raeburn <raeburn@raeburn.org>
2271
1373f3be 2272 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2273 (XFLOAT_INIT): New macro for storing a float value.
2274 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2275 * fns.c (sxhash): Copy out the value of a float in order to
2276 examine its bytes.
2277 * dbusbind.c (xd_append_arg): Likewise.
2278
4230ab74
KR
2279 * emacs.c (main): Don't call syms_of_data twice.
2280
a0645cdd
MA
22812009-08-16 Michael Albinus <michael.albinus@gmx.de>
2282
2283 * dbusbind.c (xd_initialize): Add connection file descriptor to
2284 input_wait_mask, in order to let select() detect, whether a new
2285 message has been arrived.
ca4f31ea 2286 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2287
485db0ba
MA
22882009-08-15 Michael Albinus <michael.albinus@gmx.de>
2289
1373f3be
SM
2290 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2291 New functions.
485db0ba
MA
2292
2293 * lisp.h (xd_pending_messages): Declare.
2294
2295 * keyboard.c (readable_events): Call xd_pending_messages.
2296
b5b98ff4
CY
22972009-08-15 Chong Yidong <cyd@stupidchicken.com>
2298
1373f3be 2299 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2300
f8354c6e
CY
2301 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2302
b5b98ff4
CY
2303 * buffer.c (set_buffer_internal_1)
2304 (swap_out_buffer_local_variables): Check for unbound local
2305 variables (Bug#4138).
2306
8b9fc636
EZ
23072009-08-14 Eli Zaretskii <eliz@gnu.org>
2308
2309 * process.c (create_pty): Fix last change.
2310
ce959360
CY
23112009-08-13 Chong Yidong <cyd@stupidchicken.com>
2312
2313 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2314 (xbm_load_image): Caller changed.
64b807c9 2315 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2316
c7baf7e9
NR
23172009-08-13 Nick Roberts <nickrob@snap.net.nz>
2318
2319 * process.c (create_pty): New function.
2320 (Fstart_process): Use it to allow Emacs to just associate a pty
2321 with the buffer. See associated change in gdb-mi.el.
2322 (list_processes_1): Deal with no program name.
2323 (start_process_unwind): Use pid == -2 to mean no process.
2324
1ac9108a
SM
23252009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2326
2327 * cmds.c (nonundocount): New global variable.
2328 (keys_of_cmds): Initialize it.
2329 (Fself_insert_command): Use it to combine upto 20 sequential chars
2330 into a single undo entry, just like the Qself_insert_command code in
2331 keyboard.c does.
2332 Call frame_make_pointer_invisible, also like the Qself_insert_command
2333 code in keyboard.c does.
2334 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2335 than its own local replacement for it.
2336
e267324c
KR
23372009-08-10 Ken Raeburn <raeburn@raeburn.org>
2338
1ac9108a 2339 * fns.c (concat): Don't re-set string length to its current value.
77437343 2340
1ac9108a
SM
2341 * coding.h (decode_coding_string, encode_coding_string):
2342 Use SBYTES macro.
f0bed503 2343
1ac9108a 2344 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2345 (doprnt): Merge with doprnt1, discarding lispstrings code.
2346 * lisp.h (doprnt_lisp): Don't declare.
2347
416e006d
JL
23482009-08-07 Juri Linkov <juri@jurta.org>
2349
2350 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2351
6f7d5780
DN
23522009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2353
2354 * print.c (syms_of_print): Undo previous change.
2355
f19a0f5b
TZ
23562009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2357
2358 * lread.c (read1, syms_of_lread): Read hashtables back from the
2359 readable format.
2360
2361 * print.c (print_preprocess, print_object): Print hashtables fully
2362 and readably.
2363 (syms_of_print): Provide 'hashtable-print-readable.
2364
b9173dc2
AR
23652009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2366
2367 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2368 no family set.
2369 (nsfont_open): Handle case when entity has no family.
2370
1586503c
AR
23712009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2372
2373 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2374 element, not a list, for match case.
2375
087048cd
KH
23762009-07-28 Kenichi Handa <handa@m17n.org>
2377
2378 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2379 rigidly.
2380
2381 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2382 font_parse_xlfd. Check font properties more rigidly.
2383
780c2506
DN
23842009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2385
31fd7c5c
JB
2386 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2387 bsd-common.h.
780c2506 2388
a8c0cc18
KH
23892009-07-27 Kenichi Handa <handa@m17n.org>
2390
2391 * xfaces.c (face_with_height): Call font_clear_prop.
2392
4fbe2306
CY
23932009-07-26 Chong Yidong <cyd@stupidchicken.com>
2394
111d9af3
CY
2395 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2396
2397 * xterm.c (x_term_init): Use Qx.
2398
4fbe2306
CY
2399 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2400
1ac9108a 2401 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2402 (ns_get_color): Revert 2009-07-16 change.
2403
beb0b7f9
EZ
24042009-07-25 Eli Zaretskii <eliz@gnu.org>
2405
2406 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2407 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2408
2baf5e76
KR
24092009-07-25 Ken Raeburn <raeburn@raeburn.org>
2410
1ac9108a
SM
2411 * coding.h (decode_coding_string, encode_coding_string):
2412 Use SCHARS macro.
8890e5f5 2413
2baf5e76 2414 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2415 (load_depth): Delete.
2baf5e76
KR
2416 (Qload_in_progress): New variable.
2417 (load_unwind): Don't reference load_depth or load_in_progress.
2418 (Fload): Likewise; specbind Qload_in_progress instead.
2419 (init_lread): Don't initialize load_depth.
2420 (syms_of_lread): Initialize and protect Qload_in_progress.
2421
1395c6f5
AR
24222009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2423
2424 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2425
4e2f36cf
AR
24262009-07-23 Yavor Doganov <yavor@gnu.org>
2427
2428 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2429
5dd9a6f7
AR
24302009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2431
2432 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2433 Bugs 3792, 3720, 2402.
2434 (ns_lookup_indexed_color): Check for bad index.
2435 (ns_index_color): Init unused slot to 0.
2436 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2437 Bug 3714, possibly 3082.
5dd9a6f7 2438
c902b920
JR
24392009-07-22 Jason Rumney <jasonr@gnu.org>
2440
1ac9108a
SM
2441 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2442 Position IME window at cursor (Bug#2570).
c902b920
JR
2443 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2444 (globals_of_w32fns): Dynamically load functions required above.
2445
2446 * w32term.c (w32_draw_window_cursor): Send message to reposition
2447 any IME window.
2448
090101cf
CY
24492009-07-21 Chong Yidong <cyd@stupidchicken.com>
2450
2451 * fileio.c: Revert 2009-07-16 changes.
2452 (Vauto_save_include_big_deletions): New variable.
2453 (Fdo_auto_save): Disable auto-save only if
2454 auto-save-include-big-deletions is nil.
2455
e6583e3d
CY
24562009-07-21 Chong Yidong <cyd@stupidchicken.com>
2457
2458 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2459 the overflowed pixels into account (Bug#3879).
2460
ece435a5
KR
24612009-07-21 Ken Raeburn <raeburn@raeburn.org>
2462
2463 * lread.c (load_depth): New variable.
2464 (Fload, load_unwind, init_lread): Set it to the load recursion
2465 depth; set load_in_progress as a simple boolean based on the
2466 current load_depth. (Bug#3892)
2467
40b2d973
AR
24682009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2469
2470 * nsfont.m (ns_has_attribute): Remove.
2471 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2472
10be7e0d
JL
24732009-07-18 Juri Linkov <juri@jurta.org>
2474
2475 * process.c (Fset_process_query_on_exit_flag): Mention killing
2476 a buffer in docstring.
2477
fa055055
KH
24782009-07-17 Kenichi Handa <handa@m17n.org>
2479
2480 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2481
042f7b69
YM
24822009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2483
2484 * nsfns.m (Fns_set_alpha): Remove function.
2485 (syms_of_nsfns): Don't defsubr it.
2486
2487 * nsterm.m (ns_get_color): Remove incompatible color formats.
2488 (ns_color_to_lisp): Generate #rrggbb color format string.
2489
4be941e3
RS
24902009-07-16 Richard Stallman <rms@gnu.org>
2491
2492 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2493 (Fset_buffer_auto_saved): Handle save_length = -2.
2494
4e6b227d
CY
24952009-07-16 Chong Yidong <cyd@stupidchicken.com>
2496
2497 * xterm.c (Qx_gtk_map_stock): New var.
2498
2499 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2500 of calling intern each time.
2501
a1856973
YM
25022009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2503
2504 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2505 does tiling.
2506
2507 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2508
497e54d8
KH
25092009-07-14 Kenichi Handa <handa@m17n.org>
2510
72d36834
KH
2511 * font.c (font_vconcat_entity_vectors): New function.
2512 (struct font_sort_data): New member font_driver_preference.
2513 (font_compare): Check font_driver_preference.
2514 (font_sort_entities): The format of the first argument changed.
2515 (font_delete_unmatched): Likewise.
2516 (font_list_entities): The return type changed.
2517 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2518 (font_find_for_lface): Adjuste for the above changes.
2519 Don't suppress the checking of C even if the repertory supports it.
2520 (Flist_fonts): Adjust for the above changes.
72d36834 2521
1ac9108a
SM
2522 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2523 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2524 Reject a font who has adstyle property that is different from a
2525 langname derived from registry property.
1ac9108a 2526 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2527
b6046155
EZ
25282009-07-13 Eli Zaretskii <eliz@gnu.org>
2529
2530 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2531 local copy of dirfilename.
2532
fb6b6049
KH
25332009-07-13 Kenichi Handa <handa@m17n.org>
2534
e2402a5e
KH
2535 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2536 against max_char.
2537
fb6b6049
KH
2538 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2539 calling XSYMBOL (sym).
2540
65156807
EZ
25412009-07-11 Eli Zaretskii <eliz@gnu.org>
2542
1ac9108a
SM
2543 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2544 New function.
2545 (directory_files_internal) [WINDOWSNT]:
2546 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2547 the filesystem of the directory is fast or slow.
2548
2549 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2550 file name.
2551 (is_slow_fs): New function.
2552 (stat): Use it to determine whether to issue more system calls to
2553 get accurate file attributes, when w32-get-true-file-attributes is
2554 `local'.
2555
e0ab5fcf
JD
25562009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2557
2558 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2559 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2560 parameter font-parameter as default to the font dialog.
2561
784ceded
KH
25622009-07-10 Kenichi Handa <handa@m17n.org>
2563
2564 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2565
fb8edc0b
EZ
25662009-07-09 Eli Zaretskii <eliz@gnu.org>
2567
1ac9108a 2568 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2569
fb8edc0b
EZ
2570 * w32.c (stat): Treat UNC file names as residing on remote
2571 drives. (Bug#3542)
2572
635c75b1
KH
25732009-07-09 Kenichi Handa <handa@m17n.org>
2574
2575 * fontset.c (fontset_find_font): Fix previous change.
2576
c1d5ce94
MA
25772009-07-08 Michael Albinus <michael.albinus@gmx.de>
2578
2579 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2580 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2581 error flag.
2582
edb61b39
KH
25832009-07-08 Kenichi Handa <handa@m17n.org>
2584
374bf7e4
KH
2585 * fontset.c (fontset_find_font): Fix the logic of handling
2586 charset_matched.
2587 (font_for_char): Delete unused var.
2588 (generate_ascii_font_name): Delete it.
2589
edb61b39
KH
2590 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2591
2592 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2593 (encode_coding_sjis): Fix the code range check.
2594
0f3f018c
CY
25952009-07-07 Chong Yidong <cyd@stupidchicken.com>
2596
2597 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2598 (Fexpand_file_name): Copy string data properly (Bug#3772).
2599
fcaf6f3a
JD
26002009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2601
2602 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2603 first MapNotify.
2604
6809ca75
KH
26052009-07-07 Kenichi Handa <handa@m17n.org>
2606
2607 * character.h (unibyte_has_multibyte_table): Delete extern.
2608 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2609
2610 * charset.c (Fset_charset_priority): Update charset_unibyte.
2611 (syms_of_charset): Initialize charset_unibyte.
2612
2613 * character.c (unibyte_has_multibyte_table): Delete it.
2614 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2615 charset_unibyte.
2616 (multibyte_char_to_unibyte_safe): Likewise.
2617 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2618
1ac9108a 2619 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2620 (x_produce_glyphs): Likewise.
2621
2622 * .gdbinit (xcharset): Fix the treating $arg0.
2623
ad9e2d54
EZ
26242009-07-04 Eli Zaretskii <eliz@gnu.org>
2625
2626 Emulation of `getloadavg' on MS-Windows.
2627 * w32.c: Include float.h
2628 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2629 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2630 (get_native_system_info, get_system_times): New functions.
2631 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2632 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2633 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2634 g_b_init_get_system_times, and num_of_processors.
2635
0a3472c7
JR
26362009-07-03 Jason Rumney <jasonr@gnu.org>
2637
2638 * w32term.c (w32_initialize): Use standard types.
2639
80904120
EZ
26402009-07-03 Eli Zaretskii <eliz@gnu.org>
2641
2642 * dired.c (Ffile_attributes): Decode user and group names by the
2643 locale's encoding. (Bug#3443)
2644
6978862d
DN
26452009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2646
f8d23104
DN
2647 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2648 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2649
2650 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2651
2652 * term.c (init_tty): Remove spurious #ifdef.
2653
6978862d
DN
2654 * m/mips.h: Mention this file is also used for netbsd.
2655 * m/pmax.h: Remove file.
2656
e044e4fc
JD
26572009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2658
2659 * xterm.h (struct x_display_info): Add invisible_cursor.
2660 (struct x_output): Add current_cursor.
2661
2662 * xterm.c (XTtoggle_invisible_pointer): New function.
2663 (x_define_frame_cursor): Don't define cursor if invisible or the
2664 same as before. Set current_cursor.
2665 (x_create_terminal): Set toggle_invisible_pointer_hook.
2666
2667 * xfns.c (make_invisible_cursor): New function.
2668 (x_set_mouse_color): Call make_invisible_cursor.
2669 Set current_cursor.
2670 (x_window): Set current_cursor.
2671
2672 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2673
2674 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2675 inserting a character.
2676 (read_avail_input): Call frame_make_pointer_visible.
2677
2678 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2679 (frame_make_pointer_invisible, frame_make_pointer_visible):
2680 New functions.
e044e4fc
JD
2681 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2682
2683 * frame.h: Declare frame_make_pointer_invisible and
2684 frame_make_pointer_visible.
2685 (struct frame): Add pointer_invisible.
2686
574c8efa
JD
26872009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2688
7b507248
JD
2689 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2690 frame isn't visible.
2691 (xg_frame_resized): If width/height is -1, get size of window
2692 from X server.
2693
2694 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2695 for MapNotify.
2696
835bdaa7 2697 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2698 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2699 (flush_and_sync): Reintroduce.
574c8efa 2700
3f1c6666 27012009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2702
31fd7c5c 2703 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2704
2705 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2706 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2707
2708 * frame.h: Declare Qsticky.
2709
cad9ef74
JD
2710 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2711
2712 * nsfns.m (ns_frame_parm_handlers): Ditto.
2713
2714 * frame.c: Declare Qsticky.
2715 (frame_parms): Add sticky.
2716
2717 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2718
2719 * xterm.h: Declare x_set_sticky.
2720
2721 * xterm.c (x_set_sticky): New function.
2722
69b16610
JD
2723 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2724 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2725 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2726
2727 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2728
2729 * frame.c: Qmaximized is new.
2730 (x_set_frame_parameters): Do not handle fullscreen specially.
2731 Only set width and height if explicitly set.
2732 (x_set_fullscreen): Handle Qmaximized.
2733 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2734 (syms_of_frame): Initialize Qmaximized.
2735
1ac9108a
SM
2736 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2737 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2738
2739 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2740 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2741 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2742 set gravity to NorthWestGravity when USE_GTK.
2743 (set_wm_state): New function.
31fd7c5c 2744 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2745 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2746 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2747 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2748 to x_real_positions and x_fullscreen_adjust.
2749
2750 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2751 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2752 flush_and_sync.
2753 (xg_height_changed): New function.
2754 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2755 and gtk_window_set_policy. Set frame gravity after parsing the
2756 geometry string.
3f1c6666
JD
2757 (xg_update_frame_menubar, free_frame_menubar)
2758 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2759 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2760 Remove calls to xg_frame_set_char_size.
2761
fd503d99
KH
27622009-07-01 Kenichi Handa <handa@m17n.org>
2763
2764 * keyboard.c (decode_keyboard_code): New function.
2765 (tty_read_avail_input): Decode the input bytes if necessary.
2766
1ac9108a
SM
2767 * coding.c (setup_coding_system):
2768 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2769 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2770 use Qno_conversion.
2771
24ed93fb
YM
27722009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2773
2774 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2775
99061dfc
CY
27762009-06-30 Chong Yidong <cyd@stupidchicken.com>
2777
1ac9108a 2778 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2779
ff90fbde
JR
27802009-06-30 Jason Rumney <jasonr@gnu.org>
2781
2782 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2783 is already loaded.
2784 Set user model ID if supported (bug#1849).
2785
5f445726
JM
27862009-06-29 Jim Meyering <meyering@redhat.com>
2787
2788 Remove useless if-before-xfree test.
2789 * nsfont.m (nsfont_close): Remove useless test.
2790 * term.c (delete_tty): Likewise.
2791 * w32.c (system_process_attributes): Likewise.
2792 * w32font.c (w32font_close): Likewise.
2793 * xfaces.c (x_free_gc): Likewise.
2794 * xselect.c (buffer): Likewise.
2795
b9607587
AS
27962009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2797
2798 * process.c (send_process): Keep decoded string in a local
2799 variable and protect it from GC. (Bug#3521)
2800
89ba96f4
EZ
28012009-06-28 Eli Zaretskii <eliz@gnu.org>
2802
2803 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2804 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2805
098a1589
CY
28062009-06-28 Chong Yidong <cyd@stupidchicken.com>
2807
485422be
CY
2808 * xdisp.c (start_display, handle_face_prop)
2809 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2810 (redisplay_window, try_window_id, produce_image_glyph):
2811 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2812
098a1589
CY
2813 * xterm.c (x_update_window_begin, x_new_focus_frame)
2814 (x_scroll_bar_handle_click, handle_one_xevent)
2815 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2816 (x_make_frame_visible, x_make_frame_invisible)
2817 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2818 code chunks that are now obsolete.
2819
78c38319
MA
28202009-06-28 Michael Albinus <michael.albinus@gmx.de>
2821
2822 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2823 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2824 for hours, when optimzation is enabled.
2825 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2826 (xd_read_message): Make them static.
2827
4189ed40
CY
28282009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2829
2830 * term.c (turn_on_face): Allow simultaneously bold and dim
2831 terminal faces (Bug#3530).
2832
cd9b5e16
CY
28332009-06-27 Chong Yidong <cyd@stupidchicken.com>
2834
4e23bedb
CY
2835 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2836
cd9b5e16
CY
2837 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2838 truncation glyphs (Bug#3686).
2839
07cc3c35
GM
28402009-06-27 Glenn Morris <rgm@gnu.org>
2841
2842 * m/pmax.h: Restore file, with only netbsd portions.
2843
31fd7c5c 28442009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2845
cd9b5e16 2846 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2847
42d4a64f
KH
28482009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2849
2850 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2851 the arg FORCE_SYMBOL.
2852
930fe55b 28532009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2854
2855 * fontset.c (fontset_find_font): When a usable rfont_def is found
2856 in a fallback font-group, make it the first element of the group.
2857
57ebc3fd
CY
28582009-06-24 Chong Yidong <cyd@stupidchicken.com>
2859
2860 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2861
f084f942
KH
28622009-06-24 Kenichi Handa <handa@m17n.org>
2863
2864 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2865 set for C.
2866 (fontset_font): Record the availability of a font for C both in
2867 the realized fontsets of the current one and the default one.
2868
2f686c87
DN
28692009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2870
2871 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2872 conditional, it is always defined on AIX.
2873
666e158e
MB
28742009-06-23 Miles Bader <miles@gnu.org>
2875
2876 * window.c (Vrecenter_redisplay): New variable.
2877 (syms_of_window): Initialize it.
2878 (Qtty): New extern declaration.
2879 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2880
c6da7cd2
JM
28812009-06-23 Jim Meyering <meyering@redhat.com>
2882
1ac9108a
SM
2883 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2884 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2885 pointer dereferences are guaranteed to be valid.
c6da7cd2 2886
678dca3d
KH
28872009-06-23 Kenichi Handa <handa@m17n.org>
2888
74d75424
KH
2889 * emacs.c (main): Call init_font ().
2890
2891 * font.h (Vfont_log): Extern it.
2892 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2893
2894 * font.c (font_sort_entities, font_list_entities)
2895 (font_matching_entity, font_open_entity)
2896 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2897 (Vfont_log): Delete static.
2898 (font_log_env_checked): Delete this variable.
2899 (font_add_log): Don't check font_log_env_checked.
2900 (font_deferred_log): Check Vfont_log.
2901 (init_font): New function.
2902
678dca3d
KH
2903 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2904
2905 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2906
2907 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2908
2909 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2910
2911 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2912 (face_for_char): Don't call font_deferred_log here.
2913 (font_for_char): Likewise.
2914
8a668709
CY
29152009-06-22 Chong Yidong <cyd@stupidchicken.com>
2916
9a01ee33
CY
2917 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2918 rather than its background_width for drawing the overline and
2919 underline (Bug#489).
2920
2921 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2922 rather than its background_width for drawing the overline and
2923 underline (Bug#489).
ec7c9926
CY
2924 (xg_default_icon_file): New variable.
2925 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2926 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2927
8a668709
CY
2928 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2929 (load_overlay_strings): Remove externs.
2930 (fast_find_position): Function deleted.
2931 (mouse_face_from_buffer_pos): New function, based on
2932 fast_find_position. Correctly handle before-strings,
2933 display-strings, and after-strings (Bug#1220).
2934 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2935
4d4c02d8
CY
29362009-06-21 Chong Yidong <cyd@stupidchicken.com>
2937
1ac9108a 2938 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2939 (move_it_in_display_line_to, move_it_in_display_line_to)
2940 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2941
70243478
CY
29422009-06-21 Chong Yidong <cyd@stupidchicken.com>
2943
2944 * Branch for 23.1.
2945
13087e59
JR
29462009-06-21 Jason Rumney <jasonr@gnu.org>
2947
2948 * w32term.c (keyboard_codepage): New static variable.
2949 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2950 (w32_read_socket) [WM_CHAR]: Use it to decode character
2951 input (bug#3237).
2952 (w32_initialize): Initialize it.
2953 (codepage_for_locale): New function.
2954
4735b74e
KR
29552009-06-20 Ken Raeburn <raeburn@raeburn.org>
2956
2957 * process.c (status_message): Pass Faset index argument as a lisp
2958 object, so as to work with USE_LISP_UNION_TYPE.
2959
0e727afa
YM
29602009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2961
2962 * coding.c (Ffind_coding_systems_region_internal):
2963 Cache checked characters.
2964
cf299835
KH
29652009-06-18 Kenichi Handa <handa@m17n.org>
2966
1ac9108a 2967 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2968
90f20d94
AS
29692009-06-18 Andreas Schwab <aschwab@redhat.com>
2970
2971 * xdisp.c (redisplay_internal): Check that the frame is still
2972 live after redisplay of its windows.
2973 (redisplay_windows): Check that the window is still live.
2974
7f1faf1c
KH
29752009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2976
2977 * coding.c (detect_coding_utf_16): Fix previous change.
2978
cc13543e
KH
29792009-06-16 Kenichi Handa <handa@m17n.org>
2980
2981 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2982 UTF-16 by checking the dispersion of Eth and Oth bytes.
2983
977b85f4
AS
29842009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2985
2986 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2987
66bd43d1
KH
29882009-06-15 Kenichi Handa <handa@m17n.org>
2989
2990 * process.c (status_message): Fix previous change. Be sure to
2991 decode a localized string.
2992
cb5ca9c5
YM
29932009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2994
2995 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2996 add comment explaining why.
2997
ec7709ba 29982009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2999
ec7709ba 3000 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3001
4b7f335c
AR
30022009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3003
3004 * nsfont.m (ns_attribute_value): Remove.
3005 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3006 (ns_has_attribute): Shrink the normal range.
3007 (ns_findfonts): Don't worry about requested spec in determining
3008 need for synthItal.
e41820ee 3009 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3010
73b26103
SZ
30112009-06-14 Seiji Zenitani <zenitani@mac.com>
3012
3013 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3014
5753e4da
KH
30152009-06-11 Kenichi Handa <handa@m17n.org>
3016
3017 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3018 overhang for the static composition case.
3019
3561b671
KH
30202009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3021
5753e4da
KH
3022 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3023 overhang for the automatic composition case.
3024
3561b671
KH
3025 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3026 composition case.
3027
852bbd41
CY
30282009-06-10 Chong Yidong <cyd@stupidchicken.com>
3029
3030 * xdisp.c (get_next_display_element): When handling wrap-prefix
3031 and line-prefix, treat \n as a control character (bug#3502).
3032
9903d1e6
KH
30332009-06-10 Kenichi Handa <handa@m17n.org>
3034
3035 * font.c (font_parse_family_registry): Fix for one-char foundry.
3036 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3037
0bcbaaaa
CY
30382009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3039
3040 * process.c (status_message): Fix handling of multibyte signal
3041 string (Bug#3499).
3042
40aa3f13
JM
30432009-06-09 Jim Meyering <meyering@redhat.com>
3044
1f80c7e2
CY
3045 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3046 color name is missing.
40aa3f13 3047
72d51285
KH
30482009-06-09 Kenichi Handa <handa@m17n.org>
3049
3050 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3051 FROM-CODE and TO-CODE are codepoints of CHARSET.
3052
c1d04d84
AR
30532009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3054
3055 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3056
30572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3058
3059 Changes to support :script/:lang/:otf in NS font driver.
3060 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3061 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3062 indicate not part of font driver interface, and change callers.
3063 (ns_get_family): Remove pointless null check.
3064 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3065 ns_spec_to_descriptor, ns_descriptor_to_entity.
3066 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3067 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3068 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3069 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3070 (ns_get_req_script, ns_accumulate_script_ranges)
3071 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3072 New functions.
3073 (nsfont_list, nsfont_match): Use ns_findfonts.
3074 (nsfont_open): Use font descriptor instead of traits.
3075 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3076 (dump_glyphstring): Rename to ns_dump_glyphstring.
3077
c7eb9816
AR
3078 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3079
c1d04d84
AR
3080 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3081
3082 * fontset.c (fontset_from_font): Remove NS-specific code.
3083
ec7709ba 30842009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3085
3086 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3087 nonactive windows.
3088
31fd7c5c 30892009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3090
1ac9108a 3091 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3092
68852c13 30932009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3094
3095 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3096
6756cd1d
CY
30972009-06-07 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3100 account for the overflowing of newlines into the last glyph on the
3101 display line (Bug#3482).
3102
28bf482a
DR
31032009-06-05 David Reitter <david.reitter@gmail.com>
3104
ec7709ba
JB
3105 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3106 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3107 Fns_selection_exists_p, Fns_selection_owner_p.
3108
fdb55376
JR
31092009-06-03 Jason Rumney <jasonr@gnu.org>
3110
3111 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3112 available. (Bug#3379)
3113
05129fbe
KH
31142009-05-29 Kenichi Handa <handa@m17n.org>
3115
1ac9108a
SM
3116 * coding.c (get_translation_table):
3117 Check Venable_character_translation.
05129fbe 3118
ec7709ba 31192009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3120
ec7709ba
JB
3121 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3122 (x_make_frame_visible): Move frame to front rather than calling
15891144 3123 ns_raise_frame().
ec7709ba 3124 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3125 isn't key window.
ec7709ba 3126 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3127 drawRect may be called by NSView even if the frame is hidden.
3128
ec7709ba
JB
3129 * nsfns.m (Fx_create_frame): Follow other ports in
3130 determining visibility; default to t. Ensure async_visible is set.
15891144 3131
21f73755
EZ
31322009-05-23 Eli Zaretskii <eliz@gnu.org>
3133
3134 * dired.c (Ffile_attributes): Doc fix.
3135
34001e41
CY
31362009-05-22 Chong Yidong <cyd@stupidchicken.com>
3137
3138 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3139
46306a17
SM
31402009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3141
3142 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3143 and xfont_scratch_props.
3144 (syms_of_xfont): Do it here instead.
3145 (xfont_find_ccl_program): Delete, unused.
3146 (xfont_open): Delete unused var `i'.
3147
ef6e0694
KH
31482009-05-21 Kenichi Handa <handa@m17n.org>
3149
3150 * fontset.c (Qlatin): Don't make it static.
3151
46306a17
SM
3152 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3153 New functions.
ef6e0694
KH
3154 (xfont_scripts_cache, xfont_scratch_props): New variables.
3155 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3156 (xfont_list_pattern): Argument changed. Callers changed.
3157 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3158 (xfont_list): Don't reject a font spec with :script property.
3159 (xfont_has_char): Fix setting of encoding.
3160 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3161 xfont_scratch_props.
3162
31632009-05-19 Kenichi Handa <handa@m17n.org>
3164
46306a17 3165 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3166 Callers changed.
3167
31682009-05-18 Kenichi Handa <handa@m17n.org>
3169
3170 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3171
ac71ced7
SM
31722009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3173
3174 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3175 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3176
1c6d1051
YM
31772009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3178
3179 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3180 (x_delete_terminal): Dissociate resource database from display and
3181 then call XrmDestroyDatabase before closing display.
3182
9b9b779c
AR
31832009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3184
3185 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3186 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3187 whether selected frame is viable before raising it (based on patch
3188 by David Reitter), and improve commentary.
3189 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3190
cccd42d5
KH
31912009-05-15 Kenichi Handa <handa@m17n.org>
3192
3193 * font.c (Ffont_spec): Check arguments.
3194
337fbd17
CY
31952009-05-14 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3198 weight when testing attributes (Bug#3282).
3199
47a6002f
JD
32002009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3201
3202 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3203 what we expect to get in the next ConfigureNotify event.
3204
9cb363db
YM
3205 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3206 before Xft one (Bug#1696).
3207
b9126609
CY
32082009-05-07 David Reitter <david.reitter@gmail.com>
3209
3210 * nsfns.m (Fx_display_planes): Compute bitplanes using
3211 NSBitsPerPixelFromDepth (Bug#3207).
3212
27a69fd9
CY
32132009-05-10 Chong Yidong <cyd@stupidchicken.com>
3214
3215 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3216
00f37552
TTN
32172009-05-10 Ulrich Mueller <ulm@gentoo.org>
3218
3219 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3220
2d82a920
DR
32212009-05-07 David Reitter <david.reitter@gmail.com>
3222
ec7709ba
JB
3223 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3224 Respect mouse face background.
2d82a920 3225
46b0d52d
DR
32262009-05-07 David Reitter <david.reitter@gmail.com>
3227
ec7709ba
JB
3228 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3229 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3230 in ns_update_begin and ns_update_end.
3231
ce1b23bb
SM
32322009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3233
5996e1b7
SM
3234 * nsfns.m (ns_get_screen): Rewrite.
3235 Don't presume selected-frame is of type `ns'.
3236
ba98e3a0
SM
3237 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3238 all drivers.
3239
ce1b23bb
SM
3240 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3241
bcda200f
YM
32422009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3243
3244 * keyboard.h (add_user_signal): Fix typo in extern.
3245
3246 * lisp.h (add_user_signal): Remove extern.
3247
3248 * unexelf.c (unexec): Consider a section to precede the .bss section
3249 if its addresses overlap that of .bss.
3250 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3251 instead of dumping process.
3252
864660a2
SM
32532009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3254
3255 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3256
50da4e56
SM
32572009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3258
3259 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3260
51520a1a
DN
32612009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3262
3263 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3264 any statements.
3265
409ea3a1
AS
32662009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3267
59c4c60f
AS
3268 * process.c (read_process_output): Make sure the current buffer is
3269 always restored.
3270
409ea3a1
AS
3271 * coding.c (record_conversion_result): Don't modify
3272 Vlast_code_conversion_error for successful result.
3273 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3274
56f00ed2
KH
32752009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3276
3277 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3278 (load_charset_map): Remove unnecessary code.
56f00ed2 3279
4491c9d2
DR
32802009-04-30 David Reitter <david.reitter@gmail.com>
3281
35f5b128 3282 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3283 through f24.
3284
6970f632
CY
32852009-04-30 Chong Yidong <cyd@stupidchicken.com>
3286
3287 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3288
3289 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3290 face_at_buffer_position.
3291 (face_before_or_after_it_pos, get_next_display_element)
3292 (note_mouse_highlight): Update face_at_buffer_position call.
3293
3294 * term.c (term_mouse_highlight):
3295 * msdos.c (IT_note_mouse_highlight):
3296 * fontset.c (Finternal_char_font):
35f5b128 3297 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3298
3299 * dispextern.h (face_at_buffer_position): Update prototype.
3300
0c616f63
KH
33012009-04-30 Kenichi Handa <handa@m17n.org>
3302
35f5b128 3303 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3304
ad3aaf33
AS
33052009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3306
3307 * callproc.c (Fcall_process): Fix GC protection. Make sure
3308 current buffer is always restored.
3309
c3c963a0
YM
33102009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3311
3312 * atimer.c (init_atimer): Also clear stopped_atimers.
3313
3314 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3315
7e3386cb
YM
3316 * process.c (create_process): Clean up merger residues of
3317 2008-07-17 change.
3318
91f68422
CY
33192009-04-29 Ulrich Mueller <ulm@gentoo.org>
3320
3321 * lread.c (Vread_circle): New variable.
3322 (read1): Disable recursive read if Vread_circle is nil.
3323
24b34550
KH
33242009-04-29 Kenichi Handa <handa@m17n.org>
3325
3326 * fontset.h (set_default_ascii_font): Delete extern.
3327
3328 * fontset.c (set_default_ascii_font): Delete this unused function.
3329
3330 * frame.c (x_set_font): When ARG is a font-object, check if the
3331 font-object matches with the ASCII font-spec of the frame's
9c358bda 3332 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3333
77bf07e1
AS
33342009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3335
3336 * fns.c (Flocale_info): Protect vector from GC during decoding.
3337
3338 * process.c (Fstart_process): Protect argv strings from GC during
3339 encoding.
3340
2c55aacf
AS
33412009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3342
3343 * sysdep.c: Include <ctype.h>.
3344
b892d3c9
DR
33452009-04-27 David Reitter <david.reitter@gmail.com>
3346
35f5b128 3347 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3348 Remove commented-out code.
3349
9d0644c4
JB
33502009-04-26 Johan Bockgård <bojohan@gnu.org>
3351
3352 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3353
b7053016
JR
33542009-04-25 Jason Rumney <jasonr@gnu.org>
3355
3356 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3357
4e8231f3
YM
33582009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3359
3360 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3361 Swap bytes in short integer if fringe bitmap width > 8.
3362
493dcf2c
KH
33632009-04-23 Kenichi Handa <handa@m17n.org>
3364
3365 * xfaces.c (Fx_list_fonts): If a font size is specified in
3366 PATTERN, set it in returned scalable fonts.
3367
401e9e57
CY
33682009-04-22 Chong Yidong <cyd@stupidchicken.com>
3369
708e05dc
CY
3370 * keyboard.c (Fset_input_meta_mode): Doc fix.
3371
3372 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3373
1ac9108a 3374 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3375
3376 * coding.c (Fterminal_coding_system): Doc fix.
3377
3378 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3379 (Fx_display_pixel_height, Fx_display_planes)
3380 (Fx_display_color_cells, Fx_server_max_request_size)
3381 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3382 (Fx_display_mm_height, Fx_display_mm_width)
3383 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3384 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3385 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3386 (check_x_display_info): Handle terminal objects instead of
3387 terminal ids.
3388
401e9e57
CY
3389 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3390 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3391 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3392 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3393
df80c7f0
KH
33942009-04-21 Kenichi Handa <handa@m17n.org>
3395
5a8f12af 3396 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3397 (font_score): Check AVGWIDTH too.
908567ef 3398
df80c7f0
KH
3399 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3400 worst case.
1ac9108a
SM
3401 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3402 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3403
705af33f
JR
34042009-04-19 Jason Rumney <jasonr@gnu.org>
3405
3406 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3407 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3408
3409 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3410 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3411 get_phys_cursor_geometry.
3412
b71ac3dd 3413 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3414 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3415 using get_phys_cursor_geometry.
3416
3417 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3418 correctly calculated.
3419
dc2933eb
JD
34202009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3421
1ac9108a
SM
3422 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3423 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3424 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3425 is deprecated.
3426
973e7849
AS
34272009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3428
3429 * font.c (font_put_frame_data): Use xfree instead of free.
3430
314d66f4
JB
34312009-04-17 Juanma Barranquero <lekktu@gmail.com>
3432
3433 * w32font.c (Qja, Qko): Remove declarations.
3434 (syms_of_w32font): Don't DEFSYM them.
3435
cf702558
CY
34362009-04-17 Chong Yidong <cyd@stupidchicken.com>
3437
3438 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3439
3440 * font.h (Qja, Qko): Extern them.
3441
3442 * ftfont.c (Qja, Qko): Remove declarations.
3443
3444 * xfont.c (Qja, Qko): Remove declarations.
3445
b50504f5
KH
34462009-04-17 Kenichi Handa <handa@m17n.org>
3447
bde25748
KH
3448 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3449 string from a vector to handle Latin-1 characters correctly.
3450
b50504f5
KH
3451 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3452 entity even if the cache hits.
3453
f4646fff
AS
34542009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3455
3456 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3457 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3458
e7deaab0
AS
3459 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3460 * lisp.h: Adjust prototypes.
3461
0a0e7d49
CY
34622009-04-16 Chong Yidong <cyd@stupidchicken.com>
3463
3464 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3465 change (Bug#3003).
3466
3c908a57
KH
34672009-04-16 Kenichi Handa <handa@m17n.org>
3468
1ac9108a 3469 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3470
3471 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3472 adstyle.
3473
3474 * ftfont.c (Qja, Qko): Don't make them static.
3475 (enum ftfont_cache_for): New enum.
3476 (fc_charset_table): Undo the previous change.
3477 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3478 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3479 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3480 non-scarable font, try to get AVERAGE_WIDTH.
3481 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3482 Change ft_face_cache from a list of a hash-table. Don't check
3483 `ja' and `ko' adstyle here.
3484 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3485 FTFONT_CACHE_FOR_CHARET.
3486 (ftfont_get_charset): Undo the previous change.
1ac9108a 3487 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3488 (ftfont_close): Likewise.
3489 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3490
3491 * font.c (font_sort_entites): Change the meaning of the arg
3492 BEST-ONLY. Don't optimize for VEC of lenght 1.
3493 (font_select_entity): Just return the value of font_sort_entites.
3494
3495 * xfaces.c (merge_face_vectors): Reflect font properties in
3496 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3497 font_clear_prop if a face attribute doesn't change.
3498
3c908a57
KH
3499 * charset.h (charset_ksc5601): Extern it.
3500
3501 * charset.c (charset_ksc5601): New variable.
3502 (Fdefine_charset_internal): Set charset_ksc5601.
3503 (init_charset_once): Initialize charset_ksc5601 to -1.
3504
d65859c3
DN
35052009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3506
3507 * fileio.c (history_delete_duplicates): Remove unused declaration.
3508
3509 * callint.c (history_delete_duplicates): New declaration.
3510 (Fcall_interactively): Remove command history duplicates when
3511 history_delete_duplicates is true.
3512
3ba010e5
EZ
35132009-04-14 Eli Zaretskii <eliz@gnu.org>
3514
3515 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3516
06f19b91
KH
35172009-04-14 Kenichi Handa <handa@m17n.org>
3518
3519 * font.c (Ffont_info): Fix docstring. Fix the second element of
3520 the returned value (bug#2949).
3521
2cce8bfc
CY
35222009-04-14 Chong Yidong <cyd@stupidchicken.com>
3523
3524 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3525
d156542d
KH
35262009-04-14 Kenichi Handa <handa@m17n.org>
3527
3528 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3529 encoding charset is ascii_compatible.
3530
3531 * charset.c (Fdefine_charset_internal): Make charset
3532 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3533 code_offset is 0, and covers all ASCII characters.
3534
86fa089e
SM
35352009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3536
3537 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3538 (ns_string_to_pasteboard_internal):
3539 * nsmenu.m (process_dialog):
3540 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3541 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3542 * lisp.h (Fx_load_color_file): Declare.
3543
a8a3728b
KH
35442009-04-13 Kenichi Handa <handa@m17n.org>
3545
1ac9108a 3546 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3547 (font_select_entity): Suppress the code to optimize for the same
3548 kind of fonts.
3549 (font_load_for_lface): Get a font that supports at least ASCII
3550 characters.
3551
3552 * ftfont.c (Qja, Qko): New variables.
3553 (fc_charset_table): Delete uniquifier data for iso8859-1.
3554 (ftfont_get_latin1_charset): New function.
3555 (get_adstyle_property): New function.
3556 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3557 bitmap fonts.
3558 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3559 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3560 `ko' or `ja'.
3561 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3562 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3563 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3564 property.
3565 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3566 (syms_of_ftfont): DEFSYM Qja and Qko.
3567
483670b5
KH
35682009-04-09 Kenichi Handa <handa@m17n.org>
3569
12b55765
KH
3570 * charset.c (map_charset_chars): For a charset of `superset'
3571 method, fix calculation of code range.
3572
483670b5
KH
3573 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3574 from the list of extra properties.
3575 (font_clear_prop): Be sure to delete `:name' font property.
3576
57d3b93b
KH
35772009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3578
b4b2c2ca
YM
3579 * dispnew.c (redraw_overlapping_rows): Fix detection of
3580 overlapping for topmost and bottommost rows.
3581
1ac9108a 3582 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3583
472c3609
JR
35842009-04-06 Jason Rumney <jasonr@gnu.org>
3585
3586 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3587
ab193662
KH
35882009-04-06 Kenichi Handa <handa@m17n.org>
3589
3590 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3591
3592 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3593
0c26f026
KH
35942009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3595
3596 * ftfont.c (ftfont_open): Fix checking of the return value of
3597 FT_Load_Char. Fix setting font->underline_thickness.
3598
e173bbce
CY
35992009-04-04 Chong Yidong <cyd@stupidchicken.com>
3600
3601 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3602 (Fterminal_parameters, Fterminal_parameter)
3603 (Fset_terminal_parameter): In doc string, refer to terminal
3604 objects rather than terminal ids.
3605
693a2698
EZ
36062009-04-04 Eli Zaretskii <eliz@gnu.org>
3607
3608 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3609 ret_lim_data. (Bug#2867)
3610
d5221487
CY
36112009-04-03 Chong Yidong <cyd@stupidchicken.com>
3612
3613 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3614 so they don't get wider than the window, matching 2006-01-23
3615 change to the partner function in xdisp.c (Bug#2800).
3616
223509a3
KH
36172009-04-03 Kenichi Handa <handa@m17n.org>
3618
3619 * print.c (print_object): Make each lowest sub_char_table start a
3620 new line (Bug#2866).
3621
74fcd0b1
KH
36222009-04-02 Kenichi Handa <handa@m17n.org>
3623
3624 * fontset.c (fontset_font): Record no-font when a fontset
3625 explicitly tells not to try another font-specs.
3626
c542407d
SM
36272009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3628
3629 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3630
e3869731
KH
36312009-03-30 Kenichi Handa <handa@m17n.org>
3632
d8d2f142
KH
3633 * fontset.c (fontset_from_font): Specify only registry in a
3634 font-spec for all characters supported by that registry.
3635
e3869731
KH
3636 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3637 even if HAVE_M17N_FLT is not defined.
3638
5da5f805
CY
36392009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3640
3641 * ftfont.c: Conditionalize prototyping and use of
3642 ftfont_variation_glyphs.
3643
ab226c50
SM
36442009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3645
9628fed7
SM
3646 * frame.c (delete_frame): Work around compiler bug.
3647
3648 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3649 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3650 Some more EMACS_INT.
3651 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3652
3653 * xdisp.c (dump_glyph): Fix typo.
3654
ae19ba7c
SM
3655 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3656 (adjust_markers_gap_motion, adjust_markers_for_delete)
3657 (adjust_markers_for_insert, adjust_point)
3658 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3659 (make_gap, copy_text, count_size_as_multibyte, insert)
3660 (insert_and_inherit, insert_before_markers)
3661 (insert_before_markers_and_inherit, insert_1)
3662 (count_combining_before, count_combining_after, insert_1_both)
3663 (insert_from_string, insert_from_string_before_markers)
3664 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3665 (insert_from_buffer_1, adjust_after_replace)
3666 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3667 (replace_range_2, del_range, del_range_1, del_range_byte)
3668 (del_range_both, del_range_2, modify_region)
3669 (prepare_to_modify_buffer, signal_before_change)
3670 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3671 for buffer positions and sizes.
3672 * lisp.h: Adjust prototypes accordingly.
3673
3674 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3675 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3676 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3677
ab226c50
SM
3678 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3679
46dfb8fb
JD
36802009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3681
3682 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3683 lines and columns so we keep the same pixel height and width.
3684
3685 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3686 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3687 (x_handle_net_wm_state): New function to update frame parameter
3688 fullscreen.
3689 (x_term_init): Initialize atoms for _NET_WM_STATE.
3690
3691 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3692
d347e494
SM
36932009-03-27 Kevin Ryde <user42@zip.com.au>
3694
3695 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3696 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3697 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3698 (Fgpm_mouse_stop): Pass that new parameter.
3699 * termhooks.h (close_gpm): Adjust prototype.
3700
84db11d6
SM
37012009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3702
c95a5008
SM
3703 * lisp.h (Fx_focus_frame): Declare.
3704
84db11d6
SM
3705 * callint.c (Fcall_interactively): For '^' just delegate the work to
3706 handle-shift-selection.
3707 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3708
0a1958d6
CY
37092009-03-24 Chong Yidong <cyd@stupidchicken.com>
3710
0bfdff23
CY
3711 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3712
0a1958d6
CY
3713 * data.c (Qinteractive_form): New variable.
3714 (Finteractive_form): Use it.
3715
3716 * eval.c (Fcommandp): Use Qinteractive_form.
3717
58aec0d6
JR
37182009-03-24 Jason Rumney <jasonr@gnu.org>
3719
3720 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3721 Calculate total size precisely. Decode environment variables
3722 before substituting. (Bug#38)
3723
553dd618
KH
37242009-03-24 Kenichi Handa <handa@m17n.org>
3725
3726 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3727 encoding (Bug#2722).
553dd618 3728
c39ea606
JD
37292009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3730
3731 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3732 that gdpy is set.
3733
bc9b2b5e
AM
37342009-03-22 Alan Mackenzie <acm@muc.de>
3735
3736 * callint.c (Finteractive): Clarify the doc string - even
3737 promptless elements need \n separators.
3738
9f995a76
JR
37392009-03-22 Jason Rumney <jasonr@gnu.org>
3740
3741 * w32term.c (syms_of_w32term): Doc fix for
3742 x-use-underline-position-properties.
3743
22749e9a
EZ
37442009-03-21 Eli Zaretskii <eliz@gnu.org>
3745
3746 * w32.c (getpwuid): Change argument type to unsigned.
3747 (struct w32_id): Change type of `rid' member to unsigned.
3748 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3749 argument ID to unsigned. All callers changed.
3750 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3751
e00553bf
EZ
37522009-03-20 Eli Zaretskii <eliz@gnu.org>
3753
3754 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3755 negative, produce a float value.
3756
3757 * dired.c (make_uid, make_gid): New functions.
3758 (Ffile_attributes): Use them to avoid negative UID and GID.
3759
f761d6b6
JB
37602009-03-20 Juanma Barranquero <lekktu@gmail.com>
3761
3762 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3763 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3764 Fix typos in docstrings.
3765
d507f8d7
KH
37662009-03-19 Kenichi Handa <handa@m17n.org>
3767
3768 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3769 changed, use font_load_for_lface to get a new font object.
3770 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3771
3772 * frame.c (x_set_font): Handle the case that ARG is a cons.
3773
c68845e0
GM
37742009-03-19 Glenn Morris <rgm@gnu.org>
3775
3776 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3777
bfa49dd1
CY
37782009-03-19 Chong Yidong <cyd@stupidchicken.com>
3779
3780 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3781
8458d4c1
KH
37822009-03-19 Kenichi Handa <handa@m17n.org>
3783
3784 * charset.c (load_charset_map_from_file): When a mapfile can't be
3785 loaded, signal an error.
3786
78e7d1fe
EZ
37872009-03-18 Eli Zaretskii <eliz@gnu.org>
3788
3789 * dired.c (Ffile_attributes): Make sure UID and GID are always
3790 positive, even if the value is too large for a positive EMACS_INT.
3791 Doc fix.
3792
3793 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3794
5da9fdfa
YM
37952009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3796
3797 * xmenu.c (xdialog_show): Move Fredisplay call ...
3798 (Fx_popup_dialog): ... here.
3799
7519c40d
SM
38002009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3801
3802 * dired.c (file_name_completion): Disable the first optimization just
3803 installed, since it is not implemented correctly.
3804
2cd298e2
SM
38052009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3806
3807 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3808 only if the entry can affect bestmatch.
2cd298e2
SM
3809 Stop the search early, as Ftry_completion already does.
3810
48d37adf
CY
38112009-03-17 Chong Yidong <cyd@stupidchicken.com>
3812
e10c9c93 3813 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3814
9286b16a
CY
38152009-03-15 Chong Yidong <cyd@stupidchicken.com>
3816
3817 * keyboard.c (parse_menu_item): Don't display remappings as menu
3818 equivalent bindings (Bug#788).
3819
f7b146dc
JR
38202009-03-15 Jason Rumney <jasonr@gnu.org>
3821
3822 * w32term.h (WM_EMACS_PAINT): New message.
3823 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3824 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3825 before passing to lisp thread. (Bug#950)
3826
f761d6b6 38272009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3828
d93f9575
CY
3829 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3830 variable as it was never reset.
3831 (ns_term_init): Remove initialization of Lisp-settable defaults
3832 and ns_expand_space.
3833 (-setPanelFromDefaultValues): Remove ns_expand_space.
3834 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3835 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3836 i.e. no additional spacing, similar to Carbon port.
3837
d93f9575
CY
3838 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3839 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3840
305018ec
JD
38412009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3842
3843 * sound.c (alsa_configure): Remove call to deprecated
3844 snd_pcm_sw_params_set_xfer_align.
3845
f761d6b6 38462009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3847
3848 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3849 after clicking in a detached tool bar.
3850 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3851
46e722a9
SM
38522009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3853
348db3dd
SM
3854 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3855 int/Lisp_Object mixup).
46e722a9 3856
a3d16f39
KH
38572009-03-13 Kenichi Handa <handa@m17n.org>
3858
3859 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3860 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3861 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3862 (set_fontset_font): Change ARG to a vector. Handle range_list in
3863 ARG correctly.
3864 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3865 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3866 the above change.
3867 (fontset_from_font): Fix previous change.
fe24f56a 3868 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3869 entry. If FONTSET is the default fontset, don't set the extra
3870 slot of the returning char-table.
3871
b066e6b6
JB
38722009-03-12 Juanma Barranquero <lekktu@gmail.com>
3873
3874 * nsfns.m (Fx_close_connection): Doc fix.
3875 (Fns_do_applescript): Reflow docstring.
3876 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3877 (Fx_display_pixel_width, Fx_display_pixel_height)
3878 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3879 Fix typos in docstrings.
3880 (Fns_set_alpha): Fix typos in error messages.
3881
d472514e 38822009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3883
d472514e 3884 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3885 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3886 were used for such events.
3887
d472514e
JB
3888 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3889 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3890
d472514e 3891 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3892 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3893
fb930676
KH
38942009-03-11 Kenichi Handa <handa@m17n.org>
3895
ff85581a
KH
3896 * font.h (font_open_by_spec): Extern it.
3897
c50b7e98
KH
3898 * font.c (font_open_by_spec): New function.
3899 (font_open_by_name): Use font_open_by_spec.
3900
fb930676
KH
3901 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3902 fontset of the frame.
3903
3904 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3905 modify the default font of frames that use this fontset.
3906 (num_auto_fontsets): New variable.
3907 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3908 name. Be sure to set FONTSET_ASCII to the correct font name.
3909 (update_auto_fontset_alist): New function.
3910
df4e8455
JB
39112009-03-11 Juanma Barranquero <lekktu@gmail.com>
3912
3913 * makefile.w32-in: Update dependencies.
3914
0a375797
AR
39152009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3916
3917 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3918
61313fa3
SM
39192009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3920
3921 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3922
b55103fb
CY
39232009-03-10 Chong Yidong <cyd@stupidchicken.com>
3924
3925 * lread.c (Feval_buffer): Doc fix.
3926
dde2559c
KH
39272009-03-09 Kenichi Handa <handa@m17n.org>
3928
3929 * charset.c (Qfile_name_handler_alist): Extern it.
3930 (load_charset_map_from_file): Temporarily bind
3931 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3932
df4e8455 39332009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3934
47f588bb
GM
3935 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3936 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3937
4ddf94bd
AR
39382009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3939
4c9bdfc2
AR
3940 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3941 (x_set_window_size): Change back to calculated method of setting
3942 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3943 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3944 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3945
fe41ae9e
AR
3946 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3947
4c9bdfc2
AR
3948 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3949 accelerator in parens under GNUstep.
3950
825d0875
KH
39512009-03-06 Kenichi Handa <handa@m17n.org>
3952
3953 These changes are to detect incorrect composition sequence without
f3b3be74 3954 looking ahead the source. (Bug#2370)
825d0875
KH
3955
3956 * coding.h: Include "composite.h".
3957 (enum compisition_state): New enum.
3958 (struct compisition_status): New struct.
3959 (struct iso_2022_spec): New member cmp_status.
3960 (struct emacs_mule_spec): New struct.
3961 (struct coding_system): New members ctext_extended_segment_len and
3962 embedded_utf_8. Change the union member
3963 spec.emacs_mule_full_support to spec.emacs_mule.
3964
3965 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3966 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3967 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3968 (ADD_COMPOSITION_DATA): New arg nbytes.
3969 (emacs_mule_char): New arg cmp_status.
3970 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3971 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3972 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3973 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3974 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3975 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3976 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3977 (EMACS_MULE_COMPOSITION_END): New macro.
3978 (emacs_mule_finish_composition): New function.
3979 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3980 (decode_coding_emacs_mule): Avoid long looking ahead while
3981 handling composition.
3982 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3983 (ENCODE_COMPOSITION_RULE): New macro.
3984 (finish_composition): New function.
3985 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3986 (DECODE_COMPOSITION_START): New implementation.
3987 (DECODE_COMPOSITION_END): Likewise.
3988 (STORE_COMPOSITION_RULE): New macro.
3989 (decode_coding_iso_2022): Avoid long looking ahead while handling
3990 composition, CTEXT extended segment, and embedded UTF-8.
3991 (setup_coding_system): For a coding of type iso-2022, reset
3992 CODING_ISO_EXTSEGMENT_LEN (coding) and
3993 CODING_ISO_EMBEDDED_UTF_8 (coding).
3994 (get_translation): Delete arguments last_block, from_nchars,
3995 to_nchars. Callers changed.
3996 (produce_chars): Don't modify charbuf. Adjusted for the change of
3997 get_translation.
98a326f7 3998 (produce_composition): Adjust for the new annotation sequence.
825d0875 3999 (handle_composition_annotation): Likewise.
98a326f7 4000 (consume_chars): Adjust for the change of get_translation.
825d0875 4001
ccbc4452
AR
40022009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4003
4ddf94bd 4004 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4005
988a7ddb
KH
40062009-03-05 Kenichi Handa <handa@m17n.org>
4007
4008 * font.c (font_select_entity): New function.
4009 (font_find_for_lface): Use font_select_entity to select a font.
4010
4011 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4012 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4013 font with C restriction.
4014
98a326f7 40152009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4016
be1bce46 4017 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4018
10ea2b82
JR
40192009-03-04 Jason Rumney <jasonr@gnu.org>
4020
2c93b248 4021 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4022 characters that have already been read. (Bug#2569)
2c93b248 4023
10ea2b82
JR
4024 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4025 Log an error message if check_image_size failed.
4026 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4027 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4028
71a0c011
EZ
40292009-03-02 Eli Zaretskii <eliz@gnu.org>
4030
4031 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4032 when decoding process output.
4033
2f63bba8
RS
40342009-03-01 Richard M Stallman <rms@gnu.org>
4035
4036 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4037
4038 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4039
0a9564cb
EZ
40402009-02-28 Eli Zaretskii <eliz@gnu.org>
4041
4042 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4043 (decode_coding_emacs_mule, decode_coding_iso_2022)
4044 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4045 (decode_coding_raw_text, decode_coding_charset)
4046 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4047 Honor inhibit-eol-conversion. (Bug #2186)
4048
449148b3
JR
40492009-02-28 Jason Rumney <jasonr@gnu.org>
4050
4051 * coding.c (detect_coding_charset): If not checking latin extra,
4052 fail on characters between 0x80 and 0xA0. (Bug#2354)
4053
a4aee864
EZ
40542009-02-28 Eli Zaretskii <eliz@gnu.org>
4055
4056 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4057 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4058
d88bee5a
GM
40592009-02-27 Glenn Morris <rgm@gnu.org>
4060
4061 * callint.c (Finteractive): Doc fix.
4062
a808f22d
KH
40632009-02-27 Kenichi Handa <handa@m17n.org>
4064
4065 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4066
caf8d60c
CY
40672009-02-27 Chong Yidong <cyd@stupidchicken.com>
4068
4069 * font.c (font_style_to_value): Set value for unknown symbols to
4070 100 instead of 255.
b61137ea
CY
4071 (weight_table, slant_table, width_table): Treat "unspecified" as
4072 the default value.
caf8d60c 4073
1a0de25c
JB
40742009-02-26 Juanma Barranquero <lekktu@gmail.com>
4075
4076 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4077
8fc45744
JB
40782009-02-25 Juanma Barranquero <lekktu@gmail.com>
4079
107bd7d1
JB
4080 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4081 error as soon as a recursive load is detected.
8fc45744 4082
f097e223
AR
40832009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4084
4085 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4086 before caching.
4087
8810a12f
KH
40882009-02-24 Kenichi Handa <handa@m17n.org>
4089
4090 * fontset.c (fontset_find_font): Fix the condition for checking
4091 unavailable font.
4092
2c7d1565
GM
40932009-02-24 Glenn Morris <rgm@gnu.org>
4094
4095 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4096 whitespace that confuses documentation.
4097
a20878b6
MB
40982009-02-23 Miles Bader <miles@gnu.org>
4099
4100 * process.c (Flist_system_processes, Fprocess_attributes)
4101 (syms_of_process): Rename `system-process-attributes' to
4102 `process-attributes'.
4103
b3b58c01
AS
41042009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4105
1b3b981b
AS
4106 * coding.h (struct coding_system): Make safe_charsets a pointer to
4107 unsigned char.
4108 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4109 being 255.
4110 (SAFE_CHARSET_P): Likewise.
4111 (setup_iso_safe_charsets): Properly setup safe_charsets.
4112 (Fdefine_coding_system_internal): Likewise.
4113 (setup_coding_system): Likewise. Remove unneeded casts.
4114 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4115 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4116 unneeded casts.
4117
b3b58c01
AS
4118 * insdel.c (del_range_2): Don't modify gap contents when called
4119 from decode_coding_object. (Bug#1809)
4120
0b6f228c
CY
41212009-02-21 Chong Yidong <cyd@stupidchicken.com>
4122
4123 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4124 Qfont_object.
4125 (Ftype_of): Recognize font objects.
4126
4127 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4128
4129 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4130 moved to data.c.
4131
52f8870b
AR
41322009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4133
4134 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4135 async_iconified. Based on a patch by Christian Lynbech
4136 <christian.lynbech@tieto.com>.
4137 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4138
7087d5e9
GM
41392009-02-20 Glenn Morris <rgm@gnu.org>
4140
4141 * syntax.c (Fskip_chars_forward): Fix doc typo.
4142
41d2ceef
CY
41432009-02-20 Chong Yidong <cyd@stupidchicken.com>
4144
4145 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4146
1a3b7ca6
CY
41472009-02-19 Chong Yidong <cyd@stupidchicken.com>
4148
4149 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4150
73cce38d
KH
41512009-02-19 Kenichi Handa <handa@m17n.org>
4152
4153 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4154 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4155
a51092ee
DN
41562009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4157
4158 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4159
c423ecca
KH
41602009-02-18 Kenichi Handa <handa@m17n.org>
4161
4162 * font.c (font_check_otf_features): Fix handling of `nil' element.
4163 (Ffont_spec): Describe :lang and :otf in the docstring.
4164
4c1958f4
AS
41652009-02-16 Andreas Schwab <schwab@suse.de>
4166
4167 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4168 string.
4169
5704f39a
KH
41702009-02-16 Kenichi Handa <handa@m17n.org>
4171
4172 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4173 (Bug#1723)
5704f39a 4174
8f0085aa
CY
41752009-02-14 Chong Yidong <cyd@stupidchicken.com>
4176
a057d86a 4177 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4178
4179 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4180 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4181
aff01dd9
EZ
41822009-02-14 Eli Zaretskii <eliz@gnu.org>
4183
4184 * msdos.c (MAX_SCREEN_BUF): New macro.
4185 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4186 Encode the entire run of glyphs sharing the same face, instead of
4187 doing that one glyph at a time (fixes a bug with displaying
4188 double-size characters).
4189
ba301db3
AR
41902009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4191
4192 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4193
4194 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4195 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4196 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4197
4198 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4199 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4200
51d861de
SM
42012009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4202
ac146f82 4203 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4204 invisible areas.
4205
7fed8996
JR
42062009-02-12 Jason Rumney <jasonr@gnu.org>
4207
631ea4fb
JR
4208 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4209 (add_font_entity_to_list): Call check_face_name even when family
4210 is unspecified.
4211
cb4a3e42
JR
4212 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4213 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4214 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4215
7fed8996 4216 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4217 raster fonts. (Bug#2219)
7fed8996 4218
895416e3
KH
42192009-02-12 Kenichi Handa <handa@m17n.org>
4220
4221 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4222 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4223 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4224 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4225 (find_automatic_composition): While looking forward and backward,
4226 check static composition. Fix where to stop looking forward.
4227 (composition_adjust_point): Fix checking of static composition.
4228 (Fcomposition_get_gstring): Pay attention to
1dacf998 4229 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4230
4231 * lisp.h (fast_looking_at): Extern it.
4232
4233 * search.c (fast_looking_at): New function.
4234
51d861de 4235 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4236 <struct glyph>.u.cmp.to.
4237 (append_composite_glyph): Likewise.
4238
51d861de 4239 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4240 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4241 composition.
51d861de 4242 (append_composite_glyph): Adjust for the change of
895416e3
KH
4243 <strcut glyph>.u.cmp.to.
4244
8510724d
JB
42452009-02-11 Juanma Barranquero <lekktu@gmail.com>
4246
4247 * casetab.c (init_casetab_once):
4248 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4249 * font.c (font_update_lface):
4250 * fontset.c (Fnew_fontset):
4251 * ftfont.c (ftfont_drive_otf):
4252 * xfont.c (xfont_open):
4253 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4254
294fa707
SM
42552009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4256
4257 * fileio.c (Fwrite_region): !NILP -> CONSP.
4258
b5bfebec
AS
42592009-02-10 Andreas Schwab <schwab@suse.de>
4260
4261 * process.c (send_process): Properly relocate pointer into data
adab88bd 4262 when using encoded data. (Bug#2272)
b5bfebec 4263
cb84a2be
KH
42642009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4265
4266 * coding.c (detect_coding_charset): Fix previous change.
4267
89e09428
JR
42682009-02-08 Jason Rumney <jasonr@gnu.org>
4269
4270 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4271 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4272
4470a277
AS
42732009-02-07 Andreas Schwab <schwab@suse.de>
4274
4275 * unexelf.c (unexec): Fix error message.
4276
3175b12a
AR
42772009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4278
4279 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4280 when modal window is active. (Bug #2152)
3175b12a
AR
4281 (applicationShouldTerminate:): Remove now-unneeded while loop
4282 around NSRunAlertPanel.
4283
4284 * nsmenu.m (popupSession): New file-global variable.
4285 (pop_down_menu): End the popupSession before closing dialog.
4286 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4287 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4288 don't query NSApp for events (just sleep instead).
4289
8434d0b8
EZ
42902009-02-07 Eli Zaretskii <eliz@gnu.org>
4291
51d861de
SM
4292 * coding.c (syms_of_coding) <translation-table-for-input>:
4293 Modify doc string to discourage use for character code unification.
8434d0b8 4294
aa82edfd
CY
42952009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4296
4297 * atimer.c (run_timers): Update pending_atimers.
4298
2d283c7c
CY
42992009-02-06 Chong Yidong <cyd@stupidchicken.com>
4300
eb306cab
CY
4301 * image.c (svg_load_image): Fix last change.
4302
2d283c7c
CY
4303 * xfns.c (Fx_create_frame): Signal an error if no font is
4304 found (Bug#2147).
4305
4d8e170e
JB
43062009-02-05 Juanma Barranquero <lekktu@gmail.com>
4307
4308 * character.c (syms_of_character) <script-representative-chars>:
4309 Fix typo in docstring.
4310
c96169a0
AR
43112009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4312
4313 * nsmenu.m (pop_down_menu): New function.
4314 (ns_popup_dialog): Call it on unwind.
4315 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4316 call timer_check() (Bug#2154).
4317 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4318 handling_signal is set.
4319 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4320
31fd7c5c 4321 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4322
4323 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4324
4325 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4326
51d861de
SM
4327 * keyboard.c (poll_for_input_1, handle_async_input):
4328 Set handling_signal under HAVE_NS.
c96169a0 4329
aacd8ba1
GM
43302009-02-04 Glenn Morris <rgm@gnu.org>
4331
4332 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4333
4cb75c4b
KH
43342009-02-04 Kenichi Handa <handa@m17n.org>
4335
4336 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4337
4338 * charset.c (Fchar_charset): New optional arg restriction.
4339
4340 * coding.h (coding_system_charset_list): Extern it.
4341
4342 * coding.c (coding_system_charset_list): New function.
4343
4344 * composite.c: Include coding.h and termhooks.h.
4345 (composition_gstring_p): Fix for the terminal case.
4346 (composition_gstring_width): Likewise.
4347 (fill_gstring_body): Likewise.
4348 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4349 the frame.
4350 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4351 is within a composition.
867d4bb3 4352 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4353
4354 * term.c (encode_terminal_code): Fix handling of composition.
4355 (produce_composite_glyph): For static composition, get pixel_width
4356 from struct composition.
4357
826ba17e
AS
43582009-02-02 Andreas Schwab <schwab@suse.de>
4359
4360 * unexelf.c (unexec): Handle unaligned bss offset.
4361
8ad093db
AR
43622009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4363
4364 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4365 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4366
8ad093db
AR
4367 * keyboard.c (handle_interrupt): Don't call
4368 quit_throw_to_read_char() under NS.
d0a76a6e 4369
8ad093db
AR
4370 * blockinput.h: Remove NS-specific code.
4371
4d18a7a2
DN
43722009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4373
db878925
DN
4374 * dispnew.c (window_change_signal): Don't try to get the size of a
4375 suspended tty frame.
4376 * term.c (Fresume_tty): Resize if the size has changed while the
4377 tty was suspended.
4378
4d18a7a2
DN
4379 * alloc.c (mark_stack): Properly conditionalize previous change.
4380
8984df7c
JB
43812009-01-30 Juanma Barranquero <lekktu@gmail.com>
4382
4383 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4384 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4385 Remove; this code is not used on Windows.
4386
75f4f1ac
EZ
43872009-01-30 Eli Zaretskii <eliz@gnu.org>
4388
4389 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4390 EOLs that also has stray ^M characters.
4391
07a1e794
JB
43922009-01-30 Juanma Barranquero <lekktu@gmail.com>
4393
4394 * atimer.c (run_timers, alarm_signal_handler):
4395 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4396 * w32inevt.c (w32_console_read_socket):
4397 * w32term.c (w32_read_socket):
4398 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4399
a8b11cc9
CY
44002009-01-30 Chong Yidong <cyd@stupidchicken.com>
4401
4402 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4403 Initialize it as a relative filename pattern.
4404 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4405 (Fcall_process_region): Simplify temp file creation using
4406 temporary-file-directory.
4407
c279587b
EZ
44082009-01-29 Eli Zaretskii <eliz@gnu.org>
4409
4410 * msdos.c: Rename pending_signals to msdos_pending_signals.
4411 (sig_suspender, sigprocmask): Adjust.
4412
a8fe3242
CY
44132009-01-29 Chong Yidong <cyd@stupidchicken.com>
4414
4415 * keyboard.c (pending_signals): New var.
4416 (poll_for_input, input_available_signal, init_keyboard): Set it.
4417 (process_pending_signals): New function.
4418
4419 * lisp.h (QUIT): Check pending_signals instead of
4420 interrupt_input_pending. Use process_pending_signals.
4421
51d861de 4422 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4423
51d861de 4424 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4425
4426 * sysdep.c (emacs_write): Use process_pending_signals.
4427
4428 * xterm.c (XTread_socket): Update pending_signals.
4429
4430 * w32term.c (w32_read_socket): Update pending_signals.
4431
4432 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4433
6570a1c4
KH
44342009-01-29 Kenichi Handa <handa@m17n.org>
4435
4436 * xftfont.c (xftfont_has_char): New function.
4437 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4438
d72a4afa
AR
44392009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4440
4441 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4442 under GNUstep.
4443 (ns_query_color): New declaration.
4444
4445 * nsterm.m (ns_confirm_quit): New variable.
4446 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4447 (EmacsApp-applicationShouldTerminate:): Use it.
4448 (EmacsPrefsController): Let user set it.
4449 (ns_query_color): New function.
4450 (ns_defined_color): Use it.
4451 (ns_initialize): Drop.
4452 (ns_term_init): Add two lines from ns_initialize(), and set
4453 input_interrupt_mode to nil.
4454
4455 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4456 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4457
9fe78804
KH
44582009-01-28 Kenichi Handa <handa@m17n.org>
4459
4460 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4461 (fontset_get_font_group): Remember that no font-group is specified
4462 for C.
9fe78804 4463
fa57de36
CY
44642009-01-27 Chong Yidong <cyd@stupidchicken.com>
4465
930600e9
CY
4466 * fns.c (concat): Check for string overflow (bug#1787).
4467
fa57de36
CY
4468 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4469 Quadruple undo limits (bug#1501).
4470
7179ce7b
KH
44712009-01-27 Kenichi Handa <handa@m17n.org>
4472
4473 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4474 directly use GT_Get_Char_index.
4475
4476 * xftfont.c (struct xftfont_info): New member `index'.
4477
4478 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4479 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4480
5be8fcc0
CY
44812009-01-26 Kenichi Handa <handa@m17n.org>
4482
4483 * fontset.c (fontset_find_font): Fix handling of non-cons return
4484 value of fontset_get_font_group.
4485 (fontset_font): Revert last change.
4486
19ae3e61
JR
44872009-01-26 Jason Rumney <jasonr@gnu.org>
4488
4489 * w32font.c (w32font_list_internal): Return quickly if registry is
4490 unknown. Simplify final return.
4491 (add_font_entity_to_list): Break complex logic down into more
4492 manageable chunks. Move unknown registry check to
4493 w32font_list_internal.
4494
8612b71a
AR
44952009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4496
4497 Changes to remove Feval calls from GUI under NS.
4498
d8038940
JB
4499 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4500 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4501 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4502
4503 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4504 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4505 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4506 instead of NON_ASCII_KEYSTROKE_EVENT.
4507 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4508 (EmacsApp-applicationShouldTerminate:): Query user.
4509 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4510 instead of Feval.
4511
4512 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4513
4514 * keyboard.c (kbd_buffer_get_event): Check for it.
4515 (keys_of_keyboard): Define lispy keys for
4516 ns-put/unput-working-text.
4517
4518 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4519 versions.
4520 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4521
6288ae55
CY
45222009-01-25 Chong Yidong <cyd@stupidchicken.com>
4523
4524 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4525 setting current_buffer directly. (Bug#2044)
6288ae55 4526
289e7f8f
CY
45272009-01-24 Chong Yidong <cyd@stupidchicken.com>
4528
5ce87308 4529 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4530 any work. (Bug#1952, bug#1990).
5ce87308 4531
64cc3cf6 4532 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4533
b3243e6f
AR
45342009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4535
4536 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4537 (ns_no_defaults): New declaration.
4538 (main): Use it.
e0d2e69a 4539
d900b2af 4540 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4541
d900b2af 4542 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4543
d900b2af
AR
4544 * nsterm.m (ns_no_defaults): New variable.
4545 (ns_initialize): Don't read defaults when ns_no_defaults.
4546 (EmacsView-readSelectionFromPasteboard:)
4547 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4548 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4549 (ns_dumpglyphs_stretch): New function.
4550 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4551 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4552
e0d2e69a
AR
4553 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4554
3ac71f5d
CY
45552009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4556
4557 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4558 call for Sparc64.
4559
3fe53a83
AR
45602009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4561
4562 * nsfns.m:
4563 * nsgui.h:
4564 * nsmenu.m:
4565 * nsselect.m:
4566 * nsterm.h:
4567 * nsterm.m: Remove '23' comments that indicated code added during
4568 update from emacs-20 -> emacs-23.
4569
10f87c6f 45702009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4571
4572 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4573 ns_alternate_modifier. (Bug#1217)
a3b53a85 4574
c7cef62d
AR
4575 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4576 Display all shortcuts, including those w/o super modifier.
4577
575fb8bd
AR
4578 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4579
918b848b
CY
45802009-01-22 Chong Yidong <cyd@stupidchicken.com>
4581
4582 * fileio.c (Vwrite_region_post_annotation_function)
4583 (Vwrite_region_annotation_buffers): New vars.
4584 (build_annotations_unwind): Just reset
4585 Vwrite_region_annotation_buffers.
4586 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4587 Call write-region-post-annotation-function.
4588 (build_annotations): Add to Vwrite_region_annotation_buffers if
4589 buffer changes.
4590
a39e2539
AR
45912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4592
4593 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4594 Tiger.
51d861de
SM
4595 * nsfns.m (ns_do_applescript):
4596 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4597
35ed44db
AR
45982009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4599
4600 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4601
cbe0b5bf
AR
46022009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4603
4604 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4605
6049d3a0
AR
4606 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4607
4608 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4609 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4610 handle Ctrl-tab. (Bug#1841)
4611 (ns_get_color): Use unsigned long long for scanned hex string value.
4612 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4613 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4614 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4615 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4616 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4617 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4618 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4619
d3810c21 4620 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4621 DPI. (Bug#1316)
d3810c21
AR
4622 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4623 values in onTiger section.
4c7077c3 4624
e301e634
CY
46252009-01-19 Chong Yidong <cyd@stupidchicken.com>
4626
7f82490b
CY
4627 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4628 Check return value of font_spec_from_name.
64cc3cf6 4629 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4630
4631 * font.c (font_spec_from_name): Return Qnil if font name could not
4632 be parsed.
4633 (font_parse_name): Treat a `?' character as part of an XLFD.
4634
e301e634
CY
4635 * fns.c (Fsubstring): Doc fix.
4636
1c0db158
KH
46372009-01-19 Kenichi Handa <handa@m17n.org>
4638
51d861de 4639 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4640 (ftfont_list): Likewise.
4641
acf20901
JB
46422009-01-18 Juanma Barranquero <lekktu@gmail.com>
4643
fff4e459
JB
4644 * dbusbind.c (Fdbus_register_signal):
4645 * process.c (conv_sockaddr_to_lisp):
4646 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4647
acf20901
JB
4648 * callproc.c (Fgetenv_internal): Doc fix.
4649
e7abcdfb
CY
46502009-01-16 Chong Yidong <cyd@stupidchicken.com>
4651
4652 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4653 it is not even used.
4654
b60861e6
GM
46552009-01-16 Glenn Morris <rgm@gnu.org>
4656
4657 * font.c (Ffont_variation_glyphs): Silence compiler.
4658
8db52afe
JB
46592009-01-15 Juanma Barranquero <lekktu@gmail.com>
4660
4661 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4662 Reported by David Robinow <drobinow@gmail.com>.
4663
4cddb209
KH
46642009-01-15 Kenichi Handa <handa@m17n.org>
4665
51d861de 4666 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4667
f247f67b
JR
46682009-01-14 Jason Rumney <jasonr@gnu.org>
4669
4670 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4671 never a fontset. (Bug#1562)
f247f67b 4672
f56a4450
KH
46732009-01-14 Kenichi Handa <handa@m17n.org>
4674
4675 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4676 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4677
4e99855e
CY
46782009-01-13 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * font.c (font_clear_prop): If clearing the family, clear the font
4681 width index too.
4682
fff4e459 4683 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4684
24f01470
JB
46852009-01-12 Juanma Barranquero <lekktu@gmail.com>
4686
4687 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4688 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4689 functions, use sizeof.
4690
a41240a3
MR
46912009-01-12 Martin Rudalics <rudalics@gmx.at>
4692
4693 * keyboard.c (read_char): Fix case where last_nonmenu_event
4694 returned a bad value with submenus. (Bug#447)
4695
944636b8
CY
46962009-01-12 Chong Yidong <cyd@stupidchicken.com>
4697
4698 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4699 family, clear the font width index too.
4700
0dad7c6f
JR
47012009-01-11 Jason Rumney <jasonr@gnu.org>
4702
4703 * keyboard.c (cmd_error_internal): Exit when errors occur before
4704 frame creation and not in daemon mode. (Bug#1836)
4705
7c2363af
CY
47062009-01-10 Chong Yidong <cyd@stupidchicken.com>
4707
4708 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4709 of a display vector, backtrack.
4710 (try_window_reusing_current_matrix): Check glyph type before
4711 referencing charpos member.
4712
97b1b294
EZ
47132009-01-10 Eli Zaretskii <eliz@gnu.org>
4714
4715 Fix Bug #876:
4716
4717 * coding.c (inhibit_null_byte_detection): New variable.
4718 (detect_coding, detect_coding_system): Don't pay attention to null
4719 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4720 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4721 <inhibit-iso-escape-detection>: Doc fix.
4722
4624b6e3
JR
47232009-01-09 Jason Rumney <jasonr@gnu.org>
4724
4725 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4726 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4727 Only report Unicode Plane 2 fonts as unicode-sip.
4728
323b840c
CY
47292009-01-09 Chong Yidong <cyd@stupidchicken.com>
4730
51d861de
SM
4731 * xfaces.c (Fx_font_family_list): Delete function.
4732 Move compatibility version to faces.el.
323b840c 4733
51d861de 4734 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4735
eba7400d
MR
47362009-01-09 Martin Rudalics <rudalics@gmx.at>
4737
4738 * frame.c (x_set_frame_parameters): Remember requested value for
4739 fullscreen before it's reset by the parameter handler.
4740
4b09796d
GM
47412009-01-09 Glenn Morris <rgm@gnu.org>
4742
4743 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4744 (last_command_event): ... and update all users.
4b09796d
GM
4745 (last_input_char): For clarity, rename to...
4746 (last_input_event): ... and update all users.
4747 (last-command-char, last-input-char): Move to subr.el as aliases.
4748 * cmds.c, commands.h: Update for last_command_char rename.
4749
14ccea62
CY
47502009-01-08 Chong Yidong <cyd@stupidchicken.com>
4751
51d861de 4752 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4753
5f004711
JR
47542009-01-08 Jason Rumney <jasonr@gnu.org>
4755
4756 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4757 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4758 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4759 Don't declare.
fff4e459 4760 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4761 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4762
b71f6f73
KH
47632009-01-07 Kenichi Handa <handa@m17n.org>
4764
50b06221 4765 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4766 remember the coding system used for decoding in
50b06221
KH
4767 coding_system (Bug#1039).
4768
b71f6f73 4769 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4770 breaking the loop. (Bug#870)
b71f6f73
KH
4771 (decode_coding_utf_16, decode_coding_emacs_mule)
4772 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4773 (decode_coding_charset): Likewise.
4774
56f668f7
MR
47752009-01-05 Martin Rudalics <rudalics@gmx.at>
4776
4777 * frame.c (x_set_frame_parameters): Make sure height (width) get
4778 applied when fullwidth (fullheight) is set. (Bug#1522)
4779
5da9424d
JB
47802009-01-04 Juanma Barranquero <lekktu@gmail.com>
4781
4782 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4783 (utc_base): Declare as ULONGLONG, not long double.
4784 (convert_time_raw): Delete.
4785 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4786 (initialize_utc_base): New function.
4787 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4788 (convert_from_time_t): Use initialize_utc_base; compute result with
4789 64-bit arithmetic.
4790 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4791
c4605e09
EZ
47922009-01-03 Eli Zaretskii <eliz@gnu.org>
4793
9acef61c 4794 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4795 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4796 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4797 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4798 [!subprocesses]: Define.
4799 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4800 (Flist_system_processes, Fsystem_process_attributes)
4801 [!subprocesses]: Call list_system_processes and
4802 system_process_attributes instead of returning Qnil.
4803
9acef61c
JB
4804 * dosfns.c (system_process_attributes, list_system_processes):
4805 New functions.
c4605e09
EZ
4806
4807 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4808
4809 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4810 Don't use the default (no-op) implementation.
4811
8b7d0a16
JR
48122009-01-03 Jason Rumney <jasonr@gnu.org>
4813
a6d46bc1
JR
4814 * keyboard.c (parse_modifiers_uncached): Wheel events are
4815 clicks (bug#687).
4816
8b7d0a16
JR
4817 * w32term.c (x_query_colors, x_query_color): New functions.
4818
4819 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4820 (svg_load_image): Cast returned pointers from dynamically loaded
4821 functions. Eliminate W32 specific code.
4822
bfe11752
DN
48232009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4824
89e2438a
DN
4825 * nsfns.m (x_set_foreground_color, x_set_background_color)
4826 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4827 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4828 x_ prefix instead of ns_. Update references.
4829 (syms_of_nsfns): Add a FIXME comment.
4830
4831 * nsterm.m (x_set_cursor_type): New prototype.
4832 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4833
bfe11752
DN
4834 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4835 for Solaris instead of incorrectly providing Qutime and Qcutime.
4836
031da700
EZ
48372009-01-02 Eli Zaretskii <eliz@gnu.org>
4838
4839 * w32.c (process_times): Compute sum of utime and stime.
4840 (system_process_attributes): Add Qtime to the alist.
4841
4842 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4843 and add them to the alist.
4844
4845 * process.c (top level) <Qtime, Qctime>: New variables.
4846 (syms_of_process): staticpro them.
4847 (Fsystem_process_attributes): Add their documentation to the doc
4848 string.
4849
4850 * process.h: Declare Qtime and Qctime.
4851
df23bf08
JR
48522009-01-02 Jason Rumney <jasonr@gnu.org>
4853
9acef61c 4854 * image.c (Qgobject): New symbol.
df23bf08
JR
4855 (syms_of_image): Initialize it.
4856 (init_svg_functions): Load some functions from gobject library.
4857
5bbdf7aa
DN
48582009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4859
4860 * frame.c (make_terminal_frame): Remove redundant code and useless
4861 block.
4862
63136da6
AS
48632009-01-01 Andreas Schwab <schwab@suse.de>
4864
4865 * process.c (conv_sockaddr_to_lisp): Add workaround for
4866 getsockname bug on BSD.
4867
9ef69046
CY
48682009-01-01 Chong Yidong <cyd@stupidchicken.com>
4869
d6fafbe0
CY
4870 * xfns.c (x_create_tip_frame): Set border width of the X window.
4871
51d861de 4872 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4873
f9c34147
JR
48742009-01-01 Jason Rumney <jasonr@gnu.org>
4875
9acef61c 4876 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4877 Don't block input, as per earlier xterm.c changes.
4878
f5497e45
AR
48792008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4880
4881 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4882 (ns_appkit_version_int): New function.
4883 (x-server-version): Use ns_appkit_version_int and follow 21+
4884 convention of returning 3 integers.
4885
c19cab20
KH
48862008-12-30 Kenichi Handa <handa@m17n.org>
4887
4888 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4889 (CHAR_SURROGATE_PAIR_P): New macro.
4890
4891 * font.h (struct font_driver): New member get_variation_glyphs.
4892
9acef61c 4893 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4894 (Ffont_variation_glyphs): New function.
4895 (syms_of_font): Defsubr it.
4896
4897 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4898 ftfont_variation_glyphs.
4899 (setup_otf_gstring): New function.
4900 (ftfont_drive_otf): Use it.
4901 (ftfont_shape_by_flt): Handle variation selector.
4902 (ftfont_variation_glyphs): New function.
4903
28cd591f
MR
49042008-12-30 Martin Rudalics <rudalics@gmx.at>
4905
4906 * frame.c (Vemacs_iconified): Remove.
4907
7f714baf
JR
49082008-12-30 Jason Rumney <jasonr@gnu.org>
4909
4910 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4911 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4912
9d2d22ab
CY
49132008-12-30 Chong Yidong <cyd@stupidchicken.com>
4914
4915 * indent.c (Fvertical_motion): Don't advance iterator if we have
4916 reseated to the desired position.
4917
4918 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4919 checking for pos match.
4920
545312c2
KH
49212008-12-30 Kenichi Handa <handa@m17n.org>
4922
1ede3eb6
KH
4923 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4924 just get the low 8-bit of the code.
4925
545312c2
KH
4926 * font.c (font_intern_prop): Validate str as multibyte.
4927
bd7bbf29
DN
49282008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4929
31e0750e
DN
4930 * dispextern.h (struct face): Move lface and hash from the middle
4931 of bitfields.
4932
bd7bbf29
DN
4933 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4934
b5672e7c
DN
49352008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4936
4937 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4938 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4939 instead of intervals.h.
4940
d704470f
AS
49412008-12-26 Andreas Schwab <schwab@suse.de>
4942
4943 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4944 cons.
4945
54b33868
MR
49462008-12-26 Martin Rudalics <rudalics@gmx.at>
4947
4948 * textprop.c (Qminibuffer_prompt): New variable.
4949 (syms_of_textprop): Initialize it.
4950 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4951 in minibuffer-prompt face. (Bug#1662)
4952
40b615d6
JR
49532008-12-25 Jason Rumney <jasonr@gnu.org>
4954
4955 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4956
baae5c2d
JR
49572008-12-24 Jason Rumney <jasonr@gnu.org>
4958
4959 * ralloc.c (r_alloc_reset_variable): New function.
4960
4961 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4962 record of what points where. (Bug#716)
baae5c2d 4963
a9051c88
DN
49642008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4965
4966 * minibuf.c (read_minibuf): Follow the non-interactive case when
4967 running as a daemon, before detaching.
4968
8b146312
AS
49692008-12-22 Andreas Schwab <schwab@suse.de>
4970
4971 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4972 * gtkutil.c (free_widget_value): Use xfree instead of free.
4973
56f2de10
MR
49742008-12-22 Martin Rudalics <rudalics@gmx.at>
4975
4976 * frame.c (delete_frame): New function derived from
4977 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4978 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4979 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4980 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4981 * frame.h: Extern delete_frame.
4982 * window.c (window_loop):
4983 * terminal.c (delete_terminal):
4984 * xterm.c (x_connection_closed):
4985 * xfns.c (Fx_hide_tip):
9acef61c 4986 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4987
1fc200d6
JR
49882008-12-21 Jason Rumney <jasonr@gnu.org>
4989
4990 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4991 when character maps to .notdef character.
4992
5e252df2
SM
49932008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4994
4995 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4996
99b72cc4
JR
49972008-12-20 Jason Rumney <jasonr@gnu.org>
4998
4999 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5000 a graphical frame on Windows. (Bug#1325)
99b72cc4 5001
acc49a52
JD
50022008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5003
5004 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5005
6ea15123
CY
50062008-12-20 Chong Yidong <cyd@stupidchicken.com>
5007
5008 * minibuf.c (Fread_buffer): Doc fix.
5009
b2dab6c8
JR
50102008-12-20 Jason Rumney <jasonr@gnu.org>
5011
54ea0c87 5012 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5013 server name in UNC paths. (Bug#719)
54ea0c87 5014
b2dab6c8 5015 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5016 charbuf. (Bug#1035)
b2dab6c8 5017
6d1921be
DN
50182008-12-19 Daniel Engeler <engeler@gmail.com>
5019
5020 * sysdep.c (serial_configure): Fix typo.
5021
53934c98
DN
50222008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5023
5024 * sysdep.c: Include alloca.h.
f4f634e8
DN
5025 (system_process_attributes): Add implementation for Solaris.
5026
5027 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5028
06e111a6
DN
50292008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5030
5031 Reorganize implementation of Flist_system_processes and
5032 Fsystem_process_attributes. No functional changes.
5033 * process.c: Don't #include pwd.h, grp.h and limits.h.
5034 (Flist_system_processes): Just call list_system_processes.
5035 (Fsystem_process_attributes): Just call system_process_attributes.
5036 (procfs_list_system_processes, time_from_jiffies)
5037 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5038 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5039
5040 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5041 (list_system_processes): Rename from
5042 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5043 Provide a do nothing implementation.
5044 (system_process_attributes): Rename from
5045 procfs_list_system_processes.
5046 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5047 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5048
5049 * w32.c (list_system_processes): Rename from
5050 w32_list_system_processes.
5051 (system_process_attributes): Rename from
5052 w32_system_process_attributes.
5053
5054 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5055
5056 * process.h (w32_list_system_processes)
5057 (w32_system_process_attributes): Remove.
362654a6
JB
5058 (list_system_processes, system_process_attributes):
5059 New prototypes.
06e111a6 5060
6a705b23
KH
50612008-12-19 Kenichi Handa <handa@m17n.org>
5062
5063 * xfont.c (xfont_decode_coding_xlfd): New function.
5064 (xfont_encode_coding_xlfd): New function.
5065 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5066 (xfont_list): Decode and encode XLFD by iso-8859-1.
5067 (xfont_match): Likewise.
5068 (xfont_list_family): Likewise.
5069 (xfont_open): Likewise.
5070
d66c0241 5071 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5072 names are utf-8.
5073
d66c0241 5074 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5075 names are utf-8.
5076
5a130941
JD
50772008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5078
5079 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5080 changed.
bfd20325
JD
5081 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5082 clicked on a detached tool bar button.
5a130941 5083
fd95644b
DN
50842008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5085
5086 * emacs.c (main): Print and error and exit when no data is read
5087 from the pipe.
5088
e6eee6ae
JR
50892008-12-17 Jason Rumney <jasonr@gnu.org>
5090
5091 * w32font.c (w32font_has_char): Always return -1.
5092
a35dd56b
KH
50932008-12-16 Kenichi Handa <handa@m17n.org>
5094
5095 * font.c (font_open_entity): Fix previous change.
5096
0e3635c2
DN
50972008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5098
5099 * process.c: Include <limits.h>.
5100
d4835507 51012008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5102
5103 * font.c (font_update_drivers): Fix mistake in reconstructing the
5104 driver list.
5105
51062008-12-16 Chong Yidong <cyd@stupidchicken.com>
5107
5108 * font.c (font_clear_cache): Fix format of font cache data.
5109
e2cbc401
CY
51102008-12-15 Chong Yidong <cyd@stupidchicken.com>
5111
5112 * xftfont.c (xftfont_open): Free Xft font pattern if
5113 XftFontOpenPattern fails.
5114
5115 * xterm.c (x_free_frame_resources): Remove extraneous call to
5116 free_frame_faces.
5117
b131d535
CY
51182008-12-13 Chong Yidong <cyd@stupidchicken.com>
5119
5120 * xterm.c (x_delete_display): Move xim_close_dpy call to
5121 x_delete_terminal.
5122 (x_delete_terminal): Call xim_close_dpy.
5123
e6df5336
JR
51242008-12-13 Jason Rumney <jasonr@gnu.org>
5125
5126 * w32font.c (intern_font_name): New function.
5127 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5128 (w32font_open_internal, Fx_select_font): Decode font name.
5129 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5130
5131 * w32font.h (intern_font_name): Declare new function.
5132
5133 * w32uniscribe.c (add_opentype_font_name_to_list):
5134 Use intern_font_name.
5135
20d68145
CY
51362008-12-13 Chong Yidong <cyd@stupidchicken.com>
5137
9f2554de
CY
5138 * frame.c (Fdelete_frame): Call free_font_driver_list.
5139
3d9bec9a
CY
5140 * font.c (free_font_driver_list): Implement missing function.
5141
20d68145
CY
5142 * w32term.c (w32_term_init): Don't initialize the image cache
5143 here; it will be done in init_frame_faces.
5144
5145 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5146 (struct x_display_info): Remove unused member null_pixel. New
5147 member xim_callback_data.
5148
5149 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5150 (xim_initialize): Save pointer to callback function data.
5151 (xim_close_dpy): Free callback function data. Call XCloseIM,
5152 reverting 2008-11-04 change by David Smith.
5153 (x_term_init): Don't initialize the image cache here; it will be
5154 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5155 (x_delete_display): Free x_dnd_atoms member.
5156
96f9306b
KH
51572008-12-13 Kenichi Handa <handa@m17n.org>
5158
6dec9044
JB
5159 * font.c (font_rescale_ratio): Moved from xfaces.c.
5160 Argument type changed. Handle a font-spec too.
96f9306b 5161 (font_score): Check Vface_font_rescale_alist.
6dec9044 5162 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5163
5164 * xfaces.c (font_rescale_ratio): Moved to font.c.
5165
8d5b4964
CY
51662008-12-13 Chong Yidong <cyd@stupidchicken.com>
5167
5168 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5169
e6df5336
JR
51702008-12-12 Jason Rumney <jasonr@gnu.org>
5171
5172 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5173 Vwindow_system_version to the real w32 major version.
5174
97c6058a
DN
51752008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5176
5177 * term.c (init_tty): Move setting the terminal name before the
5178 potential user: maybe_fatal.
5179
ec4e88d7
CY
51802008-12-11 Chong Yidong <cyd@stupidchicken.com>
5181
d4835507
JB
5182 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5183 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5184
b4233ec9
JR
51852008-12-11 Jason Rumney <jasonr@gnu.org>
5186
8ec71e23 5187 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5188 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5189
b4233ec9 5190 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5191 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5192
011a0143
JB
51932008-12-11 Juanma Barranquero <lekktu@gmail.com>
5194
5195 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5196
3c309f34
JB
51972008-12-11 Juanma Barranquero <lekktu@gmail.com>
5198
5199 * process.c (Fsystem_process_attributes, syms_of_process):
5200 Fix typo in name of Ssystem_process_attributes.
5201 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5202
fedc6ab5
JB
52032008-12-11 Juanma Barranquero <lekktu@gmail.com>
5204
5205 * syntax.c (Fmodify_syntax_entry): Doc fix.
5206
ba3de0e8
JB
52072008-12-10 Juanma Barranquero <lekktu@gmail.com>
5208
5209 * font.c (Ffont_spec): Move usage to end of docstring.
5210
174f1c74
JR
52112008-12-10 Jason Rumney <jasonr@gnu.org>
5212
5213 * w32font.c (Qcham): New symbol.
5214 (font_supported_scripts): Add cham, and comments for other new
5215 scripts in bitfield from OpenType spec.
9d32f818
JR
5216 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5217 contain characters beyond the bmp.
174f1c74 5218
7b649478
KH
52192008-12-10 Kenichi Handa <handa@m17n.org>
5220
5221 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5222 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5223 Qunicode_sip.
5224
2133e2d1
JB
52252008-12-10 Juanma Barranquero <lekktu@gmail.com>
5226
5227 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5228 (Fcoding_system_put): Use QCdefault_char.
5229 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5230
9af886ee
CY
52312008-12-09 Chong Yidong <cyd@stupidchicken.com>
5232
74d819eb
CY
5233 * xftfont.c (syms_of_xftfont): Fix typo.
5234
4ccfa1c0 5235 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5236
7c19d3ae
DN
52372008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5238
5239 * emacs.c (main): Close daemon_pipe on exec.
5240
567826bb
CY
52412008-12-08 Chong Yidong <cyd@stupidchicken.com>
5242
5243 * termchar.h (struct tty): New members termcap_term_buffer and
5244 termcap_strings_buffer.
5245
5246 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5247 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5248 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5249 All callers changed.
5250 (init_tty): Store termcap data and string buffers in new struct
5251 tty members termcap_term_buffer and termcap_strings_buffer.
5252 (delete_tty): Free them.
4ccfa1c0 5253 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5254
aa96c42b
SZ
52552008-12-07 Seiji Zenitani <zenitani@mac.com>
5256
5257 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5258 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5259
b7e1d896
CY
52602008-12-06 Chong Yidong <cyd@stupidchicken.com>
5261
5262 * coding.c (make_conversion_work_buffer): Disable buffer
5263 modification hooks in the work buffer.
5264
b5ec91a5
EZ
52652008-12-05 Eli Zaretskii <eliz@gnu.org>
5266
5267 * process.c (procfs_system_process_attributes): If `nread' has a
5268 negative value, assign zero to it.
5269
a5d2a52b
CY
52702008-12-05 Chong Yidong <cyd@stupidchicken.com>
5271
68c5540b 5272 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5273
7bf1bb21
KH
52742008-12-05 Kenichi Handa <handa@m17n.org>
5275
5276 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5277 second character is a combining character.
5278
2fdc7d00
EZ
52792008-12-05 Eli Zaretskii <eliz@gnu.org>
5280
5281 * process.c (procfs_system_process_attributes): Don't use cmd,
5282 cmdsize, and q without initializing them first.
5283
bf6bfba8
JR
52842008-12-04 Jason Rumney <jasonr@gnu.org>
5285
5286 * w32font.c (w32font_draw): Initialize orig_clip before getting
5287 it, and delete it when finished.
5288
a3b1a468
DN
52892008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5290
5291 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5292 case when running as a daemon before detaching.
5293
8b8be8eb
JB
52942008-12-03 Juanma Barranquero <lekktu@gmail.com>
5295
805f2638 5296 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5297
b1bde622
KH
52982008-12-03 Kenichi Handa <handa@m17n.org>
5299
e500c47d
KH
5300 * font.c (font_at): Set `multibyte' at first.
5301
ca516334
KH
5302 * coding.c (decode_coding_charset): Check type of an element of
5303 vector VALIDS.
7bf1bb21 5304 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5305
4ccfa1c0 5306 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5307 (font_for_char): Likewise.
5308
1e5ecd37
CY
53092008-12-03 Chong Yidong <cyd@stupidchicken.com>
5310
d5b01609 5311 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5312 (font_update_lface): Handle fonts with corrupted size specs,
5313 i.e. non-int and non-float.
d5b01609 5314
11e3a6e4 5315 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5316 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5317 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5318
ab06788b
CY
5319 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5320
1e5ecd37 5321 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5322 underline_minimum_offset for underline position.
1e5ecd37 5323
63c125ab
DN
53242008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5325
5326 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5327
5328 * character.c (c_string_width): Specify the type for LEN.
5329
3a8406e1
KH
53302008-12-03 Kenichi Handa <handa@m17n.org>
5331
4ccfa1c0 5332 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5333 (decode_coding_utf_8): Likewise.
4ccfa1c0 5334 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5335 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5336
651df7d9
CY
53372008-12-02 Chong Yidong <cyd@stupidchicken.com>
5338
5339 * keyboard.c (make_lispy_position): Only use PT if the selected
5340 window is current.
5341
1f625c6c
AS
53422008-12-02 Andreas Schwab <schwab@suse.de>
5343
f7741ce9
AS
5344 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5345
1f625c6c
AS
5346 * doprnt.c (doprnt1): Fix size of charbuf.
5347
92bc2678
CY
53482008-12-02 Chong Yidong <cyd@stupidchicken.com>
5349
5350 * keyboard.c (timer_check): Revert last change.
5351
93b9e8cc
JB
53522008-12-02 Juanma Barranquero <lekktu@gmail.com>
5353
5354 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5355
fd7a37d5
JB
53562008-12-01 Juanma Barranquero <lekktu@gmail.com>
5357
5358 * makefile.w32-in: Update dependencies.
5359 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5360
c115043b
AS
53612008-12-01 Andreas Schwab <schwab@suse.de>
5362
5363 * font.c (register_font_driver): Use xmalloc.
5364 (font_put_frame_data): Likewise.
5365
f5668d2a
CY
53662008-12-01 Chong Yidong <cyd@stupidchicken.com>
5367
860d96be
CY
5368 * xfaces.c (realize_x_face): Make abort condition clearer.
5369
f5668d2a
CY
5370 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5371
379c17e7
CY
53722008-11-30 Chong Yidong <cyd@stupidchicken.com>
5373
5374 * keyboard.c (timer_check): After a timer runs, ensure that the
5375 selected window's buffer is current.
5376
35f36d65
JB
53772008-11-30 Juanma Barranquero <lekktu@gmail.com>
5378
f952c61c
JB
5379 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5380 It was accidentally restored by the Unicode merge.
5381
35f36d65
JB
5382 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5383
b23077df
JB
53842008-11-29 Juanma Barranquero <lekktu@gmail.com>
5385
5386 * w32proc.c: Include "coding.h".
5387 (Fw32_short_file_name): Encode filename passed to Windows API.
5388 (Fw32_long_file_name): Encode filename passed to Windows API and
5389 decode back the result. (Bug#1433)
5390
b8ebe9dd
KH
53912008-11-29 Kenichi Handa <handa@m17n.org>
5392
8cc53f96
KH
5393 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5394 not before accessing it.
5395
b8ebe9dd
KH
5396 * charset.c (Fdefine_charset_internal): After calculating
5397 min_char, max_char, and fastmap, copy the charset structure again.
5398 (encode_char): Fix the previous change.
5399
59bc82c0
SZ
54002008-11-28 Seiji Zenitani <zenitani@mac.com>
5401
5402 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5403
5404 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5405
5406 * nsterm.m (x_set_frame_alpha): New function.
5407
32247e3d
EZ
54082008-11-27 Eli Zaretskii <eliz@gnu.org>
5409
5410 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5411
b003e5ff
JB
54122008-11-27 Juanma Barranquero <lekktu@gmail.com>
5413
5414 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5415 pointer to check_face_name.
5416
708550f5
KH
54172008-11-27 Kenichi Handa <handa@m17n.org>
5418
5419 * category.h (SET_CATEGORY_SET): Call set_category_set.
5420 (set_category_set): Extern it.
5421
5422 * category.c (hash_get_category_set): New function.
5423 (Fmodify_category_entry): Adjusted for the change of
5424 char_table_ref_and_range. Call hash_get_category_set to get a
5425 category set to store in the table.
5426
5427 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5428 Funify_charset.
5429
2ae37cf0 5430 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5431 (DECODE_CHAR): Check if the decoder vector is ready.
5432 (ENCODE_CHAR): Check if the encoder char-table is ready.
5433 (maybe_unify_char): Extern it.
5434
5435 * charset.c (Vchar_unified_charset_table): Delete it.
5436 (inhibit_load_charset_map): New variable.
5437 (temp_charset_work): New variable.
5438 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5439 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5440 New macros.
5441 (load_charset_map): Meaning of control_flag changed. If
5442 inhibit_load_charset_map is nonzero, setup a table in
5443 temp_charset_work.
5444 (load_charset): New argument control_flag.
5445 (map_charset_for_dump): New function.
5446 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5447 map_charset_for_dump.
5448 (Fdefine_charset_internal): If the charset method is MAP, load
5449 mapping tables by calling load_charset.
5450 (Funify_charset): Don't load a mapping table but directly set
5451 Vchar_unify_table.
5452 (maybe_unify_char): New function.
5453 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5454 Handle the case of inhibit_load_charset_map being nonzero.
5455 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5456 Handle the case of inhibit_load_charset_map being nonzero.
5457 (Fclear_charset_maps): Just free temp_charset_work.
5458 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5459 variable.
5460
5461 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5462 change of char_table_ref_and_range.
5463 (char_table_ref_and_range): Change the meaning of argument FROM
5464 and TO. Now the caller must provide initial values for *FROM
5465 and *TO.
5466
5467 * fontset.c (fontset_add): Adjusted for the change of
5468 char_table_ref_and_range.
5469 (fontset_get_font_group): Likewise.
5470 (Ffontset_info): Likewise.
5471
5472 * keymap.c (describe_vector): Adjusted for the change of
5473 char_table_ref_and_range. For char-table, put boundary between
5474 non-ASCII and 8-bit characters.
5475
5476 * print.c (print_object): For bool-vector, delete unnecessary
5477 check of ASCII_BYTE_P.
5478
9196133b
JR
54792008-11-26 Jason Rumney <jasonr@gnu.org>
5480
5481 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5482 leading in font height. (Bug#879)
9196133b 5483
9f688acf
GM
54842008-11-26 Glenn Morris <rgm@gnu.org>
5485
5486 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5487 redefinition with ifdef. (Bug#1383)
5488
90d19aff
AR
54892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5490
5491 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5492
4ccfa1c0 54932008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5494
5495 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5496 New EmacsView methods.
5497 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5498 Fixes bug #1048,1357,1414.
5499
55002008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5501
5502 Fix bug #1362.
5503 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5504 is not an indexed color.
5505 * nsterm.m (free_indexed_color): Add argument checking.
5506 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5507
e7d5ecb3
CY
55082008-11-24 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5511 Document confirm-after-completion value for
5512 minibuffer-completion-confirm.
5513
c285743c
JR
55142008-11-24 Jason Rumney <jasonr@gnu.org>
5515
5516 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5517 warning.
5518
b0857706
JR
55192008-11-23 Jason Rumney <jasonr@gnu.org>
5520
5521 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5522 restored before returning.
5523
5524 * w32font.c (check_face_name): New function.
5525 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5526 fonts. (Bug#642)
b0857706 5527
ee50ff07
MR
55282008-11-22 Martin Rudalics <rudalics@gmx.at>
5529
5530 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5531 confirm-nonexistent-file-or-buffer in doc-string.
5532
b8ff72fa
SM
55332008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5534
5535 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5536 Fix copy/paste typo. Add checks.
5537
cee53ed4
KH
55382008-11-21 Kenichi Handa <handa@m17n.org>
5539
5540 * coding.c (detect_coding_iso_2022): Reject invalid composition
5541 sequence.
5542 (DECODE_COMPOSITION_START): If the current source is the last
5543 block, and the current composition doesn't end, regard this
5544 sequence as invalid.
5545 (decode_coding_iso_2022): Handle invalid composition sequence.
5546
f6ef1e65
MR
55472008-11-20 Martin Rudalics <rudalics@gmx.at>
5548
5549 * window.c (coordinates_in_window): Don't return
5550 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5551 line when the window is not the rightmost one. (Bug#1372)
5552
e08b1705
MR
55532008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5554
5555 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5556
ad98e89f
EZ
55572008-11-15 Eli Zaretskii <eliz@gnu.org>
5558
5559 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5560 and bright_bg if noninteractive is non-zero.
5561
fb098a4b
CY
55622008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5563
5564 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5565 x_draw_glyph_string_background.
5566
5567 * w32term.c (x_draw_glyph_string): Likewise.
5568
ce952b6e
CY
55692008-11-15 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5572 the next glyph string once past the overhang width.
5573
5574 * nsterm.m (ns_draw_glyph_string): Likewise.
5575
5576 * w32term.c (x_draw_glyph_string): Likewise.
5577
26ea7079
CY
55782008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5579
5580 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5581 double file close.
5582
1c33c906
MR
55832008-11-14 Martin Rudalics <rudalics@gmx.at>
5584
5585 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5586 dedicated status of window before attempting to display another
5587 buffer in it.
5588
8fc29035
JB
55892008-11-14 Juanma Barranquero <lekktu@gmail.com>
5590
5591 * msdos.c (Fmsdos_long_file_names):
5592 (syms_of_msdos) <dos-unsupported-char-glyph>:
5593 * dosfns.c (Fint86): Fix typos in docstrings.
5594
55fb4286
EZ
55952008-11-14 Eli Zaretskii <eliz@gnu.org>
5596
5597 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5598
3fda0315
KY
55992008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5600
5601 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5602
7e849c17
CY
56032008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5604
5605 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5606
5607 * frame.h: Negative alpha means "don't touch".
5608
5609 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5610
5611 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5612
b9fd67bd
DN
56132008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5614
5615 * hftctl.c:
5616 * chpdef.h:
5617 * acldef.h: Remove files used only for systems no longer supported.
5618
5619 * Makefile.in: Fix .o alphabetical ordering.
5620 (hftctl.o): Remove dependency, file removed.
5621 (keymap.o, print.o): Depend on charset.h.
5622
d5998e03
KH
56232008-11-10 Kenichi Handa <handa@m17n.org>
5624
2ae37cf0 5625 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5626
be70e183
CY
56272008-11-08 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * dired.c (file_name_completion): If completion_ignore_case is
5630 enabled, ignore case when checking completion-regexp-list.
5631
7cf94eac
EZ
56322008-11-08 Eli Zaretskii <eliz@gnu.org>
5633
5634 * vm-limit.c (get_lim_data): Fix last change.
5635
ee107a89
KH
56362008-11-08 Kenichi Handa <handa@m17n.org>
5637
5638 * character.c (Fget_byte): New function.
5639 (syms_of_character): Defsubr Fget_byte.
5640
5fd15622
CY
56412008-11-07 Chong Yidong <cyd@stupidchicken.com>
5642
5643 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5644 cursor position is valid after scrolling.
5645
13d62fad
JB
56462008-11-06 Juanma Barranquero <lekktu@gmail.com>
5647
5648 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5649
a1dd2936
GM
56502008-11-06 Glenn Morris <rgm@gnu.org>
5651
5652 * xterm.c (handle_one_xevent): Don't let popup menus cause
5653 mouse-autoselect-window related window switching. (Bug#1261)
5654
860cd236
CY
56552008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5656
5657 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5658
653a3150
AS
56592008-11-04 Andreas Schwab <schwab@suse.de>
5660
5661 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5662
870f5cac
CY
56632008-11-03 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * xfns.c (Fx_wm_set_size_hint): New function.
5666
1e02f3cb
MR
56672008-11-03 Martin Rudalics <rudalics@gmx.at>
5668
5669 * textprop.c (Fprevious_single_char_property_change): Return 0
5670 when there's no change in a string. (Bug#1301)
5671
e630dfc6
MR
56722008-11-02 Martin Rudalics <rudalics@gmx.at>
5673
5674 * frame.c (do_switch_frame): New argument NORECORD passed to
5675 Fselect_window.
5676 (Fselect_frame): New argument NORECORD passed to
5677 do_switch_frame.
5678 (Fset_frame_selected_window): New argument NORECORD passed to
5679 Fselect_frame.
5680 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5681 in call of do_switch_frame.
5682 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5683 Handle NORECORD argument in call of Fselect_frame.
5684 * lisp.h (do_switch_frame, Fselect_frame)
5685 (Fset_frame_selected_window): Adjust declarations.
5686 * window.c (select_frame_norecord): New function.
5687 (run_window_configuration_change_hook): Use it and call
5688 Fselect_frame with NORECORD set.
5689 (Fselect_window): Pass NORECORD to Fselect_frame.
5690 (Fset_window_configuration): Handle NORECORD argument in call of
5691 do_switch_frame.
5692 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5693 Fset_frame_selected_window.
5694 * keyboard.c (command_loop_1): Handle NORECORD in call of
5695 Fselect_frame (currently ifdefd).
5696
9020b223
GM
56972008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5698
5699 * emacs.c (USAGE2): Untabify.
5700
793ffee8
SM
57012008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5702
5703 * composite.c (fill_gstring_header): Fix copy/paste typo.
5704
ab6d1131
MR
57052008-10-31 Martin Rudalics <rudalics@gmx.at>
5706
5707 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5708 (Fother_window): Rename argument and rewrite doc-string.
5709 (select_window_norecord): Fix return value. (Bug#1276)
5710
601a9cf1
JB
57112008-10-30 Juanma Barranquero <lekktu@gmail.com>
5712
5713 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5714 new frames overriding foreground for tooltips. Based on similar patch
5715 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5716
813b0652
CY
57172008-10-29 Chong Yidong <cyd@stupidchicken.com>
5718
5719 * emacs.c (Fdaemon_initialized): Initialize nfd.
5720
4414f58f
MR
57212008-10-29 Martin Rudalics <rudalics@gmx.at>
5722
5723 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5724 (Fwindow_text_height): Clarify doc-strings.
5725 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5726 doc-string of window-scroll-functions.
5727
ecdcaa09
RS
57282008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5729
5730 * category.c (syms_of_category): Fix typo in docstring.
5731
23fe745a
JB
57322008-10-28 Juanma Barranquero <lekktu@gmail.com>
5733
5734 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5735 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5736 Fix typos in docstrings.
5737
ff808935
DN
57382008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5739
5740 * emacs.c (daemon_pipe): Make non-static.
5741 (IS_DAEMON): Move definition ...
5742 * lisp.h (IS_DAEMON): ... here.
5743 (daemon_pipe): Declare.
5744 (is_daemon): Remove.
5745 * dispnew.c (init_display): Use IS_DAEMON.
5746
fc012771
SM
57472008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5748
5749 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5750 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5751
5752 * emacs.c (is_daemon): Remove.
5753 (main): Don't set is_daemon.
5754 (IS_DAEMON): New macro.
5755 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5756 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5757 parent exits.
5758 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5759
d8bdbe6f
CY
57602008-10-27 Chong Yidong <cyd@stupidchicken.com>
5761
d1a072bf
CY
5762 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5763 over-sized glyph, draw it with the default glyph width.
5764
e2e325aa
CY
5765 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5766 glyph, draw it with the default glyph width.
5767
5768 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5769 glyph, draw it with the default glyph width.
5770
d8bdbe6f
CY
5771 * xdisp.c (try_scrolling): When computing the distance from the
5772 scroll margin to PT, try moving some distance past the window
5773 bottom before giving up.
5774
7bfac547
MR
57752008-10-27 Martin Rudalics <rudalics@gmx.at>
5776
5777 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5778 (Fset_window_buffer): Explain in doc-string that a window can be
5779 "strongly" dedicated to its buffer.
5780
4ff029f6
DN
57812008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5782
5783 * emacs.c (daemon_name): New variable.
5784 (main): Deal with --daemon=SERVER_NAME.
5785 (Fdaemonp): Return a name if one was passed to --daemon.
5786
5790ef40
DN
57872008-10-26 Romain Francoise <romain@orebokech.com>
5788
f9bd0df9 5789 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5790 (main): Create a pipe before forking, make the parent exit only after
5791 the child has closed its end of the pipe. Move closing the
5792 descriptors ...
5793 (Fdaemon_initialized): ... here. New function.
5794
f5385255
SM
57952008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5796
4d632321
SM
5797 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5798 the previous unoptimized table.
5799
f5385255
SM
5800 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5801 the distinction between non-nil and non-t value of `dedicated'.
5802
6c56a0f3
CY
58032008-10-25 Chong Yidong <cyd@stupidchicken.com>
5804
5805 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5806 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5807
fec89261
MR
58082008-10-25 Martin Rudalics <rudalics@gmx.at>
5809
5810 * window.c (Fget_buffer_window, Fdelete_windows_on)
5811 (Freplace_buffer_in_windows): Make buffer argument optional and
5812 rename to buffer_or_name.
5813
34fcddd0
CY
58142008-10-24 Chong Yidong <cyd@stupidchicken.com>
5815
f5385255
SM
5816 * xdisp.c (handle_single_display_spec, handle_display_prop):
5817 Undo 2005-05-16 change.
34fcddd0
CY
5818 (handle_stop): Pop iterator if it's loaded with an empty string.
5819 (get_overlay_strings_1): Don't save iterator if it's loaded with
5820 an empty string (bug#1201).
5821
064766f2
KH
58222008-10-24 Kenichi Handa <handa@m17n.org>
5823
5824 * ftfont.c (ftfont_otf_features): Fix previous change.
5825 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5826 calling ftfont_otf_features.
5827
f9bd0df9 58282008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5829
5830 * font.c (font_match_p): Fix for the case that a vector of
5831 characters is in script-representative-chars.
5832
1dae9197
MA
58332008-10-24 Michael Albinus <michael.albinus@gmx.de>
5834
5835 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5836 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5837 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5838 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5839 macro. (Bug#1186)
1dae9197 5840
f9bd0df9 58412008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5842
5843 * s/sol2-10.h: New file.
5844
878a4584
JB
58452008-10-23 Juanma Barranquero <lekktu@gmail.com>
5846
5847 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5848 poor beast has survived 9+ years and the jump from xterm.c!).
5849
cd265ca6
MR
58502008-10-23 Martin Rudalics <rudalics@gmx.at>
5851
5852 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5853 Reword doc-string.
f5385255 5854 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5855
472a4dc9
JB
58562008-10-23 Juanma Barranquero <lekktu@gmail.com>
5857
5858 * character.c (syms_of_character) <script-representative-chars>:
5859 <unicode-category-table>: Doc fixes.
5860
159bd5a2
NF
58612008-10-23 Noah Friedman <friedman@splode.com>
5862
5863 * coding.c (make_conversion_work_buffer): Check that
5864 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5865 Fget_buffer_create.
5866
49f9c344
KH
58672008-10-23 Kenichi Handa <handa@m17n.org>
5868
5869 * font.c (font_add_log): Check the values of extra properties.
5870
12bb3111
MR
58712008-10-22 Martin Rudalics <rudalics@gmx.at>
5872
5873 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5874 Reword doc-string.
5875 (Fset_window_parameter): Use NILP.
5876 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5877 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5878
bbeb4e99
JB
58792008-10-22 Juanma Barranquero <lekktu@gmail.com>
5880
5881 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5882
58832008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5884
5885 * nsfns.m (ns_appkit_version): New function.
5886 (x-server-version): Use it.
5887 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5888 (x-server-vendor): Don't check_ns().
5889
5890 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5891
a9b555d3
JB
58922008-10-22 Juanma Barranquero <lekktu@gmail.com>
5893
5894 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5895 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5896
4626499f
KH
58972008-10-22 Kenichi Handa <handa@m17n.org>
5898
e3681952
KH
5899 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5900 scripts.
5901
4626499f
KH
5902 * category.c (word_boundary_p): Check scripts instead of charset.
5903 Handle nil value in word-separating-categories and
5904 word-combining-categories.
5905 (syms_of_category): Fix docstrings of word-separating-categories
5906 and word-combining-categories.
5907
1560f91a
EZ
59082008-10-21 Eli Zaretskii <eliz@gnu.org>
5909
5910 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5911 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5912
f4668441
MR
59132008-10-21 Martin Rudalics <rudalics@gmx.at>
5914
5915 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5916 Rename arg "buffer" to "buffer_or_name".
5917 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5918 it optional.
5919 (no_switch_window): Remove since the return value is not used.
a9b555d3 5920 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5921 Consider window as dedicated when Fwindow_dedicated_p returns a
5922 non-nil value.
5923 * lisp.h: Remove prototype for no_switch_window.
5924
fd75ddb2
JD
59252008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5926
5927 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5928 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5929
07295713
KH
59302008-10-21 Kenichi Handa <handa@m17n.org>
5931
5932 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5933 check Vlatin_extra_code_table.
5934
712adc82
EZ
59352008-10-20 Eli Zaretskii <eliz@gnu.org>
5936
5937 * fileio.c (Fset_file_modes): Doc fix.
5938
f549eb0b
MA
59392008-10-19 Michael Albinus <michael.albinus@gmx.de>
5940
5941 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5942 in arrays.
5943
aac0c6e3
MR
59442008-10-19 Martin Rudalics <rudalics@gmx.at>
5945
5946 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5947 Mention kill-buffer in doc-string.
5948 (Fset_window_buffer): Reinsert tem check removed in last commit.
5949 (Fenlarge_window, Fshrink_window): Have argument names and
5950 doc-string follow Elisp manual more closely.
5951
59522008-10-18 Eli Zaretskii <eliz@gnu.org>
5953
5954 * fileio.c (Fset_file_modes): Doc fix.
5955
59562008-10-18 Martin Rudalics <rudalics@gmx.at>
5957
5958 * window.c (Fwindow_width, Fset_window_start)
5959 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5960 (Fdelete_windows_on, Freplace_buffer_in_windows):
5961 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5962 (Fwindow_dedicated_p): Make window argument optional.
5963 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5964 (Fset_window_buffer): Respect any non-nil dedicated value for
5965 window. Rename "buffer" argument to "buffer_or_name".
5966
59672008-10-18 Ulrich Mueller <ulm@gentoo.org>
5968
5969 * m/sh3.h: New file, machine description for SuperH.
5970
59712008-10-17 Martin Rudalics <rudalics@gmx.at>
5972
5973 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5974
59752008-10-17 Kenichi Handa <handa@m17n.org>
5976
5977 * ftfont.c (ftfont_otf_features): Fix indexing
5978 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5979
59802008-10-16 Magnus Henoch <mange@freemail.hu>
5981
5982 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5983 (Fdbus_call_method_asynchronously): Ditto.
5984 This change makes C-h f display the argument list.
5985
59862008-10-16 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * fileio.c (Fexpand_file_name): Doc fix.
5989
5990 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5991 of :foreground and :background equivalent to unspecified (20.x
5992 compatibility).
5993
59942008-10-15 Eli Zaretskii <eliz@gnu.org>
5995
5996 * buffer.c (syms_of_buffer): Doc fix.
5997
59982008-10-14 Kenichi Handa <handa@m17n.org>
5999
6000 * font.c (font_clear_prop): When clearing font width, clear the
6001 average width field too.
6002
60032008-10-12 Andreas Schwab <schwab@suse.de>
6004
6005 * ftfont.c (ftfont_shape_by_flt): Make static.
6006 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6007
6008 * font.c: Don't include <m17n-flt.h>.
6009
60102008-10-10 Eli Zaretskii <eliz@gnu.org>
6011
6012 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6013
60142008-10-09 Eli Zaretskii <eliz@gnu.org>
6015
6016 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6017 away code.
6018
60192008-10-09 Chong Yidong <cyd@stupidchicken.com>
6020
6021 * dispnew.c (update_text_area): Avoid looping due to large glyph
6022 overhangs (bug#1070).
6023
60242008-10-09 Kenichi Handa <handa@m17n.org>
6025
6026 * fontset.c (face_for_char): If face->fontset is negative, just
6027 return ascii_face.
6028
f5385255
SM
6029 * font.c (font_delete_unmatched): Fix previous change.
6030 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6031
60322008-10-09 Martin Rudalics <rudalics@gmx.at>
6033
6034 * frame.c (Fraise_frame): On text-only terminals select frame in
6035 order to make it visible. (Bug#1061)
6036
60372008-10-08 Chong Yidong <cyd@stupidchicken.com>
6038
6039 * fontset.c (fontset_find_font): Check frame validity.
6040
60412008-10-07 Chong Yidong <cyd@stupidchicken.com>
6042
a9b555d3 6043 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6044 (xg_display_close): Allow Emacs to close all displays (bug#985).
6045
60462008-10-06 Andreas Schwab <schwab@suse.de>
6047
f5385255 6048 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6049
60502008-10-06 Chong Yidong <cyd@stupidchicken.com>
6051
f5385255 6052 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6053
a9b555d3 6054 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6055
6056 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6057 during initialization.
6058
60592008-10-04 Eli Zaretskii <eliz@gnu.org>
6060
6061 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6062 whole thing on MSDOS frames as well as on a TTY.
6063
6064 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6065 well as for TTY.
6066 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6067 well as on a TTY.
6068
6069 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6070 as well as for TTY.
6071
6072 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6073
6074 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6075 MSDOS frames as well.
6076
60772008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6078
6079 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6080 correct arguments.
b71ac3dd 6081 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6082
60832008-10-03 Glenn Morris <rgm@gnu.org>
6084
6085 * emacs.c (USAGE1): Add --daemon.
6086
60872008-10-02 Eli Zaretskii <eliz@gnu.org>
6088
6089 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6090 100, so it's in percents as advertised.
6091
60922008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6093
6094 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6095 (ns_output.current_cursor, ns_output.desired_cursor)
6096 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6097 (FRAME_NEW_CURSOR_COLOR): Remove.
6098
6099 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6100 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6101 enumeration (HOLLOW_BOX_CURSOR, etc.).
6102
6103 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6104 (draw_window_cursor): Simplify code.
f5385255
SM
6105 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6106 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6107 updates manually.
a9b555d3
JB
6108 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6109 Use core Emacs cursor types.
aac0c6e3 6110
b8ff72fa 6111 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6112
61132008-10-02 Martin Rudalics <rudalics@gmx.at>
6114
6115 * process.c (Faccept_process_output): Fix doc-string.
6116
61172008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6118
6119 * gmalloc.c (__sbrk): Also define for uClibc.
6120
6121 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6122 for uClibc.
6123
61242008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6125
6126 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6127 styles.
6128 (nsfont_open): Reenable the cache.
6129
61302008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6131
6132 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6133 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6134
61352008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6136
6137 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6138 a suspended terminal.
6139
61402008-09-30 Michael Albinus <michael.albinus@gmx.de>
6141
6142 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6143
61442008-09-30 Eli Zaretskii <eliz@gnu.org>
6145
6146 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6147
61482008-09-30 Chong Yidong <cyd@stupidchicken.com>
6149
6150 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6151 in a continued line coincides with a line beginning.
6152
61532008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6154
6155 * nsfont.m (nsfont_trait_distance): Fix bug.
6156 (nsfont_list): Return a list rather than a vector (syncs with Handa
6157 changes of 2008-05-14).
6158 (nsfont_open): Improve logging.
6159
61602008-09-29 Andreas Schwab <schwab@suse.de>
6161
6162 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6163
61642008-09-28 Martin Rudalics <rudalics@gmx.at>
6165
6166 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6167 name as char-resolve-modifiers.
6168 Reported by: Markus Triska <markus.triska@gmx.at>
6169
61702008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6171
6172 * dispnew.c (init_display): Return earlier when running as a daemon.
6173
61742008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6175
6176 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6177
61782008-09-27 Eli Zaretskii <eliz@gnu.org>
6179
6180 * composite.c (Fcomposition_get_gstring)
6181 (Fcompose_region_internal, Fcompose_string_internal)
6182 (Ffind_composition_internal): Doc fix.
6183 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6184 (syms_of_composite) <auto-composition-function>: Doc fix.
6185 (syms_of_composite) <composition-function-table>: Doc fix.
6186
61872008-09-25 Chong Yidong <cyd@stupidchicken.com>
6188
6189 * search.c (wordify): New argument for lax word-ends.
6190 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6191
61922008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6193
6194 * lisp.h (is_daemon): Declare.
6195 * dispnew.c (init_display): Do not try to initialize the terminal
6196 when running as a daemon.
6197
61982008-09-22 Chong Yidong <cyd@stupidchicken.com>
6199
6200 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6201 x_display_pixel_height.
6202
62032008-09-22 Martin Rudalics <rudalics@gmx.at>
6204
6205 * undo.c (record_point): Don't call Fundo_boundary for first
6206 change. (Bug#731)
6207
62082008-09-22 Juanma Barranquero <lekktu@gmail.com>
6209
6210 * emacs.c (Fdaemonp): Doc fix.
6211
62122008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6213
6214 * emacs.c (main): Place #ifdef in the proper place.
6215
62162008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6217
6218 * emacs.c (standard_args): Add --daemon.
6219 (main): Disconnect from the terminal when --daemon is passed.
6220 (is_daemon): New variable.
6221 (Fdaemonp): New function.
6222 (syms_of_emacs): Defsubr it.
6223
62242008-09-20 Chong Yidong <cyd@stupidchicken.com>
6225
6226 * xdisp.c (get_next_display_element): Handle string display
6227 correctly when checking for the end of a box run.
6228
62292008-09-20 Glenn Morris <rgm@gnu.org>
6230
6231 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6232 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6233 (Frename_file): Avoid copying to trash if a rename involves
6234 a delete. (Bug#964).
6235
62362008-09-20 Eli Zaretskii <eliz@gnu.org>
6237
6238 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6239 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6240 frames as well as termcap frames.
6241 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6242 get_named_tty.
6243
62442008-09-19 Eli Zaretskii <eliz@gnu.org>
6245
6246 * process.c (procfs_system_process_attributes): Fix cmdline in
6247 case /proc/PID/cmdline is empty.
6248
6249 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6250 x_display_pixel_height.
6251
62522008-09-19 Juanma Barranquero <lekktu@gmail.com>
6253
6254 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6255
6256 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6257 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6258
62592008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6260
6261 * dispextern.h (struct it): Move line_wrap away from the middle of
6262 bitfields. Move voffset in struct iterator_stack_entry after the
6263 bitfields. Move tab_width near after another short.
6264
62652008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6266
6267 * frame.h (struct frame): Move alpha from the middle of bitfields.
6268
6269 * window.h (struct window): Move frozen_window_start_p after the
6270 rest of the bitfields to reduce padding.
6271
62722008-09-18 Chong Yidong <cyd@stupidchicken.com>
6273
6274 * xterm.h (x_display_info): Remove `height' and `width' members.
6275
6276 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6277
6278 * w32term.h (w32_display_info): Remove `height', `width',
6279 `height_in', and `width_in' members.
6280
b8ff72fa
SM
6281 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6282 New functions.
aac0c6e3
MR
6283 (x_calc_absolute_position): Use them.
6284 (x_term_init): Omit removed `height' and `width' members.
6285
b8ff72fa
SM
6286 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6287 New functions.
aac0c6e3
MR
6288 (w32_read_socket, x_calc_absolute_position): Use them.
6289 (w32_initialize_display_info, w32_term_init): Omit removed members
6290 of w32_display_info.
6291
b8ff72fa
SM
6292 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6293 New functions.
6294 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6295
b8ff72fa
SM
6296 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6297 New functions.
aac0c6e3
MR
6298 (x_calc_absolute_position): Use them.
6299 (x_term_init): Omit removed `height' and `width' members.
6300
6301 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6302 (compute_tip_xy):
6303 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6304 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6305 x_display_pixel_width.
6306
63072008-09-18 Kenichi Handa <handa@m17n.org>
6308
6309 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6310 (composition_compute_stop_pos): Fix handling of static composition.
6311 (Fcomposition_get_gstring): Check FROM and TO at first.
6312
63132008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6314
46e722a9 6315 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6316 mixup (YAILOM).
6317
63182008-09-17 Chong Yidong <cyd@stupidchicken.com>
6319
6320 * indent.c (Fvertical_motion): Use position reported by iterator
6321 instead of PT for determining screen motion (bug#943).
6322
63232008-09-17 Romain Francoise <romain@orebokech.com>
6324
6325 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6326
63272008-09-17 Kenichi Handa <handa@m17n.org>
6328
6329 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6330
6331 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6332 if necessary.
6333
63342008-09-16 Kenichi Handa <handa@m17n.org>
6335
6336 * coding.c (make_conversion_work_buffer): Avoid calling
6337 Fget_buffer_create if it is not necessary.
6338
63392008-09-15 Martin Rudalics <rudalics@gmx.at>
6340
6341 * window.c (Fselect_window): Don't update window_select_count and
6342 use_time when norecord is not nil.
6343
63442008-09-14 Kenichi Handa <handa@m17n.org>
6345
6346 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6347 specpdl_ptr.
6348
63492008-09-12 Kenichi Handa <handa@m17n.org>
6350
6351 * indent.c (scan_for_column): Don't handle automatic composition
6352 if the current buffer is not associated with a window.
6353
6354 * composite.c (composition_reseat_it): If the current buffer is
6355 not associated with a window, ignore the automatic composition.
6356 (find_automatic_composition): Likewise.
6357
63582008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6359
6360 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6361 (Fgpm_mouse_stop): Use it.
6362 * termhooks.h (close_gpm): Declare.
6363 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6364 connection if Gpm_GetEvent fails.
6365
6366 * window.c (set_window_buffer): Always preserve current-buffer.
6367
63682008-09-12 Glenn Morris <rgm@gnu.org>
6369
6370 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6371
63722008-09-11 Glenn Morris <rgm@gnu.org>
6373
6374 * charset.c (charset-map-path): Doc fix.
6375
63762008-09-10 Kenichi Handa <handa@m17n.org>
6377
6378 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6379
6380 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6381 compose a grapheme cluster with the preceding base glyph.
6382
6383 * composite.c (composition_compute_stop_pos): Fix previous change.
6384 Reset cmp_it->id to -1 at first.
6385
63862008-09-10 Glenn Morris <rgm@gnu.org>
6387
6388 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6389
63902008-09-09 Chong Yidong <cyd@stupidchicken.com>
6391
6392 * keyboard.c (read_key_sequence): Reapply translation maps when
6393 switching keyboards.
6394
63952008-09-09 Kenichi Handa <handa@m17n.org>
6396
6397 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6398 characters.
6399
6400 * composite.c (FORWARD_CHAR): Fix calculation
6401 of (POSITION).pos_byte.
6402 (composition_compute_stop_pos): Limit the search of composition to
6403 at most 500 characters ahead. If we reach the limit or find a
6404 newline, set cmp_it->ch to -2 and return 0.
6405 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6406
64072008-09-08 Kenichi Handa <handa@m17n.org>
6408
6409 * indent.c (Fvertical_motion): Be sure to set
6410 it_overshoot_expected if it.cmp_it.id is non-negative.
6411
64122008-09-07 Andreas Schwab <schwab@suse.de>
6413
6414 * callproc.c (Fcall_process): Don't hold references to string data
6415 across garbage collection. Move initialisation of new_argv down
6416 to avoid compiler bug.
6417
64182008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6419
6420 * process.c (Fsystem_process_attributes): Doc fix.
6421
64222008-09-07 Chong Yidong <cyd@stupidchicken.com>
6423
6424 * callproc.c (Fcall_process): Canonicalize current directory name.
6425
6426 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6427 iterator advances to the next line if the current line ends in a
6428 continued tab.
6429
64302008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6431
6432 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6433 member to point to cmp_from.
6434
6435 * xdisp.c: Doc fix for references to gidx data member.
6436
64372008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6438
6439 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6440
64412008-09-07 Kenichi Handa <handa@m17n.org>
6442
6443 * composite.c (FORWARD_CHAR): Check STOP after
6444 incrementing (POSITION).pos.
6445
64462008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6447
6448 * process.c (Fsystem_process_attributes): Doc fix.
6449
64502008-09-06 Chong Yidong <cyd@stupidchicken.com>
6451
6452 * keyboard.c (Ftop_level): Doc fix.
6453
64542008-09-06 Eli Zaretskii <eliz@gnu.org>
6455
6456 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6457 minibuffer, don't let lower part of menu invade the echo area.
6458
6459 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6460 "char *q" to access menu text and advance through it. Revert the
6461 change that displayed ">" instead of ASCII character 0x10.
6462
64632008-09-05 Eli Zaretskii <eliz@gnu.org>
6464
6465 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6466 toggle boxes and radio buttons on MS-DOS as well.
6467
64682008-09-05 Kenichi Handa <handa@m17n.org>
6469
6470 * composite.c (autocmp_chars): Check lookback count.
6471 (composition_compute_stop_pos): Set cmp_it->lookback.
6472 (composition_reseat_it): Check lookback count.
6473 (struct position_record): New struct.
6474 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6475 (find_automatic_composition): New function.
6476 (composition_adjust_point): Use find_automatic_composition.
6477
6478 * dispextern.h (struct composition_it): New member lookback.
6479
64802008-09-02 Chong Yidong <cyd@stupidchicken.com>
6481
6482 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6483 if moving by a single line.
6484
64852008-09-02 Andreas Schwab <schwab@suse.de>
6486
6487 * xterm.c (x_delete_display): Fix merge error.
6488
6489 * fileio.c (Fexpand_file_name): Remove unused variables.
6490
64912008-09-02 Eli Zaretskii <eliz@gnu.org>
6492
6493 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6494 storage on all platforms, not just on DOS_NT.
6495
64962008-09-02 Jason Rumney <jasonr@gnu.org>
6497
b8ff72fa
SM
6498 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6499 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6500
65012008-09-01 Chong Yidong <cyd@stupidchicken.com>
6502
6503 * xfaces.c (Finternal_set_alternative_font_family_alist)
6504 (Finternal_set_alternative_font_registry_alist): Properly copy
6505 entire alist structure.
6506
65072008-09-01 Kenichi Handa <handa@m17n.org>
6508
d66c0241 6509 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6510 representative chars of the script is a vector.
d66c0241
JB
6511 (ftfont_list): Handle the case where the representative chars of
6512 the script is a vector.
aac0c6e3
MR
6513
6514 * character.c (syms_of_character): Docstring of
6515 script-representative-chars fixed.
6516
65172008-08-31 Eli Zaretskii <eliz@gnu.org>
6518
6519 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6520 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6521 the menu. Allocate larger buffer for `text', to account for
6522 possible ^C characters.
6523
65242008-08-31 Martin Rudalics <rudalics@gmx.at>
6525
6526 * xdisp.c (prepare_menu_bars): Don't call
6527 Vwindow_size_change_functions with arg Qt.
6528
65292008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6530
6531 * font.h (font_range):
6532 * fileio.c (report_file_error):
46e722a9
SM
6533 * composite.c (composition_update_it): Yet another int/Lisp_Object
6534 mixup (YAILOM).
aac0c6e3
MR
6535
65362008-08-30 Glenn Morris <rgm@gnu.org>
6537
6538 * data.c (Fmake_variable_frame_local): Doc fix.
6539
6540 * frame.c (Fmodify_frame_parameters): Doc fix.
6541
65422008-08-30 Eli Zaretskii <eliz@gnu.org>
6543
6544 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6545 needed by GetTokenInformation.
6546 (w32_system_process_attributes): Check return values of all system
6547 APIs.
6548
6549 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6550 only when the state changes.
6551 (IT_update_begin, IT_update_end): Add termscript trace.
6552
6553 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6554 clipboard is unavailable. Set dst to NULL if it doesn't point to
6555 malloc'ed data.
6556 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6557 passing random values to xfree.
6558
6559 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6560 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6561
65622008-08-29 Jason Rumney <jasonr@gnu.org>
6563
6564 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6565
65662008-08-29 Eli Zaretskii <eliz@gnu.org>
6567
6568 * composite.c (fill_gstring_body): Avoid compiler warnings.
6569
6570 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6571 LGLYPH_SET_CODE to avoid compiler warnings.
6572
2ae37cf0 6573 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6574
6575 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6576
6577 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6578 LGLYPH_SET_CODE.
6579
65802008-08-29 Kenichi Handa <handa@m17n.org>
6581
6582 * fileio.c (report_file_error): Don't downcase the first character
6583 of errstring if it is still unibyte.
6584
65852008-08-29 Kenichi Handa <handa@m17n.org>
6586
6587 These changes are to re-implement the automatic composition so
6588 that it doesn't use text properties.
6589
6590 * Makefile.in (ftfont.o): Depend on composite.h.
6591 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6592
6593 * character.h (Vunicode_category_table): Extern it.
6594
6595 * character.c (Vunicode_category_table): New variable.
6596 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6597
6598 * chartab.c (optimize_sub_char_table): Perform more greedy
6599 optimization.
6600
b8ff72fa
SM
6601 * composite.h (enum composition_method):
6602 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6603 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6604 (Vcomposition_function_table): Extern it.
6605 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6606 (composition_gstring_put_cache, composition_gstring_from_id)
6607 (composition_gstring_p, composition_gstring_width)
6608 (composition_compute_stop_pos, composition_reseat_it)
6609 (composition_update_it, composition_adjust_point): Extern them.
6610 (Fcomposition_get_gstring): EXFUN it.
6611
d66c0241 6612 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6613 (Vcomposition_function_table)
6614 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6615 (gstring_hash_table, gstring_work, gstring_work_headers):
6616 New variables.
aac0c6e3
MR
6617 (gstring_lookup_cache, composition_gstring_put_cache)
6618 (composition_gstring_from_id, composition_gstring_p)
6619 (composition_gstring_width, fill_gstring_header)
6620 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6621 (composition_reseat_it, composition_update_it)
b8ff72fa 6622 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6623 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6624 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6625 Defsubr compostion_get_gstring.
6626
6627 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6628 cmp_id.
6629 (struct glyph_string): Delete the member gidx. New members
6630 cmp_id, cmp_from, and cmp_to.
6631 (enum it_method): Delete GET_FROM_COMPOSITION.
6632 (struct composition_it): New struct.
6633 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6634 Delete c, len, cmp_id, cmp_len in u.comp.
6635
6636 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6637 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6638 (enum lglyph_indices): Likewise.
b8ff72fa 6639 (font_range): Adjust extern.
aac0c6e3
MR
6640 (font_fill_lglyph_metrics): Extern it.
6641
6642 * font.c (QCf): New variable.
6643 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6644 (font_prepare_composition): Delete this function.
6645 (font_range): Type and arguments changed.
6646 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6647 (font_fill_lglyph_metrics): New function.
b8ff72fa 6648 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6649 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6650 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6651 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6652
6653 * fontset.h (font_for_char): Extern it.
6654
6655 * fontset.c (font_for_char): New function.
6656
6657 * ftfont.c: Include composite.h.
6658 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6659 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6660
6661 * indent.c: Include composite.h and dispextern.h.
6662 (check_composition): Delete this function.
6663 (scan_for_column): Handle composition by
6664 composition_compute_stop_pos, composition_reseat_it, and
6665 composition_update_it.
6666 (compute_motion): Likewise.
6667 (Fvertical_motion): Fix checking of composition.
6668
6669 * keyboard.c (adjust_point_for_property): Check composition by
6670 composition_adjust_point.
6671
b8ff72fa 6672 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6673 struct glyph_string.
6674
b8ff72fa
SM
6675 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6676 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6677 struct glyph.
6678 (produce_composite_glyph): Likewise.
6679
b8ff72fa
SM
6680 * w32term.c (x_draw_composite_glyph_string_foreground):
6681 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6682 (x_draw_glyph_string): Likewise.
6683
6684 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6685 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6686
6687 * xdisp.c: Include font.h.
6688 (it_props): Delete the entry for Qauto_composed.
6689 (init_iterator): Initialize it->cmp_it.id to -1.
6690 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6691 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6692 (handle_auto_composed_prop): Delete it.
6693 (handle_composition_prop): Handle only static composition.
6694 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6695 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6696 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6697 (pop_it): Likewise.
6698 (get_next_element): Delete next_element_from_composition.
6699 (CHAR_COMPOSED_P): New macro.
6700 (get_next_display_element): For automatic composition, get a face
6701 from the font in the glyph-string.
6702 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6703 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6704 (next_element_from_string): Check if the character at the current
6705 position is composed by CHAR_COMPOSED_P.
6706 (next_element_from_buffer): Likewise.
d66c0241
JB
6707 (next_element_from_composition): Adjust for the change of struct it.
6708 Update it->cmp_it.
b8ff72fa
SM
6709 (dump_glyph): Adjust for the change of struct glyph.
6710 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6711 it and struct glyph. Don't handle automatic composition here.
6712 (fill_gstring_glyph_string): New function.
6713 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6714 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6715 (BUILD_GSTRING_GLYPH_STRING): New macro.
6716 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6717 automatic composition.
b8ff72fa 6718 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6719 struct glyph.
b8ff72fa 6720 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6721
b8ff72fa 6722 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6723 the change of struct glyph_string.
6724 (x_draw_glyph_string): Likewise.
6725
67262008-08-29 Glenn Morris <rgm@gnu.org>
6727
6728 * buffer.c (word-wrap): Doc fix.
6729 * xdisp.c (truncate-partial-width-windows): Doc fix.
6730 Increase default to 50.
6731
67322008-08-29 Chong Yidong <cyd@stupidchicken.com>
6733
6734 * xdisp.c (update_tool_bar_unwind): New function.
6735 (update_tool_bar): Temporarily set selected frame before building
6736 tool-bar items.
6737
67382008-08-28 Michael Albinus <michael.albinus@gmx.de>
6739
6740 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6741 snprintf, respectively.
6742 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6743
67442008-08-28 Chong Yidong <cyd@stupidchicken.com>
6745
6746 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6747 LDFLAGS to GNUstep CC invocation.
6748
67492008-08-27 Chong Yidong <cyd@stupidchicken.com>
6750
6751 * indent.c (Fvertical_motion): Revert last change. Handle the
6752 general case where we are moving forward, and PT spans multiple
6753 screen lines.
6754
6755 * eval.c (find_handler_clause): Temporarily increase
6756 max-lisp-eval-depth while printing the backtrace buffer, to
6757 guarantee that help-mode code can run.
6758
67592008-08-27 Eli Zaretskii <eliz@gnu.org>
6760
6761 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6762 colors under -rv.
6763 (IT_set_frame_parameters): Don't swap foreground and background
6764 colors if `(reverse . t)' is present in the frame properties.
6765 (internal_terminal_init): Call init_frame_faces only for the
6766 initial frame.
6767
67682008-08-27 Andreas Schwab <schwab@suse.de>
6769
6770 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6771
67722008-08-27 Andreas Schwab <schwab@suse.de>
6773
6774 * search.c (search_buffer): Set char_base to zero only at the end.
6775
67762008-08-27 Kenichi Handa <handa@m17n.org>
6777
b8ff72fa 6778 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6779
67802008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6781
6782 * xterm.c (x_term_init): Temporarily hide the partially
6783 initialized terminal while calling vendor-specific-keysyms.
6784
67852008-08-26 Eli Zaretskii <eliz@gnu.org>
6786
6787 * msdos.c (internal_terminal_init): Most initializations done only
6788 once, especially initial_screen_colors[] and termscript open.
6789
67902008-08-26 Chong Yidong <cyd@stupidchicken.com>
6791
6792 * eval.c (Fcondition_case): Doc fix.
6793
6794 * widgetprv.h (EmacsFramePart): Change font member to the new font
6795 struct.
6796
6797 * widget.c: Include character.h and font.h for XSETFONT.
6798 (setup_frame_gcs): Compute X font id from font struct, just once.
6799
68002008-08-26 Eli Zaretskii <eliz@gnu.org>
6801
6802 * term.c (get_named_tty): Fix last change.
6803
68042008-08-26 Chong Yidong <cyd@stupidchicken.com>
6805
6806 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6807 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6808
68092008-08-25 Eli Zaretskii <eliz@gnu.org>
6810
6811 * frame.c (do_switch_frame): Mark previously displayed frame as
6812 obscured for FRAME_MSDOS_P frames as well.
6813
68142008-08-24 Eli Zaretskii <eliz@gnu.org>
6815
6816 * frame.c (make_terminal_frame): Initialize f->terminal,
6817 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6818 Set the top frame to newly created frame.
6819 (Fmake_terminal_frame): Reuse the_only_display_info.
6820
6821 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6822 estimating available memory.
6823
b97439ce 68242008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6825
6826 * nsterm.m (ns_draw_window_cursor): Don't call
6827 NSDisableScreenUpdates and NSEnableScreenUpdates on
6828 non-NS_IMPL_COCOA systems.
6829
68302008-08-23 Andreas Schwab <schwab@suse.de>
6831
6832 * process.c (procfs_system_process_attributes): Fix use of
6833 uninitialized variables.
6834
68352008-08-23 Eli Zaretskii <eliz@gnu.org>
6836
6837 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6838
6839 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6840 calling tty-set-up-initial-frame-faces.
6841
b8ff72fa
SM
6842 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6843 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6844
6845 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6846 addition to output_termcap.
6847
6848 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6849
6850 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6851 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6852 highlight.
6853
6854 * process.c [!subprocesses]: Define QCname.
6855 (syms_of_process): Intern and staticpro it.
6856
6857 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6858 Adjust for changes in encoding/decoding routines.
6859 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6860 encode_coding and decode_coding.
6861
b8ff72fa 6862 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6863
6864 * dosfns.c: Include frame.h before termhooks.h.
6865 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6866 variable termscript.
6867
6868 * s/msdos.h (USER_FULL_NAME): Define.
6869 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6870
6871 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6872 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6873 pw->pw_gecos.
6874
6875 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6876 SELECTED_FRAME as additional (1st) argument.
6877 (tty_read_avail_input): Handle output_msdos_raw in
6878 addition to output_termcap.
6879
6880 * msdos.c: Include frame.h before termhooks.h.
6881 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6882 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6883 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6884 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6885 (IT_set_terminal_modes, IT_reset_terminal_modes)
6886 (IT_set_frame_parameters): Use tty->termscript instead of a global
6887 variable termscript.
6888 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6889 global variable terminal_coding. Don't refer to
6890 Vnonascii_translation_table.
6891 (internal_terminal_init): Set Vwindow_system in current_kboard.
6892 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6893 Announce date and time of session start, if termscript is open.
6894 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6895 term.c:init_tty). Open termscript only of not already open.
6896 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6897 here instead of dos_ttraw. Don't initialize display if this is an
6898 initial tty. Don't set FRAME_FONT.
6899 (Vwindow_system_version): Bump to 23.
6900 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6901 is available, set up mouse_position_hook.
6902 (dos_ttraw, IT_set_terminal_modes): If called with initial
6903 terminal, do nothing.
6904 (IT_set_frame_parameters): Handle the Qtty_type frame
6905 parameter by calling internal_terminal_init.
6906 (dos_set_window_size, show_mouse_face)
6907 (clear_mouse_face, IT_note_mode_line_highlight)
6908 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6909 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6910 (initialize_msdos_display): New function.
6911 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6912 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6913 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6914 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6915 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6916 (request_sigio, unrequest_sigio): Don't define, now defined on
6917 sysdep.c.
6918 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6919
6920 * term.c [MSDOS]: Include msdos.h.
6921 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6922 conditional to DOS_NT. Allow only one call to this function in a
6923 session. Don't allocate a new struct tty_display_info; instead,
6924 reuse the_only_display_info. Call get_tty_size to get screen
6925 dimensions. Call init_baud_rate to set bad_rate.
6926 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6927 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6928 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6929 (get_tty_terminal, get_named_tty, Ftty_type)
6930 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6931 output_termcap.
b8ff72fa
SM
6932 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6933 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6934 only when subprocesses are supported.
aac0c6e3
MR
6935
6936 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6937 f->output_data.x.
6938 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6939 terminal devices.
6940
5582fbc7 6941 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6942 x_output.
6943 (FRAME_FONT): Use output_data.tty.
6944 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6945 (struct x_display_info): Rename from display_info. Update all users in
6946 msdos.c.
aac0c6e3 6947 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6948 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6949 (dos_ttraw): Update prototype.
6950
6951 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6952 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6953
69542008-08-23 Jason Rumney <jasonr@gnu.org>
6955
6956 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6957 (fn_TIFFSetDirectory): New library function used.
6958 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6959 (tiff_load): Use :index to select among multiple images. Set count
6960 property when multiple images exist.
6961 (gif_format): Use :index, not :image.
6962
69632008-08-23 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * xdisp.c (try_scrolling): Check INT_MAX instead of
6966 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6967 to obtain INT_MAX.
6968
69692008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6970
6971 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6972
69732008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6974
6975 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6976 GNUstep library location.
6977
69782008-08-21 Chong Yidong <cyd@stupidchicken.com>
6979
6980 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6981 before using it.
6982
6983 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6984
69852008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6986
6987 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6988 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6989 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6990 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6991 (EmacsApp-cursor_blink_handler): Remove declaration.
6992 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6993 match 01 Feb 2008 changes in xterm.c.
6994 (ns_read_socket): Add cast to avoid warning.
6995 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6996 GNUstep.
6997
69982008-08-20 Chong Yidong <cyd@stupidchicken.com>
6999
7000 * xselect.c (x_get_foreign_selection): Return nil if desired
7001 selection could not be obtained, instead of signalling an error.
7002
70032008-08-20 David Reitter <david.reitter@gmail.com>
7004
7005 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7006 * nsterm.m: Remove ns-specific code for cursor blinking.
7007 (ns_draw_window_cursor): Clear cursor properly rather than
7008 redrawing the area. Respect width of bar cursors.
7009 These changes enable the use of generic blink-cursor-mode and
7010 generic cursor types in NS and support smooth cursor movements (do
7011 not blink off after command).
7012 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7013 Nextstep, too.
7014
70152008-08-19 Kenichi Handa <handa@m17n.org>
7016
7017 * font.c (Vfont_log_deferred): New variable.
7018 (font_add_log): Check Vfont_log_deferred.
7019 (font_deferred_log): New function.
7020
7021 * font.h (font_deferred_log): Extern it.
7022
7023 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7024 for sorting.
7025 (face_for_char): Use deferred log.
7026
70272008-08-18 Kenichi Handa <handa@m17n.org>
7028
7029 * fontset.c (face_for_char): Add font log.
7030
7031 * font.c (font_add_log): Add the font properties :script, :lang,
7032 and :otf in the log.
7033
70342008-08-17 Chong Yidong <cyd@stupidchicken.com>
7035
7036 * xdisp.c: Remove dead code.
7037 (handle_invisible_prop, next_overlay_string): Defer call to
7038 setup_for_ellipsis.
7039 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7040
70412008-08-15 Chong Yidong <cyd@stupidchicken.com>
7042
7043 * xfaces.c (lookup_derived_face): Properly handle possible zero
7044 return value of get_lface_attributes.
7045 (merge_faces): Don't tell lookup_derived_face to signal an error
7046 if face is not found.
7047
7048 * dired.c (Fdirectory_files): Doc fix.
7049
7050 * process.c (make_process): Initialize kill_without_query struct
7051 member.
7052
70532008-08-15 Eli Zaretskii <eliz@gnu.org>
7054
7055 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7056 Alternative calculation of totphys for Visual Studio 6.
7057
7058 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7059
7060 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7061 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7062 All users changed.
7063 (stat): Only root directory passed to GetDriveType. Allow RAM
7064 disk as well as local fixed disk when w32-get-true-file-attributes
7065 is set to `local'.
7066 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7067 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7068 (w32_cached_id, w32_add_to_cache): New functions.
7069 (get_name_and_id): Look account names in the cache before calling
7070 lookup_account_sid.
7071 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7072 New initialization flags.
7073 (globals_of_w32): Initialize them to zero.
7074 (w32_system_process_attributes): Use w32_cached_id and
7075 w32_add_to_cache.
7076
70772008-08-14 Lawrence Mitchell <wence@gmx.li>
7078
7079 * lread.c (Fread_char, Fread_char_exclusive): If no character
7080 event is read before timeout is reached, return nil, rather than
7081 converting to a number.
7082
70832008-08-14 Chong Yidong <cyd@stupidchicken.com>
7084
7085 * fns.c (use_dialog_box): Doc fix.
7086
7087 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7088 on OS X.
7089
70902008-08-13 Chong Yidong <cyd@stupidchicken.com>
7091
7092 * frame.c (Qns_parse_geometry): New var.
7093 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7094
70952008-08-11 Chong Yidong <cyd@stupidchicken.com>
7096
7097 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7098 space character in calculating tabs.
7099
71002008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7101
7102 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7103
71042008-08-10 Glenn Morris <rgm@gnu.org>
7105
7106 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7107 silence gcc "limited range of data type" warnings in some
7108 make_fixnum_or_float calls.
7109
71102008-08-09 Eli Zaretskii <eliz@gnu.org>
7111
7112 * w32.c (w32_system_process_attributes): If the process does not
7113 exist, return nil.
7114
7115 * w32.c: Include thelp32.h, psapi.h and coding.h.
7116 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7117 declarations.
7118 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7119 (Process32Next_Proc): New typedefs.
7120 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7121 (g_b_init_process32_next, g_b_init_open_thread_token)
7122 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7123 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7124 (g_b_init_get_process_working_set_size)
7125 (g_b_init_global_memory_status_ex): New static variables.
7126 (globals_of_w32): Initialize them.
7127 (create_toolhelp32_snapshot, process32_first, process32_next)
7128 (open_thread_token, impersonate_self, revert_to_self)
7129 (get_process_memory_info, get_process_working_set_size)
7130 (global_memory_status, global_memory_status_ex): New wrapper
7131 functions.
7132 (w32_list_system_processes, w32_system_process_attributes)
7133 (enable_privilege, restore_privilege, ltime, process_times):
7134 New functions.
7135 (convert_time_raw): New function.
7136 (convert_time): Remove conversion of FILETIME into time in 100
7137 nsec units, call convert_time_raw instead.
7138
7139 * process.h (w32_list_system_processes, w32_system_process_attributes):
7140 Add prototypes.
7141 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7142 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7143 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7144 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7145
7146 * process.c (Fsystem_process_attributes): Doc fix.
7147
71482008-08-08 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7151 a continued multi-char glyph; if so, advance to the actual glyph.
7152
71532008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7154
7155 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7156
7157 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7158 (.m.o): Use it.
7159 * config.in: Regenerate.
7160
71612008-08-07 Chong Yidong <cyd@stupidchicken.com>
7162
7163 * xdisp.c (redisplay_window): Revert last change.
7164 (try_window): Check bottom scroll margin too.
7165
71662008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7167
7168 * config.in: Regenerate.
7169
7170 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7171 -list-load-path-shadows'.
7172 (nsgui.h): Reduce number of things depending on it.
7173
71742008-08-06 Chong Yidong <cyd@stupidchicken.com>
7175
7176 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7177 instead of window-end which does the wrong thing at eob.
7178 (try_cursor_movement): Minor optimization.
7179 (redisplay_window): If scroll margin is defined, don't assume
7180 window doesn't need scrolling.
7181
71822008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7183
7184 * config.in: Regenerate.
7185
7186 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7187 (mostlyclean): Don't delete *.d under NS.
7188
7189 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7190
71912008-08-06 Kenichi Handa <handa@m17n.org>
7192
7193 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7194
71952008-08-06 Andreas Schwab <schwab@suse.de>
7196
7197 * config.in: Regenerate.
7198
71992008-08-05 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7202 forcing a window start.
7203
7204 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7205 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7206
72072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7208
7209 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7210 argument.
7211
72122008-08-05 Juanma Barranquero <lekktu@gmail.com>
7213
7214 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7215 <scroll-down-aggressively, before-change-functions>:
7216 <after-change-functions>: Reflow docstrings.
7217
72182008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7219 Ken Raeburn <raeburn@gnu.org>
7220
7221 Dock menu customization, based on a patch by Ken Raeburn, plus some
7222 other fixes.
7223 * nsmenu.m (dockMenu): New variable.
7224 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7225
7226 * nsterm.h (dockMenu): Declare.
7227
7228 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7229 (ns_term_init): Initialize dockMenu.
7230 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7231 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7232 left.
7233
7234 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7235
72362008-08-04 Chong Yidong <cyd@stupidchicken.com>
7237
7238 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7239
7240 * config.in: Regenerate.
7241
72422008-08-04 Seiji Zenitani <zenitani@mac.com>
7243
7244 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7245
72462008-08-04 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7249
72502008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7251
7252 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7253
7254 * keyboard.h: Comment an #endif.
7255
7256 * lisp.h (have_menus_p): Adjust comment.
7257
7258 * menu.c (find_and_return_menu_selection): Fix comparison with
7259 client_data.
7260
7261 * nsmenu.m (popup_activated_flag): New variable.
7262 (popup_activated): New function.
7263 (menu-or-popup-active-p): New exported lisp definition.
7264 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7265 when popup done.
7266 (ns_popup_dialog): Set popup_activated_flag.
7267
7268 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7269 version for GNUstep (handled by conditional typedef in nsterm.m).
7270 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7271 in rgb.txt).
7272
7273 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7274
7275 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7276
7277 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7278
7279 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7280 shortcircuit if popup_activated like GTK and X toolkit.
7281
7282 * m/inter386.h: Change DARWIN to DARWIN_OS.
7283
7284 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7285 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7286 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7287 comment on NO_SOCK_SIGIO.
7288
72892008-08-03 Chong Yidong <cyd@stupidchicken.com>
7290
7291 * nsterm.m (windowDidResize): Remove stopModal call.
7292
72932008-08-03 Andreas Schwab <schwab@suse.de>
7294
7295 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7296 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7297
72982008-08-02 Chong Yidong <cyd@stupidchicken.com>
7299
7300 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7301 Don't use uninitialized pointer variable when using getrlimit.
7302
73032008-08-02 Jason Rumney <jasonr@gnu.org>
7304
7305 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7306
73072008-08-02 Eli Zaretskii <eliz@gnu.org>
7308
7309 * alloc.c (NSTATICS): Bump to 0x640.
7310
7311 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7312
7313 * lisp.h: Add prototype for directory_files_internal.
7314
7315 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7316 New functions.
7317 (syms_of_process): Defsubr them. Add initializations for various
7318 Q* symbols used in procfs_system_process_attributes.
7319 (procfs_list_system_processes, procfs_system_process_attributes)
7320 [HAVE_PROCFS]: New functions.
7321 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7322 (procfs_get_total_memory): New functions.
7323
73242008-08-01 Juanma Barranquero <lekktu@gmail.com>
7325
7326 * xfaces.c (Fx_load_color_file): Fix previous change;
7327 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7328
73292008-08-01 Michael Albinus <michael.albinus@gmx.de>
7330
7331 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7332
73332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7334
7335 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7336
73372008-08-01 Chong Yidong <cyd@stupidchicken.com>
7338
7339 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7340
7341 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7342 define NSApplicationDelegateReplySuccess.
7343 (EmacsView -converstationIdentifier): Use long instead of
7344 NSInteger for GNUstep, since it doesn't have NSInteger.
7345
7346 * xmenu.c: Revert last change.
7347
7348 * keyboard.h: Fix last change.
7349
73502008-08-01 Juanma Barranquero <lekktu@gmail.com>
7351
7352 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7353 on Windows.
7354
73552008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7356
7357 Warning clearing and clean-up in NS port.
7358 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7359 Add prototypes.
7360 * nsgui.h (FACE_DEFAULT): Remove, unused.
7361 (XGCValues): Change colors to unsigned long.
7362 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7363 nsterm.m.
7364 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7365 (ns_list_fonts): Remove, unused.
7366 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7367 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7368 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7369 (nsfont_draw): Compare face colors to 0, not nil.
7370 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7371 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7372 (-addSubmenuWithTitle:): Use NSMenuItem class.
7373 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7374 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7375 (ns_clip_to_row): Make gc arg a BOOL.
7376 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7377 ns_clip_to_row() call.
7378 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7379 used). Cast FRAME_FONT assignments.
7380 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7381 (ns_string_to_lispmod): Change arg to const char.
7382 (ns_term_init): Use NSMenuItem class.
7383 (EmacsApp -openFile:): Move to different section of file.
7384 (EmacsApp -application:openFiles:): Don't return a value, call
7385 -replyToOpenOrPrint:.
7386 (EmacsView -keyDown:): Fix up cast.
7387 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7388 (EmacsView -menuDown:): Cast tag in call to
7389 find_and_call_menu_selection().
7390 (ns_list_fonts): Remove, unused.
7391 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7392 (ns_fontname_to_xlfd): Make static.
7393 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7394 Remove prototypes (now in keyboard.h).
7395 (next_menubar_widget_id): Remove, unused.
7396 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7397 Remove prototypes (now in keyboard.h).
7398 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7399
74002008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7401
7402 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7403 (floatfns.o): Depend on syssignal.h.
7404 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7405
7406 * systty.h: Fix previous change that removed BSD_TERMIOS.
7407 Add comments to #ifdefs.
7408
74092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7410
7411 * w32fns.c (w32-load-color-file): Remove.
7412 (x-open-connection): Use renamed Fx_load_color_file.
7413 * xfaces.c (x-load-color-file): Add.
7414 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7415 Emacs.clr.
7416 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7417
74182008-07-31 Michael Albinus <michael.albinus@gmx.de>
7419
7420 * dbusbind.c (Fdbus_call_method_asynchronously)
7421 (Fdbus_method_error_internal): New defuns.
7422 (xd_read_message): Handle also reply messages.
7423 (Vdbus_registered_functions_table): Extend docstring.
7424
74252008-07-31 Juanma Barranquero <lekktu@gmail.com>
7426
7427 * keyboard.c (gobble_input): Fix previous change.
7428
74292008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7430
7431 * bitmaps/README:
7432 * xfns.c:
7433 * termcap.c:
7434 * term.c:
7435 * syswait.h:
7436 * systty.h:
7437 * systime.h:
7438 * syssignal.h:
7439 * sysdep.c:
7440 * process.h:
7441 * process.c:
7442 * print.c:
7443 * ndir.h:
7444 * lread.c:
7445 * keyboard.c:
7446 * getpagesize.h:
7447 * floatfns.c:
7448 * fileio.c:
7449 * emacs.c:
7450 * doc.c:
7451 * dispnew.c:
7452 * dired.c:
7453 * data.c:
7454 * callproc.c:
7455 * buffer.c:
7456 * README:
7457 * Makefile.in:
7458 * s/template.h:
7459 * s/msdos.h:
7460 * m/vax.h: Remove VMS support.
7461 * s/vms.h:
7462 * vlimit.h:
7463 * uaf.h:
7464 * temacs.opt:
7465 * param.h:
7466 * ioctl.h: Remove file.
7467
74682008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7469
7470 * s/ms-w32.h (MULTI_KBOARD): Remove.
7471 * xterm.c:
7472 * xselect.c:
7473 * xfns.c:
7474 * window.c:
7475 * w32term.c:
7476 * w32fns.c:
7477 * terminal.c:
7478 * termhooks.h:
7479 * term.c:
7480 * sysdep.c:
7481 * keyboard.h:
7482 * keyboard.c:
7483 * frame.h:
7484 * frame.c:
7485 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7486 * config.in: Regenerate.
7487
74882008-07-30 Jason Rumney <jasonr@gnu.org>
7489
7490 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7491
7492 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7493 (w32font_open_internal): Get unicode version of textmetrics.
7494 Don't enable or disable glyph indices here.
7495 (w32font_open): Disable use of glyph indices.
7496
7497 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7498
74992008-07-30 Chong Yidong <cyd@stupidchicken.com>
7500
7501 * minibuf.c (Vread_buffer_function): Doc fix.
7502
75032008-07-30 John Paul Wallington <jpw@pobox.com>
7504
7505 * minibuf.c (read_buffer_completion_ignore_case): New var.
7506 (Fread_buffer): Use it.
7507
75082008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7509
7510 * systty.h (sensemode): Remove empty #if. Remove reference to
7511 BSD_TERMIOS, unused.
7512
7513 * sysdep.c: Remove reference to DGUX.
7514 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7515
7516 * config.in: Regenerate.
7517
75182008-07-30 Jason Rumney <jasonr@gnu.org>
7519
7520 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7521
75222008-07-29 Jason Rumney <jasonr@gnu.org>
7523
7524 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7525 is populated.
7526 (uniscribe_encode_char): Always use uniscribe.
7527 Avoid using context if cache is populated.
7528
75292008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7530
7531 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7532 open menu.
7533
7534 * gtkutil.c (menu_nav_ended): Remove.
7535 (create_menus): Remove signal connect for menu_nav_ended.
7536
75372008-07-28 Chong Yidong <cyd@stupidchicken.com>
7538
7539 * xdisp.c (redisplay_window): Check return value of
7540 compute_window_start_on_continuation_line before forcing a window
7541 start.
7542
75432008-07-28 Jason Rumney <jasonr@gnu.org>
7544
7545 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7546
7547 * w32term.c (w32_enable_unicode_output, cleartype_active):
7548 Remove obsolete display options.
7549 (x_draw_glyph_string_background): Don't use old cleartype_active
7550 workaround.
7551 (w32_initialize): Remove cleartype_active initialization.
7552 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7553
75542008-07-28 Andreas Schwab <schwab@suse.de>
7555
7556 * lisp.h (init_weak_hash_tables, syms_of_font)
7557 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7558 (remove_hash_entry): Don't declare.
7559 * eval.c (maybe_call_debugger): Make static and move before use.
7560 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7561 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7562 * xterm.h (x_set_frame_alpha): Declare.
7563
75642008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7565
7566 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7567 (create_menus): Connect selection-done to menu_nav_ended.
7568
75692008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7570
7571 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7572 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7573 parameter with read of 'alpha' one.
7574 (Qns_frame_parameter): Remove.
5582fbc7 7575 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7576 (next-selection-coding-system, Vselection_coding_system)
7577 (Vnext_selection_coding_system): Drop.
7578
75792008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7580
7581 * nsfns.m (do-applescript, do_applescript): Rename to
7582 ns-do-applescript, ns_do_applescript, and move within file.
7583
75842008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7585
7586 Remove support for Mac Carbon.
7587 * mactoolbox.c:
7588 * macterm.h:
7589 * macterm.c:
7590 * macselect.c:
7591 * macmenu.c:
7592 * macgui.h:
7593 * macfns.c:
7594 * mac.c: Remove file.
7595 * s/darwin.h:
7596 * m/intel386.h:
7597 * xfaces.c:
7598 * xdisp.c:
7599 * window.c:
7600 * tparam.c:
7601 * termhooks.h:
7602 * termcap.c:
7603 * term.c:
7604 * syssignal.h:
7605 * sysselect.h:
7606 * sysdep.c:
7607 * process.c:
7608 * lread.c:
7609 * lisp.h:
7610 * keyboard.c:
7611 * image.c:
7612 * fringe.c:
7613 * frame.h:
7614 * frame.c:
7615 * fontset.c:
7616 * font.h:
7617 * font.c:
7618 * fns.c:
7619 * fileio.c:
7620 * emacs.c:
7621 * dispnew.c:
7622 * dispextern.h:
7623 * config.in:
7624 * atimer.c:
2ae37cf0 7625 * Makefile.in: Remove code for Carbon.
aac0c6e3 7626
f0131492 76272008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7628
7629 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7630
76312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7632
7633 * macterm.h (kCGBitmapByteOrder32Host): New define for
7634 non-universal SDKs.
7635
7636 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7637 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7638
7639 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7640 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7641
76422008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7643
7644 * w32inevt.c: Include dispextern.h.
7645
76462008-07-26 Andreas Schwab <schwab@suse.de>
7647
7648 * print.c (print_object): Fix off-by-one in last change.
7649
76502008-07-25 Juanma Barranquero <lekktu@gmail.com>
7651
7652 * term.c (syms_of_term): Don't initialize default_orig_pair,
7653 default_set_foreground and default_set_background on Windows.
7654
76552008-07-25 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7658 ScriptItemize. Clean up return value checking. Remove unused
7659 variables.
7660 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7661 shaping engine.
7662
7663 * w32font.c (w32font_has_char): Handle the case where we can't
7664 determine the script for a character.
7665
76662008-07-25 Chong Yidong <cyd@stupidchicken.com>
7667
7668 * term.c (syms_of_term): Initialize default_orig_pair,
7669 default_set_foreground, and default_set_background.
7670
7671 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7672 clash (bug#86).
7673 (getloadavg): Callers changed.
7674
7675 * image.c (svg_load_image): Fix last change.
7676 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7677 image size is valid. Use g_object_unref instead of deprecated
7678 rsvg_handle_free to free rsvg handle.
7679 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7680
76812008-07-25 Jason Rumney <jasonr@gnu.org>
7682
7683 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7684 surrogates before looking up glyph index.
7685 (w32font_text_extents): Encode as surrogates if falling back to
7686 functions that need UTF-16 wide chars.
7687
7688 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7689 BMP as surrogates before looking up glyph index.
7690
76912008-07-25 Chong Yidong <cyd@stupidchicken.com>
7692
7693 * image.c (svg_load_image): Check for failure in return value of
7694 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7695
76962008-07-25 Jason Rumney <jasonr@gnu.org>
7697
7698 * w32font.c (Fx_select_font): Reverse sense of second arg.
7699
77002008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7701
7702 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7703 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7704
7705 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7706 (PURESIZE): Use it.
7707
77082008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7709
7710 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7711 * m/alpha.h (TEXT_END):
7712 * m/ibmrs6000.h (TEXT_END):
7713 * m/macppc.h (TEXT_END):
7714 * s/darwin.h (TEXT_END):
7715 * s/msdos.h (TEXT_END): Remove, unused.
7716 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7717 * s/cygwin.h: Remove comment.
7718
7719 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7720 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7721 * m/intel386.h (DOT_GLOBAL_START):
7722 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7723 (USG): Remove, file not used on USG platforms.
7724
7725 * Makefile.in (HAVE_X11): Remove empty #else.
7726
77272008-07-24 Andreas Schwab <schwab@suse.de>
7728
7729 * fileio.c (Finsert_file_contents): Properly adjust undo list
7730 after format conversion.
7731
77322008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7733
7734 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7735 (menu_nav_ended): Remove.
7736 (create_menus): Remove signal connect for menu_nav_ended.
7737 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7738 create_menus.
7739 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7740
77412008-07-23 Jason Rumney <jasonr@gnu.org>
7742
7743 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7744 with opened font.
7745 (w32font_open): Set font type to gdi.
7746
7747 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7748
77492008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7750
7751 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7752 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7753 defines it.
7754 * unexec.c (ADDR_CORRECT): Define unconditionally.
7755
7756 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7757
7758 * unexec.c: Remove code depending on !COFF and USG, the file is
7759 not used for such systems.
7760
7761 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7762 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7763 (LD_SWITCH_SYSTEM_1): Remove, update users.
7764
7765 * s/darwin.h (DATA_END):
7766 * m/intel386.h (DATA_END):
7767 * m/ibmrs6000.h (DATA_END):
7768 * m/alpha.h (DATA_END): Remove, unused.
7769
7770 * config.in: Regenerate.
7771 * s/ms-w32.h (subprocesses): Define unconditionally.
7772 * s/template.h (subprocesses): Update comment.
7773 * s/vms.h (subprocesses):
7774 * s/usg5-4.h (subprocesses):
7775 * s/hpux10-20.h (subprocesses):
7776 * s/gnu-linux.h (subprocesses):
7777 * s/cygwin.h (subprocesses):
7778 * s/bsd-common.h (subprocesses):
7779 * s/aix4-2.h (subprocesses):
7780 * s/darwin.h (subprocesses): Do not define, defined by default now.
7781
7782 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7783 Remove all references.
7784 (temacs): Add GNUstep specific ld flags.
7785
7786 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7787 similarly to what X does.
7788
77892008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7790
7791 * nsfns.m (x-list-fonts): Remove.
7792 (syms_of_nsfns): Drop the x-list-fonts declaration.
7793 * nsterm.m: Get rid of remaining "//" comments.
7794
77952008-07-22 Chong Yidong <cyd@stupidchicken.com>
7796
7797 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7798
7799 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7800 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7801 (Fns_own_selection_internal, Fx_disown_selection_internal)
7802 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7803
7804 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7805 ... */' style of docstrings. Doc fixes.
7806
78072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7808
7809 * terminfo.c (UP, BC, PC): Undo previous change.
7810
7811 * nsfns.m: Rename ns prefixed functions/variables to the
7812 corresponding x versions. Update references.
7813
78142008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7815
7816 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7817
78182008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7819
7820 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7821 Remove forwarding functions.
7822 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7823 non-static.
7824 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7825 non-static.
7826 (ns_frame_parm_handlers): Use the new names.
7827 (syms_of_nsfns): Move to the end of file.
7828
7829 * nsterm.m (syms_of_nsterm): Move to the end of file.
7830
7831 * dispnew.c (init_display): Remove code for X10.
7832
78332008-07-22 Jason Rumney <jasonr@gnu.org>
7834
7835 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7836 bare drive.
7837
78382008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7839
7840 * nsterm.m (syms_of_nsterm): Remove debugging println.
7841
78422008-07-22 David Reitter <david.reitter@gmail.com>
7843
7844 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7845 Carbon implementation of the same functionality: execute arbitrary
7846 AppleScript code.
7847
78482008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7849
7850 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7851 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7852 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7853 (Fx_display_mm_height, Fx_display_mm_width)
7854 (Fx_display_backing_store, Fx_display_visual_class)
7855 (Fx_display_save_under, Fx_open_connection)
7856 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7857 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7858 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7859 (Fx_display_pixel_width, Fx_display_pixel_height)
7860 (Fx_display_usable_bounds, Fx_display_planes)
7861 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7862 ... */' style of docstrings.
7863
78642008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7865
7866 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7867 on this platform.
7868 (mips):
7869 * m/iris4d.h (mips): Do not define.
7870 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7871
7872 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7873
7874 * image.c:
7875 * nsfns.m:
7876 * nsselect.m:
7877 * nsterm.h:
7878 * nsterm.m: Rename ns prefixed functions/variables to the
7879 corresponding x versions. Update references.
7880
7881 * m/ibms390x.h (NO_REMAP): Do not undefine.
7882
7883 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7884
78852008-07-21 Chong Yidong <cyd@stupidchicken.com>
7886
7887 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7888 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7889 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7890 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7891 (Fns_display_mm_height, Fns_display_mm_width)
7892 (Fns_display_backing_store, Fns_display_visual_class)
7893 (Fns_display_save_under, Fns_open_connection)
7894 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7895 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7896 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7897 (Fns_display_pixel_width, Fns_display_pixel_height)
7898 (Fns_display_usable_bounds, Fx_display_planes)
7899 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7900
79012008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7902
7903 * print.c (print_object): Check print_depth before searching for
7904 circularities.
7905
79062008-07-21 Michael Albinus <michael.albinus@gmx.de>
7907
7908 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7909 only sprintf.
7910
79112008-07-21 Kenichi Handa <handa@m17n.org>
7912
7913 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7914
79152008-07-20 Andreas Schwab <schwab@suse.de>
7916
7917 * syntax.c (find_start_pos, find_start_value)
7918 (find_start_value_byte, find_start_begv, find_defun_start)
7919 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7920
79212008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7922
7923 * s/sol2-3.h: Insert contents of s/sol2.h.
7924 (LD_SWITCH_SYSTEM): Remove redundant definition.
7925 * s/sol2.h: Remove, unused.
7926
79272008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7928
7929 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7930
79312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7932
7933 * Makefile.in (ns_appdir): Fix typo in find command.
7934
79352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7936
7937 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7938
7939 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7940 added not supported anymore.
7941
7942 * s/usg5-4-2.h (LIBS_SYSTEM):
7943 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7944
7945 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7946 * s/lynxos.h (GETPGRP_NO_ARG):
7947 * s/hpux10-20.h (NO_SIOCTL_H):
7948 * s/gnu.h (GETPGRP_NO_ARG):
7949 * s/gnu-linux.h (NO_SIOCTL_H):
7950 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7951 * s/cygwin.h (GETPGRP_NO_ARG):
7952 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7953 (C_DEBUG_SWITCH): Remove duplicate definition.
7954
7955 * m/ibms390.h: Remove boilerplate comments.
7956
7957 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7958
7959 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7960 (wait_reading_process_output): Remove code for SunOS, platform not
7961 supported anymore. Use SOLARIS2 instead of sun.
7962
79632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7964
7965 * font.c (font_open_by_name): Under NS, default lface height to zero.
7966 (font_open_for_lface): Under NS, set size based on frame fontsize.
7967 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7968 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7969
79702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7971
7972 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7973 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7974 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7975 YES/NO.
7976 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7977 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7978 * Makefile.in (clean): Clear out build destination dir.
7979
79802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7981
7982 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7983 xterm, xselect.
7984 * lisp.h: Remove declaration of hash_remove.
7985 * nsgui.h: Remove redefinitions of hash_remove.
7986 * fns.c (hash_remove): Rename to hash_remove_from_table.
7987
79882008-07-19 Seiji Zenitani <zenitani@mac.com>
7989
7990 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7991 strdup() the family UTF8String before modifying it.
7992
79932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7994
7995 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7996 NS_FACE_BACKGROUND with 0 instead of nil.
7997 * nsfont.m (nsfont_draw): Same.
7998
79992008-07-19 Chong Yidong <cyd@stupidchicken.com>
8000
8001 * nsfns.m (ns_set_background_color): Fix crash.
8002
80032008-07-18 Chong Yidong <cyd@stupidchicken.com>
8004
8005 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8006
80072008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8008
8009 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8010
80112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8012
8013 * gtkutil.c: Include <config.h> instead of "config.h".
8014
8015 * lisp.h (Foverlay_buffer): Add EXFUN.
8016
8017 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8018 child process to complete child_setup. Undo 2005-09-21 change.
8019
8020 * s/darwin.h: Mention setsid after vfork.
8021
80222008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8023
8024 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8025 Depend on macgui.h.
8026
8027 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8028 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8029
8030 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8031 and f19.
8032 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8033
8034 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8035 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8036 Remove enumerators.
8037
8038 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8039 Check if FACE_FROM_ID returns NULL.
8040
80412008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8042
8043 * w32inevt.c (change_frame_size): Remove extern declaration.
8044 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8045 change_frame_size.
8046
80472008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8048
8049 * getloadavg.c: Revert last change (2008-07-15).
8050
80512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8052
8053 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8054 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8055 from configure.
8056
80572008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8058
8059 * s/sol2.h:
8060 * s/sol2-4.h: Reorganize conditionals.
8061
8062 * ecrt0.c: Remove code depending on m68000, not used anymore.
8063
8064 * fns.c (hash_remove): Make static.
8065 * lisp.h (hash_remove): Don't prototype.
8066
8067 * m/ibmrs6000.h:
8068 * m/ibms390x.h:
8069 * m/macppc.h: Remove boilerplate comments.
8070
8071 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8072 Solaris, which does not need them.
8073
8074 * m/vax.h: Remove comments about unsupported systems.
8075
8076 * s/darwin.h: Reorganize ifdefs.
8077
80782008-07-17 Andreas Schwab <schwab@suse.de>
8079
8080 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8081
80822008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 Use SDATA. Follow coding convention of placing operators at
8085 beginning of next line rather than end of previous line, and placing
8086 spaces around infix operators.
8087
8088 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8089 in case it was defined already.
8090 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8091 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8092 ns_default.
8093 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8094 Lisp_Objects.
8095 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8096 (ns_defined_color, ns_color_to_lisp): Declare.
8097 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8098 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8099 it's accepted even with USE_LISP_UNION_TYPE.
8100 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8101 (update_frame_tool_bar): Remove apparently obsolete tests for
8102 non-integerness of f->tool_bar_lines.
8103 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8104 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8105 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8106 (nsfont_open): Don't confuse NULL for Qnil.
8107 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8108 * menu.h (find_and_call_menu_selection):
8109 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8110 (find_and_return_menu_selection): Always return something.
8111 * frame.h: Include dispextern.h for Display_Info.
8112 (display_x_get_resource): Declare.
8113
81142008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8115
8116 * syntax.c: Remove stdio.h include accidentally introduced in
8117 Emacs.app commit.
8118 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8119 NS_IMPL_COCOA.
8120 * keyboard.c (handle_async_input, input_available_signal): Remove
8121 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8122
81232008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8124
8125 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8126 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8127 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8128 Use SDATA.
8129
8130 * keymap.c: Remove all NS-specific code.
8131 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8132 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8133 where_is_preferred_modifier, return a different value depending on how
8134 preferred is the binding.
8135 (where_is_internal): Adjust accordingly.
8136 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8137 Adjust to new preferred_sequence_p.
8138 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8139 * keyboard.c (parse_solitary_modifier): Not static any more.
8140 * keyboard.h (parse_solitary_modifier): Declare.
8141
81422008-07-16 Andreas Schwab <schwab@suse.de>
8143
8144 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8145 of easymenu.
8146
81472008-07-16 Chong Yidong <cyd@stupidchicken.com>
8148
8149 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8150 that we don't move off the line.
8151
81522008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8153
8154 * keyboard.c (Qsuper): Remove.
8155 (parse_menu_item): Don't call where_is_internal specially for NS.
8156
81572008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8158
8159 * s/gnu-linux.h: Remove boilerplate comments.
8160
8161 * m/alpha.h (__ELF__): Consolidate conditions.
8162
8163 * m/m68k.h (linux): Use GNU_LINUX instead.
8164 Remove boilerplate comments.
8165
8166 * m/intel386.h: Undo refactoring from previous change.
8167 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8168 too, remove dead code.
8169 (linux): Use GNU_LINUX instead.
8170
81712008-07-16 Jason Rumney <jasonr@gnu.org>
8172
8173 * w32gui.h: Repeat 26 June changes lost by last change.
8174
81752008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8176
8177 * systty.h: Remove code for Aix on 386, unsupported platform.
8178
8179 * s/ms-w32.h: Remove boilerplate comments.
8180 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8181
8182 * s/gnu-linux.h (TERM): Remove support.
8183 (HAVE_SYSVIPC): Remove, unused.
8184 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8185 for this system.
8186
8187 * process.c: Remove support for IRIS, unused.
8188 Remove support for TERM, not relevant anymore.
8189
8190 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8191 used with the definition.
8192
8193 * s/aix4-2.h (static): Do not undef.
8194
8195 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8196 only used on Aix.
8197 (HAVE_SYSVIPC): Remove, unused.
8198
8199 * m/hp800.h (CANNOT_DUMP): Do not undef.
8200
8201 * m/alpha.h: Fix comment.
8202
8203 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8204 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8205 used by this configuration.
8206 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8207 * unexec.c: Remove code depending on HPUX and
8208 USG_SHARED_LIBRARIES, not used with this file. Remove code
8209 depending on IRIS, unused. Remove if 0-ed code.
8210
8211 * s/template.h: Remove comments about static.
8212
8213 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8214 Remove if 0-ed code.
8215 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8216 were the same as the default.
8217 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8218 Remove boilerplate comments.
8219 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8220 (HAVE_SYSVIPC): Remove, unused.
8221 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8222
8223 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8224 Remove boilerplate comments.
8225 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8226 Remove boilerplate comments.
8227 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8228 Remove boilerplate comments.
8229 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8230
8231 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8232 USG systems which do not use DATA_SEG_BITS.
8233 Refactor code. Remove boilerplate comments.
8234
8235 * m/ibms390.h:
8236 * m/m68k.h:
8237 * s/bsd-common.h:
8238 * s/cygwin.h:
8239 * s/darwin.h:
8240 * s/freebsd.h:
8241 * s/gnu.h:
8242 * s/msdos.h: Remove boilerplate comments.
8243
8244 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8245 do not use this file.
aac0c6e3
MR
8246 (IRIS_4D): Remove, unused.
8247
8248 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8249 do not use this file.
aac0c6e3
MR
8250 (SIGN_EXTEND_CHAR):
8251 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8252 * unexmips.c: Remove file, unused.
8253
8254 * editfns.c (Fuser_full_name): Replace the only use of
8255 USER_FULL_NAME with its value.
8256 * config.in: Regenerate.
8257
82582008-07-16 David Reitter <david.reitter@gmail.com>
8259
8260 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8261 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8262
82632008-07-16 Glenn Morris <rgm@gnu.org>
8264
8265 * emacs.c (system-type): Doc fix.
8266
82672008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8268
8269 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8270 If the cache doesn't work, let's fix it, rather than work around it.
8271
82722008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8273
8274 * Makefile.in: Correct additions for nsfont.o in last commit.
8275 * nsfont.m: New file (forgot last commit).
8276
82772008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8278
8279 * callproc.c (set_initial_environment): Initialize
8280 Vprocess_environment under CANNOT_DUMP (fixes crash when
8281 batch-compiling for bootstrap).
8282
82832008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8284 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8285
8286 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8287 fix crash due to different init order.
8288
82892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8290
8291 Changes and additions for NeXTstep windowing system (Cocoa and
8292 GNUstep) support.
8293
8294 * Makefile.in:
8295 * config.in: Support defines and build commands for NS port.
8296 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8297 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8298 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8299 windowing.
8300 (struct face): Add synth_ital field.
8301 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8302 (init_display): Initialize Vinitial_window_system to "ns" when so
8303 compiled.
8304 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8305 (display_arg): Use under NS.
8306 (main): Under NS, allocate autorelease pool and handle command line
8307 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8308 (standard_args): Add NS-specific args.
8309 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8310 * font.c (DEFAULT_ENCODING): New variable.
8311 (font_find_for_lface): Use it.
8312 (syms_of_font): Load syms_of_nsfont under NS.
8313 * font.h: Declare nsfont_driver when compiled under NS.
8314 * fontset.c: When compiling under NS, include nsterm.h.
8315 (fontset_from_font): Autoconstruct fontset under NS.
8316 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8317 symbol, document and use it.
8318 (do_switch_frame): When for_deletion under Cocoa, add
8319 Fraise_frame(Qnil).
8320 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8321 (x_get_arg): Allow "yes" and "no" as boolean values.
8322 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8323 Qright under Cocoa.
8324 (focus-follows-mouse): Default to 0 under NS.
8325 * frame.h (enum output_method): Add output_ns.
8326 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8327 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8328 (FRAME_WINDOW_P): NS-specific definition.
8329 * fringe.c (max_used_fringe_bitmap): Make public.
8330 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8331 (getloadavg): Use NeXT code under descendant OS's.
8332 * image.c (includes and header section, x_create_bitmap_from_data)
8333 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8334 (image_background_transparent, x_clear_image_1)
8335 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8336 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8337 (x_to_xcolors, x_from_xcolors, x_disable_image)
8338 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8339 other GUIs, including XPM support using code originally written for
8340 Carbon GUI.
8341 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8342 using NS API.
8343 (image_ascent): Use font metrics macros instead of direct struct field
8344 access.
8345 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8346 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8347 Also, handle NS as GTK for menu bar purposes.
8348 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8349 toolkit where they differ.
8350 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8351 use cachelist, still needed under NS.
8352 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8353 (struct widget_value): Define it here for menu.c.
8354 * keymap.c (includes): Include modifier internals.
8355 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8356 NS.
8357 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8358 support for preferring sequences using certain modifiers, specified by
8359 the FIRSTONLY argument.
8360 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8361 under NS GNUstep implementation.
8362 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8363 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8364 * menu.c: Include nsterm.h under NS.
8365 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8366 (free_menubar_widget_tree_value, update_submenu_strings)
8367 (find_and_call_menu_selection): Treat NS as X and NT.
8368 (find_and_return_menu_selection): New function, used for popup menus.
8369 * nsgui.h:
8370 * nsterm.h:
8371 * nsfns.m:
8372 * nsimage.m:
8373 * nsmenu.m:
8374 * nsselect.m:
8375 * nsterm.m: New files.
8376 * process.c (wait_reading_process_output): Under NS, call ns_select()
8377 instead of plain select().
8378 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8379 beginning of buffer.
8380 * sysselect.h (init_process): Rename when compiling under Cocoa to
8381 avoid name conflict.
8382 * termhooks.h (display_info): Add ns_display_info to union.
8383 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8384 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8385 COCOA environment.
8386 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8387 unexec() signature. (Note, this will dump, but the resulting file
8388 crashes; unexosx is used instead; keeping around for reference and
8389 possible aid in getting dump working under GNUstep.)
8390 * w32gui.h (button_type, widget_value): Remove definitions (now in
8391 keyboard.h).
8392 * window.c: Include nsterm.h when compiling under NS.
8393 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8394 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8395 other GUI windowing systems.
8396 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8397 GTK.
8398 (x_consider_frame_title): Under NS, set icon type and frame
8399 modified-state indicator; use ns_set_name_as_filename() when using
8400 formatted title.
8401 (update_window_cursor): Make public when compiling under NS.
8402 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8403 (hourglass_atimer, Vhourglass_delay
8404 * xfaces.c (header section, init_frame_faces, clear_font_table)
8405 (defined_color, unload_color, x_face_list_fonts)
8406 (prepare_face_for_display): Add NS support parallel to other GUIs.
8407 Emulate GCs like other non-X GUIs.
8408 (split_font_name): Don't lowercase font name under NS.
8409 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8410 under NS.
8411 * s/darwin.h: Add support for compilation under NS.
8412
84132008-07-15 Jason Rumney <jasonr@gnu.org>
8414
8415 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8416 (w32_show_hourglass): Rename from show_hourglass.
8417 (w32_hide_hourglass): Rename from hide_hourglass.
8418 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8419 (Vhourglass_delay): Declare extern.
8420 (hourglass_started): Remove.
8421
8422 * xdisp.c (Vhourglass_delay): Remove static.
8423 (hourglass_started, start_hourglass, cancel_hourglass):
8424 Don't include these versions on WINDOWSNT.
8425
84262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8427
8428 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8429 variables (formerly in xfns.c).
8430 (show_hourglass, hide_hourglass): New prototypes (same).
8431 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8432 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8433 in xfns.c).
8434 (syms_of_xdisp): Declare/initialize display-hourglass,
8435 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8436 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8437 formerly in xfns.c.
8438 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8439 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8440 (start_hourglass, cancel_hourglass): Remove.
8441 (show_hourglass, hide_hourglass): Remove prototypes and static
8442 modifiers.
8443 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8444 hourglass_atimer, hourglass_shown_p declaration/initialization.
8445 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8446 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8447 (start_hourglass, cancel_hourglass): Remove.
8448 (show_hourglass, hide_hourglass): Remove prototypes and static
8449 modifiers.
8450 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8451 hourglass_atimer, hourglass_shown_p declaration/initialization.
8452 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8453 (DEFAULT_HOURGLASS_DELAY): Remove.
8454 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8455 hourglass_shown_p declaration/initialization.
8456
84572008-07-14 Jason Rumney <jasonr@gnu.org>
8458
8459 * w32fns.c (w32_get_arg): Remove wrapper function.
8460 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8461 directly.
8462 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8463
84642008-07-14 Kenichi Handa <handa@m17n.org>
8465
8466 * xfont.c (xfont_open): Add workaround for X's bug.
8467
84682008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8469
8470 * fontset.c: Include <stdio.h> unconditionally.
8471
84722008-07-13 Michael Albinus <michael.albinus@gmx.de>
8473
8474 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8475 for filtering.
8476
84772008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8478
8479 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8480
8481 * m/macppc.h:
8482 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8483
8484 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8485 (SPECIAL_EMACS_INT):
8486 * m/ia64.h (SPECIAL_EMACS_INT):
8487 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8488 * s/gnu.h (NLIST_STRUCT):
8489 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8490 * s/gnu-linux.h (LINUX):
8491 * s/msdos.h (HAVE_FACES):
8492 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8493
8494 * systty.h:
8495 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8496 anymore.
8497
84982008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8499
8500 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8501 always defined as int.
8502
8503 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8504 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8505 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8506 * s/freebsd.h (HAVE_WAIT_HEADER):
8507 * s/bsd-common.h (HAVE_UNION_WAIT):
8508 * s/aix4-2.h (HAVE_WAIT_HEADER):
8509 * m/mips.h (HAVE_UNION_WAIT):
8510 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8511 (COFF, static): Do not define, they are undefined later in the file.
8512
8513 * process.c (update_status): Don't use a union.
8514 (status_convert):
8515 (sigchld_handler): Use int instead of WAITTYPE.
8516
85172008-07-12 Chong Yidong <cyd@stupidchicken.com>
8518
8519 * indent.c (Fvertical_motion): Restore hscroll before moving to
8520 goal column.
8521
85222008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8523
8524 * lisp.h: Remove left over code.
8525
85262008-07-11 Andreas Schwab <schwab@suse.de>
8527
8528 * lisp.h: Fix logic in last change.
8529
8530 * menu.h: New file.
8531 * menu.c: Include it.
8532 * xmenu.c: Likewise.
8533 * Makefile.in: Update dependencies.
8534
85352008-07-11 Kenichi Handa <handa@m17n.org>
8536
8537 * fontset.c (fontset_from_font): Cancel the previous change.
8538
85392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8540
8541 * lisp.h:
8542 * w32heap.c:
8543 * emacs.c:
8544 * alloc.c: Replace all references of NO_UNION_TYPE with
8545 USE_LISP_UNION_TYPE.
8546
8547 * m/xtensa.h (NO_UNION_TYPE):
8548 * m/vax.h (NO_UNION_TYPE):
8549 * m/template.h (NO_UNION_TYPE):
8550 * m/sparc.h (NO_UNION_TYPE):
8551 * m/mips.h (NO_UNION_TYPE):
8552 * m/macppc.h (NO_UNION_TYPE):
8553 * m/m68k.h (NO_UNION_TYPE):
8554 * m/iris4d.h (NO_UNION_TYPE):
8555 * m/intel386.h (NO_UNION_TYPE):
8556 * m/ibms390x.h (NO_UNION_TYPE):
8557 * m/ibms390.h (NO_UNION_TYPE):
8558 * m/ibmrs6000.h (NO_UNION_TYPE):
8559 * m/ia64.h (NO_UNION_TYPE):
8560 * m/hp800.h (NO_UNION_TYPE):
8561 * m/arm.h (NO_UNION_TYPE):
8562 * m/amdx86-64.h (NO_UNION_TYPE):
8563 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8564 defining it the same.
8565
85662008-07-10 Chong Yidong <cyd@stupidchicken.com>
8567
8568 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8569
85702008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8571
8572 * fileio.c:
8573 * sysdep.c
8574 * systty.h:
8575 * m/ibmrs6000.h:
8576 * m/iris4d.h:
8577 * s/aix4-2.h:
8578 * s/freebsd.h:
8579 * s/gnu-linux.h:
8580 * s/hpux10-20.h:
8581 * s/hpux11.h:
8582 * s/netbsd.h:
8583 * s/sol2-3.h:
8584 * s/sol2-4.h:
8585 * s/sol2.h:
8586 * s/usg5-4.h:
8587 * s/vms.h: Remove references to unused variables.
8588
85892008-07-10 Andreas Schwab <schwab@suse.de>
8590
8591 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8592 pattern before matching the generic family.
8593
85942008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8595
8596 * unexec.c:
8597 * s/vms.h:
8598 * s/usg5-4-2.h:
8599 * s/sol2-5.h:
8600 * s/freebsd.h:
8601 * s/darwin.h: Remove dead code.
8602
8603 * m/template.h:
8604 * m/sparc.h:
8605 * m/mips.h:
8606 * m/m68k.h:
8607 * m/iris4d.h:
8608 * m/intel386.h:
8609 * m/ibms390x.h:
8610 * m/ibms390.h:
8611 * m/ia64.h:
8612 * m/hp800.h:
8613 * m/arm.h:
8614 * m/amdx86-64.h: Remove dead code and references to unused
8615 and compiler defined symbols.
8616
8617 * unexmips.c:
8618 * unexelf.c: Remove references to desupported systems.
8619
8620 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8621
8622 * m/powermac.h: Remove boilerplate comments.
8623 (NO_REMAP): Remove unused definition.
8624
8625 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8626 define them.
8627
86282008-07-10 Kenichi Handa <handa@m17n.org>
8629
8630 * xfont.c (xfont_open): Log the reason of failure.
8631
86322008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8633
8634 * fontset.c (fontset_get_font_group):
8635 * font.c (font_check_otf): Specify argument types.
8636
86372008-07-09 Kenichi Handa <handa@m17n.org>
8638
8639 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8640 non-ASCII char is found.
8641
8642 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8643 (reorder_font_vector): Change the arg preferred_family to font.
8644 Prefer the spec matching with font.
8645 (fontset_get_font_group): New function.
8646 (fontset_find_font): Change the format of an element of a realized
8647 fontset. Use fontset_get_font_group.
8648 (fontset_font): Try the current fontset, the default fontset, the
8649 fallbacks of the current fontset, and the fallbacks of the default
8650 fontset in this order.
8651 (face_for_char): Delete the shortcut to use the current font.
8652 (fontset_from_font): Don't set fonts for Latin in the fontset.
8653
8654 * font.h (font_make_object, font_match_p): Adjust prototypes.
8655
8656 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8657
8658 * font.c (font_make_object): New arg entity and pixelsize.
8659 (font_check_otf_features, font_check_otf): New functions.
8660 (font_match_p): Check :lang, :script, and :otf properties.
8661
8662 * xfont.c (xfont_open): Adjust it for the change of
8663 font_make_object.
8664 (xfont_text_extents): Fix initial setting of metrics.
8665
8666 * ftfont.c (struct ftfont_info): New member index, delete member
8667 fc_charset_idx. Make the member order compatible with struct
8668 xftfont_info.
8669 (fc_charset_table): Change charset names to registry names.
8670 (ftfont_pattern_entity): Delete the args registry and
8671 fc_charset_idx. Change the value of :font-entity property
8672 to (FONTNAME . INDEX). Always set :registry property to
8673 `iso10646-1'.
8674 (struct ftfont_cache_data): New struct.
8675 (ftfont_lookup_cache): New arg for_face.
8676 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8677 (ftfont_driver): Set the member otf_capability.
8678 (ftfont_get_charset): Adjust it for the change of
8679 fc_charset_table.
8680 (OTF_TAG_SYM): New macro.
8681 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8682 for the change of fc_charset_table.
8683 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8684 ftfont_pattern_entity. Add FC_INDEX to objset.
8685 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8686 and ftfont_pattern_entity.
8687 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8688 font_make_object, struct ftfont_info.
8689 (ftfont_has_char): Use ftfont_get_fc_charset.
8690 (ftfont_otf_features, ftfont_otf_capability): New functions.
8691 (ftfont_shape): Use ftfont_get_otf.
8692 (ftfont_text_extents): Fix initial setting of metrics.
8693
8694 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8695 member order compatible with struct ftfont_info.
8696 (xftfont_open): Add FC_CHARSET to the pattern. Set
8697 xftfont_info->ft_size. Don't unlock the face. Check BDF
8698 properties if appropriate.
8699 (xftfont_close): Unlock the face.
8700 (xftfont_anchor_point, xftfont_shape): Deleted.
8701 (syms_of_xftfont): Don't set members anchor_point and shape of
8702 xftfont_driver.
8703
8704 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8705 font_make_object.
8706
8707 * w32font.c (w32font_open): Adjust it for the change of
8708 font_make_object.
8709 (w32font_open_internal): Don't set properties of font_object here.
8710
87112008-07-08 Chong Yidong <cyd@stupidchicken.com>
8712
8713 * macfns.c (x_create_tip_frame):
8714 * w32fns.c (x_create_tip_frame):
8715 * xfns.c (x_create_tip_frame): Pass parameter argument to
8716 face-set-after-frame-default.
8717
8718 * xfaces.c (Finternal_merge_in_global_face): Save merged
8719 attributes for the default face back into the face vector.
8720
87212008-07-08 Andreas Schwab <schwab@suse.de>
8722
8723 * fontset.h: Declare fontset_from_font. Don't declare
8724 new_fontset_from_font and fontset_from_font_name.
8725 * xterm.c: Include "fontset.h".
8726 * Makefile.in (xterm.o): Update dependencies.
8727
87282008-07-08 Glenn Morris <rgm@gnu.org>
8729
8730 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8731 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8732
87332008-07-07 Chong Yidong <cyd@stupidchicken.com>
8734
8735 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8736 (x_set_frame_parameters): Don't bind it.
8737
87382008-07-07 Juanma Barranquero <lekktu@gmail.com>
8739
8740 * w32fns.c (map_w32_filename): Declare extern.
8741
87422008-07-07 Jason Rumney <jasonr@gnu.org>
8743
8744 * w32term.c (WS_EX_LAYERED): Define if not already.
8745
87462008-07-06 Chong Yidong <cyd@stupidchicken.com>
8747
8748 * xfaces.c (set_font_frame_param): Don't try to set the font
8749 parameter if it is still unspecified in the lface.
8750
87512008-07-05 Chong Yidong <cyd@stupidchicken.com>
8752
8753 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8754 face if it didn't already exist.
8755
8756 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8757
87582008-07-05 Andreas Schwab <schwab@suse.de>
8759
8760 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8761
87622008-07-05 Chong Yidong <cyd@stupidchicken.com>
8763
8764 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8765 word-wrapping.
8766 (IT_DISPLAYING_WHITESPACE): New macro.
8767 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8768 when word-wrapping. Simplify word-wrapping logic. Use correct
8769 pixel positions when saving copies of the iterator.
8770 (display_line): Use proper wrap point if the last character on a
8771 line was preceded by whitespace.
8772
87732008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8774
8775 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8776
87772008-07-04 Kenichi Handa <handa@m17n.org>
8778
8779 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8780
8781 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8782
87832008-07-02 Jason Rumney <jasonr@gnu.org>
8784
8785 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8786 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8787
8788 * xdisp.c (next_element_from_display_vector): Move assignment out
8789 of if statement.
8790
87912008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8792
8793 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8794
8795 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8796 (syms_of_fileio): Initialize and export them.
8797 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8798
8799 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8800 (Fsystem_move_file_to_trash): New function.
8801 (syms_of_w32fns): Export it to lisp.
8802
88032008-07-01 Jason Rumney <jasonr@gnu.org>
8804
8805 * w32font.c (w32font_text_extents): Don't count overhang as part
8806 of width.
8807
88082008-06-30 Miles Bader <miles@gnu.org>
8809
8810 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8811 Add `avoid_cursor_p' field.
8812
8813 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8814 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8815 (append_glyph, append_composite_glyph, produce_image_glyph)
8816 (append_stretch_glyph): Initialize avoid_cursor_p.
8817 (get_it_property): Rename from `get_line_height_property'.
8818 (x_produce_glyphs): Use get_it_property.
8819 (handle_line_prefix, push_display_prop): New functions.
8820 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8821 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8822 New variables.
8823 (syms_of_xdisp): Initialize them.
8824
88252008-06-30 Kenichi Handa <handa@m17n.org>
8826
8827 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8828 XftDefaultSubstitute (they are called in XftFontMatch).
8829 (xftfont_open): Fix args to ftfont_font_format.
8830
8831 * ftfont.c (fc_charset_table): New member lang.
8832 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8833 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8834 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8835 (ftfont_open): Fix args to ftfont_font_format.
8836 (ftfont_font_format): New arg filename.
8837
88382008-06-30 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * xfaces.c (Finternal_merge_in_global_face): If default face was
8841 modified, realize it again. Update the font face attribute.
8842
88432008-06-29 Jason Rumney <jasonr@gnu.org>
8844
8845 * w32term.c (x_set_frame_alpha): Fix logic.
8846
88472008-06-29 Kenichi Handa <handa@m17n.org>
8848
8849 * fontset.c (Finternal_char_font): Return font-object instead of
8850 font-name.
8851
8852 * composite.c (get_composition_id): Fix the width calculation for TAB.
8853
88542008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8855
8856 * indent.c (Fvertical_motion): Properly handle float column arg.
8857
88582008-06-28 Jason Rumney <jasonr@gnu.org>
8859
8860 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8861 (pfnSetLayeredWindowAttributes): New function pointer.
8862 (w32_initialize): Initialize it when supported.
8863 (x_set_frame_alpha): New function.
8864
8865 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8866 (w32_frame_parm_handlers): Set alpha handler.
8867
8868 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8869
88702008-06-27 Jason Rumney <jasonr@gnu.org>
8871
8872 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8873 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8874 (w32_to_x_charset, x_to_w32_charset)
8875 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8876 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8877 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8878 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8879 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8880 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8881 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8882 (Qw32_charset_unicode): Remove.
8883 (syms_of_w32fns): Update for above changes.
8884
8885 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8886 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8887 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8888 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8889 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8890 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8891 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8892 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8893 (syms_of_w32font): Update for above changes.
8894
88952008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8896
8897 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8898 removed #if.
8899 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8900
89012008-06-26 Juanma Barranquero <lekktu@gmail.com>
8902 Eli Zaretskii <eliz@gnu.org>
8903
8904 * makefile.w32-in (LOCAL_FLAGS):
8905 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8906
8907 * sysdep.c (_spawnlp, _getpid):
8908 Declare with explicit _cdecl instead of _CRTAPI1.
8909
8910 * editfns.c (Fget_internal_run_time):
8911 Check for WINDOWSNT with #ifdef, not #if.
8912
89132008-06-26 Jason Rumney <jasonr@gnu.org>
8914
8915 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8916
8917 * w32term.c (x_draw_glyph_string_foreground)
8918 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8919 Use FONT_HANDLE macro.
8920 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8921
8922 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8923 (uniscribe_encode_char): Use FONT_HANDLE macro.
8924
8925 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8926 (w32font_text_extents): Use precast w32_font.
8927 (w32font_close): Free cached metrics.
8928 (w32font_open_internal): Allocate space for name on stack.
8929
89302008-06-26 Chong Yidong <cyd@stupidchicken.com>
8931
8932 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8933
89342008-06-26 Jason Rumney <jasonr@gnu.org>
8935
8936 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8937 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8938
89392008-06-26 Juanma Barranquero <lekktu@gmail.com>
8940
8941 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8942
89432008-06-26 Jason Rumney <jasonr@gnu.org>
8944
8945 * w32bdf.c, w32bdf.h: Remove obsolete files.
8946
8947 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8948
8949 * w32gui.h: Don't include w32bdf.h.
8950 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8951 Remove obsolete font support.
8952
8953 * w32font.h (struct w32font_info): Remove compat_w32_font.
8954 Add hfont member.
8955 (FONT_COMPAT): Remove obsolete macro.
8956
8957 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8958 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8959 (w32font_open_internal): Remove compat code. Set new hfont member.
8960 (Fx_select_font): Use new hfont member.
8961
8962 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8963 (uniscribe_encode_char): Use new hfont member.
8964
8965 * w32term.c (x_draw_glyph_string_foreground)
8966 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8967 (x_draw_glyph_string): Use metrics in w32font_info.
8968
89692008-06-26 Kenichi Handa <handa@m17n.org>
8970
8971 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8972
89732008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8974
8975 * unexnext.c:
8976 * m/ews4800.h:
8977 * m/hp9000s300.h:
8978 * m/ibm370aix.h:
8979 * m/mips-siemens.h:
8980 * m/ncr386.h:
8981 * m/next.h:
8982 * m/pmax.h:
8983 * m/powerpcle.h:
8984 * m/tandem-s2.h:
8985 * s/386bsd.h:
8986 * s/bsd386.h:
8987 * s/bsd4-1.h:
8988 * s/bsd4-2.h:
8989 * s/bsdos2-1.h:
8990 * s/bsdos2.h:
8991 * s/bsdos3.h:
8992 * s/bsdos4.h:
8993 * s/nextstep.h:
8994 * s/ultrix4-3.h:
8995 * s/usg5-0.h:
8996 * s/usg5-2-2.h:
8997 * s/usg5-2.h:
8998 * s/usg5-4-3.h:
8999 * s/ux4800.h:
9000 * s/uxpds.h:
9001 * s/uxpv.h: Remove support for obsolete systems.
9002 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9003 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9004 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9005 Remove, insert contents in s/aix4-2.h.
9006 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9007 * s/bsd4-3.h: Rename to ...
9008 * s/bsd-common.h: ... this.
9009 * data.c:
9010 * doc.c:
9011 * ecrt0.c:
9012 * emacs.c:
9013 * fileio.c:
9014 * floatfns.c:
9015 * keyboard.c:
9016 * mem-limits.h:
9017 * print.c:
9018 * process.c:
9019 * sysdep.c:
9020 * syssignal.h:
9021 * systty.h:
9022 * syswait.h:
9023 * term.c:
9024 * unexec.c:
9025 * unexelf.c:
9026 * unexhp9k800.c:
9027 * m/hp800.h:
9028 * m/ibmrs6000.h:
9029 * m/mips.h:
9030 * m/vax.h:
9031 * s/darwin.h:
9032 * s/freebsd.h:
9033 * s/gnu.h:
9034 * s/ms-w32.h:
9035 * s/msdos.h:
9036 * s/netbsd.h:
9037 * s/template.h: Remove references to obsolete variables.
9038
9039 * Makefile.in: Add dependencies for all unexec files.
9040 (admindir): Remove unused variable.
9041 (UNEXEC_SRC): Remove references.
9042
90432008-06-25 Chong Yidong <cyd@stupidchicken.com>
9044
9045 * xfns.c (x_default_font_parameter): If Xft is available, first
9046 try Monospace-12 for the default font.
9047
90482008-06-25 Jason Rumney <jasonr@gnu.org>
9049
9050 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9051
90522008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9053
9054 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9055
9056 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9057
90582008-06-25 Juanma Barranquero <lekktu@gmail.com>
9059
9060 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9061 <scroll-conservatively>: Fix typo in docstring.
9062
9063 * xselect.c (Fx_send_client_event): Doc fix.
9064
90652008-06-25 Kenichi Handa <handa@m17n.org>
9066
9067 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9068
9069 * font.c (font_parse_fcname): Remove unused variables.
9070 (font_sort_entites): Delete the arg SPEC. Caller changed.
9071 Fix for the case of ! best_only.
9072 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9073
9074 * lisp.h (Fstring_to_unibyte): EXFUN it.
9075
9076 * character.h (str_to_unibyte): Extern it.
9077
9078 * character.c (str_to_unibyte): New function.
9079
9080 * fns.c (Fstring_to_unibyte): New function.
9081 (syms_of_fns): Defsubr it.
9082
90832008-06-24 Kenichi Handa <handa@m17n.org>
9084
9085 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9086 DPI too.
9087 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9088
90892008-06-24 Andreas Schwab <schwab@suse.de>
9090
9091 * Makefile.in (${lispsource}loaddefs.el): Rename from
9092 ../lisp/loaddefs.el.
9093 (bootstrap-clean): Do what distclean does but don't remove
9094 Makefile.
9095 (distclean): Depend on bootstrap-clean and remove Makefile.
9096
90972008-06-24 Chong Yidong <cyd@stupidchicken.com>
9098
9099 * buffer.h (struct buffer): New member word_wrap.
9100
9101 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9102 word-wrap.
9103 (init_buffer_once): Initialize them.
9104
9105 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9106 line_wrap enum possessing three possible values.
9107
9108 * termopts.h: Replace truncate_partial_width_windows with
9109 Vtruncate_partial_width_windows.
9110
9111 * dispnew.c (direct_output_for_insert): Avoid direct output when
9112 inserting a space with word wrap on.
9113
9114 * indent.c (compute_motion): Obey integer values of
9115 truncate-partial-width-windows.
9116
9117 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9118 replacing truncate_partial_width_windows.
9119 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9120 truncate only if the window width is below that integer.
9121 (start_display, resize_mini_window, produce_stretch_glyph)
9122 (display_string, move_it_in_display_line_to): Use line_wrap.
9123 (back_to_previous_visible_line_start, reseat_1): Reset
9124 string_from_display_prop_p.
9125 (display_line): Extend default face to end of line when wrapping.
9126
91272008-06-24 Kim F. Storm <storm@cua.dk>
9128
9129 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9130 to wrap continued lines at word boundaries.
9131
91322008-06-24 Jason Rumney <jasonr@gnu.org>
9133
9134 * font.c (Ffont_face_attributes): Multiply pixel size before point
9135 conversion to avoid multiplying rounding error.
9136
91372008-06-23 Jason Rumney <jasonr@gnu.org>
9138
9139 * w32term.c (x_draw_glyph_string_background)
9140 (x_draw_glyph_string): Remove old bdf font code.
9141
9142 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9143
91442008-06-22 Kenichi Handa <handa@m17n.org>
9145
9146 * font.c (font_find_for_lface): Try the adstyle specified in
9147 the property of LFACE_FONT of LFACE (if any).
9148
91492008-06-21 Seiji Zenitani <zenitani@mac.com>
9150 Ryo Yoshitake <ryo@shiftmode.net>
9151
9152 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9153
91542008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9155
9156 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9157 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9158 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9159 (witness-emacs): Remove.
9160 (lisp, shortlisp): Move loaddefs.el earlier.
9161 (mostlyclean): Forget about witness-emacs.
9162
91632008-06-22 Glenn Morris <rgm@gnu.org>
9164
9165 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9166 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9167
91682008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9169
9170 * Makefile.in (PRECOMP): Remove.
9171 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9172 (witness-emacs): Run `compile-first'.
9173 (.el.elc): Use the new compile-onefile target.
9174
91752008-06-21 Kenichi Handa <handa@m17n.org>
9176
9177 * xftfont.c (xftfont_open): Handle QCembolden only when
9178 FC_EMBOLDEN is defined.
9179
91802008-06-21 Andreas Schwab <schwab@suse.de>
9181
9182 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9183 (.el.elc): Likewise.
9184
91852008-06-21 Miles Bader <miles@gnu.org>
9186
9187 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9188 build dir, not the lisp source dir.
9189
91902008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9191
9192 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9193 (bootstrapclean): Remove.
9194 (.el.elc): New rule.
9195 (PRECOMP): New var.
9196 (../lisp/subdirs.el): Remove.
9197 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9198 (witness-emacs): New target.
9199 (mostlyclean): Remove witness-emacs as well.
9200 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9201 Add witness-emacs dependency.
9202
92032008-06-20 Chong Yidong <cyd@stupidchicken.com>
9204
9205 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9206 defined by the font.
9207
92082008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9209
9210 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9211 (bootstrap-clean): New target that keeps TAGS around.
9212 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9213 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9214
92152008-06-20 Jason Rumney <jasonr@gnu.org>
9216
9217 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9218 Remove obsolete font code.
9219
9220 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9221 to determine language support.
9222
92232008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9224
9225 * sysdep.c (cfsetspeed): New fun extracted from the code.
9226 (cfmakeraw): Move before first use.
9227
92282008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9229
9230 * sysdep.c (cfmakeraw): Provide fallback implementation.
9231 (serial_configure): Provide fallback implementation of cfsetspeed.
9232
92332008-06-20 Kenichi Handa <handa@m17n.org>
9234
9235 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9236 the pattern.
9237
9238 * fontset.c (fontset_from_font): Copy font_spec before changing
9239 the elements.
9240
9241 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9242
92432008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9244
9245 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9246 for explicit `font' parameters.
9247
9248 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9249
92502008-06-19 Kenichi Handa <handa@m17n.org>
9251
9252 * frame.c: Include <ctype.h>.
9253 (x_set_font_backend): Allow spacing characters in the X resource
9254 for FontBackend.
9255
92562008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9257
9258 * w32fns.c, xfns.c (Qfont_param): New var.
9259 (syms_of_w32fns): Initialize it.
9260 (x_default_font_parameter): Record explicit `font' into
9261 `font-parameter'.
9262
92632008-06-18 Kenichi Handa <handa@m17n.org>
9264
9265 * font.c (font_parse_xlfd): Fix previous change.
9266 (font_parse_fcname): Don't use :fc-unknown-spec.
9267 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9268 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9269 (font_add_log): Prepend the driver name to the resulting fonts.
9270
9271 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9272 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9273 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9274
9275 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9276 (QCembolden): New variables.
9277 (syms_of_xftfont): DEFSYM them.
9278 (xftfont_open): Call XftFontMatch. Don't trust the result of
9279 XftTextExtents8 if the pixel_size is less than 5.
9280
92812008-06-18 Andreas Schwab <schwab@suse.de>
9282
9283 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9284 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9285
92862008-06-18 Jason Rumney <jasonr@gnu.org>
9287
9288 * w32font.c (w32font_list, w32font_match): Add logging.
9289
9290 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9291
92922008-06-17 Chong Yidong <cyd@stupidchicken.com>
9293
9294 * font.c (font_parse_fcname): Store divider characters for
9295 unknown-spec list. For known key symbols, intern using correct
9296 symbol name.
9297
92982008-06-17 Kenichi Handa <handa@m17n.org>
9299
9300 * xfaces.c (realize_default_face): If the frame is not on window
9301 system, set the fontset of face to nil.
9302
93032008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9304
9305 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9306
93072008-06-16 Juanma Barranquero <lekktu@gmail.com>
9308
9309 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9310 (build_font_name_from_vector): Delete externs.
9311
9312 * xfaces.c (struct font_name): Don't declare.
9313
93142008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9315
9316 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9317
93182008-06-16 Chong Yidong <cyd@stupidchicken.com>
9319
9320 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9321
93222008-06-16 Juanma Barranquero <lekktu@gmail.com>
9323
9324 * font.c (Ffont_spec): Fix usage in docstring.
9325 (Ffont_face_attributes): Doc fix.
9326
93272008-06-16 Andreas Schwab <schwab@suse.de>
9328
9329 * font.c (Ffont_face_attributes): Fix definition.
9330
93312008-06-16 Jason Rumney <jasonr@gnu.org>
9332
9333 * font.h (font_style_symbolic_from_value): Remove.
9334
9335 * font.c (font_style_symbolic_from_value): Remove.
9336 (font_style_symbolic): Revert to pre 2008-06-13 version.
9337
9338 * w32font.c (w32_to_fc_weight): New function.
9339 (w32font_full_name, logfont_to_fcname): Use it.
9340
93412008-06-16 Kenichi Handa <handa@m17n.org>
9342
9343 * font.c (font_check_object): Delete it.
9344 (font_clear_cache): Check if a font-object is alive.
9345 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9346 font-object to nil.
9347 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9348 (font_at): Don't call font_check_object.
9349 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9350
93512008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9352
9353 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9354
93552008-06-16 Chong Yidong <cyd@stupidchicken.com>
9356
9357 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9358
93592008-06-15 Chong Yidong <cyd@stupidchicken.com>
9360
9361 * font.c (font_parse_fcname): Only one decimal point.
9362 (font_unparse_fcname): Handle data in family and foundry indices
9363 as symbols, not strings.
9364 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9365
9366 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9367
9368 * font.h (font_unparse_gtkname): Add prototype.
9369
93702008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9371
9372 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9373
93742008-06-15 Andreas Schwab <schwab@suse.de>
9375
9376 * font.c (font_update_drivers): Fix crash when no drivers match.
9377
93782008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9379
9380 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9381 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9382
93832008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9384
9385 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9386
93872008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9388
9389 * process.c (Fserial_process_configure, Fprocess_send_eof):
9390 Use EQ to compare Lisp_Objects.
9391
93922008-06-13 Jason Rumney <jasonr@gnu.org>
9393
9394 * w32fns.c (Fw32_select_font): Remove old font API function.
9395
9396 * w32font.c (logfont_to_fcname): New function.
9397 (Fx_select_font): New font dialog function compatible with
9398 GTK/fontconfig version.
9399
9400 * font.c (font_style_symbolic_from_value): New function.
9401 (font_style_symbolic): Use it.
9402
9403 * font.h (font_style_symbolic_from_value): Declare new function.
9404
94052008-06-13 Juanma Barranquero <lekktu@gmail.com>
9406
9407 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9408 <font-width-table>: Fix typos in docstrings.
9409
94102008-06-13 Daniel Engeler <engeler@gmail.com>
9411
9412 These changes add serial port access.
9413 * process.c: Add HAVE_SERIAL.
9414 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9415 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9416 (list_processes_1, select_wrapper, Fstop_process)
9417 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9418 (status_notify): Modify to handle serial processes.
9419 [HAVE_SERIAL] (Fserial_process_configure)
9420 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9421 New functions.
9422 * process.h (struct Lisp_Process): Add `type'.
9423 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9424 New functions.
9425 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9426 serial ports.
b71ac3dd 9427 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9428 * w32.h: Add FILE_SERIAL.
9429 (struct _child_process): Add ovl_read, ovl_write.
9430
94312008-06-13 Kenichi Handa <handa@m17n.org>
9432
9433 * dispextern.h (enum lface_attribute_index): New member
9434 LFACE_FOUNDRY_INDEX.
9435
9436 * font.c (font_score): Delete arg alternate_families. Check only
9437 weight, slant, width, and size. Ignore the difference of alias
9438 style symbols.
9439 (font_sort_entites): Adjust for the above change. Reflect the
9440 order of font-driver to scores.
9441 (font_list_entities): Don't check alternate_familes here.
9442 (font_clear_prop): Handle foundry.
9443 (font_update_lface): Don't parse "foundry-family" form here.
9444 Handle FONT_FOUNDRY_INDEX.
9445 (font_find_for_lface): Likewise. Handle alternate families here.
9446 If registry is nil, try iso8859-1 and ascii-0.
9447 (font_open_for_lface): Pay attention to size in ENTITY.
9448 (font_open_by_name): Simplify by calling font_load_for_lface.
9449 (free_font_driver_list): Delete it.
9450 (font_update_drivers): Preserve the order of backends.
9451 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9452 of font_score and font_sort_entites.
9453 (font_update_sort_order): Likewise.
9454
9455 * xfaces.c (LFACE_FOUNDRY): New macro.
9456 (check_lface_attrs): Check foundry.
9457 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9458 (merge_face_vectors): Check foundry.
9459 (merge_face_ref): Likewise.
9460 (Finternal_set_lisp_face_attribute): Likewise.
9461 (x_update_menu_appearance): Likewise.
9462 (Finternal_get_lisp_face_attribute): Likewise.
9463 (lface_hash): Likewise.
9464 (lface_same_font_attributes_p): Likewise.
9465 (x_supports_face_attributes_p): Likewise.
9466 (tty_supports_face_attributes_p): Likewise.
9467 (Finternal_set_alternative_font_family_alist): Intern strings.
9468 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9469 (realize_default_face): Set LFACE_FOUNDRY (lface).
9470
9471 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9472 font-driver at first.
9473
9474 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9475
94762008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9477
9478 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9479
94802008-06-12 Jim Meyering <meyering@redhat.com>
9481
9482 Make unexec_free handle NULL the same way free does.
9483 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9484
94852008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9486
9487 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9488 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9489 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9490 (WEAK_ALIAS): Simplify.
9491 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9492 when searching a unibyte buffer.
9493
94942008-06-12 Chong Yidong <cyd@stupidchicken.com>
9495
9496 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9497
94982008-06-12 Juanma Barranquero <lekktu@gmail.com>
9499
9500 * w32font.c: Include ctype.h.
9501
95022008-06-11 Jason Rumney <jasonr@gnu.org>
9503
9504 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9505 misreported as space.
9506 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9507 as aliases for registry iso10646-1.
9508
95092008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 * buffer.c (clone_per_buffer_values): Skip `name'.
9512
95132008-06-11 Chong Yidong <cyd@stupidchicken.com>
9514
9515 * font.c (font_parse_fcname): Fix last change; accept decimal
9516 points in font size.
9517
95182008-06-10 Jason Rumney <jasonr@gnu.org>
9519
9520 * w32uniscribe.c (add_opentype_font_name_to_list):
9521 Skip non unicode fonts.
9522
95232008-06-10 Chong Yidong <cyd@stupidchicken.com>
9524
9525 * xfns.c (Fx_font_dialog): New function.
9526
9527 * gtkutil.c (xg_dialog_response_cb): Rename from
9528 xg_file_response_callback.
9529 (pop_down_dialog): Rename from pop_down_file_dialog.
9530 (xg_get_file_name): Callers changed.
9531 (xg_get_font_name): New function.
9532
9533 * gtkutil.h (xg_get_font_name): Insert prototype.
9534
95352008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9536
9537 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9538 x_underline_minimum_display_offset.
9539 (syms_of_xdisp): Declare it here rather than in xterm.c.
9540 * dispextern.h (underline_minimum_offset): Declare it.
9541 * w32term.c (x_draw_glyph_string): Use it.
9542 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9543 (syms_of_xterm): Don't declare it any more.
9544 (x_draw_glyph_string): Adjust to the new name.
9545
8719abec 95462008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9547
9548 * xterm.c (x_underline_minimum_display_offset): New var.
9549 (x_draw_glyph_string): Use it.
9550 (syms_of_xterm): Declare it.
9551
95522008-06-10 Chong Yidong <cyd@stupidchicken.com>
9553
9554 * font.c (font_parse_fcname): Accept GTK-style font names too.
9555
95562008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9557
9558 * dired.c (file_name_completion): Don't return t if the match is exact
9559 but with different capitalization.
9560 * minibuf.c (Ftry_completion): Simplify.
9561
9562 * window.c (Vwindow_point_insertion_type): New var.
9563 (set_window_buffer): Use it.
9564 (syms_of_window): Init and export it to Lisp.
9565
95662008-06-10 Kenichi Handa <handa@m17n.org>
9567
9568 * font.h (font_intern_prop): Prototype adjusted.
9569
9570 * font.c (font_intern_prop): New arg force_symbol.
9571 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9572 Adjust for the change of font_intern_prop.
9573
9574 * ftfont.c (ftfont_pattern_entity):
9575 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9576 (w32_registry):
9577 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9578 the change of font_intern_prop.
9579
95802008-06-09 Juanma Barranquero <lekktu@gmail.com>
9581
9582 * w32menu.c (digest_single_submenu): Declare extern.
9583
95842008-06-09 Jason Rumney <jasonr@gnu.org>
9585
9586 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9587
9588 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9589 (parse_single_submenu): Remove.
9590 (digest_single_submenu): Remove.
9591 (syms_of_w32menu): Don't initialise variables that have moved
9592 to menu.c.
9593 (set_frame_menubar): Sync with version in xmenu.c.
9594 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9595
9596 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9597 Make static again.
9598
95992008-06-09 Jason Rumney <jasonr@gnu.org>
9600
9601 Changes to w32 files related to the move of common menu code
9602 to menu.c on 2008-06-08 by Chong Yidong.
9603
9604 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9605 defs to w32gui.h.
9606 (single_keymap_panes, push_menu_item, push_menu_pane):
9607 Make globally visible.
9608
9609 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9610 (local_free, malloc_widget_value, free_widget_value)
9611 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9612 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9613 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9614 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9615 (menu_items, menu_items_allocated, menu_items_used)
9616 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9617 (init_menu_items, finish_menu_items, discard_menu_items)
9618 (grow_menu_items, push_submenu_start, push_submenu_end)
9619 (push_left_right_boundary, push_menu_pane, push_menu_item)
9620 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9621 (free_menubar_widget_tree_value, parse_single_submenu)
9622 (update_submenu_strings): Remove functions.
9623 (xmalloc_widget_value): Remove and declare extern.
9624
9625 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9626 (OBJ1): Build it.
9627
9628 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9629 (local_heap, local_alloc, local_free, malloc_widget_value)
9630 (free_widget_value): Define here.
9631
96322008-06-09 Kenichi Handa <handa@m17n.org>
9633
9634 * font.h (Qascii_0): Extern it.
9635
9636 * font.c (Qascii_0): New variable.
9637 (syms_of_font): DEFSYM it.
9638 (font_open_by_name): If the registry "iso8859-1" fails, try also
9639 "ascii-0".
9640
9641 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9642
96432008-06-08 Kenichi Handa <handa@m17n.org>
9644
9645 * .gdbinit (xfont): New command.
9646
96472008-06-08 Andreas Schwab <schwab@suse.de>
9648
9649 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9650 * Makefile.in (menu.o): Update dependencies.
9651
9652 * Makefile.in (obj): Always add menu.o.
9653 * emacs.c (main): Always call syms_of_menu.
9654 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9655
96562008-06-08 Chong Yidong <cyd@stupidchicken.com>
9657
9658 * Makefile.in: Compile menu.c.
9659
9660 * lisp.h: Declare syms_of_menu.
9661
9662 * emacs.c (main): Call syms_of_menu.
9663
9664 * keyboard.h: Relocate platform-independent menu definitions from
9665 xmenu.c.
9666
9667 * menu.c: New file. Relocate platform-independent menu
9668 definitions from xmenu.c. Suggested by Adrian Robert.
9669
9670 * xmenu.c: Remove platform-independent menu definitions.
9671 (menu_items menu_items_inuse, menu_items_allocated)
9672 (menu_items_used, menu_items_n_panes)
9673 (menu_items_submenu_depth): Move to keyboard.h.
9674 (init_menu_items, finish_menu_items, unuse_menu_items)
9675 (discard_menu_items, restore_menu_items, save_menu_items)
9676 (grow_menu_items, push_submenu_start, push_submenu_end)
9677 (push_left_right_boundary, push_menu_pane, push_menu_item)
9678 (keymap_panes, single_keymap_panes, single_menu_item)
9679 (list_of_panes, list_of_items, find_and_call_menu_selection)
9680 (xmalloc_widget_value, free_menubar_widget_value_tree)
9681 (parse_single_submenu, digest_single_submenu)
9682 (update_submenu_strings): Move to menu.c.
9683
96842008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9685
9686 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9687
96882008-06-06 Miles Bader <miles@gnu.org>
9689
9690 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9691 face, not frame default.
9692
96932008-06-05 Martin Rudalics <rudalics@gmx.at>
9694
9695 * window.c (pop_up_windows, pop_up_frames)
9696 (display_buffer_reuse_frames, Vpop_up_frame_function)
9697 (Vdisplay_buffer_function, Veven_window_heights)
9698 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9699 (Vspecial_display_function, Vsame_window_buffer_names)
9700 (Vsame_window_regexps, split_height_threshold)
9701 (Vsplit_window_preferred_function): Move those vars to window.el.
9702 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9703 (Fdisplay_buffer): Move those functions to window.el.
9704 (syms_of_window): Remove corresponding declarations.
9705 (display_buffer): New function.
9706 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9707 * dispnew.c (Flast_nonminibuf_frame): New function.
9708 * buffer.c (Fpop_to_buffer): Move to window.el.
9709
97102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9711
9712 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9713
97142008-06-05 Kenichi Handa <handa@m17n.org>
9715
9716 * coding.c (detect_coding): Fix previous change.
9717 (detect_coding_system): Likewise.
9718
97192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9720
9721 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9722
9723 * keymap.c (Vminibuffer_local_filename_must_match_map):
9724 Rename from Vminibuffer_local_must_match_filename_map.
9725 (syms_of_keymap):
9726 * minibuf.c (Fcompleting_read): Adjust accordingly.
9727 * commands.h: Rename declaration as well.
9728
97292008-06-05 Kenichi Handa <handa@m17n.org>
9730
9731 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9732 family name.
9733 (Ffont_put): Likewise.
9734
9735 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9736 current font-spec.
9737
9738 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9739 is unspecified.
9740
9741 * xfaces.c (realize_x_face): If the font-related face attributes
9742 are the same as those of default face, realize a new fontset from
9743 default->fontset.
9744 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9745
97462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9747
9748 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9749 (move_it_in_display_line): New wrapper.
9750
9751 * window.c (window_scroll_pixel_based_preserve_x)
9752 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9753 (window_scroll_pixel_based, window_scroll_line_based):
9754 Use them to preserve column positions.
9755 (syms_of_window): Initialize them.
9756
9757 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9758 (HPOS . VPOS) pair.
9759
9760 * dispextern.h (move_it_in_display_line): Declare.
9761
97622008-06-05 Juanma Barranquero <lekktu@gmail.com>
9763
9764 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9765 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9766 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9767
97682008-06-04 Juanma Barranquero <lekktu@gmail.com>
9769
9770 * window.c (Fset_window_parameter): Doc fix.
9771 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9772
97732008-06-04 Joakim Verona <joakim@verona.se>
9774
9775 * window.h (struct window): Add new member window_parameters.
9776
9777 * window.c (Fwindow_parameters, Fwindow_parameter)
9778 (Fset_window_parameter): New defuns.
9779 (syms_of_window): Defsubr the new defuns.
9780 (make_window): Initialize window_parameters to nil.
9781
97822008-06-04 John Paul Wallington <jpw@pobox.com>
9783
9784 * eval.c (Fdefmacro): Doc fix.
9785
97862008-06-04 Kenichi Handa <handa@m17n.org>
9787
9788 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9789 Be sure to call setup_coding_system when we find a proper coding system.
9790 (detect_coding_system): Fix handling of coding->head_ascii.
9791
97922008-06-03 Andreas Schwab <schwab@suse.de>
9793
9794 * font.c (font_prop_validate_spacing): Fix last change.
9795
97962008-06-03 Kenichi Handa <handa@m17n.org>
9797
9798 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9799 (font_parse_fcname): Fix handling of unknown key.
9800
9801 * xfont.c (xfont_list): Try an alias.
9802
9803 * charset.c (char_charset): Return NULL if the arg charset_list is
9804 specified and C doesn't belong to any of them.
9805
98062008-06-02 Chip Coldwell <coldwell@redhat.com>
9807
9808 * font.c (font_pixel_size): Don't take cdr of an integer.
9809
98102008-06-02 Jim Meyering <meyering@redhat.com>
9811
9812 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9813 * alloc.c (xfree): Return right away for a NULL arg.
9814 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9815 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9816 * mac.c (create_apple_event_from_event_ref): Likewise.
9817 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9818 Likewise.
9819 * doprnt.c (doprnt1): Likewise.
9820 * frame.c (frame): Likewise.
9821 * keyboard.c (wipe_kboard): Likewise.
9822 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9823 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9824 * term.c (tty_default_color_capabilities, maybe_fatal)
9825 (delete_tty): Likewise.
9826 * w16select.c (string): Likewise.
9827 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9828 * w32bdf.c (w32_free_bdf_font): Likewise.
9829 * w32fns.c (w32_unload_font): Likewise.
9830 * w32font.c (w32font_close): Likewise.
9831 * window.c (size_window): Likewise.
9832 * xselect.c (receive_incremental_selection): Likewise.
9833 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9834 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9835 * w32.c (stat): Likewise.
9836
9837 Remove useless if-before-free tests.
9838 * editfns.c (Fset_time_zone_rule): Likewise.
9839 * lread.c (nosuffix): Likewise.
9840 * ralloc.c (get_bloc): Likewise.
9841 * regex.c (reg_free): Likewise.
9842 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9843 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9844 * xsmfns.c (smc_save_yourself_CB): Likewise.
9845
98462008-06-02 Kenichi Handa <handa@m17n.org>
9847
9848 * font.c (font_find_for_lface): Handle float font size.
9849 (font_open_for_lface): Likewise.
9850
9851 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9852 comparing the properties.
9853
98542008-06-01 Jason Rumney <jasonr@gnu.org>
9855
9856 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9857 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9858 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9859 Don't add empty script list.
9860 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9861
98622008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9863
9864 * Makefile.in (dot, dotdot): Remove, update users.
9865 ".." has been used elsewhere in the file for a long time.
9866 (LIBXT_STATIC): Remove conditional based on unused variable.
9867
98682008-06-01 Miles Bader <miles@gnu.org>
9869
9870 * xfaces.c (Vface_remapping_alist): New variable.
9871 (syms_of_xfaces): Initialize it.
9872 (enum named_merge_point_kind): New type.
9873 (struct named_merge_point): Add `named_merge_point_kind' field.
9874 (push_named_merge_point): Make cycle detection respect different
9875 named-merge-point kinds.
9876 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9877 Remove face-name alias resolution.
9878 (lface_from_face_name): New definition using
9879 `lface_from_face_name_no_resolve'.
9880 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9881 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9882 (get_lface_attributes): New definition that layers face-remapping on
9883 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9884 (lookup_basic_face): New function.
9885 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9886 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9887 `get_lface_attributes'.
9888 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9889 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9890 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9891
9892 * xdisp.c (init_iterator): Pass base_face_id through
9893 `lookup_basic_face' when we actually use it as a face-id.
9894 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9895 DEFAULT_FACE_ID.
9896
9897 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9898 lookup the initial face-id.
9899
9900 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9901
99022008-06-01 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9905 (Fremove_text_properties): Fix typos in docstrings.
9906
99072008-05-31 Kenichi Handa <handa@m17n.org>
9908
9909 * font.c (font_list_entities): Fix the car part of data to be
9910 stored in the cache.
9911
9912 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9913
99142008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9915
9916 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9917 Add a `test' argument so another predicate than `equal' can be used.
9918 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9919 (map_char_table): Remove unused vars `c' and `i'.
9920 * lisp.h (Foptimize_char_table): Adjust declaration.
9921 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9922
99232008-05-30 Kenichi Handa <handa@m17n.org>
9924
9925 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9926 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9927 defined.
9928
99292008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9930
9931 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9932 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9933 frame-local settings for the same variable.
9934
99352008-05-30 Kenichi Handa <handa@m17n.org>
9936
9937 * fontset.c (Ffont_info): Move to font.c.
9938 (syms_of_fontset): Delete defsubr of Sfont_info.
9939
9940 * font.c (font_style_to_value, font_score): Delete casting of the
9941 args to xstcasecmp.
9942 (register_font_driver): Increment num_font_drivers only when
9943 registering the driver globally.
9944 (Ffont_info): Move from fontset.c. Handle a font object too.
9945 (syms_of_font): Defsubr Sfont_info.
9946
99472008-05-29 Kenichi Handa <handa@m17n.org>
9948
9949 * coding.h (enum define_coding_utf8_arg_index): New enum.
9950 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9951 coding_attr_utf_bom.
9952 (enum utf_bom_type): Rename from utf_16_bom_type.
9953 (struct utf_16_spec): Adjust for the above change.
9954 (struct coding_system): Add utf_8_bom in `spec' union.
9955
9956 * coding.c (CODING_UTF_8_BOM): New macro.
9957 (enum coding_category): Delete coding_category_utf_8, add
9958 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9959 coding_category_utf_8_sig.
9960 (CATEGORY_MASK_UTF_8): Delete it.
9961 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9962 (CATEGORY_MASK_UTF_8_SIG): New macros.
9963 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9964 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9965 CATEGORY_MASK_UTF_8_SIG.
9966 (CATEGORY_MASK_UTF_8): New macro.
9967 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9968 (detect_coding_utf_8): Check BOM.
9969 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9970 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9971 (encode_coding_utf_16): Likewise.
9972 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9973 (detect_coding, detect_coding_system): Handle utf-8-auto.
9974 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9975 (syms_of_coding): Fix setting up of Vcoding_category_table.
9976
99772008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9978
9979 * process.c (Faccept_process_output): If `millisec' is non-nil,
9980 `seconds' default to 0.
9981 (wait_reading_process_output): Also return non-nil if we read output
9982 from a non-running process.
9983
99842008-05-29 Jason Rumney <jasonr@gnu.org>
9985
9986 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9987 `raster' specified.
9988 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9989 in the uniscribe backend, but disallow any font that has no
9990 unicode subrange support.
9991
99922008-05-29 Juanma Barranquero <lekktu@gmail.com>
9993
9994 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9995 Fix typos in docstrings.
9996
99972008-05-29 Kenichi Handa <handa@m17n.org>
9998
9999 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10000 (Fx_family_fonts): Set frame correctly.
10001
100022008-05-28 Jason Rumney <jasonr@gnu.org>
10003
10004 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10005
100062008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10007
10008 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10009 calling build_annotations.
10010
100112008-05-28 Juanma Barranquero <lekktu@gmail.com>
10012
10013 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10014 (Fencode_coding_string):
10015 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10016 <latin-extra-code-table>: Fix typos in docstrings.
10017 (syms_of_coding) <coding-system-alist>: Doc fix.
10018 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10019
100202008-05-28 Kenichi Handa <handa@m17n.org>
10021
10022 * fontset.c (Ffont_info): Don't call font_close_object.
10023
10024 * font.c (font_parse_family_registry): Use Ffont_put to validate
10025 foundry and family.
10026 (font_delete_unmatched): Don't check spacing.
10027 (font_list_entities): Add spacing to the spec to list fonts.
10028
10029 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10030 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10031
10032 * coding.c (encode_coding_raw_text): Fix previous change.
10033 (encode_coding_object): When the dst_object is a buffer and is
10034 different from src_object, move gap to PT.
10035
100362008-05-27 Chong Yidong <cyd@stupidchicken.com>
10037
10038 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10039
100402008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10043 all branches. Compute it differently.
10044
10045 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10046
100472008-05-27 Juanma Barranquero <lekktu@gmail.com>
10048
10049 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10050 into "else if () ... else ...".
10051
100522008-05-27 Jason Rumney <jasonr@gnu.org>
10053
10054 * w32font.c (w32font_open_internal): Determine if glyph indices
10055 are likely to work here.
10056
100572008-05-27 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10060 draw overlap glyphs with appropriate highlighting.
10061
100622008-05-27 Kenichi Handa <handa@m17n.org>
10063
10064 * xfont.c (xfont_open): Fix calculation of font->average_width.
10065
100662008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10067
10068 * casefiddle.c (casify_object): Try to guess better whether the
10069 argument is a byte or a char.
10070
100712008-05-26 Andreas Schwab <schwab@suse.de>
10072
10073 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10074 Always send multiples of format size.
10075
10076 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10077
100782008-05-26 Jason Rumney <jasonr@gnu.org>
10079
10080 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10081 (compute_metrics): Don't set failure if we just cleared the cache.
10082 (w32_weight_table): Remove unused variable.
10083 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10084 backwards compatibility.
10085
100862008-05-25 Kenichi Handa <handa@m17n.org>
10087
10088 * w32term.c (x_draw_glyph_string):
10089 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10090
10091 * xfaces.c: Delete unused function prototypes.
10092 (xstrlwr, font_frame): Delete them.
10093 (clear_face_cache): Delete unused variable.
10094
10095 * xftfont.c (xftfont_open): Delete unused variable.
10096 If underline_thickness is not 1, adjust underline_position.
10097
10098 * ftxfont.c (ftxfont_open): Delete unused variable.
10099
10100 * fontset.c (face_for_char): Optimize for the case of no charset
10101 property.
10102
10103 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10104 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10105 (otf_open, font_otf_capability, generate_otf_features)
10106 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10107 Comment out by surrounding "#if 0" and "#endif" for the moment.
10108 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10109 (syms_of_font): Codes for accessing above commented out.
10110
101112008-05-24 Eli Zaretskii <eliz@gnu.org>
10112
10113 * w32proc.c: Include dispextern.h.
10114
10115 * w32.c: Include dispextern.h.
10116
101172008-05-23 Juanma Barranquero <lekktu@gmail.com>
10118
10119 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10120 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10121 Fix typos in docstrings.
10122
101232008-05-23 Jason Rumney <jasonr@gnu.org>
10124
10125 * xsmfns.c: Remove includes that are already included by config.h.
10126
101272008-05-23 Kenichi Handa <handa@m17n.org>
10128
10129 * charset.c (Qemacs, charset_emacs): New variables.
10130 (char_charset): Fix for non-Unicode characters.
10131 (syms_of_charset): Define charset_emacs.
10132
10133 * w32term.c (x_draw_glyph_string): Be sure to update
10134 s->underline_thickness and s->underline_position. Be sure to draw
10135 underline within the current line area.
10136
10137 * xterm.c (x_draw_glyph_string): Be sure to update
10138 s->underline_thickness and s->underline_position. Be sure to draw
10139 underline within the current line area.
10140
10141 * fontset.c: Delete unused variables and add casting for char *
10142 throughout the file.
10143 (fontset_font): Try the fallback fonts of the current fontset
10144 before consulting the default fontset.
10145
10146 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10147
10148 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10149
101502008-05-22 Jason Rumney <jasonr@gnu.org>
10151
10152 * font.c: Don't include strings.h.
10153
10154 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10155
10156 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10157 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10158 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10159 to call xstrcasecmp.
10160
10161 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10162
10163 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10164
10165 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10166
10167 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10168
101692008-05-22 Kenichi Handa <handa@m17n.org>
10170
10171 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10172
10173 * font.c (font_prop_validate_style): Adjust for the format
10174 change of font_style_table.
10175
10176 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10177 two args.
10178
10179 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10180 two args.
10181
101822008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10183
10184 * minibuf.c (keys_of_minibuf): Delete.
10185 * lisp.h (keys_of_minibuf): Delete.
10186 * emacs.c (main): Don't call keys_of_minibuf.
10187
101882008-05-22 Kenichi Handa <handa@m17n.org>
10189
10190 * ftfont.c (ftfont_resolve_generic_family): Rename from
10191 ftfont_list_generic_family. Return a single family for each
10192 generic family.
10193 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10194 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10195 Call font_add_log.
10196 (ftfont_match): Call font_add_log.
10197
10198 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10199 (FONT_DEBUG): Define it.
10200 (font_add_log): Extern it.
10201 (font_assert): Rename from xassert.
10202
10203 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10204 (xfont_list_family): Call font_add_log.
10205 (xfont_match): Likewise.
10206 (memq_no_quit): Delete.
10207
10208 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10209 call of Ffont_xlfd_name.
10210
10211 * xfaces.c (struct table_entry, slant_table, weight_table)
10212 (swidth_table): Move to font.c.
10213
10214 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10215 xassert are changed to font_assert. Delete many unused variables.
10216 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10217 New variables.
10218 (struct table_entry): Move from xfaces.c and modified.
10219 (weight_table, slant_table, width_table): Move from xfaces.c and
10220 contents adjusted for the change of struct table_entry.
10221 (font_style_to_value, font_style_symbolic): Adjust for the
10222 format change of font_style_table.
10223 (font_parse_family_registry): Don't overwrite existing foundry and
10224 family of font_spec.
10225 (font_score): Fix calculation of diff for sizes.
10226 (font_sort_entites): Call font_add_log.
10227 (font_delete_unmatched): Return a newly created list.
10228 (font_list_entities): Fix previous change. Call font_add_log.
10229 (font_matching_entity, font_open_entity, font_close_entity):
10230 Call font_add_log.
10231 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10232 (Finternal_set_font_style_table): Delete.
10233 (BUILD_STYLE_TABLE): New macro.
10234 (build_style_table): New function.
10235 (Vfont_log, font_log_env_checked): New variables.
10236 (font_add_log): New function.
10237 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10238 Declare Lisp variables "font-weight-table", "font-slant-table",
10239 "font-width-table", and "font-log". Initialize font_style_table.
10240
102412008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10242
10243 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10244
102452008-05-21 Seiji Zenitani <zenitani@mac.com>
10246 Ryo Yoshitake <ryo@shiftmode.net>
10247
10248 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10249 (Vframe_alpha_lower_limit): New variable.
10250 (x_set_alpha): New function.
10251
10252 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10253
10254 * xfns.c (x-create-frame, Qalpha):
10255 Initialize the frame parameter `alpha'.
10256 * xterm.c (OPAQUE, OPACITY): New.
10257 (x_set_frame_alpha): New function.
10258 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10259
10260 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10261 * w32fns.c (w32_frame_parm_handlers): Likewise.
10262
102632008-05-20 Jason Rumney <jasonr@gnu.org>
10264
10265 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10266 truetype fonts to opentype list.
10267
102682008-05-20 Juanma Barranquero <lekktu@gmail.com>
10269
10270 * fontset.c (Ffontset_info): Doc fix.
10271 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10272 <ignore-relative-composition>: Fix typos in docstrings.
10273
10274 * font.c (syms-of-font) <font-encoding-alist>:
10275 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10276 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10277 (Ffont_otf_alternates): Doc fixes.
10278
102792008-05-20 Kenichi Handa <handa@m17n.org>
10280
10281 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10282 font.h through out the file.
10283 (FONT_DRIVERS): Rename from FONTOBJ.
10284 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10285 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10286
10287 * emacs.c (main): Call syms_of_font unconditionally.
10288
10289 * font.h (find_font_encoding): Extern it.
10290
10291 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10292 fontset.c.
10293 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10294 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10295 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10296 only when HAVE_WINDOW_SYSTEM is defined.
10297 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10298 when HAVE_WINDOW_SYSTEM is defined.
10299
10300 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10301 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10302
10303 * xfaces.c: Include font.h unconditionally.
10304 (merge_face_ref, merge_face_vectors)
10305 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10306
103072008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10308
10309 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10310 indirect_variable.
10311 * eval.c (lisp_indirect_variable): New fun.
10312 (Fuser_variable_p): Use it.
10313
103142008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10315
10316 * lisp.h (indirect_variable):
10317 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10318 Use Lisp_Symbol pointers rather than Lisp_Object.
10319 Adjust callers.
10320 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10321 To this end, change calling-convention.
10322
10323 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10324 if some non-hidden buffers are selected by string&pred.
10325
103262008-05-19 Chong Yidong <cyd@stupidchicken.com>
10327
10328 * process.c (wait_reading_process_output): Always check status
10329 when in batch mode.
10330
103312008-05-19 Kenichi Handa <handa@m17n.org>
10332
10333 * font.c (font_list_entities): Fix handling of cache.
10334 (font_matching_entity): Likewise.
10335
10336 * ftfont.c (cs_iso8859_1): Delete.
10337 (ft_face_cache): New variable.
10338 (struct ftfont_info): New member fc_charset_idx.
10339 (ftfont_build_basic_charsets): Delete.
10340 (fc_charset_table): New variable.
10341 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10342 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10343 Callers changed.
10344 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10345 (ftfont_spec_pattern): New argument fc_charset_idx.
10346 Check registry more rigidly. Change callers.
10347 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10348 change of :font-entity property of the font.
10349
10350 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10351 property of the font.
10352
103532008-05-18 Juanma Barranquero <lekktu@gmail.com>
10354
10355 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10356 (Funencodable_char_position, Fcheck_coding_systems_region)
10357 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10358 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10359 (Ffind_operation_coding_system, Fset_coding_system_priority)
10360 (Fcoding_system_eol_type): Doc fixes.
10361
103622008-05-17 Glenn Morris <rgm@gnu.org>
10363
10364 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10365
103662008-05-16 Eli Zaretskii <eliz@gnu.org>
10367
10368 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10369 and st_gid.
10370
10371 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10372 HAVE_WINDOW_SYSTEM is not defined.
10373
10374 * xfaces.c (merge_face_ref, merge_face_vectors)
10375 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10376 HAVE_WINDOW_SYSTEM is defined.
10377 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10378
103792008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10380
10381 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10382
103832008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10384
10385 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10386
103872008-05-15 Kenichi Handa <handa@m17n.org>
10388
10389 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10390 preference.
10391
103922008-05-15 Glenn Morris <rgm@gnu.org>
10393
10394 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10395
103962008-05-15 Chong Yidong <cyd@stupidchicken.com>
10397
10398 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10399 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10400
10401 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10402
104032008-05-15 Kenichi Handa <handa@m17n.org>
10404
10405 * ftfont.c (ftfont_list): Downcase family name to check generic
10406 families.
10407
10408 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10409 font-spec for QCfont value.
10410
10411 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10412 buffer. Check the return value of it.
10413
104142008-05-14 Jason Rumney <jasonr@gnu.org>
10415
10416 * w32term.c (w32_get_glyph_overhangs): Remove.
10417 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10418
104192008-05-14 Kenichi Handa <handa@m17n.org>
10420
10421 * font.c (font_prop_validate): Make nil a valid value.
10422 (font_clear_cache): Check if the cached vector of entities is nil
10423 or not.
10424
104252008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10426
10427 * emacs.c (main_thread): Conditionalize on
10428 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10429 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10430
10431 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10432 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10433 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10434
104352008-05-14 Kenichi Handa <handa@m17n.org>
10436
10437 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10438 has no corresponding coding system.
10439
104402008-05-14 Jason Rumney <jasonr@gnu.org>
10441
10442 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10443
10444 * w32font.h (w32font_open_internal): Update declaration.
10445
10446 * w32font.c (w32font_open_internal): Change last argument from
10447 w32font_info struct to font object. Fill in font object from
10448 font_entity. Get Outline metrics if possible. Use them to
10449 calculate underline position and thickness. Use xlfd name as name
10450 property. Don't set codepage.
10451 (w32font_open): Pass font_object to w32font_open_internal. Don't
10452 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10453 (w32font_draw): Use s->font.
10454 (clear_cached_metrics): Don't clear non-existent blocks.
10455
10456 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10457 font was not found.
10458 (x_draw_glyph_string): Use underline position and thickness from font.
10459
10460 * w32uniscribe.c (uniscribe_open): Pass font_object to
10461 w32font_open_internal.
10462
104632008-05-14 Kenichi Handa <handa@m17n.org>
10464
10465 These changes are to delete all legacy font-handling codes, and
10466 make Emacs use only font-backends.
10467
10468 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10469 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10470
10471 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10472
10473 * charset.h (Vcharset_non_preferred_head)
10474 (Vcurrent_iso639_language): Extern them.
10475
10476 * charset.c (Vcharset_non_preferred_head): New variable.
10477 (Vcurrent_iso639_language): New variable.
10478 (syms_of_charset): Declare it as a Lisp variable.
10479 (char_charset): Don't check non preferred charsets. As a last
10480 resort, return charset_unicode.
10481 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10482
10483 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10484 conditionals. Don't check enable_font_backend. Delete all codes
10485 used only when USE_FONT_BACKEND is not defined.
10486
10487 * dispextern.h (struct glyph_string): Change type of `font' to
10488 `struct font *'.
10489 (struct glyph_string): New member underline_position and
10490 underline_thickness.
10491 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10492 (struct face): Change type of `font' to `struct font *'. Remove
10493 members `font_name', `font_info_id'.
10494 (per_char_metric, encode_char): Delete externs.
10495 (calc_pixel_width_or_height): Adjust the prototype.
10496
10497 * emacs.c (enable_font_backend): Delete extern.
10498 (main): Don't set enable_font_backend. Don't check the command
10499 line argument "-disable-font-backend".
10500
10501 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10502 (enum font_property_index): New members FONT_DPI_INDEX,
10503 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10504 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10505 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10506 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10507 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10508 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10509 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10510 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10511 (struct font_spec, struct font_entity): New structs.
10512 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10513 (struct font): Many members from old "struct font_info" moved to
10514 here. Members font and entity deleted.
10515 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10516 the new font-related objects.
10517 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10518 (CHECK_FONT_GET_OBJECT): Likewise.
10519 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10520 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10521 (struct font_driver): New members case_sensitive anc check. Type
10522 of the member list and open changed.
10523 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10524 (font_symbolic_width, font_find_object, font_get_spec)
10525 (font_set_lface_from_name): Delete extern.
10526 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10527
10528 * font.c: Include <strings.h>.
10529 (enable_font_backend): Delete it.
10530 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10531 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10532 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10533 (null_string): Delete it.
10534 (null_vector): Make it static.
10535 (font_family_alist): Delete it.
10536 (Qnormal): Extern it.
10537 (QCextra, QClanguage): Delete it.
10538 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10539 (font_make_spec, font_make_entity, font_make_object)
10540 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10541 the string. Callers changed.
10542 (font_pixel_size): Adjusted for the format change of font-related
10543 objects.
10544 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10545 (font_style_to_value, font_style_symbolic): New function.
10546 (build_font_family_alist): Delete it.
10547 (font_registry_charsets): Use Fassoc_string instead of
10548 assq_no_quit.
10549 (font_prop_validate_symbol): Don't return null_string.
10550 (font_prop_validate_style): Adjusted for the change of
10551 style-related values in a font vector.
10552 (font_property_table): Delete entries for QClanguage and
10553 QCantialias, add entries for QCavgwidth.
10554 (get_font_prop_index): Delete the 2nd argument FROM.
10555 (font_prop_validate): Arguments changed.
10556 (font_put_extra): Adjusted for the change of font-related objects.
10557 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10558 (font_parse_fcname, font_unparse_fcname)
10559 (font_prepare_composition): Likewise.
10560 (font_parse_family_registry): Renamed from font_merge_old_spec.
10561 (otf_open): Delete the 1st arg entity.
10562 (font_otf_capability): Adjusted for the above change.
10563 (font_score): New arg alternate_families. Adjusted for the change
10564 of font-related objects.
10565 (font_sort_entites): New arg best_only.
10566 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10567 Delete them.
10568 (font_match_p): Check alternate families.
10569 (font_find_object): Delete it.
10570 (font_check_object): New function.
10571 (font_clear_cache): Adjusted for the change of font-related objects.
10572 (font_delete_unmatched): New arg.
10573 (font_list_entities): Call font_driver->list with a spec that
10574 doesn't specify style-related properties.
10575 (font_matching_entity): Arguments changed. Caller changed.
10576 (font_open_entity): Adjusted for the change of font-related objects.
10577 (font_close_object, font_has_char, font_encode_char)
10578 (font_get_name, font_get_spec): Likewise.
10579 (font_spec_from_name, font_clear_prop, font_update_lface):
10580 New functions.
10581 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10582 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10583 (font_at): Adjusted for the change of font-related objects.
10584 (font_range): New function.
10585 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10586 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10587 (Fcopy_font_spec, Fmerge_font_spec): New function.
10588 (Ffont_family_list): Renamed from list-families.
10589 (Finternal_set_font_style_table): Arguments changed.
10590 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10591 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10592 change of font-related objects.
10593 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10594
10595 * fontset.h (struct font_info): Delete it. Most members go to
10596 struct font.
10597 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10598 (enum FONT_SPEC_INDEX): Delete it.
10599 (font_info, list_fonts_func, load_font_func, query_font_func)
10600 (set_frame_fontset_func, find_ccl_program_func)
10601 (get_font_repertory_func, new_fontset_from_font_name): Delete
10602 externs.
10603 (fontset_from_font_name): Extern it.
10604 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10605 (FONT_INFO_FROM_FACE): Deleted.
10606 (face_for_font): Adjust prototype.
10607
10608 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10609 conditionals. Don't check enable_font_backend. Delete all codes
10610 used only when USE_FONT_BACKEND is not defined.
10611 (get_font_info_func, list_font_func, load_font_func)
10612 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10613 (get_font_repertory_func): Delete them.
10614 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10615 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10616 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10617 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10618 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10619 (fontset_compare_rfontdef): New function.
10620 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10621 rfont-defs by qsort. Adjusted for the change of font-group vector.
10622 (load_font_get_repertory): Deleted.
10623 (fontset_find_font): Use new macros to ref/set elements of
10624 font-def and rfont-def.
10625 (fontset_font): Fix the timing of remembering that no font for C.
10626 (free_face_fontset): Do nothing if the face has no fontset.
10627 (face_suitable_for_char_p): Use new macros to ref/set elements of
10628 rfont-def.
10629 (face_for_char): Likewise. Call face_for_char with font_object.
10630 (fs_load_font): Delete. Delete #pragma surrounding it.
10631 (fs_query_fontset): Use strcasecmp instead of strcmp.
10632 (generate_ascii_font_name): Adjusted for the format change of
10633 font-spec.
10634 (Fset_fontset_font): Likewise. Use new macros to set elements of
10635 font-def.
10636 (Fnew_fontset): Use font_unparse_xlfd to generate
10637 FONTSET_ASCII (fontset).
10638 (new_fontset_from_font_name): Deleted.
10639 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10640 a fontset is already created for the font. FIx updating of
10641 Vfontset_alias_alist.
10642 (fontset_ascii_font): Deleted.
10643 (Ffont_info): Adjusted for the format change of font-spec.
10644 (Finternal_char_font): Likewise.
10645 (Ffontset_info): Likewise.
10646 (syms_of_fontset): Don't check load_font_func.
10647
10648 * fns.c (internal_equal): Handle PREV_FONT.
10649
10650 * frame.h: Delete USE_FONT_BACKEND conditional.
10651
10652 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10653 conditionals. Don't check enable_font_backend. Delete all codes
10654 used only when USE_FONT_BACKEND is not defined.
10655 (x_set_font): Call x_new_font, not x_new_fontset2.
10656 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10657 already set for the frame.
10658
10659 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10660 a font-entity by font_make_entity. Use font_intern_prop instead
10661 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10662 font property. If a font is scalable, set avgwidth property to 0.
10663 Set font-entity property by font_put_extra.
10664 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10665 (ffont_driver): Adjusted for the change of struct font_driver.
10666 (ftfont_spec_pattern): New function.
10667 (ftfont_list): Return a list, not vector.
10668 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10669 (ftfont_list_family): Don't downcase names.
10670 (ftfont_free_entity): Deleted.
10671 (ftfont_open): Return a font-object. Adjusted for the change of
10672 struct font. Get underline_thickness and underline_position from
10673 font property. Don't update dpyinfo->smallest_font_height and
10674 dpyinfo->smallest_char_width.
10675 (ftfont_close): Don't free `struct font'.
10676 (ftfont_has_char): Adjusted for the format change of font-entity.
10677 (ftfont_encode_char, ftfont_text_extents): Likewise.
10678
10679 * ftxfont.c (ftxfont_list): Return a list, not vector.
10680 (ftxfont_open): Return a font-object. Adjusted for the change of
10681 struct font. Get underline_thickness and underline_position from
10682 font property. Don't update dpyinfo->smallest_font_height and
10683 dpyinfo->smallest_char_width.
10684 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10685 (ftxfont_draw): Adjusted for the change of struct font.
10686
10687 * image.c (image_ascent): Don't include "charset.h". Include
10688 "character.h" and "font.h".
10689
10690 * lisp.h (enum pvec_type): New member PREV_FONT.
10691 (Fassoc_string): EXFUN it.
10692
10693 * print.c: Include font.h.
10694 (print_object): Handle font-related objects.
10695
10696 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10697 conditionals. Don't check enable_font_backend. Delete all codes
10698 used only when USE_FONT_BACKEND is not defined.
10699 (handle_auto_composed_prop): Do nothing if it->f is not on a
10700 window system. Check how many following characters can be
10701 displayed by the same font.
10702 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10703 'struct font *'.
10704 (get_char_face_and_encoding): Assign the whole encoding task to
10705 the `encode-char' method of a font driver.
10706 (fill_composite_glyph_string): Adjusted for the change of `struct
10707 face' and `struct glyph_string'.
10708 (fill_glyph_string): Likewise.
10709 (get_per_char_metric): Arguments changed.
10710 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10711 and `struct glyph_string'.
10712 (produce_stretch_glyph, calc_line_height_property)
10713 (x_produce_glyphs): Likewise.
10714
10715 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10716 conditionals. Don't check enable_font_backend. Delete all codes
10717 used only when USE_FONT_BACKEND is not defined. Use
10718 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10719 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10720 (Qp): Extern them.
10721 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10722 Deleted.
10723 (struct font_name): Deleted.
10724 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10725 (compare_fonts_by_sort_order): New function.
10726 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10727 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10728 Deleted.
10729 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10730 compare_fonts_by_sort_order.
10731 (Fx_font_family_list): Call Ffont_family_list.
10732 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10733 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10734 (face_symbolic_slant, face_symbolic_swidth)
10735 (split_font_name_into_vector, build_font_name_from_vector)
10736 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10737 (font_rescale_ratio, split_font_name, build_font_name)
10738 (free_font_names, sort_fonts, x_face_list_fonts)
10739 (face_font_available_p, sorted_font_list, cmp_font_names)
10740 (font_list_1, concat_font_list, font_list, remove_duplicates):
10741 Deleted.
10742 (Fx_list_fonts): Use Ffont_list.
10743 (LFACE_AVGWIDTH): Deleted.
10744 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10745 by FONTP.
10746 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10747 (set_lface_from_font_name): Delete it.
10748 (set_lface_from_font): Renamed from
10749 set_lface_from_font_and_fontset. Caller changed. Don't set
10750 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10751 for face.
10752 (merge_face_vectors): Copy font-spec if necessary.
10753 Clear properties of the font-spec if necessary.
10754 (merge_face_ref): Clear properties of the font-spec if necessary.
10755 (Finternal_set_lisp_face_attribute): Likewise.
10756 (set_font_frame_param): Use font_load_for_lface to load a
10757 font-object, and call Fmodify_frame_parameters with it.
10758 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10759 font name by Ffont_xlfd_name.
10760 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10761 QCslant, and QCwidth.
10762 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10763 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10764 Compare fonts by EQ.
10765 (lookup_non_ascii_face): Deleted.
10766 (face_for_font): The 2nd argument changed.
10767 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10768 Check atomic font properties by case insensitive.
10769 (realize_non_ascii_face): Set face->overstrike correctly.
10770 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10771 (dump_realized_face): Get font name from
10772 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10773
10774 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10775 conditionals. Don't check enable_font_backend. Delete all codes
10776 used only when USE_FONT_BACKEND is not defined.
10777 (xic_create_xfontset): Original code deleted and renamed from
10778 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10779 (x_make_gc): Don't set GCFont in GCs.
10780 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10781 opened by "fixed".
10782 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10783 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10784 get_font_repertory_func.
10785
10786 * xfont.c: Include <stdlib.h> and "ccl.h".
10787 (struct xfont_info): New structure.
10788 (xfont_query_font): Deleted.
10789 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10790 moved from xterm.c.
10791 (xfont_driver): Adjusted for the change of struct font_driver.
10792 (compare_font_names): New function.
10793 (xfont_list_pattern): Sort font names case insensitively. Make
10794 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10795 (xfont_list): Return a list, not vector.
10796 (xfont_match): If the font doesn't have QCname property, generate
10797 a name from the other font properties.
10798 (xfont_open): Return a font-object. Adjusted for the change of
10799 struct font. Get underline_thickness and underline_position from
10800 font property. Don't update dpyinfo->smallest_font_height and
10801 dpyinfo->smallest_char_width.
10802 (xfont_close): Don't free struct font.
10803 (xfont_prepare_face): Adjusted for the change of struct font.
10804 (xfont_done_face): Deleted.
10805 (xfont_has_char): Adjusted for the change of struct font.
10806 (xfont_encode_char, xfont_draw): Likewise.
10807 (xfont_check): New function.
10808
10809 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10810 callback function.
10811 (xftfont_match): Adjusted for the format change of font-entity.
10812 (xftfont_open): Adjusted for the format change of font-entity and
10813 font-object. Adjusted for the change of struct font. Return a
10814 font-object. Don't update dpyinfo->smallest_font_height and
10815 dpyinfo->smallest_char_width.
10816 (xftfont_close): Block input while calling XftFontClose.
10817 (xftfont_prepare_face): Don't block input while calling
10818 xftfont_get_colors. Adjusted for the change of struct font.
10819 (xftfont_shape): Return value of error case fixed.
10820
10821 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10822
10823 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10824 conditionals.
10825 (FONT_WIDTH): Return (f)->max_width.
10826 (struct x_display_info): Delete member `font'.
10827 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10828 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10829 (struct x_output): Change type of `font' to `struct font *'.
10830
10831 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10832 conditionals. Don't check enable_font_backend. Delete all codes
10833 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10834 (x_per_char_metric, x_encode_char): Deleted.
10835 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10836 (x_compute_glyph_string_overhangs): Adjusted for the change of
10837 `struct face'.
10838 (x_draw_glyph_string_foreground)
10839 (x_draw_composite_glyph_string_foreground): Likewise.
10840 (x_draw_glyph_string): Likewise. Use font->underline_position and
10841 font->underline_thickness.
10842 (x_new_font): Renamed from x_new_fontset2.
10843 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10844 (x_check_font): Call `check' method of a font driver.
10845 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10846 (x_query_font, x_get_font_repertory): Deleted.
10847 (x_find_ccl_program): Renamed and moved to xfont.c.
10848 (x_redisplay_interface): Adjusted for the change of `struct
10849 redisplay_interface'.
10850
10851 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10852 conditionals. Don't check enable_font_backend. Delete all codes
10853 used only when USE_FONT_BACKEND is not defined. Surround non-used
10854 code by "#ifdef OLD_FONT" and "endif".
10855 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10856
10857 * w32font.h (struct w32font_info): New member.
10858 (FONT_COMPAT): New macro.
10859 (w32font_open_internal): Prototype adjusted.
10860
10861 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10862 OLD_FONT" and "endif".
10863
10864 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10865 conditionals. Don't check enable_font_backend. Delete all codes
10866 used only when USE_FONT_BACKEND is not defined.
10867 (w32font_open): Return a font-object. Make a font-object by
10868 font_make_object. Adjusted for the change of struct w32font_info.
10869 (w32font_close): Don't free struct font. Adjusted for the change
10870 of struct w32font_info.
10871 (w32font_encode_char, w32font_text_extents, w32font_draw):
10872 Adjusted for the change of struct w32font_info.
10873 (w32font_draw): Likewise.
10874 (w32font_list_internal): Return a list, not vector.
10875 (w32font_open_internal): Change the 4th arg to font-object.
10876 Adjusted for the change of struct w32font_info and font-object format.
10877 (add_font_name_to_list): Don't downcase names.
10878 (w32_enumfont_pattern_entity): Make a font-entity by
10879 font_make_entity. Adjusted for the format change of font-entity.
10880 Use FONT_SET_STYLE to set a style-related font property. If a
10881 font is scalable, set avgwidth property to 0. Set font-entity
10882 property by font_put_extra.
10883 (font_matches_spec): Adjusted for the format change of font-entity.
10884 (w32_weight_table, w32_decode_weight): New variables.
10885 (w32_encode_weight): New function.
10886 (fill_in_logfont): Adjusted for the format change of font-spec.
10887 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10888 weight value.
10889 (w32font_driver): Adjusted for the change of struct font_driver.
10890
10891 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10892 conditionals. Don't check enable_font_backend. Surround non-used
10893 code by "#ifdef OLD_FONT" and "endif".
10894 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10895 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10896
10897 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10898 conditionals. Don't check enable_font_backend. Delete all codes
10899 used only when USE_FONT_BACKEND is not defined. Surround non-used
10900 code by "#ifdef OLD_FONT" and "endif".
10901
10902 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10903 (uniscribe_open): Return value changed to font-object.
10904 Adjusted for the format change of font-object.
10905 (uniscribe_otf_capability): Adjusted for the change of struct font.
10906 (add_opentype_font_name_to_list): Don't downcase names.
10907 (uniscribe_font_driver): Adjusted for the change of struct
10908 font_driver.
10909
109102008-05-13 Chong Yidong <cyd@stupidchicken.com>
10911
10912 * dispnew.c (update_frame_1): Check if tty output is still valid
10913 before flushing it.
10914
109152008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10916
10917 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10918 to Gtk+ menus.
10919
109202008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * dired.c (file_name_completion): Tweak the code so as to always do it
10923 in a single pass. Tighten the scope of some variables.
10924
10925 * dired.c (Qdefault_directory): New var.
10926 (file_name_completion): Use it instead of Fexpand_file_name.
10927 (syms_of_dired): Initialize it.
10928
109292008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10930
10931 * fileio.c (double_dollars): Remove dead code.
10932
109332008-05-10 Eli Zaretskii <eliz@gnu.org>
10934
10935 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10936 Mention w32-get-true-file-attributes in doc string.
10937
10938 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10939
109402008-05-09 Glenn Morris <rgm@gnu.org>
10941
10942 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10943 2008-04-23.
10944
109452008-05-09 Eli Zaretskii <eliz@gnu.org>
10946
10947 Support for reporting owner and group of each file on MS-Windows:
10948 * dired.c (stat_uname, stat_gname): New functions, with special
10949 implementation for w32.
10950 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10951
10952 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10953 (dflt_group_name): New static variable.
10954 (dflt_group): Rename from the_group.
10955 (init_user_info): Init dflt_group fields. Get user's group name
10956 from LookupAccountSid.
10957 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10958 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10959 New initialization states.
10960 (globals_of_w32): Initialize them to zero. Initialize the default
10961 group name to "None".
10962 (GetFileSecurity_Name): New global var, the name of the function
10963 to call for GetFileSecurity.
10964 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10965 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10966 (get_file_security, get_security_descriptor_owner)
10967 (get_security_descriptor_group, is_valid_sid)
10968 (get_file_security_desc, get_rid, get_name_and_id)
10969 (get_file_owner_and_group): New functions.
10970 (stat): Use get_file_security_desc and get_file_owner_and_group to
10971 report the owner and primary group of each file. Don't ignore the
10972 high 32 bits of file's size, now that st_size is 64-bit wide.
10973 Fix test when to get true file attributes.
10974 (init_user_info): Use get_rid instead of equivalent inline code.
10975 (fstat): Don't ignore the high 32 bits of file's size.
10976
109772008-05-09 Chong Yidong <cyd@stupidchicken.com>
10978
10979 * image.c (png_load): Use correct bit-depth for setting background
10980 color.
10981
109822008-05-08 Eli Zaretskii <eliz@gnu.org>
10983
10984 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10985 epa-hook.elc.
10986
109872008-05-08 Juanma Barranquero <lekktu@gmail.com>
10988
10989 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10990
109912008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10992
10993 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10994 because the original parameters are in pure storage now.
10995 (mac_window): Remove unused params. Update callers.
10996
109972008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10998
10999 * lread.c (substitute_object_recurse): Use lower-level primitives.
11000 Don't signal errors when traversing sub-char-tables.
11001 Don't loop over all the possible characters when traversing char-tables.
11002
11003 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11004 just like we do in print.c.
11005
110062008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11007
11008 * minibuf.c (Ftry_completion): Remove code left over from when we used
11009 scmp instead of Fcompare_strings.
11010
110112008-05-04 Juanma Barranquero <lekktu@gmail.com>
11012
11013 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11014
110152008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11016
11017 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11018 Create bitmap context in native byte order.
11019
11020 * macterm.c (XDrawLine)
11021 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11022 context in native byte order.
11023
110242008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11025
11026 * config.in: Regenerate.
11027
11028 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11029 New definitions for Image I/O support.
11030 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11031 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11032 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11033 (mac_data_provider_release_data, image_load_image_io)
11034 [USE_MAC_IMAGE_IO]: New functions.
11035 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11036 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11037 (init_image_func_pointer) [MAC_OSX]: Remove function.
11038 (image_load_quartz2d) [MAC_OSX]: Check availability of
11039 CGImageCreateWithPNGDataProvider at compile time.
11040 Use lowercase `false' for boolean constant.
11041 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11042 Use image_load_image_io.
11043 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11044 Don't check MyCGImageCreateWithPNGDataProvider.
11045 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11046 Don't call init_image_func_pointer.
11047
11048 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11049
11050 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11051 Make variable non-static.
11052 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11053 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11054
11055 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11056 (RED_FROM_ULONG): Mask off higher bits.
11057 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11058
11059 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11060 Include AvailabilityMacros.h.
11061 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11062 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11063
110642008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11065
11066 * chartab.c (Fset_char_table_range): If range is t, really set all
11067 chars to that value.
11068
110692008-05-03 Eli Zaretskii <eliz@gnu.org>
11070
11071 * dired.c (Ffile_attributes): Don't allow the device number become
11072 negative.
11073
110742008-05-02 Daiki Ueno <ueno@unixuser.org>
11075
11076 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11077
110782008-05-02 Juri Linkov <juri@jurta.org>
11079
11080 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11081 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11082 DEFAULT argument as a list of default values in docstrings.
11083
110842008-05-01 Chong Yidong <cyd@stupidchicken.com>
11085
11086 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11087
110882008-05-01 Martin Rudalics <rudalics@gmx.at>
11089
11090 * dispnew.c (change_frame_size_1): Preserve small windows when
11091 shrinking frames by calling set_window_height|width with third
11092 arg 2.
11093
11094 * window.h (struct window): Replace field too_small_ok by field
11095 resize_proportionally.
11096
11097 * window.c (make_window): Initialize resize_proportionally.
11098 (enlarge_window): Temporarily set resize_proportionally to make
11099 sure that shrink_windows does scale the window proportionally.
11100 (shrink_windows): When window has resize_proportionally set try
11101 to shrink it proportionally by stealing from other windows.
11102 (struct saved_window, Fset_window_configuration)
11103 (compare_window_configurations): Handle resize_proportionally.
11104 (WINDOW_TOTAL_SIZE): New macro.
11105 (window_min_size, shrink_windows, size_window): Use it.
11106 (check_min_window_sizes): Remove. Invalid values of
11107 window-min-height|width are handled by window_min_size_2 now.
11108 (size_window, Fsplit_window, enlarge_window)
11109 (adjust_window_trailing_edge, grow_mini_window): Don't call
11110 check_min_window_sizes.
11111 (window_min_size_2, window_min_size_1, window_min_size):
11112 New argument safe_p for retrieving "safe" minimum sizes.
11113 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11114 (adjust_window_trailing_edge, grow_mini_window):
11115 Adjust arguments of window_min_size... functions.
11116 (shrink_windows): Argument min_size removed. New argument
11117 safe_p allows shrinking windows to their safe minimum sizes.
11118 Calculate minimum size and decide whether a window shall be
11119 deleted for each window individually.
11120 (size_window): When nodelete_p equals 2, tell shrink_windows to
11121 delete windows only if their new minimum size is no more safe.
11122 (shrink_window_lowest_first): Call window_min_size_1 to make
11123 sure to preserve modeline of bottom-most window when resizing
11124 the minibuffer.
11125 (Fset_window_configuration, Fcurrent_window_configuration)
11126 (compare_window_configurations): Do not handle
11127 window-min-height|width any more.
11128 (syms_of_window): Clarify window-min-height|width doc-strings.
11129
111302008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11131
11132 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11133 some more. Copy some of the code from Ftry_completions.
11134 Remove special case code that dates back to initial revision when the
11135 slash was only added when necessary and that can't trigger nowadays.
11136
111372008-04-27 Kenichi Handa <handa@m17n.org>
11138
11139 * font.c (font_prop_validate): Signal `error' instead of `font'.
11140
111412008-04-29 Jason Rumney <jasonr@gnu.org>
11142
11143 * w32fns.c (Fw32_battery_status): New defun.
11144 (syms_of_w32fns): Defsubr it.
11145
111462008-04-28 Andreas Schwab <schwab@suse.de>
11147
11148 * dired.c (file_name_completion): Fix another mixing of encoded
11149 and decoded names.
11150
111512008-04-28 Juanma Barranquero <lekktu@gmail.com>
11152
11153 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11154
111552008-04-27 Juanma Barranquero <lekktu@gmail.com>
11156
11157 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11158
111592008-04-27 Andreas Schwab <schwab@suse.de>
11160
11161 * dired.c (file_name_completion): Fix inappropriate mixing of
11162 encoded and decoded names.
11163
11164 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11165
11166 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11167
111682008-04-26 Eli Zaretskii <eliz@gnu.org>
11169
11170 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11171 2008-03-31, it's not needed anymore with `struct stat' definition
11172 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11173 for the same reasons.
11174
111752008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11176
11177 * m/sparc.h: Additional redefinitions for GNU/Linux.
11178
111792008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11180
11181 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11182 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11183 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11184 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11185 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11186 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11187 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11188 Likewise.
11189
11190 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11191 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11192 (mac_ax_number_of_characters): Add externs.
11193 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11194 [USE_MAC_TSM]: Likewise.
11195 (mac_handle_text_input_event) [MAC_OSX]:
11196 Handle kEventTextInputOffsetToPos for no active input area case.
11197 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11198 (mac_handle_document_access_event)
11199 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11200 (install_application_handler) [MAC_OSX]: Register handlers for
11201 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11202 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11203 Register mac_handle_document_access_event.
11204
11205 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11206 Make functions non-static.
11207
112082008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11209
11210 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11211 (read_file_name_completion_ignore_case, insert_default_directory)
11212 (Qdefault_directory): Move to minibuffer.el.
11213 (Fread_file_name): Call the new `read-file-name' instead.
11214
112152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11216
11217 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11218 Make function non-static.
11219 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11220 Remove function.
11221 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11222 Move to mactoolbox.c.
11223 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11224
11225 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11226 (mac_rect_make): New macro.
11227
11228 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11229 instead of float.
11230 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11231 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11232 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11233 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11234 CGRectMake.
11235 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11236 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11237 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11238 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11239 instead of WindowRef in argument type.
11240 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11241 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11242 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11243 instead of DISPLAY. All uses changed.
11244 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11245 (x_calc_absolute_position): Simplify so as not to use
11246 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11247
11248 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11249 instead of WindowRef in argument type.
11250 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11251 [TARGET_API_MAC_CARBON]: Remove externs.
11252 (create_apple_event, mac_event_parameters_to_lisp)
11253 [TARGET_API_MAC_CARBON]: Add externs.
11254
11255 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11256 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11257 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11258 is clicked.
11259 (x_activate_menubar): Remove extern for saved_menu_event_location.
11260 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11261 Move from mac.c.
11262
112632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11264
11265 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11266 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11267
112682008-04-23 Jason Rumney <jasonr@gnu.org>
11269
11270 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11271 attributes only for local files.
11272
11273 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11274 default to Qlocal.
11275
112762008-04-22 Juri Linkov <juri@jurta.org>
11277
11278 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11279 read-buffer-to-switch instead of using the letter "B".
11280
112812008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * fileio.c (Qdefault_directory): New variable.
11284 (Fread_file_name): Use it to pass `dir' to the completion functions.
11285
112862008-04-20 Chong Yidong <cyd@stupidchicken.com>
11287
11288 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11289
112902008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11291
11292 * keyboard.c (Vpre_help_message): Remove.
11293 (show_help_echo): Remove default C code.
11294
11295 * dired.c (directory_files_internal, file_name_completion):
11296 Only call ENCODE_FILE if the string is indeed decoded.
11297
112982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11299
11300 * Makefile.in (TOOLKIT_DEFINES): Remove.
11301 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11302
113032008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11304
11305 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11306 (mactoolbox.o): New target.
11307
11308 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11309 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11310
11311 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11312 Use mac_set_frame_window_background instead of XSetWindowBackground.
11313 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11314 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11315 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11316 instead of SetWindowTitleWithCFString.
11317 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11318 Move function to mactoolbox.c.
11319 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11320 Use mac_set_window_modified instead of SetWindowModified.
11321 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11322 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11323 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11324 FrontNonFloatingWindow. Use mac_activate_window instead of
11325 ActivateWindow. Use mac_active_non_floating_window instead of
11326 ActiveNonFloatingWindow.
11327 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11328 Use mac_show_hourglass and mac_hide_hourglass.
11329 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11330 instead of GetGlobalMouse.
11331 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11332 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11333 Use mac_bring_window_to_front instead of BringToFront.
11334 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11335 mactoolbox.c.
11336 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11337 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11338 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11339 mactoolbox.c.
11340
11341 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11342 (XtPointer): Move typedef from macmenu.c.
11343 (enum button_type): Move enum from macmenu.c.
11344 (widget_value): Move typedef from macmenu.c.
11345 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11346 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11347 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11348 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11349 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11350 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11351 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11352 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11353 (Selection): Move typedef from macselect.c.
11354 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11355 macterm.c.
11356 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11357 (mac_is_window_collapsed, mac_bring_window_to_front)
11358 (mac_send_window_behind, mac_hide_window, mac_show_window)
11359 (mac_collapse_window, mac_front_non_floating_window)
11360 (mac_active_non_floating_window, mac_activate_window)
11361 (mac_move_window_structure, mac_move_window, mac_size_window)
11362 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11363
11364 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11365 (enum mac_menu_kind): Move enum to mactoolbox.c.
11366 (min_menu_id): Move variable to mactoolbox.c.
11367 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11368 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11369 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11370 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11371 [TARGET_API_MAC_CARBON]: Likewise.
11372 (XtPointer): Move typedef to macgui.h.
11373 (enum button_type): Move enum to macgui.h.
11374 (widget_value): Move typedef to macgui.h.
11375 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11376 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11377 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11378 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11379 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11380 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11381 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11382 (popup_activated_flag): Make variable non-static.
11383 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11384 (add_menu_item, fill_menu, dispose_menus):
11385 Move functions to mactoolbox.c.
11386 (restore_show_help_function, menu_target_item_handler)
11387 (install_menu_target_item_handler, mac_handle_dialog_event)
11388 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11389 [TARGET_API_MAC_CARBON]: Likewise.
11390 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11391 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11392 (find_and_call_menu_selection, name_is_separator): Make function
11393 non-static.
11394 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11395 to mactoolbox.c.
11396 (set_frame_menubar): Don't call install_menu_quit_handler.
11397 (menu_item_selection): New variable.
11398 (mac_menu_show): Use create_and_show_popup_menu.
11399 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11400 selection but set variable menu_item_selection. All uses changed.
11401 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11402 Call install_menu_quit_handler. Move to mactoolbox.c.
11403
11404 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11405 (Selection): Move typedef to macgui.h.
11406 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11407 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11408 Make variables non-static.
11409 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11410 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11411 Make functions non-static.
11412 (Vmac_service_selection) [MAC_OSX]: Likewise.
11413 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11414 (mac_valid_selection_target_p, mac_clear_selection)
11415 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11416 (mac_put_selection_value, mac_selection_has_target_p)
11417 (mac_get_selection_value, mac_get_selection_target_list)
11418 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11419 Move functions to mactoolbox.c.
11420 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11421 Likewise.
11422 (copy_scrap_flavor_data, mac_handle_service_event)
11423 (install_service_handler) [MAC_OSX]: Likewise.
11424 (syms_of_macselect) <Vmac_dnd_known_types>:
11425 Use mac_dnd_default_known_types.
11426
11427 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11428 Move to mactoolbox.c.
11429 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11430 (Fx_selection_owner_p): Add EXFUN.
11431 (install_window_handler, remove_window_handler, XSetWindowBackground):
11432 Remove externs.
11433 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11434 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11435 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11436 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11437 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11438 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11439 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11440 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11441 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11442 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11443 (mac_valid_selection_target_p, mac_clear_selection)
11444 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11445 (mac_put_selection_value, mac_selection_has_target_p)
11446 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11447 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11448 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11449 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11450 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11451 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11452 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11453 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11454 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11455
11456 * mactoolbox.c: New file.
11457
114582008-04-18 Jason Rumney <jasonr@gnu.org>
11459
11460 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11461
114622008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11463
11464 * character.c (Fmultibyte_char_to_unibyte):
11465 Return latin1 chars unchanged.
11466
11467 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11468 relocated if it points to `name'.
11469
114702008-04-17 Kenichi Handa <handa@m17n.org>
11471
11472 * data.c (Faset): Allow setting a multibyte character in an
11473 ASCII-only unibyte string.
11474
11475 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11476
114772008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11478
11479 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11480 done in config.h.
11481
114822008-04-16 Juanma Barranquero <lekktu@gmail.com>
11483
11484 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11485 (Fchar_direction): Add usage in the docstring.
11486
114872008-04-15 Chong Yidong <cyd@stupidchicken.com>
11488
11489 * keyboard.c (read_key_sequence): Remove always-true checks.
11490
114912008-04-14 Jason Rumney <jasonr@gnu.org>
11492
11493 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11494 compatibility struct, for better underline positioning.
11495
114962008-04-13 David Hansen <david.hansen@gmx.net>
11497
11498 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11499 string.
11500
115012008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11502
11503 * m/hp800.h (XUINT, XSET): Remove.
11504
115052008-04-12 Juanma Barranquero <lekktu@gmail.com>
11506
11507 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11508 previous change.
11509
115102008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11511
11512 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11513 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11514
115152008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11516
11517 * keymap.h (map_keymap_canonical): Declare.
11518 * xmenu.c (single_keymap_panes): Use it.
11519
115202008-04-11 Glenn Morris <rgm@gnu.org>
11521
11522 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11523 set the target's value to that of the alias.
11524
115252008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11526
11527 * term.c (set_tty_color_mode): Left over typo.
11528
115292008-04-10 Michael Albinus <michael.albinus@gmx.de>
11530
11531 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11532 only after check for file name handler functions. Signal, when
11533 native functionality is not supported.
11534 (syms_of_fileio): Declare it unconditionally.
11535
115362008-04-10 Jason Rumney <jasonr@gnu.org>
11537
11538 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11539 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11540
11541 * w32.c (logon_network_drive): Also logon to remote drives that
11542 are mapped to drive letters.
11543
115442008-04-10 Glenn Morris <rgm@gnu.org>
11545
11546 * xdisp.c (truncate-partial-width-windows): Doc fix.
11547
115482008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11551 Move functions to minibuffer.el.
11552 (syms_of_fileio): Don't declare them.
11553
115542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11555
11556 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11557 (syms_of_minibuf): Remove its initialization.
11558
11559 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11560
115612008-04-09 Juanma Barranquero <lekktu@gmail.com>
11562
11563 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11564
115652008-04-09 Jason Rumney <jasonr@gnu.org>
11566
11567 * makefile.w32-in (distclean): Delete makefile too.
11568 (maintainer-clean): New target.
11569
11570 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11571
11572 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11573 for new font backend and composite cases.
11574
115752008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11576
11577 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11578 Most of the code moved to run_timers.
11579 (do_pending_atimers): Call run_timers.
11580 (run_timers): New function.
11581
11582 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11583 run atimers.
11584
11585 * process.c (wait_reading_process_output): The same as above.
11586
115872008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11588
11589 * minibuf.c (last_exact_completion): Remove variable.
11590 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11591 (complete_and_exit_1, complete_and_exit_2)
11592 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11593 (Fdisplay_completion_list, display_completion_list_1)
11594 (Fminibuffer_completion_help, Fself_insert_and_exit)
11595 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11596 minibuffer.el.
11597 (syms_of_minibuf): Remove corresponding initializations.
11598
11599 * keyboard.c (Qdeactivate_mark): New var.
11600 (command_loop_1): Use it to call `deactivate-mark'.
11601 (syms_of_keyboard): Initialize it.
11602
11603 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11604 to another frame.
11605 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11606 Don't call set_tty_color_mode.
11607 (store_frame_param): Reset previous_frame rather than call
11608 set_tty_color_mode.
11609 * term.c (set_tty_color_mode): Rewrite.
11610 * dispextern.h (set_tty_color_mode): New type.
11611 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11612
116132008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11614
11615 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11616 for generic chars, which do not exist any more in emacs-unicode.
11617
116182008-04-08 Michael Albinus <michael.albinus@gmx.de>
11619
11620 * coding.c (detect_coding_emacs_mule)
11621 (Ffind_operation_coding_system): Fix typo.
11622
116232008-04-08 Jason Rumney <jasonr@gnu.org>
11624
11625 * w32uniscribe.c (SNAME): Extract only symbol name.
11626
11627 * w32font.h (struct w32_metric_cache): New struct.
11628 (w32font_info): Use it.
11629 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11630 (CACHE_BLOCKSIZE): New constants.
11631
11632 * w32font.c (Qja, Qko, Qzh): New symbols.
11633 (syms_of_w32font): Initialise them.
11634 (font_matches_spec): Use them to filter by language.
11635 (recompute_cached_metrics): Remove function.
11636 (compute_metrics, clear_cached_metrics): New functions.
11637 (w32font_encode_char): Use them to manage metric cache.
11638 (w32font_text_extents): Cache metrics for all glyphs on demand.
11639 Delay converting glyph indices to WORD until needed.
11640 (w32font_open_internal): Initialize metric cache to empty.
11641 (registry_to_w32_charset): Charset should always be a symbol.
11642 (fill_in_logfont, list_all_matching_fonts): Family should
11643 always be a symbol.
11644
116452008-04-06 Jason Rumney <jasonr@gnu.org>
11646
11647 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11648 Give up if glyph indices not supported. Use uniscribe obtained
11649 ABC widths for individual metrics. Map glyph clusters back to
11650 characters using fClusterStart flag. Return number of glyphs
11651 produced, not chars processed.
11652 (uniscribe_shape): Map char at FROM to current glyph.
11653
116542008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11655
11656 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11657 Use SetMenuItemHierarchicalMenu.
11658
116592008-04-05 Jason Rumney <jasonr@gnu.org>
11660
11661 * image.c (pbm_load): Allow color values up to 65535.
11662 Throw an error if max_color_idx is outside the supported range.
11663 Report an error when image size is invalid.
11664 Read two bytes at a time when raw images have max_color_idx above 255.
11665
116662008-04-05 Eli Zaretskii <eliz@gnu.org>
11667
11668 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11669 cFileName a file name that includes `?' characters, use the 8+3
11670 alias in cAlternateFileName instead.
11671
116722008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11673
11674 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11675 append "CCL: Quitted" when the CCL program is quitted.
11676 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11677
11678 * ccl.h (struct ccl_program): New member quit_silently.
11679
116802008-04-05 Chong Yidong <cyd@stupidchicken.com>
11681
11682 * search.c (compile_pattern_1): Treat non-nil and non-string of
11683 search-spaces-regexp as nil.
11684
11685 * minibuf.c (Fassoc_string): Tweak docstring.
11686
116872008-04-05 Eli Zaretskii <eliz@gnu.org>
11688
11689 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11690 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11691 2008-03-14 to force inode be positive.
11692
11693 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11694 _S_* ones, since we now use our own sys/stat.h.
11695 (stat, fstat): Don't mangle the inode number.
11696 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11697
116982008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * frame.h (struct frame): Give one more bit to `visible' since we use
11701 values larger than 1 to indicate obscured frames on ttys.
11702
11703 * keymap.c (Qkeymap_canonicalize): New var.
11704 (Fmap_keymap_internal): New fun.
11705 (describe_map): Use keymap-canonicalize.
11706
11707 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11708 (Fundo_boundary): Set them.
11709 (syms_of_undo): Initialize them.
11710 (record_point): Use them instead of last_point_position*.
11711 (last_undo_buffer): Change type.
11712
117132008-04-04 Jason Rumney <jasonr@gnu.org>
11714
11715 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11716 (recompute_cached_metrics): Don't set ascent and descent per char.
11717
11718 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11719 (uniscribe_check_otf): Add GC protection before consing.
11720 Rearrange loop for counting features.
11721
117222008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11723
11724 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11725 buffer with byte-size of source buffer.
11726
117272008-04-03 Chong Yidong <cyd@stupidchicken.com>
11728
11729 * callint.c (Fcall_interactively): Handle temporary region even
11730 when shift-select-mode is off.
11731
117322008-04-03 Jason Rumney <jasonr@gnu.org>
11733
11734 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11735
117362008-04-03 Kenichi Handa <handa@m17n.org>
11737
11738 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11739 (CATEGORY_MASK_UTF_16): Likewise.
11740 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11741 binary file.
11742 (detect_coding): Add null-byte detection for a binary file.
11743 (detect_coding_system): Likewise.
11744
117452008-04-03 Jason Rumney <jasonr@gnu.org>
11746
11747 * w32uniscribe.c: New file.
11748
11749 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11750
11751 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11752
11753 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11754 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11755 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11756 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11757 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11758 (Qphonetic): New symbols.
11759 (syms_of_w32font): Initialize them.
11760 (font_supported_scripts): Use them.
11761 (w32font_list_family): List all charsets.
11762 (w32font_text_extents, recompute_cached_metrics): Fix metric
11763 calculations.
11764 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11765 Give opentype fonts their own format.
11766 (font_matches_spec): New arguments backend and logfont.
11767 Handle :otf spec for uniscribe backend.
11768 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11769 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11770
11771 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11772 font backend.
11773 (globals_of_w32fns): Initialize uniscribe font backend.
11774
11775 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11776 dependencies.
11777 (w32uniscribe.$(O)): New file to build.
11778 (FONT_OBJ): Include w32uniscribe.$(O).
11779 (LIBS): Add uniscribe libraries.
11780
11781 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11782
117832008-04-02 Chong Yidong <cyd@stupidchicken.com>
11784
11785 * callint.c (Vshift_select_mode): New var.
11786 (Finteractive): Document new ^ spec.
11787 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11788 is present.
11789
11790 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11791 (command_loop_1): Avoid running the direct display versions of
11792 forward-char and backward-char if shift-selection may occur.
11793 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11794 shift-translation takes place.
11795
11796 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11797 avoid clobbering by define-minor-mode.
11798
11799 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11800 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11801
11802 * syntax.c (Fforward_word): Add ^ interactive spec.
11803
11804 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11805 (Fscroll_right): Add ^ interactive spec.
11806
118072008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11810
11811 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11812
11813 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11814
118152008-03-31 Juri Linkov <juri@jurta.org>
11816
11817 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11818
118192008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11820
11821 * gtkutil.c (xg_set_geometry): Fix indentation.
11822 (xg_resize_outer_widget): Remove.
11823 (x_wm_size_hint_off): Fix indentation.
11824 (xg_frame_set_char_size): Call flush_and_sync after
11825 gtk_window_resize.
11826 (x_wm_set_size_hint): Pass NULL as geometry window to
11827 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11828 Add menu bar and tool bar height to base height.
11829 (xg_update_frame_menubar, free_frame_menubar)
11830 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11831 (update_frame_tool_bar, free_frame_tool_bar):
11832 Change xg_resize_outer_widget to xg_frame_set_char_size.
11833
118342008-03-30 Michael Albinus <michael.albinus@gmx.de>
11835
11836 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11837 (Fdbus_call_method): New parameter TIMEOUT.
11838 (dbus-send-signal): Optimize UNGCPRO call.
11839
118402008-03-29 Juri Linkov <juri@jurta.org>
11841
11842 * window.c (Fdisplay_buffer): Move call to
11843 Vsplit_window_preferred_function out of conditions that check
11844 if window is eligible for vertical splitting.
11845 When Vsplit_window_preferred_function is non-nil, call it and use
11846 its non-nil return value as window. Otherwise, continue doing
11847 vertical splitting using Fsplit_window with arg horflag=nil.
11848 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11849 default value from `split-window' to nil.
11850
118512008-03-29 Juri Linkov <juri@jurta.org>
11852
11853 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11854 for interactive code letters 'b' and 'B'.
11855
118562008-03-29 Eli Zaretskii <eliz@gnu.org>
11857
11858 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11859 multibyte string.
11860
118612008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11862
11863 * keyboard.c (pending_funcalls): New var.
11864 (timer_check): Run it.
11865 (syms_of_keyboard): Initialize it.
11866 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11867 (Vdelete_terminal_functions): New vars.
11868 (syms_of_terminal): Initialize them.
11869 (Fdelete_terminal): Run delete-terminal-functions.
11870 * xdisp.c (safe_eval): Rewrite.
11871 (safe_call2): New fun.
11872 * frame.c (Qdelete_frame_functions): New var.
11873 (syms_of_frame): Initialize it.
11874 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11875 * lisp.h (safe_call2, pending_funcalls): Declare.
11876
118772008-03-28 Andreas Schwab <schwab@suse.de>
11878
11879 * indent.c (Fmove_to_column): Move declaration before statements.
11880
118812008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11882
11883 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11884 (struct frame): Use bit fields for boolean vars.
11885
11886 * process.c (server_accept_connection): Simplify naming.
11887 (emacs_get_tty_pgrp): Use SDATA.
11888
11889 * coding.c (decode_coding_object): Fix last change.
11890
118912008-03-27 Jason Rumney <jasonr@gnu.org>
11892
11893 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11894
118952008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11896
11897 * charset.c (Fdefine_charset_internal): Change the way of
11898 registering charsets in Vcharset_order_list.
11899 (syms_of_charset): Make the charset `eight-bit' supplementary.
11900
119012008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11902
11903 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11904 operations, to avoid having the difference between pointers
11905 overflow.
11906
119072008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11908
11909 * indent.c (check_display_width): New fun.
11910 (scan_for_column): Use it.
11911
11912 * data.c (syms_of_data): Mark most-positive-fixnum and
11913 most-negative-fixnum as constants.
11914
11915 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11916
11917 * indent.c (scan_for_column): Extract from current_column_1.
11918 Merge with the same code from Fmove_to_column.
11919 (current_column_1, Fmove_to_column): Use it.
11920
119212008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11922
11923 * keymap.c (map_keymap_internal): New fun.
11924 (map_keymap): Use it.
11925 (Fmap_keymap_internal): New fun.
11926 (Fmap_keymap): Remove left-out test from before make_save_value.
11927
11928 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11929
11930 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11931 Use XCAR/XCDR.
11932
11933 * process.h (struct Lisp_Process): Remove filter_multibyte.
11934 * process.c (QCfilter_multibyte): Remove.
11935 (setup_process_coding_systems): Don't use filter_multibyte.
11936 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11937 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11938 (Fset_process_filter_multibyte): Change the coding-system to
11939 approximate the previous behavior.
11940 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11941 coding-system.
11942
11943 * coding.c (decode_coding_object): When not decoding into a buffer,
11944 obey the coding system's preference of (uni|multi)byte.
11945
119462008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11949 every char is changed and has a different byte-length.
11950 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11951 Fix int -> EMACS_INT.
11952
119532008-03-23 David Hansen <david.hansen@gmx.net>
11954
11955 * dbusbind.c (xd_read_message): Remove extra copying of message
11956 strings. Check for NULL `interface' or `member'.
11957
119582008-03-22 Eli Zaretskii <eliz@gnu.org>
11959
11960 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11961 cFileName a file name that includes `?' characters, use the 8+3
11962 alias in cAlternateFileName instead.
11963
119642008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11965
11966 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11967
119682008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11969
11970 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11971 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11972 work on current_buffer only instead (that was already the case
11973 for some of the code anyway).
11974 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11975 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11976 (SET_PT, SET_PT_BOTH): Adjust.
11977 * intervals.h (set_point, temp_set_point, set_point_both)
11978 (temp_set_point_both): Remove redundant declarations.
11979
119802008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11981
11982 * fileio.c (Finsert_file_contents):
11983 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11984 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11985 when buffer != current_buffer anyway.
11986
119872008-03-20 Andreas Schwab <schwab@suse.de>
11988
11989 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11990 as default.
11991
119922008-03-19 Jason Rumney <jasonr@gnu.org>
11993
11994 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11995 (syms_of_w32fns): Initialize them.
11996 (HOURGLASS_ID): New constant.
11997 (x_window_to_frame): Don't check hourglass_window.
11998 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11999 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12000 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12001 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12002 Only change the cursor if hourglass is not active.
12003 (Fx_create_frame): Initialize frame's current_cursor.
12004 (hourglass_atimer): Remove.
12005 (hourglass_started): New function.
12006 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12007 (show_hourglass): Adapt to w32, changing argument to frame.
12008
12009 * w32term.h (struct w32_output): Remove hourglass_window.
12010 Add current_cursor.
12011
12012 * eval.c (call_debugger, Fsignal):
12013 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12014 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12015 (Fexecute_extended_command, cancel_hourglass_unwind):
12016 * minibuf.c (read_minibuf):
12017 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12018
120192008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12020
12021 * window.c (run_funs): New fun.
12022 (run_window_configuration_change_hook): Use it to run the buffer-local
12023 and the global part of the hook.
12024
12025 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12026 (unwind_format_mode_line): Restore selected window.
12027 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12028
120292008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12030
12031 * editfns.c (Fchar_equal): Check they are valid characters.
12032
12033 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12034
120352008-03-17 Andreas Schwab <schwab@suse.de>
12036
12037 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12038 against a charset.
12039
12040 * lisp.h (Fbuffer_list): Declare.
12041
120422008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12043
aac0c6e3
MR
12044 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12045 handlebox_widget is != 0.
12046
120472008-03-16 Juri Linkov <juri@jurta.org>
12048
12049 * callint.c (Fcall_interactively): For interactive code letters
12050 'b' and 'B' put the buffer list into the list of default "future"
12051 values of the minibuffer.
12052
120532008-03-16 Andreas Schwab <schwab@suse.de>
12054
12055 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12056 modifiers.
12057
12058 * regex.c (re_match_2_internal): Correct matching of a charset
12059 against latin-1 characters.
12060
120612008-03-16 Kenichi Handa <handa@m17n.org>
12062
12063 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12064 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12065 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12066 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12067 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12068 CHAR_STRING_ADVANCE.
12069 (produce_chars): Fix for the case that the source and the
12070 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12071 instead of CHAR_STRING_ADVANCE.
12072 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12073 STRING_CHAR_ADVANCE.
12074
120752008-03-15 Andreas Schwab <schwab@suse.de>
12076
12077 * regex.c (re_match_2_internal): Correct matching of eight bit
12078 characters in unibyte strings.
12079
120802008-03-15 Martin Rudalics <rudalics@gmx.at>
12081
12082 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12083 at end of range when it coincides with the end of the buffer.
12084
120852008-03-14 Eli Zaretskii <eliz@gnu.org>
12086
12087 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12088
12089 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12090
120912008-03-14 Jason Rumney <jasonr@gnu.org>
12092
12093 * editfns.c (initial_tz): New variable.
12094 (syms_of_editfns): Initialize it.
12095 (Fset_time_zone_rule): Set it when first called.
12096 Use it when TZSTRING is nil.
12097
12098 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12099 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12100 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12101 (globals_of_w32fns): Initialize them.
12102 (compute_tip_xy): Use them to position tooltips.
12103
121042008-03-14 Glenn Morris <rgm@gnu.org>
12105
12106 * emacs.c (main): Revert previous change.
12107 (standard_args): Revert -internal-script back to -scriptload,
12108 and remove the long-option form.
12109
121102008-03-13 Glenn Morris <rgm@gnu.org>
12111
12112 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12113 Remove option -enable-font-backend.
12114
121152008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12116
12117 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12118
121192008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12120
12121 * xterm.c (x_connection_closed): For GTK: If this is the last
12122 terminal just exit without closing the display.
12123
121242008-03-11 Jason Rumney <jasonr@gnu.org>
12125
12126 * w32font.c (w32font_full_name): Use floor to round.
12127
f0131492 121282008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12129
12130 * sound.c (alsa_configure): Declare vol at beginning of block.
12131
12132 * fontset.c (Ffontset_info): Remove extra semicolon.
12133
121342008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12135
12136 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12137 size of resulting string.
12138
121392008-03-10 Jason Rumney <jasonr@gnu.org>
12140
12141 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12142
121432008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12144
12145 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12146 Don't pretend as if characters with display property haven't been
12147 consumed for string-replacing-string case.
12148
121492008-03-08 Kim F. Storm <storm@cua.dk>
12150
12151 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12152 (get_next_display_element, next_element_from_string)
12153 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12154
121552008-03-08 Andreas Schwab <schwab@suse.de>
12156
12157 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12158
121592008-03-06 Jason Rumney <jasonr@gnu.org>
12160
12161 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12162 when charset not specified. Only translate ANSI to unicode when
12163 font_type is truetype.
12164 (w32font_coverage_ok): New function.
12165 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12166
121672008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12168
12169 * lread.c (Fread_char): Resolve modifiers.
12170 (Fread_char_exclusive): Likewise.
12171
12172 * character.c (char_resolve_modifier_mask): New function.
12173 (char_string): Use char_resolve_modifier_mask.
12174 (Fchar_resolve_modifiers): New function.
12175 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12176 function.
12177
121782008-03-04 Jason Rumney <jasonr@gnu.org>
12179
12180 * makefile.w32-in: Always include w32font.c in the build.
12181 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12182
121832008-03-04 Andreas Schwab <schwab@suse.de>
12184
12185 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12186 (versionclean): Likewise.
12187
121882008-03-04 Juanma Barranquero <lekktu@gmail.com>
12189
12190 * .cvsignore: Add oo.
12191
121922008-03-03 Andreas Schwab <schwab@suse.de>
12193
12194 * coding.c (decode_coding_object): Inhibit gap shrinking while
12195 decoding in place.
12196
121972008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12198
12199 * w32term.c: Remove unused include "gnu.h".
12200 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12201
12202 * gnu.h: Rename to ...
12203 * emacs-icon.h: ... this.
12204 * xterm.c: Use emacs-icon.h instead of gnu.h.
12205 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12206
122072008-03-03 Juanma Barranquero <lekktu@gmail.com>
12208
12209 * w32font.c: Include math.h.
12210
122112008-03-03 Jason Rumney <jasonr@gnu.org>
12212
12213 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12214 Compute options separately.
12215 (w32font_open_internal): Set glyph_idx before caching metrics.
12216
12217 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12218 Define if system headers don't.
12219 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12220 (w32font_encode_char): Don't declare here.
12221
12222 * w32font.c (Quniscribe, QCformat): New symbols.
12223 (syms_of_w32font): Define them.
12224 (w32font_has_char): Indicate uncertainty.
12225 (w32font_encode_char): Encode as glyph point. Make static.
12226 (recompute_cached_metrics): New function.
12227 (w32font_open_internal): Use it. Set font to use glyph points
12228 initially. Set format based on type of font.
12229 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12230 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12231 on it. Set format based on information available here.
12232 (add_font_entity_to_list): Identify backend based on opentype_only.
12233
122342008-03-02 Andreas Schwab <schwab@suse.de>
12235
12236 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12237
12238 * coding.c (decode_coding_big5, produce_chars):
12239 Fix typos in last change.
12240
122412008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12242
12243 * gnu.h: New icon.
12244
122452008-03-02 Kenichi Handa <handa@m17n.org>
12246
12247 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12248 `dos', don't decode '\r' if that is the last in the source.
12249 (decode_coding_utf_16, decode_coding_emacs_mule)
12250 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12251 (decode_coding_raw_text, decode_coding_charset): Likewise.
12252 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12253
122542008-03-01 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12257
122582008-03-01 Kim F. Storm <storm@cua.dk>
12259
12260 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12261
122622008-03-01 Jason Rumney <jasonr@gnu.org>
12263
12264 * w32font.c (w32font_full_name): New function.
12265 (w32font_open_internal): Use it.
12266
122672008-03-01 Kim F. Storm <storm@cua.dk>
12268
12269 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12270
122712008-03-01 Jason Rumney <jasonr@gnu.org>
12272
12273 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12274
122752008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12276
12277 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12278 xg_frame_resized when the event is for the edit widget.
12279
12280 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12281
12282 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12283 set_char_size.
12284 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12285 operations on widgets here. Just set frame size if needed.
12286 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12287 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12288 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12289 the whole frame.
12290 (xg_create_tool_bar): Move attachment of the tool bar to
12291 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12292 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12293
122942008-03-01 Jason Rumney <jasonr@gnu.org>
12295
12296 * w32fns.c (w32_msg_pump): Disable debug code.
12297
122982008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12299
12300 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12301
123022008-02-29 Chong Yidong <cyd@stupidchicken.com>
12303
12304 * xdisp.c (next_overlay_string): Don't set
12305 overlay_strings_at_end_processed_p if we're currently reading from
12306 a display string.
12307
123082008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12309
12310 * xdisp.c (get_overlay_strings_1): Fix typo.
12311
123122008-02-29 Chong Yidong <cyd@stupidchicken.com>
12313
12314 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12315
123162008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12317
12318 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12319
12320 * xdisp.c (display_mode_element): Cancel the previous change.
12321 (decode_mode_spec): Likewise.
12322 (handle_auto_composed_prop): Don't make composition if it->string
12323 is a string.
12324
123252008-02-27 Kim F. Storm <storm@cua.dk>
12326
12327 * lisp.h (GLYPH): Change type from int to struct with separate char
12328 and face_id members.
12329 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12330 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12331 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12332 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12333 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12334 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12335 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12336 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12337 handle new Lisp glyph code encoding, either an integer or a cons.
12338
12339 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12340 (GLYPH_ALIAS): Delete.
12341 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12342 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12343 (GLYPH_FROM_CHAR): Replace macro by ...
12344 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12345
12346 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12347 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12348 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12349 (GLYPH_INVALID_P): New macro.
12350 (spec_glyph_lookup_face): Update prototype.
12351
12352 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12353 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12354 new glyph code encoding.
12355 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12356 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12357
12358 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12359 Adapt to new glyph type and new glyph code encoding.
12360
12361 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12362
12363 * indent.c (current_column, current_column_1, Fmove_to_column)
12364 (compute_motion): Adapt to new glyph code encoding.
12365
12366 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12367
123682008-02-27 Chong Yidong <cyd@stupidchicken.com>
12369
12370 * process.c (wait_reading_process_output): Check for window
12371 changes caused by timers.
12372 Suggested by Johan Bockgård.
12373
123742008-02-27 Glenn Morris <rgm@gnu.org>
12375
12376 * emacs.c (USAGE1): Add `--disable-font-backend'.
12377
123782008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12379
12380 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12381 is made to the buffer.
12382
123832008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12384
12385 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12386 (face_at_string_position):
12387 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12388 (face_at_string_position):
12389 * xdisp.c (display_string, next_overlay_change):
12390 * buffer.h (overlays_at):
12391 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12392 Update callers.
12393
123942008-02-26 Chong Yidong <cyd@stupidchicken.com>
12395
12396 * editfns.c (Fformat): Doc fix.
12397
123982008-02-26 Juanma Barranquero <lekktu@gmail.com>
12399
12400 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12401 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12402 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12403
124042008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12405
12406 * buffer.c (Fbuffer_swap_text): New function.
12407 (syms_of_buffer): Defsubr it.
12408
124092008-02-25 Chong Yidong <cyd@stupidchicken.com>
12410
12411 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12412
124132008-02-25 Jason Rumney <jasonr@gnu.org>
12414
12415 * w32font.c (w32font_draw): Draw one character at a time when padding.
12416
124172008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12420 Handle a nil arg. Use run_window_configuration_change_hook.
12421 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12422 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12423 Use run_window_configuration_change_hook.
12424
124252008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12426
12427 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12428 1-pixel width.
12429
124302008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12431
12432 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12433 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12434 if the glyph in the font is zero pixel with.
12435
12436 * dispextern.h (struct glyph_string): New member padding_p.
12437
12438 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12439
12440 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12441
12442 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12443
12444 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12445
12446 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12447
124482008-02-25 Jason Rumney <jasonr@gnu.org>
12449
12450 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12451
124522008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12453
12454 Allow fine-grained image-cache flushing.
12455 * dispextern.h (struct image): Add `dependencies' field.
12456 (clear_image_caches): Change arg to Lisp_Object.
12457 * image.c (make_image): Initialize `dependencies' field.
12458 (clear_image_cache): Change arg to allow fine-grained flushing.
12459 Perform the flush even if image-cache-eviction-delay is nil.
12460 (clear_image_caches): Change arg to Lisp_Object.
12461 (Fclear_image_cache): Expand meaning of the argument.
12462 (mark_image): Mark `dependencies' field.
12463 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12464 (lface_hash): Use XHASH rather than XFASTINT.
12465 (face_at_buffer_position): Fix int -> EMACS_INT position.
12466 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12467 (select_frame_for_redisplay): Remove code duplication.
12468 (redisplay_internal): Adapt arg to call to clear_image_caches.
12469
124702008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12471
12472 * s/vms4-0.h:
12473 * s/vms4-2.h:
12474 * s/vms4-4.h:
12475 * s/vms5-5.h: Remove, unused.
12476
12477 * s/irix5-2.h:
12478 * s/irix6-0.h:
12479 * s/riscos5.h:
12480 * s/mach-bsd4-3.h:
12481 * m/mips4.h: Remove files for obsolete systems.
12482
12483 * Makefile.in:
12484 * filelock.c:
12485 * unexmips.c:
12486 * m/hp9000s300.h:
12487 * m/iris4d.h:
12488 * s/aix3-1.h:
12489 * s/hpux.h:
12490 * s/msdos.h:
12491 * s/usg5-0.h:
12492 * s/usg5-2-2.h:
12493 * s/usg5-2.h:
12494 * s/usg5-3.h: Remove references to obsolete variables.
12495
12496 * s/irix5-0.h: Remove, move all the contents ...
12497 * s/irix6-5.h: ... here. Simplify.
12498 * config.in: Regenerate.
12499
125002008-02-24 Jason Rumney <jasonr@gnu.org>
12501
12502 * w32term.c (x_draw_glyph_string_background): Clear the background
12503 manually when cleartype is in use.
12504 (x_draw_glyph_string_foreground): Draw text transparently when
12505 cleartype is in use.
12506
12507 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12508 a font into it unless we have to.
12509
125102008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12513 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12514
aac0c6e3
MR
125152008-02-18 Jason Rumney <jasonr@gnu.org>
12516
12517 * w32fns.c (Fw32_shell_execute): Encode parameters.
12518
125192008-02-09 Eli Zaretskii <eliz@gnu.org>
12520
12521 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12522
125232008-02-05 Juanma Barranquero <lekktu@gmail.com>
12524
12525 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12526
125272008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12528
12529 * xterm.c (x_set_offset): Don't change the gravity if
12530 CHANGE_GRAVITY is -1.
12531
125322008-02-23 Chong Yidong <cyd@stupidchicken.com>
12533
12534 * fileio.c (auto_save_error_occurred): New var.
12535 (auto_save_error): Set it.
12536 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12537 error occurred.
12538
125392008-02-23 Eli Zaretskii <eliz@gnu.org>
12540
12541 * w32.c (globals_of_w32): Add initializations for
12542 g_b_init_get_sid_sub_authority and
12543 g_b_init_get_sid_sub_authority_count.
12544
125452008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12548 (font_parse_xlfd): Use them for sanity check.
12549 (Finternal_set_font_style_table): Make sure the table is bijective.
12550
12551 Consolidate the image_cache to the terminal struct.
12552 * termhooks.h (P_): Remove redundant def.
12553 (struct terminal): New field `image_cache'.
12554 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12555 of FRAME_X_IMAGE_CACHE.
12556 * xterm.h (struct x_display_info): Remove image_cache field.
12557 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12558 * w32term.h (struct w32_display_info): Remove image_cache field.
12559 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12560 * macterm.h (struct mac_display_info): Remove image_cache field.
12561 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12562 * xterm.c (x_term_init):
12563 * w32term.c (w32_term_init):
12564 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12565 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12566 Remove declarations.
12567 (clear_image_caches, mark_image_cache): New declarations.
12568 * xfaces.c (clear_face_cache):
12569 * xdisp.c (redisplay_internal): Use clear_image_caches.
12570 * image.c (clear_image_cache): Don't check that a frame is on
12571 a window-system before checking if it shares the same cache.
12572 (clear_image_caches): New function.
12573 (Fclear_image_cache): Use it.
12574 (mark_image): Move from allo.c.
12575 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12576 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12577 (mark_object): Don't call mark_image_cache for frames.
12578 (mark_terminals): Call mark_image_cache.
12579
12580 * lisp.h (Fdelete_terminal): Declare.
12581
12582 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12583 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12584 wrong_type_argument.
12585
125862008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12587
12588 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12589 malayalam.el, and tamil.el. Add sinhala.el.
12590
125912008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12592
12593 * xterm.c (x_connection_closed): Consolidate identical tests.
12594 (x_delete_terminal): Don't crash if called via x_connection_closed.
12595
125962008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12597
12598 * xdisp.c (decode_mode_spec): New arg string.
12599 (display_mode_element): Adjust for the above change.
12600
126012008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12602
12603 * callint.c (Fcall_interactively): Use AREF.
12604
126052008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12606
12607 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12608
126092008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12610
12611 * xfns.c (Fx_show_tip): Set string to " " if empty.
12612
126132008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12614
12615 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12616 with Qt.
12617
126182008-02-17 Kenichi Handa <handa@m17n.org>
12619
12620 * ftfont.c (ftfont_shape): Return Lispy number.
12621
12622 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12623 for GCs.
12624 (Finternal_set_font_selection_order): Call font_update_sort_order
12625 only when enable_font_backend is set.
12626 (realize_x_face): Set face->font_info to that of default face only
12627 when enable_font_backend is set.
12628
12629 * xdisp.c (handle_composition_prop): Set it->c to the fist
12630 character of the composed region.
12631 (fill_composite_glyph_string): Set base_face->font_info to
12632 s->font_info. Get a face for ascii from base_face->ascii_face.
12633 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12634 with a face already decided.
12635 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12636 non-negative.
12637 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12638 call font_prepare_composition unconditionally.
12639
12640 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12641
12642 * xterm.h (struct x_display_info): New member font.
12643
12644 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12645 (x_set_mouse_face_gc, x_new_font): Likewise.
12646 (x_term_init): Setup display_info->font.
12647 (x_delete_terminal): Free display_info->font.
12648
12649 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12650
12651 * ftxfont.c (ftxfont_default_fid): Delete it.
12652 (ftxfont_open): Set xfont->fid to 0.
12653 (ftxfont_end_for_frame): Clear data specific to the frame and the
12654 font-driver.
12655
12656 * xftfont.c (xftfont_default_fid): Delete it.
12657 (xftfont_open): Set xfont->fid to 0.
12658
12659 * fontset.c (FONTSET_OBJLIST): New macro.
12660 (fontset_find_font): Update font-object list of the fontset.
12661 (free_realized_fontset): New function.
12662 (free_face_fontset): Call free_realized_fontset.
12663 (Ffont_info): Call font_close_object only when enable_font_backend
12664 is set.
12665
12666 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12667 [HAVE_NTGUI]: Include w32term.h.
12668 [MAC_OS]: Include macterm.ch.
12669 (font_otf_ValueRecord): Use make_number.
12670 (font_finish_cache): Fix handling of reference count.
12671 (font_clear_cache): Update num_fonts.
12672 (font_open_entity): Update smallest_char_width and
12673 smallest_font_height of the frame.
12674 (font_close_object): Update num_fonts.
12675 (Fclear_font_cache): Fix finding the target cache data.
12676
126772008-02-16 Glenn Morris <rgm@gnu.org>
12678
12679 * fontset.c (Finternal_char_font): Fix compilation warning.
12680
126812008-02-16 Eli Zaretskii <eliz@gnu.org>
12682
12683 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12684 instead of char arrays. Enlarge the size of array passed to
12685 get_token_information.
12686
12687 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12688 warnings.
12689
126902008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12691
12692 * .gdbinit: Don't set `args', it breaks gdb --args.
12693
126942008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12695
12696 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12697 within a narrowed buffer.
12698
126992008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12700
12701 * coding.c (decode_coding_object, encode_coding_object):
12702 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12703
127042008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12705
12706 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12707 hardcoding 1.
12708 (detect_coding_system):
12709 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12710 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12711 * insdel.c (insert_from_gap):
12712 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12713 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12714 (string_to_multibyte):
12715 * character.c (chars_in_text, multibyte_chars_in_text):
12716 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12717
12718 * character.h (FETCH_STRING_CHAR_ADVANCE)
12719 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12720 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12721 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12722
12723 * casefiddle.c (casify_region): Only call after-change and composition
12724 functions on the part of the region that was changed.
12725
12726 * keyboard.c (read_avail_input):
12727 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12728
127292008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12730
12731 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12732 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12733
127342008-02-11 Juanma Barranquero <lekktu@gmail.com>
12735
12736 * w32menu.c (push_submenu_start, push_submenu_end)
12737 (push_left_right_boundary, push_menu_pane, push_menu_item):
12738 * keyboard.c (read_key_sequence): Don't pass args with side effects
12739 to AREF, it fails when compiling with -DENABLE_CHECKING.
12740
127412008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12742
12743 * Makefile.in (${lispsource}international/charprop.el):
12744 Delete this target.
12745
12746 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12747 emacs-unicode-2.
12748
127492008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12750
12751 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12752
127532008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12754
12755 * frame.c (Qnoelisp): New symbol.
12756 (syms_of_frame): Initialize it.
12757 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12758 harmless Elisp code, from a strong `force' from x_connection_closed.
12759 * frame.h (Qnoelisp): Declare.
12760 * xterm.c (x_connection_closed): Pass `noelisp'.
12761
12762 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12763 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12764 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12765 rather than `int' for the type of `type'.
12766
127672008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12768
12769 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12770
12771 * Makefile.in (GNUC): Remove support for gcc-1.x.
12772
127732008-02-10 Richard Stallman <rms@gnu.org>
12774
12775 * lisp.h (ASET): Use AREF, not ASLOT.
12776
127772008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12778
12779 * lisp.h (ASET): Check bounds.
12780
127812008-02-10 Glenn Morris <rgm@gnu.org>
12782
12783 * buffer.c (mode-name): Doc fix.
12784
127852008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12786
12787 * Makefile.in:
12788 * emacs.c:
12789 * gmalloc.c:
12790 * keyboard.c:
12791 * lisp.h:
12792 * m/ibm370aix.h:
12793 * process.c:
12794 * regex.c:
12795 * s/hpux.h:
12796 * sysdep.c:
12797 * sysselect.h:
12798 * systty.h:
12799 * unexec.c:
12800 * w32term.c:
12801 * xsmfns.c:
12802 * xterm.c: Remove code that deals with obsolete variables.
12803
12804 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12805
12806 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12807 nothing else needs it anymore.
12808
128092008-02-09 Eli Zaretskii <eliz@gnu.org>
12810
12811 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12812 instead of unibyte_char_to_multibyte.
12813
128142008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12815
12816 * s/gnu-linux.h: Remove commented out code.
12817
12818 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12819
12820 * Makefile.in: Update what RMS says about using autoconf.
12821 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12822 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12823 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12824 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12825
128262008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12827
12828 * keymap.c (Fkey_description): Move side effect outside of macro call.
12829
12830 * xfaces.c (Finternal_make_lisp_face):
12831 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12832
12833 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12834 (syms_of_fontset): Use ASET.
12835
12836 * fns.c (concat): Move side effect outside of macro call.
12837 (hash_clear): Use ASET.
12838
128392008-02-08 Richard Stallman <rms@gnu.org>
12840
12841 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12842 If FORCE, and frame has a surrogate minibuffer for another frame,
12843 delete the other frame first.
12844
128452008-02-07 Timo Savola <timo.savola@iki.fi>
12846
12847 * xterm.c (x_detect_focus_change): Handle embed client message.
12848 (handle_one_xevent): Ditto.
12849 (handle_one_xevent): If embedded and we get a button press/release,
12850 request focus.
12851 (xembed_set_info, xembed_send_message): New functions.
12852 (x_make_frame_visible): Call xembed_set_info if embedded.
12853 (x_make_frame_invisible): Call xembed_set_info if embedded.
12854 (x_term_init): Initialize Xatom_XEMBED.
12855 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12856 (x_iconify_frame): Ditto.
12857
12858 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12859 (enum xembed_info, enum xembed_message, enum xembed_focus)
12860 (enum xembed_modifier, enum xembed_accelerator): New.
12861 (xembed_set_info, xembed_send_message): Declare.
12862 (FRAME_X_EMBEDDED_P): New.
12863
12864 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12865 gtk_plug_new.
12866
12867 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12868 window ID of a frame.
12869 (x_window): Reparent frame if embedded.
12870 (Fx_create_frame): Don't set border width if embedded.
12871
12872 * emacs.c (USAGE3): Add --parent-id.
12873 (standard_args): Ditto.
12874
128752008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12876
12877 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12878
128792008-02-07 Jim Meyering <meyering@redhat.com>
12880
12881 Use "do...while (0)", not "if (1)...else" in macro definitions.
12882 The latter provokes a warning from gcc about the empty else, when
12883 followed by ";". Also, without that trailing semicolon, it would
12884 silently swallow up any following statement.
12885 * syntax.h (SETUP_SYNTAX_TABLE)
12886 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12887 * buffer.h (DECODE_POSITION): Likewise.
12888 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12889 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12890 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12891 (FETCH_CHAR_ADVANCE): Likewise.
12892 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12893
128942008-02-07 Jim Meyering <meyering@redhat.com>
12895
12896 * lread.c [lint]: Don't include <sys/inode.h>.
12897
128982008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12899
12900 * xselect.c (x_handle_dnd_message):
12901 * xmenu.c (digest_single_submenu, xmenu_show):
12902 * xdisp.c (with_echo_area_buffer_unwind_data)
12903 (format_mode_line_unwind_data, unwind_format_mode_line)
12904 (display_menu_bar):
12905 * eval.c (Ffetch_bytecode):
12906 * doc.c (store_function_docstring):
12907 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12908 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12909 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12910
129112008-02-07 Kenichi Handa <handa@m17n.org>
12912
12913 * ftxfont.c (ftxfont_open): Don't set
12914 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12915
12916 * ftfont.c (ftfont_open): Fix previous change.
12917
129182008-02-06 Jason Rumney <jasonr@gnu.org>
12919
12920 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12921 Use cached metrics for ASCII characters.
12922 (w32font_open_internal): Don't set font's owning_frame.
12923 Cache metrics for ASCII characters.
12924
12925 * w32font.h (struct w32font_info): Add ascii_metrics.
12926 Remove owning_frame.
12927
129282008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12929
12930 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12931 to negative value.
12932
12933 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12934
12935 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12936
12937 * charset.c (syms_of_charset): Set QCtest and Qeq.
12938
129392008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12940
12941 * process.c (Fstart_process):
12942 * callproc.c (Fcall_process): Handle the case where
12943 Funhandled_file_name_directory returns nil.
12944
12945 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12946 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12947 * font.c (check_gstring): Use them and AREF to access the vector before
12948 we know it's really a gstring.
12949 (Ffont_shape_text): Fix typo.
46e722a9 12950 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12951
12952 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12953 Declare.
12954
12955 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12956
129572008-02-05 Jason Rumney <jasonr@gnu.org>
12958
12959 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12960 Set smallest_font_height and smallest_char_width in display info.
12961
129622008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12963
12964 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12965
129662008-02-05 Miles Bader <miles@gnu.org>
12967
12968 * xfaces.c (get_lface_attributes, merge_named_face)
12969 (lookup_named_face, lookup_derived_face, realize_named_face):
12970 Revert 2008-02-01 change by cyd@stupidchicken.com.
12971
129722008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12973
12974 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12975 fallback fonts.
12976 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12977
129782008-02-04 Jason Rumney <jasonr@gnu.org>
12979
12980 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12981 set full_name.
12982 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12983
129842008-02-03 Jason Rumney <jasonr@gnu.org>
12985
12986 * makefile.w32-in (OBJ1): Include font.o here.
12987 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12988
129892008-02-02 Jason Rumney <jasonr@gnu.org>
12990
12991 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12992
129932008-02-01 Jason Rumney <jasonr@gnu.org>
12994
12995 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12996
12997 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12998
129992008-02-01 Andreas Schwab <schwab@suse.de>
13000
13001 * Makefile.in (shortlisp, lisp): Update for rename of
13002 ../lisp/language/myanmar.el.
13003
130042008-02-01 Chong Yidong <cyd@stupidchicken.com>
13005
13006 * xfaces.c (get_lface_attributes): Delete function.
13007 (merge_named_face, lookup_named_face, lookup_derived_face)
13008 (realize_named_face): Call lface_from_face_name directly, and use
13009 the fact that merge_face_vectors does not alter its FROM argument.
13010
130112008-02-01 Jason Rumney <jasonr@gnu.org>
13012
13013 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13014 input in the default locale. Handle non-Unicode multibyte input.
13015
130162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13017
13018 * fontset.c (reorder_font_vector): Exclude nil elements from the
13019 font group. Don't try multiple fonts.
13020 (fontset_font): Adjust for the above change.
13021 (Finternal_char_font): Return nil if the found font doesn't
13022 contain the character ch.
13023
13024 * Makefile.in (lisp, shortlisp): Add cham.el.
13025
130262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13027
13028 * font.h (FONTP): Make it return 1 also for a font-object.
13029
13030 * .gdbinit (xfontset): New function.
13031
13032 * font.c (font_find_for_lface): Check if the character C is
13033 supported or not only for the first font.
13034
13035 * fontset.c (reorder_font_vector): Fix typo.
13036 (fontset_find_font): Don't add a font-spec specifying a script.
13037 Use 0 (not Qt) for the indication of empty font-group. Change the
13038 format of RFONT-DEF. Return Qt if no font in the font-group
13039 support the character.
13040 (fontset_font): Adjust for the above change. If no font was
13041 found the character, remember that.
13042 (face_for_char): Adjust for the change of RFONT-DEF.
13043 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13044 no font for the target.
13045 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13046
130472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13048
13049 * font.c (font_load_for_face): Handle the case that the font in
13050 face->lface is a string.
13051
130522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13053
13054 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13055
130562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13057
13058 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13059 Fix previous change. If the frame is not on a window system,
13060 signal an error.
13061
130622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13063
13064 * coding.c (decode_coding_object, encode_coding_object): Adjust
13065 marker positions after conversion.
13066
13067 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13068
130692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13070
13071 * font.c (font_find_for_lface): Fix the handling of the return
13072 value of font_has_char.
13073 (Ffont_shape_text): Fix previous change.
13074
13075 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13076 (fontset_ref_and_range): Delete it.
13077 (fontset_find_font): Call char_table_ref_and_range instead of
13078 FONTSET_REF_AND_RANGE.
13079 (make_fontset): Don't setup font groups of Latin here.
13080 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13081 (new_fontset_from_font): Make the specified font the default for
13082 all Latin characters.
13083
130842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13085
13086 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13087 is on a window system before accessing the fontset of the frame.
13088
130892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13090
13091 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13092
13093 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13094 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13095
13096 * font.c (Ffont_shape_text): If the font driver doesn't have a
13097 shaper function, make zero-width glyphs to have at least one-pixel
13098 width. Fix setting of `to' field of glyphs.
13099
131002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13101
13102 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13103 glyphs.
13104
13105 * font.h (struct font_driver): Improve docstring of member `shape'.
13106
131072008-02-01 Kenichi Handa <handa@m17n.org>
13108
13109 * composite.c (syms_of_composite): Fix docstring of
13110 auto-composition-function.
13111
13112 * font.h (LGLYPH_SIZE): New macro.
13113
13114 * font.c (Ffont_fill_gstring): Stop filling when a character not
13115 supported by the font is found.
13116 (Ffont_shape_text): When a shape callback function returns nil,
13117 try at most two more times with larger gstring.
13118 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13119
13120 * xdisp.c (handle_auto_composed_prop): Change the argument to
13121 auto-composition-function.
13122
13123 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13124 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13125 Lispy glyph and store it in the lgstring.
13126
13127 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13128
13129 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13130
131312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13132
13133 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13134
13135 * fontset.c (Vfont_encoding_charset_alist): New variable.
13136 (syms_of_fontset): DEFVAR it.
13137 (reorder_font_vector, fontset_find_font): Optimize for the case of
13138 no need of reordering.
13139 (face_for_char): Map the charset property by
13140 Vfont_encoding_charset_alist.
13141
131422008-02-01 Jason Rumney <jasonr@gnu.org>
13143
13144 * w32font.c (logfonts_match): Don't check adstyle here.
13145 (font_matches_spec): Check here against physical font instead.
13146 (add_font_entity_to_list): Avoid some substitutions.
13147
13148 * font.c (font_parse_fcname): Default weight and slant to normal.
13149 (font_score): Prefer normal fonts if weight or slant unspecified.
13150 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13151 match freetype scores.
13152
131532008-02-01 Jason Rumney <jasonr@gnu.org>
13154
13155 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13156 font, as it may have been deleted.
13157 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13158 most common hyphenless variation.
13159 (logfonts_match): Check generic family.
13160 (font_matches_spec): Don't check generic family here.
13161 (fill_in_logfont): Set generic family based on adstyle.
13162
13163 * w32font.h (w32font_get_cache): Update declaration.
13164
131652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13166
13167 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13168
13169 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13170 If none of the new drivers are available, call font_update_drivers
13171 with the old drivers.
13172
13173 * w32font.c (w32font_get_cache): Adjust the argument type.
13174
13175 * xfont.c (xfont_get_cache): Adjust the argument type.
13176
13177 * font.h (struct font_driver): Change argument type of get_cache.
13178
13179 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13180
13181 * font.c (Ffont_get): Fix arguments to Fassoc.
13182 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13183 (font_clear_cache): New function.
13184 (font_list_entities, font_matching_entity): Use font_get_cache.
13185 (font_update_drivers): Call font_clear_cache when finishing a driver.
13186
13187 * fontset.c (fontset_find_font): Fix previous change.
13188
131892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13190
13191 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13192 dpyinfo->font_table.
13193 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13194 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13195
13196 * font.c (font_at): Handle the case that the arg C is negative.
13197 Handle the unibyte case.
13198 (Ffont_at): Call font_at with the arg C -1.
13199
13200 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13201 the position here, and call font_at with the arg C -1.
13202 Don't check the range of the existing composition at the point.
13203
132042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13205
13206 * fontset.c (fontset_add): New args charset_id and family.
13207 Change caller.
13208 (load_font_get_repertory, fontset_find_font): Assume that
13209 font_spec is always a font-spec object.
13210 (Fset_fontset_font): Always store a font-spec object in a fontset.
13211
13212 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13213 instead of get_property_and_range.
13214
132152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13216
13217 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13218 (xftfont_open): Don't keep locking face.
13219 (xftfont_close): Don't unlock face.
13220 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13221
13222 * fontset.c (fontset_find_font): Don't prefer a font of
13223 supplementary charset.
13224
132252008-02-01 Kenichi Handa <handa@m17n.org>
13226
13227 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13228 script, langsys_tag to langsys, new member script.
13229 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13230 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13231 listing to the script specified in that property. Fix arg to
13232 OTF_check_features.
13233
132342008-02-01 Jason Rumney <jasonr@gnu.org>
13235
13236 * w32font.h: New file.
13237
13238 * w32font.c: Include it.
13239 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13240 (w32font_open): Set owning_frame.
13241 (w32font_text_extents): Use owning_frame.
13242 (struct font_callback_data): Add opentype_only field.
13243 (add_font_entity_to_list): Use it to filter fonts.
13244 Don't check against full name.
13245 (w32font_list_internal): New function.
13246 (w32font_list): Use it.
13247 (w32font_match_internal): New function.
13248 (w32font_match): Use it.
13249 (w32font_open_internal): New function.
13250 (w32font_open): Use it.
13251 (w32font_get_cache, w32font_close, w32font_has_char)
13252 (w32font_encode_char, w32font_text_extents, w32font_draw):
13253 Make non-static.
13254
13255 * makefile.w32-in (w32font.o): Depend on w32font.h.
13256
132572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13258
13259 * charset.c (Fdefine_charset_internal): Record a supplementary
13260 charset at the tail of Vcharset_order_list.
13261
13262 * font.c (Ffont_shape_text): Fix the return value.
13263
13264 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13265
13266 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13267
132682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13269
13270 * ftfont.c (struct OpenTypeSpec): New struct.
13271 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13272 (ftfont_get_open_type_spec): New function.
13273 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13274
13275 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13276
132772008-02-01 Jason Rumney <jasonr@gnu.org>
13278
13279 * w32font.c (add_font_entity_to_list): Compare only the beginning
13280 of full name.
13281
132822008-02-01 Kenichi Handa <handa@m17n.org>
13283
13284 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13285 Never return HANDLED_RECOMPUTE_PROPS.
13286
132872008-02-01 Kenichi Handa <handa@m17n.org>
13288
13289 * font.c (font_gstring_produce): Delete it.
13290
13291 * composite.h (COMPOSITION_METHOD):
13292 Handle COMPOSITION_WITH_GLYPH_STRING.
13293
132942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13295
13296 * xfont.c (Qx): Delete.
13297 (syms_of_xfont): Don't initialize Qx.
13298
13299 * composite.h (enum composition_method):
13300 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13301
133022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13303
13304 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13305 (choose_face_font): Accept new form of font-spec.
13306
13307 * frame.h (font_driver_list): Declare it unconditionally.
13308 (struct frame): Define members font_driver_list and font_data_list
13309 unconditionally.
13310
13311 * fontset.c: Include "font.h" unconditionally.
13312 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13313 (Fset_fontset_font): Accept a font-spec object.
13314
13315 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13316 PIXEL_SIZE part a wild card.
13317
13318 * dispextern.h (struct glyph_string): Define members clip and
13319 num_clips unconditionally.
13320 (struct face): Define members font_info and extra unconditionally.
13321
13322 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13323 ftfont_info only when HAVE_LIBOTF is defined.
13324
133252008-02-01 Andreas Schwab <schwab@suse.de>
13326
13327 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13328 and end.
13329
133302008-02-01 Jason Rumney <jasonr@gnu.org>
13331
13332 * w32font.c (w32font_driver): Add new fields.
13333
133342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13335
13336 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13337 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13338 (LIBES): Add @M17N_FLT_CFLAGS@.
13339
13340 * composite.c (compose_text): Don't treat the new style
13341 composition specially.
13342
13343 * emacs.c (main): Call syms_of_font unconditionally.
13344
13345 * font.h (FONT_ENTITY_NOT_LOADABLE)
13346 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13347 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13348 (struct font_driver): New member shape.
13349 (font_registry_charsets): Extern it.
13350 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13351 (font_otf_capability, font_drive_otf): Delete their externs.
13352
13353 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13354 (font_charset_alist, font_registry_charsets): Move from xfont.c
13355 and rename.
13356 (font_prop_validate_otf): New function.
13357 (font_property_table): Register it for QCotf.
13358 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13359 (font_drive_otf): Delete.
13360 (font_prepare_composition): New arg F. Adjust for the change of
13361 lispy gstring.
13362 (font_find_for_lface): New arg C.
13363 (font_load_for_face): Adjust for the change of font_find_for_lface.
13364 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13365 lispy gstring.
13366 (Ffont_shape_text): New function.
13367 (Fopen_font): If the font size is not given, use 12-pixel.
13368 (Ffont_at): New arg STRING.
13369 (syms_of_font): Initalize font_charset_alist.
13370 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13371 conditionally.
13372
13373 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13374 fonts of the same font-spec. Change the format of RFONT-DEF.
13375 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13376 Adjust for the change of RFONT-DEF.
13377 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13378
13379 * ftfont.h: New file.
13380
13381 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13382 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13383 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13384 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13385 font_otf_capability and font_drive_otf, set ftfont_shape.
13386 (ftfont_list): Adjust for the change of :otf property value.
13387 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13388 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13389 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13390 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13391 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13392 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13393
13394 * w32term.c (x_draw_composite_glyph_string_foreground):
13395 Adjust for the change of lispy gstring.
13396
13397 * xdisp.c (handle_composition_prop): Adjust for the change of
13398 lispy gstring. Call a function for auto-composition with the
13399 third arg it->window.
13400 (fill_composite_glyph_string): Adjust for the change of lispy string.
13401 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13402
13403 * xfaces.c (set_font_frame_param): Adjust for the change of
13404 font_find_for_lface.
13405
13406 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13407 (xfont_registry_charsets): Likewise. Change caller.
13408 (syms_of_xfont): Don't handle x_font_charset_alist.
13409
13410 * xftfont.c: Include "ftfont.h".
13411 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13412 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13413 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13414 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13415 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13416 Set xftfont_driver.shape to xftfont_shape.
13417
13418 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13419 the change of lispy gstring.
13420
134212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13422
13423 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13424
134252008-02-01 Jason Rumney <jasonr@gnu.org>
13426
13427 * w32font.c (w32font_draw): Fill background manually.
13428
134292008-02-01 Jason Rumney <jasonr@gnu.org>
13430
13431 * font.c (Qfontp): Remove unused symbol.
13432 (QCantialias): New symbol.
13433 (syms_of_font): Define it.
13434 (font_property_table): Set a validator for QCantialias.
13435
13436 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13437 Define if not already.
13438 (QCfamily): Share with xfaces.c.
13439 (Qstandard, Qsubpixel, Qnatural): New symbols.
13440 (syms_of_w32font): Define them. Don't define QCfamily here.
13441 (w32_antialias_type, lispy_antialias_type): New functions.
13442 (w32_enumfont_pattern_entity): New arg requested_font.
13443 Set antialias parameter if non-default was requested.
13444 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13445
134462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13447
13448 * lread.c (read1): Undo the previous change.
13449
134502008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13451
13452 * frame.c (Fdelete_frame): Call font_update_drivers only when
13453 USE_FONT_BACKEND is defined.
13454
134552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13456
13457 * font.h (struct font_bitmap): New member bits_per_pixel.
13458 (struct font_driver): New members start_for_frame and end_for_frame.
13459 (struct font_data_list): New struct.
13460 (font_put_frame_data, font_get_frame_data): Extern them.
13461
13462 * frame.h (struct frame): New member font_data_list.
13463
13464 * font.c (font_update_drivers): Call driver->start_for_frame and
13465 driver->end_for_frame at proper timings.
13466 (font_put_frame_data, font_get_frame_data): New functions.
13467 (Ffont_spec): Add usage in the docstring.
13468
13469 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13470 (Fdelete_frame): Call font_update_drivers.
13471
13472 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13473 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13474 (xftfont_get_xft_draw): New function.
13475 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13476 (xftfont_end_for_frame): New function.
13477 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13478
13479 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13480 Change argument. Cache GCs in the per-frame data.
13481 (struct ftxfont_frame_data): New struct.
13482 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13483 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13484 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13485 (ftxfont_end_for_frame): New function.
13486 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13487
13488 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13489
134902008-02-01 Kenichi Handa <handa@m17n.org>
13491
13492 * xselect.c (Vselection_coding_system)
13493 (Vnext_selection_coding_system): Delete them.
13494 (syms_of_xselect): Don't declare selection-coding-system and
13495 next-selection-coding-system. They are declared in select.el.
13496
134972008-02-01 Jason Rumney <jasonr@gnu.org>
13498
13499 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13500
13501 * w32fns.c: Include imm.h.
13502 (get_composition_string_fn, get_ime_context_fn): New optional
13503 system functions.
13504 (globals_of_w32fns): Load them from imm32.dll.
13505 (ignore_ime_char): New flag.
13506 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13507 WM_IME_ENDCOMPOSITION messages.
13508
13509 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13510 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13511
135122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13513
13514 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13515 (READCHAR_REPORT_MULTIBYTE): New macro.
13516 (readchar): New 2nd arg MULTIBYTE.
13517 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13518 Make symbol's name multibyte according to the multibyteness of the
13519 source.
13520
135212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13522
13523 * xfaces.c (face_for_overlay_string): Call lookup_face with
13524 correct arguments (fix of synching with the trunk).
13525
135262008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13529 (font_prop_validate_non_neg, font_prop_validate_spacing):
13530 Delete argument prop_index.
13531 (font_property_table): Change arguments to validater. Change Callers.
13532 (font_lispy_object): Delete.
13533 (font_at): Use font_find_object instead fo font_lispy_object.
13534
135352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13536
13537 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13538 and file names.
13539
135402008-02-01 Jason Rumney <jasonr@gnu.org>
13541
13542 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13543 (font_matches_spec): Remove debug output.
13544 (add_font_entity_to_list): Avoid using substituted fonts.
13545
135462008-02-01 Jason Rumney <jasonr@gnu.org>
13547
13548 * doc.c (Fsnarf_documentation):
13549 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13550
135512008-02-01 Miles Bader <miles@gnu.org>
13552
13553 * dispextern.h (struct glyph_row): Only define "clip" field if
13554 HAVE_WINDOW_SYSTEM is defined.
13555
135562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13557
13558 Fix up multi-tty merge.
13559
13560 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13561 and indentation.
13562
13563 * xfaces.c (free_realized_face, clear_face_gcs):
13564 Include font_done_for_face in the input_blocked section, just in case.
13565
13566 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13567 (get_char_face_and_encoding): Undo last change and remove the *other*
13568 duplicate definition (i.e. keep the one that's better scoped and that
13569 includes code for the font-backend).
13570
13571 * terminal.c (create_terminal): Default keyboard_coding to
13572 `no-conversion' and terminal_coding to `undecided'.
13573
13574 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13575
13576 * fontset.c (free_realized_fontsets): Check that the table entry does
13577 contain a fontset before trying to compare it to `base'.
13578
13579 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13580 syms_of_charset, and syms_of_coding earlier because init_window_once
13581 now needs Vcoding_system_hash_table to be setup.
13582
13583 * coding.h (default_buffer_file_coding): Remove.
13584
13585 * coding.c (default_buffer_file_coding): Remove.
13586 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13587 than ->symbol, and use the terminal-local coding system.
13588 (syms_of_coding): Don't setup the coding-systems that are not
13589 terminal-local.
13590 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13591
13592 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13593 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13594
13595 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13596 in chartab.c and were re-added here by mistake.
13597 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13598
13599 * doc.c (Fsnarf_documentation):
13600 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13601 src to etc.
13602
13603 * ChangeLog.10: Add mistakenly removed entry.
13604
136052008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13606
13607 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13608
136092008-02-01 Miles Bader <miles@gnu.org>
13610
13611 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13612 Add extra args to FACE_FOR_CHAR.
13613
136142008-02-01 Kenichi Handa <handa@m17n.org>
13615
13616 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13617 in sequence.
13618
13619 * chartab.c (map_sub_char_table, map_char_table): If the range
13620 contains just one character, call the function with that character
13621 even if the depth is not 3.
13622
136232008-02-01 Jason Rumney <jasonr@gnu.org>
13624
13625 * w32font.c (w32font_text_extents): Calculate metrics for the
13626 whole string.
13627
136282008-02-01 Jason Rumney <jasonr@gnu.org>
13629
13630 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13631
136322008-02-01 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32term.c (x_set_glyph_string_clipping): Use
13635 get_glyph_string_clip_rects.
13636 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13637 Adjust for the change of struct glyph_string.
13638
13639 * w32font.c (w32font_draw): Do clipping here.
13640
136412008-02-01 Kenichi Handa <handa@m17n.org>
13642
13643 * xftfont.c (xftfont_draw): Adjust for the change of struct
13644 glyph_string.
13645
13646 * xterm.c (x_set_glyph_string_clipping): Use
13647 get_glyph_string_clip_rects.
13648 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13649 Adjust for the change of struct glyph_string.
13650
13651 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13652 the resulting clip(s}.
13653 (expose_overlaps): Add arg r. Change callers. Set it to
13654 row->clip temporarily.
13655 (expose_window): Redraw rows overlapping the exposed area.
13656
13657 * dispextern.h (struct glyph_row): New member clip.
13658 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13659 clip_height, new member clip, and num_clips.
13660
136612008-02-01 Kenichi Handa <handa@m17n.org>
13662
13663 * data.c (Fchar_or_string_p): Fix docstring.
13664
136652008-02-01 Kenichi Handa <handa@m17n.org>
13666
13667 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13668 create a temporary XftDraw object.
13669
136702008-02-01 Kenichi Handa <handa@m17n.org>
13671
13672 * font.c (Ffontp): Fix docstring.
13673
13674 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13675 strong evidence of ISO-2022.
13676
136772008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13680 SYNTAX_ENTRY_FOLLOW_PARENT.
13681
136822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13683
13684 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13685 its type.
13686 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13687 Update to the new type of weak_hash_tables and next_weak.
13688
13689 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13690 a plain C pointer to Lisp_Hash_Table.
13691
13692 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13693 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13694 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13695 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13696 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13697 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13698 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13699 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13700 (GC_EQ): Remove since they've been identical to their non-GC_
13701 alter-egos ever since the markbit was eradicated.
13702
13703 * alloc.c:
13704 * buffer.c:
13705 * buffer.h:
13706 * data.c:
13707 * fileio.c:
13708 * filelock.c:
13709 * fns.c:
13710 * frame.h:
13711 * lisp.h:
13712 * macterm.c:
13713 * print.c:
13714 * process.c:
13715 * w32fns.c:
13716 * w32menu.c:
13717 * w32term.c:
13718 * xfns.c:
13719 * xmenu.c:
13720 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13721
137222008-02-01 Kenichi Handa <handa@m17n.org>
13723
13724 * chartab.c (map_sub_char_table): Make it work for the top-level
13725 char-table. Fix handling of parent char-table.
13726 (map_char_table): Adjust for the above change.
13727
137282008-02-01 Jason Rumney <jasonr@gnu.org>
13729
13730 * w32font.c (Qgdi): Rename from Qw32.
13731
137322008-02-01 Jason Rumney <jasonr@gnu.org>
13733
13734 * w32bdf.c (get_quoted_string): Make function static.
13735
137362008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13739 bigger ascent and descent than those of the font, use them as
13740 font's ascent and descent.
13741
137422008-02-01 Kenichi Handa <handa@m17n.org>
13743
13744 * Makefile.in (${lispsource}international/charprop.el): Move this
13745 target within "#ifdef HAVE_UNIDATA" and "#endif".
13746
137472008-02-01 Kenichi Handa <handa@m17n.org>
13748
13749 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13750 (shortlisp): Add ../lisp/language/tai-viet.el.
13751
137522008-02-01 Ulrich Mueller <ulm@gentoo.org>
13753
13754 * Makefile.in (${lispsource}international/charprop.el): Depend on
13755 temacs${EXEEXT}.
13756
137572008-02-01 Jason Rumney <jasonr@gnu.org>
13758
13759 * w32font.c (w32font_close): Delete the GDI font object.
13760
13761 * w32menu.c: Include character.h.
13762
13763 * w32proc.c: Likewise.
13764
13765 * w32select.c: Likewise.
13766
13767 * makefile.w32-in (w32proc.o): Depend on character.h.
13768
137692008-02-01 Jason Rumney <jasonr@gnu.org>
13770
13771 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13772
13773 * w32menu.c (syms_of_w32menu): Likewise.
13774
13775 * w32proc.c (syms_of_ntproc): Likewise.
13776
13777 * w32select.c (syms_of_w32select): Likewise.
13778
13779 * w32term.c (syms_of_w32term): Likewise.
13780
137812008-02-01 Jason Rumney <jasonr@gnu.org>
13782
13783 * w32font.c (w32font_draw): Delete brush after using it.
13784
137852008-02-01 Jason Rumney <jasonr@gnu.org>
13786
13787 * w32font.c (w32font_open): Don't set font_idx.
13788 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13789 to font settings.
13790 (w32font_draw): Fill background explicitly.
13791
137922008-02-01 Jason Rumney <jasonr@gnu.org>
13793
13794 * w32term.c (w32_initialize): Don't call w32font_initialize.
13795
13796 * w32font.c (w32font_info): Remove subranges.
13797 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13798 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13799 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13800 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13801 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13802 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13803 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13804 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13805 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13806 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13807 New symbols.
13808 (font_callback_data): New struct.
13809 (w32font_list, w32font_match): Use it.
13810 (w32font_open): Don't populate subranges.
13811 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13812 (w32font_encode_char): Always return unicode code-point as-is.
13813 (w32font_text_extents): Supply a transformation matrix to
13814 GetGlyphOutline. Never look up by glyph index. Avoid looping
13815 twice. Use unicode version of GetTexExtentPoint32 instead of
13816 glyph index version.
13817 (set_fonts_frame): Remove.
13818 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13819 set frame parameter. Use backward compatible fake foundries.
13820 Save generic family in extra slot under QCfamily. Make width slot
13821 constant. Save QCspacing value. Save list of scripts instead of
13822 binary subranges.
13823 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13824 (add_font_entity_to_list): Use font_callback_data struct. Filter
13825 unwanted fonts.
13826 (add_one_font_entity_to_list): Use font_callback_data struct.
13827 (w32_registry): Default to iso10646_1.
13828 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13829 string font registries. Don't fill in font name if it is a generic
13830 family name, fill family instead. Use spacing, family and script
13831 extra info to fill pitch, family and charset fields.
13832 (list_all_matching_fonts): Use font_callback_data struct.
13833 (unicode_range_for_char): Remove.
13834 (font_supported_scripts): New function.
13835 (w32font_initialize): Remove.
13836 (syms_of_w32font): Update which symbols are defined.
13837
138382008-02-01 Jason Rumney <jasonr@gnu.org>
13839
13840 * font.c (font_pixel_size): Reverse assq_no_quit args.
13841
13842 * w32term.h (FONT_WIDTH): Report max width, not average.
13843 (FONT_MAX_WIDTH): Remove.
13844 (FONT_AVG_WIDTH): New macro.
13845
13846 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13847 redefinition of FONT_WIDTH.
13848
13849 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13850 (w32_cache_char_metrics): Use FONT_WIDTH.
13851
13852 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13853
138542008-02-01 Jason Rumney <jasonr@gnu.org>
13855
13856 * w32font.c (w32font_open): Make lfHeight negative.
13857
13858 * w32fns.c (x_default_font_parameter): Use new style font name.
13859 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13860
138612008-02-01 Jason Rumney <jasonr@gnu.org>
13862
13863 * w32font.c (QCsubranges): New symbol.
13864 (w32font_open, w32font_has_char): Get subranges from subproperty
13865 of extra.
13866 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13867 (syms_of_w32font): Define :subranges symbol.
13868
13869 * font.c (font_put_extra): Expose externally.
13870
13871 * font.h (font_put_extra): Move declaration from font.c.
13872
13873 * font.c (Ffont_get): Use font driver to determine otf capability.
13874 (adjust_anchor): Check if driver defines anchor_point before using.
13875
13876 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13877 (w32font_draw): Use options.
13878 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13879 Fix detection of truetype fonts.
13880 (registry_to_w32_charset): Handle charsets other than iso8859-1
13881 expressed as lisp symbols.
13882 (w32_registry): Express charset as lisp symbol.
13883 (fill_in_logfont): Reverse pixel and point height logic.
13884 Don't set width here. Set quality to default.
13885
13886 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13887 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13888
13889 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13890 Remove redundant loop and allocation.
13891
13892 * makefile.w32-in (font.o, w32font.o): New objects.
13893 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13894 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13895
13896 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13897 STORE_XCHARB a valid l-value.
13898
13899 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13900 calculations for non-Truetype fonts.
13901 (x_draw_glyph_string): Sync with xterm.c.
13902 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13903 Remove redundant code.
13904 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13905
13906 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13907 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13908
13909 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13910 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13911
13912 * w32font.c: New file for w32 font backend.
13913
139142008-02-01 Kenichi Handa <handa@m17n.org>
13915
13916 * term.c: Don't include "buffer.h" twice.
13917
139182008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * character.c (Funibyte_string): New function.
13921 (syms_of_character): Defsubr it.
13922
139232008-02-01 Jason Rumney <jasonr@gnu.org>
13924
13925 * w32term.c [USE_FONT_BACKEND]:
13926 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13927 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13928 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13929 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13930 (x_free_frame_resources): Sync with xterm.c.
13931
139322008-02-01 Andreas Schwab <schwab@suse.de>
13933
13934 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13935 char-table size.
13936
139372008-02-01 Kenichi Handa <handa@m17n.org>
13938
13939 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13944 font_otf_gpos, add font_drive_otf.
13945
13946 * fontset.c (fontset_find_font): Pay attention to font size
13947 specified for a font.
13948 (reorder_font_vector): Check contents of font_def.
13949
13950 * font.c (struct otf_list): Delete it.
13951 (otf_list): Make it a lisp variable.
13952 (otf_open): Use lispy otf_list.
13953 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13954 (check_otf_features): New function.
13955 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13956 New functions.
13957 (font_drive_otf): New function merging font_otf_gsub and
13958 font_otf_gpos.
13959 (font_open_for_lface): New arg spec. Change argument order.
13960 (font_load_for_face): Adjust for the change of font_open_for_lface.
13961 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13962 Ffont_otf_gpos.
13963 (syms_of_font): Staticpro otf_list. Delete defsubr of
13964 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13965
13966 * xfaces.c (set_font_frame_param): Adjust for the change of
13967 font_open_for_lface.
13968
13969 * font.h (font_open_for_lface): Adjust prototype.
13970 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13971 member otf_drive.
13972 (font_otf_gsub, font_otf_gpos): Delete externs.
13973 (font_drive_otf): Extern it.
13974
139752008-02-01 Kenichi Handa <handa@m17n.org>
13976
13977 * font.c (font_at): If the window W is not on a window system,
13978 return Qnil.
13979
13980 * coding.c (produce_chars, encode_coding): Don't call
13981 insert_from_gap if no characters to produce.
13982
139832008-02-01 Kenichi Handa <handa@m17n.org>
13984
13985 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13986 Fclear_face_cache.
13987
13988 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13989
139902008-02-01 Miles Bader <miles@gnu.org>
13991
13992 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13993 Parse "--disable-font-backend" option.
13994 (standard_args): Add "--disable-font-backend" option.
13995
139962008-02-01 Kenichi Handa <handa@m17n.org>
13997
13998 * fontset.c (fontset_find_font): New function.
13999 (fontset_font): Use fontset_find_font.
14000 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14001 Register the specified font for all Latin characters.
14002 (new_fontset_from_font): Register the specified font for all Latin
14003 characters.
14004 (dump_fontset): For a realized fontset, include the base fontset
14005 name in the returned vector.
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * character.h (CHAR_STRING): Cast C to unsigned on calling
14010 char_string.
14011
14012 * character.c (char_string): Type of arg C changed to unsigned.
14013 Signal an error if C is an invalid character code.
14014
14015 * editfns.c (general_insert_function, Fchar_to_string):
14016 Use CHARACTERP, not INTEGERP.
14017
140182008-02-01 Kenichi Handa <handa@m17n.org>
14019
14020 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14021 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14022
14023 * regex.c (analyse_first): Fix for multibyte characters in "case
14024 charset:" and "case categoryspec:".
14025
140262008-02-01 Andreas Schwab <schwab@suse.de>
14027
14028 * Makefile.in (LIBES): Move standard libraries to the end.
14029
140302008-02-01 Kenichi Handa <handa@m17n.org>
14031
14032 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14033 nonzero, don't shrink the buffer nextb.
14034
14035 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14036
14037 * coding.c (coding_alloc_by_making_gap): New arg offset.
14038 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14039 offset.
14040 (decode_coding_iso_2022): Update coding->safe_charsets.
14041 (decode_coding_gap): Temporarily set
14042 current_buffer->text->inhibit_shrinking to 1.
14043
140442008-02-01 Kenichi Handa <handa@m17n.org>
14045
14046 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14047 indexing into elements of s->cmp and s->char2b.
14048
140492008-02-01 Juanma Barranquero <lekktu@gmail.com>
14050
14051 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14052
140532008-02-01 Kenichi Handa <handa@m17n.org>
14054
14055 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14056 target_multibyte instead of multibyte.
14057 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14058 (bcmp_translate): Change the argument name from multibyte to
14059 target_multibyte.
14060
140612008-02-01 Kenichi Handa <handa@m17n.org>
14062
14063 These changes are to compile a regexp into a pattern that can be
14064 used both for multibyte and unibyte targets.
14065
14066 * Makefile.in (search.o): Depend on charset.h.
14067
14068 * character.c (multibyte_char_to_unibyte_safe): New function.
14069
14070 * search.c: Include "charset.h".
14071 (compile_pattern_1): Delete argument multibyte. Don't set
14072 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14073 (compile_pattern): Don't compare cp->buf.target_multibyte.
14074 Compare cp->buf.charset_unibyte.
14075 (compile_pattern): Set cp->buf.target_multibyte.
14076
14077 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14078
14079 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14080
14081 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14082 multibyte. Change callers.
14083 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14084 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14085 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14086 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14087 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14088 (regex_compile): Make the compiled pattern usable both for
14089 multibyte and unibyte targets.
14090 (analyse_first): Make the fastmap usable both for multibyte and
14091 unibyte targets.
14092 (TRANSLATE_VIA_MULTIBYTE): Delete.
14093 (re_match_2_internal): Pay attention to the case that the
14094 multibyteness of bufp and target may be different.
14095
140962008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14099 empty box occupy at least one column width.
14100
141012008-02-01 Miles Bader <miles@gnu.org>
14102
14103 * Makefile.in: Remove redundant HAVE_XFT clause.
14104
141052008-02-01 Kenichi Handa <handa@m17n.org>
14106
14107 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14108
141092008-02-01 Kenichi Handa <handa@m17n.org>
14110
14111 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14112 being nil.
14113
141142008-02-01 Kenichi Handa <handa@m17n.org>
14115
14116 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * search.c (simple_search): Fix previous change.
14125
141262008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * xftfont.c (ftfont_font_format): Extern declaration.
14129
14130 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14131
14132 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14133 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14134
14135 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14136 (ftfont_font_format): Fix previous change.
14137
14138 * font.h (Ffont_xlfd_name): EXFUN it.
14139
14140 * font.c (font_parse_xlfd): Fix the array size of `f'.
14141 (register_font_driver): Use EQ to compare driver->type.
14142
14143 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14144 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14145 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14146
141472008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14150 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14151
141522008-02-01 Kenichi Handa <handa@m17n.org>
14153
14154 * xfont.c (xfont_open): Set font->format.
14155
14156 * xftfont.c (xftfont_open): Set font->format.
14157
14158 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14159 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14160 (ftfont_open): Set font->format.
14161 (ftfont_font_format): New function.
14162
14163 * font.h (struct font): New member format.
14164
14165 * font.c (Qopentype): New variable.
14166 (syms_of_font): Defsym it.
14167 (Fquery_font): Change the format of the last element of the return
14168 value.
14169
141702008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14173 last resort.
14174
141752008-02-01 Kenichi Handa <handa@m17n.org>
14176
14177 * coding.c (detect_coding_charset): Fix detection of multi-byte
14178 charset.
14179
141802008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14181
14182 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * xdisp.c (get_next_display_element): Set it->face_id for the
14187 first component of a composition.
14188 (x_produce_glyphs): Check if the font is changed or not for composition.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * fontset.c (Qlatin): New variable.
14193 (syms_of_fontset): Define it as a lisp symbol.
14194 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14195
141962008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * font.c (font_unparse_fcname): Pay attention to the case that
14199 some of font property is a null string.
14200
142012008-02-01 Kenichi Handa <handa@m17n.org>
14202
14203 * term.c: Include "composite.h".
14204 (encode_terminal_code): Output all components of composition.
14205 Check the size of encode_terminal_src.
14206 (produce_glyphs): For composition, call produce_composite_glyph.
14207 (append_composite_glyph, produce_composite_glyph): New functions.
14208
14209 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14210 is not found, get font_info from the current ascii face.
14211
142122008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14215 buffer-file-name to Qnil before calling insert_from_buffer.
14216
14217 * font.c (font_unparse_fcname): Pay attention to the case that
14218 foundry is a null string.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14223
14224 * font.c (Qunicode_sip): New variable.
14225 (syms_of_font): Declare it as a Lisp symbol.
14226
14227 * font.h (Qunicode_sip): Extern it.
14228
142292008-02-01 Kenichi Handa <handa@m17n.org>
14230
14231 * composite.c (get_composition_id): Pay attention to TAB component.
14232
14233 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14234 TAB. Adjust for the change of s->char2b which always points to
14235 the first element of allocated memory.
14236
14237 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14238
14239 * xdisp.c (handle_composition_prop): Set it->c to the first
14240 non-TAB component.
14241 (fill_composite_glyph_string): Change argument.
14242 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14243 (x_produce_glyphs): Fix handling of left/right padding.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * coding.c (detect_coding_system): Fix for handling off
14248 inhibit_iso_escape_detection. Fix for the case that no coding
14249 system is defined for a specific coding category.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * font.c (font_matching_entity): Delete unused local var.
14254
14255 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14256 opening a font.
14257
14258 * fileio.c (Finsert_file_contents): On recovering a file, assume
14259 Unix-like eol.
14260 (choose_write_coding_system): On auto-saving a file, force
14261 Unix-like eol.
14262
14263 * coding.c (setup_coding_system): Fix setting of
14264 coding->common_flags based on eol_type.
14265 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14266 inherit from it.
14267
142682008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * alloc.c (NSTATICS): Increas to 0x600.
14271
142722008-02-01 Kenichi Handa <handa@m17n.org>
14273
14274 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14275 (ftfont_list): Don't check :name property.
14276 (ftfont_match): New function.
14277 (ftfont_pattern_entity): If the pattern doesn't contain
14278 FC_SPACING, don't assume FC_MONO.
14279
14280 * font.h (struct font_driver): New member `match'.
14281 (font_update_drivers): Adjust prototype.
14282
14283 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14284 property of FONT.
14285 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14286 them unconditionally.
14287 (font_matching_entity): New function.
14288 (font_open_by_name): Try font_matching_entity if exact match is
14289 not found.
14290 (font_update_drivers): Delete the arg FONT. Return a list of
14291 actually used backends. Don't free faces, font caches here.
14292 Don't store data in frame parameters. Don't call x_set_font.
14293 (Ffont_spec): Store :name property as is.
14294 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14295 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14296 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14297 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14298 Call font->driver->otf_gsub instead of font_otf_gsub.
14299
14300 * frame.c (x_set_font_backend): Do more works that were done in
14301 font_update_drivers before.
14302
14303 * xfont.c (xfont_match): New function.
14304 (xfont_driver): Set xfont_driver.match to xfont_match.
14305 (xfont_draw): Set font in GC if necessary.
14306
14307 * ftxfont.c (ftxfont_match): New function.
14308 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14309
14310 * xftfont.c (xftfont_match): New function.
14311 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14312
143132008-02-01 Kenichi Handa <handa@m17n.org>
14314
14315 * font.h (struct font): New member scalable.
14316 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14317 (font_otf_gsub): Adjust prototype.
14318
14319 * font.c (font_otf_capability): Fix handling of the default langsys.
14320 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14321 Check the contents of SPEC.
14322 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14323 (check_gstring): New function.
14324 (REPLACEMENT_CHARACTER): New macro.
14325 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14326 glyph codes of GSTRING.
14327 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14328 (font_prepare_composition): Set cmp->glyph_len.
14329 (font_open_entity): Set font->scalable.
14330 (Ffont_get): Handle :otf property.
14331 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14332 functions.
14333 (Fquery_font): Use font->font.full_name.
14334 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14335 Sfont_otf_alternates.
14336
14337 * ftfont.c (ftfont_open): Set font->font.full_name and
14338 font->font.name properly. Fix calculation of font->font.height
14339 and font->min_width.
14340
14341 * ftxfont.c (ftxfont_create_gcs): New function.
14342 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14343 (ftxfont_draw_backgrond): Fix filling region.
14344 (ftxfont_default_fid): New function.
14345 (ftxfont_open): Set xfont->fid to the return value of
14346 ftxfont_default_fid.
14347 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14348 (ftxfont_done_face): Free only GCs that are created by
14349 ftxfont_create_gcs.
14350 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14351
14352 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14353 Clip to src->width, etc (not src->clip_XXX).
14354
14355 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14356 FontBackend frame parameter.
14357
143582008-02-01 Kenichi Handa <handa@m17n.org>
14359
14360 * font.h (struct font_driver_list): New member `on'.
14361 (Fclear_font_cache): EXFUN it.
14362 (font_update_drivers): Extern it.
14363
14364 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14365 (font_list_entities): Check driver_list->on.
14366 (register_font_driver): Initalize `on' member to 0.
14367 (font_update_drivers): New function.
14368 (Fclear_font_cache): Check driver_list->on.
14369
14370 * frame.h (Qfont_backend): Extern it.
14371 (x_set_font_backend): Extern it.
14372
14373 * frame.c (Qfont_backend): New variable.
14374 (frame_parms): New element for font-backend.
14375 (x_set_font_backend): New function.
14376
14377 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14378 FontBackend frame parameter.
14379 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14380 x_set_font_backend.
14381
14382 * xfont.c (xfont_list): Don't try listing by :name property if the
14383 name is not for XLFD.
14384
143852008-02-01 Kenichi Handa <handa@m17n.org>
14386
14387 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14388 (LGLYPH_SET_TO): New macros.
14389 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14390 element of G is vector or not.
14391 (font_at): Extern it.
14392
14393 * font.c: Include window.h.
14394 (font_lispy_object): New function.
14395 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14396 end of valid glyph.
14397 (font_close_object): Fix getting (struct font *).
14398 (font_at): New function.
14399 (Ffont_get): If FONT is a font-object, get entity from it.
14400 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14401 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14402 range check.
14403 (Ffont_at): New function.
14404 (syms_of_font): Defsubr Sfont_at.
14405
14406 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14407 before the entry for Qcomposition.
14408 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14409 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14410 the font in gstring.
14411 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14412 LGLYPH_FORM (g) to detect the end of valid glyph.
14413 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14414 we are composing with gstring.
14415
14416 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14417 Check if adjustment is vector or not.
14418
14419 * Makefile.in (font.o): Make it depends on window.h.
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14424 adjustment is vector or not.
14425
144262008-02-01 Miles Bader <miles@gnu.org>
14427
14428 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14429
144302008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14433 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14434 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14435
14436 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14437 (DEVICE_DELTA): Fix typo.
14438 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14439 LGLYPH format.
14440
14441 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14442 the change of LGLYPH format.
14443
144442008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * ftfont.c (ftfont_list): Fix typo.
14447 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14448
144492008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14450
14451 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14452
14453 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14454 xftface_info is non-NULL.
14455
144562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14457
14458 * ftfont.c (ftfont_list): Move misplaced #endif.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * ftfont.c (ftfont_list): Pay attention to the case that
14463 FC_CAPABILITY is not defined.
14464
144652008-02-01 Kenichi Handa <handa@m17n.org>
14466
14467 * xftfont.c (xftfont_open): Set charset related members to -1.
14468
14469 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14470 QCname.
14471 (ftfont_open): Set charset related members to -1.
14472
14473 * fontset.c (Votf_script_alist): New variable.
14474 (syms_of_fontset): Initialize it.
14475 (fontset_font): Delete unused variable.
14476
14477 * fontset.h (Votf_script_alist): Extern it.
14478
14479 * font.c (font_find_for_lface): Optimize code.
14480
14481 * font.h (font_close_object, font_merge_old_spec): Extern them.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14486 (syms_of_font): Initialize them.
14487 (font_pixel_size): Allow float value in dpi.
14488 (font_prop_validate_type): Delete.
14489 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14490 Change caller.
14491 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14492 (font_prop_validate_extra): Delete.
14493 (font_prop_validate_spacing): New function.
14494 (font_property_table): Add elements for all known properties.
14495 (get_font_prop_index): Rename from check_font_prop_name. New
14496 argument FROM. Change caller.
14497 (font_prop_validate): Validate all known properties.
14498 (font_put_extra): Delete argument force. Change caller.
14499 (font_expand_wildcards): Make it static. Fix the way of shrinking
14500 the possible range.
14501 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14502 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14503 Change caller.
14504 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14505 (font_parse_fcname): Delete argument merge. Fix parsing of point
14506 size. Don't validate properties values here. Change caller.
14507 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14508 (font_open_by_name): Delete unused variable.
14509 (Ffont_spec): Likewise. Validate property values.
14510 (Ffont_match_p): New function.
14511
14512 * font.h (QCscalable): Extern it.
14513 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14514
14515 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14516
14517 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14518 (xfont_list_pattern): New function.
14519 (xfont_list): Use xfont_list_pattern.
14520
145212008-02-01 Kenichi Handa <handa@m17n.org>
14522
14523 * font.h (Flist_fonts): EXFUN it.
14524
145252008-02-01 Jason Rumney <jasonr@gnu.org>
14526
14527 * w32term.c (w32_initialize): Add back smoothing_type and
14528 smoothing_enabled definitions.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14533 s->face->font on determining underline position.
14534
145352008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14538 (font_has_char): Accept font-object too.
14539 (font_find_for_lface): Try at first with a size specified in face.
14540
145412008-02-01 Kenichi Handa <handa@m17n.org>
14542
14543 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14544 font_open_by_name.
14545
145462008-02-01 Kenichi Handa <handa@m17n.org>
14547
14548 * font.h (QCspacing, QCdpi): Extern them.
14549 (enum font_spacing): New enum.
14550 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14551
14552 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14553 (QCspacing, QCdpi): New variables.
14554 (syms_of_font): Initialize them.
14555 (font_pixel_size): New function.
14556 (font_put_extra): New function.
14557 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14558 in FONT_EXTRA.
14559 (font_parse_fcname): Handle enumerated values (e.g. bold).
14560 Fix handling font size. Add QCname property that contains only
14561 unknown properties.
14562 (font_score): Change argument. Change caller. Pay attention to
14563 FONT_PIXEL_SIZE_QUANTUM.
14564 (font_sort_entites, font_list_entities, font_find_for_lface)
14565 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14566 (Ffont_spec): Add QCname property that contains only unknown properties.
14567
14568 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14569 include weight in listing pattern, instead check weight of each
14570 listed font. Don't include scalable in pattern. Pay attention to
14571 FONT_PIXEL_SIZE_QUANTUM.
14572
145732008-02-01 Kenichi Handa <handa@m17n.org>
14574
14575 * font.c (font_parse_fcname): Fix parsing of point-size.
14576 (font_unparse_fcname): Produce symbolic names for style properties.
14577 (font_list_entities): Handle float size correctly.
14578 (font_open_by_name): Prefer `normal' property values if the name
14579 doesn't specify them.
14580
14581 * fontset.c (Finternal_char_font): Use font_get_name, not
14582 Ffont_xlfd_name.
14583
14584 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14585 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14586 pattern. Don't force scalable.
14587
14588 * xftfont.c (xftfont_open): For generating a name, start from
14589 96-byte buffer.
14590
145912008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14592
14593 * frame.h (x_new_fontset2): Fix prototype.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * font.h (struct font_driver): Delete member parse_name.
14598 (font_match_p, font_get_spec, font_parse_fcname)
14599 (font_unparse_fcname): Extern them.
14600 (font_get_name): Adjust prototype.
14601
14602 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14603 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14604 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14605 unnecessary checks for weight, slant, and swidth.
14606 (font_parse_fcname): New function.
14607 (font_unparse_fcname): New function.
14608 (font_parse_name): New function.
14609 (font_match_p): New function.
14610 (font_get_name): Change return value to Lisp string.
14611 (font_get_spec): New function.
14612 (Qunspecified, Qignore_defface): Don't extern them.
14613 (font_find_for_lface): Assume that LFACE is fully specified.
14614 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14615 object, use it for FACE.
14616 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14617 driver->parse_name.
14618 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14619
14620 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14621 prototype.
14622
14623 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14624 argument F. Don't call Fnew_fontset. Instead, directly call
14625 make_fontset.
14626
14627 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14628
14629 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14630 of x_new_fontset2.
14631
14632 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14633 (Qsans__serif): New variables.
14634 (ftfont_generic_family_list): New variable.
14635 (syms_of_ftfont): Initialize the above variables.
14636 (ftfont_pattern_entity): Delete argument NAME.
14637 (ftfont_list_generic_family): New function.
14638 (ftfont_parse_name): Delete this function.
14639 (ftfont_list): Try generic family only when FcFontList found no font.
14640 (ftfont_list_family): Fix args to FcObjectSetBuild.
14641
14642 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14643 object in attrs[LFACE_FONT_INDEX].
14644 (set_lface_from_font_name): Cancel all changes for font-backend.
14645 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14646 function.
14647 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14648 font object in QCfont attribute.
14649 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14650 (realize_default_face) [USE_FONT_BACKEND]: Call
14651 set_lface_from_font_and_fontset.
14652
14653 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14654 "fixed", and signal error here if no suitable font was found.
14655
14656 * xfont.c (xfont_parse_name): Delete this function.
14657
14658 * xftfont.c (xftfont_open): Change coding style of error
14659 handling. Generate fontconfig's fontname pattern.
14660
14661 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14662 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14663
14664 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14665 Both args FONTSET and FONT_OBJECT must be existing ones.
14666
146672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14668
14669 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14670
146712008-02-01 Kenichi Handa <handa@m17n.org>
14672
14673 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14674
14675 * font.h (struct font): Fix typo.
14676
14677 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14678 XLFD_XXX_INDEX.
14679 (enum xlfd_field_mask): New enum.
14680 (intern_font_field): Changed argument. Change caller. If digits
14681 are followed by non-digits, return a symbol.
14682 (font_expand_wildcards): New function.
14683 (font_parse_xlfd): Fix wildcard handling.
14684 (Ffont_spec): If :name is specified, reflect the info in the other
14685 properties.
14686
14687 * ftfont.c (ftfont_pattern_entity): Fix typo.
14688 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14689 locale.
14690
146912008-02-01 Kenichi Handa <handa@m17n.org>
14692
14693 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14694
14695 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14696 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14697 registry doesn't specify encoding part.
14698 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14699 (font_open_by_name): At first try parsing the name.
14700 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14701 as Lisp symbols.
14702
14703 * fontset.c (reorder_font_vector): Pay attention to the case that
14704 the 3rd element of font_def is nil.
14705 (fontset_font): For the default fontset, append one more fontset
14706 elements for a script-based font specification. Don't add script
14707 attribute on finding a font.
14708 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14709 font name.
14710 (fontset_ascii_font): If a font can't be opened, return nil.
14711
14712 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14713 (ftfont_pattern_entity): New function.
14714 (ftfont_get_cache): Assume that freetype_font_cache is already
14715 initialized.
14716 (ftfont_list): Handle the case that a file is specified in font
14717 name. Use ftfont_pattern_entity to generate entities.
14718 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14719 (syms_of_ftfont): Initialize freetype_font_cache.
14720
14721 * xftfont.c (xftfont_open): Make the font name fontconfig's
14722 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14723 (xftfont_close): Free font->font.name if not NULL.
14724
14725 * xfont.c (xfont_list): If script is specified for a font, return
14726 null_vector.
14727 (xfont_list_family): Declare argument type.
14728
14729 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14730 name, set LFACE_FONT (lface) to nil.
14731
14732 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14733 return Qnil.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14738 (standard_args): Add "-enable-font-backend".
14739
147402008-02-01 Kenichi Handa <handa@m17n.org>
14741
14742 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14743 (struct xftdraw_list, xftdraw_list): Delete them.
14744 (register_xftdraw, check_xftdraw): Delete them.
14745 (xftfont_prepare_face): Don't call register_xftdraw.
14746 (xftfont_done_face): Don't call check_xftdraw.
14747 (xftfont_draw): Get background color only when with_background is
14748 nonzero.
14749
14750 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14751
147522008-02-01 Kenichi Handa <handa@m17n.org>
14753
14754 These changes are for the new font handling codes.
14755
14756 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14757 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14758 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14759 (FONTSRC, FONTOBJ): New variables.
14760 (obj): Add $(FONTOBJ).
14761 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14762 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14763 @LIBOTF_LIBS@.
14764 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14765 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14766
14767 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14768
14769 * character.h (Vscript_representative_chars): Extern it.
14770
14771 * character.c (Vscript_representative_chars): New variable.
14772 (syms_of_character): Declare it as a Lisp variable.
14773
14774 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14775 enable_font_backend is nonzero, accept the composition method
14776 COMPOSITION_WITH_GLYPH_STRING.
14777
14778 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14779 enumeration COMPOSITION_WITH_GLYPH_STRING.
14780
14781 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14782 members clip_x, clip_y, clip_width, and clip_height.
14783 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14784
14785 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14786 --enable-font-backend. Call syms_of_font.
14787
14788 * fns.c (assoc_no_quit): New function.
14789
14790 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14791 (face_for_font, new_fontset_from_font)
14792 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14793
14794 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14795 (fontset_font, fontset_ascii, face_for_char)
14796 (make_fontset_for_ascii_face, Ffont_info)
14797 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14798 is nonzero, use font-backend mechanism.
14799 (find_font_encoding): Make it non-static.
14800 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14801 New functions.
14802
14803 * frame.h (struct frame): New members resx and resy.
14804 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14805 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14806
14807 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14808 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14809
14810 * lisp.h (assoc_no_quit): Extern it.
14811
14812 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14813 Through out the file, use FONT_INFO_FROM_FACE instead of
14814 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14815 rif->per_char_metric.
14816 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14817 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14818 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14819 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14820 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14821 nonzero, use font-backend mechanism.
14822 (get_per_char_metric): New function.
14823
14824 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14825 (set_lface_from_font_name)
14826 (set_font_frame_param, free_realized_face)
14827 (prepare_face_for_display, clear_face_gcs)
14828 (Finternal_set_font_selection_order, realize_x_face)
14829 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14830 font-backend mechanism.
14831 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14832 (load_face_font) [USE_FONT_BACKEND]: Abort.
14833 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14834 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14835
14836 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14837 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14838 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14839 nonzero, register all available font drivers. Call
14840 x_default_font_parameter for deciding a font.
14841 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14842
14843 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14844 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14845 (x_set_glyph_string_clipping_exactly)
14846 (x_compute_glyph_string_overhangs)
14847 (x_draw_glyph_string_foreground)
14848 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14849 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14850 enable_font_backend is nonzero, use font-backend mechanism.
14851 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14852
148532008-02-01 Kenichi Handa <handa@m17n.org>
14854
14855 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14856 system_eol_type.
14857 (syms_of_coding): Initialize system_eol_type.
14858
14859 * process.c (Fset_process_coding_system): Inherit system's eol
14860 format if necessary.
14861
148622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14863
14864 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * coding.c (decode_eol): Pay attention to buffer relocation in
14869 del_range_2.
14870 (decode_coding): Call decode_eol before restoring undo_list.
14871
148722008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * charset.c (Fdefine_charset_internal): Fix setting of
14875 emacs_mule_bytes.
14876
148772008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * keyboard.c (read_char): Check if C is a character or not before
14880 looking up Vkeyboard_translate_table.
14881
148822008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14885 condition to terminate the loop.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * coding.c (produce_composition): Compare charbuf[i] instead of
14890 args[i] against 0.
14891 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14896 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14897 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14898 detect_coding.
14899 (emacs_mule_char): Handle old style (Emacs 20) component character
14900 of a composition.
14901 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14902 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14903 composition rule.
14904 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * coding.c (encode_coding_ccl): Allocate destination dynamically
14909 when necessary.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14914 the loop. When quitted, show a proper error message.
14915
149162008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14919 src->clip_head and src->clip_tail temporarily instead of src->hl.
14920
14921 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14922 character sequence.
14923 (Fccl_execute_on_string): Use ASET, not XSET.
14924
149252008-02-01 Kenichi Handa <handa@m17n.org>
14926
14927 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14928
149292008-02-01 Kenichi Handa <handa@m17n.org>
14930
14931 * coding.c (decode_coding): Fix the condition of terminating the
14932 decoding loop.
14933
149342008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * data.c (Faset): On setting a character bigger than 255 in a
14937 unibyte string, signal an error instead of make the string multibyte.
14938
149392008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14942 made by a mapping table.
14943
149442008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14947 not.
14948 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14949 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14950
14951 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14952 s->face is NULL or not.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14957 (x_draw_glyph_string): Fix drawing of right_overhang and
14958 left_overhang around/on cursor.
14959
14960 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14961
149622008-02-01 Kenichi Handa <handa@m17n.org>
14963
14964 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * coding.c (Fdefine_coding_system_internal)
14969 (Fdefine_coding_system_alias): Avoid a duplicated element in
14970 Vcoding_system_alist.
14971
149722008-02-01 Kenichi Handa <handa@m17n.org>
14973
14974 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14975
14976 * coding.c (Qcoding_system_define_form): New variable.
14977 (syms_of_coding): Intern and staticpro it.
14978 (Fcoding_system_p): Check Qcoding_system_define_form.
14979 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14980
14981 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14982 Fcoding_system_p.
14983 (CHECK_CODING_SYSTEM): If ID is not available, call
14984 Fcheck_coding_system.
14985 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14986 Try also Fcheck_coding_system.
14987
149882008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * coding.c (code_conversion_restore): GCPRO arg.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * character.c (lisp_string_width): Check multibyteness of STRING.
14995
149962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14997
14998 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14999 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15000 (decode_mac_font_name): Use decode_coding_c_string instead of
15001 decode_coding.
15002 (x_load_font): Initialize fontp->fontset to -1. Set
15003 fontp->encoding_type.
15004
150052008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 * search.c (search_buffer): Give up BM search on case-fold-search
15008 if one of a target character has a case-equivalence of different
15009 byte length even if that target charcter is an ASCII.
15010 (simple_search): Fix calculation of byte length of matched text.
15011 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15012
150132008-02-01 Kenichi Handa <handa@m17n.org>
15014
15015 * coding.c (decode_coding): Fix handling of invalid bytes.
15016
150172008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15020 Unicode characters.
15021
150222008-02-01 Kenichi Handa <handa@m17n.org>
15023
15024 * coding.c (encode_coding_object): If a pre-write-conversion
15025 function makes a new buffer, kill it.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * coding.c (QCascii_compatible_p): New variable.
15030 (syms_of_coding): Initialize it.
15031 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15032 calling string_char.
15033 (record_conversion_result): Add `default:' case.
15034 (coding_charset_list): Delete unused variable `coding_type'.
15035 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15036 property in the plist of the coding system.
15037 (Fcoding_system_put): Check QCascii_compatible_p.
15038
150392008-02-01 Miles Bader <miles@gnu.org>
15040
15041 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15042 removed calculation of frame `f', as it's now used.
15043
150442008-02-01 Kenichi Handa <handa@m17n.org>
15045
15046 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15047 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15048 (UNIDATA): New variable.
15049 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15050 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15051 $(RUN_TEMACS) unconditionally.
15052
150532008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15056 (admindir): New variable.
15057 ($(lispsource)international/charprop.el): New target.
15058
150592008-02-01 Miles Bader <miles@gnu.org>
15060
15061 * character.c (chars-in-region): Remove obsolete function.
15062 (syms_of_character): Remove its initialization.
15063
150642008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15065
15066 * w32select.c (validate_coding_system)
15067 (setup_windows_coding_system): New functions.
15068 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15069 setup_windows_coding_system.
15070 (setup_config, Fw32_get_clipboard_data): Use
15071 validate_coding_system.
15072 (Fx_selection_exists): Move call to setup_config to a place
15073 where signals are allowed.
15074
15075 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15076 (Fcheck_coding_system): Add declarations.
15077
150782008-02-01 Kenichi Handa <handa@m17n.org>
15079
15080 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15081
150822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15083
15084 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15085 string as the second argument for x_new_fontset.
15086
150872008-02-01 Kenichi Handa <handa@m17n.org>
15088
15089 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15090 (encode_coding_object): Use safe_call instead of call2.
15091
150922008-02-01 Kenichi Handa <handa@m17n.org>
15093
15094 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15095
15096 * Makefile.in (lisp): Include charprop.el.
15097
150982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15099
15100 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15101 Not sure if it's unnecessary.
15102
151032008-02-01 Steven Tamm <steventamm@mac.com>
15104
15105 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15106 some possibly unnecessary fontset checking code that crashed
15107 when creating a new frame.
15108
151092008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15112 lookup_face.
15113
15114 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15115
15116 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15117
151182008-02-01 Kenichi Handa <handa@m17n.org>
15119
15120 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15121 (coding_charset_list): New function.
15122
15123 * coding.h (coding_charset_list): Extern it.
15124
151252008-02-01 Kenichi Handa <handa@m17n.org>
15126
15127 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15128 concatenation of family and registry.
15129
151302008-02-01 Kenichi Handa <handa@m17n.org>
15131
15132 * character.h (BYTE8_STRING): Fix typo.
15133
15134 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15135 string to multibyte (sync to HEAD).
15136
15137 * casefiddle.c (casify_region): Handle changes in byte-length
15138 using replace_range_2 (sync to HEAD).
15139
151402008-02-01 Andreas Schwab <schwab@suse.de>
15141
15142 * chartab.c (map_char_table): GCPRO table and arg.
15143
151442008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15147 already at limit.
15148
151492008-02-01 Kenichi Handa <handa@m17n.org>
15150
15151 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15152 instead of fast_c_string_match_ignore_case.
15153 (find_font_encoding): Change argument to Lisp_Object. Use
15154 fast_string_match_ignore_case instead of
15155 fast_c_string_match_ignore_case. Change caller.
15156
151572008-02-01 Kenichi Handa <handa@m17n.org>
15158
15159 * xdisp.c (get_next_display_element): In unibyte case, decide to
15160 display in octal form by checking a character by
15161 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15162
15163 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15164
15165 * character.c (unibyte_has_multibyte_table): New variable.
15166
15167 * character.h (unibyte_has_multibyte_table): Extern it.
15168 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15169
151702008-02-01 Kenichi Handa <handa@m17n.org>
15171
15172 * coding.c (encode_coding_iso_2022): Fix handling of charset
15173 annotation.
15174
151752008-02-01 Kenichi Handa <handa@m17n.org>
15176
15177 * coding.c (setup_coding_system): If coding_system is nil, use
15178 Qundecided.
15179 (Fterminal_coding_system): Return nil if terminal coding system is
15180 `undecided'.
15181 (syms_of_coding): Define coding-system `undecided' here. Setup
15182 terminal_coding as `undecided'.
15183
151842008-02-01 Kenichi Handa <handa@m17n.org>
15185
15186 * xdisp.c (message_dolog, set_message_1): Call
15187 unibyte_char_to_multibyte with arg type int.
15188
15189 * lread.c (read1): Fix reading of a char-table.
15190
15191 * print.c (print_object): Include sub char-table in circularities
15192 detection.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15197 Append the found sequences in car of ARGS instead of prepending.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * fileio.c (report_file_error): Make a unibyte string from
15202 strerror (errorno).
15203 (Fsubstitute_in_file_name): Fix the arg to
15204 unibyte_char_to_multibyte. It is evaluated twice.
15205
152062008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15209
152102008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15213 BOM is not found.
15214 (detect_coding, detect_coding_system): Optimization for ISO-2022
15215 when no 8-bit data is found.
15216
152172008-02-01 Jason Rumney <jasonr@gnu.org>
15218
15219 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15224 CHARS.
15225
152262008-02-01 Steven Tamm <steventamm@mac.com>
15227
15228 * macterm.c (mac_encode_char): Add charset argument and update
15229 to use encoding_type.
15230 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15231 switch to pure fontset.
15232 (decode_mac_font_name): Temporarily remove decoding.
15233 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15234 (x_load_font): Temporarily remove encoding.
15235
152362008-02-01 Kenichi Handa <handa@m17n.org>
15237
15238 * xfaces.c (Fface_font): If frame is not on a window system,
15239 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15240 refer to face->font.
15241 (split_font_name_into_vector, build_font_name_from_vector)
15242 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15243 when HAVE_WINDOW_SYSTEM is defined.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15248 (x_produce_glyphs): Fix setting of members of cmp in case
15249 cmp->glyph_len is zero.
15250
15251 * fontset.c (Fset_fontset_font): Fix docstring.
15252 (Ffontset_info): Make it backward compatible. New arg ALL.
15253
152542008-02-01 Kim F. Storm <storm@cua.dk>
15255
15256 * process.c (read_process_output): Grow decoding_buf when needed;
15257 this could cause a crash in allocate_string and compact_small_strings.
15258
152592008-02-01 Kenichi Handa <handa@m17n.org>
15260
15261 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15262
152632008-02-01 Kenichi Handa <handa@m17n.org>
15264
15265 * coding.c (setup_coding_system): Set coding->common_flags
15266 correctly for raw-text.
15267 (consume_chars): On encoding unibyte text by raw-text, don't check
15268 multibyte form.
15269 (encode_coding): On encoding by raw-text, never use translation tables.
15270
15271 * fileio.c (e_write): Short cut for the case of no encoding.
15272
152732008-02-01 Kenichi Handa <handa@m17n.org>
15274
15275 * coding.c (detect_coding, detect_coding_system): Delete unused
15276 variables.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15281 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15282
152832008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * coding.c (Ffind_coding_systems_region_internal): Include
15286 raw-text and no-conversion in the result.
15287
152882008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15291 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15292 FONT_DEF.
15293 (font_def_arg, add_arg, from_arg, to_arg): New args.
15294 (set_fontset_font): Change argument.
15295 (Fset_fontset_font): Fix for the case that TARGET is a script
15296 name and charset name.
15297 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15298
152992008-02-01 Kenichi Handa <handa@m17n.org>
15300
15301 * fontset.c (fontset_font): Rename from fontset_face. Change return
15302 value.
15303 (face_suitable_for_char_p, face_for_char): Adjust for the change
15304 of fontset_font.
15305 (make_fontset_for_ascii_face): Fix setting of the fontset element
15306 for ASCII.
15307 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15308 to get a font name.
15309 (Ffontset_info): Adjust for the change of fontset_font.
15310
15311 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15312
15313 * character.h (LEADING_CODE_LATIN_1_MIN)
15314 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15315
153162008-02-01 Kenichi Handa <handa@m17n.org>
15317
15318 * editfns.c (check_translation): New function.
15319 (Ftranslate_region_internal): Handle M:N mapping.
15320
153212008-02-01 Kenichi Handa <handa@m17n.org>
15322
15323 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15324
153252008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15328 goto invalid_code.
15329 (decode_coding_iso_2022): Fix handling of invalid designation.
15330
15331 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15332 after calling code_conversion_save.
15333
153342008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15337
15338 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15339
15340 * fontset.c: Include "intervals.h".
15341 (fontset_face): Fix comparing of Lisp_Objects.
15342 (free_face_fontset, new_fontset_from_font_name): Fix
15343 Lisp_Object/int mixup.
15344
15345 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15346
15347 * coding.c: Add many prototypes for static functions.
15348 (get_translation_table): Allow max_lookup to be NULL.
15349 (decode_coding, Ffind_coding_systems_region_internal)
15350 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15351 get_translation_table with max_lookup NULL.
15352
153532008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * coding.c (get_translation_table): Declare it as Lisp_Object.
15356 (LOOKUP_TRANSLATION_TABLE): New macro.
15357 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15358 instead of CHAR_TABLE_REF.
15359
153602008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15363 annotation data format.
15364 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15365 Change arguments FROM and TO to single argument NCHARS. Change caller.
15366 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15367 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15368 (decode_coding_ccl, decode_coding_charset): Pay attention to
15369 coding->charbuf_used.
15370 (get_translation): New function.
15371 (produce_chars): New arguments translation_table and last_block.
15372 Translate characters here. Return number of carryover chars.
15373 Change caller.
15374 (produce_composition): New argument pos. Change caller.
15375 Adjust for the change of annotation data format.
15376 (produce_charset, produce_annotation): Likewise.
15377 (decode_coding, encode_coding): Don't call translate_chars.
15378 (consume_chars): New arg translation_table. Change caller.
15379 (translate_chars): Delete.
15380 (syms_of_coding): Make translation-table's number of extra slots 2.
15381
153822008-02-01 Kenichi Handa <handa@m17n.org>
15383
15384 * search.c (simple_search): Fix setting this_pos_byte in backward
15385 search.
15386
15387 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15388 byte sequence.
15389 (detect_coding_ccl): Fix setting of the variable valids.
15390
153912008-02-01 Kenichi Handa <handa@m17n.org>
15392
15393 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15394
15395 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15396
15397 * editfns.c (Ftranslate_region_internal): Rename from
15398 Ftranslate_region. Accept a char-table in TABLE.
15399 (syms_of_editfns): Defsubr Stranslate_region_internal.
15400
15401 * xfaces.c (set_lface_from_font_name): If a font is specified for
15402 a frame, generate a fontset from the font.
15403 (build_scalable_font_name): If the scalable font is requested for
15404 a specific size, don't change that size.
15405 (try_font_list): Try a scalable font also in the case that a
15406 pattern string is specified.
15407
154082008-02-01 Kenichi Handa <handa@m17n.org>
15409
15410 * xfaces.c (Fface_font): New optional arg CHARACTER.
15411
154122008-02-01 Kenichi Handa <handa@m17n.org>
15413
15414 * charset.h (CHARSET_OFFSET): New macro.
15415
154162008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15419
15420 * fontset.c (fontset_face): Handle the case that repertory is a
15421 char-table.
15422 (find_font_encoding): Return nil for unknown encoding.
15423 (Fset_fontset_font): Ignore a font of unknown encoding.
15424
154252008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * keymap.c (describe_vector): Handle default value of a char table.
15428
15429 * fontset.c (fontset_face): Handle fallback fonts correctly.
15430 (Ffontset_info): Return infomation about fallback fonts.
15431
154322008-02-01 Kenichi Handa <handa@m17n.org>
15433
15434 * fontset.c (FONTSET_DEFAULT): New macro.
15435 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15436 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15437 the case that it is nil.
15438 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15439 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15440
15441 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15442 subset or superset.
15443
154442008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * emacs.c (main): Call init_charset after syms_of_XXX.
15447
15448 * charset.c (Vcharset_map_directory): Delete.
15449 (Vcharset_map_path): New variable.
15450 (load_charset_map_from_file): Use Vcharset_map_path instead.
15451 (init_charset): Initialize Vcharset_map_path.
15452 (syms_of_charset): Delete declaration of "charset-map-directory",
15453 add declaration of "charset-map-path".
15454
154552008-02-01 Kenichi Handa <handa@m17n.org>
15456
15457 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15458 ASCII only string.
15459
15460 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15461
15462 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15463 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15464
154652008-02-01 Kenichi Handa <handa@m17n.org>
15466
15467 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15468
15469 * coding.c (QCmnemonic, QCdefalut_char)
15470 (QCdecode_translation_table, QCencode_translation_table)
15471 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15472 (get_translation_table): Return a list of translation tables if
15473 necessary.
15474 (decode_coding): Call get_translation_table with ENCODEP 0.
15475 (char_encodable_p): If translation_table is non-nil, always call
15476 translate_char.
15477 (Fdefine_coding_system_internal): Accept list of translation
15478 tables as :encode-translation-table and :decode-translation-table.
15479 (Fcoding_system_put): New function.
15480 (syms_of_coding): Declare new symbols. Defsubr
15481 Scoding_system_put.
15482 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15483 typically JISX0212.
15484
15485 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15486 when the charset is superset type.
15487
15488 * character.c (translate_char): Accept list of translation tables.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15493 (CODING_ATTR_TRANS_TBL): New macro.
15494
15495 * coding.c (get_translation_table): New function.
15496 (translate_chars): Fix the bug of skipping annotation data.
15497 (decode_coding, encode_coding): Utilize get_translation_table.
15498 (char_encodable_p, Funencodable_char_position): Translate char if
15499 necessary.
15500 (Ffind_coding_systems_region_internal)
15501 (Fcheck_coding_systems_region): Setup translation table for encode
15502 in a coding system attribute vector in advance.
15503 (Fdefine_coding_system_internal): Allow a symbol as translation
15504 table. For shift-jis type coding system, allow 4th charset.
15505
155062008-02-01 Kenichi Handa <handa@m17n.org>
15507
15508 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15509
15510 * xdisp.c (get_next_display_element): Pass -1 as POS to
15511 FACE_FOR_CHAR if displaying a C-string.
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 * composite.c (get_composition_id): Handle xoff and yoff in a
15516 composition rule.
15517
15518 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15519 (struct composition): New member lbearing and rbearing.
15520
15521 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15522 (x_get_glyph_overhangs): Handle a composition glyph.
15523 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15524
15525 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15526 composition glyph.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * print.c: Include charset.h.
15531 (Vprint_charset_text_property): New variable.
15532 (Qdefault): Extern it.
15533 (PRINT_STRING_NON_CHARSET_FOUND)
15534 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15535 (print_check_string_result): New variable.
15536 (print_check_string_charset_prop): New function.
15537 (print_prune_charset_plist): New variable.
15538 (print_prune_string_charset): New function.
15539 (print_object): Call print_prune_string_charset if
15540 Vprint_charset_text_property is not t.
15541 (print_interval): Print nothing if interval->plist is nil.
15542 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15543 variable. Init and staticpro print_prune_charset_plist.
15544
155452008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 * fontset.c (new_fontset_from_font_name): Use the specified font
15548 for all characters in the new fontset.
15549
15550 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15551 OBJECT args.
15552
15553 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15554 OBJECT args for composition too.
15555
15556 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15557 OBJECT args.
15558
155592008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15562
15563 * fontset.c (reorder_font_vector): Adjust for the change of
15564 FONT_DEF format.
15565 (fontset_face): New arg id. Change caller.
15566 (face_for_char): New args pos and object.
15567 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15568 (fs_query_fontset): Check NAME by Fassoc too.
15569 (Fset_fontset_font): Allow non-XLFD font name.
15570 (Ffontset_info): Adjust for the change of FONT_DEF format.
15571
15572 * fontset.h (face_for_char): Adjust prototype.
15573
15574 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15575 (append_space, extend_face_to_end_of_line)
15576 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15577 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15578
15579 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15580 POS and OBJECT args.
15581
15582 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15583 POS and OBJECT args.
15584
155852008-02-01 Jason Rumney <jasonr@gnu.org>
15586
15587 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15588 of GlobalAlloc'ed memory.
15589
155902008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15593
15594 * charset.h (charset_table_used): Delete extern.
15595
15596 * charset.c (charset_table_used): Make it static.
15597 (map_charset_chars): Fix args to c_function with.
15598
15599 * chartab.c (map_sub_char_table_for_charset): Fix args to
15600 c_function with.
15601
15602 * coding.h (enum coding_result_code): Delete
15603 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15604
15605 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15606 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15607 (Vlast_code_conversion_error): New variables.
15608 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15609 (ONE_MORE_BYTE): Record error if any instead of signaling an
15610 error. If non-ASCII multibyte char is found, return the negative
15611 value of the code. All callers changed to check it.
15612 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15613 (record_conversion_result): New function. Change all codes setting
15614 coding->result to call this function.
15615 (detect_coding_utf_8, decode_coding_utf_8)
15616 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15617 Don't use the local variable incomplete.
15618 (emacs_mule_char): Change the second arg to `const'.
15619 (decode_coding): Fix of flushing out unprocessed data.
15620 (make_conversion_work_buffer): Fix making of a work buffer.
15621 (decode_coding_object): Return coding->dst_object.
15622
15623 * fontset.c (set_fontset_font): Fix args.
15624
15625 * lisp.h (CHARACTERBITS): Define as 22.
15626
15627 * process.c (send_process): Be sure to set coding->src_multibyte.
15628
15629 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15630
156312008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * xdisp.c (handle_auto_composed_prop): Give limit to
15634 Fnext_single_char_property_change.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * composite.c (syms_of_composite): Don't make the composition hash
15639 table weak.
15640
15641 * fontset.c (Fset_fontset_font): Fix docstring.
15642
15643 * lisp.h (detect_coding_system): Adjust prototype.
15644
15645 * fileio.c (kill_workbuf_unwind): Delete this function.
15646 (Finsert_file_contents): Adjust the call of detect_coding_system.
15647 Get conversion_buffer by code_conversion_save. Use the macro
15648 CODING_MAY_REQUIRE_DECODING. After decoding, update
15649 coding_system.
15650
15651 * coding.h (make_conversion_work_buffer): Delete extern.
15652 (code_conversion_save): Extern it.
15653
15654 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15655 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15656 (decode_coding_utf_8): Don't do eol converion.
15657 (detect_coding_utf_16): Check coding->src_chars, not
15658 coding->src_bytes. Add heuristics for those that have no signature.
15659 (decode_coding_emacs_mule, decode_coding_iso_2022)
15660 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15661 Don't do eol converion.
15662 (adjust_coding_eol_type): Return a new coding system.
15663 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15664 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15665 each change.
15666 (decode_coding): Pay attention to undo_list. Do eol conversion for
15667 all types of coding-systems (if necessary).
15668 (Vcode_conversion_work_buf_list): Delete it.
15669 (Vcode_conversion_reused_workbuf): Rename from
15670 Vcode_conversion_reused_work_buf.
15671 (Vcode_conversion_workbuf_name): New variable.
15672 (reused_workbuf_in_use): New variable.
15673 (make_conversion_work_buffer): Delete the arg DEPTH.
15674 (code_conversion_restore): Change argument to cons.
15675 (code_conversion_save): Delete the argument BUFFER. Change callers.
15676 (detect_coding_system): New argument src_chars. Change callers.
15677 Fix for utf-16 detection.
15678 (init_coding_once): Don't use ISO_carriage_return.
15679 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15680 reused_workbuf_in_use.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * keymap.c (store_in_keymap): Pay attention to the case that idx
15685 is a cons specifying a character range.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15690 HANDLED_RECOMPUTE_PROPS.
15691
15692 * coding.c (Fdefine_coding_system_internal): Fix checking of
15693 ascii compatibility.
15694
156952008-02-01 Kenichi Handa <handa@m17n.org>
15696
15697 * charset.c (find_charsets_in_text): Delete unused locale variable.
15698 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15699
15700 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15701 Resync charset_list to Vemacs_mule_charset_list.
15702
15703 * keymap.c (store_in_keymap): Pay attention to the case that idx
15704 is a cons specifying a character range.
15705
157062008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 * composite.c (update_compositions): Bind inhibit-read-only, etc
15709 to t before calling remove-list-of-text-properties.
15710
15711 * print.c (print_object): Always print ASCII chars as is.
15712
157132008-02-01 Kenichi Handa <handa@m17n.org>
15714
15715 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15716
15717 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15718 is a char table.
15719
157202008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * xfaces.c (set_lface_from_font_name): Fix for the case that
15727 FONTNAME is not fontset name.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * fns.c (base64_encode_1): Fix previous change.
15732
157332008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * fontset.c (set_fontset_font): New function.
15736 (Fset_fontset_font): If a font is specified for a charset, use
15737 map_charset_chars to store the font spec in a fontset.
15738
157392008-02-01 Kenichi Handa <handa@m17n.org>
15740
15741 * fontset.c (fontset_face): Create a fallback fontset on demand.
15742 (make_fontset): Don't create a fallback fontset here.
15743 (free_face_fontset): Free a fallback fontset (if any) too.
15744 (n_auto_fontsets): Delete this variable.
15745 (auto_fontset_alist): New variable.
15746 (new_fontset_from_font_name): Check auto_fontset_alist.
15747 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15748 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15749 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15750 Defsubr Sfontset_list_all.
15751
157522008-02-01 Kenichi Handa <handa@m17n.org>
15753
15754 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15759
157602008-02-01 Kenichi Handa <handa@m17n.org>
15761
15762 * editfns.c (Fgoto_char): Fix docstring.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * insdel.c (insert_from_gap): Adjust intervals correctly.
15767
157682008-02-01 Jason Rumney <jasonr@gnu.org>
15769
15770 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15771 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15772 (w32_initialize): Try to load it.
15773 (x_get_font_repertory): Use it if available.
15774 (w32_encode_char): Add shortcut for unicode output.
15775
15776 * w32fns.c (w32_load_system_font): Default charset to -1.
15777 (x_to_w32_charset): Match all fonts for unicode.
15778 (w32_to_x_charset): New parameter matching. Don't return partial
15779 or wildcard charsets.
15780 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15781 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15782 (w32_to_x_font): Match charset to real charset.
15783 (enum_font_cb2): Always list unicode versions.
15784
15785 * makefile.w32-in (temacs): Increase EMHEAP.
15786
157872008-02-01 Jason Rumney <jasonr@gnu.org>
15788
15789 * w32term.c (w32_encode_char): New charset parameter.
15790 font_info.encoding becomes encoding_type.
15791 (x_get_font_repertory): New function. Warning: stub only!
15792 (x_new_font): Return quickly if font already set.
15793 (x_new_fontset): fontsetname parameter is Lisp_Object.
15794 Use new fs_query_fontset. Try new_fontset_from_font_name.
15795 Use fontset_name for return value.
15796
15797 * w32term.h: Declare x_get_font_repertory.
15798
15799 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15800 place of find_charset_in_text. Use encode_coding_object in place
15801 of encode_coding.
15802 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15803 decode_coding.
15804
15805 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15806 of x_new_fontset.
15807 (w32_load_system_font): Initialize charset as unicode.
15808 font_info.encoding becomes encoding_type.
15809 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15810 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15811 (syms_of_w32fns): Set get_font_repertory_func.
15812
15813 * w32console.c: Include character.h. Use terminal_encode_buffer
15814 from term.c.
15815 (write_glyphs): Use new version of encode_terminal_code. Use
15816 encode_coding_object in place of encode_coding.
15817
15818 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15819 encoding becomes encoding_type.
15820
15821 * term.c (terminal_encode_buffer): Make externally visible.
15822
15823 * makefile.w32-in: Add character.h dependancies.
15824 (character.o, chartab.o): New targets.
15825
158262008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15829 CODING_ID_EOL_TYPE.
15830
158312008-02-01 Andreas Schwab <schwab@suse.de>
15832
15833 * coding.c (produce_chars): Revert last change.
15834
158352008-02-01 Kenichi Handa <handa@m17n.org>
15836
15837 * charset.h (charset_unicode): Extern it.
15838
15839 * charset.c (string_xstring_p): Check by (C >= 0x100).
15840 (find_charsets_in_text): Change format of the arc CHARSETS. New
15841 arg MULTIBYTE.
15842 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15843 change of find_charsets_in_text.
15844 (Fsplit_char): Fix doc. Never return unknown.
15845
15846 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15847
15848 * coding.c (Fdefine_coding_system_alias): Update
15849 Vcoding_system_list.
15850
15851 * fontset.c (load_font_get_repertory): Pay attention to the case
15852 that ENCODING of a font is specified by a char-table.
15853
15854 * xterm.c (x_get_font_repertory): Handle the case that the
15855 encoding of font is other than Unicode.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15860 if a character is encodable by the terminal coding system. If
15861 not, produces proper number of `?'s. Update
15862 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15863 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15864
158652008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15868 variables.
15869 (encode_terminal_code): Change argument. Encode multiple
15870 characters at once. Store the result of encoding in
15871 terminal_encode_buffer.
15872 (write_glyphs, insert_glyphs): Adjust for the change of
15873 encode_terminal_code.
15874 (term_init): Initialize terminal_encode_buffer and
15875 terminal_encode_buf_size.
15876
15877 * coding.c (consume_chars): If coding->src_object is nil, don't
15878 check annotation.
15879
158802008-02-01 Kenichi Handa <handa@m17n.org>
15881
15882 * character.c (char_string): Use ASCII_CHAR_P instead of
15883 SINGLE_BYTE_CHAR_P.
15884
158852008-02-01 Kenichi Handa <handa@m17n.org>
15886
15887 * xdisp.c (handle_auto_composed_prop): Check if the last
15888 characters of auto-composed region is newly composed with the
15889 following characters.
15890 (handle_composition_prop): Fix checking of point being inside
15891 composition.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * fns.c (concat): Don't change multibyteness of the result by
15896 concatenating an 8-bit character.
15897
15898 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15899 multibyteness of the result when newelt is an 8-bit character.
15900
159012008-02-01 Dave Love <fx@gnu.org>
15902
15903 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15904 EMACS_INT.
15905
15906 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15907
15908 * xfaces.c (face_numeric_value): Declare dim size_t.
15909 (Finternal_lisp_face_equal_p): Remove unused f.
15910
15911 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15912 (MATRIX_ROW): Remove unused vars.
15913 (draw_glyphs, x_insert_glyphs, fast_find_position)
15914 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15915 byte/char counts.
15916
15917 * regex.c (regex_compile): Remove unused var.
15918
15919 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15920
15921 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15922 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15923
15924 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15925
15926 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15927
15928 * fileio.c (Fwrite_region): Remove unused var.
15929
15930 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15931 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15932
15933 * composite.c (Fremove_list_of_text_properties): Declare.
15934
15935 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15936 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15937 (coding_inherit_eol_type): Remove unused attrs.
15938 (detect_coding): Cast arg of detect_eol.
15939
15940 * charset.c (syms_of_charset): Remove unused var p.
15941 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15942 byte/char counts.
15943
15944 * casetab.c (set_case_table): Remove unused var.
15945
15946 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15947 unused vars.
15948
159492008-02-01 Dave Love <fx@gnu.org>
15950
15951 * xterm.c (x_bitmap_mask): Declare.
15952
159532008-02-01 Dave Love <fx@gnu.org>
15954
15955 * xterm.c (x_term_init): Fix type error.
15956
15957 * lisp.h: Add Funibyte_char_to_multibyte.
15958
15959 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15960 (Fset_coding_system_priority): Doc fix.
15961
15962 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15963
15964 * indent.c (check_composition): Make start and end EMACS_INT.
15965
15966 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15967
15968 * xdisp.c (handle_composition_prop, check_point_in_composition):
15969 Make buffer positions EMACS_INT.
15970
15971 * composite.c (find_composition, run_composition_function)
15972 (update_compositions, Ffind_composition_internal): Make buffer
15973 positions EMACS_INT.
15974
15975 * composite.h (find_composition, update_compositions): Make
15976 position args EMACS_INT.
15977
15978 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15979
15980 * intervals.c (get_property_and_range):
15981 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15982
15983 * unexalpha.c: Don't include varargs.h.
15984
159852008-02-01 Dave Love <fx@gnu.org>
15986
15987 * coding.h (ENCODE_UTF_8): New.
15988
15989 * Makefile.in (gtkutil.o): Depend on coding.h.
15990
15991 * coding.c (Fset_coding_system_priority): Doc fix.
15992
159932008-02-01 Kenichi Handa <handa@m17n.org>
15994
15995 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15996 the case of auto saving.
15997
159982008-02-01 Andreas Schwab <schwab@suse.de>
15999
16000 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16001 `range' from GC.
16002
160032008-02-01 Kenichi Handa <handa@m17n.org>
16004
16005 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16006
160072008-02-01 Kenichi Handa <handa@m17n.org>
16008
16009 * fileio.c (choose_write_coding_system): Return a decided coding system.
16010 (Fwrite_region): Set Vlast_coding_system_used to the return value
16011 of choose_write_coding_system.
16012
160132008-02-01 Kenichi Handa <handa@m17n.org>
16014
16015 * charset.c (Fset_charset_priority): Pay attention to duplicated
16016 arguments.
16017
16018 * coding.c (QCcategory): New variable.
16019 (syms_of_coding): Defsym it. Set all elements of
16020 Vcoding_category_table and their symbol values.
16021 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16022 coding-category-XXX, and coding-category-list.
16023 (Fdefine_coding_system_internal): Add category in the plist.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * callproc.c (Fcall_process): Handle carryover correctly.
16028
16029 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16030 (raw_text_coding_system): Check NILP (coding_system).
16031 (coding_inherit_eol_type): Check NILP (coding_system) and
16032 NILP (parent).
16033 (consume_chars): Fix for the case of raw-text.
16034
16035 * process.c (read_process_output): Handle carryover correctly.
16036
160372008-02-01 Dave Love <fx@gnu.org>
16038
16039 * regex.c (re_search_2): Fix last change.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16044 target_multibyte. Even in a unibyte case, return a converted
16045 multibyte char.
16046 (GET_CHAR_AFTER): New macro.
16047 (PATFETCH): Translate via multibyte char.
16048 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16049 (SETUP_MULTIBYTE_RANGE): New macro.
16050 (regex_compile): Setup compiled code so that its multibyteness
16051 matches that of a target. Fix the handling of "[X-YZ]" using
16052 SETUP_MULTIBYTE_RANGE.
16053 (analyse_first) <charset>: For filling fastmap for all multibyte
16054 characters, don't check by BASE_LEADING_CODE_P.
16055 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16056 the same as RE_MULTIBYTE_P (bufp) now.
16057 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16058 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16059 (TRANSLATE_VIA_MULTIBYTE): New macro.
16060 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16061 It is the same as RE_MULTIBYTE_P (bufp) now.
16062 <exactn>: Translate via multibyte.
16063 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16064 translate it.
16065 <charset, charset_not>: Fetch a character by
16066 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16067 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16068 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16069 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16070 by GET_CHAR_AFTER.
16071 (bcmp_translate): Likewise.
16072
16073 * search.c (compile_pattern): Check the member target_multibyte,
16074 not the member multibyte of buf.
16075
16076 * lread.c (read1): While reading a string, set force_singlebyte
16077 and force_multibyte correctly.
16078
16079 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16080 up of unibyte_to_multibyte_table.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * coding.c (setup_coding_system): If coding has
16085 post-read-conversion or pre-write-conversion, set
16086 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16087 respectively.
16088 (decode_coding_gap): Run post-read-conversion if any.
16089
16090 * fileio.c (Finsert_file_contents): Even if we read into a
16091 unibyte buffer, check if we must decode the result or not.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * coding.c (make_conversion_work_buffer): Change the work buffer
16096 name to the same one as that of Emacs 21.
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * coding.h (make_conversion_work_buffer): Adjust prototype.
16101 (code_conversion_restore): Don't extern it.
16102
16103 * coding.c (detected_mask): Delete unused variable.
16104 (decode_coding_iso_2022): Pay attention to the byte sequence of
16105 CTEXT extended segment, and retain those bytes as is.
16106 (decode_coding_ccl): Delete unused variable `valids'.
16107 (setup_coding_system): Delete unused variable `category'.
16108 (consume_chars): Delete unused variable `category'. Make it work
16109 for non-multibyte case.
16110 (make_conversion_work_buffer): Change argument.
16111 (saved_coding): Delete unused variable.
16112 (code_conversion_restore): Don't check saved_coding->destination.
16113 (code_conversion_save): New function.
16114 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16115 instead of record_unwind_protect.
16116 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16117 (detect_coding_system): Delete unused variable `mask'.
16118 (Fdefine_coding_system_internal): Delete unused variable id.
16119
16120 * fileio.c (kill_workbuf_unwind): New function.
16121 (Finsert_file_contents): On replacing, call
16122 make_conversion_work_buffer with correct args, and call
16123 record_unwind_protect with the first arg kill_workbuf_unwind.
16124
16125 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16126
161272008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16130 (fontset_add): Fix for the case that TO is less than TO1.
16131 (Ffontset_info): Don't use fallback fontset on checking the
16132 default fontset.
16133 (dump_fontset): New function for debugging.
16134
16135 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16136 coding_type is Qcharset.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16141 (map_char_table): Don't inherit the value from the parent on
16142 initializing VAL. Adjust for the above change.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * coding.c (Qsignature, Qendian): Delete these variables.
16147 (syms_of_coding): Don't initialize them.
16148 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16149 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16150 detect_info->found.
16151 (decode_coding_utf_16): Don't detect BOM here.
16152 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16153 is NOT utf_16_without_bom.
16154 (setup_coding_system): For a coding system of type utf-16, check
16155 if the attribute :endian is Qbig or not (not nil or not), and set
16156 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16157 (detect_coding): If coding type is utf-16 and BOM detection is
16158 required, detect it.
16159 (Fdefine_coding_system_internal): For a coding system of type
16160 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16161
161622008-02-01 Kenichi Handa <handa@m17n.org>
16163
16164 * coding.c (coding_set_source): Fix for the case that the current
16165 buffer is different from coding->src_object.
16166 (decode_coding_object): Don't use the conversion work buffer if
16167 DST_OBJECT is a buffer.
16168
161692008-02-01 Dave Love <fx@gnu.org>
16170
16171 * lread.c (read_emacs_mule_char) [len==2]: Index
16172 emacs_mule_charset correctly.
16173
161742008-02-01 Dave Love <fx@gnu.org>
16175
16176 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16177 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16178 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16179 treated specially.)
16180 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16181 (detected_mask): Remove Big5 bits.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 The following changes are to make the font rescaling facility
16186 compatible with Emacs 21.
16187
16188 * xfaces.c (Vface_font_rescale_alist): Rename from
16189 Vface_resizing_fonts.
16190 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16191 (font_rescale_ratio): Rename from font_resizing_ratio.
16192 (split_font_name): Set font->rescale_ratio.
16193 (better_font_p): Pay attention to font->rescale_ratio.
16194 (build_scalable_font_name): Likewise. Change RESX, and RESY
16195 fields.
16196 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16197
161982008-02-01 Kenichi Handa <handa@m17n.org>
16199
16200 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16201 (Qutf_16_le): Remove these variables.
16202 (syms_of_coding): Don't DEFSYM them.
16203 (decode_coding_utf_16): Fix handling of BOM.
16204 (encode_coding_utf_16): Fix handling of BOM.
16205
162062008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * fileio.c (Finsert_file_contents): On replacing, before decoding
16209 the file into the work buffer, set point of the work buffer to the end.
16210
162112008-02-01 Dave Love <fx@gnu.org>
16212
16213 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16214
162152008-02-01 Dave Love <fx@gnu.org>
16216
16217 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16218 and fix C types.
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * xdisp.c (SKIP_GLYPHS): New macro.
16223 (set_cursor_from_row): Pay attention to string display properties.
16224
16225 * category.c (copy_category_entry): Fix for the case that RANGE
16226 is an integer.
16227
16228 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16229
16230 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16231
162322008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * charset.c (Fcharset_id_internal): New function.
16235 (syms_of_charset): Defsubr it.
16236
16237 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16238 with the last arg charset_list acquired from coding.
16239 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16240 the attribute coding_attr_ccl_valids.
16241
16242 * coding.h (enum define_coding_ccl_arg_index): Set the first
16243 member coding_arg_ccl_decoder to coding_arg_max.
16244
16245 * ccl.h (ccl_driver): Adjust prototype.
16246
16247 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16248 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16249 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16250 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16251 last arg Qnil.
16252
162532008-02-01 Kenichi Handa <handa@m17n.org>
16254
16255 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16256 call encode_char.
16257
16258 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16259
162602008-02-01 Dave Love <fx@gnu.org>
16261
16262 * composite.c (syms_of_composite): Make composition_hash_table weak.
16263
162642008-02-01 Kenichi Handa <handa@m17n.org>
16265
16266 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16267 (font_name_registry): Don't extern them.
16268 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16269
16270 * fontset.h (Qfontset): Don't extern it.
16271 (new_fontset_from_font_name): Extern it.
16272
16273 * fontset.c: Give 8 extra slots to fontset objects.
16274 (Qfontset_info): New variable.
16275 (syms_of_fontset): Defsym it.
16276 (FONTSET_FALLBACK): New macro.
16277 (fontset_face): Try also the default fontset.
16278 (make_fontset): Realize a fallback fontset from the default fontset.
16279 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16280 using split_font_name_into_vector and build_font_name_from_vector.
16281 (Fset_fontset_font): Access the elements of font_spec by enum
16282 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16283 name by using split_font_name_into_vector.
16284 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16285 generate a proper font name from the fontset name. Update
16286 Vfontset_alias_alist.
16287 (n_auto_fontsets): New variable.
16288 (new_fontset_from_font_name): New function.
16289 (Ffont_info): Store the information about fonts generated from the
16290 default fontset in the first extra slot of the returned char-table.
16291
16292 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16293 (font_name_registry): Delete function.
16294 (split_font_name_into_vector): New function.
16295 (build_font_name_from_vector): New function.
16296 (font_list): The argument REGISTRY is now a list of registry names.
16297 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16298 specifies an explicit font name, return the name as is. Make a
16299 list of registy names.
16300
16301 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16302 of x_new_fontset.
16303 (Fx_create_frame): Don't call x_new_fontset here. Just use
16304 x_list_fonts to check the existence of fonts.
16305
16306 * xterm.h (x_new_fontset): Adjust prototype.
16307
16308 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16309 string. Use new_fontset_from_font_name to create a fontset from a
16310 font name.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * syntax.c (Vfind_word_boundary_function_table): New name for
16315 Vnext_word_boundary_function_table.
16316 (find-word-boundary-function-table): New name for
16317 next-word-boundary-function-table.
16318
163192008-02-01 Dave Love <fx@gnu.org>
16320
16321 * Makefile.in: Fix some dependencies.
16322
16323 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16324 set it to nil before returning.
16325
16326 * composite.c (update_compositions): Fix type error.
16327
16328 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16329
163302008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * xterm.c (x_new_font): Optimize for the case that the font is
16333 already set for the frame.
16334
163352008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * chartab.c (char_table_ascii): Check if the char table contents
16338 is sub-char-table or not.
16339 (char_table_set, char_table_set_range): Fix argument to
16340 char_table_ascii.
16341
16342 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16343 (detect_coding_utf_8, detect_coding_utf_16)
16344 (detect_coding_emacs_mule, detect_coding_iso_2022)
16345 (detect_coding_sjis, detect_coding_big5)
16346 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16347 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16348 sequence is valid in this coding system. Change callers.
16349 (MAX_ANNOTATION_LENGTH): New macro.
16350 (ADD_ANNOTATION_DATA): New macro.
16351 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16352 ADD_ANNOTATION_DATA. Change the format of annotation data.
16353 (ADD_CHARSET_DATA): New macro.
16354 (emacs_mule_char): New argument ID. Change callers.
16355 (decode_coding_emacs_mule, decode_coding_iso_2022)
16356 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16357 Produce charset annotation data in coding->charbuf.
16358 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16359 to charset annotation data in coding->charbuf.
16360 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16361 coding->common_flags if the coding system is iso-2022 based and
16362 uses designation.
16363 (produce_composition): Adjust for the new annotation data format.
16364 (produce_charset): New function.
16365 (produce_annotation): Handle charset annotation.
16366 (handle_composition_annotation, handle_charset_annotation): New
16367 functions.
16368 (consume_chars): Handle charset annotation. Utilize the above two
16369 functions.
16370 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16371 buffer, get the deleted text as a string and set
16372 coding->src_object to that string.
16373 (detect_coding, detect_coding_system): Use the new struct
16374 coding_detection_info.
16375
16376 * coding.h (struct coding_detection_info): New structure.
16377 (struct coding_system): Adjust prototype of the member `detector'.
16378 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16383
163842008-02-01 Dave Love <fx@gnu.org>
16385
16386 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16387 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16388 to new local and nullify apropos_accumulate before returning.
16389 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16390
163912008-02-01 Kenichi Handa <handa@m17n.org>
16392
16393 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16394 correctly.
e3eea1fc 16395
aac0c6e3
MR
163962008-02-01 Dave Love <fx@gnu.org>
16397
16398 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16399
164002008-02-01 Kenichi Handa <handa@m17n.org>
16401
16402 The following changes are to make character composition happen
16403 automatically on displaying.
16404
16405 * Makefile.in (lisp, shortlisp): Add composite.elc.
16406
16407 * composite.h (Qauto_composed, Vauto_composition_function)
16408 (Qauto_composition_function): Extern them.
16409
16410 * composite.c (Vcomposition_function_table)
16411 (Qcomposition_function_table): Delete variables.
16412 (Qauto_composed, Vauto_composition_function)
16413 (Qauto_composition_function): New variables.
16414 (run_composition_function): Don't call
16415 compose-chars-after-function.
16416 (update_compositions): Clear `auto-composed' text property.
16417 (compose_chars_in_text): Delete this function.
16418 (syms_of_composite): Staticpro Qauto_composed and
16419 Qauto_composition_function. Declare Vauto_composition_function as
16420 a Lisp variable.
16421
16422 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16423
16424 * xdisp.c (it_props): Add an entry for Qauto_composed.
16425 (handle_auto_composed_prop): New function.
16426
16427 * xselect.c (selection_data_to_lisp_data): Don't call
16428 compose_chars_in_text.
16429
164302008-02-01 Dave Love <fx@gnu.org>
16431
16432 * keyboard.c (read_char): Modify checking around use of
16433 Vkeyboard_translate_table.
16434
16435 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16436 and fix C types.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16441 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16442 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16443 the case that the last byte is '\r' correctly.
16444 (decode_coding): Flush out the unprocessed data correctly.
16445 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16446
164472008-02-01 Dave Love <fx@gnu.org>
16448
16449 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16450 Add XK_ISO... case.
16451 (xaw_scroll_callback): Revert last change.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16456
164572008-02-01 Kenichi Handa <handa@m17n.org>
16458
16459 * xfaces.c (Vface_resizing_fonts): New variable.
16460 (struct font_name): New member `resizing_ratio'.
16461 (font_resizing_ratio): New function.
16462 (split_font_name): Set font->resizing_ratio.
16463 (better_font_p): Pay attention to font->resizing_ratio.
16464 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16465 RESX, and RESY fields.
16466 (try_alternative_families): Try scalable fonts if
16467 Vscalable_fonts_allowed is not Qt.
16468 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16469
164702008-02-01 Dave Love <fx@gnu.org>
16471
16472 * xterm.c (xaw_scroll_callback): Cast correctly.
16473
164742008-02-01 Dave Love <fx@gnu.org>
16475
16476 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16477 (lispy_kana_keys): Comment out.
16478 (make_lispy_event) [XK_kana_A]: Comment out.
16479
16480 * xterm.c (xaw_scroll_callback): Cast call_data.
16481 (XTread_socket): Deal with ASCII keysyms.
16482 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16483
164842008-02-01 Dave Love <fx@gnu.org>
16485
16486 * xterm.c (Vx_keysym_table): New.
16487 (syms_of_xterm): Initialize it.
16488 (XTread_socket): Use it.
16489 From head: Eliminate incorrect optimization that tried to avoid
16490 decoding the output of X*LookupString.
16491 (x_get_font_repertory): Delete charset declaration.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16496 return 0.
16497 (Fdefine_coding_system_internal): Setup
16498 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16499
165002008-02-01 Dave Love <fx@gnu.org>
16501
16502 * coding.c (Fcheck_coding_system): Doc fix.
16503
16504 * editfns.c (Finsert_byte): Return a proper value.
16505
165062008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * coding.c (decode_coding): Fix args to translate_chars. Pay
16509 attention to Vstandard_translation_table_for_decode.
16510 (encode_coding): Fix args to translate_chars. Pay attention to
16511 Vstandard_translation_table_for_encode.
16512
16513 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16514 SINGLE_BYTE_CHAR_P.
16515
16516 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16517 not by SINGLE_BYTE_CHAR_P.
16518
16519 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16520 SINGLE_BYTE_CHAR_P.
16521
16522 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16523 SINGLE_BYTE_CHAR_P.
16524
16525 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16526 by SINGLE_BYTE_CHAR_P.
16527
16528 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16529 SINGLE_BYTE_CHAR_P.
16530
165312008-02-01 Dave Love <fx@gnu.org>
16532
16533 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16534
165352008-02-01 Dave Love <fx@gnu.org>
16536
16537 * fns.c (Flanginfo): Fix typo.
16538
16539 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16544 (detect_coding_emacs_mule, detect_coding_iso_2022)
16545 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16546 incomplete byte sequence. Don't update *mask when correctly detected.
16547 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16548 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16549 (detect_coding, detect_coding_system): Adjust for the changes above.
16550
165512008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * character.c (char_string): Rename from
16554 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16555 (string_char): Rename from string_char.
16556
16557 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16558 if C is greater than MAX_3_BYTE_CHAR.
16559 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16560 string_char instead of string_char_with_unification.
16561
165622008-02-01 Dave Love <fx@gnu.org>
16563
16564 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * keymap.c (push_key_description): Pay attention to force_multibyte.
16569
16570 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16571
165722008-02-01 Dave Love <fx@gnu.org>
16573
16574 * charset.c (define_charset_internal): Rename `supprementary'.
16575
16576 * Makefile.in (lisp, shortlisp): Remove latin-N.
16577
165782008-02-01 Dave Love <fx@gnu.org>
16579
16580 * xfns.c (x_window, x_window): Use use_xim.
16581
16582 * xterm.c (use_xim): Initialize.
16583 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16584 (x_term_init): Maybe set use_xim.
16585
16586 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * search.c (search_buffer): Fix case-fold-search of multibyte
16591 characters.
16592 (boyer_moore): Rename the last argument to char_high_bits.
16593
165942008-02-01 Kenichi Handa <handa@m17n.org>
16595
16596 * xdisp.c (display_string): Fix for the case of zero width glyph.
16597
16598 * xfns.c (x_set_font): Change the error message of the case that
16599 x_new_fontset returns Qt.
16600
16601 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16602 (Finternal_set_lisp_face_attribute): Use signal_error for the
16603 error of invalid fontset.
16604
16605 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16606 fontset, return Qt.
16607
166082008-02-01 Dave Love <fx@gnu.org>
16609
16610 * unexelf.c (unexec): Make .got handling not SGI-specific.
16611
16612 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16613
16614 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16615
16616 * keyboard.c (read_key_sequence): Fix type error.
16617
16618 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16619 type error.
16620
16621 * fontset.c (fontset_add): Return Lisp_Object.
16622
166232008-02-01 Dave Love <fx@gnu.org>
16624
16625 * charset.h (charset_ordered_list_tick): Declare extern.
16626
166272008-02-01 Kenichi Handa <handa@m17n.org>
16628
16629 The following changes (and some of 2008-02-01 changes of mine) are
16630 for handling syntax, category, and case conversion for unibyte
16631 characters by converting them to multibyte on the fly. With these
16632 changes, we don't have to setup syntax and case tables for unibyte
16633 characters in each language environment.
16634
16635 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16636 multibyte if necessary.
16637
16638 * bytecode.c (Fbyte_code): Likewise.
16639
16640 * character.h (LEADING_CODE_LATIN_1_MIN)
16641 (LEADING_CODE_LATIN_1_MAX): New macros.
16642 (unibyte_to_multibyte_table): Extern it.
16643 (unibyte_char_to_multibyte): New macro.
16644 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16645 (CHAR_LEADING_CODE): New macro.
16646 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16647
16648 * character.c (unibyte_to_multibyte_table): New variable.
16649 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16650 (multibyte_char_to_unibyte): If C is an eight-bit character,
16651 convert it to the corresponding byte value.
16652
16653 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16654 not 1, signals an error. Update the elements of
16655 unibyte_to_multibyte_table.
16656 (init_charset_once): Initialize unibyte_to_multibyte_table.
16657 (syms_of_charset): Define the charset `iso-8859-1'.
16658
16659 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16660 as is without converting it to unibyte. In a unibyte buffer,
16661 convert C to multibyte before checking the syntax.
16662
16663 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16664
16665 * minibuf.c (Fminibuffer_complete_word): Use the macro
16666 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16667
16668 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16669
16670 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16671 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16672 that is zero, convert an eight-bit char to multibyte.
16673 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16674 non-emacs case.
16675 (PATFETCH): Convert an eight-bit char to multibyte.
16676 (HANDLE_UNIBYTE_RANGE): New macro.
16677 (regex_compile): Setup the compiled pattern for multibyte chars
16678 even if the given regex string is unibyte. Use PATFETCH_RAW
16679 instead of PATFETCH in many places. To handle `charset'
16680 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16681 only for ASCII chars.
16682 (analyse_first) <exactn>: Simplify because the compiled pattern
16683 is multibyte.
16684 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16685 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16686 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16687 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16688 multibyte always 1.
16689 (re_search_2): In emacs, set the locale variable multibyte to 1,
16690 otherwise to 0. New local variable target_multibyte. Check it
16691 to decide the multibyteness of STR1 and STR2. If
16692 target_multibyte is zero, convert unibyte chars to multibyte
16693 before translating and checking fastmap.
16694 (TARGET_CHAR_AND_LENGTH): New macro.
16695 (re_match_2_internal): In emacs, set the locale variable multibyte
16696 to 1, otherwise to 0. New local variable target_multibyte. Check
16697 it to decide the multibyteness of STR1 and STR2. Use
16698 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16699 <charset, charset_not>: If multibyte is nonzero, check fastmap
16700 only for ASCII chars. Call bcmp_translate with
16701 target_multibyte, not with multibyte.
16702 <begline>: Declare the local variable C as `unsigned'.
16703 (bcmp_translate): Change the last arg name to target_multibyte.
16704
16705 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16706 the regexp pattern and the matching target. Set cp->buf.multibyte
16707 to the multibyteness of the regexp pattern. Set
16708 cp->but.target_multibyte to the multibyteness of the matching target.
16709 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16710 FETCH_STRING_CHAR_ADVANCE.
16711 (Freplace_match): Convert unibyte chars to multibyte.
16712
16713 * syntax.c (char_quoted, back_comment, scan_words)
16714 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16715 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16716 unibyte chars to multibyte.
16717 (skip_chars): Delete the arg syntaxp, and move the code for
16718 handling syntaxes to skip_syntaxes. Change callers.
16719 Fix the case that the multibyteness of STRING and the current
16720 buffer doesn't match.
16721 (skip_syntaxes): New function.
16722 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16723 SINGLE_BYTE_CHAR_P.
16724
167252008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * xfaces.c (QCfontset): New variable.
16728 (LFACE_FONTSET): New macro.
16729 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16730 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16731 (Finternal_set_lisp_face_attribute)
16732 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16733 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16734 check also LFACE_FONTSET_INDEX.
16735 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16736 attrs[LFACE_FONT_INDEX].
16737 (syms_of_xfaces): Intern and staticpro QCfontset.
16738
16739 * dispextern.h (enum lface_attribute_index): New member
16740 LFACE_FONTSET_INDEX.
16741
16742 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * coding.c (coding_set_destination): Fix coding->destination for
16747 the case converting a region.
16748 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16749 (encode_coding_object): Fix coding->dst_pos and
16750 coding->dst_pos_byte for the case converting a region.
16751
16752 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16753
16754 * character.h (BYTE8_STRING): New macro.
16755
16756 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16757
167582008-02-01 Kenichi Handa <handa@m17n.org>
16759
16760 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16761 characters by octal form.
16762
16763 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16764
16765 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16766 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16767 _fetch_multibyte_char_len.
16768 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16769
16770 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16771
16772 * casefiddle.c (casify_object): Simplify. Handle the case that
16773 the case conversion change the byte length.
16774 (casify_region): Likewise.
16775
16776 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16777
16778 * character.c (_fetch_multibyte_char_len): Delete this variable.
16779 (syms_of_character): Setup Vprintable_chars.
16780
16781 * editfns.c (Fchar_equal): Fix for the unibyte case.
16782 (Finsert_byte): New function.
16783 (syms_of_editfns): Defsubr it.
16784
16785 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16786 of direct code 0x3ffff.
16787
16788 * search.c (Freplace_match): Fix for the unibyte case.
16789
167902008-02-01 Kenichi Handa <handa@m17n.org>
16791
16792 * lread.c (safe_to_load_p): Fix the logic.
16793
16794 * syntax.c (scan_words): Don't treat characters belonging to
16795 different scripts as constituting a word.
16796
16797 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16798
16799 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16800
16801 * emacs.c (main): In the case of --unibyte, instead of aborting on
16802 finding non-empty buffer, make it unibyte.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16807 to create a fontset.
16808
168092008-02-01 Dave Love <fx@gnu.org>
16810
16811 * character.c (Funibyte_char_to_multibyte): Doc fix.
16812
16813 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16814
168152008-02-01 Kenichi Handa <handa@m17n.org>
16816
16817 * fontset.c (fontset_add): Make the type `int'.
16818 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16819
16820 * character.c (unibyte_char_to_multibyte)
16821 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16822 charset_unibyte, not charset_primary.
16823
16824 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16825
16826 * charset.c (charset_unibyte): Rename from charset_primary.
16827 (Funibyte_charset): Rename from Fprimary_charset.
16828 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16829 (syms_of_charset): Adjust for the above changes.
16830
16831 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16832 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16833 it->multibyte_p is zero.
16834
16835 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16836 Delete extern.
16837
168382008-02-01 Kenichi Handa <handa@m17n.org>
16839
16840 * coding.c (Fdefine_coding_system_internal): Fix category setting
16841 for a coding system of type iso-2022.
16842
168432008-02-01 Kenichi Handa <handa@m17n.org>
16844
16845 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16846
168472008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 * syntax.c (Vnext_word_boundary_function_table): New variable.
16850 (next-word-boundary-function-table): Declare it as a Lisp variable
16851 in syms_of_syntax.
16852 (scan_words): Call functions in Vnext_word_boundary_function_table
16853 if any.
16854
16855 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16856
16857 * fontset.c (fs_load_font): If fontp->charset is not negative,
16858 return fontp without setting its members.
16859
168602008-02-01 Dave Love <fx@gnu.org>
16861
16862 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16863
16864 * m/sparc.h (HAVE_ALLOCA): Delete.
16865
16866 * s/irix6-5.h: Don't include strings.h.
16867 (bcopy, bzero, bcmp): Don't undef.
16868
16869 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16870
16871 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16872 (TIOCSIGSEND): Don't test IRIX6.
16873 (bcopy, bzero, bcmp): Define conditionally.
16874
168752008-02-01 Kenichi Handa <handa@m17n.org>
16876
16877 * buffer.c (Qas, Qmake, Qto): New variables.
16878 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16879 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16880
16881 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16882 we are inserting a process output into a multibyte buffer.
16883
16884 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16885 multibyte_char_to_unibyte.
16886
16887 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16888 by the primary charset, make it eight-bit char.
16889 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16890
16891 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16892 (charset_8_bit__control, charset_8_bit_graphic)
16893 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16894 (define_charset_internal): New function.
16895 (syms_of_charset): Call define_charset_internal for pre-defined
16896 charsets.
16897
16898 * charset.h (charset_8_bit): Extern it.
16899
16900 * coding.c (make_conversion_work_buffer): Adjust for the change
16901 of Fset_buffer_multibyte.
16902 (encode_coding_raw_text): Increment p0 in the loop.
16903
16904 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16905
16906 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16907 for the change of Fset_buffer_multibyte.
16908
16909 * fns.c (Fstring_to_multibyte): New function.
16910 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16911
169122008-02-01 Dave Love <fx@gnu.org>
16913
16914 * xfns.c (x_put_x_image): Declare args.
16915
16916 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16917 (try_font_list): Declare an arg.
16918
16919 * xdisp.c (message2_nolog, set_message): Declare an arg.
16920
16921 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16922
16923 * syntax.c (scan_sexps_forward): Declare an arg.
16924
16925 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16926 Declare an arg.
16927
16928 * lisp.h (Fnew_fontset): Declare.
16929
16930 * keymap.c (push_key_description): Call CHARACTERP correctly.
16931
16932 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16933 (face_for_char): Delete unused vars.
16934 (Fset_fontset_font): Doc fix. Delete unused vars.
16935
16936 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16937
16938 * composite.c (update_compositions): Declare arg.
16939
16940 * cm.c (calccost, cmgoto): Declare args.
16941
16942 * charset.c: Remove `emacs' conditional. Doc fixes.
16943 (map_char_table_for_charset): Declare.
16944
16945 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16946
16947 * ccl.c: Remove `emacs' conditional.
16948
169492008-02-01 Kenichi Handa <handa@m17n.org>
16950
16951 The following changes are to allow specifying multiple font
16952 patterns for a character range (specified by script or charset).
16953
16954 * Makefile.in (abbrev.o): Depend on syntax.h.
16955 (xfaces.o): Depend on charset.h.
16956
16957 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16958 SINGLE_BYTE_CHAR_P.
16959
16960 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16961
16962 * character.h (Vchar_script_table): Extern it.
16963
16964 * character.c (Vscript_alist): Delete.
16965 (Vchar_script_table, Qchar_script_table): New variable.
16966 (syms_of_character): Declare Vchar_script_table as a lisp variable
16967 and initialize it.
16968
16969 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16970 have property char-table-extra-slots, make no extra slot.
16971
16972 * dispextern.h (struct face): Delete member `charset'.
16973 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16974 SINGLE_BYTE_CHAR_P.
16975 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16976 Add prototypes.
16977 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16978 (generate_ascii_font_name): Rename from generate_ascii_font.
16979
16980 * fontset.h (get_font_repertory_func): New prototype.
16981 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16982 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16983
16984 * fontset.c (Qprepend, Qappend): New variables.
16985 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16986 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16987 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16988 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16989 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16990 (load_font_get_repertory): New functions.
16991 (fontset_set): Delete.
16992 (fontset_face): New arg FACE. Return face ID, not face.
16993 Complete re-write to handle new fontset structure. Change caller.
16994 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16995 (face_for_char): Don't call lookup_face.
16996 (make_fontset_for_ascii_face): New arg FACE.
16997 (fs_load_font): New arg CHARSET_ID. Don't check
16998 Vfont_encoding_alist here.
16999 (find_font_encoding): New function.
17000 (list_fontsets): Use STRINGP, not ! NILP.
17001 (accumulate_script_ranges): New function.
17002 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17003 re-written to handle new fontset structure.
17004 (Ffontset_font): Return a copy of element.
17005 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17006 docstring of font-encoding-alist.
17007
17008 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17009 (Fset_fotset_font): Fix arguments to 5.
17010
17011 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17012
17013 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17014 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17015 (highlight_trailing_whitespace): Adjust for the change of
17016 lookup_named_face.
17017
17018 * xfaces.c: Include charset.h.
17019 (load_face_font): Delete argument C. Change caller.
17020 (generate_ascii_font_name): Rename from generate_ascii_font.
17021 (font_name_registry): New function.
17022 (cache_face): Store ascii faces before non-ascii faces in buckets.
17023 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17024 Lookup only ascii faces.
17025 (lookup_non_ascii_face): New function.
17026 (lookup_named_face): Delete argument C. Change caller.
17027 (lookup_derived_face): Delete argument C. Change caller.
17028 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17029 a string, just call font_list with it.
17030 (choose_face_font): Delete arguments FACE and C. New arg
17031 FONT_SPEC. Change caller.
17032 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17033 Change caller.
17034 (realize_non_ascii_face): New function.
17035 (realize_x_face): Call load_face_font here.
17036 (realize_tty_face): Delete argument C. Change caller.
17037 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17038 get a face ID.
17039 (dump_realized_face): Don't print charset of FACE.
17040
17041 * xfns.c (x_set_font): Always call x_new_fontset and
17042 store_frame_parameter.
17043 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17044 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17045
17046 * xterm.h (x_get_font_repertory): Extern it.
17047
17048 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17049 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17050 it->multibyte_p is zero.
17051 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17052 (x_new_fontset): If FONTSETNAME doesn't match any existing
17053 fontsets, create a new one.
17054 (x_get_font_repertory): New function.
17055
170562008-02-01 Kenichi Handa <handa@m17n.org>
17057
17058 * coding.c (Ffind_coding_systems_region_internal): Detect an
17059 ASCII only string correctly.
17060
17061 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17062 version is 0.
17063
170642008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * lread.c: Include "coding.h".
17067 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17068 (load_each_byte, unread_char): New variables.
17069 (readchar_backlog): Delete.
17070 (readchar): Return a character unless load_each_byte is nonzero.
17071 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17072 cons. If unread_char is not -1, simply return it.
17073 (unreadchar): Handle the case that readcharfun is
17074 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17075 (read_multibyte): Delete.
17076 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17077 (read_emacs_mule_char): New functions.
17078 (Fload): Even if the file doesn't have the extension ".elc", if
17079 safe_to_load_p returns a positive version number, assume that the
17080 file contains bytecompiled code. If the version is less than 22,
17081 load the file while decoding multibyte sequences by emacs-mule.
17082 (readevalloop): Don't use readchar_backlog.
17083 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17084 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17085 (read_escape): Delete the arg BYTEREP.
17086 (read1): Set load_each_byte to 1 temporarily while handling
17087 #@NUMBER. Don't call read_multibyte.
17088 (read_vector): Call Fread with a cons. If readcharfun is
17089 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17090 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17091 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17092 and Qload_force_doc_strings.
17093
170942008-02-01 Kenichi Handa <handa@m17n.org>
17095
17096 * xdisp.c (face_before_or_after_it_pos): Call
17097 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17098
170992008-02-01 Kenichi Handa <handa@m17n.org>
17100
17101 * character.h (TRAILING_CODE_P): New macro.
17102 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17103 (string_char_with_unification): Fix prototype.
17104 (Vscript_alist): Extern it.
17105
17106 * character.c (Vscript_alist): New variable.
17107 (string_char_with_unification, str_as_unibyte)
17108 (string_escape_byte8): Add `const' to local variables.
17109 (syms_of_character): Declare script-alist as a Lisp variable.
17110
17111 * charset.h (Vcharset_ordered_list): Extern it.
17112 (charset_ordered_list_tick): Extern it.
17113 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17114 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17115 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17116 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17117 (Funify_charset): Adjust for the change of Funify_charset.
17118
17119 * charset.c (charset_ordered_list_tick): New variable.
17120 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17121 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17122 deunify intead of unify a charset.
17123 (string_xstring_p): Add `const' to local variables.
17124 (find_charsets_in_text): Add `const' to arguments and local variables.
17125 (encode_char): Adjust for the change of Funify_charset. Fix
17126 detecting of invalid code.
17127 (Fset_charset_priority): Increment charset_ordered_list_tick.
17128 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17129 and TO_CODE.
17130
17131 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17132 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17133 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17134 (decode_coding_ccl, consume_chars)
17135 (Ffind_coding_systems_region_internal)
17136 (Fcheck_coding_systems_region): Add `const' to local variables.
17137
17138 * print.c (print_object): Use octal form for printing the
17139 contents of a bool vector.
17140
171412008-02-01 Dave Love <fx@gnu.org>
17142
17143 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17144 <version == 20>: Refuse to load.
17145
171462008-02-01 Dave Love <fx@gnu.org>
17147
17148 * fns.c: Move coding.h.
17149 (Qcodeset, Qdays, Qmonths): New.
17150 (concat): Use CHARACTERP instead of INTEGERP.
17151 (Flocale_codeset): Delete.
17152 (Flanginfo): New function.
17153 (syms_of_fns): Change accordingly.
17154
17155 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17156
171572008-02-01 Dave Love <fx@gnu.org>
17158
17159 * casetab.c (init_casetab_once, init_casetab_once): Fix
17160 CHAR_TABLE_SET call.
17161
17162 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17163
17164 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17165
17166 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17167 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17168 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17169
17170 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17171
17172 * coding.c (ENCODE_DESIGNATION, decode_eol)
17173 (make_conversion_work_buffer, code_conversion_restore)
17174 (Fdefine_coding_system_internal): Convert Lisp types.
17175 (code_conversion_restore): Use EQ, not ==.
17176 (Fencode_coding_string): Fix code_convert_string call.
17177
17178 * coding.h (code_convert_region): Fix prototype.
17179
17180 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17181
17182 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17183 (Ffontset_info): Convert Lisp types.
17184
17185 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17186
17187 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17188
17189 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17190
17191 * chartab.c: Include "...h", not <...h> in some cases.
17192
17193 * callproc.c (Fcall_process): Remove unused variables.
17194
171952008-02-01 Dave Love <fx@gnu.org>
17196
17197 * coding.c (Fset_coding_system_priority): Allow null arg list.
17198
171992008-02-01 Dave Love <fx@gnu.org>
17200
17201 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17202 (Fself_insert_and_exit): Use CHARACTERP.
17203
17204 * callproc.c (Fcall_process): Remove unused vars.
17205
17206 * xterm.c (XTread_socket): Add extra dead keysyms.
17207
17208 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17209
17210 * dispextern.h: Remove prototypes for redraw_frame,
17211 redraw_garbaged_frames.
17212
17213 * cmds.c (Fself_insert_command): Use CHARACTERP.
17214
17215 * chartab.c (make_sub_char_table): Remove unused var.
17216 (Fset_char_table_default, Fmap_char_table): Doc fix.
17217
17218 * keymap.c (access_keymap): Remove generic char code.
17219 (push_key_description): Use CHARACTERP.
17220
172212008-02-01 Dave Love <fx@gnu.org>
17222
17223 * charset.c: Doc fixes.
17224 (Funify_charset): Extra checking.
17225
172262008-02-01 Dave Love <fx@gnu.org>
17227
17228 * lread.c: Remove some unused variables.
17229 (safe_to_load_p): If safe, return the magic number version byte.
17230 (Fload): Maybe use load-with-code-conversion.
17231
172322008-02-01 Kenichi Handa <handa@m17n.org>
17233
17234 * category.c (Fmodify_category_entry): Don't modify the contents
17235 of category_set for characters out of the range. Avoid
17236 unnecessary modification.
17237
17238 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17239 Vchar_unify_table. The default value of the table is now nil.
17240
17241 * character.c (syms_of_character): Setup Vchar_width_table for
17242 eight-bit-control and raw-byte chars.
17243
17244 * charset.h (enum define_charset_arg_index): Delete
17245 charset_arg_parents and add charset_arg_subset and
17246 charset_arg_superset.
17247 (enum charset_attr_index): Delete charset_parents and add
17248 charset_subset and charset_superset.
17249 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17250 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17251 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17252 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17253 (CHARSET_SUPERSET): New macros.
17254 (charset_work): Extern it.
17255 (ENCODE_CHAR): Use charset_work.
17256 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17257 (map_charset_chars): Extern it.
17258
17259 * charset.c (load_charset_map): Set the default value of encoder
17260 and deunifier char-tables to nil.
17261 (map_charset_chars): Change argument. Change callers. Use
17262 map_char_table_for_charset instead of map_char_table.
17263 (Fmap_charset_chars): New optional args from_code and to_code.
17264 (Fdefine_charset_internal): Adjust for the change of
17265 `define-charset' (:parents -> :subset or :superset).
17266 (charset_work): New variable.
17267 (encode_char, syms_of_charset): Adjust for the change of
17268 Fdefine_charset_internal.
17269 (Ffind_charset_string): Setup the vector `charsets' correctly.
17270
17271 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17272 the previous change.
17273 (char_table_ref_and_range): Adjust for the above change.
17274 (map_sub_char_table_for_charset): New function.
17275 (map_char_table_for_charset): New function.
17276
17277 * keymap.c (describe_vector): Handle a char-table directly here.
17278 (describe_char_table): Delete.
17279
17280 * lisp.h (map_charset_chars): Delete.
17281
172822008-02-01 Dave Love <fx@gnu.org>
17283
17284 * fns.c (count_combining): Comment out (unused).
17285 (Flocale_codeset): New.
17286 (syms_of_fns): Defsubr it.
17287
17288 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17289 (size_t): Remove.
17290
172912008-02-01 Dave Love <fx@gnu.org>
17292
17293 * Makefile.in (chartab.o): Depend on charset.h.
17294
172952008-02-01 Kenichi Handa <handa@m17n.org>
17296
17297 * character.c (syms_of_character): Set the default value of
17298 Vprintable_chars to Qnil.
17299
173002008-02-01 Dave Love <fx@gnu.org>
17301
17302 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17303
173042008-02-01 Kenichi Handa <handa@m17n.org>
17305
17306 * charset.c (load_charset_map): Handle the case that from < to
17307 correctly.
17308
17309 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17310 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17311 Pay attention to raw-8-bit chars.
17312
173132008-02-01 Kenichi Handa <handa@m17n.org>
17314
17315 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17316 It is not bytecompiled now.
17317
17318 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17319 (charset_jisx0208): New variables.
17320 (Fdefine_charset_internal): Setup them if appropriate.
17321 (init_charset_once): Initialize them to -1.
17322
17323 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17324 (charset_jisx0208): Extern them.
17325
17326 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17327 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17328 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17329 (setup_iso_safe_charsets): Fix arguments to Fassq.
17330 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17331 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17332 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17333 (encode_coding_iso_2022): Change the 1st arg to
17334 ENCODE_ISO_CHARACTER to a variable.
17335
173362008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * charset.h (enum define_charset_arg_index): New enums
17339 charset_arg_min_code and charset_arg_max_code.
17340 (struct charset): New member char_index_offset.
17341
17342 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17343 Take charset->char_index_offset into account.
17344 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17345 args[charset_arg_max_code]. Setup charset.char_index_offset.
17346 (syms_of_charset): Fix args to Fdefine_charset_internal.
17347
173482008-02-01 Dave Love <fx@gnu.org>
17349
17350 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17351
173522008-02-01 Dave Love <fx@gnu.org>
17353
17354 * coding.c: Doc fixes.
17355 (Fcoding_system_aliases): Fix return value.
17356 (Qmac): Remove (duplicated) definition.
17357
173582008-02-01 Dave Love <fx@gnu.org>
17359
362654a6
JB
17360 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17361 New functions.
aac0c6e3
MR
17362
17363 * character.c (Fstring): Doc fix.
17364
17365 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17366
362654a6 17367 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17368 (font-encoding-alist): Doc fix.
17369
173702008-02-01 Dave Love <fx@gnu.org>
17371
17372 * term.c (costs_set): Declare static, non-initialized for pcc.
17373 (encode_terminal_code): Remove unused var.
17374
17375 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17376 for K&R.
17377
17378 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17379
17380 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17381 (suffixes): Move out of make_subsidiaries for K&R.
17382
17383 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17384
17385 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17386
173872008-02-01 Dave Love <fx@gnu.org>
17388
17389 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17390
17391 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17392
173932008-02-01 Yong Lu <lyongu@asia-infonet.com>
17394
17395 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17396
17397 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17398
173992008-02-01 Kenichi Handa <handa@m17n.org>
17400
17401 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17402 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17403
174042008-02-01 Kenichi Handa <handa@m17n.org>
17405
17406 * coding.c (decode_coding_charset): Adjust for the change of
17407 Fdefine_coding_system_internal.
17408 (Fdefine_coding_system_internal): For a coding system of
17409 `charset' type, store a list of charset IDs in
17410 `charset_attr_charset_valids' element of coding attributes.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17415 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17416 caller. Handle 2-byte and 3-byte charsets correctly.
17417 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17418 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17419 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17420 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17421 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17422 sequence.
17423 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17424 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17425 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17426 and alt&rule composition.
17427 (decode_coding_iso_2022): Handle composition correctly.
17428 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17429
17430 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17431 re-defining a charset. If the charset has :emacs-mule-id, setup
17432 emacs_mule_bytes.
17433 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17438 (encode_coding_big5, encode_coding_charset): If coding requires safe
17439 encoding, produce a character specified by
17440 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17441
174422008-02-01 Dave Love <fx@gnu.org>
17443
17444 * xterm.c (XSetIMValues): Declare.
17445
17446 * process.c: Conditionally include sys/wait.h, pty.h.
17447
17448 * print.c (print_object): Fix print format for 64-bit systems.
17449
17450 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17451
17452 * buffer.c (emacs_strerror): Declare.
17453
17454 * fontset.c (Fclear_face_cache): Declare.
17455 (accumulate_font_info): Comment-out (unused).
17456 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17457 variables.
17458
17459 * character.h (string_escape_byte8): Declare.
17460
17461 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17462 unused vars.
17463 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17464 (Fmap_charset_chars): Doc fix.
17465
17466 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17467 (Fset_coding_system_priority, Fset_coding_system_priority)
17468 (Fdefine_coding_system_internal): Doc fix.
17469
174702008-02-01 Dave Love <fx@gnu.org>
17471
17472 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17473
174742008-02-01 Kenichi Handa <handa@m17n.org>
17475
17476 * character.c (string_escape_byte8): Make multibyte string with
17477 correct size.
17478
17479 * charset.c (Fmake_char): Delete unnecessary code.
17480
174812008-02-01 Kenichi Handa <handa@m17n.org>
17482
17483 * xfns.c (x_encode_text): Allocate coding.destination here, and
17484 call encode_coding_object with dst_object Qnil.
17485
17486 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17487 multibyte form correctly.
17488
17489 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17490 against Vfont_encoding_alist.
17491
17492 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17493 handling of charset list.
17494 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17495 (decode_coding_object): Move point to coding->dst_pos before
17496 calling post-read-conversion function.
17497 (encode_coding_object): Give correct arguments to
17498 pre-write-conversion. Ignore the return value of
17499 pre-write-conversion function. Pay attention to the case that
17500 pre-write-conversion changes the current buffer. If dst_object is
17501 Qt, even if coding->src_bytes is zero, allocate at least one byte
17502 to coding->destination.
17503
17504 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17505
17506 * charset.c (Fmake_char): Make it more backward compatible.
17507 (Fmap_charset_chars): Fix docstring.
17508
175092008-02-01 Dave Love <fx@gnu.org>
17510
17511 * coding.c: Doc fixes.
17512 (Fdefine_coding_system_alias): Use names, not symbols, in
17513 coding-system-alist.
17514
175152008-02-01 Kenichi Handa <handa@m17n.org>
17516
17517 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17518 of calling free_realized_face.
17519
175202008-02-01 Yong Lu <lyongu@asia-infonet.com>
17521
17522 * charset.c (read_hex): Don't treat SPC as a comment starter.
17523 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17524 (Fdecode_char): Fix typo.
17525
175262008-02-01 Kenichi Handa <handa@m17n.org>
17527
17528 * charset.h (struct charset): New member `code_space_mask'.
17529
17530 * coding.c (coding_set_source): Delete the local variable beg_byte.
17531 (encode_coding_charset, Fdefine_coding_system_internal):
17532 Delete the local variable charset.
17533 (Fdefine_coding_system_internal): Setup
17534 attrs[coding_attr_charset_valids] correctly.
17535
17536 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17537 member to check if CODE is valid or not.
17538 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17539 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17540 is within the range of charset->min_code and carset->max_code.
17541
175422008-02-01 Dave Love <fx@gnu.org>
17543
17544 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17545
17546 * dispextern.h (generate_ascii_font): Fix return type.
17547
17548 * xfaces.c (generate_ascii_font): Fix arg declaration.
17549
17550 * coding.c (coding_inherit_eol_type)
17551 (Fset_terminal_coding_system_internal)
17552 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17553
175542008-02-01 Kenichi Handa <handa@m17n.org>
17555
17556 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17557 multiple charsets correctly.
17558
175592008-02-01 Kenichi Handa <handa@m17n.org>
17560
17561 * search.c (boyer_moore): Fix handling of multibyte character
17562 translation.
17563
17564 * xdisp.c (display_mode_element): When the variable `elt' is
17565 changed, update `this' and `lisp_string'.
17566
175672008-02-01 Kenichi Handa <handa@m17n.org>
17568
17569 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17570
17571 * callproc.c (Fcall_process): Be sure to give the current buffer
17572 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17573
17574 * charset.c (struct charset_map_entries): New struct.
17575 (load_charset_map): Rename from parse_charset_map. New args
17576 entries and n_entries. Change caller.
17577 (load_charset_map_from_file): Rename from load_charset_map.
17578 Change caller. New arg control_flag. Call load_charset_map at
17579 the tail.
17580 (load_charset_map_from_vector): New function.
17581 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17582 (encode_char): If the charset is compact, change a character index
17583 to a code point.
17584
17585 * coding.c (coding_alloc_by_making_gap): Check the case that the
17586 source and destination are the same correctly.
17587 (decode_coding_raw_text): Set coding->consumed_char and
17588 coding->consumed to 0.
17589 (produce_chars): If coding->chars_at_source is nonzero, update
17590 coding->consumed_char and coding->consumed before calling
17591 alloc_destination.
17592 (Fdefine_coding_system_alias): Register ALIAS in
17593 Vcoding_system_alist.
17594 (syms_of_coding): Define `no-conversion' coding system at the tail.
17595
17596 * fileio.c (Finsert_file_contents): Set coding_system instead of
17597 val. If the current buffer is multibyte, always call
17598 decode_coding_gap.
17599
17600 * xfaces.c (try_font_list): Give higher priority to fontset's
17601 family than face's family.
17602
176032008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 * callproc.c (Fcall_process): Be sure to give the current buffer
17606 to decode_coding_c_string.
17607
17608 * xfaces.c (try_font_list): Give a family specified in a fontset
17609 higher priority than a family specified in a face.
17610
176112008-02-01 Kenichi Handa <handa@m17n.org>
17612
17613 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17614 Fix arguments to insert_from_buffer.
17615
17616 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17617
176182008-02-01 Kenichi Handa <handa@m17n.org>
17619
17620 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17621 (decode_coding_gap): Set coding->dst_multibyte correctly.
17622
176232008-02-01 Kenichi Handa <handa@m17n.org>
17624
17625 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17626 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17627 (encode_coding_utf_16): Substitute coding->default_char for
17628 non-Unicode characters.
17629 (decode_coding): Don't call record_insert here.
17630 (setup_coding_system): Initialize `surrogate' of
17631 coding->spec.utf_16 to 0.
17632 (EMIT_ONE_BYTE): Fix for multibyte case.
17633
17634 * insdel.c (insert_from_gap): Call record_insert.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * casefiddle.c (casify_region): Fix multibyte case.
17639
17640 * character.c (c_string_width): Add return type `int'.
17641 (char_string_with_unification): Delete arg ADVANCED.
17642
17643 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17644 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17645 (CHAR_STRING_ADVANCE): Make it do-while statement.
17646
17647 * chartab.c (sub_char_table_set_range): Optimize for the case
17648 DEPTH == 3. Add workaround code for a GCC optimization bug.
17649
17650 * charset.c (parse_charset_map): Remove an unused variable.
17651
17652 * coding.c: Delete unused variables.
17653
17654 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17655 earlier. If inserted is zero and the coding system doesn't
17656 require flushing, don't call decode_coding_gap.
17657
17658 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17659
176602008-02-01 Kenichi Handa <handa@m17n.org>
17661
17662 The following changes are for using Unicode as an internal
17663 character model, and use UTF-8 format for buffer/string
17664 representation.
17665
17666 * .gdbinit (xchartable): Adjust for the change of char table structure.
17667 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17668
17669 * Makefile.in (obj): Add character.o and chartab.o.
17670 (lisp, shortlisp): Remove utf-8.elc.
17671 (*.o): For many files, change dependency on charset.h to
17672 character.h, and add dependency on character.h.
17673 (character.o, chartab.o): New targets.
17674
17675 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17676 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17677 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17678 of "charset.h".
17679
17680 * dired.c, filelock.c: Include "character.h".
17681
17682 * alloc.c: Include "character.h" instead of "charset.h".
17683 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17684 (syms_of_alloc): Remove defsubr for Smake_char_table.
17685
17686 * buffer.c: Include "character.h" instead of "charset.h", don't
17687 include "coding.h".
17688 (Fset_buffer_multibyte): Adjust for UTF-8.
17689
17690 * buffer.h: EXFUN Fbuffer_live_p.
17691
17692 * callproc.c: Include "character.h" instead of "charset.h".
17693 (Fcall_process): Big change for the new code-conversion APIs.
17694
17695 * casetab.c: Include "character.h" instead of "charset.h".
17696 (set_canon, set_identity, shuffle): Adjust for the new
17697 map_char_table spec.
17698 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17699 accessing the char table structure.
17700
17701 * chartab.c: New file that implements char table.
17702
17703 * category.c: Include "character.h".
17704 (copy_category_entry): New function.
17705 (copy_category_table): Call map_char_table and copy_category_entry.
17706 (Fmake_category_table): Initialize all top-level slots.
17707 (char_category_set): New function.
17708 (modify_lower_category_set): Delete.
17709 (Fmodify_category_entry): Call char_table_ref_and_range.
17710
17711 * category.h (CATEGORY_SET): Just call char_category_set.
17712
17713 * ccl.c: Include "character.h".
17714 (Qccl, Qcclp): New variables.
17715 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17716 it's less than 256.
17717 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17718 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17719 and DST type.
17720 (ccl_driver): Change types of argument, adjust code accordingly.
17721 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17722 ccl_driver.
17723 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17724
17725 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17726 New members src_multibyte, dst_multibyte, consumed, and produced.
17727 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17728 (CODING_SPEC_CCL_PROGRAM): New macro.
17729 (ccl_driver): Update prototype.
17730 (Qccl, Qcclp, Fccl_program_p): Extern them.
17731 (CHECK_CCL_PROGRAM): New macro.
17732
17733 * character.c, character.h, chartab.c: New files.
17734
17735 * charset.c: Mostly re-written. Move character and multibyte sequence
17736 handling codes to character.c.
17737
17738 * charset.h: Mostly re-written. Move character and multibyte sequence
17739 handling codes to character.h.
17740
17741 * coding.c, coding.h: Mostly re-written.
17742
17743 * composite.c: Include "character.h" instead of "charset.h".
17744 (CHAR_WIDTH): Move to character.h.
17745 (HASH_KEY, HASH_VALUE): Delete.
17746
17747 * composite.h (enum composition_method): Change order of enumeration
17748 symbols.
17749
17750 * data.c: Include "character.h" instead of "charset.h".
17751 (Faref): Call CHAR_TABLE_REF for a char table.
17752 (Faset): Call CHAR_TABLE_SET for a char table.
17753
17754 * dispextern.h (free_realized_face, check_face_attribytes)
17755 (generate_ascii_font): Extern them.
17756 (free_realized_multibyte_face): Delete extern.
17757
17758 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17759 table structure.
17760
17761 * editfns.c: Include "character.h" instead of "charset.h".
17762 (Fchar_to_string): Always call CHAR_STRING.
17763
17764 * emacs.c (main): Call init_charset_once, init_charset,
17765 syms_of_chartab, and syms_of_character.
17766
17767 * fileio.c: Include "character.h" instead of "charset.h".
17768 (Finsert_file_contents): Big change for the new code-conversion API.
17769 (choose_write_coding_system, Fwrite_region): Likewise.
17770 (build_annotations_2): Delete.
17771 (e_write): Big change for the new code-conversion API.
17772
17773 * fns.c: Include "character.h" instead of "charset.h".
17774 (copy_sub_char_table): Move to chartab.c.
17775 (Fcopy_sequence): Call copy_char_table for a char table.
17776 (concat): Delete codes calling count_multibyte.
17777 (string_char_to_byte, string_byte_to_char): Adjust for the new
17778 multibyte form.
17779 (internal_equal): Adjust for the change of char table structure.
17780 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17781 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17782 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17783 (char_table_translate, optimize_sub_char_table)
17784 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17785 chartab.c.
17786 (char_table_ref_and_index): Delete.
17787 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17788 (Fmd5): Call preferred_coding_system instead of accessing
17789 Vcoding_category_list. Adjust for the new code-conversion API.
17790 (syms_of_fns): Move defsubr for char table related functions to
17791 chartab.c.
17792
17793 * fontset.c: Mostly re-written.
17794
17795 * fontset.h (struct font_info): Change type of the member encoding_type.
17796 (enum FONT_SPEC_INDEX): New enum.
17797 (fontset_font_pattern, fs_load_font): Update prototype.
17798 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17799
17800 * indent.c: Include "character.h" instead of "charset.h".
17801 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17802
17803 * insdel.c: Include "character.h" instead of "charset.h".
17804 (copy_text): Don't refer to Vnonascii_translation_table.
17805 (insert_from_gap): New function.
17806
17807 * keyboard.c: Include "character.h" instead of "charset.h".
17808 (command_loop_1): Never call direct_output_forward_char before
17809 a non-ASCII character.
17810 (read_char): If Vkeyboard_translate_table is a char table, always
17811 translate a character.
17812
17813 * keymap.c: Include "character.h".
17814 (store_in_keymap): Handle the case that IDX is a cons.
17815 (Fdefine_key): Handle the case that KEY is a cons and the car part
17816 is also a cons (range).
17817 (push_key_description): Adjust for the new character code.
17818 (describe_vector): Call describe_char_table for a char table.
17819 (describe_char_table): New function.
17820
17821 * keymap.h (describe_char_table): Extern it.
17822
17823 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17824 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17825 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17826 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17827 Delete.
17828 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17829 structure.
17830 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17831 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17832 (CHARTAB_SIZE_BITS_3): New macros.
17833 (chartab_size): Extern it.
17834 (struct Lisp_Char_Table): Re-design.
17835 (struct Lisp_Sub_Char_Table): New structure.
17836 (HASH_KEY, HASH_VALUE): Move from fns.c.
17837 (CHARACTERBITS): Define as 22.
17838 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17839 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17840 (GC_SUB_CHAR_TABLE_P): New macro.
17841 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17842 (code_convert_string_norecord): Deleted extern.
17843 (init_character_once, syms_of_character, init_charset)
17844 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17845
17846 * lread.c: Include "character.h".
17847 (read_multibyte): New arg NBYTES.
17848 (read_escape): Change the meaning of returned *BYTEREP.
17849 (to_multibyte): Delete.
17850 (read1): Adjust the handling of char table and string.
17851
17852 * print.c: Include "character.h" instead of "charset.h".
17853 (print_string): Convert 8-bit raw bytes to octal form by
17854 string_escape_byte8.
17855 (print_object): Adjust for the new multibyte form. Print 8-bit
17856 raw bytes always in octal form. Handle sub char table correctly.
17857
17858 * process.c: Include "character.h" instead of "charset.h".
17859 (read_process_output, send_process): Adjust for the new
17860 code-conversion API.
17861
17862 * puresize.h (BASE_PURESIZE): Increase.
17863
17864 * regex.c: Include "character.h" instead of "charset.h".
17865 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17866 (regex_compile): Accept a range whose starting and ending
17867 character have different leading bytes.
17868 (analyse_first): Adjust for the above change.
17869
17870 * search.c: Include "character.h" instead of "charset.h".
17871 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17872 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17873
17874 * syntax.c: Include "character.h" instead of "charset.h".
17875 (syntax_parent_lookup): Delete.
17876 (Fmodify_syntax_entry): Accept a cons as CHAR.
17877 (skip_chars): Adjust for the new multibyte form.
17878 (init_syntax_once): Call char_table_set_range instead of directly
17879 accessing the structure of a char table.
17880
17881 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17882 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17883 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17884 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17885
17886 * term.c: Include "buffer.h" and "character.h".
17887 (encode_terminal_code, write_glyphs): Adjust for the new
17888 code-conversion API.
17889 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17890
17891 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17892
17893 * xdisp.c: Include "character.h".
17894 (get_next_display_element): Adjust for the new multibyte form.
17895 (disp_char_vector): Adjust for the new char table structure.
17896 (decode_mode_spec_coding): Adjust for the new structure of
17897 coding system.
17898 (decode_mode_spec): Adjust for the new code-conversion API.
17899
17900 * xfaces.c: Include "character.h" instead of "charset.h".
17901 (load_face_font): Adjust for the change of choose_face_font and
17902 FS_LOAD_FONT.
17903 (generate_ascii_font): New function.
17904 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17905 (set_font_frame_param): Adjust for the change of choose_face_font.
17906 (free_realized_face): Make it public.
17907 (free_realized_faces_for_fontset): Rename from
17908 free_realized_multibyte_face. Free also faces realized for ASCII.
17909 (choose_face_font): Change arguments. Adjust for the change of
17910 fontset_font_pattern and FS_LOAD_FONT.
17911
17912 * xfns.c: Include "character.h".
17913 (x_encode_text): Adjust for the new code-conversion API.
17914
17915 * xselect.c: Don't include "charset.h".
17916 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17917
17918 * xterm.c: Include "character.h".
17919 (x_encode_char): New argument CHARSET. Change caller.
17920 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17921 Call ENCODE_CHAR instead of SPLIT_CHAR.
17922 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17923 CHAR_WIDTH instead of CHARSET_WIDTH.
17924 (XTread_socket): Adjust for the new code-conversion API.
17925 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17926 (x_load_font): Adjust for the change of struct font.
17927
179282008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17929
17930 * xfaces.c (face_at_buffer_position): Remove unused vars.
17931
179322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17933
17934 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17935 Fix overflow checking.
17936
179372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17938
17939 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17940 Cancel previous change.
17941
179422008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17943
17944 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17945 ccl->eight_bit_control. Fix check for buffer overflow.
17946 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17947 (ccl_driver): Initialize extra_bytes to 0.
17948
179492008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17950
17951 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17952 return it ORed with ctrl_modifier.
17953
179542008-01-29 Miles Bader <miles@gnu.org>
17955
17956 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17957
179582008-01-28 Jason Rumney <jasonr@gnu.org>
17959
17960 * w32.c (stat): Don't double check for networked drive.
17961
179622008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17963
17964 * window.c (run_window_configuration_change_hook): New function.
17965 Code extracted from set_window_buffer. Set the selected frame.
17966 (set_window_buffer): Use it.
17967 * window.h (run_window_configuration_change_hook): Declare.
17968 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17969
17970 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17971
179722008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17973
17974 * Makefile.in: Remove references to unused macros.
17975
179762008-01-26 Eli Zaretskii <eliz@gnu.org>
17977
17978 * w32.c (g_b_init_get_sid_sub_authority)
17979 (g_b_init_get_sid_sub_authority_count): New static variables.
17980 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17981 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17982 (init_user_info): Use them to retrieve uid and gid.
17983 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17984 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17985 st_uid and st_gid of the file.
17986
179872008-01-26 Jason Rumney <jasonr@gnu.org>
17988
17989 * w32.c (logon_network_drive): New function.
17990 (stat): Use it.
17991
179922008-01-26 Chong Yidong <cyd@stupidchicken.com>
17993
17994 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17995 invisible text covered with an ellipsis.
17996
179972008-01-25 Richard Stallman <rms@gnu.org>
17998
17999 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18000 jump back to beginning. Move some other initializations after that.
18001 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18002 New variables.
18003 (syms_of_xdisp): Init them.
18004
18005 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18006
18007 * buffer.c (reset_buffer_local_variables):
18008 Implement `permanent-local-hook'.
18009 (Qpermanent_local_hook): New variable.
18010 (syms_of_buffer): Init and staticpro it.
18011
180122008-01-25 Michael Albinus <michael.albinus@gmx.de>
18013
18014 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18015
180162008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18017
18018 * fns.c (Fclrhash): Return TABLE.
18019
180202008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18021
18022 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18023 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18024 is set even without positional changes.
18025 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18026
18027 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18028
180292008-01-23 Jason Rumney <jasonr@gnu.org>
18030
18031 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18032
18033 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18034 the unicode range available in MULE by locale-coding-system.
18035 Improve dbcs lead byte detection. Set event timestamp and modifiers
18036 earlier.
18037
180382008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18039
18040 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18041 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18042 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18043 when used on child processes.
18044
180452008-01-21 Michael Albinus <michael.albinus@gmx.de>
18046
18047 * dbusbind.c (Fdbus_method_return_internal): Rename from
18048 Fdbus_method_return.
18049 (Fdbus_unregister_object): Move to dbus.el.
18050 (Fdbus_call_method, Fdbus_method_return_internal)
18051 (Fdbus_send_signal): Improve debug messages.
18052
180532008-01-20 Martin Rudalics <rudalics@gmx.at>
18054
18055 * undo.c (undo_inhibit_record_point): New variable.
18056 (syms_of_undo): Initialize it.
18057 (record_point): Don't record point when undo_inhibit_record_point
18058 is set.
18059
180602008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18061
18062 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18063
18064 * xdisp.c (Qauto_hscroll_mode): New var.
18065 (syms_of_xdisp): Initialize it.
18066 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18067 window's buffer.
18068 (hscroll_windows): Don't check automatic_hscrolling_p here.
18069
18070 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18071 vscroll if we're setting window-buffer to the value it already has.
18072
180732008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18074
18075 * m/intel386.h: Remove references to XENIX.
18076
180772008-01-17 Andreas Schwab <schwab@suse.de>
18078
18079 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18080 instead of HAVE_X86_64_LIB64_DIR.
18081 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18082
180832008-01-17 Glenn Morris <rgm@gnu.org>
18084
18085 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18086 to HAVE_X86_64_LIB64_DIR.
18087
180882008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18089
18090 * s/irix3-3.h:
18091 * s/irix4-0.h:
18092 * s/386-ix.h:
18093 * s/domain.h:
18094 * s/hpux9-x11r4.h:
18095 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18096
18097 * sysdep.c: Remove code containing references to symbols defined
18098 by unsupported systems.
18099
181002008-01-16 Glenn Morris <rgm@gnu.org>
18101
18102 * coding.c (select-safe-coding-system-function): Doc fix.
18103
181042008-01-15 Glenn Morris <rgm@gnu.org>
18105
18106 * config.in: Revert 2008-01-13 change: this is a generated file.
18107
181082008-01-13 Tom Tromey <tromey@redhat.com>
18109
18110 * lisp.h: Fix typo.
18111
181122008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18113
18114 * m/sequent-ptx.h:
18115 * m/sequent.h:
18116 * s/ptx.h:
18117 * s/ptx4-2.h:
18118 * s/ptx4.h: Remove files for systems no longer supported.
18119
18120 * callproc.c (Fcall_process): Fix previous change.
18121
181222008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18123
18124 * unexsunos4.c: Remove file, system not supported anymore.
18125
18126 * m/mips.h:
18127 * m/intel386.h:
18128 * callproc.c:
18129 * config.in:
18130 * ecrt0.c:
18131 * emacs.c:
18132 * fileio.c:
18133 * frame.c:
18134 * getpagesize.h:
18135 * keyboard.c:
18136 * lread.c:
18137 * process.c:
18138 * puresize.h:
18139 * sysdep.c:
18140 * systty.h:
18141 * syswait.h:
18142 * unexec.c:
18143 * xdisp.c:
18144 * alloc.c: Remove code containing references to symbols defined by
18145 unsupported systems.
18146
181472008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18148
18149 * coding.c (detect_coding_mask): Fix previous change.
18150
181512008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18152
18153 * coding.c (detect_coding_iso2022): New arg
18154 latin_extra_code_state. Allow Latin extra codes only
18155 when *latin_extra_code_state is nonzero.
18156 (detect_coding_mask): If there is a NULL byte, detect the encoding
18157 as UTF-16 or binary. If Latin extra codes exist, detect the
18158 encoding as ISO-2022 only when there's no other proper encoding is
18159 found.
18160
181612008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18162
18163 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18164 #ifdef MAC_OS.
18165
181662008-01-08 Richard Stallman <rms@gnu.org>
18167
18168 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18169
181702008-01-06 Nick Roberts <nickrob@snap.net.nz>
18171
18172 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18173 menu bar in parentheses.
18174
181752008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18176
18177 * m/7300.h:
18178 * m/acorn.h:
18179 * m/alliant-2800.h:
18180 * m/alliant.h:
18181 * m/alliant1.h:
18182 * m/alliant4.h:
18183 * m/altos.h:
18184 * m/amdahl.h:
18185 * m/apollo.h:
18186 * m/att3b.h:
18187 * m/aviion-intel.h:
18188 * m/aviion.h:
18189 * m/celerity.h:
18190 * m/clipper.h:
18191 * m/cnvrgnt.h:
18192 * m/convex.h:
18193 * m/cydra5.h:
18194 * m/delta88k.h:
18195 * m/dpx2.h:
18196 * m/dual.h:
18197 * m/elxsi.h:
18198 * m/f301.h:
18199 * m/gould-np1.h:
18200 * m/gould.h:
18201 * m/i860.h:
18202 * m/ibmps2-aix.h:
18203 * m/ibmrt-aix.h:
18204 * m/ibmrt.h:
18205 * m/irist.h:
18206 * m/is386.h:
18207 * m/isi-ov.h:
18208 * m/mega68.h:
18209 * m/mg1.h:
18210 * m/news-r6.h:
18211 * m/news-risc.h:
18212 * m/news.h:
18213 * m/nh3000.h:
18214 * m/nh4000.h:
18215 * m/ns16000.h:
18216 * m/ns32000.h:
18217 * m/nu.h:
18218 * m/orion.h:
18219 * m/orion105.h:
18220 * m/paragon.h:
18221 * m/pfa50.h:
18222 * m/plexus.h:
18223 * m/pyramid.h:
18224 * m/pyrmips.h:
18225 * m/sh3el.h:
18226 * m/sps7.h:
18227 * m/sr2k.h:
18228 * m/stride.h:
18229 * m/sun1.h:
18230 * m/sun2.h:
18231 * m/sun3-68881.h:
18232 * m/sun3-fpa.h:
18233 * m/sun3-soft.h:
18234 * m/sun3.h:
18235 * m/sun386.h:
18236 * m/symmetry.h:
18237 * m/tad68k.h:
18238 * m/tahoe.h:
18239 * m/targon31.h:
18240 * m/tek4300.h:
18241 * m/tekxd88.h:
18242 * m/tower32.h:
18243 * m/tower32v3.h:
18244 * m/ustation.h:
18245 * m/wicat.h:
18246 * m/xps100.h:
18247 * s/cxux.h:
18248 * s/cxux7.h:
18249 * s/dgux.h:
18250 * s/dgux4.h:
18251 * s/dgux5-4-3.h:
18252 * s/dgux5-4r2.h:
18253 * s/esix.h:
18254 * s/esix5r4.h:
18255 * s/hiuxmpp.h:
18256 * s/hiuxwe2.h:
18257 * s/iris3-5.h:
18258 * s/iris3-6.h:
18259 * s/isc2-2.h:
18260 * s/isc3-0.h:
18261 * s/isc4-0.h:
18262 * s/isc4-1.h:
18263 * s/newsos5.h:
18264 * s/newsos6.h:
18265 * s/osf1.h:
18266 * s/osf5-0.h:
18267 * s/riscix1-1.h:
18268 * s/riscix12.h:
18269 * s/sco4.h:
18270 * s/sco5.h:
18271 * s/sunos4-0.h:
18272 * s/sunos4-1.h:
18273 * s/sunos413.h:
18274 * s/sunos4shr.h:
18275 * s/umax.h:
18276 * s/unipl5-2.h:
18277 * s/xenix.h:
18278 * cxux-crt0.s:
18279 * unexapollo.c:
18280 * unexconvex.c:
18281 * unexenix.c:
18282 * unexsni.c: Remove files for systems no longer supported.
18283
18284 * m/intel386.h: Remove references to unsupported systems.
18285
18286 * w32.c (get_emacs_configuration): Remove reference to i860.
18287
18288 * sysdep.c: Remove dead code.
18289
182902008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18291
18292 * s/rtu.h:
18293 * m/masscomp.h: Remove files. Platform is obsolete.
18294
182952008-01-04 Michael Albinus <michael.albinus@gmx.de>
18296
18297 * dbusbind.c (Fdbus_method_return): New function.
18298 (xd_read_message): Add the serial number to the event.
18299 (Fdbus_register_method): Activate the function.
18300
183012008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18302
18303 * keyboard.c (read_key_sequence): Fix typo.
18304
183052008-01-03 Michael Albinus <michael.albinus@gmx.de>
18306
18307 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18308 (xd_signature, xd_append_arg): Handle element type detection for
18309 empty arrays.
18310 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18311 SDATA () calls; this must be solved more general.
18312 (Fdbus_register_signal): Use SBYTES instead of strlen.
18313
183142008-01-03 Magnus Henoch <magnus@zemdatav>
18315
18316 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18317 unsigned int for byte values (necessary for big-endian platform).
18318 (Fdbus_call_method): Handle the case of no returned arguments.
18319
183202007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18321
18322 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18323
183242007-12-31 Magnus Henoch <mange@freemail.hu>
18325
18326 * dbusbind.c (xd_signature): Signature of variant is just "v".
18327
183282007-12-30 Michael Albinus <michael.albinus@gmx.de>
18329
18330 * dbusbind.c: Fix several errors and compiler warnings.
18331 Reported by Tom Tromey <tromey@redhat.com>.
18332 (XD_ERROR, XD_DEBUG_MESSAGE)
18333 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18334 (xd_append_arg): Part for basic D-Bus types rewritten.
18335 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18336 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18337 appropriate.
18338 (xd_read_message): Return Qnil. Don't signal an error; it is not
18339 useful during event reading.
18340 (Fdbus_register_signal): Signal an error if the check for
18341 FUNCTIONP fails.
18342 (Fdbus_register_method): New function. The implementation is not
18343 complete, the call of the function signals an error therefore.
18344 (Fdbus_unregister_object): New function, renamed from
18345 Fdbus_unregister_signal. The initial check signals an error, if
18346 the object is not well formed.
18347
183482007-12-30 Richard Stallman <rms@gnu.org>
18349
18350 * textprop.c (get_char_property_and_overlay):
18351 Signal error if POSITION is out of range in a buffer.
18352
183532007-12-29 Martin Rudalics <rudalics@gmx.at>
18354
18355 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18356 because the original parameters are in pure storage now.
18357
183582007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18359
18360 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18361
183622007-12-22 Eli Zaretskii <eliz@gnu.org>
18363
18364 * callint.c (syms_of_callint) <command-history>: Add reference to
18365 history-length in the doc string.
18366
183672007-12-17 Jason Rumney <jasonr@gnu.org>
18368
18369 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18370 before passing as wParam.
18371
183722007-12-22 Michael Albinus <michael.albinus@gmx.de>
18373
18374 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18375 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18376 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18377 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18378 as number.
18379 (Fdbus_call_method): Fix docstring.
18380
183812007-12-21 Michael Albinus <michael.albinus@gmx.de>
18382
18383 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18384 New macros.
18385 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18386 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18387 Simplify.
18388 (xd_signature): New function.
18389 (xd_append_arg): Compute also signatures. Major rewrite.
18390 (xd_retrieve_arg): Make debug messages friendly.
18391 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18392 Check for signatures of arguments.
18393
183942007-12-19 Michael Albinus <michael.albinus@gmx.de>
18395
18396 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18397 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18398 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18399 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18400 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18401 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18402 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18403 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18404 (xd_retrieve_value): Remove. Functionality included in ...
18405 (xd_append_arg): New function.
18406 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18407
184082007-12-16 Michael Albinus <michael.albinus@gmx.de>
18409
18410 * dbusbind.c (top): Include <stdio.h>.
18411 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18412 dbus_message_new_method_call and dbus_message_new_signal.
18413 (Fdbus_register_signal): Rename unique_name to uname.
18414 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18415 non-existing unique name. Fix typos in matching rule. Return an
18416 object which is useful in Fdbus_unregister_signal.
18417 (Fdbus_unregister_signal): Reimplementation, in order to remove
18418 only the corresponding entry.
18419 (Vdbus_registered_functions_table): Change the order of entries.
18420 Apply these changes in xd_read_message and Fdbus_register_signal.
18421
184222007-12-16 Andreas Schwab <schwab@suse.de>
18423
18424 * fileio.c (Finsert_file_contents): Fix overflow check to not
18425 depend on undefined integer overflow.
18426
184272007-12-14 Jason Rumney <jasonr@gnu.org>
18428
18429 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18430 for characters above 127.
18431
184322007-12-13 Jason Rumney <jasonr@gnu.org>
18433
18434 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18435 before dereferencing array.
18436 (lookup_vk_code): Remove zero comparison.
18437
184382007-12-14 Michael Albinus <michael.albinus@gmx.de>
18439
18440 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18441 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18442 Use `unsigned int' instead of `uint'.
18443 (xd_read_message, Fdbus_register_signal): Split expressions into
18444 multiple lines before operators "&&" and "||", according to the
18445 GNU Coding Standards.
18446
184472007-12-14 Eli Zaretskii <eliz@gnu.org>
18448
18449 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18450
184512007-12-12 Juri Linkov <juri@jurta.org>
18452
18453 * buffer.c (Frename_buffer): In interactive spec replace
18454 `read-buffer' with `read-string' that uses `buffer-name-history'
18455 as history, and the current buffer's name as default.
18456
184572007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18458
18459 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18460 manipulating the backtrace manually.
18461 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18462 (struct backtrace, backtrace_list): Remove.
18463 (command_loop_1): Remove dead var `no_direct'.
18464
18465 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18466 preserve non-built-in buffer-local variables.
18467 (Fkill_all_local_variables): Don't re-create&re-set permanent
18468 buffer-local variables.
18469
184702007-12-09 Juri Linkov <juri@jurta.org>
18471
18472 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18473 Lisp code that uses `read-buffer' with current buffer as default.
18474
184752007-12-08 Michael Albinus <michael.albinus@gmx.de>
18476
18477 * dbusbind.c (xd_read_message): Generate an event for every
18478 registered handler. There might be several handlers registered
18479 for the same signal.
18480 (Fdbus_register_signal): Don't overwrite a registration for the
18481 same signal. Add a new registration if handlers are different.
18482 (Vdbus_registered_functions_table): Rework doc string.
18483
184842007-12-07 Michael Albinus <michael.albinus@gmx.de>
18485
18486 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18487 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18488 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18489 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18490 Unify argument lists.
18491 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18492 arguments and hash table keys. Use unique name for service.
18493 (Fdbus_unregister_signal): Remove checks.
18494 (Vdbus_registered_functions_table): Fix doc string.
18495
184962007-12-05 Magnus Henoch <mange@freemail.hu>
18497
18498 * process.c (make_process): Initialize pty_flag to 0.
18499
185002007-12-05 Jason Rumney <jasonr@gnu.org>
18501
18502 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18503 specified XBMs.
18504
185052007-12-05 Richard Stallman <rms@gnu.org>
18506
18507 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18508
185092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18510
18511 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18512 New variable.
18513 (mac_try_close_socket) [MAC_OSX]: New function.
18514 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18515 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18516
18517 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18518 Use mac_try_close_socket.
18519
185202007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18521
18522 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18523 reloc_base.
18524 (copy_dysymtab): Compute relocation base here.
18525 (rebase_reloc_address) [__ppc64__]: New function.
18526 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18527 changed.
18528
185292007-12-05 Jason Rumney <jasonr@gnu.org>
18530
18531 * w32proc.c (sys_spawnve): Quote args with wildcards.
18532
185332007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18534
18535 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18536 __objc_* sections.
18537 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18538
185392007-12-05 Michael Albinus <michael.albinus@gmx.de>
18540
18541 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18542 Move check for Vdbus_registered_functions_table to
18543 xd_read_queued_messages.
18544 (xd_read_queued_messages): Protect xd_read_message calls by
18545 internal_condition_case_1.
18546
185472007-12-04 Michael Albinus <michael.albinus@gmx.de>
18548
18549 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18550 Qdbus_system_bus and Qdbus_session_bus, respectively.
18551 (Vdbus_intern_symbols): Remove.
18552 (Vdbus_registered_functions_table): New hash table.
18553 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18554 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18555 Rewrite in order to manage registered functions by hash table
18556 Vdbus_registered_functions_table.
18557
185582007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18559
18560 * xterm.c: Update URL to Window Manager Specification in comment.
18561
185622007-12-02 Michael Albinus <michael.albinus@gmx.de>
18563
18564 * config.in (HAVE_DBUS): Add.
18565
18566 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18567 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18568 (obj): Add $(DBUS_OBJ).
18569 (LIBES): Add $(DBUS_LIBS).
18570 (dbusbind.o): New target.
18571
18572 * dbusbind.c: New file.
18573
18574 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18575
18576 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18577 (Qdbus_event): New Lisp symbol.
18578 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18579 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18580 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18581
18582 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18583
185842007-12-01 Richard Stallman <rms@gnu.org>
18585
18586 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18587
185882007-11-30 Jason Rumney <jasonr@gnu.org>
18589
18590 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18591 (w32con_reset_terminal_modes): Clear screen buffer.
18592 (w32_face_attributes): Don't use color indexes that are out of range.
18593 Only reverse the default colors.
18594
18595 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18596 WINDOWSNT.
18597
18598 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18599
186002007-11-29 Jason Rumney <jasonr@gnu.org>
18601
18602 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18603 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18604 if the terminal colors are initialized.
18605 (unspecified_fg, unspecified_bg): Remove unused declarations.
18606
186072007-11-29 Andreas Schwab <schwab@suse.de>
18608
18609 * keyboard.c (apply_modifiers): Fix typo.
18610
186112007-11-29 Richard Stallman <rms@gnu.org>
18612
18613 * keymap.c (Fcurrent_local_map): Doc fix.
18614
186152007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18616
18617 * s/gnu-kfreebsd.h: New file.
18618
186192007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18620
18621 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18622 Don't cast redundantly.
18623
18624 * keyboard.c (KEY_TO_CHAR): New macro.
18625 (parse_modifiers, apply_modifiers): Accept integer arguments.
18626 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18627 for chars and symbol keys.
18628 After doing such remapping, apply function-key-map again.
18629
186302007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18631
18632 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18633 compiled anymore.
18634
186352007-11-26 Andreas Schwab <schwab@suse.de>
18636
18637 * process.c (list_processes_1): Fix indentation level of the
18638 command column.
18639
186402007-11-23 Andreas Schwab <schwab@suse.de>
18641
18642 * editfns.c (Fformat): Handle %c specially since it requires the
18643 argument to be of type int.
18644
186452007-11-23 Markus Triska <markus.triska@gmx.at>
18646
18647 * emacs.c (main): Call init_editfns before init_process, since
18648 init_process sets Vprocess_connection_type depending on OS release.
18649
186502007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18651
18652 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18653 (find_symbol_value): Use do_symval_forwarding.
18654
18655 * data.c (set_internal): Set the value in the `cons-cell' (for
18656 Buffer_Local_values) not only for frame-local variables.
18657
186582007-11-22 Andreas Schwab <schwab@suse.de>
18659
18660 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18661 values to sprintf.
18662 * keymap.c (Fsingle_key_description): Likewise.
18663 * print.c (print_object): Likewise.
18664
186652007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18666
18667 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18668 file for image is nil.
18669
186702007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18671
18672 * term.c: Include stdarg.h.
18673 (fatal): Implement using varargs.
18674 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18675
186762007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18677
18678 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18679 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18680 Update call to buffer_slot_type_mismatch.
18681 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18682 (buffer_slot_type_mismatch): Update.
18683 * buffer.c (buffer_local_types): Remove.
18684 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18685 (defvar_per_buffer): Set the type in the buffer_objfwd.
18686
186872007-11-21 Jason Rumney <jasonr@gnu.org>
18688
18689 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18690 CreateFileMapping returns NULL on failure.
18691
186922007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18693
18694 * search.c (Fset_match_data): Remove the `evaporate' feature.
18695 (unwind_set_match_data): Don't use the `evaporate' feature.
18696
186972007-11-21 Jason Rumney <jasonr@gnu.org>
18698
18699 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18700
18701 * w32console.c (w32con_write_glyphs): Remove unused variables.
18702
187032007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18704
18705 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18706
18707 * s/darwin.h (MULTI_KBOARD): Remove.
18708
18709 * macfns.c (x_create_tip_frame, Fx_create_frame)
18710 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18711
187122007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18713
18714 * buffer.c (Fbuffer_local_value): Remove redundant test.
18715 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18716 than in `current-buffer' to match the comment.
18717 Do the swap using swap_in_global_binding.
18718
18719 * data.c (store_symval_forwarding, set_internal):
18720 * eval.c (specbind): Remove dead code.
18721
18722 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18723 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18724 Since we do not want to see internal Lisp_*fwd objects here.
18725
187262007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18727
18728 * sysdep.c (init_system_name): Use getaddrinfo if available.
18729
18730 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18731 (x_scroll_bar_note_movement): start, end, with, height in struct
18732 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18733
187342007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18735
18736 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18737
187382007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18739
18740 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18741 This undoes Richard's change of 14-Oct-2002.
18742
18743 * alloc.c (allocate_other_vector):
18744 * lisp.h (allocate_other_vector): Remove.
18745
18746 * window.c (struct save_window_data): Move non-lisp data to the end
18747 and make it `int' rather than Lisp_Object.
18748 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18749 Done wrap/unwrap integer values.
18750 (Fset_window_configuration, compare_window_configurations):
18751 Update use of fields to their new types.
18752
18753 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18754 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18755 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18756 (SET_SCROLL_BAR_X_WINDOW): Remove.
18757 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18758 Access the new x_window field directly.
18759 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18760 Don't wrap/unwrap integers into Lisp_Objects.
18761 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18762 (x_scroll_bar_report_motion):
18763 Don't wrap/unwrap integers into Lisp_Objects.
18764 (x_term_init): Use SDATA.
18765 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18766 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18767 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18768 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18769 * xfns.c (x_set_background_color):
18770 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18771 Access the new x_window field directly.
18772
18773 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18774 (allocate_pseudovector): Make non-static.
18775
18776 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18777 (allocate_pseudovector): Declare.
18778 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18779
187802007-11-15 Andreas Schwab <schwab@suse.de>
18781
18782 * editfns.c (Fformat): Correctly format EMACS_INT values.
18783 Also take precision into account when formatting an integer.
18784
18785 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18786
187872007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18790 (syms_of_keyboard): Defsubr it.
18791
18792 * data.c (swap_in_global_binding): Fix longstanding bug where
18793 store_symval_forwarding was not called with the right second argument,
18794 thus causing objfwd-ing from being dropped.
18795
187962007-11-14 Juanma Barranquero <lekktu@gmail.com>
18797
18798 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18799 (Fx_display_pixel_height, Fx_display_planes)
18800 (Fx_display_color_cells, Fx_server_max_request_size)
18801 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18802 (Fx_display_visual_class, Fx_display_save_under):
18803 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18804 (Fx_display_pixel_height, Fx_display_planes)
18805 (Fx_display_color_cells, Fx_server_max_request_size)
18806 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18807 (Fx_display_mm_height, Fx_display_mm_width)
18808 (Fx_display_backing_store, Fx_display_visual_class)
18809 (Fw32_select_font, Fx_display_save_under):
18810 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18811 (Fx_display_pixel_height, Fx_display_planes)
18812 (Fx_display_color_cells, Fx_server_max_request_size)
18813 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18814 (Fx_display_save_under): Fix typos in docstrings.
18815
188162007-11-14 Juanma Barranquero <lekktu@gmail.com>
18817
18818 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18819 corresponding to deleted entries; they are an implementation detail.
18820 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18821 Remove variables.
18822 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18823 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18824 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18825 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18826 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18827 (Fw32_define_rgb_color, Fw32_load_color_file)
18828 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18829 Fix typos in docstrings.
18830 (Fx_server_version): Reflow docstring.
18831 (Fw32_shell_execute): Doc fixes.
18832
188332007-11-13 Juanma Barranquero <lekktu@gmail.com>
18834
18835 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18836 if w32_parse_hot_key returned nil.
18837
188382007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18839
18840 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18841
188422007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18843
aac0c6e3
MR
18844 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18845
18846 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18847
18848 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18849 Remove W32_SCROLL_BAR_CLICK_EVENT.
18850
18851 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18852 Add MULTIMEDIA_KEY_EVENT.
18853
18854 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18855 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18856 (make_lispy_event) [WINDOWSNT]: Use it to translate
18857 MULTIMEDIA_KEY_EVENT.
18858
18859 * w32term.h (WM_APPCOMMAND): Define if not already.
18860 (GET_APPCOMMAND_LPARAM): Likewise.
18861
18862 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18863 WM_APPCOMMAND.
18864
18865 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18866 (syms_of_w32fns): Export and initialize it.
18867 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18868
188692007-11-09 Chong Yidong <cyd@stupidchicken.com>
18870
18871 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18872 twice.
18873
18874 * xdisp.c (handle_face_prop): Fix last change.
18875
188762007-11-09 Richard Stallman <rms@gnu.org>
18877
18878 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18879 not just for after-strings and before-strings.
18880 Call face_for_overlay_string and pass the overlay to it.
18881 (handle_display_prop): Determine whether property came from an overlay.
18882 Pass OVERLAY arg to handle_single_display_spec.
18883 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18884 (load_overlay_strings): Fill in it->string_overlays.
18885 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18886
18887 * xfaces.c (face_for_overlay_string): Function renamed from
18888 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18889
18890 * dispextern.h (struct it): New elt string_overlays.
18891 New elt from_overlay, also in stack.
18892 Rearrange a few elements.
18893 (face_for_overlay_string): Decl renamed from
18894 face_at_buffer_position_no_overlays, and add argument.
18895
188962007-11-09 Richard Stallman <rms@gnu.org>
18897
18898 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18899 to get the base face for an overlay string.
18900
18901 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18902
18903 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18904
18905 * xdisp.c (handle_stop): Move some code out of loop.
18906
189072007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18908
18909 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18910 Fix conversion from Lisp object to ATSUFontID.
18911
189122007-11-09 Jason Rumney <jasonr@gnu.org>
18913
18914 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18915
189162007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18917
18918 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18919 Don't assume regions are aligned to page boundary.
18920 (print_load_command_name): Add LC_UUID if defined.
18921
189222007-11-09 Richard Stallman <rms@gnu.org>
18923
18924 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18925
189262007-11-07 Jason Rumney <jasonr@gnu.org>
18927
18928 * s/windows95.h: Remove.
18929
189302007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18931
18932 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18933 abort with a message on unhandled store_type values.
18934
189352007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18936
18937 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18938 Remove HAVE_X11R5 and HAVE_X11R4.
18939
189402007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18941
18942 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18943
189442007-11-01 Johan Bockgård <bojohan@gnu.org>
18945
18946 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18947 Don't set s->stippled_p here, since it has already been set by
18948 x_set_glyph_string_gc from x_draw_glyph_string.
18949
189502007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18951
18952 * sunfns.c: Remove file.
18953
18954 * m/sun386.h:
18955 * m/sun2.h:
18956 * m/sparc.h: Remove Sun windows code.
18957
189582007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18959
18960 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18961 (init_keyboard): Set current_kboard's window-system to nil.
18962 (tty_read_avail_input): Typo.
18963 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18964
189652007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18966
18967 * s/usg5-4.h:
18968 * s/usg5-3.h:
18969 * s/ptx.h:
18970 * m/is386.h:
18971 * m/ibmps2-aix.h:
18972 * Makefile.in: Remove all mentions of X10.
18973
18974 * dispnew.c (syms_of_display): Don't mention version 10.
18975
189762007-10-28 Juanma Barranquero <lekktu@gmail.com>
18977
18978 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18979 ($(BLD)/abbrev.$(O)): Remove.
18980
189812007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18982
18983 Rewrite abbrev.c in Elisp.
18984 * image.c (Qcount): Don't declare as extern.
18985 (syms_of_image): Initialize and staticpro `Qcount'.
18986 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18987 * emacs.c (main): Don't call syms_of_abbrev.
18988 * Makefile.in (obj): Remove abbrev.o.
18989 (abbrev.o): Remove.
18990 * abbrev.c: Remove.
18991
189922007-10-26 Martin Rudalics <rudalics@gmx.at>
18993
18994 * window.c (window_min_size_2): Don't count header-line.
18995
189962007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18997
18998 * frame.h (struct frame): Move all bit fields after the first bit
18999 field to take advantage of the available space. Group all the
19000 chars together to reduce wasted space due to padding.
19001
190022007-10-26 Juanma Barranquero <lekktu@gmail.com>
19003
19004 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19005
19006 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19007 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19008 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19009 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19010 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19011 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19012 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19013 (last_marked, mark_object_loop_halt): Make static.
19014
19015 * frame.c (syms_of_frame) <delete-frame-functions>:
19016 Fix typo in docstring.
19017
190182007-10-25 Juanma Barranquero <lekktu@gmail.com>
19019
19020 * w32.c (init_environment): Fix tiny memory leak.
19021 (w32_get_resource): Remove unused variable `ok'.
19022
190232007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19024
19025 Make `window-system' into a keyboard-local variable (rather than
19026 frame-local as done originally by multi-tty).
19027
19028 * keyboard.h (struct kboard): Add Vwindow_system.
19029 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19030 (mark_kboards): Mark Vwindow_system.
19031
19032 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19033 (init_display): Don't set the obsolete `window-system' frame-param.
19034
19035 * xterm.c (x_term_init):
19036 * w32term.c (w32_create_terminal):
19037 * term.c (init_tty): Set Vwindow_system.
19038 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19039 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19040
19041 * xfns.c (Fx_create_frame, x_create_tip_frame):
19042 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19043 * macfns.c (Fx_create_frame):
19044 Don't set the obsolete `window-system' frame-param.
19045
19046 * frame.h (Qwindow_system): Remove.
19047 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19048 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19049
190502007-10-24 Richard Stallman <rms@gnu.org>
19051
19052 * frame.c (x_figure_window_size): For fullscreen case,
19053 set USPosition | PPosition without clobbering rest of window_prompting.
19054
19055 * keyboard.c (Fcurrent_idle_time): Doc fix.
19056
19057 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19058
190592007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19060
19061 * process.c (unwind_request_sigio): Only define if __ultrix__.
19062
19063 * callproc.c (child_setup): Remove spurious *.
19064
19065 * lisp.h (Fget_text_property): Declare.
19066 (have_menus_p): Declare it here rather than in sys-dep header files.
19067 * macterm.h (have_menus_p):
19068 * msdos.h (have_menus_p):
19069 * xterm.h (have_menus_p): Remove.
19070
19071 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19072 (Fmake_variable_frame_local): Just check the variable's const-ness
19073 rather than checking nil or t.
19074
190752007-10-22 Jason Rumney <jasonr@gnu.org>
19076
19077 * w32fns.c: Include math.h.
19078 (w32_abort): Declaration moved to nt/config.nt.
19079
19080 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19081 (abort): Redefinition moved to nt/config.nt.
19082
19083 * m/windowsnt.h: Remove.
19084
190852007-10-22 Juanma Barranquero <lekktu@gmail.com>
19086
19087 * emacs.c (Fdump_emacs): Fix typo in message.
19088 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19089 <installation-directory>: Reflow docstring.
19090
190912007-10-22 Juri Linkov <juri@jurta.org>
19092
19093 * minibuf.c: Allow minibuffer default to be a list of default values.
19094 With empty input use the first element of this list as returned default.
19095 (string_to_object)
19096 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19097 (read_minibuf): If defalt is cons, set histstring to its car.
19098 (Fread_string): If default_value is cons, set val to its car.
19099 (Fread_buffer): If def is cons, use its car.
19100 (Fcompleting_read): If defalt is cons, set val to its car.
19101
191022007-10-21 Michael Albinus <michael.albinus@gmx.de>
19103
19104 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19105
191062007-10-20 Juanma Barranquero <lekktu@gmail.com>
19107
19108 * doc.c (Fdocumentation): Check for advice in all cases.
19109
191102007-10-19 Chong Yidong <cyd@stupidchicken.com>
19111
19112 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19113
191142007-10-19 Richard Stallman <rms@gnu.org>
19115
19116 * doc.c (Fdocumentation): Check for and handle an advised function.
19117
191182007-10-19 Juanma Barranquero <lekktu@gmail.com>
19119
19120 * process.c (Fset_process_filter): Doc fix.
19121
191222007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19123
19124 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19125 which caused key-translation-map to applied repeatedly (thus breaking
19126 double-mode).
19127
191282007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19129
19130 * xselect.c (x_own_selection, x_handle_selection_clear)
19131 (x_clear_frame_selections):
19132 * w32menu.c (list_of_panes, list_of_items):
19133 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19134 * textprop.c (validate_plist, interval_has_all_properties)
19135 (interval_has_some_properties, interval_has_some_properties_list)
19136 (add_properties, text_property_list):
19137 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19138 * minibuf.c (Fassoc_string):
19139 * macselect.c (x_own_selection, x_clear_frame_selections)
19140 (Fx_disown_selection_internal):
19141 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19142 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19143
191442007-10-17 Chong Yidong <cyd@stupidchicken.com>
19145
19146 * process.c: Link to libs for calling res_init() if available.
19147 (Fmake_network_process): Call res_init() before getaddrinfo or
19148 gethostbyname, if possible.
19149
191502007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19151
19152 * lread.c (read1): Set pvectype for char_tables.
19153
19154 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19155 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19156 Add type checks.
19157 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19158
19159 * alloc.c (free_misc): Use XMISCTYPE.
19160 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19161
191622007-10-17 Glenn Morris <rgm@gnu.org>
19163
19164 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19165 (syms_of_minibuf): Add Qcompletion_ignore_case.
19166 * dired.c (Qcompletion_ignore_case): Change to external.
19167 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19168 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19169 (Fread_file_name): Use it rather than intern'ing.
19170
19171 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19172 (Fread_coding_system): Ignore case of user input.
19173
191742007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19175
19176 * xdisp.c (handle_display_prop): Ignore display specs after
19177 replacing one when string text is being replaced.
19178 (handle_single_display_spec): Pretend as if characters with display
19179 property haven't been consumed only when buffer text is being replaced.
19180
191812007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19182
19183 * xfns.c (Fx_create_frame, Fx_display_list):
19184 * window.c (window_fixed_size_p, enlarge_window)
19185 (shrink_window_lowest_first):
19186 * macterm.c (init_font_name_table):
19187 * macfns.c (Fx_create_frame, Fx_display_list):
19188 * lread.c (close_load_descs):
19189 * keyboard.c (read_char_x_menu_prompt):
19190 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19191 * coding.c (code_convert_region_unwind): Test the type of an object
19192 rather than just !NILP before extracting data from it.
19193
19194 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19195
19196 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19197 (XMISCANY): New macro.
19198 (XMISCTYPE): Use it.
19199 (struct Lisp_Misc_Any): New type.
19200 (union Lisp_Misc): Use it.
19201 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19202 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19203 (find_symbol_value, set_internal, default_value, Fset_default)
19204 (Fmake_variable_buffer_local, Fmake_local_variable)
19205 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19206 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19207 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19208 * alloc.c (allocate_buffer): Set the size and tag.
19209 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19210 Use XMISCANY.
19211 (die): Follow the GNU convention for error messages.
19212 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19213 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19214 tag any more.
19215 (set_buffer_internal_1):
19216 * frame.c (store_frame_param):
19217 * eval.c (specbind):
19218 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19219
19220 * doc.c (Fsnarf_documentation): Simplify.
19221
192222007-10-14 Juanma Barranquero <lekktu@gmail.com>
19223
19224 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19225 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19226
192272007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19228
19229 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19230
192312007-10-14 Juanma Barranquero <lekktu@gmail.com>
19232
19233 * eval.c (do_autoload): Don't save autoloads.
19234
19235 * data.c (Ffset): Save autoload of the function being set.
19236
192372007-10-07 John Paul Wallington <jpw@pobox.com>
19238
19239 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19240 parameter before setting up faces.
19241
192422007-10-13 Eli Zaretskii <eliz@gnu.org>
19243
19244 * ccl.c (Fregister_code_conversion_map):
19245 * keyboard.c (append_tool_bar_item): Reformat last change.
19246
19247 * lisp.h (eabs): Rename from `abs'. All callers changed.
19248
192492007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19250
19251 * buffer.c (add_overlay_mod_hooklist):
19252 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19253 * fontset.c (make_fontset):
19254 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19255 (append_tool_bar_item):
19256 * macmenu.c (grow_menu_items):
19257 * w32menu.c (grow_menu_items):
19258 * xmenu.c (grow_menu_items): Use larger_vector.
19259
192602007-10-13 Eli Zaretskii <eliz@gnu.org>
19261
19262 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19263 selected frame'' on MSDOS).
19264
192652007-10-12 Martin Rudalics <rudalics@gmx.at>
19266
19267 * frame.c (Qexplicit_name): New variable.
19268 (x_report_frame_params): Report it in parameter alist.
19269 (syms_of_frame): Intern and staticpro it.
19270
192712007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19272
19273 * macfns.c (x_create_tip_frame): Set terminal for frame.
19274
192752007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19276
19277 * frame.c (Qenvironment): Remove.
19278 (syms_of_frame) <Qenvironment>: Don't initialize.
19279 (Fdelete_frame): Don't treat the `environment' param specially.
19280 * frame.h (Qenvironment): Don't declare.
19281 * callproc.c (set_initial_environment): Don't set unused frame param.
19282
19283 * frame.c (Fframe_with_environment): Remove.
19284 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19285
19286 * lisp.h (Fframe_with_environment): Don't declare.
19287
192882007-10-10 Juanma Barranquero <lekktu@gmail.com>
19289
19290 * indent.c (indent_tabs_mode, last_known_column)
19291 (last_known_column_modified): Make static.
19292 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19293
192942007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19295
19296 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19297
192982007-10-09 Jason Rumney <jasonr@gnu.org>
19299
19300 * w32term.c (x_set_window_size): Disable code that attempts to tell
19301 Lisp code about a size change before it actually happens.
19302
193032007-10-09 Richard Stallman <rms@gnu.org>
19304
19305 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19306 return HANDLED_RETURN.
19307
193082007-10-08 Martin Rudalics <rudalics@gmx.at>
19309
19310 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19311 when there's an unread command event.
19312
19313 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19314 window autoselection act appropriately when leaving selected frame.
19315 (syms_of_frame): Initialize focus_follows_mouse.
19316 * frame.h (focus_follows_mouse): Extern it.
19317 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19318 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19319 * msdos.c (dos_rawgetc): Likewise.
19320 * w32term.c (w32_read_socket): Likewise.
19321 * xterm.c (handle_one_xevent): Likewise.
19322 * xdisp.c (syms_of_xdisp): In doc-string of
19323 mouse-autoselect-window mention focus-follows-mouse.
19324
193252007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19326
19327 * macterm.c (mac_load_query_font): Fix missing return value.
19328 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19329 Add BLOCK_INPUT.
19330
193312007-10-08 Richard Stallman <rms@gnu.org>
19332
19333 * xdisp.c (get_window_cursor_type): Implement documented behavior
19334 for cursor-in-non-selected-windows = t.
19335
193362007-10-08 Jason Rumney <jasonr@gnu.org>
19337
19338 * w32.c (w32_get_resource): Always close registry keys.
19339
193402007-10-08 Jason Rumney <jasonr@gnu.org>
19341
19342 * makefile.w32-in (LIBS): Add COMCTL32.
19343
19344 * w32fns.c (globals_of_w32fns): Init common controls.
19345
193462007-10-08 Richard Stallman <rms@gnu.org>
19347
19348 * image.c (our_memory_buffer): Rename from omfib_buffer.
19349
193502007-10-08 Richard Stallman <rms@gnu.org>
19351
19352 * buffer.c (Foverlays_at): Doc fix.
19353
193542007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19355
19356 * fns.c (Fplist_put): Preserve uneven tail data.
19357
193582007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19359
19360 * termhooks.h (enum event_kind): Remove trailing comma.
19361
19362 * frame.h (enum): Remove trailing comma.
19363
193642007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19365
19366 * w32proc.c (delete_child): Don't terminate threads of zombies.
19367
193682007-10-08 Martin Rudalics <rudalics@gmx.at>
19369
19370 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19371
19372 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19373 last-repeatable-command.
19374 (init_kboard): Initialize Vlast_repeatable_command.
19375 (command_loop_1): Set it to real_this_command unless that was
19376 bound to an input event.
19377 (mark_kboards): Mark it.
19378
193792007-10-08 Richard Stallman <rms@gnu.org>
19380
19381 * eval.c (condition-case): Doc fix.
19382
193832007-10-08 Masatake YAMATO <jet@gyve.org>
19384
19385 * xfaces.c (tty_supports_face_attributes_p): Fix code
19386 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19387 was copied and not edited.
19388
193892007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19390
19391 Add new `input-decode-map' keymap and use it for terminal
19392 escape sequences.
19393 * keyboard.h (struct kboard): Add Vinput_decode_map.
19394 Remove Vlocal_key_translation_map.
19395 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19396 (init_kboard): Init input-decode-map.
19397 Replace local-key-translation-map back with key-translation-map.
19398 (syms_of_keyboard): Declare input-decode-map.
19399 Remove local-key-translation-map. Update docstrings.
19400 (mark_kboards): Mark Vinput_decode_map.
19401 Don't mark Vlocal_key_translation_map.
19402 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19403 Replace local-key-translation-map back with key-translation-map.
19404 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19405 Bind in input-decode-map rather than function-key-map.
19406
19407 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19408 This was made redundant by the previous introduction of XSETPVECTYPE.
19409
194102007-10-09 Richard Stallman <rms@gnu.org>
19411
19412 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19413
194142007-09-29 Richard Stallman <rms@gnu.org>
19415
19416 * eval.c (internal_condition_case_2, internal_condition_case_1)
19417 (internal_condition_case): Reenable abort if x_catching_errors ()
19418 to see if that really happens and why.
19419
194202007-10-06 Andreas Schwab <schwab@suse.de>
19421
19422 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19423
194242007-10-04 Juanma Barranquero <lekktu@gmail.com>
19425
19426 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19427
194282007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19429
19430 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19431
194322007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19433
19434 * window.h (struct window):
19435 * window.c (struct save_window_data, struct saved_window):
19436 * termhooks.h (struct terminal):
19437 * process.h (struct Lisp_Process):
19438 * frame.h (struct frame):
19439 * buffer.h (struct buffer):
19440 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19441 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19442 The size field of (pseudo)vectors is now unsigned.
19443 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19444
19445 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19446 Turn `count' into an integer.
19447
19448 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19449 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19450 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19451 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19452 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19453
19454 * alloc.c (allocate_pseudovector): New fun.
19455 (ALLOCATE_PSEUDOVECTOR): New macro.
19456 (allocate_window, allocate_terminal, allocate_frame)
19457 (allocate_process): Use it.
19458 (mark_vectorlike): New function.
19459 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19460 (mark_terminals): Use it.
19461 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19462 (Fmake_byte_code): Use XSETPVECTYPE.
19463
19464 * frame.c (Fframe_parameters): Minor simplification.
19465
19466 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19467
19468 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19469
19470 * buffer.c (Fget_buffer_create, init_buffer_once):
19471 * lread.c (defsubr):
19472 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19473
19474 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19475 defined differently in the m/*.h files.
19476 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19477 (XSETPVECTYPE): New macro.
19478 (XSETPSEUDOVECTOR): Use it.
19479
19480 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19481 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19482
19483 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19484 * lread.c (defvar_per_buffer):
19485 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19486
19487 * window.c (candidate_window_p): Only consider as visible frames that
19488 are on the same terminal.
19489
19490 * m/ibms390x.h (MARKBIT): Remove unused macro.
19491
194922007-10-01 Juanma Barranquero <lekktu@gmail.com>
19493
19494 * lread.c (Fload): Fix typo in docstring.
19495
194962007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19497
19498 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19499 of a non-zero value can't yield zero.
19500
195012007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19502
19503 * term.c (term_clear_mouse_face, term_mouse_highlight)
19504 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19505
19506 * print.c (safe_debug_print): Use XHASH.
19507
19508 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19509 Lisp elements such as tags.
19510 (XHASH): New macro.
19511 (EQ): Use it.
19512 (SREF, SSET, STRING_COPYIN): Use SDATA.
19513 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19514
19515 * alloc.c (mark_terminal): Remove left-over declaration.
19516 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19517 (allocate_vectorlike): Remove type argument. Adjust callers.
19518 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19519 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19520
19521 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19522 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19523 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19524 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19525 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19526 Use them.
19527
19528 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19529 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19530 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19531
195322007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19533
19534 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19535 loaded by default.
19536
195372007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19538
19539 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19540 on this tty.
19541 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19542
19543 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19544 Update all users.
19545 (handle_one_term_event): Use Gpm_DrawPointer.
19546 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19547 Signal errors instead of returning nil. Always return nil.
19548 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19549 Make it a noop if gpm-mouse was not activated.
19550 (syms_of_term): Update names.
19551
195522007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19553
19554 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19555 (init_sys_modes): Check that gpm_tty is the current tty.
19556
19557 * alloc.c (allocate_terminal): Set the vector size to only count the
19558 lisp fields. Initialize those to nil.
19559 (mark_object): Don't treat terminals specially.
19560 (mark_terminal): Remove.
19561 (mark_terminals): Use mark_object instead.
19562
19563 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19564 the GC to the beginning.
19565
19566 * indent.h:
19567 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19568
19569 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19570
195712007-09-25 Jason Rumney <jasonr@gnu.org>
19572
19573 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19574
19575 * w32console.c (create_w32cons_output): Remove.
19576
19577 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19578
19579 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19580 (reset_sys_modes): Use reset_terminal_modes_hook.
19581
195822007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19583
19584 * eval.c (do_autoload): Don't output any message.
19585
195862007-09-24 Juri Linkov <juri@jurta.org>
19587
19588 * emacs.c (standard_args): Change priority of "--no-splash"
19589 from 40 to 3. Add "--no-desktop" with the same priority.
19590
195912007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19592
19593 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19594 and optimize the case where they are all 1.
19595
195962007-09-23 Johannes Weiner <hannes@saeurebad.de>
19597
19598 * lisp.h (abs): Define if not defined.
19599 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19600 Don't define `abs', since it's defined in lisp.h.
19601
196022007-09-22 Eli Zaretskii <eliz@gnu.org>
19603
19604 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19605 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19606 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19607 (init_tty): Use DEV_TTY instead of "/dev/tty".
19608 [WINDOWSNT]: No need to protect from NAME arg being null.
19609
196102007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19611
19612 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19613 up the tty state.
19614
196152007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19616
19617 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19618 (gpm_tty): Change its type.
19619 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19620 (gpm_tty): Change its type and initialize it.
19621 (Fterm_open_connection): Check the frame is indeed a tty.
19622 Use the new gpm_tty.
19623 (Fterm_close_connection): Use the new gpm_tty.
19624 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19625 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19626
196272007-09-21 Juanma Barranquero <lekktu@gmail.com>
19628
19629 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19630 underline_color, to draw strike-through.
19631
196322007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19633
19634 * lisp.h (allocate_terminal): Declare.
19635
19636 * window.c (candidate_window_p): Consider frames that are being placed
19637 by the user as somewhere between visible and iconified.
19638 (window_loop): Prefer windows on the current frame.
19639 (Fselect_window): Move the use of select-frame to the beginning so we
19640 can just delegate all the work (it'll call us back anyway).
19641
19642 * frame.c (Qdisplay_environment_variable):
19643 * frame.h (Qdisplay_environment_variable): Delete.
19644
19645 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19646 of the first arg, since that value may be a union.
19647
19648 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19649 parameter rather than Qdisplay_environment_variable. If all else
19650 fails, look for DISPLAY in initial-environment.
19651
196522007-09-21 Glenn Morris <rgm@gnu.org>
19653
19654 * Makefile.in (emacstool): Remove target.
19655 (lisp, shortlisp): Remove termdev.elc.
19656
196572007-09-21 Markus Triska <markus.triska@gmx.at>
19658
19659 * xterm.c (x_delete_display): Compile session management conditionally.
19660
196612007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19662
19663 * callproc.c (getenv_internal_1): New function.
19664 (getenv_internal): Use it.
19665 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19666
19667 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19668 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19669 (Fset_terminal_parameter): Work with dead terminals as well.
19670 (Fmodify_terminal_parameters): Remove.
19671
19672 * terminal.c (get_terminal): Handle terminals.
19673 Make sure the terminal returned is live.
19674 (create_terminal): Use allocate_terminal.
19675 (mark_terminals): Move to alloc.c.
19676 (delete_terminal): Use terminal->name as liveness status.
19677 NULL out fields after freeing their contents.
19678 Don't deallocate the object.
19679 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19680 rather than an int.
19681 (Fterminal_live_p): Accept non-integer arguments.
19682 (Fterminal_list): Return terminal objects rather than an ints.
19683
19684 * alloc.c (enum mem_type): New member for `terminal' objects.
19685 (allocate_terminal): New function.
19686 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19687 Handle terminals.
19688 (mark_terminal): New fun.
19689 (mark_terminals): Move from terminal.c.
19690
19691 * term.c (get_tty_terminal): Don't treat output_initial specially.
19692 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19693 (delete_tty): Use terminal->name as liveness status.
19694
19695 * termhooks.h (struct terminal): Make it into a pseudovector.
19696 Remove `deleted' replaced by checking `name's nullness.
19697
19698 * print.c (print_object): Handle terminals.
19699
19700 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19701 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19702
19703 * frame.c (make_terminal_frame):
19704 * keyboard.c (tty_read_avail_input):
19705 * w32term.c (x_delete_terminal):
19706 * xfns.c (Fx_create_frame, x_create_tip_frame):
19707 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19708
197092007-09-20 Glenn Morris <rgm@gnu.org>
19710
19711 * process.c (Fmake_network_process): Doc fix.
19712
197132007-09-19 Jason Rumney <jasonr@gnu.org>
19714
19715 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19716
197172007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19718
19719 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19720 Fix a C warning regarding variable constness.
19721
19722 * xterm.c (handle_one_xevent): Fix a C warning.
19723
197242007-09-18 Jason Rumney <jasonr@gnu.org>
19725
19726 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19727
197282007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19729
19730 * gtkutil.c (gdpy_def): New variable.
19731 (xg_initialize): Initialize gdpy_def.
19732 (xg_display_close): If no other display exists, set gdpy_def to a
19733 new connection.
19734
197352007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19736
19737 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19738 when we have no file name for the icon.
19739 (xg_tool_bar_expose_callback): Remove.
19740 (xg_create_tool_bar): Don't connect expose signal to
19741 xg_tool_bar_expose_callback.
19742 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19743
197442007-09-16 Andreas Schwab <schwab@suse.de>
19745
19746 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19747 values instead of zapping them.
19748
197492007-09-14 Glenn Morris <rgm@gnu.org>
19750
19751 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19752 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19753 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19754 scope and rename to omfib_buffer for clarity.
19755 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19756
197572007-09-14 Kenichi Handa <handa@m17n.org>
19758
19759 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19760
197612007-09-13 Jason Rumney <jasonr@gnu.org>
19762
19763 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19764
19765 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19766
19767 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19768 (mac_term_init): Call here instead, passing rif.
19769
197702007-09-13 Glenn Morris <rgm@gnu.org>
19771
19772 * s/hpux.h: No longer define `static' as nothing.
19773
197742007-09-13 Johan Bockgård <bojohan@gnu.org>
19775
19776 * callint.c (Fcall_interactively): Remove unused var `fun'.
19777
197782007-09-12 Romain Francoise <romain@orebokech.com>
19779
19780 * window.c (prefer_window_split_horizontally, display_buffer):
19781 Revert 2007-09-08 change.
19782
197832007-09-12 Glenn Morris <rgm@gnu.org>
19784
19785 * alloca.c: Remove file.
19786 * Makefile.in (alloca): Do not undef.
19787 (allocaobj, alloca.o): Remove.
19788 (otherobj): Remove allocaobj.
19789 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19790 * regex.c (C_ALLOCA): Remove all references and code that was only
19791 used when this was defined.
19792 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19793 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19794 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19795
19796 * Makefile.in (SOURCES, unlock, relock): Delete.
19797
19798 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19799 (menu_grab_callback): All uses changed.
19800
19801 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19802 (x_reply_selection_request): All uses changed.
19803
198042007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19805
19806 * lread.c (load_warn_old_style_backquotes): Change message to look
19807 better when it appears in the middle of byte-compiler messages.
19808
198092007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19810
19811 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19812
19813 * xterm.c (x_create_terminal): Add comment.
19814
19815 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19816
198172007-09-10 Richard Stallman <rms@gnu.org>
19818
19819 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19820
198212007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19822
19823 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19824 (DEFUN): Document `intspec', use it instead of `prompt'.
19825
19826 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19827
19828 * data.c (Finteractive_form): If the interactive specification starts
19829 with a `(', use it as a Lisp form.
19830
19831 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19832 name and file modes.
19833
19834 * callint.c (Fcall_interactively): Comment fixes.
19835
198362007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19837
19838 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19839 and compiled functions.
19840
198412007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19842
19843 * window.c (prefer_window_split_horizontally): New variable.
19844 (display_buffer): Consider splitting window horizontally depending
19845 on prefer_window_split_horizontally.
19846
198472007-09-08 Eli Zaretskii <eliz@gnu.org>
19848
19849 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19850
198512007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19852
19853 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19854
19855 * frame.c (x_set_frame_parameters): Check number is positive before
19856 using XFASTINT.
19857
19858 * window.c (freeze_window_start): Don't presume selected_window holds
19859 a window object.
19860 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19861
198622007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19863
19864 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19865
198662007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19867
19868 * window.c (Vsplit_window_preferred_function): New var.
19869 (Fdisplay_buffer): Use it.
19870 (syms_of_window): Export, and initialize it.
19871
198722007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19873
19874 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19875
198762007-09-06 Glenn Morris <rgm@gnu.org>
19877
19878 * gtkutil.c (menu_grab_callback) <cnt>:
19879 * xselect.c (x_reply_selection_request) <cnt>: Move static
19880 variable to file scope.
19881
198822007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19883
19884 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19885 consistent values of selected_frame and selected_window.
19886
198872007-09-04 Jason Rumney <jasonr@gnu.org>
19888
19889 * w32console.c (initialize_w32_display): Zero unused hooks.
19890
198912007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19892
19893 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19894 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19895
198962007-09-04 Jason Rumney <jasonr@gnu.org>
19897
19898 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19899 in w32console.c. Set up input. Remove XXX comments that have been
19900 confirmed as correct.
19901
19902 * s/ms-w32.h (MULTI_KBOARD): Define.
19903
19904 * w32console.c (one_and_only_w32cons): Remove.
19905 (initialize_w32_display): Take terminal argument.
19906
19907 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19908 initialize_w32_display.
19909 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19910
19911 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19912
19913 * keyboard.c (discard_mouse_events): Discard it.
19914 (make_lispy_event): Translate it to a lisp event.
19915 (lispy_wheel_names): Add wheel-left and right events.
19916 (syms_of_keyboard): Enlarge wheel_syms.
19917
19918 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19919 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19920
19921 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19922
19923 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19924 from WM_MOUSEHWHEEL.
19925 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19926
19927 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19928 terminal.
19929
19930 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19931 keyboard for the terminal.
19932
199332007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19934
19935 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19936 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19937 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19938 and resume-tty-function to resume-tty-hook.
19939 (Fsuspend_tty, Fresume_tty): Use new names.
19940
199412007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19942
19943 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19944 if it starts with "n:".
19945
199462007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19947
19948 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19949
199502007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19951
19952 * frame.h:
19953 * frame.c (Qterm_environment_variable): Remove.
19954 (syms_of_frame): Don't init and staticpro it.
19955
19956 * callproc.c (getenv_internal): Remove special case for $TERM.
19957
19958 * callproc.c (Vinitial_environment): New variable.
19959 (set_initial_environment): Initialize it.
19960 (syms_of_callproc): Declare it.
19961 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19962 TERM under which a process runs is never related to the TERM in which
19963 Emacs is running.
19964
199652007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19966
19967 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19968 * s/darwin.h: ... do it here.
19969
199702007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19971
19972 * lisp.h (set_initial_environment): Rename from set_global_environment.
19973
19974 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19975 removed by mistake on the multi-tty branch.
19976
19977 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19978 (Fmodify_frame_parameters): Return a value.
19979
19980 * image.c (png_load): Comment-out var only used in commented-out code.
19981
19982 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19983 before passing it to mark_object.
19984
19985 * xfaces.c (internal_resolve_face_name): Return a value.
19986 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19987
19988 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19989 (x_icon): Comment-out var only used in commented-out code.
19990
199912007-08-29 Romain Francoise <romain@orebokech.com>
19992
19993 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19994 QUIT hasn't been provided.
19995
199962007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19997
19998 * callproc.c (child_setup, getenv_internal): Use the
19999 display-environment-variable and term-environment-variable frame params.
20000 (set_initial_environment): Initialise Vprocess_environment.
20001
20002 * config.in: Disable multi-keyboard support on a mac.
20003
20004 * frame.c (Qterm_environment_variable)
20005 (Qdisplay_environment_variable): New variables.
20006 (syms_of_frame): Intern and staticpro them.
20007 (Fmake_terminal_frame): Disable output method test.
20008
20009 * frame.h: Declare them here.
20010
20011 * macfns.c (x_set_mouse_color): Get rif from the frame.
20012 (x_set_tool_bar_lines): Don't use updating_frame.
20013 (mac_window): Add 2 new parameters for consistency with other systems.
20014 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20015 frame parameters following what is done in X11 and w32. Don't use
20016 FRAME_MAC_DISPLAY_INFO.
20017 (Fx_open_connection, start_hourglass): Remove window-system check.
20018 (x_create_tip_frame): Get the keyboard from the terminal.
20019
20020 * macmenu.c: Reorder includes.
20021 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20022
20023 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20024 terminal parameter.
20025 (x_clear_frame): Add a frame parameter.
20026 (note_mouse_movement): Get rif from the frame.
20027 (mac_term_init): Initialize the terminal.
20028 (mac_initialize): Make static and move terminal initialization ...
20029 (mac_create_terminal): ... to this new function.
20030
20031 * macterm.h (struct mac_display_info): Add terminal.
20032 (mac_initialize): Delete declaration.
20033
20034 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20035
20036 * sysdep.c: Comment out text after #endif.
20037
20038 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20039 is defined. Better initialize ttys in windows. Use terminal
20040 specific mouse_position_hook.
20041
20042 * termhooks.h (union display_info): Add mac_display_info.
20043
20044 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20045 Set the default minibuffer frame, window_system and the rest of the
20046 frame parameters following what is done in X11.
20047
20048 * w32term.c (w32_initialize): Make static.
20049
20050 * xselect.c (x_handle_selection_clear): Only access
20051 terminal->kboard when MULTI_KBOARD is defined.
20052
20053 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20054 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20055
200562007-08-29 Jason Rumney <jasonr@gnu.org>
20057
20058 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20059 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20060
20061 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20062 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20063
20064 * keyboard.c (restore_kboard_configuration): Only define when
20065 MULTI_KBOARD defined.
20066
20067 * makefile.w32-in: Update dependancies from Makefile.in.
20068 (OBJ1): Add terminal.$(O)
20069
20070 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20071 Don't define function body.
20072 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20073
20074 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20075
20076 * w32.c (request_sigio, unrequest_sigio): Remove.
20077
20078 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20079 (w32con_clear_frame, w32con_clear_end_of_line)
20080 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20081 (w32con_delete_glyphs, w32con_set_terminal_window)
20082 (scroll_line, w32_sys_ring_bell): Add frame arg.
20083 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20084 Add terminal arg.
20085 (PICK_FRAME): Remove.
20086 (w32con_write_glyphs): Use frame specific terminal coding.
20087 (one_and_only_w32cons): New global variable.
20088 (initialize_w32_display): Use it for storing hooks.
20089 (create_w32cons_output): New function.
20090
20091 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20092 arg a frame.
20093
20094 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20095 Set window_system.
20096 (x_set_tool_bar_lines): Don't use updating_frame.
20097 (Fx_create_frame): Set terminal and ref count.
20098 (Fx_open_connection): Remove window-system check.
20099
20100 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20101
20102 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20103 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20104 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20105 Add frame arg.
20106 (x_delete_terminal, w32_create_terminal): New functions.
20107 (w32_term_init): Create a terminal.
20108 (w32_initialize): Move terminal specific initialization to
20109 w32_create_terminal.
20110
20111 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20112 (w32_clear_rect, w32_clear_area): Use background from frame.
20113 (w32_display_info): Add terminal.
20114 (w32_sys_ring_bell, x_delete_display): Declare here.
20115
20116 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20117
20118 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20119
201202007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20121
20122 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20123 Fix get_named_tty calls for the controlling tty.
20124
201252007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20126
20127 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20128
201292007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20130
20131 * term.c (tty_insert_glyphs): Add missing first parameter.
20132
201332007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20134
20135 * buffer.c (Fbuffer_list, Fbury_buffer):
20136 Take frame->buried_buffer_list into account.
20137
20138 * cm.c (current_tty): New variable, for cmputc().
20139 (cmputc): Use it.
20140 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20141 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20142 (cmgoto): Add tty parameter. Pass it on to calccost().
20143 Use emacs_tputs() instead of tputs().
20144
20145 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20146 tputs().
20147 (current_tty): New variable, for cmputc().
20148 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20149
20150 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20151 (internal_condition_case, internal_condition_case_1)
20152 (internal_condition_case_2): Don't abort when x_catching_errors.
20153
20154 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20155 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20156 prevent crashes caused by bogus longjmps in read_char.
20157
20158 * keymap.h (Fset_keymap_parent): Add EXFUN.
20159
20160 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20161 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20162 Remove redundant definition.
20163
20164 * macfns.c (x_set_mouse_color, x_make_gc):
20165 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20166
20167 * w32term.c (x_free_frame_resources):
20168 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20169 (w32_initialize): Use the accessor macros for terminal characteristics.
20170
20171 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20172 Use the accessor macros for terminal characteristics.
20173 * msdos.c (internal_terminal_init): Use the accessor macros for
20174 terminal characteristics.
20175 (ScreenVisualBell, internal_terminal_init):
20176 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20177
20178 * termopts.h (no_redraw_on_reenter): Declare.
20179
20180 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20181 (mark_terminals, mark_ttys): Declare.
20182 (Fgarbage_collect): Call them.
20183 (mark_object): Mark buried_buffer_list.
20184
20185 * prefix-args.c: Include stdlib.h for exit.
20186
20187 * syssignal.h: Add comment.
20188
20189 * indent.c: Include stdio.h.
20190
20191 * window.h (Vinitial_window_system): Declare.
20192 (Vwindow_system): Delete declaration.
20193
20194 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20195
20196 * image.c (lookup_image): Don't initialize `c' until the xasserts
20197 have been run.
20198
20199 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20200 FRAME_FOREGROUND_PIXEL.
20201
20202 * print.c (print_preprocess): Don't lose print_depth levels while
20203 iterating.
20204
20205 * widget.c (update_from_various_frame_slots):
20206 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20207
20208 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20209 frames.
20210 (window_internal_height): Remove bogus make_number call.
20211 (init_window_once): Call make_terminal_frame with two zero parameters.
20212
20213 * fileio.c (Fread_file_name): Update comment.
20214
20215 * callint.c (Fcall_interactively):
20216 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20217 Make sure it is correctly unwound.
20218
20219 * xsmfns.c (x_session_close): New function.
20220
20221 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20222 Delete declarations.
20223
20224 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20225 (x_output): Remove background_pixel and foreground_pixel fields.
20226 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20227 (x_delete_device, x_session_close): Declare.
20228
20229 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20230 (read_filtered_event): Call `read_char' with a local
20231 `wrong_kboard_jmpbuf'.
20232
20233 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20234 Don't call single_kboard_state. Use FRAME_RIF.
20235
20236 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20237 systems.
20238
20239 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20240 (Fframe_with_environment, Fset_input_meta_mode)
20241 (Fset_quit_char): EXFUN.
20242 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20243 (init_sys_modes, reset_sys_modes): Update prototypes.
20244 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20245
20246 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20247 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20248 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20249 Delete declarations.
20250 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20251 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20252 New declarations.
20253
20254 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20255 already does that during init_display(). Call syms_of_keymap
20256 before syms_of_keyboard. Call `syms_of_terminal'.
20257 Call set_initial_environment, not set_process_environment.
20258 (shut_down_emacs): Call reset_all_sys_modes() instead of
20259 reset_sys_modes().
20260
20261 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20262 (internal_resolve_face_name, resolve_face_name_error): New functions.
20263 (resolve_face_name): Protect against loops and errors thrown by Fget.
20264 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20265 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20266
20267 * scroll.c: Replace CURTTY() with local variables throughout the
20268 file (where applicable).
20269 (calculate_scrolling, calculate_direct_scrolling)
20270 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20271 characteristics.
20272
20273 * keymap.c (Vfunction_key_map): Remove.
20274 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20275 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20276 (Vkey_translation_map): Remove.
20277 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20278 (Fdescribe_buffer_bindings)
20279 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20280 Update for terminal-local key-translation-map.
20281
20282 * Makefile.in (callproc.o): Update dependencies.
20283 (lisp, shortlisp): Add termdev.elc.
20284 (obj): Add terminal.o.
20285 (terminal.o): Add dependencies.
20286 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20287 (data.o, fns.o): Add termhooks.h dependency.
20288 (SOME_MACHINE_LISP): Add dnd.elc.
20289 (minibuf.o): Fix typo.
20290 Update dependencies.
20291
20292 * data.c (do_symval_forwarding, store_symval_forwarding)
20293 (find_symbol_value): Use the selected frame's keyboard, not
20294 current_kboard.
20295
20296 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20297 Vwindow_system.
20298
20299 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20300 Fmenu_bar_open.
20301 (syms_of_xmenu): Update defsubr.
20302 (mouse_position_for_popup, Fx_popup_menu)
20303 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20304 (set_frame_menubar, free_frame_menubar)
b97439ce 20305 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20306 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20307 an X frame.
20308
20309 * xselect.c (x_own_selection): Abort if not an X frame.
20310 (some_frame_on_display): Check if it is an X frame.
20311 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20312
20313 * coding.c: Include frame.h and termhooks.h.
20314 (terminal_coding, keyboard_coding): Delete.
20315 (Fset_terminal_coding_system_internal)
20316 (Fset_keyboard_coding_system_internal)
20317 (Fkeyboard_coding_system)
20318 (Fterminal_coding_system): Add a terminal parameter.
20319 Get terminal_coding from the terminal.
20320 (init_coding_once): Don't call setup_coding_system here.
20321
20322 * dispextern.h (set_scroll_region, turn_off_insert)
20323 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20324 (tty_clear_end_of_line, tty_setup_colors)
20325 (delete_tty, updating_frame)
20326 (produce_special_glyphs, produce_glyphs, write_glyphs)
20327 (insert_glyphs): Remove.
20328 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20329 (tty_turn_off_highlight, get_tty_size): Add declaration.
20330 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20331
20332 * frame.h (enum output_method): Add output_initial.
20333 (struct x_output): Delete.
20334 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20335 Access foreground_pixel and background_pixel directly from the frame.
20336 (tty_display): Delete.
20337 (struct frame): Add buried_buffer_list, foreground_pixel,
20338 background_pixel and terminal. Delete kboard.
20339 (union output_data): Add tty.
20340 (FRAME_KBOARD): Get the kboard from the terminal.
20341 (FRAME_INITIAL_P): New macro.
20342 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20343 (Qterm_environment_variable, Qdisplay_environment_variable)
20344 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20345 New declarations.
20346
20347 * termchar.h (tty_output, tty_display_info): New structures.
20348 (tty_list): Declare.
20349 (FRAME_TTY, CURTTY): New macros.
20350 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20351 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20352 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20353 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20354
20355 * callproc.c: Include frame.h and termhooks.h, for terminal
20356 parameters.
20357 (add_env): New function.
20358 (child_setup): Use it.
20359 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20360 (getenv_internal): Fix get_terminal_param call.
20361 (Fgetenv_internal, egetenv): Update doc.
20362 (syms_of_callproc): Initialize Vprocess_environment to nil.
20363 Register and initialize them. Remove obsolete defvars. Update doc
20364 strings.
20365 (child_setup): Handle Vlocal_environment_variables.
20366 (getenv_internal): Add terminal parameter.
20367 Handle Vlocal_environment_variables.
20368 (Fgetenv_internal): Add terminal parameter.
20369 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20370 environment in a frame (not terminal) parameter. Update doc strings.
20371 (set_initial_environment): Rename from set_global_environment.
20372 Store Emacs environment in initial frame parameter.
20373
20374 * xdisp.c (redisplay_internal): Update references to
20375 `previous_terminal_frame'.
20376 (display_mode_line, Fformat_mode_line): Replace calls to
20377 `push_frame_kboard' with `push_kboard'.
20378 (get_glyph_string_clip_rects): Add extra parentheses and
20379 braces to prevent compiler warnings.
20380 (calc_pixel_width_or_height): Add xassert to check that the
20381 frame is alive. Don't call `lookup_image' on a termcap frame.
20382 (message2_nolog, message3_nolog, redisplay_internal)
20383 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20384 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20385 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20386 (Fx_display_pixel_width, Fx_display_pixel_height)
20387 (Fx_display_planes, Fx_display_color_cells)
20388 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20389 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20390 (Fx_display_backing_store, Fx_display_visual_class)
20391 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20392 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20393
20394 * xfns.c (x_set_foreground_color x_set_background_color)
20395 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20396 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20397 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20398 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20399 terminal that is being deleted.
20400 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20401 frame parameter, and make sure it overrides any user-supplied setting.
20402 (Fx_close_connection, Fx_synchronize): Unify argument names with
20403 the rest of the DEFUNs.
20404
20405 * dispnew.c (Fsend_string_to_terminal): Update call to
20406 `get_tty_terminal'.
20407 (Fredraw_frame, Fsend_string_to_terminal)
20408 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20409 FRAME_TERMCAP_P and FRAME_TTY.
20410 (window_change_signal): Don't believe width/height values that are
20411 impossibly small.
20412 (Vinitial_window_system): Rename from Vwindow_system.
20413 (termscript, Wcm, rif): Delete.
20414
20415 * termhooks.h (struct terminal): New struct containing the
20416 previously global text display hooks and new members NAME,
20417 DELETED and PARAM_ALIST.
20418 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20419 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20420 (FRAME_RIF): New macros.
20421 (get_terminal_param, get_device): New declarations.
20422 (termscript): Delete declaration.
20423
20424 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20425 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20426 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20427 FRAME_FOREGROUND_PIXEL.
20428 (x_fully_uncatch_errors): Disable definition.
20429 (x_scroll_bar_expose): Fix reference to foreground pixel.
20430 (XTread_socket): Disable loop on all X displays.
20431 (x_delete_terminal): Don't set terminal->deleted and let
20432 delete_terminal delete the frames on the terminal.
20433 (x_delete_display): Doc update to reflect changes in
20434 delete_terminal.
20435 (x_display_info) <terminal>: Move member earlier in the struct.
20436 (deleting_tty): Remove old variable.
20437 (Fsuspend_tty): Call clear_tty_hooks.
20438 (Fresume_tty, init_tty): Call set_tty_hooks.
20439 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20440 errors on X frames.
20441 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20442 (handle_one_xevent): Initialize `f' to NULL.
20443 (x_delete_terminal, x_create_terminal): New functions.
20444 (XTset_terminal_modes, XTreset_terminal_modes)
20445 (XTread_socket, x_connection_closed, x_term_init)
20446 (x_term_init, x_delete_display): Add terminal parameter.
20447 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20448 X connections.
20449
20450 * frame.c: Include termchar.h.
20451 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20452 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20453 (Qdisplay_environment_variable): New vars.
20454 (Fframep): Deal with output_initial.
20455 (Fframe-live-p): Doc fix.
20456 (Fwindow-system): New function.
20457 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20458 (make_terminal_frame): Don't create frames on a terminal that is
20459 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20460 (store_frame_param): Check for found_for_frame before calling XFRAME.
20461 (Fmake_terminal_frame): Handle NULL tty names correctly.
20462 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20463 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20464 frames to refer to a deleted frame in their 'environment parameter.
20465 (Fframe_with_environment): New function.
20466 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20467 (get_future_frame_param): New function.
20468 (Fmake_terminal_frame): Use it.
20469 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20470
20471 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20472 * sysdep.c (reset_sys_modes): Update for renames.
20473
20474 * keyboard.c (tty_read_avail_input): New function.
20475 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20476 (syms_of_keyboard): Defsubr them.
20477 (Fset_input_meta_mode, Fset_quit_char): New functions.
20478 (Fset_input_mode): Split to above functions.
20479 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20480 parameter. Use it in call to `read_char'.
20481 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20482 Set wrong_kboard_jmpbuf correctly in recursive calls.
20483 Use current_kboard to access Vkeyboard_translate_table.
20484 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20485 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20486 Update longjmp invocations. Remember the original current_kboard,
20487 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20488 changes it. Comment out unnecessary calls to
20489 `record_single_kboard_state' and `any_kboard_state'.
20490 Update recursive calls.
20491 (wrong_kboard_jmpbuf): Remove global variable.
20492 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20493 Handle deleted interrupted_kboards correctly; that is a legal
20494 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20495 and read_char calls. Abort if interrupted_kboard died in read_char.
20496 (any_kboard_state, single_kboard_state)
20497 (push_frame_kboard): Remove function.
20498 (pop_kboard): Switch out of single_kboard mode if the kboard has
20499 been deleted. Remove unused variable. Help debugging by not
20500 changing current_kboard unnecessarily. Set current_kboard to the
20501 kboard of the selected frame when the stored kboard object has
20502 been deleted before pop_kboard.
20503 (temporarily_switch_to_single_kboard): Change first parameter to a
20504 frame pointer. Throw an error when caller wants to change kboards
20505 while in single_kboard mode. Don't push_kboard if we weren't in
20506 single kboard state. Don't pop_kboard if we popped into any
20507 kboard state.
20508 (restore_kboard_configuration): Abort if pop_kboard changed the
20509 kboard in single_kboard mode. Call pop_kboard only after setting
20510 up single_kboard mode.
20511 (Frecursive_edit): Switch to single_kboard mode only in nested
20512 command loops.
20513 (cmd_error, command_loop, command_loop_1, timer_check):
20514 Comment out unnecessary call to `any_kboard_state' and
20515 `record_single_kboard_state'.
20516 (delete_kboard): Exit single_kboard mode if we have just deleted
20517 that kboard. Use FRAME_KBOARD.
20518 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20519 `fatal_error_signal'.
20520 (record_single_kboard_state): Don't push_kboard if we weren't in
20521 single kboard state. Don't pop_kboard if we popped into any
20522 kboard state.
20523 (push_frame_kboard): Rename to push_kboard.
20524 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20525 (read_avail_input): Read input from all terminals.
20526 (mark_kboards): Also mark Vkeyboard_translate_table.
20527 (kbd_buffer_store_event_hold): Simplify condition.
20528 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20529 (Vkeyboard_translate_table): Move to struct kboard.
20530 (init_kboard): Initialize Vkeyboard_translate_table.
20531 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20532 Vkeyboard_translate_table. Update doc strings. Update docs of
20533 local-function-key-map and function-key-map.
20534
20535 * terminal.c: New file.
20536
20537 * term.c: Include errno.h.
20538 (Vring_bell_function, device_list, initial_device)
20539 (next_device_id, ring_bell, update_begin, update_end)
20540 (set_terminal_window, cursor_to, raw_cursor_to)
20541 (clear_to_end, clear_frame, clear_end_of_line)
20542 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20543 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20544 (syms_of_term): Move their initialization to terminal.c.
20545 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20546 (Ftty_display_color_cells)
20547 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20548 (clear_tty_hooks, set_tty_hooks)
20549 (init_tty, maybe_fatal): New functions.
20550 (Ftty_type): Return nil if terminal is not on a tty instead of
20551 throwing an error. Doc update.
20552 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20553 Doc update. Initialize new subrs and variables.
20554 (delete_tty): Use terminal->deleted.
20555 (tty_set_terminal_modes): Rename from set_terminal_modes.
20556 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20557 (set_scroll_region): Rename to `tty_set_scroll_region'.
20558 (turn_on_insert): Rename to `tty_turn_on_insert'.
20559 (turn_off_insert): Rename to `tty_turn_off_insert'.
20560 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20561 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20562 (toggle_highligh): Rename to `tty_toggle_highlight'.
20563 (background_highlight): Rename to `tty_background_highlight'.
20564 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20565 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20566 (tty_set_scroll_region, tty_background_highlight)
20567 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20568 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20569 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20570 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20571 Add static modifier.
20572 (tty_reset_terminal_modes, tty_set_terminal_window)
20573 (tty_set_scroll_region, tty_background_highlight)
20574 (tty_highlight_if_desired, tty_cursor_to)
20575 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20576 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20577 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20578 renames.
20579
205802007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20581
20582 * keyboard.c: Qrtl is new.
20583 (parse_tool_bar_item): Handle :rtl keyword.
20584 (syms_of_keyboard): Intern :rtl keyword.
20585
20586 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20587
20588 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20589 so no Lisp code is executed.
20590 (file_for_image, find_rtl_image): New functions.
20591 (xg_get_image_for_pixmap): Use file_for_image.
20592 (update_frame_tool_bar): If direction is RTL, use RTL image if
20593 defined. Use Gtk stock images if defined.
20594
205952007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20596
20597 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20598 for nonexistent or zero-width glyph in composition glyph.
20599
206002007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20601
20602 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20603
20604 * xdisp.c (Finvisible_p): New function.
20605 (syms_of_xdisp): defsubr it.
20606
206072007-08-24 Juanma Barranquero <lekktu@gmail.com>
20608
20609 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20610 Doc fixes.
20611
206122007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20613
20614 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20615
206162007-08-24 Martin Rudalics <rudalics@gmx.at>
20617
20618 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20619 whether decoding has modified buffer contents.
20620
206212007-08-24 Jason Rumney <jasonr@gnu.org>
20622
20623 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20624 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20625 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20626 (init_svg_functions) [HAVE_NTGUI]: New function.
20627 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20628 (svg_load_image): Use them.
20629 (svg_load_image) [HAVE_NTGUI]: Implement background.
20630
206312007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20632
20633 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20634 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20635 (LIBX): Remove @RSVG_LIBS@.
20636 (LIBES): Add $(RSVG_LIBS).
20637
20638 * image.c (svg_load_image): Blend with specified background if exists.
20639 Use IMAGE_BACKGROUND. Add Mac OS Support.
20640
20641 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20642 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20643 Remove macros.
20644 [MAC_OSX] (socket_callback): Do nothing.
20645 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20646 ReceiveNextEvent.
20647 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20648 socket_callback.
20649 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20650
206512007-08-22 Glenn Morris <rgm@gnu.org>
20652
20653 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20654
206552007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20656
20657 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20658
20659 * image.c: Add support for SVG images. Some additional comments
20660 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20661 (svg_image_p): New function to test for SVG image.
20662 (svg_load): New function to load SVG image.
20663 (svg_load_image): New function, helper for svg_load.
20664 (Qsvg): New Lisp_object.
20665 (svg_keyword_index): New enum.
20666 (svg_format): New static `image_keyword' struct.
20667 (svg_type): New static `image_type' struct.
20668 (librsvg/rsvg.h): Include it.
20669
206702007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20671
20672 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20673
206742007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20675
20676 * lread.c (Qold_style_backquotes): New var.
20677 (syms_of_lread): Init and staticpro it.
20678 (load_warn_old_style_backquotes): New fun.
20679 (Fload): Use them to warn about old style backquotes.
20680 (end_of_file_error, Fload): Remove unused vars.
20681
20682 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20683
20684 * lread.c (Vold_style_backquotes): New var.
20685 (syms_of_lread): Init and export it to Elisp.
20686 (read1): Set it when we find an old-style (back)quote.
20687
206882007-08-22 Jason Rumney <jasonr@gnu.org>
20689
20690 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20691
206922007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20693
20694 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20695
206962007-08-19 Richard Stallman <rms@gnu.org>
20697
20698 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20699
207002007-08-19 Andreas Schwab <schwab@suse.de>
20701
20702 * alloc.c (pure): Round PURESIZE up.
20703
207042007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20705
20706 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20707 active frame.
20708
207092007-08-16 Richard Stallman <rms@gnu.org>
20710
20711 * eval.c (Fcommandp): Add parens to clarify.
20712
20713 * minibuf.c (Fall_completions): Use enum for type of table.
20714
20715 * emacs.c (USAGE2): Improve text.
20716
207172007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20718
20719 * term.c (tty_default_color_capabilities): Declare static
20720 variables in file scope, to avoid HPUX compiler problem.
20721
207222007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20723
20724 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20725 to gtk_toolbar_insert.
20726
207272007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20728
20729 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20730
20731 * insdel.c (reset_var_on_error): New fun.
20732 (signal_before_change, signal_after_change):
20733 Use it to reset (after|before)-change-functions to nil in case of error.
20734 Bind inhibit-modification-hooks to t.
20735 Don't bind (after|before)-change-functions to nil while they run.
20736
207372007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20738
20739 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20740 filling pixmap with stippled background.
20741
207422007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20743
20744 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20745 Don't use invisible frame as parent window for repositioning.
20746
207472007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20748
20749 * print.c (new_backquote_output): Rename from old_backquote_output.
20750 (print): Inverse its logic (according to its name) so as to match the
20751 behavior of new_backquote_flag in lread.c.
20752
207532007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20754
20755 * gmalloc.c (posix_memalign): New function.
20756
20757 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20758 ActivateControl/DeactivateControl here.
20759 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20760 frame-notice-user-settings is non-nil.
20761 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20762 for kEventParamFMFontStyle.
20763 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20764 mac_pass_command_to_system and mac_pass_control_to_system here.
20765 (XTread_socket): Call ActivateControl/DeactivateControl here.
20766 (XTread_socket) [TARGET_API_MAC_CARBON]:
20767 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20768 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20769 for window repositioning.
20770
207712007-08-08 Glenn Morris <rgm@gnu.org>
20772
20773 * Replace `iff' in doc-strings and comments.
20774
207752007-08-07 Chong Yidong <cyd@stupidchicken.com>
20776
20777 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20778
207792007-08-07 Martin Rudalics <rudalics@gmx.at>
20780
20781 * fileio.c (Finsert_file_contents): Run format-decode and
20782 after_insert_file_functions on entire buffer when REPLACE is
20783 non-nil and inhibit modification_hooks and point_motion_hooks.
20784 For consistency, run after_insert_file_functions iff something
20785 got inserted. Move signal_after_change and update_compositions
20786 after code running after_insert_file_functions. Make sure that
20787 undo_list doesn't record intermediate steps of the decoding process.
20788
207892007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20790
20791 * emacs.c (main)
20792 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20793 Call malloc_enable_thread on interactive startup.
20794
20795 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20796 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20797 [USE_PTHREAD]: Conditionalize with it.
20798 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20799 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20800 New functions.
20801
208022007-08-06 Chong Yidong <cyd@stupidchicken.com>
20803
20804 * xdisp.c (redisplay_window): When restoring original buffer
20805 position, make sure it is still valid.
20806
20807 * image.c (png_load): Ignore png-supplied background color.
20808
208092007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20810
20811 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20812 Use kCFAbsoluteTimeIntervalSince1970.
20813
20814 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20815 New variable.
20816 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20817 event loop should be quit.
20818 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20819 Quit dialog event loop if quit_dialog_event_loop is set.
20820
20821 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20822 (Selection): New typedef. Use instead of ScrapRef.
20823 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20824 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20825 (mac_clear_selection): Rename from clear_scrap.
20826 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20827 scrap_has_target_type. All uses changed.
20828 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20829 (mac_selection_has_target_p): New functions.
20830 (mac_put_selection_value): Rename from put_scrap_string.
20831 (mac_get_selection_value): Rename from get_scrap_string.
20832 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20833 (put_scrap_private_timestamp, scrap_has_target_type)
20834 (get_scrap_private_timestamp): Remove functions.
20835 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20836 (x_own_selection, x_get_local_selection):
20837 Use mac_valid_selection_value_p.
20838 (x_own_selection): Don't use put_scrap_private_timestamp.
20839 Record OWNERSHIP-INFO into Vselection_alist instead.
20840 (x_get_local_selection): Don't check type if request is local.
20841 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20842 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20843
208442007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20845
20846 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20847 add comment explaining why.
20848
208492007-08-03 Richard Stallman <rms@gnu.org>
20850
20851 * fileio.c (Fvisited_file_modtime): Use make_time.
20852
208532007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20854
20855 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20856 build.
20857
208582007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20859
20860 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20861
208622007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20863
20864 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20865
208662007-07-30 Richard Stallman <rms@gnu.org>
20867
20868 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20869
208702007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20871
20872 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20873
208742007-07-28 Nick Roberts <nickrob@snap.net.nz>
20875
20876 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20877 remote default-directory.
20878
20879 * buffer.c (mode-line-format): Update doc string.
20880
208812007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20882
20883 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20884 scroll bar gap.
20885 (x_scroll_bar_create): Set bar->fringe_extended_p.
20886 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20887 on frame edge. Check fringe background extension. Don't clear
20888 extended fringe background area.
20889
20890 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20891 (w32_fill_area): Enclose multiple statements with do ... while (0).
20892
20893 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20894 Extend fringe background to scroll bar gap.
20895 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20896 Set bar->fringe_extended_p.
20897 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20898 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20899 background extension. Don't clear extended fringe background area.
20900
20901 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20902 New member fringe_extended_p.
20903
209042007-07-25 Glenn Morris <rgm@gnu.org>
20905
20906 * Relicense all FSF files to GPLv3 or later.
20907
20908 * COPYING: Switch to GPLv3.
20909
209102007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20911
20912 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20913
20914 * data.c (Finteractive_form): Check for the presence of an
20915 `interactive-form' symbol property more thoroughly.
20916
20917 * data.c (Finteractive_form): Use an `interactive-form' property if
20918 present, analogous to the function-documentation property.
20919
209202007-07-24 Jason Rumney <jasonr@gnu.org>
20921
20922 * w32fns.c (x_real_positions): Get real position from OS instead of
20923 calculating it.
20924
209252007-07-23 Jason Rumney <jasonr@gnu.org>
20926
20927 * filelock.c (current_lock_owner): Allow for @ sign in username.
20928
209292007-07-22 Nick Roberts <nickrob@snap.net.nz>
20930
20931 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20932 remote default-directory.
20933
20934 * buffer.c (mode-line-format): Describe above case in doc string.
20935
209362007-07-20 Eli Zaretskii <eliz@gnu.org>
20937
20938 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20939 Define if not defined.
20940
209412007-07-18 Jason Rumney <jasonr@gnu.org>
20942
20943 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20944
209452007-07-18 Richard Stallman <rms@gnu.org>
20946
20947 * data.c (Fsetq_default): Doc fix.
20948
20949 * eval.c (Fsetq): Doc fix.
20950
209512007-07-18 Juanma Barranquero <lekktu@gmail.com>
20952
20953 * coding.c (Ffind_operation_coding_system):
20954 * eval.c (For, Fand): Doc fixes.
20955 Reported by Johan Bockgård.
20956
209572007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20958
20959 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20960
20961 * xterm.h: Declare x_ewmh_activate_frame.
20962
20963 * xterm.c (x_ewmh_activate_frame): New function.
20964 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20965
209662007-07-17 Martin Rudalics <rudalics@gmx.at>
20967
20968 * window.c (Fdisplay_buffer): If largest or LRU window is the
20969 only window, split it even if it is not eligible for splitting.
20970 This restores the original behavior broken by the 2007-07-15
20971 change.
20972
209732007-07-17 Glenn Morris <rgm@gnu.org>
20974
20975 * abbrev.c (abbrev_check_chars): New function.
20976 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20977 Call abbrev_check_chars to check abbrev characters are word
20978 constituents. Doc fix.
20979
209802007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20981
20982 * process.c (Fstart_process, Fmake_network_process)
20983 (read_process_output): Fix up last changes.
20984
209852007-07-16 Eli Zaretskii <eliz@gnu.org>
20986
20987 * makefile.w32-in (clean): Don't delete *~.
20988
209892007-07-16 Andreas Schwab <schwab@suse.de>
20990
20991 * window.c (Fdisplay_buffer): Use NILP.
20992 (Fset_window_scroll_bars): Likewise.
20993
209942007-07-15 Martin Rudalics <rudalics@gmx.at>
20995
20996 * window.c (window_min_size_2): New function.
20997 (window_min_size_1, size_window, Fdisplay_buffer)
20998 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20999 windows without mode- or header-lines when window-min-height is
21000 too small.
21001 (size_window): Reset nodelete_p after testing it, following an
21002 earlier note by Kim F. Storm.
21003 (display_buffer): Do not set split_height_threshold to twice the
21004 value of window_min_height to avoid changing the value of a
21005 customizable variable. Rather explicitly check whether the
21006 height of the window that shall be splitted is at least as large
21007 as split_height_threshold.
21008 (Fwindow_full_width_p): New defun.
21009 (syms_of_window): Defsubr it.
21010
21011 * window.h: Add EXFUN for Fwindow_full_width_p.
21012
210132007-07-14 Jason Rumney <jasonr@gnu.org>
21014
21015 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21016
210172007-07-14 Richard Stallman <rms@gnu.org>
21018
21019 * eval.c (maybe_call_debugger): New function.
21020 (find_handler_clause): Use maybe_call_debugger.
21021 Call it when the handler says `debug'.
21022 Eliminate DEBUGGER_VALUE_PTR.
21023 (Fsignal): Eliminate debugger_value.
21024 (Qdebug): New variable.
21025 (syms_of_eval): Initialize it.
21026
210272007-07-14 Juanma Barranquero <lekktu@gmail.com>
21028
21029 * eval.c (Fprogn):
21030 * keyboard.c (Ftrack_mouse):
21031 * print.c (Fwith_output_to_temp_buffer):
21032 * window.c (Fsave_window_excursion): Doc fix.
21033
210342007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21035
21036 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21037
210382007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21039
21040 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21041 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21042 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21043 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21044 Remove unused encoding_carryover.
21045 * process.c: Adjust all functions accordingly.
21046
210472007-07-12 Richard Stallman <rms@gnu.org>
21048
21049 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21050
210512007-07-11 Jason Rumney <jasonr@gnu.org>
21052
21053 * makefile.w32-in (LIBS): Include OLE32.
21054
21055 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21056 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21057
210582007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21059
21060 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21061 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21062 from a Lisp_Object into a bare pointer.
21063 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21064 Adjust the code correspondingly.
21065
21066 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21067
21068 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21069 (term_show_mouse_face): Remove unused var `j'.
21070 (handle_one_term_event): Remove unused vars `i' and `j'.
21071 Don't cast return value of ttyname since it's not necessary.
21072
210732007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21074
21075 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21076 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21077
21078 * fns.c (map_char_table): Use an array of int for `indices' rather than
21079 an array of Lisp_Objects (which are only ever integers anyway).
21080 (Fmap_char_table): Update caller.
21081 * lisp.h: Update prototype.
21082 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21083 * fontset.c (Ffontset_info):
21084 * casetab.c (set_case_table): Update callers.
21085
21086 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21087
21088 * keymap.c (struct accessible_keymaps_data)
21089 (struct where_is_internal_data): New structures.
21090 (accessible_keymaps_1, where_is_internal_1): Use them to change
21091 interface to adhere to the one used by map_keymap.
21092 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21093 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21094
21095 * keymap.h (map_keymap_function_t): More informative prototype.
21096
210972007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21098
21099 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21100 (looking_at_1): Don't change search_regs and last_thing_searched
21101 if `inhibit-changing-match-data' is non-nil.
21102 (string_match_1, search_buffer, set_search_regs): Likewise.
21103 (syms_of_search): Add Lisp level definition for
21104 `inhibit-changing-match-data' and set it to nil.
21105 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21106 start and end of the match, instead of using values in search_regs.
21107
211082007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21109
21110 * minibuf.c (Fcompleting_read): New value `confirm-only'
21111 for `require-match'.
21112
211132007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21114
21115 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21116 part of the 2007-06-27 change to syms_of_fileio.
21117
211182007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21119
21120 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21121 Check WINDOWP before using XWINDOW. Consolidate return statements.
21122
211232007-06-27 Richard Stallman <rms@gnu.org>
21124
21125 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21126
211272007-06-27 Juanma Barranquero <lekktu@gmail.com>
21128
21129 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21130
211312007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21132
21133 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21134 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21135 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21136 (_free_internal, memalign): Use them.
21137 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21138 Initialize to PTHREAD_MUTEX_INITIALIZER.
21139 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21140 (morecore_nolock): Rename from morecore. All uses changed.
21141 Use only nolock versions of internal allocation functions.
21142 (_malloc_internal_nolock, _realloc_internal_nolock)
21143 (_free_internal_nolock): New functions created from
21144 _malloc_internal, _realloc_internal, and _free_internal.
21145 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21146 Copy hook value to automatic variable before its use.
21147 (memalign): Copy hook value to automatic variable before its use.
21148
211492007-06-26 Kenichi Handa <handa@m17n.org>
21150
21151 * coding.c (Ffind_operation_coding_system): Docstring improved.
21152 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21153
211542007-06-25 David Kastrup <dak@gnu.org>
21155
21156 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21157 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21158 cater for additional parameter.
21159
21160 * keymap.h: Adjust number of parameters to `current-active-maps'.
21161
21162 * doc.c (Fsubstitute_command_keys): Adjust call of
21163 `current-active-maps'.
21164
211652007-06-25 David Kastrup <dak@gnu.org>
21166
21167 * callint.c (Fcall_interactively): Make the parsing of interactive
21168 specs somewhat more readable.
21169
211702007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21171
21172 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21173 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21174 if extended background has already been filled.
21175
211762007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21177
21178 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21179 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21180
21181 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21182 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21183 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21184 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21185 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21186 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21187 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21188 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21189 Run timers during dialog popup.
21190 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21191
211922007-06-21 Jason Rumney <jasonr@gnu.org>
21193
21194 * image.c (convert_mono_to_color_image): Swap fore and background.
21195
211962007-06-20 Jason Rumney <jasonr@gnu.org>
21197
21198 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21199 (w32_free_bdf_font): Unmap memory not handle.
21200
212012007-06-20 Sam Steingold <sds@gnu.org>
21202
21203 * gmalloc.c (__morecore): Fix the declaration to comply with the
21204 definition.
21205
212062007-06-20 Juanma Barranquero <lekktu@gmail.com>
21207
21208 * w32term.c (w32_delete_display): Remove leftover declaration.
21209 (w32_define_cursor, w32_initialize): Make static.
21210
21211 * w32.c (_wsa_errlist): Fix typo in error message.
21212 (init_environment): Ignore any environment variable from the
21213 registry having a null value.
21214
212152007-06-20 Glenn Morris <rgm@gnu.org>
21216
21217 * Makefile.in (LIBGIF): Default to -lgif.
21218
212192007-06-17 Jason Rumney <jasonr@gnu.org>
21220
21221 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21222 unicode strings.
21223
212242007-06-16 Juanma Barranquero <lekktu@gmail.com>
21225
21226 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21227 Fix typo in docstring.
21228
212292007-06-16 Eli Zaretskii <eliz@gnu.org>
21230
21231 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21232 and their keybindings.
21233
212342007-06-15 Chong Yidong <cyd@stupidchicken.com>
21235
21236 * composite.c (update_compositions): Fix last fix.
21237
212382007-06-14 Jason Rumney <jasonr@gnu.org>
21239
21240 * w32.c (get_process_times_fn): New function pointer.
21241 (globals_of_w32): Intialize it if present in kernel32.dll.
21242 (w32_get_internal_run_time): New function.
21243
21244 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21245
212462007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21247
21248 * composite.c (update_compositions): Check the validness of
21249 compositions.
21250
212512007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21252
21253 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21254 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21255
21256 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21257 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21258
21259 * macgui.h (USE_MAC_TOOLBAR): New define.
21260
21261 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21262 Return immediately unless popup is activated.
21263
21264 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21265 background to scroll bar gap.
21266 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21267 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21268 scroll bars on frame edge. Check fringe background extension.
21269 Don't clear extended fringe background area.
21270 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21271 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21272 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21273 [USE_MAC_TOOLBAR]: New macros.
21274 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21275 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21276 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21277 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21278 [USE_MAC_TOOLBAR]: New functions.
21279 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21280 manually if previous repositioning has failed.
21281 (mac_handle_keyboard_event): Use precomputed event kind.
21282 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21283 as tool bar item click. Handle mouse movement over tool bar items.
21284
21285 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21286 toolbar_win_gravity.
21287 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21288 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21289 Add externs.
21290
21291 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21292 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21293
212942007-06-14 Chong Yidong <cyd@stupidchicken.com>
21295
21296 * image.c (search_image_cache): Remove unused variable.
21297
212982007-06-13 Chong Yidong <cyd@stupidchicken.com>
21299
21300 * xfns.c, xmenu.c: Link to xaw3d if available.
21301
213022007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21303
21304 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21305 frame_foreground and frame_background.
21306
21307 * image.c (lookup_image): Save frame foreground and background colors.
21308 (search_image_cache): Check if saved and current frame colors match.
21309
213102007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21311
21312 * regex.c (regex_compile): Remove the `regnum' counter.
21313 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21314
213152007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21316
21317 * term.c: Include intervals.h to declare Fget_text_property.
21318
213192007-06-10 Jason Rumney <jasonr@gnu.org>
21320
21321 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21322
213232007-06-08 Juanma Barranquero <lekktu@gmail.com>
21324
21325 * callint.c (Fcall_interactively):
21326 * editfns.c (Fdelete_and_extract_region):
21327 * fileio.c (Fread_file_name):
21328 * fns.c (Fmapconcat):
21329 * keyboard.c (cmd_error_internal):
21330 * keymap.c (Fkey_description):
21331 * lread.c (openp):
21332 * minibuf.c (read_minibuf):
21333 * search.c (wordify):
21334 * sunfns.c (sel_read):
21335 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21336 * xfns.c (x_default_scroll_bar_color_parameter):
21337 * xmenu.c (menu_help_callback):
21338 * xselect.c (Fx_get_atom_name):
21339 * xterm.c (x_term_init): Use empty_unibyte_string.
21340
213412007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21342
21343 * alloc.c (init_strings): Initialize canonical empty strings.
21344 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21345 canonical empty string when the requested size is 0.
21346
21347 * emacs.c (empty_unibyte_string): Rename from empty_string.
21348 (empty_multibyte_string): New canonical empty string.
21349 (syms_of_emacs): Don't initialize empty_string.
21350
21351 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21352 string, if appropriate.
21353 (empty_unibyte_string, empty_multibyte_string): New externs.
21354 (empty_string): Remove extern.
21355
21356 * lread.c (syms_of_lread): Use empty_unibyte_string.
21357
213582007-06-07 Jason Rumney <jasonr@gnu.org>
21359
21360 * s/ms-w32.h: Don't define HAVE_TZNAME.
21361
21362 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21363
213642007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21365
21366 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21367
21368 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21369 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21370
21371 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21372 Don't call next handler.
21373 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21374 Remove argument. Install handler to application.
21375 (set_frame_menubar): Don't change deep_p.
21376 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21377 FRAME_OUTER_TO_INNER_DIFF_Y.
21378 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21379 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21380 [HAVE_DIALOGS]: New macros.
21381 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21382 Use them.
21383 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21384
21385 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21386 init_service_handler. All callers changed. Return OSStatus value.
21387
21388 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21389 All callers changed so as not to call SetPortWindowPort.
21390 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21391 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21392 mac_draw_string_common.
21393 (mac_draw_image_string_qd): Likewise.
21394 (mac_draw_string_common): Use them. Add INLINE.
21395 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21396 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21397 GetGlobalMouse.
21398 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21399 and FRAME_OUTER_TO_INNER_DIFF_Y.
21400 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21401 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21402 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21403 repositioning window to mac_handle_window_event.
21404 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21405 saving window location to mac_handle_window_event
21406 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21407 (install_menu_target_item_handler): Remove argument in extern.
21408 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21409 Also accept command events.
21410 (do_keystroke): New function created from XTread_socket.
21411 (init_command_handler): Remove functions.
21412 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21413 and save window location by kEventWindowShowing and kEventWindowHiding
21414 handlers here. Don't call next handler for window state change and
21415 focus events.
21416 (mac_handle_application_event, mac_handle_keyboard_event)
21417 [TARGET_API_MAC_CARBON]: New functions.
21418 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21419 kEventWindowShowing and kEventWindowHiding events. Move installation
21420 of mouse, font, text input and menu target item handlers to
21421 install_application_handler.
21422 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21423 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21424 New function.
21425 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21426 Register it.
21427 (XTread_socket) [TARGET_API_MAC_CARBON]:
21428 Consolidate SendEventToEventTarget calls.
21429 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21430 Move application activation handler to mac_handle_application_event.
21431 Move keyboard handler to mac_handle_keyboard_event.
21432 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21433 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21434 init_command_handler. Call install_application_handler.
21435
21436 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21437 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21438
214392007-06-07 Glenn Morris <rgm@gnu.org>
21440
21441 * emacs.c (main): Use `emacs-copyright' in --version output.
21442
214432007-06-06 Chong Yidong <cyd@stupidchicken.com>
21444
21445 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21446
214472007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21448
21449 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21450
21451 * macgui.h: Replace WindowPtr with WindowRef.
21452
21453 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21454 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21455 Replace ControlHandle with ControlRef.
21456 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21457
21458 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21459 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21460 Replace ControlHandle with ControlRef.
21461 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21462 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21463
21464 * macterm.h (struct scroll_bar): Rename member control_handle_low
21465 and control_handle_high to control_ref_low and control_ref_high.
21466 All uses changed.
21467 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21468 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21469 respectively. All uses changed.
21470 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21471 (install_window_handler, remove_window_handler): Replace WindowPtr
21472 with WindowRef in externs.
21473
214742007-06-05 Juanma Barranquero <lekktu@gmail.com>
21475
21476 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21477
214782007-06-03 Nick Roberts <nickrob@snap.net.nz>
21479
21480 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21481
21482 * frame.c (Fmouse_position, Fmouse_pixel_position):
21483 Condition on HAVE_GPM too.
21484
21485 * term.c (term_mouse_highlight): Remove unused variables.
21486 (Fterm_open_connection): Set gpm_zerobased to 1.
21487 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21488 Use zero based co-ordinates.
21489 (handle_one_term_event): Report a drag as mouse movement too.
21490
21491 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21492
214932007-06-03 Chong Yidong <cyd@stupidchicken.com>
21494
21495 * image.c (search_image_cache): New function. Require background
21496 color match if background color is unspecified in the image spec.
21497 (uncache_image, lookup_image): Use it.
21498
214992007-06-01 Juanma Barranquero <lekktu@gmail.com>
21500
21501 * window.c (Fshrink_window): Reflow docstring.
21502
215032007-06-02 Chong Yidong <cyd@stupidchicken.com>
21504
21505 * Version 22.1 released.
21506
215072007-06-01 Richard Stallman <rms@gnu.org>
21508
21509 * xfns.c (x_encode_text): Add GCPRO.
21510
215112007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21512
21513 * xfns.c (x_set_name_internal): Save encoded name before
21514 x_encode_text in case string data is relocated.
21515
215162007-05-31 Richard Stallman <rms@gnu.org>
21517
21518 * buffer.c (syms_of_buffer): Doc fix.
21519
215202007-05-30 Nick Roberts <nickrob@snap.net.nz>
21521
21522 * sysdep.c (init_sys_modes): Add rather than replace with
21523 O_NONBLOCK.
21524
21525 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21526 term_mouse_moveto.
21527
21528 * termhooks.h (term_mouse_moveto): New extern.
21529
21530 * term.c (mouse_face_window): Rename...
21531 (Qmouse_face_window): ...to this.
21532 (term_show_mouse_face, term_clear_mouse_face)
21533 (term_mouse_highlight): Use Qmouse_face_window.
21534 (term_mouse_moveto): New function.
21535 (term_mouse_position): Make it work.
21536 (syms_of_term): Uncomment assignment to mouse_position_hook.
21537 Staticpro Qmouse_face_window.
21538
215392007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21540
21541 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21542 around current_column call.
21543
215442007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21545
21546 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21547 * xdisp.c (next_element_from_buffer):
21548 * window.c (delete_window):
21549 * term.c (term_mouse_highlight):
21550 * msdos.c (getdefdir):
21551 * macterm.c (mac_create_bitmap_from_bitmap_data)
21552 (init_font_name_table):
21553 * fns.c (Fsxhash):
21554 * data.c (Fmake_local_variable):
21555 * ccl.c (ccl_driver): Likewise.
21556
215572007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21558
21559 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21560 Call mac_wakeup_from_rne on window size change.
21561
215622007-05-25 Chong Yidong <cyd@stupidchicken.com>
21563
21564 * image.c (uncache_image): Fix typo.
21565
215662007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21567
21568 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21569
215702007-05-22 Richard Stallman <rms@gnu.org>
21571
21572 * xterm.c (x_connection_closed): Remove NO_RETURN.
21573
215742007-05-22 Martin Rudalics <rudalics@gmx.at>
21575
21576 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21577
215782007-05-21 Chong Yidong <cyd@stupidchicken.com>
21579
21580 * image.c (uncache_image): New function.
21581 (Fimage_refresh): New function.
21582
215832007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21584
21585 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21586
215872007-05-20 Nick Roberts <nickrob@snap.net.nz>
21588
21589 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21590 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21591
215922007-05-20 Nick Roberts <nickrob@snap.net.nz>
21593
21594 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21595 conditional on [HAVE_GPM_H].
21596
215972007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21598
21599 * syntax.c (skip_chars): Update syntax-table only after we checked that
21600 the new location is valid.
21601
216022007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21603
21604 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21605 mac_get_window_bounds.
21606
216072007-05-20 Nick Roberts <nickrob@snap.net.nz>
21608
21609 * Makefile.in (LIBGPM): Allow it to be set from configure.
21610 If set then link Emacs with it.
21611
21612 * config.in: Regenerate.
21613
21614 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21615 New externs.
21616
21617 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21618 Include gpm.h.
21619 (handle_one_term_event, term_gpm): New externs.
21620
21621 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21622 and allow it to be interrupted by SIGIO.
21623
21624 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21625 (wait_reading_process_output): Wait on gpm_fd too.
21626 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21627 (add_gpm_wait_descriptor_called_flag): New variable.
21628 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21629
21630 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21631 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21632 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21633 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21634 (make_lispy_event): Add case GPM_CLICK_EVENT.
21635 (read_avail_input): Handle mouse input.
21636
21637 * term.c (write_glyphs_with_face): New function.
21638 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21639 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21640 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21641 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21642 (last_mouse_x, last_mouse_y): New variables.
21643 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21644 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21645 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21646 (Fterm_close_connection): New functions.
21647 (term_init): Initialise mouse_face_window.
21648
216492007-05-19 Chong Yidong <cyd@stupidchicken.com>
21650
21651 * xdisp.c (redisplay_window): If first window line is a
21652 continuation line, recompute the new window start instead of
21653 recentering.
21654
216552007-05-18 Glenn Morris <rgm@gnu.org>
21656
21657 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21658 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21659
216602007-05-17 Glenn Morris <rgm@gnu.org>
21661
21662 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21663
216642007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21665
21666 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21667 dead key repeat and up events.
21668
216692007-05-14 Chong Yidong <cyd@stupidchicken.com>
21670
21671 * image.c (pbm_load): Check image size for monochrome pbm.
21672
216732007-05-13 Chong Yidong <cyd@stupidchicken.com>
21674
21675 * xterm.c (XTread_socket): Revert last change.
21676
216772007-05-12 Chong Yidong <cyd@stupidchicken.com>
21678
21679 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21680
21681 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21682
216832007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21684
21685 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21686 mixup (YAILOM).
21687
216882007-05-07 Andreas Schwab <schwab@suse.de>
21689
21690 * keymap.c (Flookup_key): Fix typo in last change.
21691
216922007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21693
21694 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21695 mapping for unibyte strings.
21696
216972007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21698
21699 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21700 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21701
217022007-04-29 Richard Stallman <rms@gnu.org>
21703
21704 * insdel.c (replace_range): For undo, record insertion first.
21705
217062007-04-29 Andreas Schwab <schwab@suse.de>
21707
21708 * lisp.h (VECSIZE): Use OFFSETOF.
21709
217102007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21711
21712 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21713 disabled lines.
21714
217152007-04-28 Richard Stallman <rms@gnu.org>
21716
21717 * lread.c (read_escape): In a string, \s is always space.
21718
217192007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21720
21721 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21722
21723 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21724 submenu for menu bar items.
21725
21726See ChangeLog.10 for earlier changes.
21727
21728;; Local Variables:
21729;; coding: utf-8
21730;; add-log-time-zone-rule: t
aac0c6e3
MR
21731;; End:
21732
e3eb1dae 21733 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21734
21735 This file is part of GNU Emacs.
21736
21737 GNU Emacs is free software: you can redistribute it and/or modify
21738 it under the terms of the GNU General Public License as published by
21739 the Free Software Foundation, either version 3 of the License, or
21740 (at your option) any later version.
21741
21742 GNU Emacs is distributed in the hope that it will be useful,
21743 but WITHOUT ANY WARRANTY; without even the implied warranty of
21744 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21745 GNU General Public License for more details.
21746
21747 You should have received a copy of the GNU General Public License
21748 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21749
21750;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40