(Man-files-regexp): Tighten up the regexp (bug#5686).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
618db430
SM
12010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
254c06a8
SM
3 * regex.c (regex_compile): Setup gl_state as well.
4
618db430
SM
5 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6 (in_classes): Use CONSP before XCAR/XCDR.
7
233f0c9f
CY
82010-03-03 Chong Yidong <cyd@stupidchicken.com>
9
10 * keymap.c (Fwhere_is_internal): Use Fequal to compare
11 definitions, so that keyboard macros are correctly handled
12 (Bug#5481).
13
75f80e63
EZ
142010-03-02 Eli Zaretskii <eliz@gnu.org>
15
16 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
17 text that could be relocated inside the call to emacs_mule_char.
18 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
19 (CODING_DECODE_CHAR): Add a comment describing its purpose.
20
dcfb9bc4
KH
212010-03-02 Kenichi Handa <handa@m17n.org>
22
fc9a17bc
KH
23 * character.c (parse_str_as_multibyte): Fix handling of the
24 multibyte form of raw-bytes.
25 (str_as_multibyte): Likewise.
26
dcfb9bc4
KH
27 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
28 form of raw-bytes.
29
412c01b6
CY
302010-02-28 Chong Yidong <cyd@stupidchicken.com>
31
32 * charset.c (load_charset_map_from_file)
33 (load_charset_map_from_vector): Zero out allocated
34 charset_map_entries before using them.
35
df7e1ea0
AS
362010-02-27 Andreas Schwab <schwab@linux-m68k.org>
37
38 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
39
fe69a722
CY
402010-02-27 Chong Yidong <cyd@stupidchicken.com>
41
4ed28cf4
CY
42 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
43 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 44
7379cfce
KH
452010-02-26 Kenichi Handa <handa@m17n.org>
46
f88cc4d6
KH
47 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
48
7379cfce
KH
49 * xdisp.c (reseat_to_string): Fix previous change.
50
cf2fdcfb
CY
512010-02-26 David Reitter <david.reitter@gmail.com>
52
53 * nsfont.m (nsfont_draw): ns_antialias_text should be a
54 Lisp_Object (Bug#4736).
55
cc6c7c75
KH
562010-02-25 Kenichi Handa <handa@m17n.org>
57
58 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
59
32e737d7
JD
602010-02-24 Jan Djärv <jan.h.d@swipnet.se>
61
62 * xterm.c (XTflash): Move declarations before statements.
63
64 * gtkutil.c (xg_get_gdk_display): Remove (unused).
65 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
66 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
67 (xg_create_tool_bar): Remove unused variables.
68 (x_wm_set_size_hint): Move declarations before statements.
69 (xg_create_frame_widgets): Remove variable grav,
70
676cae9f
CY
712010-02-21 Chong Yidong <cyd@stupidchicken.com>
72
73 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
74
886cc2b8
SM
752010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
76
77 * term.c (fatal): Add a final \n if needed (bug#5596).
78
ddb2d8e2
CY
792010-02-18 Chong Yidong <cyd@stupidchicken.com>
80
81 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
82
2a4f8d3d
GM
832010-02-18 Glenn Morris <rgm@gnu.org>
84
85 * callint.c (Finteractive): Doc fix.
86
ebaf11b6
KH
872010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
88
886cc2b8
SM
89 * coding.c (record_conversion_result):
90 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
91 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
92 memory allocation error.
93
d0396581
KH
942010-02-17 Kenichi Handa <handa@m17n.org>
95
886cc2b8
SM
96 * coding.c (decode_coding_ccl): Don't setup ccl program here.
97 Fix for the case that the output buffer is fullfilled.
d0396581
KH
98 (decode_coding): Setup ccl program here. Keep looping when the
99 decoder stopped because the output buffer is
100 fullfilled (bug#5534).
101
102 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
103
98599f74
JD
1042010-02-13 Jan Djärv <jan.h.d@swipnet.se>
105
471e4f04 106 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 107 bug #5571.
886cc2b8 108 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 109 overdrawn.
98599f74 110
182659ae
JD
1112010-02-10 Jan Djärv <jan.h.d@swipnet.se>
112
113 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
114 doing_interact here.
115 (ice_connection_closed): New function.
116 (x_session_check_input, smc_die_CB, ice_io_error_handler)
117 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
118 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
119 returns I/O error.
120 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
121 bug #5512.
122
9be32c4e 1232010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
124
125 * nsfont.m (nsfont_open): The system's value for the font descent
126 is negative, so round it down to avoid clipping.
127
a2f3eb19
CY
1282010-02-06 Chong Yidong <cyd@stupidchicken.com>
129
130 * charset.c (load_charset_map_from_file)
131 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 132 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 133
3088147c
CY
1342010-02-05 Chong Yidong <cyd@stupidchicken.com>
135
136 * charset.c (load_charset_map_from_file): Allocate large
137 charset_map_entries structure on the heap rather than the stack.
138 (Bug#5526).
139
b57d9029
KH
1402010-01-31 Kenichi Handa <handa@m17n.org>
141
142 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 143 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 144
c67d885b
CY
1452010-01-31 Chong Yidong <cyd@stupidchicken.com>
146
147 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
148 <deactivated@gmail.com> (Bug#3605).
149
8fab2362
CY
1502010-01-31 David De La Harpe Golden <david@harpegolden.net>
151
152 * fileio.c (Frename_file): Correctly rename symlinks to
153 directories (Bug#5496).
154
cb2a62f2
CY
1552010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
156
157 * nsterm.m (ns_ring_bell): Handle visible bell like X.
158
944c7a26
AS
1592010-01-30 Andreas Schwab <schwab@linux-m68k.org>
160
161 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
162
c024ac08
CY
1632010-01-29 Chong Yidong <cyd@stupidchicken.com>
164
165 * frame.c (DEFAULT_ROWS): Change default to 35.
166
167 * xfns.c (x_default_font_parameter): Change default XFT font to
168 monospace-10 (Bug#3643).
169
af93af83
EZ
1702010-01-29 Eli Zaretskii <eliz@gnu.org>
171
172 * w32inevt.c (key_event): Remove unnecessary comparison of
173 event->uChar.AsciiChar with 128.
174
ca0eb708
CY
1752010-01-28 Chong Yidong <cyd@stupidchicken.com>
176
b242dbfc
CY
177 * fileio.c (Frename_file): Fix last change (Bug#5487).
178
ca0eb708
CY
179 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
180
181 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
182
45d45af5
JD
1832010-01-28 Jan Djärv <jan.h.d@swipnet.se>
184
185 * xfns.c (Fx_create_frame): Remove window size matching code from
186 2010-01-15.
187 (x_get_current_desktop, x_get_desktop_workarea): Remove
188
7e233730
JR
1892010-01-27 Jason Rumney <jasonr@gnu.org>
190
191 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 192 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 193
86e893e3
KH
1942010-01-27 Kenichi Handa <handa@m17n.org>
195
196 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 197 pattern string (Bug#4209).
86e893e3 198
8719abec
CY
1992010-01-27 David De La Harpe Golden <david@harpegolden.net>
200
201 * fileio.c (Frename_file): Call copy-directory and
202 delete-directory for directories, in order to handle cross-device
203 renaming (Bug#3353).
204
844794c8
JD
2052010-01-25 Jan Djärv <jan.h.d@swipnet.se>
206
aa3e13b5 207 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 208 sizes 24 and 10. Bug #3643.
844794c8 209
bd4b5750
SM
2102010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
211
8dc1adf6 212 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
213 * keymap.c (shadow_lookup): Add `remap' arg.
214 (describe_map, describe_vector): Update calls to shadow_lookup.
215 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
216 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
217 perform remapping during shadow_lookup check of remapped_sequences.
218
285d07e2
CY
2192010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
220
221 * image.c (png_load): Use png_sig_cmp instead of the obsolete
222 png_check_sig, which has been removed in libpng 1.4.
223
c6d09b8d
CY
2242010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
225
226 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
227 lacks this header file).
228
3d782998
YM
2292010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
230
231 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
232 as in Emacs 22.
233
2aff7c53
YM
2342010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
235
236 * lisp.h (make_pure_string): String pointer arg now points to const.
237
238 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
239 args now point to const.
240
74327f7a
EZ
2412010-01-22 Eli Zaretskii <eliz@gnu.org>
242
243 * lread.c (Fload): Don't treat files without .elc extension as
244 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
245 them. (bug#5303)
246
4d1e6632
KH
2472010-01-20 Kenichi Handa <handa@m17n.org>
248
249 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
250 treat the source as actual byte sequence.
251
1fdede8f
AM
2522010-01-19 Alan Mackenzie <acm@muc.de>
253
254 Fix spurious before-change-functions invocation from (insert ?\n).
255 * textprop.c (set_text_properties): rename parameter
256 `signal_after_change_p' to `coherent_change_p', and make the
257 invocation of `modify_region' conditional on it.
258
67477f30
JD
2592010-01-19 Jan Djärv <jan.h.d@swipnet.se>
260
261 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
262 for debug purpose.
263 (syms_of_xsettings): Declare xft-settings.
264
244b023e
CY
2652010-01-18 Chong Yidong <cyd@stupidchicken.com>
266
267 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
268
617364fe
CY
2692010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
270
271 * xterm.c (event_handler_gdk): Block input (Bug#5037).
272
4fe22cdf
CY
2732010-01-16 Chong Yidong <cyd@stupidchicken.com>
274
275 * emacs.c (standard_args): Adjust arg priorities to reflect how
276 they are processed in startup.el.
277
e118d2be
AS
2782010-01-16 Andreas Schwab <schwab@linux-m68k.org>
279
280 * Makefile.in (lisp, shortlisp): Update.
281
523ae620
SM
2822010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
283
284 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
285 code, link the new kboard into all_kboard before running Lisp code,
286 and protect the new terminal with GCPRO (Bug#5365).
287 (x_term_init): Remove unused var `atom'.
288 (x_delete_display, x_delete_terminal): Remove unused var `i'.
289
f0d13888
JD
2902010-01-15 Jan Djärv <jan.h.d@swipnet.se>
291
292 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
293 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
294 to find out usable size of the desktop. Don't make frames larger than
ac146f82 295 this. Bug #3643.
f0d13888 296
cc320f07
KH
2972010-01-15 Kenichi Handa <handa@m17n.org>
298
299 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
300
7ffdf101
CY
3012010-01-15 Chong Yidong <cyd@stupidchicken.com>
302
303 * nsterm.m (Qnone): Define.
304
305 * nsfns.m (Qnone): Move definition to nsterm.m.
306
d12bd917
KH
3072010-01-14 Kenichi Handa <handa@m17n.org>
308
309 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
310 systems.
311
d9a7c140
KH
3122010-01-14 Kenichi Handa <handa@m17n.org>
313
314 Make auto-composition work on all buffers even if they are
315 fundamental mode.
316
317 * composite.c (Vauto_composition_mode): New variable.
318 (composition_compute_stop_pos): Check Vauto_composition_mode
319 instead of Vauto_composition_function.
320 (composition_adjust_point, Ffind_composition_internal): Likewise.
321 (syms_of_composite): Declare Lisp variable
322 "auto-composition-mode" here.
323
63286bb2
CY
3242010-01-13 Chong Yidong <cyd@stupidchicken.com>
325
326 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
327 during call to vendor-specific-keysyms (Bug#5365).
328
c2623ee7
YM
3292010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
330
331 * keyboard.c (input_available_signal) [SYNC_INPUT]:
332 Call SIGNAL_THREAD_CHECK (Bug#5333).
333
334 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
335 Call SIGNAL_THREAD_CHECK.
336
0b5397c2
SM
3372010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
338
339 Try to fix bug#5314. This is probably not the final word, tho.
340 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
341 recent-auto-save-p as a side-effect.
342 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
343 * buffer.c (Fkill_buffer, reset_buffer):
344 * editfns.c (Fsubst_char_in_region):
345 * fileio.c (Finsert_file_contents, Fdo_auto_save)
346 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
347
dc954cb2
KH
3482010-01-13 Kenichi Handa <handa@m17n.org>
349
350 Display buffer name, etc. in mode line by composing correctly.
351
352 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
353 STRING is not nil.
0b5397c2 354 (display_mode_element): Adjust for the change of
dc954cb2
KH
355 decode_mode_spec and display_line.
356 (decode_mode_spec): Change arg MULTIBYTE to STRING.
357 (display_string): Handle the case that STRING is non-null and
358 LISP_STRING is not nil.
359
0b5397c2
SM
360 * xterm.c (x_draw_composite_glyph_string_foreground):
361 Pay attention to s->face->overstrike.
dc954cb2
KH
362
363 * composite.c (composition_reseat_it): Don't check PT if STRING is
364 non nil.
365
4a00eaca
YM
3662010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
367
368 * keyboard.c (read_char): Don't apply previous change when current
369 buffer is unchanged by command execution.
370
60abb287
JD
3712010-01-12 Jan Djärv <jan.h.d@swipnet.se>
372
373 * keyboard.c (read_char): Return after executing from special map.
374
893db5bc
GM
3752010-01-12 Glenn Morris <rgm@gnu.org>
376
377 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
378 bug-gnu-emacs rather than emacs-pretest-bug.
379
4d03ece0
CY
3802010-01-11 Chong Yidong <cyd@stupidchicken.com>
381
382 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
383 initializing the Lisp variables that depend on them.
384
1df47e38
YM
3852010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
386
387 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
388 Clear areas that will not be updated after change of menu bar lines.
389 Clear the menu bar window's current matrix when the window gets empty.
390
2f1c6384
CY
3912010-01-09 Chong Yidong <cyd@stupidchicken.com>
392
e398c61c
CY
393 * intervals.h, textprop.c (extend_property_ranges): Return value
394 and args changed. Discard properties that begin at or after the
395 new end (Bug#5306).
396
397 * editfns.c (Fformat): Caller changed.
398
e5a29a10
CY
399 * nsterm.m (ns_set_default_prefs): Delete function.
400 (syms_of_nsterm): Initialize ns_command_modifier,
401 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
402 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
403
2f1c6384
CY
404 * xdisp.c (pos_visible_p): Check for invisible text at the correct
405 position (Bug#4040).
406
d427a9fa
EZ
4072010-01-09 Eli Zaretskii <eliz@gnu.org>
408
409 * editfns.c (Ffloat_time): Doc fix.
410
21b9df2f
JD
4112010-01-09 Jan Djärv <jan.h.d@swipnet.se>
412
413 * xfns.c (Fx_create_frame): Don't create frame larger than display
414 by default bug#3643.
415
4b00d3b1
YM
4162010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
417
418 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
419 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
420 windows above internal border.
421
422 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
423 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
424 windows above internal border.
425
426 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
427 tool bar windows specially.
428
429 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
430
431 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
432 specially.
433 (XTflash): Take account of menu bar height.
434
435 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
436 specially.
437
5075d853
JD
4382010-01-08 Jan Djärv <jan.h.d@swipnet.se>
439
ac146f82 440 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
441 also be true before we can return early (bug #5339).
442
474217c8
CY
4432010-01-06 David Reitter <david.reitter@gmail.com>
444
445 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
446 (Fns_display_usable_bounds): Rewrite, computing bounds properly
447 (Bug#3233).
448
c0e6d47d
JD
4492010-01-06 Jan Djärv <jan.h.d@swipnet.se>
450
d0cf45b7
JD
451 * font.c (font_open_entity): Enable chache and call cached_font_ok
452 for the driver if defined.
453 (QCuser_spec): New symbol.
454 (font_spec_from_name): Save name as user-spec.
455 (font_load_for_lface): Keep user-spec instead of name.
456 (font_open_by_name): Save name as user-spec.
457 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 458 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
459
460 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
461 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
462 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
463
464 * font.h (struct font_driver): Add cached_font_ok.
465
c0e6d47d
JD
466 * xterm.c (x_clear_frame): Queue draw for scroll bars.
467
7c583cd8
JD
4682010-01-05 Jan Djärv <jan.h.d@swipnet.se>
469
470 * xterm.c (x_new_font): Move code for setting rows/cols before
471 resizing ...
ac146f82 472 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
473
474 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
475 (xg_frame_resized, xg_frame_set_char_size):
476 Call xg_clear_under_internal_border.
7c583cd8 477 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 478
03f77f0a
CY
4792010-01-05 Chong Yidong <cyd@stupidchicken.com>
480
481 * keyboard.c (read_key_sequence): Catch keyboard switch after
482 making a new tty frame (Bug#5095).
483
2a1ef5be
KH
4842010-01-05 Kenichi Handa <handa@m17n.org>
485
486 * fontset.c (fontset_find_font): Fix getting the frame pointer.
487
e3eb1dae
SM
4882010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
489
490 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
491 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
492 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
493
777013f2
MA
4942010-01-03 Michael Albinus <michael.albinus@gmx.de>
495
496 * dbusbind.c (xd_add_watch): Improve debug message.
497 (xd_remove_watch): Improve debug message. If DATA is the session
498 bus, unset D-Bus session environment.
499 (Fdbus_init_bus): Pass the bus as argument to
500 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 501
8932b1c2
CY
5022010-01-01 Chong Yidong <cyd@stupidchicken.com>
503
87231e2c
CY
504 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
505
4801c5fa
CY
506 * lread.c (syms_of_lread): Make it clearer that these are the
507 names of loaded files (Bug#5068).
508
8932b1c2
CY
509 * eval.c (run_hook_with_args): Handle the case where the global
510 value has the obsolete single-function form (Bug#5026).
511
11e3c684
CY
5122009-12-27 Chong Yidong <cyd@stupidchicken.com>
513
514 * minibuf.c (Fall_completions): Minor optimization.
515
5b28ce35
EZ
5162009-12-26 Eli Zaretskii <eliz@gnu.org>
517
5ce6e4f4
JB
518 * .gdbinit (pgx): Fix display of composite glyphs.
519 Display cmp.from and cmp.to as well.
520 (pitx): Fix last change.
5b28ce35 521
bcffff46
KH
5222009-12-25 Kenichi Handa <handa@m17n.org>
523
524 * composite.h (composition_adjust_point): Update prototype.
525
526 * composite.c (composition_reseat_it): Don't make a composition
527 spanning over point.
528 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
529 composable characters.
530 (composition_adjust_point): New arg NEW_PT. Callers changed.
531
532 * keyboard.c (command_loop_1): Force redisplay if the last point
533 was within a composition.
534 (adjust_point_for_property): Don't adjust point for automatic
535 composition when called after buffer modification.
536
3f670e9a
EZ
5372009-12-19 Eli Zaretskii <eliz@gnu.org>
538
5ce6e4f4
JB
539 * .gdbinit (pitx): Don't use enum names, use their values.
540 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
541 (pgx): Don't use enum names, use their values.
542 (pitmethod): New helper command.
543 (pitx): Use it to display iteration method.
544 (pgrowit): New command.
545
ad903955
EZ
546 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
547
3f670e9a
EZ
548 Update dependencies in Makefile.in.
549
550 * Makefile.in (alloc.o): Depend on termhooks.h.
551 (atimer.o): Depend on blockinput.h.
552 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
553 and frame.h.
554 (callint.o): Depend on systime.h, coding.h, and composite.h.
555 (callproc.o): Depend on buffer.h.
556 (casefiddle.o): Don't depend on charset.h.
557 (casetab.o): Depend on character.h.
558 (ccl.o): Depend on composite.h.
559 (chartab.o): Depend on ccl.h.
560 (cm.o): Depend on dispextern.h.
561 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
562 (coding.o): Don't depend on $(INTERVALS_H).
563 (composite.o): Don't depend on dispextern.h explicitly (it's in
564 $(INTERVALS_H)). Depend on ccl.h.
565 (data.o): Depend on systime.h, coding.h, composite.h,
566 dispextern.h, font.h, and ccl.h.
567 (dired.o): Depend on composite.h.
568 (dispnew.o): Depend on coding.h. Don't depend explicitly on
569 composite.h (it's in $(INTERVALS_H)).
570 (doc.o): Depend on systime.h, coding.h, and composite.h.
571 (editfns.o): Don't depend explicitly on dispextern.h.
572 (emacs.o): Depend on frame.h and coding.h.
573 (eval.o): Depend on coding.h, composite.h, and xterm.h.
574 (fileio.o): Depend on frame.h and commands.h. Don't depend
575 explicitly on dispextern.h.
576 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
577 composite.h.
578 (fns.o): Don't depend on termhooks.h.
579 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
580 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
581 coding.h, $(INTERVALS_H), window.h, xterm.h.
582 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
583 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
584 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
585 fontset.h, ccl.h, and ftfont.h.
586 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
587 (gtkutil.o): Depend on dispextern.h and composite.h.
588 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
589 termhooks.h, and ccl.h.
590 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
591 (intervals.o): Depend on systime.h and coding.h.
592 (keyboard.o): Depend on composite.h and coding.h.
593 (keymap.o): Depend on coding.h and frame.h.
594 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
595 (macros.o): Depend on systime.h, coding.h, and composite.h.
596 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
597 and atimer.h.
598 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
599 dispextern.h explicitly.
0b5397c2
SM
600 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
601 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
602 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
603 (regex.o): Don't depend on charset.h.
604 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
605 (search.o): Don't depend explicitly on composite.h.
606 (sound.o): Depend on atimer.h and systime.h.
607 (syntax.o): Don't depend explicitly on composite.h.
608 (sysdep.o): Depend on coding.h and composite.h.
609 (term.o): Depend on xterm.h and buffer.h.
610 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
611 (textprop.o): Don't depend on dispextern.h explicitly.
612 (undo.o): Depend on dispextern.h.
613 (window.o): Depend on coding.h and termhooks.h. Don't depend on
614 dispextern.h and composite.h explicitly.
615 (xdisp.o): Depend on ccl.h.
616 (xfaces.o): Depend on coding.h and ccl.h.
617 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
618 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
619 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
620 ftfont.h.
621 (xgselect.o): New dependency.
622 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
623 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
624 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
625 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
626 (xsmfns.o): Depend on frame.h and dispextern.h.
627 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
628 sysselect.h.
629
7a6f7fea
AS
6302009-12-19 Andreas Schwab <schwab@linux-m68k.org>
631
632 * font.c (Fclear_font_cache): Pass correct cache argument to
633 font_clear_cache.
634
f4c21026
AS
6352009-12-16 Andreas Schwab <schwab@linux-m68k.org>
636
637 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
638 twice.
639
f7ab0997
CY
6402009-12-15 Chong Yidong <cyd@stupidchicken.com>
641
642 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
643 calling file-remote-p. Reported by Jim Meyering.
644
fa8e045a
MA
6452009-12-15 Michael Albinus <michael.albinus@gmx.de>
646
647 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 648 avoid compiler warnings. (Bug #5217)
fa8e045a 649
a63dba42
KH
6502009-12-14 Kenichi Handa <handa@m17n.org>
651
652 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
653 in 8-bit encoding.
654
5ce6e4f4 6552009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
656
657 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
658 tooltip windows.
659
223e5fc6
JD
6602009-12-13 Jan Djärv <jan.h.d@swipnet.se>
661
36acb2a7
JD
662 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
663 Xatom_net_window_type.
664
665 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
666 Xatom_net_window_type.
667
b8f00677
JD
668 * xterm.c (my_log_handler): New function.
669 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 670 so we can filter out buggy messages. (Bug #5120).
b8f00677 671
e5f0bc9a
JD
672 * xterm.c (xg_scroll_callback): Parameter list changed,
673 use parameter GtkScrollType to determine scroll/line/page.
674 Only allow dragging if a button < 4 is grabbed (bug #5177).
675 (xg_end_scroll_callback): New function.
676 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
677 xg_create_scroll_bar.
678
679 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
680 (scroll_end_callback): Remove.
681 (xg_create_scroll_bar): Add parameter end_callback, bind it to
682 button-release-event. Replace value-changed event with change-value,
683 bug #5177,
684 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
685 bug #5177.
686
687 * gtkutil.h (XG_LAST_SB_DATA): Remove.
688 (xg_create_scroll_bar): Add GCallback end_callback.
689
223e5fc6
JD
690 * xftfont.c (QClcdfilter): New variable.
691 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
692 (syms_of_xftfont): Initialize QClcdfilter.
693
3c055b77
JD
6942009-12-12 Jan Djärv <jan.h.d@swipnet.se>
695
696 * xsettings.c (struct xsettings): Add member seen.
697 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 698 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
699 (apply_xft_settings): Only update Xft settings with what member seen
700 indicates as new.
701
05fe33ff
EZ
7022009-12-12 Eli Zaretskii <eliz@gnu.org>
703
704 * dispextern.h (struct text_pos): Use EMACS_INT;
705 (struct glyph): Use EMACS_INT for charpos.
706 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
707 region_beg_charpos, region_end_charpos,
708 redisplay_end_trigger_charpos, and also for
709 iterator_stack_entry.end_charpos and
710 iterator_stack_entry.stop_charpos.
711
e8d7886a
JD
7122009-12-12 Jan Djärv <jan.h.d@swipnet.se>
713
5ce6e4f4 714 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
715 (xg_create_scroll_bar): Call scroll_end_callback on button release
716 event (bug #5177).
717 (xg_event_is_for_scrollbar): != replaced with ==.
718
d0db2ec8
KH
7192009-12-12 Kenichi Handa <handa@m17n.org>
720
721 * ftfont.c (struct ftfont_info): New member matrix.
722 (ftfont_open): Setup xftfont_info->matrix.
723 (MFLTFontFT): New member matrix.
724 (FLOOR, CEIL, ROUND): New macros.
725 (ftfont_get_metrics): Handle matrix transformation.
726 (ftfont_shape_by_flt): New arg matrix. Callers changed.
727
728 * xftfont.c (struct xftfont_info): New member matrix.
729 (xftfont_open): Setup xftfont_info->matrix.
730
7312009-12-10 Kenichi Handa <handa@m17n.org>
732
733 * xdisp.c (append_space_for_newline): Consider face-remapping.
734
2cc7b62f
AS
7352009-12-09 Andreas Schwab <schwab@linux-m68k.org>
736
b87dd913
AS
737 * xsettings.c: Include "keyboard.h".
738
eba5eb94
AS
739 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
740
2cc7b62f
AS
741 Fix implicit function declarations.
742 * cmds.c: Include "frame.h".
743 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
744 * frame.h: Move declaration of delete_frame outside of
745 HAVE_WINDOW_SYSTEM.
746
a4ef73c8
CY
7472009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
748
749 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
750
751 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
752 GTK builds.
753
944a300c
AS
7542009-12-07 Andreas Schwab <schwab@linux-m68k.org>
755
756 * unexelf.c (unexec): Don't search for .data twice.
757
022eef62
CY
7582009-12-05 Chong Yidong <cyd@stupidchicken.com>
759
426ac949
CY
760 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
761 if push failed.
762 (handle_line_prefix): Set avoid_cursor_p here. Check return value
763 of push_display_prop (Bug#5000).
764
022eef62
CY
765 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
766 value of font_list_entities (Bug#5085).
767
be95bee9
JB
7682009-12-04 Juanma Barranquero <lekktu@gmail.com>
769
770 Fix `string-to-number' to deal consistently with integers and floats.
771 * lread.c (isfloat_string): New argument ignore_trailing to accept all
772 trailing characters, not just whitespace.
773 (read1): Pass new arg 0 to keep old behavior.
774 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
775 trailing chars, as it is already done for integers. Doc fixes.
776 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
777
24c2d7ce
EZ
7782009-12-04 Eli Zaretskii <eliz@gnu.org>
779
0b5397c2
SM
780 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
781 Delete unused enumeration value.
24c2d7ce 782
7e694795
EZ
7832009-12-03 Eli Zaretskii <eliz@gnu.org>
784
785 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
786
84b31826
SM
7872009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
788
789 * process.c (Fmake_network_process): Fix up the tests for
790 "connectionless socket", so they DTRT for seqpacket sockets as well.
791
f00c449b
SM
7922009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
793
794 * process.c (Qseqpacket): New symbol.
795 (HAVE_SEQPACKET): New macro.
796 (Fmake_network_process): Accept new :type `seqpacket'.
797 (init_process): Add `seqpacket' feature when applicable.
798 (syms_of_process): Initialize Qseqpacket.
799
8096a0ff
YM
8002009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
801
802 * font.c (font_load_for_lface, font_open_by_name): Don't store name
803 if entity is Qnil.
804
3e0de07f
SM
8052009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
806
807 * print.c (print_preprocess): Preprocess the key_and_value table of
808 hashtables, even tho they're "hidden" (bug#5082).
809
abeafb2a
JD
8102009-11-29 Jan Djärv <jan.h.d@swipnet.se>
811
812 * frame.c (frame_make_pointer_invisible)
813 (frame_make_pointer_visible): Declare f before statements.
814
4bf47195
EZ
8152009-11-28 Eli Zaretskii <eliz@gnu.org>
816
817 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
818 omitted dependencies on lisp.h.
819
c525b3f2
JD
8202009-11-27 Jan Djärv <jan.h.d@swipnet.se>
821
ece2d4ed
JD
822 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
823 is NULL.
824
825 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
826
827 * frame.c (frame_make_pointer_invisible)
3e0de07f 828 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
829 frame.
830
c525b3f2
JD
831 * search.c (simple_search): Remove warning by making *p const.
832
2f00e299
DN
8332009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
834
835 * xdisp.c (power_letter): Remove duplicate const.
836
084b049b
JD
8372009-11-25 Jan Djärv <jan.h.d@swipnet.se>
838
a1fadc6f
JD
839 * term.c (delete_tty): Remove check for last terminal (bug#4970).
840
5ce6e4f4 841 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
842 defaults (bug #5025).
843
28259cac
SM
8442009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
845
846 * insdel.c (adjust_markers_for_delete): Move it in the
847 right direction! (bug#4803)
848
e8e14166
YM
8492009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
850
851 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
852
853 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
854
86677b58
GM
8552009-11-24 Glenn Morris <rgm@gnu.org>
856
857 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
858
581e51e8
JD
8592009-11-23 Jan Djärv <jan.h.d@swipnet.se>
860
cfc86c7a
JD
861 * Makefile.in: Must create deps for ecrt0.o in its rule.
862
581e51e8
JD
863 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
864 because that is what Gtk+ font dialog understands.
865
866 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
867 of Fcopy_sequence.
868 (font_open_by_name): Put name given into QCname for font-object returned.
869
870 * frame.c (x_set_font): Save original font name as frame parameter
871 font-parameter.
872
873 * xsettings.c (set_default_xft_settings): New function.
874 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
875 is found.
876
8b264ecb
AS
8772009-11-22 Andreas Schwab <schwab@linux-m68k.org>
878
879 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
880 searching backwards through multibyte buffer.
881
872870b2
JD
8822009-11-21 Jan Djärv <jan.h.d@swipnet.se>
883
884 * xterm.c: #include xgselect.h.
885 (x_initialize): Call xgselect_initialize.
886
887 * xsettings.c (something_changedCB): C++ comments => C comments.
888 (init_gconf): Do not deal with any GLib file descriptors, xg_select
889 does that now.
890
891 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
892 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
893 (scroll_bar_button_cb): Remove.
5ce6e4f4 894 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
895 event.
896 (xg_create_scroll_bar): Don't bind button-press-event and
897 button-release-event.
898
899 * process.c: Include xgselect.h if defined (USE_GTK) ||
900 defined (HAVE_GCONF).
901 (wait_reading_process_output): Call xg_select for the same condition.
902
903 * xgselect.c (xg_select): New function to better integrate with
904 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
905
906 * xgselect.h: New file, declare xg_select, xgselect_initialize.
907
908 * Makefile.in (XOBJ): Add xgselect.o.
909
62a6e103
AS
9102009-11-21 Andreas Schwab <schwab@linux-m68k.org>
911
0b5397c2
SM
912 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
913 Remove ignored second argument. All callers changed.
62a6e103
AS
914 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
915 (RE_STRING_CHAR_AND_LENGTH): Likewise.
916 * xdisp.c (string_char_and_length): Likewise.
917
b0ca0f33
DN
9182009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
919
920 * xterm.c (x_new_font):
921 * print.c (print_object):
922 * cmds.c (Fself_insert_command): Move declarations before statements.
923
dd5a6279
CY
9242009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
925
926 * s/cygwin.h: Remove unneeded linker flags.
927
4a8e097d
JD
9282009-11-20 Jan Djärv <jan.h.d@swipnet.se>
929
0d1d0d26
JD
930 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
931
932 * xsettings.h: Declare xsettings_get_system_font.
933
934 * xsettings.c (xsettings_get_system_font): New function.
935 (init_gconf): No use initiating gconf unless we have Xft also.
936 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
937 HAVE_GCONF.
938
4a8e097d
JD
939 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
940 add a blank entry so it doesn't collapse into nothing.
941
8ab1650e
SM
9422009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
943
944 * lread.c (Funintern): Comment out last change.
945
82c602f0
RS
9462009-11-19 Richard Stallman <rms@gnu.org>
947
948 * lread.c (Funintern): Error if symbol is t or nil.
949
87e32266
SM
9502009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
951
952 * insdel.c (make_gap_larger): Don't make as many assumptions about the
953 representation of Lisp integers.
954 Reported by MJ Chan <mjchan.inbox@gmail.com>.
955
1b9ac145
AS
9562009-11-17 Andreas Schwab <schwab@linux-m68k.org>
957
958 * lisp.h: Remove declaration of Ffont_get_system_font.
959 * xfns.c: Move include of "xsettings.h".
960 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
961
dfb3c4c6
JD
9622009-11-17 Jan Djärv <jan.h.d@swipnet.se>
963
87e32266
SM
964 * xsettings.c (something_changedCB, Ffont_get_system_font):
965 Check use_system_font.
dfb3c4c6
JD
966 (syms_of_xsettings): DEFVAR font-use-system-font.
967
9370c1d8
AS
9682009-11-17 Andreas Schwab <schwab@linux-m68k.org>
969
25fe851a
AS
970 * xfns.c (x_default_font_parameter): Remove dead assignment.
971
9370c1d8
AS
972 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
973
637fa988
JD
9742009-11-17 Jan Djärv <jan.h.d@swipnet.se>
975
87e32266 976 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 977 not have FC_LCD_*. #define them if not there.
a6eb20d8 978
87e32266 979 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 980
637fa988
JD
981 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
982
983 * xterm.c (handle_one_xevent): Call xft_settings_event for
984 ClientMessage, PropertyNotify and DestroyNotify.
985 (x_term_init): If we have XFT, get DPI from Xft.dpi.
986 Call xsettings_initialize.
987
988 * xftfont.c (xftfont_fix_match): New function.
989 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
990 Call xftfont_fix_match after XftFontMatch.
991
992 * xfont.c (xfont_driver): Initialize all members.
993
87e32266
SM
994 * xfns.c (x_default_font_parameter):
995 Try font from Ffont_get_system_font.
637fa988
JD
996 Do not get font from x_default_parameter if we got one from
997 Ffont_get_system_font.
87e32266 998 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
999
1000 * w32font.c (w32font_driver): Initialize all members.
1001
1002 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1003
1004 * lisp.h: Declare syms_of_xsettings.
1005
87e32266
SM
1006 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1007 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1008
1009 * ftfont.c (ftfont_filter_properties): New function.
1010
1011 * frame.c (x_set_font): Remove unused variable lval.
1012
87e32266 1013 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1014
1015 * font.c (font_put_extra): Don't return if val is nil, it means
1016 boolean option is off.
1017 (font_parse_fcname): Collect all extra properties in extra_props
1018 and call filter_properties for all drivers with extra_props and
1019 font as parameter.
87e32266
SM
1020 (font_open_entity): Do not use cache, it does not pick up new
1021 fontconfig settings like hinting.
637fa988
JD
1022 (font_load_for_lface): If spec had a name in it, store it in entity.
1023
1024 * emacs.c (main): Call syms_of_xsettings
1025
1026 * config.in: HAVE_GCONF is new.
1027
1028 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1029 xsettings.o is new.
1030
5a942932
KH
10312009-11-17 Kenichi Handa <handa@m17n.org>
1032
1033 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1034 back to the default font in case that no suitable font is found.
1035
b7c7a4d1
SM
10362009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1037
1038 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1039 Suggested by Chad Brown <yandros@mit.edu>.
1040 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1041
072f1e39
JD
10422009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1043
1044 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1045
5d1e70a2
AS
10462009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1047
87e32266 1048 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1049
a53cfbe5
JD
10502009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1051
473a99b7
JD
1052 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1053 has a parent.
1054
a53cfbe5 1055 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1056 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1057
1058 * config.in: Generated (AUTO_DEPEND).
1059
f04bb9b2
MA
10602009-11-13 Michael Albinus <michael.albinus@gmx.de>
1061
b7c7a4d1 1062 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1063 Vdbus_registered_functions_table, because it contains also
1064 properties. Fix docstring.
b7c7a4d1 1065 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1066
8f11f7ec
SM
10672009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1068
1069 * alloc.c (mark_object): Don't reprocess marked strings.
1070 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1071 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1072
8a605fe8
KH
10732009-11-13 Kenichi Handa <handa@m17n.org>
1074
8f11f7ec 1075 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1076 semantics of Vword_combining_categories.
1077 (Vword_combining_categories): Describe the slight change of the
1078 semantics.
1079
241c4680
EZ
10802009-11-13 Eli Zaretskii <eliz@gnu.org>
1081
1082 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1083
1084 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1085
5d58e44c
SM
10862009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1087
1088 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1089
5e13f9d3
JB
10902009-11-12 Juanma Barranquero <lekktu@gmail.com>
1091
1092 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1093
cf54c754
DR
10942009-11-11 David Reitter <david.reitter@gmail.com>
1095
1096 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1097 variables to fix 2009-11-09 change.
1098
a4ada374
DN
10992009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1100
91433552
DN
1101 * process.c (ifflag_def): Make flag_sym constant.
1102 (Fnetwork_interface_info): Use a constant pointer.
1103 (ifflag_table):
1104 * xfns.c (cursor_bits):
1105 * xdisp.c (power_letter):
1106 * termcap.c (speeds, esctab):
1107 * sysdep.c (baud_convert):
1108 * keyboard.c (lispy_accent_codes, modifier_names):
1109 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1110 (jpeg_format, tiff_format, gif_format, svg_format)
1111 (interlace_start, interlace_increment, gs_format):
1112 * gtkutil.c (separator_names):
1113 * fringe.c (swap_nibble):
1114 * fns.c (base64_value_to_char, base64_char_to_value):
1115 * fileio.c (make_temp_name_tbl):
1116 * coding.c (suffixes): Make constant.
1117
f4265f6c
DN
1118 * frame.c (make_initial_frame):
1119 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1120 build_string.
1121 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1122
04420943
DN
1123 * s/freebsd.h:
1124 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1125
0a5d24ae
DN
1126 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1127 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1128
a4ada374
DN
1129 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1130 * xterm.c (syms_of_xterm):
1131 * xfaces.c (syms_of_xfaces):
1132 * xdisp.c (syms_of_xdisp):
1133 * lread.c (syms_of_lread):
1134 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1135 build_string.
91433552 1136
a4ada374
DN
1137 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1138
af98fc7f
SM
11392009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1140
8ab1650e 1141 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1142
e90292a9
JD
11432009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1144
1145 * keyboard.h: Declare timer_check.
1146
1147 * keyboard.c (timer_check_2): New function that does what the old
1148 timer_check did.
1149 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1150 returned, i.e. don't return -1 with timers pending.
1151
1152 * process.c: Remove extern declaration of timer_check.
1153
1154 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1155 even if timer_check returned -1.
1156
af98fc7f
SM
1157 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1158 xg_dialog_data.
e90292a9
JD
1159 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1160 the event loop.
1161 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1162 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1163 Destroy the dialog after xg_dialog_run.
1164
045b83c0
SM
11652009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1166
1167 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1168
1fb99a3a
JD
11692009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1170
1171 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1172
04e452cb
JB
11732009-11-09 Juanma Barranquero <lekktu@gmail.com>
1174
1175 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1176
ef7417fd
SM
11772009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1178
1179 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1180 w32menu.c, and nsmenu.m.
1181 Simplify the obsolete case where position is nil.
1182 (cleanup_popup_menu): New function, moved from nsmenu.m.
1183 (struct skp): Remove slot `notreal'.
1184 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1185 adjust callers.
1186 (single_menu_item): Adjust call to parse_menu_item.
1187 (syms_of_menu): Defsubr x-popup-menu.
1188 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1189 (keymap_panes): Don't export any more.
1190 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1191 (xmenu_show): Declare.
1192 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1193 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1194 * keyboard.h (parse_menu_item): Update declaration.
1195 * xmenu.c (Fx_popup_menu): Remove.
1196 (syms_of_xmenu): Don't defsubr x-popup-menu.
1197 * w32menu.c (Fx_popup_menu): Remove.
1198 (syms_of_w32menu): Don't defsubr x-popup-menu.
1199 * nsmenu.m (cleanup_popup_menu): Remove.
1200 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1201 moved to menu.c's Fx_popup_menu.
1202 (Fx_popup_menu): Remove.
1203 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1204 menu_items (it's done in menu.c already).
1205
424d6179
SM
12062009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1207
1208 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1209 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1210
c0df13a6 12112009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1212
1213 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1214 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1215 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1216 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1217
2de9f71c
SM
12182009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1219
1220 Let integers use up 2 tags to give them one extra bit and thus double
1221 their range.
1222 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1223 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1224 New macros.
1225 (enum Lisp_Type): Use them. Give explicit values.
1226 (Lisp_Type_Limit): Remove.
1227 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1228 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1229 Pay attention to USE_2_TAGS_FOR_INTS.
1230 (INTEGERP): Use LISP_INT_TAG_P.
1231 * fns.c (internal_equal): Simplify the default case.
1232 (sxhash): Use case_Lisp_Int.
1233 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1234 any more.
1235 (Ftype_of): Use case_Lisp_Int.
1236 (store_symval_forwarding): Take into account the fact that Ints can
1237 now have more than one tag.
1238 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1239 buffer_slot_type_mismatch):
1240 * xfaces.c (face_attr_equal_p):
1241 * print.c (print_object):
1242 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1243 Use case_Lisp_Int.
1244
323637a2
EZ
12452009-11-06 Eli Zaretskii <eliz@gnu.org>
1246
7ac65b38
EZ
1247 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1248
323637a2
EZ
1249 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1250 warning.
1251
e511451f
JD
12522009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1253
1254 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1255
1256 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1257
1258 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1259 ButtonPressRelease and MotionNotify (bug#4870).
1260
5e2327cf
DN
12612009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1262
5adc433e
DN
1263 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1264
d67b4f80
DN
1265 * xterm.c (syms_of_xterm):
1266 * xselect.c (syms_of_xselect):
1267 * xmenu.c (syms_of_xmenu):
1268 * xfns.c (syms_of_xfns):
1269 * xfaces.c (syms_of_xfaces):
1270 * xdisp.c (syms_of_xdisp):
1271 * window.c (syms_of_window):
1272 * w32fns.c (syms_of_w32fns):
1273 * undo.c (syms_of_undo):
1274 * textprop.c (syms_of_textprop):
1275 * terminal.c (syms_of_terminal):
1276 * syntax.c (syms_of_syntax):
1277 * sound.c (syms_of_sound):
1278 * search.c (syms_of_search):
1279 * print.c (syms_of_print):
1280 * minibuf.c (syms_of_minibuf):
1281 * macros.c (syms_of_macros):
1282 * keymap.c (syms_of_keymap, initial_define_key)
1283 (initial_define_lispy_key):
1284 * keyboard.c (syms_of_keyboard):
1285 * insdel.c (syms_of_insdel):
1286 * image.c (syms_of_image):
1287 * fringe.c (syms_of_fringe):
1288 * frame.c (syms_of_frame):
1289 * fontset.c (syms_of_fontset):
1290 * fns.c (syms_of_fns):
1291 * fns.c (syms_of_fns):
1292 * fileio.c (syms_of_fileio):
1293 * fileio.c (syms_of_fileio):
1294 * eval.c (syms_of_eval):
1295 * doc.c (syms_of_doc):
1296 * dispnew.c (syms_of_display):
1297 * dired.c (syms_of_dired):
1298 * dbusbind.c (syms_of_dbusbind):
1299 * data.c (syms_of_data):
1300 * composite.c (syms_of_composite):
1301 * coding.c (syms_of_coding):
1302 * cmds.c (syms_of_cmds):
1303 * charset.c (define_charset_internal, syms_of_character):
1304 * ccl.c (syms_of_ccl):
1305 * category.c (syms_of_category, init_category_once):
1306 * casetab.c (syms_of_casetab):
1307 * casefiddle.c (syms_of_casefiddle):
1308 * callint.c (syms_of_callint):
1309 * bytecode.c (syms_of_bytecode):
1310 * buffer.c (keys_of_buffer, syms_of_buffer):
1311 * alloc.c (syms_of_alloc):
1312 * process.c (syms_of_process, init_process):
1313 * lread.c (syms_of_lread, init_obarray):
1314 * font.c (build_style_table):
1315 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1316 intern_c_string, calls to make_pure_string with
1317 make_pure_c_string. Use pure_cons instead of Fcons.
1318
5e2327cf
DN
1319 * process.c (socket_options): Make it const.
1320 (set_socket_option, init_process): Use a const pointer.
1321
1322 * lread.c (intern_c_string): New function.
1323 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1324 (defvar_int): Uset it. Make the name const char*.
1325
1326 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1327 (defvar_int): Update prototypes.
1328 (DEFUN, EXFUN): Support for prototypes is now required.
1329 (intern_c_string): New prototype.
1330 (struct Lisp_Subr): Make symbol_name constant.
1331
1332 * font.c (struct table_entry): Remove unused member. Make NAMES
1333 constant.
1334 (weight_table, slant_table, width_table): Make constant.
1335
1336 * emacs.c (struct standard_args): Make name and longname constant.
1337
1338 * character.h (DEFSYM): Use intern_c_string.
1339
a56eaaef
DN
13402009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1341
1342 * alloc.c (make_pure_c_string): New function.
1343
1344 * eval.c (Fautoload): Purecopy all arguments.
1345
f6a07420
KH
13462009-11-05 Kenichi Handa <handa@m17n.org>
1347
1348 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1349 the buffer in case of replace.
1350
5d28d4b1
DN
13512009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1352
1353 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1354
b349d111
SM
13552009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1356
d528b1ce
SM
1357 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1358 when applicable (bug#4851).
1359
b349d111
SM
1360 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1361 (P_): Support for prototypes is now required.
1362
c38eb027
CY
13632009-10-31 Chong Yidong <cyd@stupidchicken.com>
1364
1365 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1366 (Bug#4827).
1367
0405f8d9
EZ
13682009-10-30 Eli Zaretskii <eliz@gnu.org>
1369
d528b1ce 1370 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1371
ca0a881a
DN
13722009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1373
1374 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1375
d528b1ce
SM
1376 * lread.c (Fload): Purecopy the file name when building
1377 Vpreloaded_file_list.
ca0a881a 1378
47e0e0e4
JR
13792009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1380
1381 * w32fns.c (syms_of_w32fns): Change default value of
1382 w32-scroll-lock-modifier to nil. (Bug#2827)
1383
057bce6f
JB
13842009-10-26 Juanma Barranquero <lekktu@gmail.com>
1385
782a943e 1386 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1387
242bc74c
AS
13882009-10-26 Andreas Schwab <schwab@redhat.com>
1389
1390 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1391
522d013a
JB
13922009-10-26 Juanma Barranquero <lekktu@gmail.com>
1393
1394 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1395 For delta < 0, skip check that only makes sense when the mini-window
1396 is going to be enlarged. (Bug#4534)
1397
18060980
CY
13982009-10-25 Chong Yidong <cyd@stupidchicken.com>
1399
1400 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1401 string in menu maps (Bug#4471).
1402
fec8f0fe
CY
14032009-10-24 Chong Yidong <cyd@stupidchicken.com>
1404
1405 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1406 FRAME_NS_VIEW on terminal frames (Bug#4765).
1407
10d66ec0
AS
14082009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1409
1cae01f7
AS
1410 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1411 DBUS_TYPE_UINTnn separately to get proper sign extension.
1412
58a12889
AS
1413 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1414 can properly handle unsigned types.
d528b1ce 1415 (make_uid, make_gid): Remove.
58a12889 1416
987c9327
AS
1417 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1418 types again.
1419
522d013a 1420 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1421 (system_process_attributes): Likewise.
1422
905a9ed3
DN
14232009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1424
1425 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1426
1427 * eval.c (Fautoload): Purecopy the filename. Simplify.
1428
1429 * category.c (Fdefine_category): Purecopy docstring.
1430
a599b3e8
AS
14312009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1432
7b792fc9
AS
1433 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1434
a599b3e8
AS
1435 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1436
b35ac83e
CY
14372009-10-23 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1440 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1441 (Bug#4775).
1442
e8903e00
SM
14432009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1444
1445 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1446 (init_fileio_once):
1447 * lisp.h (init_fileio_once): Remove.
1448 * emacs.c (main): Don't call init_fileio_once.
1449
8f43cbf3
DN
14502009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1451
1452 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1453
26898943
AS
14542009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1455
1456 * doprnt.c (doprnt): Fix overflow check.
1457
5c646d5a
JD
14582009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1459
3132a7ea
JD
1460 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1461
5c646d5a
JD
1462 * xterm.h (x_wait_for_event): Declare it.
1463
1464 * xterm.c (pending_event_wait): New variable.
1465 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1466 see pending_event_wait.eventtype.
1467 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1468 (x_new_font): Call change_frame_size with new rows/columns before we
1469 try to resize the frame.
5c646d5a 1470 (x_wait_for_event): New function.
d528b1ce
SM
1471 (x_set_window_size_1): Don't change gravity unless change_gravity
1472 is set.
5c646d5a
JD
1473 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1474 don't change frame size, instead wait for the ConfigureNotify.
1475 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1476 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1477 (x_initialize): Initialize pending_event_wait.
1478
1479 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1480 size.
1481
1482 * widget.c (EmacsFrameSetValues): Add comment.
1483 (EmacsFrameSetCharSize): Just call x_set_window_size.
1484
1485 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1486 x_wait_for_event.
d528b1ce 1487 (flush_and_sync): Remove again.
5c646d5a
JD
1488 (xg_get_font_name): Suggest monospace if no previous font is known.
1489
e9c1637d
SM
14902009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1491
1492 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1493 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1494
5a72cccb
YM
14952009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1496
1497 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1498 processing pending events when event is filtered for input method.
ab04798f 1499 (Bug#3681)
5a72cccb 1500
2629aa37
JB
15012009-10-20 Juanma Barranquero <lekktu@gmail.com>
1502
1503 * fns.c: Add #endif accidentally removed in previous change.
1504
c3417a74
DN
15052009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1506
1507 * fns.c: Remove code for unsupported system: MAC_OS.
1508 * image.c: Likewise. Include setjmp.h.
1509
9685cef2
JD
15102009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1511
1512 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1513 pixel -1 (bug #4742).
1514
d7306fe6
DN
15152009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1516
019d2c4c
DN
1517 * process.c (create_pty): Remove conditionals for no longer
1518 supported systems: UNIPLUS and RTU.
1519
ee6bacd4
DN
1520 * xterm.c:
1521 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1522
d7306fe6
DN
1523 * alloc.c: Do not define struct catchtag.
1524 * eval.c: Move struct catchtag definition ...
1525 * lisp.h: ... here.
1526
1527 * image.c: Move png.h #include earlier to avoid warnings.
1528
1529 * xterm.c:
1530 * xsmfns.c:
1531 * xselect.c:
1532 * xrdb.c:
1533 * xmenu.c:
1534 * xftfont.c:
1535 * xfont.c:
1536 * xfns.c:
1537 * xfaces.c:
1538 * xdisp.c:
1539 * window.c:
1540 * widget.c:
1541 * w32xfns.c:
1542 * w32uniscribe.c:
1543 * w32term.c:
1544 * w32select.c:
1545 * w32reg.c:
1546 * w32proc.c:
1547 * w32menu.c:
1548 * w32inevt.c:
1549 * w32heap.c:
1550 * w32font.c:
1551 * w32fns.c:
1552 * w32console.c:
1553 * w32.c:
1554 * w16select.c:
1555 * vm-limit.c:
1556 * unexsol.c:
1557 * unexec.c:
1558 * unexcw.c:
1559 * unexaix.c:
1560 * undo.c:
1561 * tparam.c:
1562 * textprop.c:
1563 * terminfo.c:
1564 * terminal.c:
1565 * termcap.c:
1566 * term.c:
1567 * syntax.c:
1568 * sound.c:
1569 * sheap.c:
1570 * search.c:
1571 * scroll.c:
1572 * region-cache.c:
1573 * regex.c:
1574 * ralloc.c:
1575 * process.c:
1576 * print.c:
b024548b
DN
1577 * nsterm.m:
1578 * nsselect.m:
1579 * nsmenu.m:
1580 * nsimage.m:
1581 * nsfont.m:
1582 * nsfns.m:
d7306fe6
DN
1583 * msdos.c:
1584 * minibuf.c:
1585 * menu.c:
1586 * marker.c:
1587 * macros.c:
1588 * keymap.c:
1589 * keyboard.c:
1590 * intervals.c:
1591 * insdel.c:
1592 * indent.c:
1593 * gtkutil.c:
1594 * ftxfont.c:
1595 * ftfont.c:
1596 * fringe.c:
1597 * frame.c:
1598 * fontset.c:
1599 * font.c:
1600 * fns.c:
1601 * floatfns.c:
1602 * filelock.c:
1603 * fileio.c:
1604 * emacs.c:
1605 * editfns.c:
1606 * dosfns.c:
1607 * doprnt.c:
1608 * doc.c:
1609 * dispnew.c:
1610 * dired.c:
1611 * dbusbind.c:
1612 * data.c:
1613 * composite.c:
1614 * coding.c:
1615 * cmds.c:
1616 * cm.c:
1617 * chartab.c:
1618 * charset.c:
1619 * character.c:
1620 * ccl.c:
1621 * category.c:
1622 * casetab.c:
1623 * casefiddle.c:
1624 * callproc.c:
1625 * callint.c:
1626 * bytecode.c:
1627 * buffer.c:
1628 * atimer.c: Include setjmp.h. (Bug#4643)
1629
fd5f21e6
SM
16302009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1631
4c0354d7
SM
1632 Remove leftover table unibyte_to_multibyte_table.
1633 * character.c (unibyte_to_multibyte_table): Remove.
1634 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1635 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1636 * character.h (UNIBYTE_TO_CHAR): New macro.
1637 (MAKE_CHAR_MULTIBYTE): Use it.
1638 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1639 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1640 (message_dolog, set_message_1):
1641 * search.c (Freplace_match):
1642 * editfns.c (Fcompare_buffer_substrings):
1643 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1644 (concat):
1645 * insdel.c (copy_text, count_size_as_multibyte):
1646 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1647 * term.c (produce_glyphs):
1648 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1649 * regex.c (RE_CHAR_TO_MULTIBYTE):
1650 * cmds.c (internal_self_insert):
1651 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1652
fd5f21e6
SM
1653 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1654
4418646e
DN
16552009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1656
1657 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1658
35f5c1d2
JB
16592009-10-16 Juanma Barranquero <lekktu@gmail.com>
1660
1661 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1662
a0cd8f6b
AR
16632009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1664
1665 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1666 still needed under Tiger.
1667
1668 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1669
1670 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1671 __Apple__.
1672
1673 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1674
01a8d3fa
KH
16752009-10-15 Kenichi Handa <handa@m17n.org>
1676
1677 * print.c (print_object): Escape a symbol like "2E10" too.
1678
bf6c75c9 16792009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1680
1681 Cleanups and changes for 64-bit compile under Snow Leopard.
1682 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1683
1684 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1685
c5959062 1686 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1687 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1688 cast argument.
1689 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1690 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1691
1692 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1693
1694 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1695 where appropriate.
1696
1697 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1698 where appropriate.
6e4780c5
JB
1699 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1700 Use stringWithUTF8String.
bf6c75c9
AR
1701 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1702
6e4780c5
JB
1703 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1704 Add formal protocol mention to inheritance.
bf6c75c9
AR
1705 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1706
6e4780c5
JB
1707 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1708 Fix printf format.
bf6c75c9
AR
1709 (ns_query_color): Use CGFloat where appropriate.
1710 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1711 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1712 argument.
1713
3d87f118
AR
1714 * config.in (NS_HAVE_NSINTEGER): Drop.
1715
a95c8102
AR
1716 * dbusbind.c (dbus-method-return-internal)
1717 (dbus-method-error-internal): Use long format in printf, and cast
1718 argument.
1719
1720 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1721 in printf, and cast argument.
1722
6873acca 1723 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1724 cast argument.
1725
9ec6f100
GM
17262009-10-11 Glenn Morris <rgm@gnu.org>
1727
1728 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1729
5be883cd
JD
17302009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1731
1732 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1733 menu bar with a small width so it doesn't enlarge the frame.
1734
d7a39b51
JB
17352009-10-08 Juanma Barranquero <lekktu@gmail.com>
1736
1737 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1738
0c2b6f8e
GM
17392009-10-06 Glenn Morris <rgm@gnu.org>
1740
1741 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1742 SOME_MACHINE_LISP (this enters indirectly via DOC).
1743
e02131a2
EZ
17442009-10-05 Eli Zaretskii <eliz@gnu.org>
1745
1746 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1747
b4744254
EZ
17482009-10-04 Eli Zaretskii <eliz@gnu.org>
1749
1750 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1751 Doc fix.
1752
dbf64827
JB
17532009-10-03 Martin Rudalics <rudalics@gmx.at>
1754
1755 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1756
e9a0aef8
MA
17572009-10-02 Michael Albinus <michael.albinus@gmx.de>
1758
d528b1ce 1759 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1760 used anymore outside fileio.c.
1761
1762 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1763
64eb2b56
JB
17642009-10-01 Juanma Barranquero <lekktu@gmail.com>
1765
1766 * lisp.h (Qdelete_directory_internal):
1767 Declare, instead of Qdelete_directory.
1768
1769 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1770
9d28c33e
SM
17712009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1772
1773 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1774
9d8f3bd9
MA
17752009-10-01 Michael Albinus <michael.albinus@gmx.de>
1776
9d28c33e 1777 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1778 Fdelete_directory. It is not a command anymore. It has no file
1779 name handler.
1780
9694740b
SM
17812009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1782
1783 * xdisp.c (get_next_display_element): Use an enum in last change.
1784
748e162f
KH
17852009-09-28 Kenichi Handa <handa@m17n.org>
1786
9694740b 1787 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1788 unibyte_display_via_language_environment in handling
1789 Vnobreak_char_display.
1790
17efd58d
AR
17912009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1792
1793 * nsterm.h (ns_app_name): New extern variable.
1794
1795 * nsterm.m (ns_app_name): New variable.
1796 (ns_term_init): Set and use it.
1797 (ns_term_shutdown): Use it.
1798
1799 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1800 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1801
1802 * nsfns.m (ns_set_name_iconic, ns_set_name)
1803 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1804 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1805
9694740b
SM
1806 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1807 Remove double-casting in client_data comparison.
31c2d412 1808
3208cb35
YM
18092009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1810
1811 * keyboard.c (make_lispy_event): Remember last wheel direction.
1812 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1813
b7d552d6
GM
18142009-09-26 Glenn Morris <rgm@gnu.org>
1815
1816 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1817 internal.elc. Add term/pc-win.elc.
1818 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1819 term/x-win.elc.
1820 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1821 term/w32-win.elc.
1822 (NS_SUPPORT): New.
1823 (lisp): Add NS_SUPPORT.
1824 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1825
4ff670a8
DR
18262009-09-25 David Reitter <david.reitter@gmail.com>
1827
1828 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1829 on Mac OS X 10.6+ (bug#4513).
1830
feabfb6c
JB
18312009-09-24 Juanma Barranquero <lekktu@gmail.com>
1832
1833 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1834 some parts of Emacs code (like font selection) don't grok them.
1835 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1836
de59072a
AS
18372009-09-24 Andreas Schwab <schwab@redhat.com>
1838
1839 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1840
a489517b
JB
18412009-09-24 Juanma Barranquero <lekktu@gmail.com>
1842
1843 * dired.c (Fdirectory_files): Fix typo in docstring.
1844
0592970c
AR
18452009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1846
1847 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1848 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1849 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1850 under GNUstep.
1851 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1852
1853 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1854 glyph advancement.
1855
48e8a88b
AR
18562009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1857
1858 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1859 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1860
1861 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1862 deleted (bug #4492).
1863
e14f0a78
AR
1864 * nsfont.m (Vns_reg_to_script): New lisp variable.
1865 (syms_of_nsfont): Declare it.
1866 (ns_registry_to_script): New function.
1867 (ns_get_req_script): Call it.
1868 (ns_findfonts): Don't give up on non-unicode registry.
1869
1870 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1871
5b650faa
SM
18722009-09-20 Tom Tromey <tromey@redhat.com>
1873
1874 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1875 batch mode (bug#4228).
1876
a489517b 18772009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1878
1879 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1880 carefully. (Bug #4339)
0bae4e09 1881
fcfe06f3
CY
18822009-09-18 Chong Yidong <cyd@stupidchicken.com>
1883
d798ba87 1884 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1885
31642728
AR
18862009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1887
1888 * emacs.c (inhibit_x_resources): Update doc string for NS.
1889 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1890 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1891
1892 * nsterm.h (ns_no_defaults): Remove.
1893
1894 * nsterm.m (ns_no_defaults): Remove.
1895 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1896 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1897 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1898 don't update the NSWindow itself.
1899 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1900 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1901
1902 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1903 ns_use_qd_smoothing.
1904
1905 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1906 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1907 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1908 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1909
8686ac71
JB
19102009-09-17 Juanma Barranquero <lekktu@gmail.com>
1911
1912 * emacs.c (inhibit_x_resources): New variable.
1913 (main) [HAVE_NS]: Don't process --quick command line option.
1914 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1915
1916 * lisp.h (inhibit_x_resources): Declare it extern.
1917
1918 * w32reg.c (x_get_string_resource):
1919 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1920
e227ba05
EZ
19212009-09-17 Eli Zaretskii <eliz@gnu.org>
1922
362654a6
JB
1923 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1924 Add lisp/term/internal.elc.
e227ba05 1925
742d40e8
SM
19262009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1927
1928 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1929 (bug#4461).
1930
005bd5a2
DN
19312009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1932
1933 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1934
1935 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1936 (OBJECTS_MACHINE): Remove, unused.
1937
f9af9719
SM
19382009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1939
1940 * frame.c (x_get_resource_string): Remove unused.
1941
0307c7d2
JD
19422009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1943
1944 * xterm.c (x_new_font): Call change_frame_size before calling
1945 x_set_window_size, in case frame size won't change.
1946
1947 * frame.c (x_set_font): Remove dead code.
1948
428b13d6
SM
19492009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1950
1951 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1952
5766c380
SM
19532009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1954
1955 * lread.c (Fload): Don't output a message after loading an obsolete
1956 package any more (done in Lisp now).
1957
2fd0161b
CY
19582009-09-12 Chong Yidong <cyd@stupidchicken.com>
1959
1960 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1961
bc5e75b6
SM
19622009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1963
1964 * keymap.c (Fwhere_is_internal): Use nconc2.
1965
c31c985e
AM
19662009-09-11 Alan Mackenzie <acm@muc.de>
1967
1968 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1969 batch mode.
1970
78012bd2
AS
19712009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1972
1973 * xdisp.c (display_mode_element): Detect cycles.
1974
9d889332
SM
19752009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1976
1977 * keymap.c (where_is_internal): Don't erroneously return nil right after
1978 filling the cache.
1979 (where_is_internal_1): Fix up typo.
1980
7ab5d780
GM
19812009-09-11 Glenn Morris <rgm@gnu.org>
1982
1983 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1984 share a common doc-string.
1985
5238a749
SM
19862009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1987
66d77eda
SM
1988 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1989 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1990
5238a749
SM
1991 * keymap.c (QCadvertised_binding): New constant.
1992 (syms_of_keymap): Initialize it.
1993 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1994 if applicable.
1995
19f48442
SM
19962009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1997
50d4ba39
SM
1998 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1999 (parse_menu_item): Streamline since bindings are recomputed all the
2000 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2001 more and don't support lmenu's menu-alias any more either.
2002
a88a5372
SM
2003 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2004 (where_is_internal): Strip it down to only traverse the keymaps.
2005 Move the cache handling from Fwhere_is_internal to here.
2006 (Fwhere_is_internal): Move the handling of remapping and the choice of
2007 the best binding from where_is_internal to here.
2008 Unify the cached/noncached paths, so remapping is also handled
2009 correctly when the cache is used, and so the cache can be used to
2010 speed up remap-handling when applicable.
2011 Give preference to non-remapped bindings.
2012 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2013 non-remapped bindings.
2014 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2015 command remapping.
2016
19f48442
SM
2017 * xdisp.c (display_mode_element): Move list length limit from 50 to
2018 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2019
599498c3 20202009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2021
2022 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2023
f9b7b5ac
SM
20242009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2025
a53af587
JB
2026 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2027 (Bug#4334)
2028
f9b7b5ac
SM
2029 * keymap.c (where_is_internal): Filter out shadowed remappings.
2030 Assume that where_is_internal returns unshadowed bindings to simplify
2031 the code and get rid of the gotos. Use ASIZE.
2032
04f4b72d
JD
20332009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2034
4da146f2
JD
2035 * xterm.c (x_focus_changed): If we get a focusout and pointer
2036 is invisible, make it visible.
2037
04f4b72d
JD
2038 * xterm.h: Remove condition for declaration of
2039 x_*_window_to_frame.
2040
7cef7ce3
SM
20412009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2042
2043 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2044 initial terminal as well.
2045
a54fa5b7
JD
20462009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2047
2048 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2049 x_menubar_window_to_frame.
a54fa5b7
JD
2050
2051 * xterm.c: Remove declarations also in xterm.h
2052 (XTmouse_position): Do not return valid positions
2053 for clicks in the menubar and the toolbar for Gtk+.
2054
2055 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2056 if the widget for the event has the same top level as a frame,
2057 return the frame.
2058 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2059 internal windows, bug #4122.
2060 (x_non_menubar_window_to_frame): Remove.
2061
5a021dd0
GM
20622009-09-02 Glenn Morris <rgm@gnu.org>
2063
2064 * buffer.c (default-major-mode): Move most of the doc from here...
2065 (major-mode): ... to here.
2066
548fe2f3
NR
20672009-08-30 Nick Roberts <nickrob@snap.net.nz>
2068
2069 * process.c (wait_reading_process_output): Keep the descriptor
2070 when pty is used by a non-child process, e.g., in I/O buffer of
2071 GDB this allows inferior to be restarted.
2072
e0840eef
EZ
20732009-08-29 Eli Zaretskii <eliz@gnu.org>
2074
2075 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2076 both branches into one.
2077
82e98df4
SM
20782009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2079
2080 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2081 (main): Use enable-multibyte-characters rather than
2082 default-enable-multibyte-characters. Output a warning message when
2083 running a unibyte session.
2084
890617cb
YM
20852009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2086
2087 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2088 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2089 (copy_data_segment): Also copy __program_vars section.
2090 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2091 (dump_it) [LC_DYLD_INFO]: Use it.
2092
2093 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2094
e7adeadc
EZ
20952009-08-28 Eli Zaretskii <eliz@gnu.org>
2096
2097 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2098 $(SRC)/buildobj.h.
2099 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2100 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2101 $(SRC)/buildobj.h.
2102 (clean): Add buildobj.h.
2103
3ed8bbdc
TZ
21042009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2105
2106 * print.c (print_object): Set escapeflag to 1 when printing
2107 hashtable keys and values.
2108
155a6764
SM
21092009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2110
2111 * lread.c (read_integer): Use doubles (and potentially return a float
2112 number) as we do in string-to-number.
2113 (read1): Use strtol to read integers, signal errors on strtol's
2114 overflow and use floats if strtol's output is too large for
2115 Elisp integers.
2116
877610de
EZ
21172009-08-27 Eli Zaretskii <eliz@gnu.org>
2118
2119 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2120 (make-buildobj-SH): Fix last change.
2121 (SRC): Move to before where it's first used.
2122
ef73e7be
KH
21232009-08-27 Kenichi Handa <handa@m17n.org>
2124
550c8289
KH
2125 * process.c (send_process): Use encode_coding_object instead of
2126 encode_coding_string to perform eol-conversion even if the string
2127 is unibyte.
2128
60afa08d
KH
2129 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2130 character.
2131
ef73e7be 2132 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2133 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2134
7b3a82d7
DN
21352009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2136
5654bf63
DN
2137 * callproc.c (Fcall_process): Remove always true #if.
2138
7b3a82d7
DN
2139 * lisp.h: Replace #if 0 code for checking with text pointing to
2140 the --enable-checking configure flag.
2141
2142 * emacs.c (main): Mention the --enable-profiling configure flag
2143 instead of using CFLAGS.
2144
878bde49
KR
21452009-08-26 Ken Raeburn <raeburn@raeburn.org>
2146
2147 * Makefile.in (buildobj.h): New target.
2148 (doc.o): Depend on it.
2149 (temacs${EXEEXT}): Don't generate buildobj.lst.
2150 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2151 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2152 ($(BLD)/doc.$(O)): Depend on it.
2153 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2154 provided by Eli Zaretskii.)
2155 ($(TEMACS)): Don't generate buildobj.lst.
2156 * doc.c: Include buildobj.h.
2157 (buildobj): New static variable.
2158 (Fsnarf_documentation): Use it, instead of opening and reading
2159 buildobj.lst.
2160
1574224c
MA
21612009-08-25 Michael Albinus <michael.albinus@gmx.de>
2162
2163 * dbusbind.c (Fdbus_call_method)
2164 (Fdbus_call_method_asynchronously): Use English numeric format for
2165 timeout values in doc string.
2166
d9da2f45
KH
21672009-08-25 Kenichi Handa <handa@m17n.org>
2168
ef73e7be
KH
2169 * alloc.c (mark_char_table): New function.
2170 (mark_object): Use mark_char_table for a char-table.
2171
d9da2f45
KH
2172 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2173 (CHAR_TABLE_REF): Use it.
2174
c8edcc01
KR
21752009-08-23 Ken Raeburn <raeburn@raeburn.org>
2176
2177 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2178 before invoking the newly build emacs to check for load-path
2179 shadowing.
2180
7763401b
GM
21812009-08-22 Glenn Morris <rgm@gnu.org>
2182
2183 * Makefile.in (bootstrap_exe): New variable.
2184 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2185 Use ${bootstrap_exe}.
2186
729eadda
EZ
21872009-08-22 Eli Zaretskii <eliz@gnu.org>
2188
2189 * coding.h (encode_coding_string): Don't encode unibyte strings.
2190 (Bug#4047)
2191
eb4c6ace
MA
21922009-08-22 Michael Albinus <michael.albinus@gmx.de>
2193
2194 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2195
2196 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2197 intended as hotfix only.
2198 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2199
36e34d1b
AR
22002009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2201
2202 * nsterm.m (ns_get_color): Update documentation properly for last
2203 change, and clean up loose ends in the code left by it. Fix
2204 longstanding bug with 16-bit hex parsing, and add support for
2205 yet another X11 format (rgb:r/g/b) for compatibility.
2206 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2207 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2208
f983eb8a
SM
22092009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2210
2211 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2212
3f56d3c6
MA
22132009-08-20 Michael Albinus <michael.albinus@gmx.de>
2214
2215 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2216 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2217 (xd_initialize, xd_pending_messages): Check, whether
2218 $DBUS_SESSION_BUS_ADDRESS is set.
2219
fb641d68
YM
22202009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2221
2222 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2223
2224 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2225
cf59a374
GM
22262009-08-20 Glenn Morris <rgm@gnu.org>
2227
2228 * emacs.c (system-type): Doc fix.
2229
1373f3be
SM
22302009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2231
2232 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2233 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2234
058ed861
MA
22352009-08-18 Michael Albinus <michael.albinus@gmx.de>
2236
1373f3be
SM
2237 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2238 New functions.
058ed861
MA
2239 (xd_initialize): Revert change from 2009-08-16.
2240
563a866e 22412009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2242
2243 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2244 font-group vector, return nil.
5fc05db0 2245
e42bdf01
CY
22462009-08-17 Chong Yidong <cyd@stupidchicken.com>
2247
2248 * process.c (status_notify): Don't perform redisplay.
2249 (Fdelete_process, list_processes_1, process_send_signal):
2250 Expliticly perform redisplay.
2251 (wait_reading_process_output): Always check process status, but
2252 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2253
4230ab74
KR
22542009-08-17 Ken Raeburn <raeburn@raeburn.org>
2255
1373f3be 2256 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2257 (XFLOAT_INIT): New macro for storing a float value.
2258 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2259 * fns.c (sxhash): Copy out the value of a float in order to
2260 examine its bytes.
2261 * dbusbind.c (xd_append_arg): Likewise.
2262
4230ab74
KR
2263 * emacs.c (main): Don't call syms_of_data twice.
2264
a0645cdd
MA
22652009-08-16 Michael Albinus <michael.albinus@gmx.de>
2266
2267 * dbusbind.c (xd_initialize): Add connection file descriptor to
2268 input_wait_mask, in order to let select() detect, whether a new
2269 message has been arrived.
ca4f31ea 2270 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2271
485db0ba
MA
22722009-08-15 Michael Albinus <michael.albinus@gmx.de>
2273
1373f3be
SM
2274 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2275 New functions.
485db0ba
MA
2276
2277 * lisp.h (xd_pending_messages): Declare.
2278
2279 * keyboard.c (readable_events): Call xd_pending_messages.
2280
b5b98ff4
CY
22812009-08-15 Chong Yidong <cyd@stupidchicken.com>
2282
1373f3be 2283 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2284
f8354c6e
CY
2285 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2286
b5b98ff4
CY
2287 * buffer.c (set_buffer_internal_1)
2288 (swap_out_buffer_local_variables): Check for unbound local
2289 variables (Bug#4138).
2290
8b9fc636
EZ
22912009-08-14 Eli Zaretskii <eliz@gnu.org>
2292
2293 * process.c (create_pty): Fix last change.
2294
ce959360
CY
22952009-08-13 Chong Yidong <cyd@stupidchicken.com>
2296
2297 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2298 (xbm_load_image): Caller changed.
64b807c9 2299 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2300
c7baf7e9
NR
23012009-08-13 Nick Roberts <nickrob@snap.net.nz>
2302
2303 * process.c (create_pty): New function.
2304 (Fstart_process): Use it to allow Emacs to just associate a pty
2305 with the buffer. See associated change in gdb-mi.el.
2306 (list_processes_1): Deal with no program name.
2307 (start_process_unwind): Use pid == -2 to mean no process.
2308
1ac9108a
SM
23092009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2310
2311 * cmds.c (nonundocount): New global variable.
2312 (keys_of_cmds): Initialize it.
2313 (Fself_insert_command): Use it to combine upto 20 sequential chars
2314 into a single undo entry, just like the Qself_insert_command code in
2315 keyboard.c does.
2316 Call frame_make_pointer_invisible, also like the Qself_insert_command
2317 code in keyboard.c does.
2318 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2319 than its own local replacement for it.
2320
e267324c
KR
23212009-08-10 Ken Raeburn <raeburn@raeburn.org>
2322
1ac9108a 2323 * fns.c (concat): Don't re-set string length to its current value.
77437343 2324
1ac9108a
SM
2325 * coding.h (decode_coding_string, encode_coding_string):
2326 Use SBYTES macro.
f0bed503 2327
1ac9108a 2328 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2329 (doprnt): Merge with doprnt1, discarding lispstrings code.
2330 * lisp.h (doprnt_lisp): Don't declare.
2331
416e006d
JL
23322009-08-07 Juri Linkov <juri@jurta.org>
2333
2334 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2335
6f7d5780
DN
23362009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2337
2338 * print.c (syms_of_print): Undo previous change.
2339
f19a0f5b
TZ
23402009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2341
2342 * lread.c (read1, syms_of_lread): Read hashtables back from the
2343 readable format.
2344
2345 * print.c (print_preprocess, print_object): Print hashtables fully
2346 and readably.
2347 (syms_of_print): Provide 'hashtable-print-readable.
2348
b9173dc2
AR
23492009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2350
2351 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2352 no family set.
2353 (nsfont_open): Handle case when entity has no family.
2354
1586503c
AR
23552009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2356
2357 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2358 element, not a list, for match case.
2359
087048cd
KH
23602009-07-28 Kenichi Handa <handa@m17n.org>
2361
2362 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2363 rigidly.
2364
2365 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2366 font_parse_xlfd. Check font properties more rigidly.
2367
780c2506
DN
23682009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2369
31fd7c5c
JB
2370 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2371 bsd-common.h.
780c2506 2372
a8c0cc18
KH
23732009-07-27 Kenichi Handa <handa@m17n.org>
2374
2375 * xfaces.c (face_with_height): Call font_clear_prop.
2376
4fbe2306
CY
23772009-07-26 Chong Yidong <cyd@stupidchicken.com>
2378
111d9af3
CY
2379 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2380
2381 * xterm.c (x_term_init): Use Qx.
2382
4fbe2306
CY
2383 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2384
1ac9108a 2385 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2386 (ns_get_color): Revert 2009-07-16 change.
2387
beb0b7f9
EZ
23882009-07-25 Eli Zaretskii <eliz@gnu.org>
2389
2390 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2391 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2392
2baf5e76
KR
23932009-07-25 Ken Raeburn <raeburn@raeburn.org>
2394
1ac9108a
SM
2395 * coding.h (decode_coding_string, encode_coding_string):
2396 Use SCHARS macro.
8890e5f5 2397
2baf5e76 2398 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2399 (load_depth): Delete.
2baf5e76
KR
2400 (Qload_in_progress): New variable.
2401 (load_unwind): Don't reference load_depth or load_in_progress.
2402 (Fload): Likewise; specbind Qload_in_progress instead.
2403 (init_lread): Don't initialize load_depth.
2404 (syms_of_lread): Initialize and protect Qload_in_progress.
2405
1395c6f5
AR
24062009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2407
2408 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2409
4e2f36cf
AR
24102009-07-23 Yavor Doganov <yavor@gnu.org>
2411
2412 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2413
5dd9a6f7
AR
24142009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2415
2416 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2417 Bugs 3792, 3720, 2402.
2418 (ns_lookup_indexed_color): Check for bad index.
2419 (ns_index_color): Init unused slot to 0.
2420 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2421 Bug 3714, possibly 3082.
5dd9a6f7 2422
c902b920
JR
24232009-07-22 Jason Rumney <jasonr@gnu.org>
2424
1ac9108a
SM
2425 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2426 Position IME window at cursor (Bug#2570).
c902b920
JR
2427 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2428 (globals_of_w32fns): Dynamically load functions required above.
2429
2430 * w32term.c (w32_draw_window_cursor): Send message to reposition
2431 any IME window.
2432
090101cf
CY
24332009-07-21 Chong Yidong <cyd@stupidchicken.com>
2434
2435 * fileio.c: Revert 2009-07-16 changes.
2436 (Vauto_save_include_big_deletions): New variable.
2437 (Fdo_auto_save): Disable auto-save only if
2438 auto-save-include-big-deletions is nil.
2439
e6583e3d
CY
24402009-07-21 Chong Yidong <cyd@stupidchicken.com>
2441
2442 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2443 the overflowed pixels into account (Bug#3879).
2444
ece435a5
KR
24452009-07-21 Ken Raeburn <raeburn@raeburn.org>
2446
2447 * lread.c (load_depth): New variable.
2448 (Fload, load_unwind, init_lread): Set it to the load recursion
2449 depth; set load_in_progress as a simple boolean based on the
2450 current load_depth. (Bug#3892)
2451
40b2d973
AR
24522009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2453
2454 * nsfont.m (ns_has_attribute): Remove.
2455 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2456
10be7e0d
JL
24572009-07-18 Juri Linkov <juri@jurta.org>
2458
2459 * process.c (Fset_process_query_on_exit_flag): Mention killing
2460 a buffer in docstring.
2461
fa055055
KH
24622009-07-17 Kenichi Handa <handa@m17n.org>
2463
2464 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2465
042f7b69
YM
24662009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2467
2468 * nsfns.m (Fns_set_alpha): Remove function.
2469 (syms_of_nsfns): Don't defsubr it.
2470
2471 * nsterm.m (ns_get_color): Remove incompatible color formats.
2472 (ns_color_to_lisp): Generate #rrggbb color format string.
2473
4be941e3
RS
24742009-07-16 Richard Stallman <rms@gnu.org>
2475
2476 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2477 (Fset_buffer_auto_saved): Handle save_length = -2.
2478
4e6b227d
CY
24792009-07-16 Chong Yidong <cyd@stupidchicken.com>
2480
2481 * xterm.c (Qx_gtk_map_stock): New var.
2482
2483 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2484 of calling intern each time.
2485
a1856973
YM
24862009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2487
2488 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2489 does tiling.
2490
2491 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2492
497e54d8
KH
24932009-07-14 Kenichi Handa <handa@m17n.org>
2494
72d36834
KH
2495 * font.c (font_vconcat_entity_vectors): New function.
2496 (struct font_sort_data): New member font_driver_preference.
2497 (font_compare): Check font_driver_preference.
2498 (font_sort_entities): The format of the first argument changed.
2499 (font_delete_unmatched): Likewise.
2500 (font_list_entities): The return type changed.
2501 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2502 (font_find_for_lface): Adjuste for the above changes.
2503 Don't suppress the checking of C even if the repertory supports it.
2504 (Flist_fonts): Adjust for the above changes.
72d36834 2505
1ac9108a
SM
2506 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2507 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2508 Reject a font who has adstyle property that is different from a
2509 langname derived from registry property.
1ac9108a 2510 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2511
b6046155
EZ
25122009-07-13 Eli Zaretskii <eliz@gnu.org>
2513
2514 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2515 local copy of dirfilename.
2516
fb6b6049
KH
25172009-07-13 Kenichi Handa <handa@m17n.org>
2518
e2402a5e
KH
2519 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2520 against max_char.
2521
fb6b6049
KH
2522 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2523 calling XSYMBOL (sym).
2524
65156807
EZ
25252009-07-11 Eli Zaretskii <eliz@gnu.org>
2526
1ac9108a
SM
2527 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2528 New function.
2529 (directory_files_internal) [WINDOWSNT]:
2530 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2531 the filesystem of the directory is fast or slow.
2532
2533 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2534 file name.
2535 (is_slow_fs): New function.
2536 (stat): Use it to determine whether to issue more system calls to
2537 get accurate file attributes, when w32-get-true-file-attributes is
2538 `local'.
2539
e0ab5fcf
JD
25402009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2541
2542 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2543 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2544 parameter font-parameter as default to the font dialog.
2545
784ceded
KH
25462009-07-10 Kenichi Handa <handa@m17n.org>
2547
2548 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2549
fb8edc0b
EZ
25502009-07-09 Eli Zaretskii <eliz@gnu.org>
2551
1ac9108a 2552 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2553
fb8edc0b
EZ
2554 * w32.c (stat): Treat UNC file names as residing on remote
2555 drives. (Bug#3542)
2556
635c75b1
KH
25572009-07-09 Kenichi Handa <handa@m17n.org>
2558
2559 * fontset.c (fontset_find_font): Fix previous change.
2560
c1d5ce94
MA
25612009-07-08 Michael Albinus <michael.albinus@gmx.de>
2562
2563 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2564 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2565 error flag.
2566
edb61b39
KH
25672009-07-08 Kenichi Handa <handa@m17n.org>
2568
374bf7e4
KH
2569 * fontset.c (fontset_find_font): Fix the logic of handling
2570 charset_matched.
2571 (font_for_char): Delete unused var.
2572 (generate_ascii_font_name): Delete it.
2573
edb61b39
KH
2574 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2575
2576 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2577 (encode_coding_sjis): Fix the code range check.
2578
0f3f018c
CY
25792009-07-07 Chong Yidong <cyd@stupidchicken.com>
2580
2581 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2582 (Fexpand_file_name): Copy string data properly (Bug#3772).
2583
fcaf6f3a
JD
25842009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2585
2586 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2587 first MapNotify.
2588
6809ca75
KH
25892009-07-07 Kenichi Handa <handa@m17n.org>
2590
2591 * character.h (unibyte_has_multibyte_table): Delete extern.
2592 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2593
2594 * charset.c (Fset_charset_priority): Update charset_unibyte.
2595 (syms_of_charset): Initialize charset_unibyte.
2596
2597 * character.c (unibyte_has_multibyte_table): Delete it.
2598 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2599 charset_unibyte.
2600 (multibyte_char_to_unibyte_safe): Likewise.
2601 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2602
1ac9108a 2603 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2604 (x_produce_glyphs): Likewise.
2605
2606 * .gdbinit (xcharset): Fix the treating $arg0.
2607
ad9e2d54
EZ
26082009-07-04 Eli Zaretskii <eliz@gnu.org>
2609
2610 Emulation of `getloadavg' on MS-Windows.
2611 * w32.c: Include float.h
2612 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2613 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2614 (get_native_system_info, get_system_times): New functions.
2615 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2616 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2617 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2618 g_b_init_get_system_times, and num_of_processors.
2619
0a3472c7
JR
26202009-07-03 Jason Rumney <jasonr@gnu.org>
2621
2622 * w32term.c (w32_initialize): Use standard types.
2623
80904120
EZ
26242009-07-03 Eli Zaretskii <eliz@gnu.org>
2625
2626 * dired.c (Ffile_attributes): Decode user and group names by the
2627 locale's encoding. (Bug#3443)
2628
6978862d
DN
26292009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2630
f8d23104
DN
2631 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2632 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2633
2634 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2635
2636 * term.c (init_tty): Remove spurious #ifdef.
2637
6978862d
DN
2638 * m/mips.h: Mention this file is also used for netbsd.
2639 * m/pmax.h: Remove file.
2640
e044e4fc
JD
26412009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2642
2643 * xterm.h (struct x_display_info): Add invisible_cursor.
2644 (struct x_output): Add current_cursor.
2645
2646 * xterm.c (XTtoggle_invisible_pointer): New function.
2647 (x_define_frame_cursor): Don't define cursor if invisible or the
2648 same as before. Set current_cursor.
2649 (x_create_terminal): Set toggle_invisible_pointer_hook.
2650
2651 * xfns.c (make_invisible_cursor): New function.
2652 (x_set_mouse_color): Call make_invisible_cursor.
2653 Set current_cursor.
2654 (x_window): Set current_cursor.
2655
2656 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2657
2658 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2659 inserting a character.
2660 (read_avail_input): Call frame_make_pointer_visible.
2661
2662 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2663 (frame_make_pointer_invisible, frame_make_pointer_visible):
2664 New functions.
e044e4fc
JD
2665 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2666
2667 * frame.h: Declare frame_make_pointer_invisible and
2668 frame_make_pointer_visible.
2669 (struct frame): Add pointer_invisible.
2670
574c8efa
JD
26712009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2672
7b507248
JD
2673 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2674 frame isn't visible.
2675 (xg_frame_resized): If width/height is -1, get size of window
2676 from X server.
2677
2678 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2679 for MapNotify.
2680
835bdaa7 2681 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2682 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2683 (flush_and_sync): Reintroduce.
574c8efa 2684
3f1c6666 26852009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2686
31fd7c5c 2687 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2688
2689 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2690 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2691
2692 * frame.h: Declare Qsticky.
2693
cad9ef74
JD
2694 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2695
2696 * nsfns.m (ns_frame_parm_handlers): Ditto.
2697
2698 * frame.c: Declare Qsticky.
2699 (frame_parms): Add sticky.
2700
2701 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2702
2703 * xterm.h: Declare x_set_sticky.
2704
2705 * xterm.c (x_set_sticky): New function.
2706
69b16610
JD
2707 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2708 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2709 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2710
2711 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2712
2713 * frame.c: Qmaximized is new.
2714 (x_set_frame_parameters): Do not handle fullscreen specially.
2715 Only set width and height if explicitly set.
2716 (x_set_fullscreen): Handle Qmaximized.
2717 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2718 (syms_of_frame): Initialize Qmaximized.
2719
1ac9108a
SM
2720 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2721 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2722
2723 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2724 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2725 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2726 set gravity to NorthWestGravity when USE_GTK.
2727 (set_wm_state): New function.
31fd7c5c 2728 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2729 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2730 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2731 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2732 to x_real_positions and x_fullscreen_adjust.
2733
2734 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2735 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2736 flush_and_sync.
2737 (xg_height_changed): New function.
2738 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2739 and gtk_window_set_policy. Set frame gravity after parsing the
2740 geometry string.
3f1c6666
JD
2741 (xg_update_frame_menubar, free_frame_menubar)
2742 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2743 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2744 Remove calls to xg_frame_set_char_size.
2745
fd503d99
KH
27462009-07-01 Kenichi Handa <handa@m17n.org>
2747
2748 * keyboard.c (decode_keyboard_code): New function.
2749 (tty_read_avail_input): Decode the input bytes if necessary.
2750
1ac9108a
SM
2751 * coding.c (setup_coding_system):
2752 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2753 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2754 use Qno_conversion.
2755
24ed93fb
YM
27562009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2757
2758 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2759
99061dfc
CY
27602009-06-30 Chong Yidong <cyd@stupidchicken.com>
2761
1ac9108a 2762 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2763
ff90fbde
JR
27642009-06-30 Jason Rumney <jasonr@gnu.org>
2765
2766 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2767 is already loaded.
2768 Set user model ID if supported (bug#1849).
2769
5f445726
JM
27702009-06-29 Jim Meyering <meyering@redhat.com>
2771
2772 Remove useless if-before-xfree test.
2773 * nsfont.m (nsfont_close): Remove useless test.
2774 * term.c (delete_tty): Likewise.
2775 * w32.c (system_process_attributes): Likewise.
2776 * w32font.c (w32font_close): Likewise.
2777 * xfaces.c (x_free_gc): Likewise.
2778 * xselect.c (buffer): Likewise.
2779
b9607587
AS
27802009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2781
2782 * process.c (send_process): Keep decoded string in a local
2783 variable and protect it from GC. (Bug#3521)
2784
89ba96f4
EZ
27852009-06-28 Eli Zaretskii <eliz@gnu.org>
2786
2787 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2788 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2789
098a1589
CY
27902009-06-28 Chong Yidong <cyd@stupidchicken.com>
2791
485422be
CY
2792 * xdisp.c (start_display, handle_face_prop)
2793 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2794 (redisplay_window, try_window_id, produce_image_glyph):
2795 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2796
098a1589
CY
2797 * xterm.c (x_update_window_begin, x_new_focus_frame)
2798 (x_scroll_bar_handle_click, handle_one_xevent)
2799 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2800 (x_make_frame_visible, x_make_frame_invisible)
2801 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2802 code chunks that are now obsolete.
2803
78c38319
MA
28042009-06-28 Michael Albinus <michael.albinus@gmx.de>
2805
2806 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2807 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2808 for hours, when optimzation is enabled.
2809 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2810 (xd_read_message): Make them static.
2811
4189ed40
CY
28122009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2813
2814 * term.c (turn_on_face): Allow simultaneously bold and dim
2815 terminal faces (Bug#3530).
2816
cd9b5e16
CY
28172009-06-27 Chong Yidong <cyd@stupidchicken.com>
2818
4e23bedb
CY
2819 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2820
cd9b5e16
CY
2821 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2822 truncation glyphs (Bug#3686).
2823
07cc3c35
GM
28242009-06-27 Glenn Morris <rgm@gnu.org>
2825
2826 * m/pmax.h: Restore file, with only netbsd portions.
2827
31fd7c5c 28282009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2829
cd9b5e16 2830 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2831
42d4a64f
KH
28322009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2833
2834 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2835 the arg FORCE_SYMBOL.
2836
930fe55b 28372009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2838
2839 * fontset.c (fontset_find_font): When a usable rfont_def is found
2840 in a fallback font-group, make it the first element of the group.
2841
57ebc3fd
CY
28422009-06-24 Chong Yidong <cyd@stupidchicken.com>
2843
2844 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2845
f084f942
KH
28462009-06-24 Kenichi Handa <handa@m17n.org>
2847
2848 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2849 set for C.
2850 (fontset_font): Record the availability of a font for C both in
2851 the realized fontsets of the current one and the default one.
2852
2f686c87
DN
28532009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2854
2855 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2856 conditional, it is always defined on AIX.
2857
666e158e
MB
28582009-06-23 Miles Bader <miles@gnu.org>
2859
2860 * window.c (Vrecenter_redisplay): New variable.
2861 (syms_of_window): Initialize it.
2862 (Qtty): New extern declaration.
2863 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2864
c6da7cd2
JM
28652009-06-23 Jim Meyering <meyering@redhat.com>
2866
1ac9108a
SM
2867 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2868 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2869 pointer dereferences are guaranteed to be valid.
c6da7cd2 2870
678dca3d
KH
28712009-06-23 Kenichi Handa <handa@m17n.org>
2872
74d75424
KH
2873 * emacs.c (main): Call init_font ().
2874
2875 * font.h (Vfont_log): Extern it.
2876 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2877
2878 * font.c (font_sort_entities, font_list_entities)
2879 (font_matching_entity, font_open_entity)
2880 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2881 (Vfont_log): Delete static.
2882 (font_log_env_checked): Delete this variable.
2883 (font_add_log): Don't check font_log_env_checked.
2884 (font_deferred_log): Check Vfont_log.
2885 (init_font): New function.
2886
678dca3d
KH
2887 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2888
2889 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2890
2891 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2892
2893 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2894
2895 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2896 (face_for_char): Don't call font_deferred_log here.
2897 (font_for_char): Likewise.
2898
8a668709
CY
28992009-06-22 Chong Yidong <cyd@stupidchicken.com>
2900
9a01ee33
CY
2901 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2902 rather than its background_width for drawing the overline and
2903 underline (Bug#489).
2904
2905 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2906 rather than its background_width for drawing the overline and
2907 underline (Bug#489).
ec7c9926
CY
2908 (xg_default_icon_file): New variable.
2909 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2910 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2911
8a668709
CY
2912 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2913 (load_overlay_strings): Remove externs.
2914 (fast_find_position): Function deleted.
2915 (mouse_face_from_buffer_pos): New function, based on
2916 fast_find_position. Correctly handle before-strings,
2917 display-strings, and after-strings (Bug#1220).
2918 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2919
4d4c02d8
CY
29202009-06-21 Chong Yidong <cyd@stupidchicken.com>
2921
1ac9108a 2922 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2923 (move_it_in_display_line_to, move_it_in_display_line_to)
2924 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2925
70243478
CY
29262009-06-21 Chong Yidong <cyd@stupidchicken.com>
2927
2928 * Branch for 23.1.
2929
13087e59
JR
29302009-06-21 Jason Rumney <jasonr@gnu.org>
2931
2932 * w32term.c (keyboard_codepage): New static variable.
2933 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2934 (w32_read_socket) [WM_CHAR]: Use it to decode character
2935 input (bug#3237).
2936 (w32_initialize): Initialize it.
2937 (codepage_for_locale): New function.
2938
4735b74e
KR
29392009-06-20 Ken Raeburn <raeburn@raeburn.org>
2940
2941 * process.c (status_message): Pass Faset index argument as a lisp
2942 object, so as to work with USE_LISP_UNION_TYPE.
2943
0e727afa
YM
29442009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2945
2946 * coding.c (Ffind_coding_systems_region_internal):
2947 Cache checked characters.
2948
cf299835
KH
29492009-06-18 Kenichi Handa <handa@m17n.org>
2950
1ac9108a 2951 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2952
90f20d94
AS
29532009-06-18 Andreas Schwab <aschwab@redhat.com>
2954
2955 * xdisp.c (redisplay_internal): Check that the frame is still
2956 live after redisplay of its windows.
2957 (redisplay_windows): Check that the window is still live.
2958
7f1faf1c
KH
29592009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2960
2961 * coding.c (detect_coding_utf_16): Fix previous change.
2962
cc13543e
KH
29632009-06-16 Kenichi Handa <handa@m17n.org>
2964
2965 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2966 UTF-16 by checking the dispersion of Eth and Oth bytes.
2967
977b85f4
AS
29682009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2969
2970 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2971
66bd43d1
KH
29722009-06-15 Kenichi Handa <handa@m17n.org>
2973
2974 * process.c (status_message): Fix previous change. Be sure to
2975 decode a localized string.
2976
cb5ca9c5
YM
29772009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2978
2979 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2980 add comment explaining why.
2981
ec7709ba 29822009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2983
ec7709ba 2984 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2985
4b7f335c
AR
29862009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2987
2988 * nsfont.m (ns_attribute_value): Remove.
2989 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2990 (ns_has_attribute): Shrink the normal range.
2991 (ns_findfonts): Don't worry about requested spec in determining
2992 need for synthItal.
e41820ee 2993 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2994
73b26103
SZ
29952009-06-14 Seiji Zenitani <zenitani@mac.com>
2996
2997 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2998
5753e4da
KH
29992009-06-11 Kenichi Handa <handa@m17n.org>
3000
3001 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3002 overhang for the static composition case.
3003
3561b671
KH
30042009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3005
5753e4da
KH
3006 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3007 overhang for the automatic composition case.
3008
3561b671
KH
3009 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3010 composition case.
3011
852bbd41
CY
30122009-06-10 Chong Yidong <cyd@stupidchicken.com>
3013
3014 * xdisp.c (get_next_display_element): When handling wrap-prefix
3015 and line-prefix, treat \n as a control character (bug#3502).
3016
9903d1e6
KH
30172009-06-10 Kenichi Handa <handa@m17n.org>
3018
3019 * font.c (font_parse_family_registry): Fix for one-char foundry.
3020 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3021
0bcbaaaa
CY
30222009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3023
3024 * process.c (status_message): Fix handling of multibyte signal
3025 string (Bug#3499).
3026
40aa3f13
JM
30272009-06-09 Jim Meyering <meyering@redhat.com>
3028
1f80c7e2
CY
3029 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3030 color name is missing.
40aa3f13 3031
72d51285
KH
30322009-06-09 Kenichi Handa <handa@m17n.org>
3033
3034 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3035 FROM-CODE and TO-CODE are codepoints of CHARSET.
3036
c1d04d84
AR
30372009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3038
3039 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3040
30412009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3042
3043 Changes to support :script/:lang/:otf in NS font driver.
3044 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3045 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3046 indicate not part of font driver interface, and change callers.
3047 (ns_get_family): Remove pointless null check.
3048 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3049 ns_spec_to_descriptor, ns_descriptor_to_entity.
3050 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3051 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3052 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3053 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3054 (ns_get_req_script, ns_accumulate_script_ranges)
3055 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3056 New functions.
3057 (nsfont_list, nsfont_match): Use ns_findfonts.
3058 (nsfont_open): Use font descriptor instead of traits.
3059 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3060 (dump_glyphstring): Rename to ns_dump_glyphstring.
3061
c7eb9816
AR
3062 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3063
c1d04d84
AR
3064 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3065
3066 * fontset.c (fontset_from_font): Remove NS-specific code.
3067
ec7709ba 30682009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3069
3070 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3071 nonactive windows.
3072
31fd7c5c 30732009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3074
1ac9108a 3075 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3076
68852c13 30772009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3078
3079 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3080
6756cd1d
CY
30812009-06-07 Chong Yidong <cyd@stupidchicken.com>
3082
3083 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3084 account for the overflowing of newlines into the last glyph on the
3085 display line (Bug#3482).
3086
28bf482a
DR
30872009-06-05 David Reitter <david.reitter@gmail.com>
3088
ec7709ba
JB
3089 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3090 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3091 Fns_selection_exists_p, Fns_selection_owner_p.
3092
fdb55376
JR
30932009-06-03 Jason Rumney <jasonr@gnu.org>
3094
3095 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3096 available. (Bug#3379)
3097
05129fbe
KH
30982009-05-29 Kenichi Handa <handa@m17n.org>
3099
1ac9108a
SM
3100 * coding.c (get_translation_table):
3101 Check Venable_character_translation.
05129fbe 3102
ec7709ba 31032009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3104
ec7709ba
JB
3105 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3106 (x_make_frame_visible): Move frame to front rather than calling
15891144 3107 ns_raise_frame().
ec7709ba 3108 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3109 isn't key window.
ec7709ba 3110 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3111 drawRect may be called by NSView even if the frame is hidden.
3112
ec7709ba
JB
3113 * nsfns.m (Fx_create_frame): Follow other ports in
3114 determining visibility; default to t. Ensure async_visible is set.
15891144 3115
21f73755
EZ
31162009-05-23 Eli Zaretskii <eliz@gnu.org>
3117
3118 * dired.c (Ffile_attributes): Doc fix.
3119
34001e41
CY
31202009-05-22 Chong Yidong <cyd@stupidchicken.com>
3121
3122 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3123
46306a17
SM
31242009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3125
3126 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3127 and xfont_scratch_props.
3128 (syms_of_xfont): Do it here instead.
3129 (xfont_find_ccl_program): Delete, unused.
3130 (xfont_open): Delete unused var `i'.
3131
ef6e0694
KH
31322009-05-21 Kenichi Handa <handa@m17n.org>
3133
3134 * fontset.c (Qlatin): Don't make it static.
3135
46306a17
SM
3136 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3137 New functions.
ef6e0694
KH
3138 (xfont_scripts_cache, xfont_scratch_props): New variables.
3139 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3140 (xfont_list_pattern): Argument changed. Callers changed.
3141 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3142 (xfont_list): Don't reject a font spec with :script property.
3143 (xfont_has_char): Fix setting of encoding.
3144 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3145 xfont_scratch_props.
3146
31472009-05-19 Kenichi Handa <handa@m17n.org>
3148
46306a17 3149 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3150 Callers changed.
3151
31522009-05-18 Kenichi Handa <handa@m17n.org>
3153
3154 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3155
ac71ced7
SM
31562009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3157
3158 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3159 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3160
1c6d1051
YM
31612009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3162
3163 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3164 (x_delete_terminal): Dissociate resource database from display and
3165 then call XrmDestroyDatabase before closing display.
3166
9b9b779c
AR
31672009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3168
3169 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3170 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3171 whether selected frame is viable before raising it (based on patch
3172 by David Reitter), and improve commentary.
3173 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3174
cccd42d5
KH
31752009-05-15 Kenichi Handa <handa@m17n.org>
3176
3177 * font.c (Ffont_spec): Check arguments.
3178
337fbd17
CY
31792009-05-14 Chong Yidong <cyd@stupidchicken.com>
3180
3181 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3182 weight when testing attributes (Bug#3282).
3183
47a6002f
JD
31842009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3185
3186 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3187 what we expect to get in the next ConfigureNotify event.
3188
9cb363db
YM
3189 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3190 before Xft one (Bug#1696).
3191
b9126609
CY
31922009-05-07 David Reitter <david.reitter@gmail.com>
3193
3194 * nsfns.m (Fx_display_planes): Compute bitplanes using
3195 NSBitsPerPixelFromDepth (Bug#3207).
3196
27a69fd9
CY
31972009-05-10 Chong Yidong <cyd@stupidchicken.com>
3198
3199 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3200
00f37552
TTN
32012009-05-10 Ulrich Mueller <ulm@gentoo.org>
3202
3203 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3204
2d82a920
DR
32052009-05-07 David Reitter <david.reitter@gmail.com>
3206
ec7709ba
JB
3207 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3208 Respect mouse face background.
2d82a920 3209
46b0d52d
DR
32102009-05-07 David Reitter <david.reitter@gmail.com>
3211
ec7709ba
JB
3212 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3213 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3214 in ns_update_begin and ns_update_end.
3215
ce1b23bb
SM
32162009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3217
5996e1b7
SM
3218 * nsfns.m (ns_get_screen): Rewrite.
3219 Don't presume selected-frame is of type `ns'.
3220
ba98e3a0
SM
3221 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3222 all drivers.
3223
ce1b23bb
SM
3224 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3225
bcda200f
YM
32262009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3227
3228 * keyboard.h (add_user_signal): Fix typo in extern.
3229
3230 * lisp.h (add_user_signal): Remove extern.
3231
3232 * unexelf.c (unexec): Consider a section to precede the .bss section
3233 if its addresses overlap that of .bss.
3234 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3235 instead of dumping process.
3236
864660a2
SM
32372009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3238
3239 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3240
50da4e56
SM
32412009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3242
3243 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3244
51520a1a
DN
32452009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3246
3247 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3248 any statements.
3249
409ea3a1
AS
32502009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3251
59c4c60f
AS
3252 * process.c (read_process_output): Make sure the current buffer is
3253 always restored.
3254
409ea3a1
AS
3255 * coding.c (record_conversion_result): Don't modify
3256 Vlast_code_conversion_error for successful result.
3257 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3258
56f00ed2
KH
32592009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3260
3261 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3262 (load_charset_map): Remove unnecessary code.
56f00ed2 3263
4491c9d2
DR
32642009-04-30 David Reitter <david.reitter@gmail.com>
3265
35f5b128 3266 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3267 through f24.
3268
6970f632
CY
32692009-04-30 Chong Yidong <cyd@stupidchicken.com>
3270
3271 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3272
3273 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3274 face_at_buffer_position.
3275 (face_before_or_after_it_pos, get_next_display_element)
3276 (note_mouse_highlight): Update face_at_buffer_position call.
3277
3278 * term.c (term_mouse_highlight):
3279 * msdos.c (IT_note_mouse_highlight):
3280 * fontset.c (Finternal_char_font):
35f5b128 3281 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3282
3283 * dispextern.h (face_at_buffer_position): Update prototype.
3284
0c616f63
KH
32852009-04-30 Kenichi Handa <handa@m17n.org>
3286
35f5b128 3287 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3288
ad3aaf33
AS
32892009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3290
3291 * callproc.c (Fcall_process): Fix GC protection. Make sure
3292 current buffer is always restored.
3293
c3c963a0
YM
32942009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3295
3296 * atimer.c (init_atimer): Also clear stopped_atimers.
3297
3298 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3299
7e3386cb
YM
3300 * process.c (create_process): Clean up merger residues of
3301 2008-07-17 change.
3302
91f68422
CY
33032009-04-29 Ulrich Mueller <ulm@gentoo.org>
3304
3305 * lread.c (Vread_circle): New variable.
3306 (read1): Disable recursive read if Vread_circle is nil.
3307
24b34550
KH
33082009-04-29 Kenichi Handa <handa@m17n.org>
3309
3310 * fontset.h (set_default_ascii_font): Delete extern.
3311
3312 * fontset.c (set_default_ascii_font): Delete this unused function.
3313
3314 * frame.c (x_set_font): When ARG is a font-object, check if the
3315 font-object matches with the ASCII font-spec of the frame's
9c358bda 3316 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3317
77bf07e1
AS
33182009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3319
3320 * fns.c (Flocale_info): Protect vector from GC during decoding.
3321
3322 * process.c (Fstart_process): Protect argv strings from GC during
3323 encoding.
3324
2c55aacf
AS
33252009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3326
3327 * sysdep.c: Include <ctype.h>.
3328
b892d3c9
DR
33292009-04-27 David Reitter <david.reitter@gmail.com>
3330
35f5b128 3331 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3332 Remove commented-out code.
3333
9d0644c4
JB
33342009-04-26 Johan Bockgård <bojohan@gnu.org>
3335
3336 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3337
b7053016
JR
33382009-04-25 Jason Rumney <jasonr@gnu.org>
3339
3340 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3341
4e8231f3
YM
33422009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3343
3344 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3345 Swap bytes in short integer if fringe bitmap width > 8.
3346
493dcf2c
KH
33472009-04-23 Kenichi Handa <handa@m17n.org>
3348
3349 * xfaces.c (Fx_list_fonts): If a font size is specified in
3350 PATTERN, set it in returned scalable fonts.
3351
401e9e57
CY
33522009-04-22 Chong Yidong <cyd@stupidchicken.com>
3353
708e05dc
CY
3354 * keyboard.c (Fset_input_meta_mode): Doc fix.
3355
3356 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3357
1ac9108a 3358 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3359
3360 * coding.c (Fterminal_coding_system): Doc fix.
3361
3362 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3363 (Fx_display_pixel_height, Fx_display_planes)
3364 (Fx_display_color_cells, Fx_server_max_request_size)
3365 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3366 (Fx_display_mm_height, Fx_display_mm_width)
3367 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3368 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3369 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3370 (check_x_display_info): Handle terminal objects instead of
3371 terminal ids.
3372
401e9e57
CY
3373 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3374 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3375 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3376 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3377
df80c7f0
KH
33782009-04-21 Kenichi Handa <handa@m17n.org>
3379
5a8f12af 3380 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3381 (font_score): Check AVGWIDTH too.
908567ef 3382
df80c7f0
KH
3383 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3384 worst case.
1ac9108a
SM
3385 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3386 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3387
705af33f
JR
33882009-04-19 Jason Rumney <jasonr@gnu.org>
3389
3390 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3391 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3392
3393 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3394 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3395 get_phys_cursor_geometry.
3396
b71ac3dd 3397 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3398 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3399 using get_phys_cursor_geometry.
3400
3401 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3402 correctly calculated.
3403
dc2933eb
JD
34042009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3405
1ac9108a
SM
3406 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3407 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3408 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3409 is deprecated.
3410
973e7849
AS
34112009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3412
3413 * font.c (font_put_frame_data): Use xfree instead of free.
3414
314d66f4
JB
34152009-04-17 Juanma Barranquero <lekktu@gmail.com>
3416
3417 * w32font.c (Qja, Qko): Remove declarations.
3418 (syms_of_w32font): Don't DEFSYM them.
3419
cf702558
CY
34202009-04-17 Chong Yidong <cyd@stupidchicken.com>
3421
3422 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3423
3424 * font.h (Qja, Qko): Extern them.
3425
3426 * ftfont.c (Qja, Qko): Remove declarations.
3427
3428 * xfont.c (Qja, Qko): Remove declarations.
3429
b50504f5
KH
34302009-04-17 Kenichi Handa <handa@m17n.org>
3431
bde25748
KH
3432 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3433 string from a vector to handle Latin-1 characters correctly.
3434
b50504f5
KH
3435 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3436 entity even if the cache hits.
3437
f4646fff
AS
34382009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3439
3440 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3441 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3442
e7deaab0
AS
3443 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3444 * lisp.h: Adjust prototypes.
3445
0a0e7d49
CY
34462009-04-16 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3449 change (Bug#3003).
3450
3c908a57
KH
34512009-04-16 Kenichi Handa <handa@m17n.org>
3452
1ac9108a 3453 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3454
3455 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3456 adstyle.
3457
3458 * ftfont.c (Qja, Qko): Don't make them static.
3459 (enum ftfont_cache_for): New enum.
3460 (fc_charset_table): Undo the previous change.
3461 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3462 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3463 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3464 non-scarable font, try to get AVERAGE_WIDTH.
3465 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3466 Change ft_face_cache from a list of a hash-table. Don't check
3467 `ja' and `ko' adstyle here.
3468 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3469 FTFONT_CACHE_FOR_CHARET.
3470 (ftfont_get_charset): Undo the previous change.
1ac9108a 3471 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3472 (ftfont_close): Likewise.
3473 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3474
3475 * font.c (font_sort_entites): Change the meaning of the arg
3476 BEST-ONLY. Don't optimize for VEC of lenght 1.
3477 (font_select_entity): Just return the value of font_sort_entites.
3478
3479 * xfaces.c (merge_face_vectors): Reflect font properties in
3480 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3481 font_clear_prop if a face attribute doesn't change.
3482
3c908a57
KH
3483 * charset.h (charset_ksc5601): Extern it.
3484
3485 * charset.c (charset_ksc5601): New variable.
3486 (Fdefine_charset_internal): Set charset_ksc5601.
3487 (init_charset_once): Initialize charset_ksc5601 to -1.
3488
d65859c3
DN
34892009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3490
3491 * fileio.c (history_delete_duplicates): Remove unused declaration.
3492
3493 * callint.c (history_delete_duplicates): New declaration.
3494 (Fcall_interactively): Remove command history duplicates when
3495 history_delete_duplicates is true.
3496
3ba010e5
EZ
34972009-04-14 Eli Zaretskii <eliz@gnu.org>
3498
3499 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3500
06f19b91
KH
35012009-04-14 Kenichi Handa <handa@m17n.org>
3502
3503 * font.c (Ffont_info): Fix docstring. Fix the second element of
3504 the returned value (bug#2949).
3505
2cce8bfc
CY
35062009-04-14 Chong Yidong <cyd@stupidchicken.com>
3507
3508 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3509
d156542d
KH
35102009-04-14 Kenichi Handa <handa@m17n.org>
3511
3512 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3513 encoding charset is ascii_compatible.
3514
3515 * charset.c (Fdefine_charset_internal): Make charset
3516 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3517 code_offset is 0, and covers all ASCII characters.
3518
86fa089e
SM
35192009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3520
3521 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3522 (ns_string_to_pasteboard_internal):
3523 * nsmenu.m (process_dialog):
3524 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3525 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3526 * lisp.h (Fx_load_color_file): Declare.
3527
a8a3728b
KH
35282009-04-13 Kenichi Handa <handa@m17n.org>
3529
1ac9108a 3530 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3531 (font_select_entity): Suppress the code to optimize for the same
3532 kind of fonts.
3533 (font_load_for_lface): Get a font that supports at least ASCII
3534 characters.
3535
3536 * ftfont.c (Qja, Qko): New variables.
3537 (fc_charset_table): Delete uniquifier data for iso8859-1.
3538 (ftfont_get_latin1_charset): New function.
3539 (get_adstyle_property): New function.
3540 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3541 bitmap fonts.
3542 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3543 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3544 `ko' or `ja'.
3545 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3546 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3547 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3548 property.
3549 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3550 (syms_of_ftfont): DEFSYM Qja and Qko.
3551
483670b5
KH
35522009-04-09 Kenichi Handa <handa@m17n.org>
3553
12b55765
KH
3554 * charset.c (map_charset_chars): For a charset of `superset'
3555 method, fix calculation of code range.
3556
483670b5
KH
3557 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3558 from the list of extra properties.
3559 (font_clear_prop): Be sure to delete `:name' font property.
3560
57d3b93b
KH
35612009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3562
b4b2c2ca
YM
3563 * dispnew.c (redraw_overlapping_rows): Fix detection of
3564 overlapping for topmost and bottommost rows.
3565
1ac9108a 3566 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3567
472c3609
JR
35682009-04-06 Jason Rumney <jasonr@gnu.org>
3569
3570 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3571
ab193662
KH
35722009-04-06 Kenichi Handa <handa@m17n.org>
3573
3574 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3575
3576 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3577
0c26f026
KH
35782009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3579
3580 * ftfont.c (ftfont_open): Fix checking of the return value of
3581 FT_Load_Char. Fix setting font->underline_thickness.
3582
e173bbce
CY
35832009-04-04 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3586 (Fterminal_parameters, Fterminal_parameter)
3587 (Fset_terminal_parameter): In doc string, refer to terminal
3588 objects rather than terminal ids.
3589
693a2698
EZ
35902009-04-04 Eli Zaretskii <eliz@gnu.org>
3591
3592 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3593 ret_lim_data. (Bug#2867)
3594
d5221487
CY
35952009-04-03 Chong Yidong <cyd@stupidchicken.com>
3596
3597 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3598 so they don't get wider than the window, matching 2006-01-23
3599 change to the partner function in xdisp.c (Bug#2800).
3600
223509a3
KH
36012009-04-03 Kenichi Handa <handa@m17n.org>
3602
3603 * print.c (print_object): Make each lowest sub_char_table start a
3604 new line (Bug#2866).
3605
74fcd0b1
KH
36062009-04-02 Kenichi Handa <handa@m17n.org>
3607
3608 * fontset.c (fontset_font): Record no-font when a fontset
3609 explicitly tells not to try another font-specs.
3610
c542407d
SM
36112009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3612
3613 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3614
e3869731
KH
36152009-03-30 Kenichi Handa <handa@m17n.org>
3616
d8d2f142
KH
3617 * fontset.c (fontset_from_font): Specify only registry in a
3618 font-spec for all characters supported by that registry.
3619
e3869731
KH
3620 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3621 even if HAVE_M17N_FLT is not defined.
3622
5da5f805
CY
36232009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3624
3625 * ftfont.c: Conditionalize prototyping and use of
3626 ftfont_variation_glyphs.
3627
ab226c50
SM
36282009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3629
9628fed7
SM
3630 * frame.c (delete_frame): Work around compiler bug.
3631
3632 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3633 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3634 Some more EMACS_INT.
3635 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3636
3637 * xdisp.c (dump_glyph): Fix typo.
3638
ae19ba7c
SM
3639 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3640 (adjust_markers_gap_motion, adjust_markers_for_delete)
3641 (adjust_markers_for_insert, adjust_point)
3642 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3643 (make_gap, copy_text, count_size_as_multibyte, insert)
3644 (insert_and_inherit, insert_before_markers)
3645 (insert_before_markers_and_inherit, insert_1)
3646 (count_combining_before, count_combining_after, insert_1_both)
3647 (insert_from_string, insert_from_string_before_markers)
3648 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3649 (insert_from_buffer_1, adjust_after_replace)
3650 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3651 (replace_range_2, del_range, del_range_1, del_range_byte)
3652 (del_range_both, del_range_2, modify_region)
3653 (prepare_to_modify_buffer, signal_before_change)
3654 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3655 for buffer positions and sizes.
3656 * lisp.h: Adjust prototypes accordingly.
3657
3658 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3659 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3660 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3661
ab226c50
SM
3662 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3663
46dfb8fb
JD
36642009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3665
3666 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3667 lines and columns so we keep the same pixel height and width.
3668
3669 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3670 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3671 (x_handle_net_wm_state): New function to update frame parameter
3672 fullscreen.
3673 (x_term_init): Initialize atoms for _NET_WM_STATE.
3674
3675 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3676
d347e494
SM
36772009-03-27 Kevin Ryde <user42@zip.com.au>
3678
3679 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3680 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3681 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3682 (Fgpm_mouse_stop): Pass that new parameter.
3683 * termhooks.h (close_gpm): Adjust prototype.
3684
84db11d6
SM
36852009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3686
c95a5008
SM
3687 * lisp.h (Fx_focus_frame): Declare.
3688
84db11d6
SM
3689 * callint.c (Fcall_interactively): For '^' just delegate the work to
3690 handle-shift-selection.
3691 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3692
0a1958d6
CY
36932009-03-24 Chong Yidong <cyd@stupidchicken.com>
3694
0bfdff23
CY
3695 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3696
0a1958d6
CY
3697 * data.c (Qinteractive_form): New variable.
3698 (Finteractive_form): Use it.
3699
3700 * eval.c (Fcommandp): Use Qinteractive_form.
3701
58aec0d6
JR
37022009-03-24 Jason Rumney <jasonr@gnu.org>
3703
3704 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3705 Calculate total size precisely. Decode environment variables
3706 before substituting. (Bug#38)
3707
553dd618
KH
37082009-03-24 Kenichi Handa <handa@m17n.org>
3709
3710 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3711 encoding (Bug#2722).
553dd618 3712
c39ea606
JD
37132009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3714
3715 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3716 that gdpy is set.
3717
bc9b2b5e
AM
37182009-03-22 Alan Mackenzie <acm@muc.de>
3719
3720 * callint.c (Finteractive): Clarify the doc string - even
3721 promptless elements need \n separators.
3722
9f995a76
JR
37232009-03-22 Jason Rumney <jasonr@gnu.org>
3724
3725 * w32term.c (syms_of_w32term): Doc fix for
3726 x-use-underline-position-properties.
3727
22749e9a
EZ
37282009-03-21 Eli Zaretskii <eliz@gnu.org>
3729
3730 * w32.c (getpwuid): Change argument type to unsigned.
3731 (struct w32_id): Change type of `rid' member to unsigned.
3732 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3733 argument ID to unsigned. All callers changed.
3734 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3735
e00553bf
EZ
37362009-03-20 Eli Zaretskii <eliz@gnu.org>
3737
3738 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3739 negative, produce a float value.
3740
3741 * dired.c (make_uid, make_gid): New functions.
3742 (Ffile_attributes): Use them to avoid negative UID and GID.
3743
f761d6b6
JB
37442009-03-20 Juanma Barranquero <lekktu@gmail.com>
3745
3746 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3747 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3748 Fix typos in docstrings.
3749
d507f8d7
KH
37502009-03-19 Kenichi Handa <handa@m17n.org>
3751
3752 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3753 changed, use font_load_for_lface to get a new font object.
3754 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3755
3756 * frame.c (x_set_font): Handle the case that ARG is a cons.
3757
c68845e0
GM
37582009-03-19 Glenn Morris <rgm@gnu.org>
3759
3760 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3761
bfa49dd1
CY
37622009-03-19 Chong Yidong <cyd@stupidchicken.com>
3763
3764 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3765
8458d4c1
KH
37662009-03-19 Kenichi Handa <handa@m17n.org>
3767
3768 * charset.c (load_charset_map_from_file): When a mapfile can't be
3769 loaded, signal an error.
3770
78e7d1fe
EZ
37712009-03-18 Eli Zaretskii <eliz@gnu.org>
3772
3773 * dired.c (Ffile_attributes): Make sure UID and GID are always
3774 positive, even if the value is too large for a positive EMACS_INT.
3775 Doc fix.
3776
3777 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3778
5da9fdfa
YM
37792009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3780
3781 * xmenu.c (xdialog_show): Move Fredisplay call ...
3782 (Fx_popup_dialog): ... here.
3783
7519c40d
SM
37842009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3785
3786 * dired.c (file_name_completion): Disable the first optimization just
3787 installed, since it is not implemented correctly.
3788
2cd298e2
SM
37892009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3790
3791 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3792 only if the entry can affect bestmatch.
2cd298e2
SM
3793 Stop the search early, as Ftry_completion already does.
3794
48d37adf
CY
37952009-03-17 Chong Yidong <cyd@stupidchicken.com>
3796
e10c9c93 3797 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3798
9286b16a
CY
37992009-03-15 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * keyboard.c (parse_menu_item): Don't display remappings as menu
3802 equivalent bindings (Bug#788).
3803
f7b146dc
JR
38042009-03-15 Jason Rumney <jasonr@gnu.org>
3805
3806 * w32term.h (WM_EMACS_PAINT): New message.
3807 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3808 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3809 before passing to lisp thread. (Bug#950)
3810
f761d6b6 38112009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3812
d93f9575
CY
3813 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3814 variable as it was never reset.
3815 (ns_term_init): Remove initialization of Lisp-settable defaults
3816 and ns_expand_space.
3817 (-setPanelFromDefaultValues): Remove ns_expand_space.
3818 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3819 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3820 i.e. no additional spacing, similar to Carbon port.
3821
d93f9575
CY
3822 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3823 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3824
305018ec
JD
38252009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3826
3827 * sound.c (alsa_configure): Remove call to deprecated
3828 snd_pcm_sw_params_set_xfer_align.
3829
f761d6b6 38302009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3831
3832 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3833 after clicking in a detached tool bar.
3834 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3835
46e722a9
SM
38362009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3837
348db3dd
SM
3838 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3839 int/Lisp_Object mixup).
46e722a9 3840
a3d16f39
KH
38412009-03-13 Kenichi Handa <handa@m17n.org>
3842
3843 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3844 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3845 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3846 (set_fontset_font): Change ARG to a vector. Handle range_list in
3847 ARG correctly.
3848 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3849 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3850 the above change.
3851 (fontset_from_font): Fix previous change.
fe24f56a 3852 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3853 entry. If FONTSET is the default fontset, don't set the extra
3854 slot of the returning char-table.
3855
b066e6b6
JB
38562009-03-12 Juanma Barranquero <lekktu@gmail.com>
3857
3858 * nsfns.m (Fx_close_connection): Doc fix.
3859 (Fns_do_applescript): Reflow docstring.
3860 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3861 (Fx_display_pixel_width, Fx_display_pixel_height)
3862 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3863 Fix typos in docstrings.
3864 (Fns_set_alpha): Fix typos in error messages.
3865
d472514e 38662009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3867
d472514e 3868 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3869 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3870 were used for such events.
3871
d472514e
JB
3872 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3873 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3874
d472514e 3875 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3876 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3877
fb930676
KH
38782009-03-11 Kenichi Handa <handa@m17n.org>
3879
ff85581a
KH
3880 * font.h (font_open_by_spec): Extern it.
3881
c50b7e98
KH
3882 * font.c (font_open_by_spec): New function.
3883 (font_open_by_name): Use font_open_by_spec.
3884
fb930676
KH
3885 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3886 fontset of the frame.
3887
3888 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3889 modify the default font of frames that use this fontset.
3890 (num_auto_fontsets): New variable.
3891 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3892 name. Be sure to set FONTSET_ASCII to the correct font name.
3893 (update_auto_fontset_alist): New function.
3894
df4e8455
JB
38952009-03-11 Juanma Barranquero <lekktu@gmail.com>
3896
3897 * makefile.w32-in: Update dependencies.
3898
0a375797
AR
38992009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3900
3901 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3902
61313fa3
SM
39032009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3904
3905 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3906
b55103fb
CY
39072009-03-10 Chong Yidong <cyd@stupidchicken.com>
3908
3909 * lread.c (Feval_buffer): Doc fix.
3910
dde2559c
KH
39112009-03-09 Kenichi Handa <handa@m17n.org>
3912
3913 * charset.c (Qfile_name_handler_alist): Extern it.
3914 (load_charset_map_from_file): Temporarily bind
3915 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3916
df4e8455 39172009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3918
47f588bb
GM
3919 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3920 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3921
4ddf94bd
AR
39222009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3923
4c9bdfc2
AR
3924 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3925 (x_set_window_size): Change back to calculated method of setting
3926 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3927 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3928 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3929
fe41ae9e
AR
3930 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3931
4c9bdfc2
AR
3932 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3933 accelerator in parens under GNUstep.
3934
825d0875
KH
39352009-03-06 Kenichi Handa <handa@m17n.org>
3936
3937 These changes are to detect incorrect composition sequence without
f3b3be74 3938 looking ahead the source. (Bug#2370)
825d0875
KH
3939
3940 * coding.h: Include "composite.h".
3941 (enum compisition_state): New enum.
3942 (struct compisition_status): New struct.
3943 (struct iso_2022_spec): New member cmp_status.
3944 (struct emacs_mule_spec): New struct.
3945 (struct coding_system): New members ctext_extended_segment_len and
3946 embedded_utf_8. Change the union member
3947 spec.emacs_mule_full_support to spec.emacs_mule.
3948
3949 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3950 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3951 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3952 (ADD_COMPOSITION_DATA): New arg nbytes.
3953 (emacs_mule_char): New arg cmp_status.
3954 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3955 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3956 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3957 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3958 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3959 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3960 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3961 (EMACS_MULE_COMPOSITION_END): New macro.
3962 (emacs_mule_finish_composition): New function.
3963 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3964 (decode_coding_emacs_mule): Avoid long looking ahead while
3965 handling composition.
3966 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3967 (ENCODE_COMPOSITION_RULE): New macro.
3968 (finish_composition): New function.
3969 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3970 (DECODE_COMPOSITION_START): New implementation.
3971 (DECODE_COMPOSITION_END): Likewise.
3972 (STORE_COMPOSITION_RULE): New macro.
3973 (decode_coding_iso_2022): Avoid long looking ahead while handling
3974 composition, CTEXT extended segment, and embedded UTF-8.
3975 (setup_coding_system): For a coding of type iso-2022, reset
3976 CODING_ISO_EXTSEGMENT_LEN (coding) and
3977 CODING_ISO_EMBEDDED_UTF_8 (coding).
3978 (get_translation): Delete arguments last_block, from_nchars,
3979 to_nchars. Callers changed.
3980 (produce_chars): Don't modify charbuf. Adjusted for the change of
3981 get_translation.
98a326f7 3982 (produce_composition): Adjust for the new annotation sequence.
825d0875 3983 (handle_composition_annotation): Likewise.
98a326f7 3984 (consume_chars): Adjust for the change of get_translation.
825d0875 3985
ccbc4452
AR
39862009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3987
4ddf94bd 3988 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3989
988a7ddb
KH
39902009-03-05 Kenichi Handa <handa@m17n.org>
3991
3992 * font.c (font_select_entity): New function.
3993 (font_find_for_lface): Use font_select_entity to select a font.
3994
3995 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3996 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3997 font with C restriction.
3998
98a326f7 39992009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4000
be1bce46 4001 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4002
10ea2b82
JR
40032009-03-04 Jason Rumney <jasonr@gnu.org>
4004
2c93b248 4005 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4006 characters that have already been read. (Bug#2569)
2c93b248 4007
10ea2b82
JR
4008 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4009 Log an error message if check_image_size failed.
4010 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4011 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4012
71a0c011
EZ
40132009-03-02 Eli Zaretskii <eliz@gnu.org>
4014
4015 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4016 when decoding process output.
4017
2f63bba8
RS
40182009-03-01 Richard M Stallman <rms@gnu.org>
4019
4020 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4021
4022 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4023
0a9564cb
EZ
40242009-02-28 Eli Zaretskii <eliz@gnu.org>
4025
4026 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4027 (decode_coding_emacs_mule, decode_coding_iso_2022)
4028 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4029 (decode_coding_raw_text, decode_coding_charset)
4030 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4031 Honor inhibit-eol-conversion. (Bug #2186)
4032
449148b3
JR
40332009-02-28 Jason Rumney <jasonr@gnu.org>
4034
4035 * coding.c (detect_coding_charset): If not checking latin extra,
4036 fail on characters between 0x80 and 0xA0. (Bug#2354)
4037
a4aee864
EZ
40382009-02-28 Eli Zaretskii <eliz@gnu.org>
4039
4040 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4041 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4042
d88bee5a
GM
40432009-02-27 Glenn Morris <rgm@gnu.org>
4044
4045 * callint.c (Finteractive): Doc fix.
4046
a808f22d
KH
40472009-02-27 Kenichi Handa <handa@m17n.org>
4048
4049 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4050
caf8d60c
CY
40512009-02-27 Chong Yidong <cyd@stupidchicken.com>
4052
4053 * font.c (font_style_to_value): Set value for unknown symbols to
4054 100 instead of 255.
b61137ea
CY
4055 (weight_table, slant_table, width_table): Treat "unspecified" as
4056 the default value.
caf8d60c 4057
1a0de25c
JB
40582009-02-26 Juanma Barranquero <lekktu@gmail.com>
4059
4060 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4061
8fc45744
JB
40622009-02-25 Juanma Barranquero <lekktu@gmail.com>
4063
107bd7d1
JB
4064 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4065 error as soon as a recursive load is detected.
8fc45744 4066
f097e223
AR
40672009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4068
4069 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4070 before caching.
4071
8810a12f
KH
40722009-02-24 Kenichi Handa <handa@m17n.org>
4073
4074 * fontset.c (fontset_find_font): Fix the condition for checking
4075 unavailable font.
4076
2c7d1565
GM
40772009-02-24 Glenn Morris <rgm@gnu.org>
4078
4079 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4080 whitespace that confuses documentation.
4081
a20878b6
MB
40822009-02-23 Miles Bader <miles@gnu.org>
4083
4084 * process.c (Flist_system_processes, Fprocess_attributes)
4085 (syms_of_process): Rename `system-process-attributes' to
4086 `process-attributes'.
4087
b3b58c01
AS
40882009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4089
1b3b981b
AS
4090 * coding.h (struct coding_system): Make safe_charsets a pointer to
4091 unsigned char.
4092 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4093 being 255.
4094 (SAFE_CHARSET_P): Likewise.
4095 (setup_iso_safe_charsets): Properly setup safe_charsets.
4096 (Fdefine_coding_system_internal): Likewise.
4097 (setup_coding_system): Likewise. Remove unneeded casts.
4098 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4099 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4100 unneeded casts.
4101
b3b58c01
AS
4102 * insdel.c (del_range_2): Don't modify gap contents when called
4103 from decode_coding_object. (Bug#1809)
4104
0b6f228c
CY
41052009-02-21 Chong Yidong <cyd@stupidchicken.com>
4106
4107 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4108 Qfont_object.
4109 (Ftype_of): Recognize font objects.
4110
4111 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4112
4113 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4114 moved to data.c.
4115
52f8870b
AR
41162009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4117
4118 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4119 async_iconified. Based on a patch by Christian Lynbech
4120 <christian.lynbech@tieto.com>.
4121 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4122
7087d5e9
GM
41232009-02-20 Glenn Morris <rgm@gnu.org>
4124
4125 * syntax.c (Fskip_chars_forward): Fix doc typo.
4126
41d2ceef
CY
41272009-02-20 Chong Yidong <cyd@stupidchicken.com>
4128
4129 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4130
1a3b7ca6
CY
41312009-02-19 Chong Yidong <cyd@stupidchicken.com>
4132
4133 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4134
73cce38d
KH
41352009-02-19 Kenichi Handa <handa@m17n.org>
4136
4137 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4138 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4139
a51092ee
DN
41402009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4141
4142 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4143
c423ecca
KH
41442009-02-18 Kenichi Handa <handa@m17n.org>
4145
4146 * font.c (font_check_otf_features): Fix handling of `nil' element.
4147 (Ffont_spec): Describe :lang and :otf in the docstring.
4148
4c1958f4
AS
41492009-02-16 Andreas Schwab <schwab@suse.de>
4150
4151 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4152 string.
4153
5704f39a
KH
41542009-02-16 Kenichi Handa <handa@m17n.org>
4155
4156 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4157 (Bug#1723)
5704f39a 4158
8f0085aa
CY
41592009-02-14 Chong Yidong <cyd@stupidchicken.com>
4160
a057d86a 4161 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4162
4163 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4164 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4165
aff01dd9
EZ
41662009-02-14 Eli Zaretskii <eliz@gnu.org>
4167
4168 * msdos.c (MAX_SCREEN_BUF): New macro.
4169 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4170 Encode the entire run of glyphs sharing the same face, instead of
4171 doing that one glyph at a time (fixes a bug with displaying
4172 double-size characters).
4173
ba301db3
AR
41742009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4175
4176 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4177
4178 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4179 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4180 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4181
4182 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4183 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4184
51d861de
SM
41852009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4186
ac146f82 4187 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4188 invisible areas.
4189
7fed8996
JR
41902009-02-12 Jason Rumney <jasonr@gnu.org>
4191
631ea4fb
JR
4192 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4193 (add_font_entity_to_list): Call check_face_name even when family
4194 is unspecified.
4195
cb4a3e42
JR
4196 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4197 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4198 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4199
7fed8996 4200 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4201 raster fonts. (Bug#2219)
7fed8996 4202
895416e3
KH
42032009-02-12 Kenichi Handa <handa@m17n.org>
4204
4205 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4206 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4207 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4208 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4209 (find_automatic_composition): While looking forward and backward,
4210 check static composition. Fix where to stop looking forward.
4211 (composition_adjust_point): Fix checking of static composition.
4212 (Fcomposition_get_gstring): Pay attention to
1dacf998 4213 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4214
4215 * lisp.h (fast_looking_at): Extern it.
4216
4217 * search.c (fast_looking_at): New function.
4218
51d861de 4219 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4220 <struct glyph>.u.cmp.to.
4221 (append_composite_glyph): Likewise.
4222
51d861de 4223 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4224 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4225 composition.
51d861de 4226 (append_composite_glyph): Adjust for the change of
895416e3
KH
4227 <strcut glyph>.u.cmp.to.
4228
8510724d
JB
42292009-02-11 Juanma Barranquero <lekktu@gmail.com>
4230
4231 * casetab.c (init_casetab_once):
4232 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4233 * font.c (font_update_lface):
4234 * fontset.c (Fnew_fontset):
4235 * ftfont.c (ftfont_drive_otf):
4236 * xfont.c (xfont_open):
4237 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4238
294fa707
SM
42392009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4240
4241 * fileio.c (Fwrite_region): !NILP -> CONSP.
4242
b5bfebec
AS
42432009-02-10 Andreas Schwab <schwab@suse.de>
4244
4245 * process.c (send_process): Properly relocate pointer into data
adab88bd 4246 when using encoded data. (Bug#2272)
b5bfebec 4247
cb84a2be
KH
42482009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4249
4250 * coding.c (detect_coding_charset): Fix previous change.
4251
89e09428
JR
42522009-02-08 Jason Rumney <jasonr@gnu.org>
4253
4254 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4255 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4256
4470a277
AS
42572009-02-07 Andreas Schwab <schwab@suse.de>
4258
4259 * unexelf.c (unexec): Fix error message.
4260
3175b12a
AR
42612009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4262
4263 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4264 when modal window is active. (Bug #2152)
3175b12a
AR
4265 (applicationShouldTerminate:): Remove now-unneeded while loop
4266 around NSRunAlertPanel.
4267
4268 * nsmenu.m (popupSession): New file-global variable.
4269 (pop_down_menu): End the popupSession before closing dialog.
4270 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4271 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4272 don't query NSApp for events (just sleep instead).
4273
8434d0b8
EZ
42742009-02-07 Eli Zaretskii <eliz@gnu.org>
4275
51d861de
SM
4276 * coding.c (syms_of_coding) <translation-table-for-input>:
4277 Modify doc string to discourage use for character code unification.
8434d0b8 4278
aa82edfd
CY
42792009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4280
4281 * atimer.c (run_timers): Update pending_atimers.
4282
2d283c7c
CY
42832009-02-06 Chong Yidong <cyd@stupidchicken.com>
4284
eb306cab
CY
4285 * image.c (svg_load_image): Fix last change.
4286
2d283c7c
CY
4287 * xfns.c (Fx_create_frame): Signal an error if no font is
4288 found (Bug#2147).
4289
4d8e170e
JB
42902009-02-05 Juanma Barranquero <lekktu@gmail.com>
4291
4292 * character.c (syms_of_character) <script-representative-chars>:
4293 Fix typo in docstring.
4294
c96169a0
AR
42952009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4296
4297 * nsmenu.m (pop_down_menu): New function.
4298 (ns_popup_dialog): Call it on unwind.
4299 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4300 call timer_check() (Bug#2154).
4301 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4302 handling_signal is set.
4303 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4304
31fd7c5c 4305 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4306
4307 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4308
4309 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4310
51d861de
SM
4311 * keyboard.c (poll_for_input_1, handle_async_input):
4312 Set handling_signal under HAVE_NS.
c96169a0 4313
aacd8ba1
GM
43142009-02-04 Glenn Morris <rgm@gnu.org>
4315
4316 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4317
4cb75c4b
KH
43182009-02-04 Kenichi Handa <handa@m17n.org>
4319
4320 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4321
4322 * charset.c (Fchar_charset): New optional arg restriction.
4323
4324 * coding.h (coding_system_charset_list): Extern it.
4325
4326 * coding.c (coding_system_charset_list): New function.
4327
4328 * composite.c: Include coding.h and termhooks.h.
4329 (composition_gstring_p): Fix for the terminal case.
4330 (composition_gstring_width): Likewise.
4331 (fill_gstring_body): Likewise.
4332 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4333 the frame.
4334 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4335 is within a composition.
867d4bb3 4336 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4337
4338 * term.c (encode_terminal_code): Fix handling of composition.
4339 (produce_composite_glyph): For static composition, get pixel_width
4340 from struct composition.
4341
826ba17e
AS
43422009-02-02 Andreas Schwab <schwab@suse.de>
4343
4344 * unexelf.c (unexec): Handle unaligned bss offset.
4345
8ad093db
AR
43462009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4347
4348 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4349 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4350
8ad093db
AR
4351 * keyboard.c (handle_interrupt): Don't call
4352 quit_throw_to_read_char() under NS.
d0a76a6e 4353
8ad093db
AR
4354 * blockinput.h: Remove NS-specific code.
4355
4d18a7a2
DN
43562009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4357
db878925
DN
4358 * dispnew.c (window_change_signal): Don't try to get the size of a
4359 suspended tty frame.
4360 * term.c (Fresume_tty): Resize if the size has changed while the
4361 tty was suspended.
4362
4d18a7a2
DN
4363 * alloc.c (mark_stack): Properly conditionalize previous change.
4364
8984df7c
JB
43652009-01-30 Juanma Barranquero <lekktu@gmail.com>
4366
4367 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4368 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4369 Remove; this code is not used on Windows.
4370
75f4f1ac
EZ
43712009-01-30 Eli Zaretskii <eliz@gnu.org>
4372
4373 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4374 EOLs that also has stray ^M characters.
4375
07a1e794
JB
43762009-01-30 Juanma Barranquero <lekktu@gmail.com>
4377
4378 * atimer.c (run_timers, alarm_signal_handler):
4379 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4380 * w32inevt.c (w32_console_read_socket):
4381 * w32term.c (w32_read_socket):
4382 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4383
a8b11cc9
CY
43842009-01-30 Chong Yidong <cyd@stupidchicken.com>
4385
4386 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4387 Initialize it as a relative filename pattern.
4388 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4389 (Fcall_process_region): Simplify temp file creation using
4390 temporary-file-directory.
4391
c279587b
EZ
43922009-01-29 Eli Zaretskii <eliz@gnu.org>
4393
4394 * msdos.c: Rename pending_signals to msdos_pending_signals.
4395 (sig_suspender, sigprocmask): Adjust.
4396
a8fe3242
CY
43972009-01-29 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * keyboard.c (pending_signals): New var.
4400 (poll_for_input, input_available_signal, init_keyboard): Set it.
4401 (process_pending_signals): New function.
4402
4403 * lisp.h (QUIT): Check pending_signals instead of
4404 interrupt_input_pending. Use process_pending_signals.
4405
51d861de 4406 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4407
51d861de 4408 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4409
4410 * sysdep.c (emacs_write): Use process_pending_signals.
4411
4412 * xterm.c (XTread_socket): Update pending_signals.
4413
4414 * w32term.c (w32_read_socket): Update pending_signals.
4415
4416 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4417
6570a1c4
KH
44182009-01-29 Kenichi Handa <handa@m17n.org>
4419
4420 * xftfont.c (xftfont_has_char): New function.
4421 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4422
d72a4afa
AR
44232009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4424
4425 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4426 under GNUstep.
4427 (ns_query_color): New declaration.
4428
4429 * nsterm.m (ns_confirm_quit): New variable.
4430 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4431 (EmacsApp-applicationShouldTerminate:): Use it.
4432 (EmacsPrefsController): Let user set it.
4433 (ns_query_color): New function.
4434 (ns_defined_color): Use it.
4435 (ns_initialize): Drop.
4436 (ns_term_init): Add two lines from ns_initialize(), and set
4437 input_interrupt_mode to nil.
4438
4439 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4440 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4441
9fe78804
KH
44422009-01-28 Kenichi Handa <handa@m17n.org>
4443
4444 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4445 (fontset_get_font_group): Remember that no font-group is specified
4446 for C.
9fe78804 4447
fa57de36
CY
44482009-01-27 Chong Yidong <cyd@stupidchicken.com>
4449
930600e9
CY
4450 * fns.c (concat): Check for string overflow (bug#1787).
4451
fa57de36
CY
4452 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4453 Quadruple undo limits (bug#1501).
4454
7179ce7b
KH
44552009-01-27 Kenichi Handa <handa@m17n.org>
4456
4457 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4458 directly use GT_Get_Char_index.
4459
4460 * xftfont.c (struct xftfont_info): New member `index'.
4461
4462 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4463 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4464
5be8fcc0
CY
44652009-01-26 Kenichi Handa <handa@m17n.org>
4466
4467 * fontset.c (fontset_find_font): Fix handling of non-cons return
4468 value of fontset_get_font_group.
4469 (fontset_font): Revert last change.
4470
19ae3e61
JR
44712009-01-26 Jason Rumney <jasonr@gnu.org>
4472
4473 * w32font.c (w32font_list_internal): Return quickly if registry is
4474 unknown. Simplify final return.
4475 (add_font_entity_to_list): Break complex logic down into more
4476 manageable chunks. Move unknown registry check to
4477 w32font_list_internal.
4478
8612b71a
AR
44792009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4480
4481 Changes to remove Feval calls from GUI under NS.
4482
d8038940
JB
4483 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4484 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4485 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4486
4487 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4488 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4489 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4490 instead of NON_ASCII_KEYSTROKE_EVENT.
4491 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4492 (EmacsApp-applicationShouldTerminate:): Query user.
4493 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4494 instead of Feval.
4495
4496 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4497
4498 * keyboard.c (kbd_buffer_get_event): Check for it.
4499 (keys_of_keyboard): Define lispy keys for
4500 ns-put/unput-working-text.
4501
4502 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4503 versions.
4504 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4505
6288ae55
CY
45062009-01-25 Chong Yidong <cyd@stupidchicken.com>
4507
4508 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4509 setting current_buffer directly. (Bug#2044)
6288ae55 4510
289e7f8f
CY
45112009-01-24 Chong Yidong <cyd@stupidchicken.com>
4512
5ce87308 4513 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4514 any work. (Bug#1952, bug#1990).
5ce87308 4515
64cc3cf6 4516 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4517
b3243e6f
AR
45182009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4519
4520 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4521 (ns_no_defaults): New declaration.
4522 (main): Use it.
e0d2e69a 4523
d900b2af 4524 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4525
d900b2af 4526 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4527
d900b2af
AR
4528 * nsterm.m (ns_no_defaults): New variable.
4529 (ns_initialize): Don't read defaults when ns_no_defaults.
4530 (EmacsView-readSelectionFromPasteboard:)
4531 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4532 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4533 (ns_dumpglyphs_stretch): New function.
4534 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4535 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4536
e0d2e69a
AR
4537 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4538
3ac71f5d
CY
45392009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4540
4541 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4542 call for Sparc64.
4543
3fe53a83
AR
45442009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4545
4546 * nsfns.m:
4547 * nsgui.h:
4548 * nsmenu.m:
4549 * nsselect.m:
4550 * nsterm.h:
4551 * nsterm.m: Remove '23' comments that indicated code added during
4552 update from emacs-20 -> emacs-23.
4553
10f87c6f 45542009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4555
4556 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4557 ns_alternate_modifier. (Bug#1217)
a3b53a85 4558
c7cef62d
AR
4559 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4560 Display all shortcuts, including those w/o super modifier.
4561
575fb8bd
AR
4562 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4563
918b848b
CY
45642009-01-22 Chong Yidong <cyd@stupidchicken.com>
4565
4566 * fileio.c (Vwrite_region_post_annotation_function)
4567 (Vwrite_region_annotation_buffers): New vars.
4568 (build_annotations_unwind): Just reset
4569 Vwrite_region_annotation_buffers.
4570 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4571 Call write-region-post-annotation-function.
4572 (build_annotations): Add to Vwrite_region_annotation_buffers if
4573 buffer changes.
4574
a39e2539
AR
45752009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4576
4577 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4578 Tiger.
51d861de
SM
4579 * nsfns.m (ns_do_applescript):
4580 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4581
35ed44db
AR
45822009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4583
4584 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4585
cbe0b5bf
AR
45862009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4587
4588 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4589
6049d3a0
AR
4590 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4591
4592 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4593 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4594 handle Ctrl-tab. (Bug#1841)
4595 (ns_get_color): Use unsigned long long for scanned hex string value.
4596 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4597 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4598 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4599 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4600 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4601 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4602 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4603
d3810c21 4604 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4605 DPI. (Bug#1316)
d3810c21
AR
4606 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4607 values in onTiger section.
4c7077c3 4608
e301e634
CY
46092009-01-19 Chong Yidong <cyd@stupidchicken.com>
4610
7f82490b
CY
4611 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4612 Check return value of font_spec_from_name.
64cc3cf6 4613 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4614
4615 * font.c (font_spec_from_name): Return Qnil if font name could not
4616 be parsed.
4617 (font_parse_name): Treat a `?' character as part of an XLFD.
4618
e301e634
CY
4619 * fns.c (Fsubstring): Doc fix.
4620
1c0db158
KH
46212009-01-19 Kenichi Handa <handa@m17n.org>
4622
51d861de 4623 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4624 (ftfont_list): Likewise.
4625
acf20901
JB
46262009-01-18 Juanma Barranquero <lekktu@gmail.com>
4627
fff4e459
JB
4628 * dbusbind.c (Fdbus_register_signal):
4629 * process.c (conv_sockaddr_to_lisp):
4630 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4631
acf20901
JB
4632 * callproc.c (Fgetenv_internal): Doc fix.
4633
e7abcdfb
CY
46342009-01-16 Chong Yidong <cyd@stupidchicken.com>
4635
4636 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4637 it is not even used.
4638
b60861e6
GM
46392009-01-16 Glenn Morris <rgm@gnu.org>
4640
4641 * font.c (Ffont_variation_glyphs): Silence compiler.
4642
8db52afe
JB
46432009-01-15 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4646 Reported by David Robinow <drobinow@gmail.com>.
4647
4cddb209
KH
46482009-01-15 Kenichi Handa <handa@m17n.org>
4649
51d861de 4650 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4651
f247f67b
JR
46522009-01-14 Jason Rumney <jasonr@gnu.org>
4653
4654 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4655 never a fontset. (Bug#1562)
f247f67b 4656
f56a4450
KH
46572009-01-14 Kenichi Handa <handa@m17n.org>
4658
4659 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4660 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4661
4e99855e
CY
46622009-01-13 Chong Yidong <cyd@stupidchicken.com>
4663
4664 * font.c (font_clear_prop): If clearing the family, clear the font
4665 width index too.
4666
fff4e459 4667 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4668
24f01470
JB
46692009-01-12 Juanma Barranquero <lekktu@gmail.com>
4670
4671 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4672 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4673 functions, use sizeof.
4674
a41240a3
MR
46752009-01-12 Martin Rudalics <rudalics@gmx.at>
4676
4677 * keyboard.c (read_char): Fix case where last_nonmenu_event
4678 returned a bad value with submenus. (Bug#447)
4679
944636b8
CY
46802009-01-12 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4683 family, clear the font width index too.
4684
0dad7c6f
JR
46852009-01-11 Jason Rumney <jasonr@gnu.org>
4686
4687 * keyboard.c (cmd_error_internal): Exit when errors occur before
4688 frame creation and not in daemon mode. (Bug#1836)
4689
7c2363af
CY
46902009-01-10 Chong Yidong <cyd@stupidchicken.com>
4691
4692 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4693 of a display vector, backtrack.
4694 (try_window_reusing_current_matrix): Check glyph type before
4695 referencing charpos member.
4696
97b1b294
EZ
46972009-01-10 Eli Zaretskii <eliz@gnu.org>
4698
4699 Fix Bug #876:
4700
4701 * coding.c (inhibit_null_byte_detection): New variable.
4702 (detect_coding, detect_coding_system): Don't pay attention to null
4703 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4704 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4705 <inhibit-iso-escape-detection>: Doc fix.
4706
4624b6e3
JR
47072009-01-09 Jason Rumney <jasonr@gnu.org>
4708
4709 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4710 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4711 Only report Unicode Plane 2 fonts as unicode-sip.
4712
323b840c
CY
47132009-01-09 Chong Yidong <cyd@stupidchicken.com>
4714
51d861de
SM
4715 * xfaces.c (Fx_font_family_list): Delete function.
4716 Move compatibility version to faces.el.
323b840c 4717
51d861de 4718 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4719
eba7400d
MR
47202009-01-09 Martin Rudalics <rudalics@gmx.at>
4721
4722 * frame.c (x_set_frame_parameters): Remember requested value for
4723 fullscreen before it's reset by the parameter handler.
4724
4b09796d
GM
47252009-01-09 Glenn Morris <rgm@gnu.org>
4726
4727 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4728 (last_command_event): ... and update all users.
4b09796d
GM
4729 (last_input_char): For clarity, rename to...
4730 (last_input_event): ... and update all users.
4731 (last-command-char, last-input-char): Move to subr.el as aliases.
4732 * cmds.c, commands.h: Update for last_command_char rename.
4733
14ccea62
CY
47342009-01-08 Chong Yidong <cyd@stupidchicken.com>
4735
51d861de 4736 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4737
5f004711
JR
47382009-01-08 Jason Rumney <jasonr@gnu.org>
4739
4740 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4741 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4742 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4743 Don't declare.
fff4e459 4744 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4745 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4746
b71f6f73
KH
47472009-01-07 Kenichi Handa <handa@m17n.org>
4748
50b06221 4749 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4750 remember the coding system used for decoding in
50b06221
KH
4751 coding_system (Bug#1039).
4752
b71f6f73 4753 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4754 breaking the loop. (Bug#870)
b71f6f73
KH
4755 (decode_coding_utf_16, decode_coding_emacs_mule)
4756 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4757 (decode_coding_charset): Likewise.
4758
56f668f7
MR
47592009-01-05 Martin Rudalics <rudalics@gmx.at>
4760
4761 * frame.c (x_set_frame_parameters): Make sure height (width) get
4762 applied when fullwidth (fullheight) is set. (Bug#1522)
4763
5da9424d
JB
47642009-01-04 Juanma Barranquero <lekktu@gmail.com>
4765
4766 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4767 (utc_base): Declare as ULONGLONG, not long double.
4768 (convert_time_raw): Delete.
4769 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4770 (initialize_utc_base): New function.
4771 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4772 (convert_from_time_t): Use initialize_utc_base; compute result with
4773 64-bit arithmetic.
4774 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4775
c4605e09
EZ
47762009-01-03 Eli Zaretskii <eliz@gnu.org>
4777
9acef61c 4778 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4779 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4780 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4781 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4782 [!subprocesses]: Define.
4783 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4784 (Flist_system_processes, Fsystem_process_attributes)
4785 [!subprocesses]: Call list_system_processes and
4786 system_process_attributes instead of returning Qnil.
4787
9acef61c
JB
4788 * dosfns.c (system_process_attributes, list_system_processes):
4789 New functions.
c4605e09
EZ
4790
4791 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4792
4793 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4794 Don't use the default (no-op) implementation.
4795
8b7d0a16
JR
47962009-01-03 Jason Rumney <jasonr@gnu.org>
4797
a6d46bc1
JR
4798 * keyboard.c (parse_modifiers_uncached): Wheel events are
4799 clicks (bug#687).
4800
8b7d0a16
JR
4801 * w32term.c (x_query_colors, x_query_color): New functions.
4802
4803 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4804 (svg_load_image): Cast returned pointers from dynamically loaded
4805 functions. Eliminate W32 specific code.
4806
bfe11752
DN
48072009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4808
89e2438a
DN
4809 * nsfns.m (x_set_foreground_color, x_set_background_color)
4810 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4811 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4812 x_ prefix instead of ns_. Update references.
4813 (syms_of_nsfns): Add a FIXME comment.
4814
4815 * nsterm.m (x_set_cursor_type): New prototype.
4816 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4817
bfe11752
DN
4818 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4819 for Solaris instead of incorrectly providing Qutime and Qcutime.
4820
031da700
EZ
48212009-01-02 Eli Zaretskii <eliz@gnu.org>
4822
4823 * w32.c (process_times): Compute sum of utime and stime.
4824 (system_process_attributes): Add Qtime to the alist.
4825
4826 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4827 and add them to the alist.
4828
4829 * process.c (top level) <Qtime, Qctime>: New variables.
4830 (syms_of_process): staticpro them.
4831 (Fsystem_process_attributes): Add their documentation to the doc
4832 string.
4833
4834 * process.h: Declare Qtime and Qctime.
4835
df23bf08
JR
48362009-01-02 Jason Rumney <jasonr@gnu.org>
4837
9acef61c 4838 * image.c (Qgobject): New symbol.
df23bf08
JR
4839 (syms_of_image): Initialize it.
4840 (init_svg_functions): Load some functions from gobject library.
4841
5bbdf7aa
DN
48422009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4843
4844 * frame.c (make_terminal_frame): Remove redundant code and useless
4845 block.
4846
63136da6
AS
48472009-01-01 Andreas Schwab <schwab@suse.de>
4848
4849 * process.c (conv_sockaddr_to_lisp): Add workaround for
4850 getsockname bug on BSD.
4851
9ef69046
CY
48522009-01-01 Chong Yidong <cyd@stupidchicken.com>
4853
d6fafbe0
CY
4854 * xfns.c (x_create_tip_frame): Set border width of the X window.
4855
51d861de 4856 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4857
f9c34147
JR
48582009-01-01 Jason Rumney <jasonr@gnu.org>
4859
9acef61c 4860 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4861 Don't block input, as per earlier xterm.c changes.
4862
f5497e45
AR
48632008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4864
4865 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4866 (ns_appkit_version_int): New function.
4867 (x-server-version): Use ns_appkit_version_int and follow 21+
4868 convention of returning 3 integers.
4869
c19cab20
KH
48702008-12-30 Kenichi Handa <handa@m17n.org>
4871
4872 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4873 (CHAR_SURROGATE_PAIR_P): New macro.
4874
4875 * font.h (struct font_driver): New member get_variation_glyphs.
4876
9acef61c 4877 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4878 (Ffont_variation_glyphs): New function.
4879 (syms_of_font): Defsubr it.
4880
4881 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4882 ftfont_variation_glyphs.
4883 (setup_otf_gstring): New function.
4884 (ftfont_drive_otf): Use it.
4885 (ftfont_shape_by_flt): Handle variation selector.
4886 (ftfont_variation_glyphs): New function.
4887
28cd591f
MR
48882008-12-30 Martin Rudalics <rudalics@gmx.at>
4889
4890 * frame.c (Vemacs_iconified): Remove.
4891
7f714baf
JR
48922008-12-30 Jason Rumney <jasonr@gnu.org>
4893
4894 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4895 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4896
9d2d22ab
CY
48972008-12-30 Chong Yidong <cyd@stupidchicken.com>
4898
4899 * indent.c (Fvertical_motion): Don't advance iterator if we have
4900 reseated to the desired position.
4901
4902 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4903 checking for pos match.
4904
545312c2
KH
49052008-12-30 Kenichi Handa <handa@m17n.org>
4906
1ede3eb6
KH
4907 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4908 just get the low 8-bit of the code.
4909
545312c2
KH
4910 * font.c (font_intern_prop): Validate str as multibyte.
4911
bd7bbf29
DN
49122008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4913
31e0750e
DN
4914 * dispextern.h (struct face): Move lface and hash from the middle
4915 of bitfields.
4916
bd7bbf29
DN
4917 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4918
b5672e7c
DN
49192008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4920
4921 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4922 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4923 instead of intervals.h.
4924
d704470f
AS
49252008-12-26 Andreas Schwab <schwab@suse.de>
4926
4927 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4928 cons.
4929
54b33868
MR
49302008-12-26 Martin Rudalics <rudalics@gmx.at>
4931
4932 * textprop.c (Qminibuffer_prompt): New variable.
4933 (syms_of_textprop): Initialize it.
4934 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4935 in minibuffer-prompt face. (Bug#1662)
4936
40b615d6
JR
49372008-12-25 Jason Rumney <jasonr@gnu.org>
4938
4939 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4940
baae5c2d
JR
49412008-12-24 Jason Rumney <jasonr@gnu.org>
4942
4943 * ralloc.c (r_alloc_reset_variable): New function.
4944
4945 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4946 record of what points where. (Bug#716)
baae5c2d 4947
a9051c88
DN
49482008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4949
4950 * minibuf.c (read_minibuf): Follow the non-interactive case when
4951 running as a daemon, before detaching.
4952
8b146312
AS
49532008-12-22 Andreas Schwab <schwab@suse.de>
4954
4955 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4956 * gtkutil.c (free_widget_value): Use xfree instead of free.
4957
56f2de10
MR
49582008-12-22 Martin Rudalics <rudalics@gmx.at>
4959
4960 * frame.c (delete_frame): New function derived from
4961 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4962 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4963 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4964 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4965 * frame.h: Extern delete_frame.
4966 * window.c (window_loop):
4967 * terminal.c (delete_terminal):
4968 * xterm.c (x_connection_closed):
4969 * xfns.c (Fx_hide_tip):
9acef61c 4970 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4971
1fc200d6
JR
49722008-12-21 Jason Rumney <jasonr@gnu.org>
4973
4974 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4975 when character maps to .notdef character.
4976
5e252df2
SM
49772008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4978
4979 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4980
99b72cc4
JR
49812008-12-20 Jason Rumney <jasonr@gnu.org>
4982
4983 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4984 a graphical frame on Windows. (Bug#1325)
99b72cc4 4985
acc49a52
JD
49862008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4987
4988 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4989
6ea15123
CY
49902008-12-20 Chong Yidong <cyd@stupidchicken.com>
4991
4992 * minibuf.c (Fread_buffer): Doc fix.
4993
b2dab6c8
JR
49942008-12-20 Jason Rumney <jasonr@gnu.org>
4995
54ea0c87 4996 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4997 server name in UNC paths. (Bug#719)
54ea0c87 4998
b2dab6c8 4999 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5000 charbuf. (Bug#1035)
b2dab6c8 5001
6d1921be
DN
50022008-12-19 Daniel Engeler <engeler@gmail.com>
5003
5004 * sysdep.c (serial_configure): Fix typo.
5005
53934c98
DN
50062008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5007
5008 * sysdep.c: Include alloca.h.
f4f634e8
DN
5009 (system_process_attributes): Add implementation for Solaris.
5010
5011 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5012
06e111a6
DN
50132008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5014
5015 Reorganize implementation of Flist_system_processes and
5016 Fsystem_process_attributes. No functional changes.
5017 * process.c: Don't #include pwd.h, grp.h and limits.h.
5018 (Flist_system_processes): Just call list_system_processes.
5019 (Fsystem_process_attributes): Just call system_process_attributes.
5020 (procfs_list_system_processes, time_from_jiffies)
5021 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5022 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5023
5024 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5025 (list_system_processes): Rename from
5026 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5027 Provide a do nothing implementation.
5028 (system_process_attributes): Rename from
5029 procfs_list_system_processes.
5030 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5031 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5032
5033 * w32.c (list_system_processes): Rename from
5034 w32_list_system_processes.
5035 (system_process_attributes): Rename from
5036 w32_system_process_attributes.
5037
5038 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5039
5040 * process.h (w32_list_system_processes)
5041 (w32_system_process_attributes): Remove.
362654a6
JB
5042 (list_system_processes, system_process_attributes):
5043 New prototypes.
06e111a6 5044
6a705b23
KH
50452008-12-19 Kenichi Handa <handa@m17n.org>
5046
5047 * xfont.c (xfont_decode_coding_xlfd): New function.
5048 (xfont_encode_coding_xlfd): New function.
5049 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5050 (xfont_list): Decode and encode XLFD by iso-8859-1.
5051 (xfont_match): Likewise.
5052 (xfont_list_family): Likewise.
5053 (xfont_open): Likewise.
5054
d66c0241 5055 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5056 names are utf-8.
5057
d66c0241 5058 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5059 names are utf-8.
5060
5a130941
JD
50612008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5062
5063 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5064 changed.
bfd20325
JD
5065 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5066 clicked on a detached tool bar button.
5a130941 5067
fd95644b
DN
50682008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5069
5070 * emacs.c (main): Print and error and exit when no data is read
5071 from the pipe.
5072
e6eee6ae
JR
50732008-12-17 Jason Rumney <jasonr@gnu.org>
5074
5075 * w32font.c (w32font_has_char): Always return -1.
5076
a35dd56b
KH
50772008-12-16 Kenichi Handa <handa@m17n.org>
5078
5079 * font.c (font_open_entity): Fix previous change.
5080
0e3635c2
DN
50812008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5082
5083 * process.c: Include <limits.h>.
5084
d4835507 50852008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5086
5087 * font.c (font_update_drivers): Fix mistake in reconstructing the
5088 driver list.
5089
50902008-12-16 Chong Yidong <cyd@stupidchicken.com>
5091
5092 * font.c (font_clear_cache): Fix format of font cache data.
5093
e2cbc401
CY
50942008-12-15 Chong Yidong <cyd@stupidchicken.com>
5095
5096 * xftfont.c (xftfont_open): Free Xft font pattern if
5097 XftFontOpenPattern fails.
5098
5099 * xterm.c (x_free_frame_resources): Remove extraneous call to
5100 free_frame_faces.
5101
b131d535
CY
51022008-12-13 Chong Yidong <cyd@stupidchicken.com>
5103
5104 * xterm.c (x_delete_display): Move xim_close_dpy call to
5105 x_delete_terminal.
5106 (x_delete_terminal): Call xim_close_dpy.
5107
e6df5336
JR
51082008-12-13 Jason Rumney <jasonr@gnu.org>
5109
5110 * w32font.c (intern_font_name): New function.
5111 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5112 (w32font_open_internal, Fx_select_font): Decode font name.
5113 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5114
5115 * w32font.h (intern_font_name): Declare new function.
5116
5117 * w32uniscribe.c (add_opentype_font_name_to_list):
5118 Use intern_font_name.
5119
20d68145
CY
51202008-12-13 Chong Yidong <cyd@stupidchicken.com>
5121
9f2554de
CY
5122 * frame.c (Fdelete_frame): Call free_font_driver_list.
5123
3d9bec9a
CY
5124 * font.c (free_font_driver_list): Implement missing function.
5125
20d68145
CY
5126 * w32term.c (w32_term_init): Don't initialize the image cache
5127 here; it will be done in init_frame_faces.
5128
5129 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5130 (struct x_display_info): Remove unused member null_pixel. New
5131 member xim_callback_data.
5132
5133 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5134 (xim_initialize): Save pointer to callback function data.
5135 (xim_close_dpy): Free callback function data. Call XCloseIM,
5136 reverting 2008-11-04 change by David Smith.
5137 (x_term_init): Don't initialize the image cache here; it will be
5138 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5139 (x_delete_display): Free x_dnd_atoms member.
5140
96f9306b
KH
51412008-12-13 Kenichi Handa <handa@m17n.org>
5142
6dec9044
JB
5143 * font.c (font_rescale_ratio): Moved from xfaces.c.
5144 Argument type changed. Handle a font-spec too.
96f9306b 5145 (font_score): Check Vface_font_rescale_alist.
6dec9044 5146 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5147
5148 * xfaces.c (font_rescale_ratio): Moved to font.c.
5149
8d5b4964
CY
51502008-12-13 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5153
e6df5336
JR
51542008-12-12 Jason Rumney <jasonr@gnu.org>
5155
5156 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5157 Vwindow_system_version to the real w32 major version.
5158
97c6058a
DN
51592008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5160
5161 * term.c (init_tty): Move setting the terminal name before the
5162 potential user: maybe_fatal.
5163
ec4e88d7
CY
51642008-12-11 Chong Yidong <cyd@stupidchicken.com>
5165
d4835507
JB
5166 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5167 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5168
b4233ec9
JR
51692008-12-11 Jason Rumney <jasonr@gnu.org>
5170
8ec71e23 5171 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5172 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5173
b4233ec9 5174 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5175 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5176
011a0143
JB
51772008-12-11 Juanma Barranquero <lekktu@gmail.com>
5178
5179 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5180
3c309f34
JB
51812008-12-11 Juanma Barranquero <lekktu@gmail.com>
5182
5183 * process.c (Fsystem_process_attributes, syms_of_process):
5184 Fix typo in name of Ssystem_process_attributes.
5185 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5186
fedc6ab5
JB
51872008-12-11 Juanma Barranquero <lekktu@gmail.com>
5188
5189 * syntax.c (Fmodify_syntax_entry): Doc fix.
5190
ba3de0e8
JB
51912008-12-10 Juanma Barranquero <lekktu@gmail.com>
5192
5193 * font.c (Ffont_spec): Move usage to end of docstring.
5194
174f1c74
JR
51952008-12-10 Jason Rumney <jasonr@gnu.org>
5196
5197 * w32font.c (Qcham): New symbol.
5198 (font_supported_scripts): Add cham, and comments for other new
5199 scripts in bitfield from OpenType spec.
9d32f818
JR
5200 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5201 contain characters beyond the bmp.
174f1c74 5202
7b649478
KH
52032008-12-10 Kenichi Handa <handa@m17n.org>
5204
5205 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5206 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5207 Qunicode_sip.
5208
2133e2d1
JB
52092008-12-10 Juanma Barranquero <lekktu@gmail.com>
5210
5211 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5212 (Fcoding_system_put): Use QCdefault_char.
5213 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5214
9af886ee
CY
52152008-12-09 Chong Yidong <cyd@stupidchicken.com>
5216
74d819eb
CY
5217 * xftfont.c (syms_of_xftfont): Fix typo.
5218
4ccfa1c0 5219 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5220
7c19d3ae
DN
52212008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5222
5223 * emacs.c (main): Close daemon_pipe on exec.
5224
567826bb
CY
52252008-12-08 Chong Yidong <cyd@stupidchicken.com>
5226
5227 * termchar.h (struct tty): New members termcap_term_buffer and
5228 termcap_strings_buffer.
5229
5230 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5231 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5232 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5233 All callers changed.
5234 (init_tty): Store termcap data and string buffers in new struct
5235 tty members termcap_term_buffer and termcap_strings_buffer.
5236 (delete_tty): Free them.
4ccfa1c0 5237 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5238
aa96c42b
SZ
52392008-12-07 Seiji Zenitani <zenitani@mac.com>
5240
5241 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5242 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5243
b7e1d896
CY
52442008-12-06 Chong Yidong <cyd@stupidchicken.com>
5245
5246 * coding.c (make_conversion_work_buffer): Disable buffer
5247 modification hooks in the work buffer.
5248
b5ec91a5
EZ
52492008-12-05 Eli Zaretskii <eliz@gnu.org>
5250
5251 * process.c (procfs_system_process_attributes): If `nread' has a
5252 negative value, assign zero to it.
5253
a5d2a52b
CY
52542008-12-05 Chong Yidong <cyd@stupidchicken.com>
5255
68c5540b 5256 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5257
7bf1bb21
KH
52582008-12-05 Kenichi Handa <handa@m17n.org>
5259
5260 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5261 second character is a combining character.
5262
2fdc7d00
EZ
52632008-12-05 Eli Zaretskii <eliz@gnu.org>
5264
5265 * process.c (procfs_system_process_attributes): Don't use cmd,
5266 cmdsize, and q without initializing them first.
5267
bf6bfba8
JR
52682008-12-04 Jason Rumney <jasonr@gnu.org>
5269
5270 * w32font.c (w32font_draw): Initialize orig_clip before getting
5271 it, and delete it when finished.
5272
a3b1a468
DN
52732008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5274
5275 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5276 case when running as a daemon before detaching.
5277
8b8be8eb
JB
52782008-12-03 Juanma Barranquero <lekktu@gmail.com>
5279
805f2638 5280 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5281
b1bde622
KH
52822008-12-03 Kenichi Handa <handa@m17n.org>
5283
e500c47d
KH
5284 * font.c (font_at): Set `multibyte' at first.
5285
ca516334
KH
5286 * coding.c (decode_coding_charset): Check type of an element of
5287 vector VALIDS.
7bf1bb21 5288 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5289
4ccfa1c0 5290 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5291 (font_for_char): Likewise.
5292
1e5ecd37
CY
52932008-12-03 Chong Yidong <cyd@stupidchicken.com>
5294
d5b01609 5295 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5296 (font_update_lface): Handle fonts with corrupted size specs,
5297 i.e. non-int and non-float.
d5b01609 5298
11e3a6e4 5299 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5300 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5301 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5302
ab06788b
CY
5303 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5304
1e5ecd37 5305 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5306 underline_minimum_offset for underline position.
1e5ecd37 5307
63c125ab
DN
53082008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5309
5310 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5311
5312 * character.c (c_string_width): Specify the type for LEN.
5313
3a8406e1
KH
53142008-12-03 Kenichi Handa <handa@m17n.org>
5315
4ccfa1c0 5316 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5317 (decode_coding_utf_8): Likewise.
4ccfa1c0 5318 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5319 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5320
651df7d9
CY
53212008-12-02 Chong Yidong <cyd@stupidchicken.com>
5322
5323 * keyboard.c (make_lispy_position): Only use PT if the selected
5324 window is current.
5325
1f625c6c
AS
53262008-12-02 Andreas Schwab <schwab@suse.de>
5327
f7741ce9
AS
5328 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5329
1f625c6c
AS
5330 * doprnt.c (doprnt1): Fix size of charbuf.
5331
92bc2678
CY
53322008-12-02 Chong Yidong <cyd@stupidchicken.com>
5333
5334 * keyboard.c (timer_check): Revert last change.
5335
93b9e8cc
JB
53362008-12-02 Juanma Barranquero <lekktu@gmail.com>
5337
5338 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5339
fd7a37d5
JB
53402008-12-01 Juanma Barranquero <lekktu@gmail.com>
5341
5342 * makefile.w32-in: Update dependencies.
5343 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5344
c115043b
AS
53452008-12-01 Andreas Schwab <schwab@suse.de>
5346
5347 * font.c (register_font_driver): Use xmalloc.
5348 (font_put_frame_data): Likewise.
5349
f5668d2a
CY
53502008-12-01 Chong Yidong <cyd@stupidchicken.com>
5351
860d96be
CY
5352 * xfaces.c (realize_x_face): Make abort condition clearer.
5353
f5668d2a
CY
5354 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5355
379c17e7
CY
53562008-11-30 Chong Yidong <cyd@stupidchicken.com>
5357
5358 * keyboard.c (timer_check): After a timer runs, ensure that the
5359 selected window's buffer is current.
5360
35f36d65
JB
53612008-11-30 Juanma Barranquero <lekktu@gmail.com>
5362
f952c61c
JB
5363 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5364 It was accidentally restored by the Unicode merge.
5365
35f36d65
JB
5366 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5367
b23077df
JB
53682008-11-29 Juanma Barranquero <lekktu@gmail.com>
5369
5370 * w32proc.c: Include "coding.h".
5371 (Fw32_short_file_name): Encode filename passed to Windows API.
5372 (Fw32_long_file_name): Encode filename passed to Windows API and
5373 decode back the result. (Bug#1433)
5374
b8ebe9dd
KH
53752008-11-29 Kenichi Handa <handa@m17n.org>
5376
8cc53f96
KH
5377 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5378 not before accessing it.
5379
b8ebe9dd
KH
5380 * charset.c (Fdefine_charset_internal): After calculating
5381 min_char, max_char, and fastmap, copy the charset structure again.
5382 (encode_char): Fix the previous change.
5383
59bc82c0
SZ
53842008-11-28 Seiji Zenitani <zenitani@mac.com>
5385
5386 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5387
5388 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5389
5390 * nsterm.m (x_set_frame_alpha): New function.
5391
32247e3d
EZ
53922008-11-27 Eli Zaretskii <eliz@gnu.org>
5393
5394 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5395
b003e5ff
JB
53962008-11-27 Juanma Barranquero <lekktu@gmail.com>
5397
5398 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5399 pointer to check_face_name.
5400
708550f5
KH
54012008-11-27 Kenichi Handa <handa@m17n.org>
5402
5403 * category.h (SET_CATEGORY_SET): Call set_category_set.
5404 (set_category_set): Extern it.
5405
5406 * category.c (hash_get_category_set): New function.
5407 (Fmodify_category_entry): Adjusted for the change of
5408 char_table_ref_and_range. Call hash_get_category_set to get a
5409 category set to store in the table.
5410
5411 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5412 Funify_charset.
5413
2ae37cf0 5414 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5415 (DECODE_CHAR): Check if the decoder vector is ready.
5416 (ENCODE_CHAR): Check if the encoder char-table is ready.
5417 (maybe_unify_char): Extern it.
5418
5419 * charset.c (Vchar_unified_charset_table): Delete it.
5420 (inhibit_load_charset_map): New variable.
5421 (temp_charset_work): New variable.
5422 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5423 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5424 New macros.
5425 (load_charset_map): Meaning of control_flag changed. If
5426 inhibit_load_charset_map is nonzero, setup a table in
5427 temp_charset_work.
5428 (load_charset): New argument control_flag.
5429 (map_charset_for_dump): New function.
5430 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5431 map_charset_for_dump.
5432 (Fdefine_charset_internal): If the charset method is MAP, load
5433 mapping tables by calling load_charset.
5434 (Funify_charset): Don't load a mapping table but directly set
5435 Vchar_unify_table.
5436 (maybe_unify_char): New function.
5437 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5438 Handle the case of inhibit_load_charset_map being nonzero.
5439 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5440 Handle the case of inhibit_load_charset_map being nonzero.
5441 (Fclear_charset_maps): Just free temp_charset_work.
5442 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5443 variable.
5444
5445 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5446 change of char_table_ref_and_range.
5447 (char_table_ref_and_range): Change the meaning of argument FROM
5448 and TO. Now the caller must provide initial values for *FROM
5449 and *TO.
5450
5451 * fontset.c (fontset_add): Adjusted for the change of
5452 char_table_ref_and_range.
5453 (fontset_get_font_group): Likewise.
5454 (Ffontset_info): Likewise.
5455
5456 * keymap.c (describe_vector): Adjusted for the change of
5457 char_table_ref_and_range. For char-table, put boundary between
5458 non-ASCII and 8-bit characters.
5459
5460 * print.c (print_object): For bool-vector, delete unnecessary
5461 check of ASCII_BYTE_P.
5462
9196133b
JR
54632008-11-26 Jason Rumney <jasonr@gnu.org>
5464
5465 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5466 leading in font height. (Bug#879)
9196133b 5467
9f688acf
GM
54682008-11-26 Glenn Morris <rgm@gnu.org>
5469
5470 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5471 redefinition with ifdef. (Bug#1383)
5472
90d19aff
AR
54732008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5474
5475 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5476
4ccfa1c0 54772008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5478
5479 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5480 New EmacsView methods.
5481 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5482 Fixes bug #1048,1357,1414.
5483
54842008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5485
5486 Fix bug #1362.
5487 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5488 is not an indexed color.
5489 * nsterm.m (free_indexed_color): Add argument checking.
5490 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5491
e7d5ecb3
CY
54922008-11-24 Chong Yidong <cyd@stupidchicken.com>
5493
5494 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5495 Document confirm-after-completion value for
5496 minibuffer-completion-confirm.
5497
c285743c
JR
54982008-11-24 Jason Rumney <jasonr@gnu.org>
5499
5500 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5501 warning.
5502
b0857706
JR
55032008-11-23 Jason Rumney <jasonr@gnu.org>
5504
5505 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5506 restored before returning.
5507
5508 * w32font.c (check_face_name): New function.
5509 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5510 fonts. (Bug#642)
b0857706 5511
ee50ff07
MR
55122008-11-22 Martin Rudalics <rudalics@gmx.at>
5513
5514 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5515 confirm-nonexistent-file-or-buffer in doc-string.
5516
b8ff72fa
SM
55172008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5518
5519 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5520 Fix copy/paste typo. Add checks.
5521
cee53ed4
KH
55222008-11-21 Kenichi Handa <handa@m17n.org>
5523
5524 * coding.c (detect_coding_iso_2022): Reject invalid composition
5525 sequence.
5526 (DECODE_COMPOSITION_START): If the current source is the last
5527 block, and the current composition doesn't end, regard this
5528 sequence as invalid.
5529 (decode_coding_iso_2022): Handle invalid composition sequence.
5530
f6ef1e65
MR
55312008-11-20 Martin Rudalics <rudalics@gmx.at>
5532
5533 * window.c (coordinates_in_window): Don't return
5534 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5535 line when the window is not the rightmost one. (Bug#1372)
5536
e08b1705
MR
55372008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5538
5539 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5540
ad98e89f
EZ
55412008-11-15 Eli Zaretskii <eliz@gnu.org>
5542
5543 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5544 and bright_bg if noninteractive is non-zero.
5545
fb098a4b
CY
55462008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5547
5548 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5549 x_draw_glyph_string_background.
5550
5551 * w32term.c (x_draw_glyph_string): Likewise.
5552
ce952b6e
CY
55532008-11-15 Chong Yidong <cyd@stupidchicken.com>
5554
5555 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5556 the next glyph string once past the overhang width.
5557
5558 * nsterm.m (ns_draw_glyph_string): Likewise.
5559
5560 * w32term.c (x_draw_glyph_string): Likewise.
5561
26ea7079
CY
55622008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5563
5564 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5565 double file close.
5566
1c33c906
MR
55672008-11-14 Martin Rudalics <rudalics@gmx.at>
5568
5569 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5570 dedicated status of window before attempting to display another
5571 buffer in it.
5572
8fc29035
JB
55732008-11-14 Juanma Barranquero <lekktu@gmail.com>
5574
5575 * msdos.c (Fmsdos_long_file_names):
5576 (syms_of_msdos) <dos-unsupported-char-glyph>:
5577 * dosfns.c (Fint86): Fix typos in docstrings.
5578
55fb4286
EZ
55792008-11-14 Eli Zaretskii <eliz@gnu.org>
5580
5581 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5582
3fda0315
KY
55832008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5584
5585 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5586
7e849c17
CY
55872008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5588
5589 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5590
5591 * frame.h: Negative alpha means "don't touch".
5592
5593 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5594
5595 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5596
b9fd67bd
DN
55972008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5598
5599 * hftctl.c:
5600 * chpdef.h:
5601 * acldef.h: Remove files used only for systems no longer supported.
5602
5603 * Makefile.in: Fix .o alphabetical ordering.
5604 (hftctl.o): Remove dependency, file removed.
5605 (keymap.o, print.o): Depend on charset.h.
5606
d5998e03
KH
56072008-11-10 Kenichi Handa <handa@m17n.org>
5608
2ae37cf0 5609 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5610
be70e183
CY
56112008-11-08 Chong Yidong <cyd@stupidchicken.com>
5612
5613 * dired.c (file_name_completion): If completion_ignore_case is
5614 enabled, ignore case when checking completion-regexp-list.
5615
7cf94eac
EZ
56162008-11-08 Eli Zaretskii <eliz@gnu.org>
5617
5618 * vm-limit.c (get_lim_data): Fix last change.
5619
ee107a89
KH
56202008-11-08 Kenichi Handa <handa@m17n.org>
5621
5622 * character.c (Fget_byte): New function.
5623 (syms_of_character): Defsubr Fget_byte.
5624
5fd15622
CY
56252008-11-07 Chong Yidong <cyd@stupidchicken.com>
5626
5627 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5628 cursor position is valid after scrolling.
5629
13d62fad
JB
56302008-11-06 Juanma Barranquero <lekktu@gmail.com>
5631
5632 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5633
a1dd2936
GM
56342008-11-06 Glenn Morris <rgm@gnu.org>
5635
5636 * xterm.c (handle_one_xevent): Don't let popup menus cause
5637 mouse-autoselect-window related window switching. (Bug#1261)
5638
860cd236
CY
56392008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5640
5641 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5642
653a3150
AS
56432008-11-04 Andreas Schwab <schwab@suse.de>
5644
5645 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5646
870f5cac
CY
56472008-11-03 Chong Yidong <cyd@stupidchicken.com>
5648
5649 * xfns.c (Fx_wm_set_size_hint): New function.
5650
1e02f3cb
MR
56512008-11-03 Martin Rudalics <rudalics@gmx.at>
5652
5653 * textprop.c (Fprevious_single_char_property_change): Return 0
5654 when there's no change in a string. (Bug#1301)
5655
e630dfc6
MR
56562008-11-02 Martin Rudalics <rudalics@gmx.at>
5657
5658 * frame.c (do_switch_frame): New argument NORECORD passed to
5659 Fselect_window.
5660 (Fselect_frame): New argument NORECORD passed to
5661 do_switch_frame.
5662 (Fset_frame_selected_window): New argument NORECORD passed to
5663 Fselect_frame.
5664 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5665 in call of do_switch_frame.
5666 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5667 Handle NORECORD argument in call of Fselect_frame.
5668 * lisp.h (do_switch_frame, Fselect_frame)
5669 (Fset_frame_selected_window): Adjust declarations.
5670 * window.c (select_frame_norecord): New function.
5671 (run_window_configuration_change_hook): Use it and call
5672 Fselect_frame with NORECORD set.
5673 (Fselect_window): Pass NORECORD to Fselect_frame.
5674 (Fset_window_configuration): Handle NORECORD argument in call of
5675 do_switch_frame.
5676 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5677 Fset_frame_selected_window.
5678 * keyboard.c (command_loop_1): Handle NORECORD in call of
5679 Fselect_frame (currently ifdefd).
5680
9020b223
GM
56812008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5682
5683 * emacs.c (USAGE2): Untabify.
5684
793ffee8
SM
56852008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5686
5687 * composite.c (fill_gstring_header): Fix copy/paste typo.
5688
ab6d1131
MR
56892008-10-31 Martin Rudalics <rudalics@gmx.at>
5690
5691 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5692 (Fother_window): Rename argument and rewrite doc-string.
5693 (select_window_norecord): Fix return value. (Bug#1276)
5694
601a9cf1
JB
56952008-10-30 Juanma Barranquero <lekktu@gmail.com>
5696
5697 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5698 new frames overriding foreground for tooltips. Based on similar patch
5699 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5700
813b0652
CY
57012008-10-29 Chong Yidong <cyd@stupidchicken.com>
5702
5703 * emacs.c (Fdaemon_initialized): Initialize nfd.
5704
4414f58f
MR
57052008-10-29 Martin Rudalics <rudalics@gmx.at>
5706
5707 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5708 (Fwindow_text_height): Clarify doc-strings.
5709 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5710 doc-string of window-scroll-functions.
5711
ecdcaa09
RS
57122008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5713
5714 * category.c (syms_of_category): Fix typo in docstring.
5715
23fe745a
JB
57162008-10-28 Juanma Barranquero <lekktu@gmail.com>
5717
5718 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5719 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5720 Fix typos in docstrings.
5721
ff808935
DN
57222008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5723
5724 * emacs.c (daemon_pipe): Make non-static.
5725 (IS_DAEMON): Move definition ...
5726 * lisp.h (IS_DAEMON): ... here.
5727 (daemon_pipe): Declare.
5728 (is_daemon): Remove.
5729 * dispnew.c (init_display): Use IS_DAEMON.
5730
fc012771
SM
57312008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5732
5733 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5734 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5735
5736 * emacs.c (is_daemon): Remove.
5737 (main): Don't set is_daemon.
5738 (IS_DAEMON): New macro.
5739 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5740 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5741 parent exits.
5742 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5743
d8bdbe6f
CY
57442008-10-27 Chong Yidong <cyd@stupidchicken.com>
5745
d1a072bf
CY
5746 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5747 over-sized glyph, draw it with the default glyph width.
5748
e2e325aa
CY
5749 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5750 glyph, draw it with the default glyph width.
5751
5752 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5753 glyph, draw it with the default glyph width.
5754
d8bdbe6f
CY
5755 * xdisp.c (try_scrolling): When computing the distance from the
5756 scroll margin to PT, try moving some distance past the window
5757 bottom before giving up.
5758
7bfac547
MR
57592008-10-27 Martin Rudalics <rudalics@gmx.at>
5760
5761 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5762 (Fset_window_buffer): Explain in doc-string that a window can be
5763 "strongly" dedicated to its buffer.
5764
4ff029f6
DN
57652008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5766
5767 * emacs.c (daemon_name): New variable.
5768 (main): Deal with --daemon=SERVER_NAME.
5769 (Fdaemonp): Return a name if one was passed to --daemon.
5770
5790ef40
DN
57712008-10-26 Romain Francoise <romain@orebokech.com>
5772
f9bd0df9 5773 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5774 (main): Create a pipe before forking, make the parent exit only after
5775 the child has closed its end of the pipe. Move closing the
5776 descriptors ...
5777 (Fdaemon_initialized): ... here. New function.
5778
f5385255
SM
57792008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5780
4d632321
SM
5781 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5782 the previous unoptimized table.
5783
f5385255
SM
5784 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5785 the distinction between non-nil and non-t value of `dedicated'.
5786
6c56a0f3
CY
57872008-10-25 Chong Yidong <cyd@stupidchicken.com>
5788
5789 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5790 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5791
fec89261
MR
57922008-10-25 Martin Rudalics <rudalics@gmx.at>
5793
5794 * window.c (Fget_buffer_window, Fdelete_windows_on)
5795 (Freplace_buffer_in_windows): Make buffer argument optional and
5796 rename to buffer_or_name.
5797
34fcddd0
CY
57982008-10-24 Chong Yidong <cyd@stupidchicken.com>
5799
f5385255
SM
5800 * xdisp.c (handle_single_display_spec, handle_display_prop):
5801 Undo 2005-05-16 change.
34fcddd0
CY
5802 (handle_stop): Pop iterator if it's loaded with an empty string.
5803 (get_overlay_strings_1): Don't save iterator if it's loaded with
5804 an empty string (bug#1201).
5805
064766f2
KH
58062008-10-24 Kenichi Handa <handa@m17n.org>
5807
5808 * ftfont.c (ftfont_otf_features): Fix previous change.
5809 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5810 calling ftfont_otf_features.
5811
f9bd0df9 58122008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5813
5814 * font.c (font_match_p): Fix for the case that a vector of
5815 characters is in script-representative-chars.
5816
1dae9197
MA
58172008-10-24 Michael Albinus <michael.albinus@gmx.de>
5818
5819 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5820 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5821 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5822 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5823 macro. (Bug#1186)
1dae9197 5824
f9bd0df9 58252008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5826
5827 * s/sol2-10.h: New file.
5828
878a4584
JB
58292008-10-23 Juanma Barranquero <lekktu@gmail.com>
5830
5831 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5832 poor beast has survived 9+ years and the jump from xterm.c!).
5833
cd265ca6
MR
58342008-10-23 Martin Rudalics <rudalics@gmx.at>
5835
5836 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5837 Reword doc-string.
f5385255 5838 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5839
472a4dc9
JB
58402008-10-23 Juanma Barranquero <lekktu@gmail.com>
5841
5842 * character.c (syms_of_character) <script-representative-chars>:
5843 <unicode-category-table>: Doc fixes.
5844
159bd5a2
NF
58452008-10-23 Noah Friedman <friedman@splode.com>
5846
5847 * coding.c (make_conversion_work_buffer): Check that
5848 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5849 Fget_buffer_create.
5850
49f9c344
KH
58512008-10-23 Kenichi Handa <handa@m17n.org>
5852
5853 * font.c (font_add_log): Check the values of extra properties.
5854
12bb3111
MR
58552008-10-22 Martin Rudalics <rudalics@gmx.at>
5856
5857 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5858 Reword doc-string.
5859 (Fset_window_parameter): Use NILP.
5860 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5861 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5862
bbeb4e99
JB
58632008-10-22 Juanma Barranquero <lekktu@gmail.com>
5864
5865 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5866
58672008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5868
5869 * nsfns.m (ns_appkit_version): New function.
5870 (x-server-version): Use it.
5871 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5872 (x-server-vendor): Don't check_ns().
5873
5874 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5875
a9b555d3
JB
58762008-10-22 Juanma Barranquero <lekktu@gmail.com>
5877
5878 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5879 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5880
4626499f
KH
58812008-10-22 Kenichi Handa <handa@m17n.org>
5882
e3681952
KH
5883 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5884 scripts.
5885
4626499f
KH
5886 * category.c (word_boundary_p): Check scripts instead of charset.
5887 Handle nil value in word-separating-categories and
5888 word-combining-categories.
5889 (syms_of_category): Fix docstrings of word-separating-categories
5890 and word-combining-categories.
5891
1560f91a
EZ
58922008-10-21 Eli Zaretskii <eliz@gnu.org>
5893
5894 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5895 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5896
f4668441
MR
58972008-10-21 Martin Rudalics <rudalics@gmx.at>
5898
5899 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5900 Rename arg "buffer" to "buffer_or_name".
5901 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5902 it optional.
5903 (no_switch_window): Remove since the return value is not used.
a9b555d3 5904 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5905 Consider window as dedicated when Fwindow_dedicated_p returns a
5906 non-nil value.
5907 * lisp.h: Remove prototype for no_switch_window.
5908
fd75ddb2
JD
59092008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5910
5911 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5912 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5913
07295713
KH
59142008-10-21 Kenichi Handa <handa@m17n.org>
5915
5916 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5917 check Vlatin_extra_code_table.
5918
712adc82
EZ
59192008-10-20 Eli Zaretskii <eliz@gnu.org>
5920
5921 * fileio.c (Fset_file_modes): Doc fix.
5922
f549eb0b
MA
59232008-10-19 Michael Albinus <michael.albinus@gmx.de>
5924
5925 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5926 in arrays.
5927
aac0c6e3
MR
59282008-10-19 Martin Rudalics <rudalics@gmx.at>
5929
5930 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5931 Mention kill-buffer in doc-string.
5932 (Fset_window_buffer): Reinsert tem check removed in last commit.
5933 (Fenlarge_window, Fshrink_window): Have argument names and
5934 doc-string follow Elisp manual more closely.
5935
59362008-10-18 Eli Zaretskii <eliz@gnu.org>
5937
5938 * fileio.c (Fset_file_modes): Doc fix.
5939
59402008-10-18 Martin Rudalics <rudalics@gmx.at>
5941
5942 * window.c (Fwindow_width, Fset_window_start)
5943 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5944 (Fdelete_windows_on, Freplace_buffer_in_windows):
5945 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5946 (Fwindow_dedicated_p): Make window argument optional.
5947 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5948 (Fset_window_buffer): Respect any non-nil dedicated value for
5949 window. Rename "buffer" argument to "buffer_or_name".
5950
59512008-10-18 Ulrich Mueller <ulm@gentoo.org>
5952
5953 * m/sh3.h: New file, machine description for SuperH.
5954
59552008-10-17 Martin Rudalics <rudalics@gmx.at>
5956
5957 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5958
59592008-10-17 Kenichi Handa <handa@m17n.org>
5960
5961 * ftfont.c (ftfont_otf_features): Fix indexing
5962 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5963
59642008-10-16 Magnus Henoch <mange@freemail.hu>
5965
5966 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5967 (Fdbus_call_method_asynchronously): Ditto.
5968 This change makes C-h f display the argument list.
5969
59702008-10-16 Chong Yidong <cyd@stupidchicken.com>
5971
5972 * fileio.c (Fexpand_file_name): Doc fix.
5973
5974 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5975 of :foreground and :background equivalent to unspecified (20.x
5976 compatibility).
5977
59782008-10-15 Eli Zaretskii <eliz@gnu.org>
5979
5980 * buffer.c (syms_of_buffer): Doc fix.
5981
59822008-10-14 Kenichi Handa <handa@m17n.org>
5983
5984 * font.c (font_clear_prop): When clearing font width, clear the
5985 average width field too.
5986
59872008-10-12 Andreas Schwab <schwab@suse.de>
5988
5989 * ftfont.c (ftfont_shape_by_flt): Make static.
5990 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5991
5992 * font.c: Don't include <m17n-flt.h>.
5993
59942008-10-10 Eli Zaretskii <eliz@gnu.org>
5995
5996 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5997
59982008-10-09 Eli Zaretskii <eliz@gnu.org>
5999
6000 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6001 away code.
6002
60032008-10-09 Chong Yidong <cyd@stupidchicken.com>
6004
6005 * dispnew.c (update_text_area): Avoid looping due to large glyph
6006 overhangs (bug#1070).
6007
60082008-10-09 Kenichi Handa <handa@m17n.org>
6009
6010 * fontset.c (face_for_char): If face->fontset is negative, just
6011 return ascii_face.
6012
f5385255
SM
6013 * font.c (font_delete_unmatched): Fix previous change.
6014 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6015
60162008-10-09 Martin Rudalics <rudalics@gmx.at>
6017
6018 * frame.c (Fraise_frame): On text-only terminals select frame in
6019 order to make it visible. (Bug#1061)
6020
60212008-10-08 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * fontset.c (fontset_find_font): Check frame validity.
6024
60252008-10-07 Chong Yidong <cyd@stupidchicken.com>
6026
a9b555d3 6027 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6028 (xg_display_close): Allow Emacs to close all displays (bug#985).
6029
60302008-10-06 Andreas Schwab <schwab@suse.de>
6031
f5385255 6032 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6033
60342008-10-06 Chong Yidong <cyd@stupidchicken.com>
6035
f5385255 6036 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6037
a9b555d3 6038 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6039
6040 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6041 during initialization.
6042
60432008-10-04 Eli Zaretskii <eliz@gnu.org>
6044
6045 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6046 whole thing on MSDOS frames as well as on a TTY.
6047
6048 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6049 well as for TTY.
6050 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6051 well as on a TTY.
6052
6053 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6054 as well as for TTY.
6055
6056 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6057
6058 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6059 MSDOS frames as well.
6060
60612008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6062
6063 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6064 correct arguments.
b71ac3dd 6065 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6066
60672008-10-03 Glenn Morris <rgm@gnu.org>
6068
6069 * emacs.c (USAGE1): Add --daemon.
6070
60712008-10-02 Eli Zaretskii <eliz@gnu.org>
6072
6073 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6074 100, so it's in percents as advertised.
6075
60762008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6077
6078 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6079 (ns_output.current_cursor, ns_output.desired_cursor)
6080 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6081 (FRAME_NEW_CURSOR_COLOR): Remove.
6082
6083 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6084 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6085 enumeration (HOLLOW_BOX_CURSOR, etc.).
6086
6087 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6088 (draw_window_cursor): Simplify code.
f5385255
SM
6089 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6090 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6091 updates manually.
a9b555d3
JB
6092 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6093 Use core Emacs cursor types.
aac0c6e3 6094
b8ff72fa 6095 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6096
60972008-10-02 Martin Rudalics <rudalics@gmx.at>
6098
6099 * process.c (Faccept_process_output): Fix doc-string.
6100
61012008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6102
6103 * gmalloc.c (__sbrk): Also define for uClibc.
6104
6105 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6106 for uClibc.
6107
61082008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6109
6110 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6111 styles.
6112 (nsfont_open): Reenable the cache.
6113
61142008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6115
6116 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6117 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6118
61192008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6120
6121 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6122 a suspended terminal.
6123
61242008-09-30 Michael Albinus <michael.albinus@gmx.de>
6125
6126 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6127
61282008-09-30 Eli Zaretskii <eliz@gnu.org>
6129
6130 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6131
61322008-09-30 Chong Yidong <cyd@stupidchicken.com>
6133
6134 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6135 in a continued line coincides with a line beginning.
6136
61372008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6138
6139 * nsfont.m (nsfont_trait_distance): Fix bug.
6140 (nsfont_list): Return a list rather than a vector (syncs with Handa
6141 changes of 2008-05-14).
6142 (nsfont_open): Improve logging.
6143
61442008-09-29 Andreas Schwab <schwab@suse.de>
6145
6146 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6147
61482008-09-28 Martin Rudalics <rudalics@gmx.at>
6149
6150 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6151 name as char-resolve-modifiers.
6152 Reported by: Markus Triska <markus.triska@gmx.at>
6153
61542008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6155
6156 * dispnew.c (init_display): Return earlier when running as a daemon.
6157
61582008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6159
6160 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6161
61622008-09-27 Eli Zaretskii <eliz@gnu.org>
6163
6164 * composite.c (Fcomposition_get_gstring)
6165 (Fcompose_region_internal, Fcompose_string_internal)
6166 (Ffind_composition_internal): Doc fix.
6167 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6168 (syms_of_composite) <auto-composition-function>: Doc fix.
6169 (syms_of_composite) <composition-function-table>: Doc fix.
6170
61712008-09-25 Chong Yidong <cyd@stupidchicken.com>
6172
6173 * search.c (wordify): New argument for lax word-ends.
6174 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6175
61762008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6177
6178 * lisp.h (is_daemon): Declare.
6179 * dispnew.c (init_display): Do not try to initialize the terminal
6180 when running as a daemon.
6181
61822008-09-22 Chong Yidong <cyd@stupidchicken.com>
6183
6184 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6185 x_display_pixel_height.
6186
61872008-09-22 Martin Rudalics <rudalics@gmx.at>
6188
6189 * undo.c (record_point): Don't call Fundo_boundary for first
6190 change. (Bug#731)
6191
61922008-09-22 Juanma Barranquero <lekktu@gmail.com>
6193
6194 * emacs.c (Fdaemonp): Doc fix.
6195
61962008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6197
6198 * emacs.c (main): Place #ifdef in the proper place.
6199
62002008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6201
6202 * emacs.c (standard_args): Add --daemon.
6203 (main): Disconnect from the terminal when --daemon is passed.
6204 (is_daemon): New variable.
6205 (Fdaemonp): New function.
6206 (syms_of_emacs): Defsubr it.
6207
62082008-09-20 Chong Yidong <cyd@stupidchicken.com>
6209
6210 * xdisp.c (get_next_display_element): Handle string display
6211 correctly when checking for the end of a box run.
6212
62132008-09-20 Glenn Morris <rgm@gnu.org>
6214
6215 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6216 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6217 (Frename_file): Avoid copying to trash if a rename involves
6218 a delete. (Bug#964).
6219
62202008-09-20 Eli Zaretskii <eliz@gnu.org>
6221
6222 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6223 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6224 frames as well as termcap frames.
6225 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6226 get_named_tty.
6227
62282008-09-19 Eli Zaretskii <eliz@gnu.org>
6229
6230 * process.c (procfs_system_process_attributes): Fix cmdline in
6231 case /proc/PID/cmdline is empty.
6232
6233 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6234 x_display_pixel_height.
6235
62362008-09-19 Juanma Barranquero <lekktu@gmail.com>
6237
6238 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6239
6240 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6241 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6242
62432008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6244
6245 * dispextern.h (struct it): Move line_wrap away from the middle of
6246 bitfields. Move voffset in struct iterator_stack_entry after the
6247 bitfields. Move tab_width near after another short.
6248
62492008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6250
6251 * frame.h (struct frame): Move alpha from the middle of bitfields.
6252
6253 * window.h (struct window): Move frozen_window_start_p after the
6254 rest of the bitfields to reduce padding.
6255
62562008-09-18 Chong Yidong <cyd@stupidchicken.com>
6257
6258 * xterm.h (x_display_info): Remove `height' and `width' members.
6259
6260 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6261
6262 * w32term.h (w32_display_info): Remove `height', `width',
6263 `height_in', and `width_in' members.
6264
b8ff72fa
SM
6265 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6266 New functions.
aac0c6e3
MR
6267 (x_calc_absolute_position): Use them.
6268 (x_term_init): Omit removed `height' and `width' members.
6269
b8ff72fa
SM
6270 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6271 New functions.
aac0c6e3
MR
6272 (w32_read_socket, x_calc_absolute_position): Use them.
6273 (w32_initialize_display_info, w32_term_init): Omit removed members
6274 of w32_display_info.
6275
b8ff72fa
SM
6276 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6277 New functions.
6278 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6279
b8ff72fa
SM
6280 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6281 New functions.
aac0c6e3
MR
6282 (x_calc_absolute_position): Use them.
6283 (x_term_init): Omit removed `height' and `width' members.
6284
6285 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6286 (compute_tip_xy):
6287 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6288 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6289 x_display_pixel_width.
6290
62912008-09-18 Kenichi Handa <handa@m17n.org>
6292
6293 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6294 (composition_compute_stop_pos): Fix handling of static composition.
6295 (Fcomposition_get_gstring): Check FROM and TO at first.
6296
62972008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6298
46e722a9 6299 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6300 mixup (YAILOM).
6301
63022008-09-17 Chong Yidong <cyd@stupidchicken.com>
6303
6304 * indent.c (Fvertical_motion): Use position reported by iterator
6305 instead of PT for determining screen motion (bug#943).
6306
63072008-09-17 Romain Francoise <romain@orebokech.com>
6308
6309 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6310
63112008-09-17 Kenichi Handa <handa@m17n.org>
6312
6313 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6314
6315 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6316 if necessary.
6317
63182008-09-16 Kenichi Handa <handa@m17n.org>
6319
6320 * coding.c (make_conversion_work_buffer): Avoid calling
6321 Fget_buffer_create if it is not necessary.
6322
63232008-09-15 Martin Rudalics <rudalics@gmx.at>
6324
6325 * window.c (Fselect_window): Don't update window_select_count and
6326 use_time when norecord is not nil.
6327
63282008-09-14 Kenichi Handa <handa@m17n.org>
6329
6330 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6331 specpdl_ptr.
6332
63332008-09-12 Kenichi Handa <handa@m17n.org>
6334
6335 * indent.c (scan_for_column): Don't handle automatic composition
6336 if the current buffer is not associated with a window.
6337
6338 * composite.c (composition_reseat_it): If the current buffer is
6339 not associated with a window, ignore the automatic composition.
6340 (find_automatic_composition): Likewise.
6341
63422008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6343
6344 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6345 (Fgpm_mouse_stop): Use it.
6346 * termhooks.h (close_gpm): Declare.
6347 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6348 connection if Gpm_GetEvent fails.
6349
6350 * window.c (set_window_buffer): Always preserve current-buffer.
6351
63522008-09-12 Glenn Morris <rgm@gnu.org>
6353
6354 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6355
63562008-09-11 Glenn Morris <rgm@gnu.org>
6357
6358 * charset.c (charset-map-path): Doc fix.
6359
63602008-09-10 Kenichi Handa <handa@m17n.org>
6361
6362 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6363
6364 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6365 compose a grapheme cluster with the preceding base glyph.
6366
6367 * composite.c (composition_compute_stop_pos): Fix previous change.
6368 Reset cmp_it->id to -1 at first.
6369
63702008-09-10 Glenn Morris <rgm@gnu.org>
6371
6372 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6373
63742008-09-09 Chong Yidong <cyd@stupidchicken.com>
6375
6376 * keyboard.c (read_key_sequence): Reapply translation maps when
6377 switching keyboards.
6378
63792008-09-09 Kenichi Handa <handa@m17n.org>
6380
6381 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6382 characters.
6383
6384 * composite.c (FORWARD_CHAR): Fix calculation
6385 of (POSITION).pos_byte.
6386 (composition_compute_stop_pos): Limit the search of composition to
6387 at most 500 characters ahead. If we reach the limit or find a
6388 newline, set cmp_it->ch to -2 and return 0.
6389 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6390
63912008-09-08 Kenichi Handa <handa@m17n.org>
6392
6393 * indent.c (Fvertical_motion): Be sure to set
6394 it_overshoot_expected if it.cmp_it.id is non-negative.
6395
63962008-09-07 Andreas Schwab <schwab@suse.de>
6397
6398 * callproc.c (Fcall_process): Don't hold references to string data
6399 across garbage collection. Move initialisation of new_argv down
6400 to avoid compiler bug.
6401
64022008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6403
6404 * process.c (Fsystem_process_attributes): Doc fix.
6405
64062008-09-07 Chong Yidong <cyd@stupidchicken.com>
6407
6408 * callproc.c (Fcall_process): Canonicalize current directory name.
6409
6410 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6411 iterator advances to the next line if the current line ends in a
6412 continued tab.
6413
64142008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6415
6416 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6417 member to point to cmp_from.
6418
6419 * xdisp.c: Doc fix for references to gidx data member.
6420
64212008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6422
6423 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6424
64252008-09-07 Kenichi Handa <handa@m17n.org>
6426
6427 * composite.c (FORWARD_CHAR): Check STOP after
6428 incrementing (POSITION).pos.
6429
64302008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6431
6432 * process.c (Fsystem_process_attributes): Doc fix.
6433
64342008-09-06 Chong Yidong <cyd@stupidchicken.com>
6435
6436 * keyboard.c (Ftop_level): Doc fix.
6437
64382008-09-06 Eli Zaretskii <eliz@gnu.org>
6439
6440 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6441 minibuffer, don't let lower part of menu invade the echo area.
6442
6443 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6444 "char *q" to access menu text and advance through it. Revert the
6445 change that displayed ">" instead of ASCII character 0x10.
6446
64472008-09-05 Eli Zaretskii <eliz@gnu.org>
6448
6449 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6450 toggle boxes and radio buttons on MS-DOS as well.
6451
64522008-09-05 Kenichi Handa <handa@m17n.org>
6453
6454 * composite.c (autocmp_chars): Check lookback count.
6455 (composition_compute_stop_pos): Set cmp_it->lookback.
6456 (composition_reseat_it): Check lookback count.
6457 (struct position_record): New struct.
6458 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6459 (find_automatic_composition): New function.
6460 (composition_adjust_point): Use find_automatic_composition.
6461
6462 * dispextern.h (struct composition_it): New member lookback.
6463
64642008-09-02 Chong Yidong <cyd@stupidchicken.com>
6465
6466 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6467 if moving by a single line.
6468
64692008-09-02 Andreas Schwab <schwab@suse.de>
6470
6471 * xterm.c (x_delete_display): Fix merge error.
6472
6473 * fileio.c (Fexpand_file_name): Remove unused variables.
6474
64752008-09-02 Eli Zaretskii <eliz@gnu.org>
6476
6477 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6478 storage on all platforms, not just on DOS_NT.
6479
64802008-09-02 Jason Rumney <jasonr@gnu.org>
6481
b8ff72fa
SM
6482 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6483 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6484
64852008-09-01 Chong Yidong <cyd@stupidchicken.com>
6486
6487 * xfaces.c (Finternal_set_alternative_font_family_alist)
6488 (Finternal_set_alternative_font_registry_alist): Properly copy
6489 entire alist structure.
6490
64912008-09-01 Kenichi Handa <handa@m17n.org>
6492
d66c0241 6493 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6494 representative chars of the script is a vector.
d66c0241
JB
6495 (ftfont_list): Handle the case where the representative chars of
6496 the script is a vector.
aac0c6e3
MR
6497
6498 * character.c (syms_of_character): Docstring of
6499 script-representative-chars fixed.
6500
65012008-08-31 Eli Zaretskii <eliz@gnu.org>
6502
6503 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6504 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6505 the menu. Allocate larger buffer for `text', to account for
6506 possible ^C characters.
6507
65082008-08-31 Martin Rudalics <rudalics@gmx.at>
6509
6510 * xdisp.c (prepare_menu_bars): Don't call
6511 Vwindow_size_change_functions with arg Qt.
6512
65132008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6514
6515 * font.h (font_range):
6516 * fileio.c (report_file_error):
46e722a9
SM
6517 * composite.c (composition_update_it): Yet another int/Lisp_Object
6518 mixup (YAILOM).
aac0c6e3
MR
6519
65202008-08-30 Glenn Morris <rgm@gnu.org>
6521
6522 * data.c (Fmake_variable_frame_local): Doc fix.
6523
6524 * frame.c (Fmodify_frame_parameters): Doc fix.
6525
65262008-08-30 Eli Zaretskii <eliz@gnu.org>
6527
6528 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6529 needed by GetTokenInformation.
6530 (w32_system_process_attributes): Check return values of all system
6531 APIs.
6532
6533 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6534 only when the state changes.
6535 (IT_update_begin, IT_update_end): Add termscript trace.
6536
6537 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6538 clipboard is unavailable. Set dst to NULL if it doesn't point to
6539 malloc'ed data.
6540 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6541 passing random values to xfree.
6542
6543 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6544 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6545
65462008-08-29 Jason Rumney <jasonr@gnu.org>
6547
6548 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6549
65502008-08-29 Eli Zaretskii <eliz@gnu.org>
6551
6552 * composite.c (fill_gstring_body): Avoid compiler warnings.
6553
6554 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6555 LGLYPH_SET_CODE to avoid compiler warnings.
6556
2ae37cf0 6557 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6558
6559 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6560
6561 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6562 LGLYPH_SET_CODE.
6563
65642008-08-29 Kenichi Handa <handa@m17n.org>
6565
6566 * fileio.c (report_file_error): Don't downcase the first character
6567 of errstring if it is still unibyte.
6568
65692008-08-29 Kenichi Handa <handa@m17n.org>
6570
6571 These changes are to re-implement the automatic composition so
6572 that it doesn't use text properties.
6573
6574 * Makefile.in (ftfont.o): Depend on composite.h.
6575 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6576
6577 * character.h (Vunicode_category_table): Extern it.
6578
6579 * character.c (Vunicode_category_table): New variable.
6580 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6581
6582 * chartab.c (optimize_sub_char_table): Perform more greedy
6583 optimization.
6584
b8ff72fa
SM
6585 * composite.h (enum composition_method):
6586 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6587 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6588 (Vcomposition_function_table): Extern it.
6589 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6590 (composition_gstring_put_cache, composition_gstring_from_id)
6591 (composition_gstring_p, composition_gstring_width)
6592 (composition_compute_stop_pos, composition_reseat_it)
6593 (composition_update_it, composition_adjust_point): Extern them.
6594 (Fcomposition_get_gstring): EXFUN it.
6595
d66c0241 6596 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6597 (Vcomposition_function_table)
6598 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6599 (gstring_hash_table, gstring_work, gstring_work_headers):
6600 New variables.
aac0c6e3
MR
6601 (gstring_lookup_cache, composition_gstring_put_cache)
6602 (composition_gstring_from_id, composition_gstring_p)
6603 (composition_gstring_width, fill_gstring_header)
6604 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6605 (composition_reseat_it, composition_update_it)
b8ff72fa 6606 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6607 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6608 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6609 Defsubr compostion_get_gstring.
6610
6611 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6612 cmp_id.
6613 (struct glyph_string): Delete the member gidx. New members
6614 cmp_id, cmp_from, and cmp_to.
6615 (enum it_method): Delete GET_FROM_COMPOSITION.
6616 (struct composition_it): New struct.
6617 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6618 Delete c, len, cmp_id, cmp_len in u.comp.
6619
6620 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6621 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6622 (enum lglyph_indices): Likewise.
b8ff72fa 6623 (font_range): Adjust extern.
aac0c6e3
MR
6624 (font_fill_lglyph_metrics): Extern it.
6625
6626 * font.c (QCf): New variable.
6627 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6628 (font_prepare_composition): Delete this function.
6629 (font_range): Type and arguments changed.
6630 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6631 (font_fill_lglyph_metrics): New function.
b8ff72fa 6632 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6633 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6634 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6635 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6636
6637 * fontset.h (font_for_char): Extern it.
6638
6639 * fontset.c (font_for_char): New function.
6640
6641 * ftfont.c: Include composite.h.
6642 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6643 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6644
6645 * indent.c: Include composite.h and dispextern.h.
6646 (check_composition): Delete this function.
6647 (scan_for_column): Handle composition by
6648 composition_compute_stop_pos, composition_reseat_it, and
6649 composition_update_it.
6650 (compute_motion): Likewise.
6651 (Fvertical_motion): Fix checking of composition.
6652
6653 * keyboard.c (adjust_point_for_property): Check composition by
6654 composition_adjust_point.
6655
b8ff72fa 6656 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6657 struct glyph_string.
6658
b8ff72fa
SM
6659 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6660 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6661 struct glyph.
6662 (produce_composite_glyph): Likewise.
6663
b8ff72fa
SM
6664 * w32term.c (x_draw_composite_glyph_string_foreground):
6665 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6666 (x_draw_glyph_string): Likewise.
6667
6668 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6669 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6670
6671 * xdisp.c: Include font.h.
6672 (it_props): Delete the entry for Qauto_composed.
6673 (init_iterator): Initialize it->cmp_it.id to -1.
6674 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6675 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6676 (handle_auto_composed_prop): Delete it.
6677 (handle_composition_prop): Handle only static composition.
6678 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6679 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6680 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6681 (pop_it): Likewise.
6682 (get_next_element): Delete next_element_from_composition.
6683 (CHAR_COMPOSED_P): New macro.
6684 (get_next_display_element): For automatic composition, get a face
6685 from the font in the glyph-string.
6686 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6687 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6688 (next_element_from_string): Check if the character at the current
6689 position is composed by CHAR_COMPOSED_P.
6690 (next_element_from_buffer): Likewise.
d66c0241
JB
6691 (next_element_from_composition): Adjust for the change of struct it.
6692 Update it->cmp_it.
b8ff72fa
SM
6693 (dump_glyph): Adjust for the change of struct glyph.
6694 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6695 it and struct glyph. Don't handle automatic composition here.
6696 (fill_gstring_glyph_string): New function.
6697 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6698 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6699 (BUILD_GSTRING_GLYPH_STRING): New macro.
6700 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6701 automatic composition.
b8ff72fa 6702 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6703 struct glyph.
b8ff72fa 6704 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6705
b8ff72fa 6706 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6707 the change of struct glyph_string.
6708 (x_draw_glyph_string): Likewise.
6709
67102008-08-29 Glenn Morris <rgm@gnu.org>
6711
6712 * buffer.c (word-wrap): Doc fix.
6713 * xdisp.c (truncate-partial-width-windows): Doc fix.
6714 Increase default to 50.
6715
67162008-08-29 Chong Yidong <cyd@stupidchicken.com>
6717
6718 * xdisp.c (update_tool_bar_unwind): New function.
6719 (update_tool_bar): Temporarily set selected frame before building
6720 tool-bar items.
6721
67222008-08-28 Michael Albinus <michael.albinus@gmx.de>
6723
6724 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6725 snprintf, respectively.
6726 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6727
67282008-08-28 Chong Yidong <cyd@stupidchicken.com>
6729
6730 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6731 LDFLAGS to GNUstep CC invocation.
6732
67332008-08-27 Chong Yidong <cyd@stupidchicken.com>
6734
6735 * indent.c (Fvertical_motion): Revert last change. Handle the
6736 general case where we are moving forward, and PT spans multiple
6737 screen lines.
6738
6739 * eval.c (find_handler_clause): Temporarily increase
6740 max-lisp-eval-depth while printing the backtrace buffer, to
6741 guarantee that help-mode code can run.
6742
67432008-08-27 Eli Zaretskii <eliz@gnu.org>
6744
6745 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6746 colors under -rv.
6747 (IT_set_frame_parameters): Don't swap foreground and background
6748 colors if `(reverse . t)' is present in the frame properties.
6749 (internal_terminal_init): Call init_frame_faces only for the
6750 initial frame.
6751
67522008-08-27 Andreas Schwab <schwab@suse.de>
6753
6754 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6755
67562008-08-27 Andreas Schwab <schwab@suse.de>
6757
6758 * search.c (search_buffer): Set char_base to zero only at the end.
6759
67602008-08-27 Kenichi Handa <handa@m17n.org>
6761
b8ff72fa 6762 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6763
67642008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6765
6766 * xterm.c (x_term_init): Temporarily hide the partially
6767 initialized terminal while calling vendor-specific-keysyms.
6768
67692008-08-26 Eli Zaretskii <eliz@gnu.org>
6770
6771 * msdos.c (internal_terminal_init): Most initializations done only
6772 once, especially initial_screen_colors[] and termscript open.
6773
67742008-08-26 Chong Yidong <cyd@stupidchicken.com>
6775
6776 * eval.c (Fcondition_case): Doc fix.
6777
6778 * widgetprv.h (EmacsFramePart): Change font member to the new font
6779 struct.
6780
6781 * widget.c: Include character.h and font.h for XSETFONT.
6782 (setup_frame_gcs): Compute X font id from font struct, just once.
6783
67842008-08-26 Eli Zaretskii <eliz@gnu.org>
6785
6786 * term.c (get_named_tty): Fix last change.
6787
67882008-08-26 Chong Yidong <cyd@stupidchicken.com>
6789
6790 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6791 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6792
67932008-08-25 Eli Zaretskii <eliz@gnu.org>
6794
6795 * frame.c (do_switch_frame): Mark previously displayed frame as
6796 obscured for FRAME_MSDOS_P frames as well.
6797
67982008-08-24 Eli Zaretskii <eliz@gnu.org>
6799
6800 * frame.c (make_terminal_frame): Initialize f->terminal,
6801 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6802 Set the top frame to newly created frame.
6803 (Fmake_terminal_frame): Reuse the_only_display_info.
6804
6805 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6806 estimating available memory.
6807
b97439ce 68082008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6809
6810 * nsterm.m (ns_draw_window_cursor): Don't call
6811 NSDisableScreenUpdates and NSEnableScreenUpdates on
6812 non-NS_IMPL_COCOA systems.
6813
68142008-08-23 Andreas Schwab <schwab@suse.de>
6815
6816 * process.c (procfs_system_process_attributes): Fix use of
6817 uninitialized variables.
6818
68192008-08-23 Eli Zaretskii <eliz@gnu.org>
6820
6821 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6822
6823 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6824 calling tty-set-up-initial-frame-faces.
6825
b8ff72fa
SM
6826 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6827 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6828
6829 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6830 addition to output_termcap.
6831
6832 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6833
6834 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6835 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6836 highlight.
6837
6838 * process.c [!subprocesses]: Define QCname.
6839 (syms_of_process): Intern and staticpro it.
6840
6841 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6842 Adjust for changes in encoding/decoding routines.
6843 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6844 encode_coding and decode_coding.
6845
b8ff72fa 6846 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6847
6848 * dosfns.c: Include frame.h before termhooks.h.
6849 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6850 variable termscript.
6851
6852 * s/msdos.h (USER_FULL_NAME): Define.
6853 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6854
6855 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6856 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6857 pw->pw_gecos.
6858
6859 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6860 SELECTED_FRAME as additional (1st) argument.
6861 (tty_read_avail_input): Handle output_msdos_raw in
6862 addition to output_termcap.
6863
6864 * msdos.c: Include frame.h before termhooks.h.
6865 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6866 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6867 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6868 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6869 (IT_set_terminal_modes, IT_reset_terminal_modes)
6870 (IT_set_frame_parameters): Use tty->termscript instead of a global
6871 variable termscript.
6872 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6873 global variable terminal_coding. Don't refer to
6874 Vnonascii_translation_table.
6875 (internal_terminal_init): Set Vwindow_system in current_kboard.
6876 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6877 Announce date and time of session start, if termscript is open.
6878 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6879 term.c:init_tty). Open termscript only of not already open.
6880 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6881 here instead of dos_ttraw. Don't initialize display if this is an
6882 initial tty. Don't set FRAME_FONT.
6883 (Vwindow_system_version): Bump to 23.
6884 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6885 is available, set up mouse_position_hook.
6886 (dos_ttraw, IT_set_terminal_modes): If called with initial
6887 terminal, do nothing.
6888 (IT_set_frame_parameters): Handle the Qtty_type frame
6889 parameter by calling internal_terminal_init.
6890 (dos_set_window_size, show_mouse_face)
6891 (clear_mouse_face, IT_note_mode_line_highlight)
6892 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6893 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6894 (initialize_msdos_display): New function.
6895 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6896 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6897 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6898 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6899 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6900 (request_sigio, unrequest_sigio): Don't define, now defined on
6901 sysdep.c.
6902 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6903
6904 * term.c [MSDOS]: Include msdos.h.
6905 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6906 conditional to DOS_NT. Allow only one call to this function in a
6907 session. Don't allocate a new struct tty_display_info; instead,
6908 reuse the_only_display_info. Call get_tty_size to get screen
6909 dimensions. Call init_baud_rate to set bad_rate.
6910 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6911 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6912 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6913 (get_tty_terminal, get_named_tty, Ftty_type)
6914 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6915 output_termcap.
b8ff72fa
SM
6916 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6917 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6918 only when subprocesses are supported.
aac0c6e3
MR
6919
6920 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6921 f->output_data.x.
6922 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6923 terminal devices.
6924
5582fbc7 6925 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6926 x_output.
6927 (FRAME_FONT): Use output_data.tty.
6928 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6929 (struct x_display_info): Rename from display_info. Update all users in
6930 msdos.c.
aac0c6e3 6931 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6932 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6933 (dos_ttraw): Update prototype.
6934
6935 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6936 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6937
69382008-08-23 Jason Rumney <jasonr@gnu.org>
6939
6940 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6941 (fn_TIFFSetDirectory): New library function used.
6942 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6943 (tiff_load): Use :index to select among multiple images. Set count
6944 property when multiple images exist.
6945 (gif_format): Use :index, not :image.
6946
69472008-08-23 Chong Yidong <cyd@stupidchicken.com>
6948
6949 * xdisp.c (try_scrolling): Check INT_MAX instead of
6950 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6951 to obtain INT_MAX.
6952
69532008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6954
6955 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6956
69572008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6958
6959 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6960 GNUstep library location.
6961
69622008-08-21 Chong Yidong <cyd@stupidchicken.com>
6963
6964 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6965 before using it.
6966
6967 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6968
69692008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6970
6971 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6972 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6973 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6974 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6975 (EmacsApp-cursor_blink_handler): Remove declaration.
6976 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6977 match 01 Feb 2008 changes in xterm.c.
6978 (ns_read_socket): Add cast to avoid warning.
6979 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6980 GNUstep.
6981
69822008-08-20 Chong Yidong <cyd@stupidchicken.com>
6983
6984 * xselect.c (x_get_foreign_selection): Return nil if desired
6985 selection could not be obtained, instead of signalling an error.
6986
69872008-08-20 David Reitter <david.reitter@gmail.com>
6988
6989 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6990 * nsterm.m: Remove ns-specific code for cursor blinking.
6991 (ns_draw_window_cursor): Clear cursor properly rather than
6992 redrawing the area. Respect width of bar cursors.
6993 These changes enable the use of generic blink-cursor-mode and
6994 generic cursor types in NS and support smooth cursor movements (do
6995 not blink off after command).
6996 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6997 Nextstep, too.
6998
69992008-08-19 Kenichi Handa <handa@m17n.org>
7000
7001 * font.c (Vfont_log_deferred): New variable.
7002 (font_add_log): Check Vfont_log_deferred.
7003 (font_deferred_log): New function.
7004
7005 * font.h (font_deferred_log): Extern it.
7006
7007 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7008 for sorting.
7009 (face_for_char): Use deferred log.
7010
70112008-08-18 Kenichi Handa <handa@m17n.org>
7012
7013 * fontset.c (face_for_char): Add font log.
7014
7015 * font.c (font_add_log): Add the font properties :script, :lang,
7016 and :otf in the log.
7017
70182008-08-17 Chong Yidong <cyd@stupidchicken.com>
7019
7020 * xdisp.c: Remove dead code.
7021 (handle_invisible_prop, next_overlay_string): Defer call to
7022 setup_for_ellipsis.
7023 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7024
70252008-08-15 Chong Yidong <cyd@stupidchicken.com>
7026
7027 * xfaces.c (lookup_derived_face): Properly handle possible zero
7028 return value of get_lface_attributes.
7029 (merge_faces): Don't tell lookup_derived_face to signal an error
7030 if face is not found.
7031
7032 * dired.c (Fdirectory_files): Doc fix.
7033
7034 * process.c (make_process): Initialize kill_without_query struct
7035 member.
7036
70372008-08-15 Eli Zaretskii <eliz@gnu.org>
7038
7039 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7040 Alternative calculation of totphys for Visual Studio 6.
7041
7042 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7043
7044 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7045 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7046 All users changed.
7047 (stat): Only root directory passed to GetDriveType. Allow RAM
7048 disk as well as local fixed disk when w32-get-true-file-attributes
7049 is set to `local'.
7050 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7051 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7052 (w32_cached_id, w32_add_to_cache): New functions.
7053 (get_name_and_id): Look account names in the cache before calling
7054 lookup_account_sid.
7055 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7056 New initialization flags.
7057 (globals_of_w32): Initialize them to zero.
7058 (w32_system_process_attributes): Use w32_cached_id and
7059 w32_add_to_cache.
7060
70612008-08-14 Lawrence Mitchell <wence@gmx.li>
7062
7063 * lread.c (Fread_char, Fread_char_exclusive): If no character
7064 event is read before timeout is reached, return nil, rather than
7065 converting to a number.
7066
70672008-08-14 Chong Yidong <cyd@stupidchicken.com>
7068
7069 * fns.c (use_dialog_box): Doc fix.
7070
7071 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7072 on OS X.
7073
70742008-08-13 Chong Yidong <cyd@stupidchicken.com>
7075
7076 * frame.c (Qns_parse_geometry): New var.
7077 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7078
70792008-08-11 Chong Yidong <cyd@stupidchicken.com>
7080
7081 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7082 space character in calculating tabs.
7083
70842008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7085
7086 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7087
70882008-08-10 Glenn Morris <rgm@gnu.org>
7089
7090 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7091 silence gcc "limited range of data type" warnings in some
7092 make_fixnum_or_float calls.
7093
70942008-08-09 Eli Zaretskii <eliz@gnu.org>
7095
7096 * w32.c (w32_system_process_attributes): If the process does not
7097 exist, return nil.
7098
7099 * w32.c: Include thelp32.h, psapi.h and coding.h.
7100 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7101 declarations.
7102 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7103 (Process32Next_Proc): New typedefs.
7104 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7105 (g_b_init_process32_next, g_b_init_open_thread_token)
7106 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7107 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7108 (g_b_init_get_process_working_set_size)
7109 (g_b_init_global_memory_status_ex): New static variables.
7110 (globals_of_w32): Initialize them.
7111 (create_toolhelp32_snapshot, process32_first, process32_next)
7112 (open_thread_token, impersonate_self, revert_to_self)
7113 (get_process_memory_info, get_process_working_set_size)
7114 (global_memory_status, global_memory_status_ex): New wrapper
7115 functions.
7116 (w32_list_system_processes, w32_system_process_attributes)
7117 (enable_privilege, restore_privilege, ltime, process_times):
7118 New functions.
7119 (convert_time_raw): New function.
7120 (convert_time): Remove conversion of FILETIME into time in 100
7121 nsec units, call convert_time_raw instead.
7122
7123 * process.h (w32_list_system_processes, w32_system_process_attributes):
7124 Add prototypes.
7125 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7126 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7127 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7128 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7129
7130 * process.c (Fsystem_process_attributes): Doc fix.
7131
71322008-08-08 Chong Yidong <cyd@stupidchicken.com>
7133
7134 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7135 a continued multi-char glyph; if so, advance to the actual glyph.
7136
71372008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7138
7139 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7140
7141 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7142 (.m.o): Use it.
7143 * config.in: Regenerate.
7144
71452008-08-07 Chong Yidong <cyd@stupidchicken.com>
7146
7147 * xdisp.c (redisplay_window): Revert last change.
7148 (try_window): Check bottom scroll margin too.
7149
71502008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7151
7152 * config.in: Regenerate.
7153
7154 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7155 -list-load-path-shadows'.
7156 (nsgui.h): Reduce number of things depending on it.
7157
71582008-08-06 Chong Yidong <cyd@stupidchicken.com>
7159
7160 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7161 instead of window-end which does the wrong thing at eob.
7162 (try_cursor_movement): Minor optimization.
7163 (redisplay_window): If scroll margin is defined, don't assume
7164 window doesn't need scrolling.
7165
71662008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7167
7168 * config.in: Regenerate.
7169
7170 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7171 (mostlyclean): Don't delete *.d under NS.
7172
7173 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7174
71752008-08-06 Kenichi Handa <handa@m17n.org>
7176
7177 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7178
71792008-08-06 Andreas Schwab <schwab@suse.de>
7180
7181 * config.in: Regenerate.
7182
71832008-08-05 Chong Yidong <cyd@stupidchicken.com>
7184
7185 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7186 forcing a window start.
7187
7188 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7189 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7190
71912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7192
7193 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7194 argument.
7195
71962008-08-05 Juanma Barranquero <lekktu@gmail.com>
7197
7198 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7199 <scroll-down-aggressively, before-change-functions>:
7200 <after-change-functions>: Reflow docstrings.
7201
72022008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7203 Ken Raeburn <raeburn@gnu.org>
7204
7205 Dock menu customization, based on a patch by Ken Raeburn, plus some
7206 other fixes.
7207 * nsmenu.m (dockMenu): New variable.
7208 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7209
7210 * nsterm.h (dockMenu): Declare.
7211
7212 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7213 (ns_term_init): Initialize dockMenu.
7214 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7215 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7216 left.
7217
7218 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7219
72202008-08-04 Chong Yidong <cyd@stupidchicken.com>
7221
7222 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7223
7224 * config.in: Regenerate.
7225
72262008-08-04 Seiji Zenitani <zenitani@mac.com>
7227
7228 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7229
72302008-08-04 Chong Yidong <cyd@stupidchicken.com>
7231
7232 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7233
72342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7235
7236 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7237
7238 * keyboard.h: Comment an #endif.
7239
7240 * lisp.h (have_menus_p): Adjust comment.
7241
7242 * menu.c (find_and_return_menu_selection): Fix comparison with
7243 client_data.
7244
7245 * nsmenu.m (popup_activated_flag): New variable.
7246 (popup_activated): New function.
7247 (menu-or-popup-active-p): New exported lisp definition.
7248 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7249 when popup done.
7250 (ns_popup_dialog): Set popup_activated_flag.
7251
7252 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7253 version for GNUstep (handled by conditional typedef in nsterm.m).
7254 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7255 in rgb.txt).
7256
7257 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7258
7259 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7260
7261 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7262
7263 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7264 shortcircuit if popup_activated like GTK and X toolkit.
7265
7266 * m/inter386.h: Change DARWIN to DARWIN_OS.
7267
7268 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7269 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7270 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7271 comment on NO_SOCK_SIGIO.
7272
72732008-08-03 Chong Yidong <cyd@stupidchicken.com>
7274
7275 * nsterm.m (windowDidResize): Remove stopModal call.
7276
72772008-08-03 Andreas Schwab <schwab@suse.de>
7278
7279 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7280 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7281
72822008-08-02 Chong Yidong <cyd@stupidchicken.com>
7283
7284 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7285 Don't use uninitialized pointer variable when using getrlimit.
7286
72872008-08-02 Jason Rumney <jasonr@gnu.org>
7288
7289 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7290
72912008-08-02 Eli Zaretskii <eliz@gnu.org>
7292
7293 * alloc.c (NSTATICS): Bump to 0x640.
7294
7295 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7296
7297 * lisp.h: Add prototype for directory_files_internal.
7298
7299 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7300 New functions.
7301 (syms_of_process): Defsubr them. Add initializations for various
7302 Q* symbols used in procfs_system_process_attributes.
7303 (procfs_list_system_processes, procfs_system_process_attributes)
7304 [HAVE_PROCFS]: New functions.
7305 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7306 (procfs_get_total_memory): New functions.
7307
73082008-08-01 Juanma Barranquero <lekktu@gmail.com>
7309
7310 * xfaces.c (Fx_load_color_file): Fix previous change;
7311 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7312
73132008-08-01 Michael Albinus <michael.albinus@gmx.de>
7314
7315 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7316
73172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7318
7319 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7320
73212008-08-01 Chong Yidong <cyd@stupidchicken.com>
7322
7323 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7324
7325 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7326 define NSApplicationDelegateReplySuccess.
7327 (EmacsView -converstationIdentifier): Use long instead of
7328 NSInteger for GNUstep, since it doesn't have NSInteger.
7329
7330 * xmenu.c: Revert last change.
7331
7332 * keyboard.h: Fix last change.
7333
73342008-08-01 Juanma Barranquero <lekktu@gmail.com>
7335
7336 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7337 on Windows.
7338
73392008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7340
7341 Warning clearing and clean-up in NS port.
7342 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7343 Add prototypes.
7344 * nsgui.h (FACE_DEFAULT): Remove, unused.
7345 (XGCValues): Change colors to unsigned long.
7346 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7347 nsterm.m.
7348 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7349 (ns_list_fonts): Remove, unused.
7350 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7351 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7352 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7353 (nsfont_draw): Compare face colors to 0, not nil.
7354 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7355 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7356 (-addSubmenuWithTitle:): Use NSMenuItem class.
7357 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7358 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7359 (ns_clip_to_row): Make gc arg a BOOL.
7360 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7361 ns_clip_to_row() call.
7362 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7363 used). Cast FRAME_FONT assignments.
7364 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7365 (ns_string_to_lispmod): Change arg to const char.
7366 (ns_term_init): Use NSMenuItem class.
7367 (EmacsApp -openFile:): Move to different section of file.
7368 (EmacsApp -application:openFiles:): Don't return a value, call
7369 -replyToOpenOrPrint:.
7370 (EmacsView -keyDown:): Fix up cast.
7371 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7372 (EmacsView -menuDown:): Cast tag in call to
7373 find_and_call_menu_selection().
7374 (ns_list_fonts): Remove, unused.
7375 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7376 (ns_fontname_to_xlfd): Make static.
7377 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7378 Remove prototypes (now in keyboard.h).
7379 (next_menubar_widget_id): Remove, unused.
7380 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7381 Remove prototypes (now in keyboard.h).
7382 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7383
73842008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7385
7386 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7387 (floatfns.o): Depend on syssignal.h.
7388 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7389
7390 * systty.h: Fix previous change that removed BSD_TERMIOS.
7391 Add comments to #ifdefs.
7392
73932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7394
7395 * w32fns.c (w32-load-color-file): Remove.
7396 (x-open-connection): Use renamed Fx_load_color_file.
7397 * xfaces.c (x-load-color-file): Add.
7398 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7399 Emacs.clr.
7400 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7401
74022008-07-31 Michael Albinus <michael.albinus@gmx.de>
7403
7404 * dbusbind.c (Fdbus_call_method_asynchronously)
7405 (Fdbus_method_error_internal): New defuns.
7406 (xd_read_message): Handle also reply messages.
7407 (Vdbus_registered_functions_table): Extend docstring.
7408
74092008-07-31 Juanma Barranquero <lekktu@gmail.com>
7410
7411 * keyboard.c (gobble_input): Fix previous change.
7412
74132008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7414
7415 * bitmaps/README:
7416 * xfns.c:
7417 * termcap.c:
7418 * term.c:
7419 * syswait.h:
7420 * systty.h:
7421 * systime.h:
7422 * syssignal.h:
7423 * sysdep.c:
7424 * process.h:
7425 * process.c:
7426 * print.c:
7427 * ndir.h:
7428 * lread.c:
7429 * keyboard.c:
7430 * getpagesize.h:
7431 * floatfns.c:
7432 * fileio.c:
7433 * emacs.c:
7434 * doc.c:
7435 * dispnew.c:
7436 * dired.c:
7437 * data.c:
7438 * callproc.c:
7439 * buffer.c:
7440 * README:
7441 * Makefile.in:
7442 * s/template.h:
7443 * s/msdos.h:
7444 * m/vax.h: Remove VMS support.
7445 * s/vms.h:
7446 * vlimit.h:
7447 * uaf.h:
7448 * temacs.opt:
7449 * param.h:
7450 * ioctl.h: Remove file.
7451
74522008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7453
7454 * s/ms-w32.h (MULTI_KBOARD): Remove.
7455 * xterm.c:
7456 * xselect.c:
7457 * xfns.c:
7458 * window.c:
7459 * w32term.c:
7460 * w32fns.c:
7461 * terminal.c:
7462 * termhooks.h:
7463 * term.c:
7464 * sysdep.c:
7465 * keyboard.h:
7466 * keyboard.c:
7467 * frame.h:
7468 * frame.c:
7469 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7470 * config.in: Regenerate.
7471
74722008-07-30 Jason Rumney <jasonr@gnu.org>
7473
7474 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7475
7476 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7477 (w32font_open_internal): Get unicode version of textmetrics.
7478 Don't enable or disable glyph indices here.
7479 (w32font_open): Disable use of glyph indices.
7480
7481 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7482
74832008-07-30 Chong Yidong <cyd@stupidchicken.com>
7484
7485 * minibuf.c (Vread_buffer_function): Doc fix.
7486
74872008-07-30 John Paul Wallington <jpw@pobox.com>
7488
7489 * minibuf.c (read_buffer_completion_ignore_case): New var.
7490 (Fread_buffer): Use it.
7491
74922008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7493
7494 * systty.h (sensemode): Remove empty #if. Remove reference to
7495 BSD_TERMIOS, unused.
7496
7497 * sysdep.c: Remove reference to DGUX.
7498 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7499
7500 * config.in: Regenerate.
7501
75022008-07-30 Jason Rumney <jasonr@gnu.org>
7503
7504 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7505
75062008-07-29 Jason Rumney <jasonr@gnu.org>
7507
7508 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7509 is populated.
7510 (uniscribe_encode_char): Always use uniscribe.
7511 Avoid using context if cache is populated.
7512
75132008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7514
7515 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7516 open menu.
7517
7518 * gtkutil.c (menu_nav_ended): Remove.
7519 (create_menus): Remove signal connect for menu_nav_ended.
7520
75212008-07-28 Chong Yidong <cyd@stupidchicken.com>
7522
7523 * xdisp.c (redisplay_window): Check return value of
7524 compute_window_start_on_continuation_line before forcing a window
7525 start.
7526
75272008-07-28 Jason Rumney <jasonr@gnu.org>
7528
7529 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7530
7531 * w32term.c (w32_enable_unicode_output, cleartype_active):
7532 Remove obsolete display options.
7533 (x_draw_glyph_string_background): Don't use old cleartype_active
7534 workaround.
7535 (w32_initialize): Remove cleartype_active initialization.
7536 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7537
75382008-07-28 Andreas Schwab <schwab@suse.de>
7539
7540 * lisp.h (init_weak_hash_tables, syms_of_font)
7541 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7542 (remove_hash_entry): Don't declare.
7543 * eval.c (maybe_call_debugger): Make static and move before use.
7544 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7545 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7546 * xterm.h (x_set_frame_alpha): Declare.
7547
75482008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7549
7550 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7551 (create_menus): Connect selection-done to menu_nav_ended.
7552
75532008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7554
7555 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7556 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7557 parameter with read of 'alpha' one.
7558 (Qns_frame_parameter): Remove.
5582fbc7 7559 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7560 (next-selection-coding-system, Vselection_coding_system)
7561 (Vnext_selection_coding_system): Drop.
7562
75632008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7564
7565 * nsfns.m (do-applescript, do_applescript): Rename to
7566 ns-do-applescript, ns_do_applescript, and move within file.
7567
75682008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7569
7570 Remove support for Mac Carbon.
7571 * mactoolbox.c:
7572 * macterm.h:
7573 * macterm.c:
7574 * macselect.c:
7575 * macmenu.c:
7576 * macgui.h:
7577 * macfns.c:
7578 * mac.c: Remove file.
7579 * s/darwin.h:
7580 * m/intel386.h:
7581 * xfaces.c:
7582 * xdisp.c:
7583 * window.c:
7584 * tparam.c:
7585 * termhooks.h:
7586 * termcap.c:
7587 * term.c:
7588 * syssignal.h:
7589 * sysselect.h:
7590 * sysdep.c:
7591 * process.c:
7592 * lread.c:
7593 * lisp.h:
7594 * keyboard.c:
7595 * image.c:
7596 * fringe.c:
7597 * frame.h:
7598 * frame.c:
7599 * fontset.c:
7600 * font.h:
7601 * font.c:
7602 * fns.c:
7603 * fileio.c:
7604 * emacs.c:
7605 * dispnew.c:
7606 * dispextern.h:
7607 * config.in:
7608 * atimer.c:
2ae37cf0 7609 * Makefile.in: Remove code for Carbon.
aac0c6e3 7610
f0131492 76112008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7612
7613 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7614
76152008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7616
7617 * macterm.h (kCGBitmapByteOrder32Host): New define for
7618 non-universal SDKs.
7619
7620 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7621 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7622
7623 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7624 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7625
76262008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7627
7628 * w32inevt.c: Include dispextern.h.
7629
76302008-07-26 Andreas Schwab <schwab@suse.de>
7631
7632 * print.c (print_object): Fix off-by-one in last change.
7633
76342008-07-25 Juanma Barranquero <lekktu@gmail.com>
7635
7636 * term.c (syms_of_term): Don't initialize default_orig_pair,
7637 default_set_foreground and default_set_background on Windows.
7638
76392008-07-25 Jason Rumney <jasonr@gnu.org>
7640
7641 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7642 ScriptItemize. Clean up return value checking. Remove unused
7643 variables.
7644 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7645 shaping engine.
7646
7647 * w32font.c (w32font_has_char): Handle the case where we can't
7648 determine the script for a character.
7649
76502008-07-25 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * term.c (syms_of_term): Initialize default_orig_pair,
7653 default_set_foreground, and default_set_background.
7654
7655 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7656 clash (bug#86).
7657 (getloadavg): Callers changed.
7658
7659 * image.c (svg_load_image): Fix last change.
7660 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7661 image size is valid. Use g_object_unref instead of deprecated
7662 rsvg_handle_free to free rsvg handle.
7663 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7664
76652008-07-25 Jason Rumney <jasonr@gnu.org>
7666
7667 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7668 surrogates before looking up glyph index.
7669 (w32font_text_extents): Encode as surrogates if falling back to
7670 functions that need UTF-16 wide chars.
7671
7672 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7673 BMP as surrogates before looking up glyph index.
7674
76752008-07-25 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * image.c (svg_load_image): Check for failure in return value of
7678 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7679
76802008-07-25 Jason Rumney <jasonr@gnu.org>
7681
7682 * w32font.c (Fx_select_font): Reverse sense of second arg.
7683
76842008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7685
7686 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7687 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7688
7689 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7690 (PURESIZE): Use it.
7691
76922008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7693
7694 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7695 * m/alpha.h (TEXT_END):
7696 * m/ibmrs6000.h (TEXT_END):
7697 * m/macppc.h (TEXT_END):
7698 * s/darwin.h (TEXT_END):
7699 * s/msdos.h (TEXT_END): Remove, unused.
7700 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7701 * s/cygwin.h: Remove comment.
7702
7703 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7704 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7705 * m/intel386.h (DOT_GLOBAL_START):
7706 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7707 (USG): Remove, file not used on USG platforms.
7708
7709 * Makefile.in (HAVE_X11): Remove empty #else.
7710
77112008-07-24 Andreas Schwab <schwab@suse.de>
7712
7713 * fileio.c (Finsert_file_contents): Properly adjust undo list
7714 after format conversion.
7715
77162008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7717
7718 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7719 (menu_nav_ended): Remove.
7720 (create_menus): Remove signal connect for menu_nav_ended.
7721 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7722 create_menus.
7723 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7724
77252008-07-23 Jason Rumney <jasonr@gnu.org>
7726
7727 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7728 with opened font.
7729 (w32font_open): Set font type to gdi.
7730
7731 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7732
77332008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7734
7735 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7736 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7737 defines it.
7738 * unexec.c (ADDR_CORRECT): Define unconditionally.
7739
7740 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7741
7742 * unexec.c: Remove code depending on !COFF and USG, the file is
7743 not used for such systems.
7744
7745 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7746 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7747 (LD_SWITCH_SYSTEM_1): Remove, update users.
7748
7749 * s/darwin.h (DATA_END):
7750 * m/intel386.h (DATA_END):
7751 * m/ibmrs6000.h (DATA_END):
7752 * m/alpha.h (DATA_END): Remove, unused.
7753
7754 * config.in: Regenerate.
7755 * s/ms-w32.h (subprocesses): Define unconditionally.
7756 * s/template.h (subprocesses): Update comment.
7757 * s/vms.h (subprocesses):
7758 * s/usg5-4.h (subprocesses):
7759 * s/hpux10-20.h (subprocesses):
7760 * s/gnu-linux.h (subprocesses):
7761 * s/cygwin.h (subprocesses):
7762 * s/bsd-common.h (subprocesses):
7763 * s/aix4-2.h (subprocesses):
7764 * s/darwin.h (subprocesses): Do not define, defined by default now.
7765
7766 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7767 Remove all references.
7768 (temacs): Add GNUstep specific ld flags.
7769
7770 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7771 similarly to what X does.
7772
77732008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7774
7775 * nsfns.m (x-list-fonts): Remove.
7776 (syms_of_nsfns): Drop the x-list-fonts declaration.
7777 * nsterm.m: Get rid of remaining "//" comments.
7778
77792008-07-22 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7782
7783 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7784 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7785 (Fns_own_selection_internal, Fx_disown_selection_internal)
7786 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7787
7788 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7789 ... */' style of docstrings. Doc fixes.
7790
77912008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7792
7793 * terminfo.c (UP, BC, PC): Undo previous change.
7794
7795 * nsfns.m: Rename ns prefixed functions/variables to the
7796 corresponding x versions. Update references.
7797
77982008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7799
7800 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7801
78022008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7803
7804 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7805 Remove forwarding functions.
7806 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7807 non-static.
7808 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7809 non-static.
7810 (ns_frame_parm_handlers): Use the new names.
7811 (syms_of_nsfns): Move to the end of file.
7812
7813 * nsterm.m (syms_of_nsterm): Move to the end of file.
7814
7815 * dispnew.c (init_display): Remove code for X10.
7816
78172008-07-22 Jason Rumney <jasonr@gnu.org>
7818
7819 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7820 bare drive.
7821
78222008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7823
7824 * nsterm.m (syms_of_nsterm): Remove debugging println.
7825
78262008-07-22 David Reitter <david.reitter@gmail.com>
7827
7828 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7829 Carbon implementation of the same functionality: execute arbitrary
7830 AppleScript code.
7831
78322008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7833
7834 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7835 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7836 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7837 (Fx_display_mm_height, Fx_display_mm_width)
7838 (Fx_display_backing_store, Fx_display_visual_class)
7839 (Fx_display_save_under, Fx_open_connection)
7840 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7841 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7842 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7843 (Fx_display_pixel_width, Fx_display_pixel_height)
7844 (Fx_display_usable_bounds, Fx_display_planes)
7845 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7846 ... */' style of docstrings.
7847
78482008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7849
7850 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7851 on this platform.
7852 (mips):
7853 * m/iris4d.h (mips): Do not define.
7854 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7855
7856 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7857
7858 * image.c:
7859 * nsfns.m:
7860 * nsselect.m:
7861 * nsterm.h:
7862 * nsterm.m: Rename ns prefixed functions/variables to the
7863 corresponding x versions. Update references.
7864
7865 * m/ibms390x.h (NO_REMAP): Do not undefine.
7866
7867 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7868
78692008-07-21 Chong Yidong <cyd@stupidchicken.com>
7870
7871 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7872 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7873 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7874 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7875 (Fns_display_mm_height, Fns_display_mm_width)
7876 (Fns_display_backing_store, Fns_display_visual_class)
7877 (Fns_display_save_under, Fns_open_connection)
7878 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7879 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7880 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7881 (Fns_display_pixel_width, Fns_display_pixel_height)
7882 (Fns_display_usable_bounds, Fx_display_planes)
7883 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7884
78852008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7886
7887 * print.c (print_object): Check print_depth before searching for
7888 circularities.
7889
78902008-07-21 Michael Albinus <michael.albinus@gmx.de>
7891
7892 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7893 only sprintf.
7894
78952008-07-21 Kenichi Handa <handa@m17n.org>
7896
7897 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7898
78992008-07-20 Andreas Schwab <schwab@suse.de>
7900
7901 * syntax.c (find_start_pos, find_start_value)
7902 (find_start_value_byte, find_start_begv, find_defun_start)
7903 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7904
79052008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7906
7907 * s/sol2-3.h: Insert contents of s/sol2.h.
7908 (LD_SWITCH_SYSTEM): Remove redundant definition.
7909 * s/sol2.h: Remove, unused.
7910
79112008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7912
7913 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7914
79152008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7916
7917 * Makefile.in (ns_appdir): Fix typo in find command.
7918
79192008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7920
7921 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7922
7923 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7924 added not supported anymore.
7925
7926 * s/usg5-4-2.h (LIBS_SYSTEM):
7927 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7928
7929 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7930 * s/lynxos.h (GETPGRP_NO_ARG):
7931 * s/hpux10-20.h (NO_SIOCTL_H):
7932 * s/gnu.h (GETPGRP_NO_ARG):
7933 * s/gnu-linux.h (NO_SIOCTL_H):
7934 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7935 * s/cygwin.h (GETPGRP_NO_ARG):
7936 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7937 (C_DEBUG_SWITCH): Remove duplicate definition.
7938
7939 * m/ibms390.h: Remove boilerplate comments.
7940
7941 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7942
7943 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7944 (wait_reading_process_output): Remove code for SunOS, platform not
7945 supported anymore. Use SOLARIS2 instead of sun.
7946
79472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7948
7949 * font.c (font_open_by_name): Under NS, default lface height to zero.
7950 (font_open_for_lface): Under NS, set size based on frame fontsize.
7951 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7952 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7953
79542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7955
7956 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7957 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7958 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7959 YES/NO.
7960 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7961 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7962 * Makefile.in (clean): Clear out build destination dir.
7963
79642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7965
7966 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7967 xterm, xselect.
7968 * lisp.h: Remove declaration of hash_remove.
7969 * nsgui.h: Remove redefinitions of hash_remove.
7970 * fns.c (hash_remove): Rename to hash_remove_from_table.
7971
79722008-07-19 Seiji Zenitani <zenitani@mac.com>
7973
7974 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7975 strdup() the family UTF8String before modifying it.
7976
79772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7978
7979 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7980 NS_FACE_BACKGROUND with 0 instead of nil.
7981 * nsfont.m (nsfont_draw): Same.
7982
79832008-07-19 Chong Yidong <cyd@stupidchicken.com>
7984
7985 * nsfns.m (ns_set_background_color): Fix crash.
7986
79872008-07-18 Chong Yidong <cyd@stupidchicken.com>
7988
7989 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7990
79912008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7992
7993 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7994
79952008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7996
7997 * gtkutil.c: Include <config.h> instead of "config.h".
7998
7999 * lisp.h (Foverlay_buffer): Add EXFUN.
8000
8001 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8002 child process to complete child_setup. Undo 2005-09-21 change.
8003
8004 * s/darwin.h: Mention setsid after vfork.
8005
80062008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8007
8008 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8009 Depend on macgui.h.
8010
8011 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8012 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8013
8014 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8015 and f19.
8016 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8017
8018 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8019 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8020 Remove enumerators.
8021
8022 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8023 Check if FACE_FROM_ID returns NULL.
8024
80252008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8026
8027 * w32inevt.c (change_frame_size): Remove extern declaration.
8028 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8029 change_frame_size.
8030
80312008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8032
8033 * getloadavg.c: Revert last change (2008-07-15).
8034
80352008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8036
8037 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8038 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8039 from configure.
8040
80412008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8042
8043 * s/sol2.h:
8044 * s/sol2-4.h: Reorganize conditionals.
8045
8046 * ecrt0.c: Remove code depending on m68000, not used anymore.
8047
8048 * fns.c (hash_remove): Make static.
8049 * lisp.h (hash_remove): Don't prototype.
8050
8051 * m/ibmrs6000.h:
8052 * m/ibms390x.h:
8053 * m/macppc.h: Remove boilerplate comments.
8054
8055 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8056 Solaris, which does not need them.
8057
8058 * m/vax.h: Remove comments about unsupported systems.
8059
8060 * s/darwin.h: Reorganize ifdefs.
8061
80622008-07-17 Andreas Schwab <schwab@suse.de>
8063
8064 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8065
80662008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8067
8068 Use SDATA. Follow coding convention of placing operators at
8069 beginning of next line rather than end of previous line, and placing
8070 spaces around infix operators.
8071
8072 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8073 in case it was defined already.
8074 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8075 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8076 ns_default.
8077 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8078 Lisp_Objects.
8079 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8080 (ns_defined_color, ns_color_to_lisp): Declare.
8081 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8082 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8083 it's accepted even with USE_LISP_UNION_TYPE.
8084 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8085 (update_frame_tool_bar): Remove apparently obsolete tests for
8086 non-integerness of f->tool_bar_lines.
8087 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8088 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8089 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8090 (nsfont_open): Don't confuse NULL for Qnil.
8091 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8092 * menu.h (find_and_call_menu_selection):
8093 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8094 (find_and_return_menu_selection): Always return something.
8095 * frame.h: Include dispextern.h for Display_Info.
8096 (display_x_get_resource): Declare.
8097
80982008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8099
8100 * syntax.c: Remove stdio.h include accidentally introduced in
8101 Emacs.app commit.
8102 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8103 NS_IMPL_COCOA.
8104 * keyboard.c (handle_async_input, input_available_signal): Remove
8105 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8106
81072008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8108
8109 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8110 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8111 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8112 Use SDATA.
8113
8114 * keymap.c: Remove all NS-specific code.
8115 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8116 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8117 where_is_preferred_modifier, return a different value depending on how
8118 preferred is the binding.
8119 (where_is_internal): Adjust accordingly.
8120 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8121 Adjust to new preferred_sequence_p.
8122 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8123 * keyboard.c (parse_solitary_modifier): Not static any more.
8124 * keyboard.h (parse_solitary_modifier): Declare.
8125
81262008-07-16 Andreas Schwab <schwab@suse.de>
8127
8128 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8129 of easymenu.
8130
81312008-07-16 Chong Yidong <cyd@stupidchicken.com>
8132
8133 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8134 that we don't move off the line.
8135
81362008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8137
8138 * keyboard.c (Qsuper): Remove.
8139 (parse_menu_item): Don't call where_is_internal specially for NS.
8140
81412008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8142
8143 * s/gnu-linux.h: Remove boilerplate comments.
8144
8145 * m/alpha.h (__ELF__): Consolidate conditions.
8146
8147 * m/m68k.h (linux): Use GNU_LINUX instead.
8148 Remove boilerplate comments.
8149
8150 * m/intel386.h: Undo refactoring from previous change.
8151 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8152 too, remove dead code.
8153 (linux): Use GNU_LINUX instead.
8154
81552008-07-16 Jason Rumney <jasonr@gnu.org>
8156
8157 * w32gui.h: Repeat 26 June changes lost by last change.
8158
81592008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8160
8161 * systty.h: Remove code for Aix on 386, unsupported platform.
8162
8163 * s/ms-w32.h: Remove boilerplate comments.
8164 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8165
8166 * s/gnu-linux.h (TERM): Remove support.
8167 (HAVE_SYSVIPC): Remove, unused.
8168 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8169 for this system.
8170
8171 * process.c: Remove support for IRIS, unused.
8172 Remove support for TERM, not relevant anymore.
8173
8174 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8175 used with the definition.
8176
8177 * s/aix4-2.h (static): Do not undef.
8178
8179 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8180 only used on Aix.
8181 (HAVE_SYSVIPC): Remove, unused.
8182
8183 * m/hp800.h (CANNOT_DUMP): Do not undef.
8184
8185 * m/alpha.h: Fix comment.
8186
8187 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8188 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8189 used by this configuration.
8190 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8191 * unexec.c: Remove code depending on HPUX and
8192 USG_SHARED_LIBRARIES, not used with this file. Remove code
8193 depending on IRIS, unused. Remove if 0-ed code.
8194
8195 * s/template.h: Remove comments about static.
8196
8197 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8198 Remove if 0-ed code.
8199 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8200 were the same as the default.
8201 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8202 Remove boilerplate comments.
8203 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8204 (HAVE_SYSVIPC): Remove, unused.
8205 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8206
8207 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8208 Remove boilerplate comments.
8209 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8210 Remove boilerplate comments.
8211 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8212 Remove boilerplate comments.
8213 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8214
8215 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8216 USG systems which do not use DATA_SEG_BITS.
8217 Refactor code. Remove boilerplate comments.
8218
8219 * m/ibms390.h:
8220 * m/m68k.h:
8221 * s/bsd-common.h:
8222 * s/cygwin.h:
8223 * s/darwin.h:
8224 * s/freebsd.h:
8225 * s/gnu.h:
8226 * s/msdos.h: Remove boilerplate comments.
8227
8228 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8229 do not use this file.
aac0c6e3
MR
8230 (IRIS_4D): Remove, unused.
8231
8232 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8233 do not use this file.
aac0c6e3
MR
8234 (SIGN_EXTEND_CHAR):
8235 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8236 * unexmips.c: Remove file, unused.
8237
8238 * editfns.c (Fuser_full_name): Replace the only use of
8239 USER_FULL_NAME with its value.
8240 * config.in: Regenerate.
8241
82422008-07-16 David Reitter <david.reitter@gmail.com>
8243
8244 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8245 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8246
82472008-07-16 Glenn Morris <rgm@gnu.org>
8248
8249 * emacs.c (system-type): Doc fix.
8250
82512008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8252
8253 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8254 If the cache doesn't work, let's fix it, rather than work around it.
8255
82562008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8257
8258 * Makefile.in: Correct additions for nsfont.o in last commit.
8259 * nsfont.m: New file (forgot last commit).
8260
82612008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8262
8263 * callproc.c (set_initial_environment): Initialize
8264 Vprocess_environment under CANNOT_DUMP (fixes crash when
8265 batch-compiling for bootstrap).
8266
82672008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8268 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8269
8270 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8271 fix crash due to different init order.
8272
82732008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8274
8275 Changes and additions for NeXTstep windowing system (Cocoa and
8276 GNUstep) support.
8277
8278 * Makefile.in:
8279 * config.in: Support defines and build commands for NS port.
8280 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8281 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8282 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8283 windowing.
8284 (struct face): Add synth_ital field.
8285 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8286 (init_display): Initialize Vinitial_window_system to "ns" when so
8287 compiled.
8288 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8289 (display_arg): Use under NS.
8290 (main): Under NS, allocate autorelease pool and handle command line
8291 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8292 (standard_args): Add NS-specific args.
8293 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8294 * font.c (DEFAULT_ENCODING): New variable.
8295 (font_find_for_lface): Use it.
8296 (syms_of_font): Load syms_of_nsfont under NS.
8297 * font.h: Declare nsfont_driver when compiled under NS.
8298 * fontset.c: When compiling under NS, include nsterm.h.
8299 (fontset_from_font): Autoconstruct fontset under NS.
8300 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8301 symbol, document and use it.
8302 (do_switch_frame): When for_deletion under Cocoa, add
8303 Fraise_frame(Qnil).
8304 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8305 (x_get_arg): Allow "yes" and "no" as boolean values.
8306 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8307 Qright under Cocoa.
8308 (focus-follows-mouse): Default to 0 under NS.
8309 * frame.h (enum output_method): Add output_ns.
8310 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8311 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8312 (FRAME_WINDOW_P): NS-specific definition.
8313 * fringe.c (max_used_fringe_bitmap): Make public.
8314 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8315 (getloadavg): Use NeXT code under descendant OS's.
8316 * image.c (includes and header section, x_create_bitmap_from_data)
8317 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8318 (image_background_transparent, x_clear_image_1)
8319 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8320 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8321 (x_to_xcolors, x_from_xcolors, x_disable_image)
8322 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8323 other GUIs, including XPM support using code originally written for
8324 Carbon GUI.
8325 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8326 using NS API.
8327 (image_ascent): Use font metrics macros instead of direct struct field
8328 access.
8329 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8330 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8331 Also, handle NS as GTK for menu bar purposes.
8332 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8333 toolkit where they differ.
8334 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8335 use cachelist, still needed under NS.
8336 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8337 (struct widget_value): Define it here for menu.c.
8338 * keymap.c (includes): Include modifier internals.
8339 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8340 NS.
8341 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8342 support for preferring sequences using certain modifiers, specified by
8343 the FIRSTONLY argument.
8344 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8345 under NS GNUstep implementation.
8346 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8347 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8348 * menu.c: Include nsterm.h under NS.
8349 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8350 (free_menubar_widget_tree_value, update_submenu_strings)
8351 (find_and_call_menu_selection): Treat NS as X and NT.
8352 (find_and_return_menu_selection): New function, used for popup menus.
8353 * nsgui.h:
8354 * nsterm.h:
8355 * nsfns.m:
8356 * nsimage.m:
8357 * nsmenu.m:
8358 * nsselect.m:
8359 * nsterm.m: New files.
8360 * process.c (wait_reading_process_output): Under NS, call ns_select()
8361 instead of plain select().
8362 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8363 beginning of buffer.
8364 * sysselect.h (init_process): Rename when compiling under Cocoa to
8365 avoid name conflict.
8366 * termhooks.h (display_info): Add ns_display_info to union.
8367 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8368 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8369 COCOA environment.
8370 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8371 unexec() signature. (Note, this will dump, but the resulting file
8372 crashes; unexosx is used instead; keeping around for reference and
8373 possible aid in getting dump working under GNUstep.)
8374 * w32gui.h (button_type, widget_value): Remove definitions (now in
8375 keyboard.h).
8376 * window.c: Include nsterm.h when compiling under NS.
8377 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8378 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8379 other GUI windowing systems.
8380 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8381 GTK.
8382 (x_consider_frame_title): Under NS, set icon type and frame
8383 modified-state indicator; use ns_set_name_as_filename() when using
8384 formatted title.
8385 (update_window_cursor): Make public when compiling under NS.
8386 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8387 (hourglass_atimer, Vhourglass_delay
8388 * xfaces.c (header section, init_frame_faces, clear_font_table)
8389 (defined_color, unload_color, x_face_list_fonts)
8390 (prepare_face_for_display): Add NS support parallel to other GUIs.
8391 Emulate GCs like other non-X GUIs.
8392 (split_font_name): Don't lowercase font name under NS.
8393 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8394 under NS.
8395 * s/darwin.h: Add support for compilation under NS.
8396
83972008-07-15 Jason Rumney <jasonr@gnu.org>
8398
8399 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8400 (w32_show_hourglass): Rename from show_hourglass.
8401 (w32_hide_hourglass): Rename from hide_hourglass.
8402 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8403 (Vhourglass_delay): Declare extern.
8404 (hourglass_started): Remove.
8405
8406 * xdisp.c (Vhourglass_delay): Remove static.
8407 (hourglass_started, start_hourglass, cancel_hourglass):
8408 Don't include these versions on WINDOWSNT.
8409
84102008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8411
8412 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8413 variables (formerly in xfns.c).
8414 (show_hourglass, hide_hourglass): New prototypes (same).
8415 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8416 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8417 in xfns.c).
8418 (syms_of_xdisp): Declare/initialize display-hourglass,
8419 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8420 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8421 formerly in xfns.c.
8422 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8423 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8424 (start_hourglass, cancel_hourglass): Remove.
8425 (show_hourglass, hide_hourglass): Remove prototypes and static
8426 modifiers.
8427 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8428 hourglass_atimer, hourglass_shown_p declaration/initialization.
8429 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8430 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8431 (start_hourglass, cancel_hourglass): Remove.
8432 (show_hourglass, hide_hourglass): Remove prototypes and static
8433 modifiers.
8434 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8435 hourglass_atimer, hourglass_shown_p declaration/initialization.
8436 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8437 (DEFAULT_HOURGLASS_DELAY): Remove.
8438 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8439 hourglass_shown_p declaration/initialization.
8440
84412008-07-14 Jason Rumney <jasonr@gnu.org>
8442
8443 * w32fns.c (w32_get_arg): Remove wrapper function.
8444 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8445 directly.
8446 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8447
84482008-07-14 Kenichi Handa <handa@m17n.org>
8449
8450 * xfont.c (xfont_open): Add workaround for X's bug.
8451
84522008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8453
8454 * fontset.c: Include <stdio.h> unconditionally.
8455
84562008-07-13 Michael Albinus <michael.albinus@gmx.de>
8457
8458 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8459 for filtering.
8460
84612008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8462
8463 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8464
8465 * m/macppc.h:
8466 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8467
8468 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8469 (SPECIAL_EMACS_INT):
8470 * m/ia64.h (SPECIAL_EMACS_INT):
8471 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8472 * s/gnu.h (NLIST_STRUCT):
8473 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8474 * s/gnu-linux.h (LINUX):
8475 * s/msdos.h (HAVE_FACES):
8476 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8477
8478 * systty.h:
8479 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8480 anymore.
8481
84822008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8483
8484 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8485 always defined as int.
8486
8487 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8488 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8489 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8490 * s/freebsd.h (HAVE_WAIT_HEADER):
8491 * s/bsd-common.h (HAVE_UNION_WAIT):
8492 * s/aix4-2.h (HAVE_WAIT_HEADER):
8493 * m/mips.h (HAVE_UNION_WAIT):
8494 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8495 (COFF, static): Do not define, they are undefined later in the file.
8496
8497 * process.c (update_status): Don't use a union.
8498 (status_convert):
8499 (sigchld_handler): Use int instead of WAITTYPE.
8500
85012008-07-12 Chong Yidong <cyd@stupidchicken.com>
8502
8503 * indent.c (Fvertical_motion): Restore hscroll before moving to
8504 goal column.
8505
85062008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8507
8508 * lisp.h: Remove left over code.
8509
85102008-07-11 Andreas Schwab <schwab@suse.de>
8511
8512 * lisp.h: Fix logic in last change.
8513
8514 * menu.h: New file.
8515 * menu.c: Include it.
8516 * xmenu.c: Likewise.
8517 * Makefile.in: Update dependencies.
8518
85192008-07-11 Kenichi Handa <handa@m17n.org>
8520
8521 * fontset.c (fontset_from_font): Cancel the previous change.
8522
85232008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8524
8525 * lisp.h:
8526 * w32heap.c:
8527 * emacs.c:
8528 * alloc.c: Replace all references of NO_UNION_TYPE with
8529 USE_LISP_UNION_TYPE.
8530
8531 * m/xtensa.h (NO_UNION_TYPE):
8532 * m/vax.h (NO_UNION_TYPE):
8533 * m/template.h (NO_UNION_TYPE):
8534 * m/sparc.h (NO_UNION_TYPE):
8535 * m/mips.h (NO_UNION_TYPE):
8536 * m/macppc.h (NO_UNION_TYPE):
8537 * m/m68k.h (NO_UNION_TYPE):
8538 * m/iris4d.h (NO_UNION_TYPE):
8539 * m/intel386.h (NO_UNION_TYPE):
8540 * m/ibms390x.h (NO_UNION_TYPE):
8541 * m/ibms390.h (NO_UNION_TYPE):
8542 * m/ibmrs6000.h (NO_UNION_TYPE):
8543 * m/ia64.h (NO_UNION_TYPE):
8544 * m/hp800.h (NO_UNION_TYPE):
8545 * m/arm.h (NO_UNION_TYPE):
8546 * m/amdx86-64.h (NO_UNION_TYPE):
8547 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8548 defining it the same.
8549
85502008-07-10 Chong Yidong <cyd@stupidchicken.com>
8551
8552 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8553
85542008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8555
8556 * fileio.c:
8557 * sysdep.c
8558 * systty.h:
8559 * m/ibmrs6000.h:
8560 * m/iris4d.h:
8561 * s/aix4-2.h:
8562 * s/freebsd.h:
8563 * s/gnu-linux.h:
8564 * s/hpux10-20.h:
8565 * s/hpux11.h:
8566 * s/netbsd.h:
8567 * s/sol2-3.h:
8568 * s/sol2-4.h:
8569 * s/sol2.h:
8570 * s/usg5-4.h:
8571 * s/vms.h: Remove references to unused variables.
8572
85732008-07-10 Andreas Schwab <schwab@suse.de>
8574
8575 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8576 pattern before matching the generic family.
8577
85782008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8579
8580 * unexec.c:
8581 * s/vms.h:
8582 * s/usg5-4-2.h:
8583 * s/sol2-5.h:
8584 * s/freebsd.h:
8585 * s/darwin.h: Remove dead code.
8586
8587 * m/template.h:
8588 * m/sparc.h:
8589 * m/mips.h:
8590 * m/m68k.h:
8591 * m/iris4d.h:
8592 * m/intel386.h:
8593 * m/ibms390x.h:
8594 * m/ibms390.h:
8595 * m/ia64.h:
8596 * m/hp800.h:
8597 * m/arm.h:
8598 * m/amdx86-64.h: Remove dead code and references to unused
8599 and compiler defined symbols.
8600
8601 * unexmips.c:
8602 * unexelf.c: Remove references to desupported systems.
8603
8604 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8605
8606 * m/powermac.h: Remove boilerplate comments.
8607 (NO_REMAP): Remove unused definition.
8608
8609 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8610 define them.
8611
86122008-07-10 Kenichi Handa <handa@m17n.org>
8613
8614 * xfont.c (xfont_open): Log the reason of failure.
8615
86162008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8617
8618 * fontset.c (fontset_get_font_group):
8619 * font.c (font_check_otf): Specify argument types.
8620
86212008-07-09 Kenichi Handa <handa@m17n.org>
8622
8623 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8624 non-ASCII char is found.
8625
8626 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8627 (reorder_font_vector): Change the arg preferred_family to font.
8628 Prefer the spec matching with font.
8629 (fontset_get_font_group): New function.
8630 (fontset_find_font): Change the format of an element of a realized
8631 fontset. Use fontset_get_font_group.
8632 (fontset_font): Try the current fontset, the default fontset, the
8633 fallbacks of the current fontset, and the fallbacks of the default
8634 fontset in this order.
8635 (face_for_char): Delete the shortcut to use the current font.
8636 (fontset_from_font): Don't set fonts for Latin in the fontset.
8637
8638 * font.h (font_make_object, font_match_p): Adjust prototypes.
8639
8640 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8641
8642 * font.c (font_make_object): New arg entity and pixelsize.
8643 (font_check_otf_features, font_check_otf): New functions.
8644 (font_match_p): Check :lang, :script, and :otf properties.
8645
8646 * xfont.c (xfont_open): Adjust it for the change of
8647 font_make_object.
8648 (xfont_text_extents): Fix initial setting of metrics.
8649
8650 * ftfont.c (struct ftfont_info): New member index, delete member
8651 fc_charset_idx. Make the member order compatible with struct
8652 xftfont_info.
8653 (fc_charset_table): Change charset names to registry names.
8654 (ftfont_pattern_entity): Delete the args registry and
8655 fc_charset_idx. Change the value of :font-entity property
8656 to (FONTNAME . INDEX). Always set :registry property to
8657 `iso10646-1'.
8658 (struct ftfont_cache_data): New struct.
8659 (ftfont_lookup_cache): New arg for_face.
8660 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8661 (ftfont_driver): Set the member otf_capability.
8662 (ftfont_get_charset): Adjust it for the change of
8663 fc_charset_table.
8664 (OTF_TAG_SYM): New macro.
8665 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8666 for the change of fc_charset_table.
8667 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8668 ftfont_pattern_entity. Add FC_INDEX to objset.
8669 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8670 and ftfont_pattern_entity.
8671 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8672 font_make_object, struct ftfont_info.
8673 (ftfont_has_char): Use ftfont_get_fc_charset.
8674 (ftfont_otf_features, ftfont_otf_capability): New functions.
8675 (ftfont_shape): Use ftfont_get_otf.
8676 (ftfont_text_extents): Fix initial setting of metrics.
8677
8678 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8679 member order compatible with struct ftfont_info.
8680 (xftfont_open): Add FC_CHARSET to the pattern. Set
8681 xftfont_info->ft_size. Don't unlock the face. Check BDF
8682 properties if appropriate.
8683 (xftfont_close): Unlock the face.
8684 (xftfont_anchor_point, xftfont_shape): Deleted.
8685 (syms_of_xftfont): Don't set members anchor_point and shape of
8686 xftfont_driver.
8687
8688 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8689 font_make_object.
8690
8691 * w32font.c (w32font_open): Adjust it for the change of
8692 font_make_object.
8693 (w32font_open_internal): Don't set properties of font_object here.
8694
86952008-07-08 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * macfns.c (x_create_tip_frame):
8698 * w32fns.c (x_create_tip_frame):
8699 * xfns.c (x_create_tip_frame): Pass parameter argument to
8700 face-set-after-frame-default.
8701
8702 * xfaces.c (Finternal_merge_in_global_face): Save merged
8703 attributes for the default face back into the face vector.
8704
87052008-07-08 Andreas Schwab <schwab@suse.de>
8706
8707 * fontset.h: Declare fontset_from_font. Don't declare
8708 new_fontset_from_font and fontset_from_font_name.
8709 * xterm.c: Include "fontset.h".
8710 * Makefile.in (xterm.o): Update dependencies.
8711
87122008-07-08 Glenn Morris <rgm@gnu.org>
8713
8714 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8715 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8716
87172008-07-07 Chong Yidong <cyd@stupidchicken.com>
8718
8719 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8720 (x_set_frame_parameters): Don't bind it.
8721
87222008-07-07 Juanma Barranquero <lekktu@gmail.com>
8723
8724 * w32fns.c (map_w32_filename): Declare extern.
8725
87262008-07-07 Jason Rumney <jasonr@gnu.org>
8727
8728 * w32term.c (WS_EX_LAYERED): Define if not already.
8729
87302008-07-06 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * xfaces.c (set_font_frame_param): Don't try to set the font
8733 parameter if it is still unspecified in the lface.
8734
87352008-07-05 Chong Yidong <cyd@stupidchicken.com>
8736
8737 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8738 face if it didn't already exist.
8739
8740 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8741
87422008-07-05 Andreas Schwab <schwab@suse.de>
8743
8744 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8745
87462008-07-05 Chong Yidong <cyd@stupidchicken.com>
8747
8748 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8749 word-wrapping.
8750 (IT_DISPLAYING_WHITESPACE): New macro.
8751 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8752 when word-wrapping. Simplify word-wrapping logic. Use correct
8753 pixel positions when saving copies of the iterator.
8754 (display_line): Use proper wrap point if the last character on a
8755 line was preceded by whitespace.
8756
87572008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8758
8759 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8760
87612008-07-04 Kenichi Handa <handa@m17n.org>
8762
8763 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8764
8765 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8766
87672008-07-02 Jason Rumney <jasonr@gnu.org>
8768
8769 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8770 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8771
8772 * xdisp.c (next_element_from_display_vector): Move assignment out
8773 of if statement.
8774
87752008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8776
8777 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8778
8779 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8780 (syms_of_fileio): Initialize and export them.
8781 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8782
8783 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8784 (Fsystem_move_file_to_trash): New function.
8785 (syms_of_w32fns): Export it to lisp.
8786
87872008-07-01 Jason Rumney <jasonr@gnu.org>
8788
8789 * w32font.c (w32font_text_extents): Don't count overhang as part
8790 of width.
8791
87922008-06-30 Miles Bader <miles@gnu.org>
8793
8794 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8795 Add `avoid_cursor_p' field.
8796
8797 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8798 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8799 (append_glyph, append_composite_glyph, produce_image_glyph)
8800 (append_stretch_glyph): Initialize avoid_cursor_p.
8801 (get_it_property): Rename from `get_line_height_property'.
8802 (x_produce_glyphs): Use get_it_property.
8803 (handle_line_prefix, push_display_prop): New functions.
8804 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8805 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8806 New variables.
8807 (syms_of_xdisp): Initialize them.
8808
88092008-06-30 Kenichi Handa <handa@m17n.org>
8810
8811 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8812 XftDefaultSubstitute (they are called in XftFontMatch).
8813 (xftfont_open): Fix args to ftfont_font_format.
8814
8815 * ftfont.c (fc_charset_table): New member lang.
8816 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8817 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8818 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8819 (ftfont_open): Fix args to ftfont_font_format.
8820 (ftfont_font_format): New arg filename.
8821
88222008-06-30 Chong Yidong <cyd@stupidchicken.com>
8823
8824 * xfaces.c (Finternal_merge_in_global_face): If default face was
8825 modified, realize it again. Update the font face attribute.
8826
88272008-06-29 Jason Rumney <jasonr@gnu.org>
8828
8829 * w32term.c (x_set_frame_alpha): Fix logic.
8830
88312008-06-29 Kenichi Handa <handa@m17n.org>
8832
8833 * fontset.c (Finternal_char_font): Return font-object instead of
8834 font-name.
8835
8836 * composite.c (get_composition_id): Fix the width calculation for TAB.
8837
88382008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8839
8840 * indent.c (Fvertical_motion): Properly handle float column arg.
8841
88422008-06-28 Jason Rumney <jasonr@gnu.org>
8843
8844 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8845 (pfnSetLayeredWindowAttributes): New function pointer.
8846 (w32_initialize): Initialize it when supported.
8847 (x_set_frame_alpha): New function.
8848
8849 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8850 (w32_frame_parm_handlers): Set alpha handler.
8851
8852 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8853
88542008-06-27 Jason Rumney <jasonr@gnu.org>
8855
8856 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8857 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8858 (w32_to_x_charset, x_to_w32_charset)
8859 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8860 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8861 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8862 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8863 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8864 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8865 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8866 (Qw32_charset_unicode): Remove.
8867 (syms_of_w32fns): Update for above changes.
8868
8869 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8870 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8871 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8872 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8873 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8874 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8875 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8876 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8877 (syms_of_w32font): Update for above changes.
8878
88792008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8880
8881 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8882 removed #if.
8883 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8884
88852008-06-26 Juanma Barranquero <lekktu@gmail.com>
8886 Eli Zaretskii <eliz@gnu.org>
8887
8888 * makefile.w32-in (LOCAL_FLAGS):
8889 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8890
8891 * sysdep.c (_spawnlp, _getpid):
8892 Declare with explicit _cdecl instead of _CRTAPI1.
8893
8894 * editfns.c (Fget_internal_run_time):
8895 Check for WINDOWSNT with #ifdef, not #if.
8896
88972008-06-26 Jason Rumney <jasonr@gnu.org>
8898
8899 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8900
8901 * w32term.c (x_draw_glyph_string_foreground)
8902 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8903 Use FONT_HANDLE macro.
8904 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8905
8906 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8907 (uniscribe_encode_char): Use FONT_HANDLE macro.
8908
8909 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8910 (w32font_text_extents): Use precast w32_font.
8911 (w32font_close): Free cached metrics.
8912 (w32font_open_internal): Allocate space for name on stack.
8913
89142008-06-26 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8917
89182008-06-26 Jason Rumney <jasonr@gnu.org>
8919
8920 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8921 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8922
89232008-06-26 Juanma Barranquero <lekktu@gmail.com>
8924
8925 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8926
89272008-06-26 Jason Rumney <jasonr@gnu.org>
8928
8929 * w32bdf.c, w32bdf.h: Remove obsolete files.
8930
8931 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8932
8933 * w32gui.h: Don't include w32bdf.h.
8934 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8935 Remove obsolete font support.
8936
8937 * w32font.h (struct w32font_info): Remove compat_w32_font.
8938 Add hfont member.
8939 (FONT_COMPAT): Remove obsolete macro.
8940
8941 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8942 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8943 (w32font_open_internal): Remove compat code. Set new hfont member.
8944 (Fx_select_font): Use new hfont member.
8945
8946 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8947 (uniscribe_encode_char): Use new hfont member.
8948
8949 * w32term.c (x_draw_glyph_string_foreground)
8950 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8951 (x_draw_glyph_string): Use metrics in w32font_info.
8952
89532008-06-26 Kenichi Handa <handa@m17n.org>
8954
8955 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8956
89572008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8958
8959 * unexnext.c:
8960 * m/ews4800.h:
8961 * m/hp9000s300.h:
8962 * m/ibm370aix.h:
8963 * m/mips-siemens.h:
8964 * m/ncr386.h:
8965 * m/next.h:
8966 * m/pmax.h:
8967 * m/powerpcle.h:
8968 * m/tandem-s2.h:
8969 * s/386bsd.h:
8970 * s/bsd386.h:
8971 * s/bsd4-1.h:
8972 * s/bsd4-2.h:
8973 * s/bsdos2-1.h:
8974 * s/bsdos2.h:
8975 * s/bsdos3.h:
8976 * s/bsdos4.h:
8977 * s/nextstep.h:
8978 * s/ultrix4-3.h:
8979 * s/usg5-0.h:
8980 * s/usg5-2-2.h:
8981 * s/usg5-2.h:
8982 * s/usg5-4-3.h:
8983 * s/ux4800.h:
8984 * s/uxpds.h:
8985 * s/uxpv.h: Remove support for obsolete systems.
8986 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8987 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8988 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8989 Remove, insert contents in s/aix4-2.h.
8990 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8991 * s/bsd4-3.h: Rename to ...
8992 * s/bsd-common.h: ... this.
8993 * data.c:
8994 * doc.c:
8995 * ecrt0.c:
8996 * emacs.c:
8997 * fileio.c:
8998 * floatfns.c:
8999 * keyboard.c:
9000 * mem-limits.h:
9001 * print.c:
9002 * process.c:
9003 * sysdep.c:
9004 * syssignal.h:
9005 * systty.h:
9006 * syswait.h:
9007 * term.c:
9008 * unexec.c:
9009 * unexelf.c:
9010 * unexhp9k800.c:
9011 * m/hp800.h:
9012 * m/ibmrs6000.h:
9013 * m/mips.h:
9014 * m/vax.h:
9015 * s/darwin.h:
9016 * s/freebsd.h:
9017 * s/gnu.h:
9018 * s/ms-w32.h:
9019 * s/msdos.h:
9020 * s/netbsd.h:
9021 * s/template.h: Remove references to obsolete variables.
9022
9023 * Makefile.in: Add dependencies for all unexec files.
9024 (admindir): Remove unused variable.
9025 (UNEXEC_SRC): Remove references.
9026
90272008-06-25 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * xfns.c (x_default_font_parameter): If Xft is available, first
9030 try Monospace-12 for the default font.
9031
90322008-06-25 Jason Rumney <jasonr@gnu.org>
9033
9034 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9035
90362008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9037
9038 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9039
9040 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9041
90422008-06-25 Juanma Barranquero <lekktu@gmail.com>
9043
9044 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9045 <scroll-conservatively>: Fix typo in docstring.
9046
9047 * xselect.c (Fx_send_client_event): Doc fix.
9048
90492008-06-25 Kenichi Handa <handa@m17n.org>
9050
9051 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9052
9053 * font.c (font_parse_fcname): Remove unused variables.
9054 (font_sort_entites): Delete the arg SPEC. Caller changed.
9055 Fix for the case of ! best_only.
9056 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9057
9058 * lisp.h (Fstring_to_unibyte): EXFUN it.
9059
9060 * character.h (str_to_unibyte): Extern it.
9061
9062 * character.c (str_to_unibyte): New function.
9063
9064 * fns.c (Fstring_to_unibyte): New function.
9065 (syms_of_fns): Defsubr it.
9066
90672008-06-24 Kenichi Handa <handa@m17n.org>
9068
9069 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9070 DPI too.
9071 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9072
90732008-06-24 Andreas Schwab <schwab@suse.de>
9074
9075 * Makefile.in (${lispsource}loaddefs.el): Rename from
9076 ../lisp/loaddefs.el.
9077 (bootstrap-clean): Do what distclean does but don't remove
9078 Makefile.
9079 (distclean): Depend on bootstrap-clean and remove Makefile.
9080
90812008-06-24 Chong Yidong <cyd@stupidchicken.com>
9082
9083 * buffer.h (struct buffer): New member word_wrap.
9084
9085 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9086 word-wrap.
9087 (init_buffer_once): Initialize them.
9088
9089 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9090 line_wrap enum possessing three possible values.
9091
9092 * termopts.h: Replace truncate_partial_width_windows with
9093 Vtruncate_partial_width_windows.
9094
9095 * dispnew.c (direct_output_for_insert): Avoid direct output when
9096 inserting a space with word wrap on.
9097
9098 * indent.c (compute_motion): Obey integer values of
9099 truncate-partial-width-windows.
9100
9101 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9102 replacing truncate_partial_width_windows.
9103 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9104 truncate only if the window width is below that integer.
9105 (start_display, resize_mini_window, produce_stretch_glyph)
9106 (display_string, move_it_in_display_line_to): Use line_wrap.
9107 (back_to_previous_visible_line_start, reseat_1): Reset
9108 string_from_display_prop_p.
9109 (display_line): Extend default face to end of line when wrapping.
9110
91112008-06-24 Kim F. Storm <storm@cua.dk>
9112
9113 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9114 to wrap continued lines at word boundaries.
9115
91162008-06-24 Jason Rumney <jasonr@gnu.org>
9117
9118 * font.c (Ffont_face_attributes): Multiply pixel size before point
9119 conversion to avoid multiplying rounding error.
9120
91212008-06-23 Jason Rumney <jasonr@gnu.org>
9122
9123 * w32term.c (x_draw_glyph_string_background)
9124 (x_draw_glyph_string): Remove old bdf font code.
9125
9126 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9127
91282008-06-22 Kenichi Handa <handa@m17n.org>
9129
9130 * font.c (font_find_for_lface): Try the adstyle specified in
9131 the property of LFACE_FONT of LFACE (if any).
9132
91332008-06-21 Seiji Zenitani <zenitani@mac.com>
9134 Ryo Yoshitake <ryo@shiftmode.net>
9135
9136 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9137
91382008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9139
9140 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9141 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9142 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9143 (witness-emacs): Remove.
9144 (lisp, shortlisp): Move loaddefs.el earlier.
9145 (mostlyclean): Forget about witness-emacs.
9146
91472008-06-22 Glenn Morris <rgm@gnu.org>
9148
9149 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9150 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9151
91522008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9153
9154 * Makefile.in (PRECOMP): Remove.
9155 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9156 (witness-emacs): Run `compile-first'.
9157 (.el.elc): Use the new compile-onefile target.
9158
91592008-06-21 Kenichi Handa <handa@m17n.org>
9160
9161 * xftfont.c (xftfont_open): Handle QCembolden only when
9162 FC_EMBOLDEN is defined.
9163
91642008-06-21 Andreas Schwab <schwab@suse.de>
9165
9166 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9167 (.el.elc): Likewise.
9168
91692008-06-21 Miles Bader <miles@gnu.org>
9170
9171 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9172 build dir, not the lisp source dir.
9173
91742008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9175
9176 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9177 (bootstrapclean): Remove.
9178 (.el.elc): New rule.
9179 (PRECOMP): New var.
9180 (../lisp/subdirs.el): Remove.
9181 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9182 (witness-emacs): New target.
9183 (mostlyclean): Remove witness-emacs as well.
9184 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9185 Add witness-emacs dependency.
9186
91872008-06-20 Chong Yidong <cyd@stupidchicken.com>
9188
9189 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9190 defined by the font.
9191
91922008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9193
9194 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9195 (bootstrap-clean): New target that keeps TAGS around.
9196 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9197 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9198
91992008-06-20 Jason Rumney <jasonr@gnu.org>
9200
9201 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9202 Remove obsolete font code.
9203
9204 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9205 to determine language support.
9206
92072008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9208
9209 * sysdep.c (cfsetspeed): New fun extracted from the code.
9210 (cfmakeraw): Move before first use.
9211
92122008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9213
9214 * sysdep.c (cfmakeraw): Provide fallback implementation.
9215 (serial_configure): Provide fallback implementation of cfsetspeed.
9216
92172008-06-20 Kenichi Handa <handa@m17n.org>
9218
9219 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9220 the pattern.
9221
9222 * fontset.c (fontset_from_font): Copy font_spec before changing
9223 the elements.
9224
9225 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9226
92272008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9228
9229 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9230 for explicit `font' parameters.
9231
9232 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9233
92342008-06-19 Kenichi Handa <handa@m17n.org>
9235
9236 * frame.c: Include <ctype.h>.
9237 (x_set_font_backend): Allow spacing characters in the X resource
9238 for FontBackend.
9239
92402008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9241
9242 * w32fns.c, xfns.c (Qfont_param): New var.
9243 (syms_of_w32fns): Initialize it.
9244 (x_default_font_parameter): Record explicit `font' into
9245 `font-parameter'.
9246
92472008-06-18 Kenichi Handa <handa@m17n.org>
9248
9249 * font.c (font_parse_xlfd): Fix previous change.
9250 (font_parse_fcname): Don't use :fc-unknown-spec.
9251 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9252 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9253 (font_add_log): Prepend the driver name to the resulting fonts.
9254
9255 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9256 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9257 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9258
9259 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9260 (QCembolden): New variables.
9261 (syms_of_xftfont): DEFSYM them.
9262 (xftfont_open): Call XftFontMatch. Don't trust the result of
9263 XftTextExtents8 if the pixel_size is less than 5.
9264
92652008-06-18 Andreas Schwab <schwab@suse.de>
9266
9267 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9268 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9269
92702008-06-18 Jason Rumney <jasonr@gnu.org>
9271
9272 * w32font.c (w32font_list, w32font_match): Add logging.
9273
9274 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9275
92762008-06-17 Chong Yidong <cyd@stupidchicken.com>
9277
9278 * font.c (font_parse_fcname): Store divider characters for
9279 unknown-spec list. For known key symbols, intern using correct
9280 symbol name.
9281
92822008-06-17 Kenichi Handa <handa@m17n.org>
9283
9284 * xfaces.c (realize_default_face): If the frame is not on window
9285 system, set the fontset of face to nil.
9286
92872008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9288
9289 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9290
92912008-06-16 Juanma Barranquero <lekktu@gmail.com>
9292
9293 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9294 (build_font_name_from_vector): Delete externs.
9295
9296 * xfaces.c (struct font_name): Don't declare.
9297
92982008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9299
9300 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9301
93022008-06-16 Chong Yidong <cyd@stupidchicken.com>
9303
9304 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9305
93062008-06-16 Juanma Barranquero <lekktu@gmail.com>
9307
9308 * font.c (Ffont_spec): Fix usage in docstring.
9309 (Ffont_face_attributes): Doc fix.
9310
93112008-06-16 Andreas Schwab <schwab@suse.de>
9312
9313 * font.c (Ffont_face_attributes): Fix definition.
9314
93152008-06-16 Jason Rumney <jasonr@gnu.org>
9316
9317 * font.h (font_style_symbolic_from_value): Remove.
9318
9319 * font.c (font_style_symbolic_from_value): Remove.
9320 (font_style_symbolic): Revert to pre 2008-06-13 version.
9321
9322 * w32font.c (w32_to_fc_weight): New function.
9323 (w32font_full_name, logfont_to_fcname): Use it.
9324
93252008-06-16 Kenichi Handa <handa@m17n.org>
9326
9327 * font.c (font_check_object): Delete it.
9328 (font_clear_cache): Check if a font-object is alive.
9329 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9330 font-object to nil.
9331 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9332 (font_at): Don't call font_check_object.
9333 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9334
93352008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9336
9337 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9338
93392008-06-16 Chong Yidong <cyd@stupidchicken.com>
9340
9341 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9342
93432008-06-15 Chong Yidong <cyd@stupidchicken.com>
9344
9345 * font.c (font_parse_fcname): Only one decimal point.
9346 (font_unparse_fcname): Handle data in family and foundry indices
9347 as symbols, not strings.
9348 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9349
9350 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9351
9352 * font.h (font_unparse_gtkname): Add prototype.
9353
93542008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9355
9356 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9357
93582008-06-15 Andreas Schwab <schwab@suse.de>
9359
9360 * font.c (font_update_drivers): Fix crash when no drivers match.
9361
93622008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9363
9364 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9365 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9366
93672008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9370
93712008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 * process.c (Fserial_process_configure, Fprocess_send_eof):
9374 Use EQ to compare Lisp_Objects.
9375
93762008-06-13 Jason Rumney <jasonr@gnu.org>
9377
9378 * w32fns.c (Fw32_select_font): Remove old font API function.
9379
9380 * w32font.c (logfont_to_fcname): New function.
9381 (Fx_select_font): New font dialog function compatible with
9382 GTK/fontconfig version.
9383
9384 * font.c (font_style_symbolic_from_value): New function.
9385 (font_style_symbolic): Use it.
9386
9387 * font.h (font_style_symbolic_from_value): Declare new function.
9388
93892008-06-13 Juanma Barranquero <lekktu@gmail.com>
9390
9391 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9392 <font-width-table>: Fix typos in docstrings.
9393
93942008-06-13 Daniel Engeler <engeler@gmail.com>
9395
9396 These changes add serial port access.
9397 * process.c: Add HAVE_SERIAL.
9398 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9399 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9400 (list_processes_1, select_wrapper, Fstop_process)
9401 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9402 (status_notify): Modify to handle serial processes.
9403 [HAVE_SERIAL] (Fserial_process_configure)
9404 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9405 New functions.
9406 * process.h (struct Lisp_Process): Add `type'.
9407 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9408 New functions.
9409 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9410 serial ports.
b71ac3dd 9411 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9412 * w32.h: Add FILE_SERIAL.
9413 (struct _child_process): Add ovl_read, ovl_write.
9414
94152008-06-13 Kenichi Handa <handa@m17n.org>
9416
9417 * dispextern.h (enum lface_attribute_index): New member
9418 LFACE_FOUNDRY_INDEX.
9419
9420 * font.c (font_score): Delete arg alternate_families. Check only
9421 weight, slant, width, and size. Ignore the difference of alias
9422 style symbols.
9423 (font_sort_entites): Adjust for the above change. Reflect the
9424 order of font-driver to scores.
9425 (font_list_entities): Don't check alternate_familes here.
9426 (font_clear_prop): Handle foundry.
9427 (font_update_lface): Don't parse "foundry-family" form here.
9428 Handle FONT_FOUNDRY_INDEX.
9429 (font_find_for_lface): Likewise. Handle alternate families here.
9430 If registry is nil, try iso8859-1 and ascii-0.
9431 (font_open_for_lface): Pay attention to size in ENTITY.
9432 (font_open_by_name): Simplify by calling font_load_for_lface.
9433 (free_font_driver_list): Delete it.
9434 (font_update_drivers): Preserve the order of backends.
9435 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9436 of font_score and font_sort_entites.
9437 (font_update_sort_order): Likewise.
9438
9439 * xfaces.c (LFACE_FOUNDRY): New macro.
9440 (check_lface_attrs): Check foundry.
9441 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9442 (merge_face_vectors): Check foundry.
9443 (merge_face_ref): Likewise.
9444 (Finternal_set_lisp_face_attribute): Likewise.
9445 (x_update_menu_appearance): Likewise.
9446 (Finternal_get_lisp_face_attribute): Likewise.
9447 (lface_hash): Likewise.
9448 (lface_same_font_attributes_p): Likewise.
9449 (x_supports_face_attributes_p): Likewise.
9450 (tty_supports_face_attributes_p): Likewise.
9451 (Finternal_set_alternative_font_family_alist): Intern strings.
9452 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9453 (realize_default_face): Set LFACE_FOUNDRY (lface).
9454
9455 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9456 font-driver at first.
9457
9458 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9459
94602008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9461
9462 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9463
94642008-06-12 Jim Meyering <meyering@redhat.com>
9465
9466 Make unexec_free handle NULL the same way free does.
9467 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9468
94692008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9470
9471 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9472 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9473 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9474 (WEAK_ALIAS): Simplify.
9475 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9476 when searching a unibyte buffer.
9477
94782008-06-12 Chong Yidong <cyd@stupidchicken.com>
9479
9480 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9481
94822008-06-12 Juanma Barranquero <lekktu@gmail.com>
9483
9484 * w32font.c: Include ctype.h.
9485
94862008-06-11 Jason Rumney <jasonr@gnu.org>
9487
9488 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9489 misreported as space.
9490 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9491 as aliases for registry iso10646-1.
9492
94932008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9494
9495 * buffer.c (clone_per_buffer_values): Skip `name'.
9496
94972008-06-11 Chong Yidong <cyd@stupidchicken.com>
9498
9499 * font.c (font_parse_fcname): Fix last change; accept decimal
9500 points in font size.
9501
95022008-06-10 Jason Rumney <jasonr@gnu.org>
9503
9504 * w32uniscribe.c (add_opentype_font_name_to_list):
9505 Skip non unicode fonts.
9506
95072008-06-10 Chong Yidong <cyd@stupidchicken.com>
9508
9509 * xfns.c (Fx_font_dialog): New function.
9510
9511 * gtkutil.c (xg_dialog_response_cb): Rename from
9512 xg_file_response_callback.
9513 (pop_down_dialog): Rename from pop_down_file_dialog.
9514 (xg_get_file_name): Callers changed.
9515 (xg_get_font_name): New function.
9516
9517 * gtkutil.h (xg_get_font_name): Insert prototype.
9518
95192008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9520
9521 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9522 x_underline_minimum_display_offset.
9523 (syms_of_xdisp): Declare it here rather than in xterm.c.
9524 * dispextern.h (underline_minimum_offset): Declare it.
9525 * w32term.c (x_draw_glyph_string): Use it.
9526 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9527 (syms_of_xterm): Don't declare it any more.
9528 (x_draw_glyph_string): Adjust to the new name.
9529
8719abec 95302008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9531
9532 * xterm.c (x_underline_minimum_display_offset): New var.
9533 (x_draw_glyph_string): Use it.
9534 (syms_of_xterm): Declare it.
9535
95362008-06-10 Chong Yidong <cyd@stupidchicken.com>
9537
9538 * font.c (font_parse_fcname): Accept GTK-style font names too.
9539
95402008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9541
9542 * dired.c (file_name_completion): Don't return t if the match is exact
9543 but with different capitalization.
9544 * minibuf.c (Ftry_completion): Simplify.
9545
9546 * window.c (Vwindow_point_insertion_type): New var.
9547 (set_window_buffer): Use it.
9548 (syms_of_window): Init and export it to Lisp.
9549
95502008-06-10 Kenichi Handa <handa@m17n.org>
9551
9552 * font.h (font_intern_prop): Prototype adjusted.
9553
9554 * font.c (font_intern_prop): New arg force_symbol.
9555 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9556 Adjust for the change of font_intern_prop.
9557
9558 * ftfont.c (ftfont_pattern_entity):
9559 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9560 (w32_registry):
9561 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9562 the change of font_intern_prop.
9563
95642008-06-09 Juanma Barranquero <lekktu@gmail.com>
9565
9566 * w32menu.c (digest_single_submenu): Declare extern.
9567
95682008-06-09 Jason Rumney <jasonr@gnu.org>
9569
9570 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9571
9572 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9573 (parse_single_submenu): Remove.
9574 (digest_single_submenu): Remove.
9575 (syms_of_w32menu): Don't initialise variables that have moved
9576 to menu.c.
9577 (set_frame_menubar): Sync with version in xmenu.c.
9578 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9579
9580 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9581 Make static again.
9582
95832008-06-09 Jason Rumney <jasonr@gnu.org>
9584
9585 Changes to w32 files related to the move of common menu code
9586 to menu.c on 2008-06-08 by Chong Yidong.
9587
9588 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9589 defs to w32gui.h.
9590 (single_keymap_panes, push_menu_item, push_menu_pane):
9591 Make globally visible.
9592
9593 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9594 (local_free, malloc_widget_value, free_widget_value)
9595 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9596 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9597 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9598 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9599 (menu_items, menu_items_allocated, menu_items_used)
9600 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9601 (init_menu_items, finish_menu_items, discard_menu_items)
9602 (grow_menu_items, push_submenu_start, push_submenu_end)
9603 (push_left_right_boundary, push_menu_pane, push_menu_item)
9604 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9605 (free_menubar_widget_tree_value, parse_single_submenu)
9606 (update_submenu_strings): Remove functions.
9607 (xmalloc_widget_value): Remove and declare extern.
9608
9609 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9610 (OBJ1): Build it.
9611
9612 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9613 (local_heap, local_alloc, local_free, malloc_widget_value)
9614 (free_widget_value): Define here.
9615
96162008-06-09 Kenichi Handa <handa@m17n.org>
9617
9618 * font.h (Qascii_0): Extern it.
9619
9620 * font.c (Qascii_0): New variable.
9621 (syms_of_font): DEFSYM it.
9622 (font_open_by_name): If the registry "iso8859-1" fails, try also
9623 "ascii-0".
9624
9625 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9626
96272008-06-08 Kenichi Handa <handa@m17n.org>
9628
9629 * .gdbinit (xfont): New command.
9630
96312008-06-08 Andreas Schwab <schwab@suse.de>
9632
9633 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9634 * Makefile.in (menu.o): Update dependencies.
9635
9636 * Makefile.in (obj): Always add menu.o.
9637 * emacs.c (main): Always call syms_of_menu.
9638 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9639
96402008-06-08 Chong Yidong <cyd@stupidchicken.com>
9641
9642 * Makefile.in: Compile menu.c.
9643
9644 * lisp.h: Declare syms_of_menu.
9645
9646 * emacs.c (main): Call syms_of_menu.
9647
9648 * keyboard.h: Relocate platform-independent menu definitions from
9649 xmenu.c.
9650
9651 * menu.c: New file. Relocate platform-independent menu
9652 definitions from xmenu.c. Suggested by Adrian Robert.
9653
9654 * xmenu.c: Remove platform-independent menu definitions.
9655 (menu_items menu_items_inuse, menu_items_allocated)
9656 (menu_items_used, menu_items_n_panes)
9657 (menu_items_submenu_depth): Move to keyboard.h.
9658 (init_menu_items, finish_menu_items, unuse_menu_items)
9659 (discard_menu_items, restore_menu_items, save_menu_items)
9660 (grow_menu_items, push_submenu_start, push_submenu_end)
9661 (push_left_right_boundary, push_menu_pane, push_menu_item)
9662 (keymap_panes, single_keymap_panes, single_menu_item)
9663 (list_of_panes, list_of_items, find_and_call_menu_selection)
9664 (xmalloc_widget_value, free_menubar_widget_value_tree)
9665 (parse_single_submenu, digest_single_submenu)
9666 (update_submenu_strings): Move to menu.c.
9667
96682008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9669
9670 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9671
96722008-06-06 Miles Bader <miles@gnu.org>
9673
9674 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9675 face, not frame default.
9676
96772008-06-05 Martin Rudalics <rudalics@gmx.at>
9678
9679 * window.c (pop_up_windows, pop_up_frames)
9680 (display_buffer_reuse_frames, Vpop_up_frame_function)
9681 (Vdisplay_buffer_function, Veven_window_heights)
9682 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9683 (Vspecial_display_function, Vsame_window_buffer_names)
9684 (Vsame_window_regexps, split_height_threshold)
9685 (Vsplit_window_preferred_function): Move those vars to window.el.
9686 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9687 (Fdisplay_buffer): Move those functions to window.el.
9688 (syms_of_window): Remove corresponding declarations.
9689 (display_buffer): New function.
9690 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9691 * dispnew.c (Flast_nonminibuf_frame): New function.
9692 * buffer.c (Fpop_to_buffer): Move to window.el.
9693
96942008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9695
9696 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9697
96982008-06-05 Kenichi Handa <handa@m17n.org>
9699
9700 * coding.c (detect_coding): Fix previous change.
9701 (detect_coding_system): Likewise.
9702
97032008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9704
9705 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9706
9707 * keymap.c (Vminibuffer_local_filename_must_match_map):
9708 Rename from Vminibuffer_local_must_match_filename_map.
9709 (syms_of_keymap):
9710 * minibuf.c (Fcompleting_read): Adjust accordingly.
9711 * commands.h: Rename declaration as well.
9712
97132008-06-05 Kenichi Handa <handa@m17n.org>
9714
9715 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9716 family name.
9717 (Ffont_put): Likewise.
9718
9719 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9720 current font-spec.
9721
9722 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9723 is unspecified.
9724
9725 * xfaces.c (realize_x_face): If the font-related face attributes
9726 are the same as those of default face, realize a new fontset from
9727 default->fontset.
9728 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9729
97302008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9731
9732 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9733 (move_it_in_display_line): New wrapper.
9734
9735 * window.c (window_scroll_pixel_based_preserve_x)
9736 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9737 (window_scroll_pixel_based, window_scroll_line_based):
9738 Use them to preserve column positions.
9739 (syms_of_window): Initialize them.
9740
9741 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9742 (HPOS . VPOS) pair.
9743
9744 * dispextern.h (move_it_in_display_line): Declare.
9745
97462008-06-05 Juanma Barranquero <lekktu@gmail.com>
9747
9748 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9749 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9750 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9751
97522008-06-04 Juanma Barranquero <lekktu@gmail.com>
9753
9754 * window.c (Fset_window_parameter): Doc fix.
9755 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9756
97572008-06-04 Joakim Verona <joakim@verona.se>
9758
9759 * window.h (struct window): Add new member window_parameters.
9760
9761 * window.c (Fwindow_parameters, Fwindow_parameter)
9762 (Fset_window_parameter): New defuns.
9763 (syms_of_window): Defsubr the new defuns.
9764 (make_window): Initialize window_parameters to nil.
9765
97662008-06-04 John Paul Wallington <jpw@pobox.com>
9767
9768 * eval.c (Fdefmacro): Doc fix.
9769
97702008-06-04 Kenichi Handa <handa@m17n.org>
9771
9772 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9773 Be sure to call setup_coding_system when we find a proper coding system.
9774 (detect_coding_system): Fix handling of coding->head_ascii.
9775
97762008-06-03 Andreas Schwab <schwab@suse.de>
9777
9778 * font.c (font_prop_validate_spacing): Fix last change.
9779
97802008-06-03 Kenichi Handa <handa@m17n.org>
9781
9782 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9783 (font_parse_fcname): Fix handling of unknown key.
9784
9785 * xfont.c (xfont_list): Try an alias.
9786
9787 * charset.c (char_charset): Return NULL if the arg charset_list is
9788 specified and C doesn't belong to any of them.
9789
97902008-06-02 Chip Coldwell <coldwell@redhat.com>
9791
9792 * font.c (font_pixel_size): Don't take cdr of an integer.
9793
97942008-06-02 Jim Meyering <meyering@redhat.com>
9795
9796 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9797 * alloc.c (xfree): Return right away for a NULL arg.
9798 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9799 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9800 * mac.c (create_apple_event_from_event_ref): Likewise.
9801 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9802 Likewise.
9803 * doprnt.c (doprnt1): Likewise.
9804 * frame.c (frame): Likewise.
9805 * keyboard.c (wipe_kboard): Likewise.
9806 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9807 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9808 * term.c (tty_default_color_capabilities, maybe_fatal)
9809 (delete_tty): Likewise.
9810 * w16select.c (string): Likewise.
9811 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9812 * w32bdf.c (w32_free_bdf_font): Likewise.
9813 * w32fns.c (w32_unload_font): Likewise.
9814 * w32font.c (w32font_close): Likewise.
9815 * window.c (size_window): Likewise.
9816 * xselect.c (receive_incremental_selection): Likewise.
9817 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9818 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9819 * w32.c (stat): Likewise.
9820
9821 Remove useless if-before-free tests.
9822 * editfns.c (Fset_time_zone_rule): Likewise.
9823 * lread.c (nosuffix): Likewise.
9824 * ralloc.c (get_bloc): Likewise.
9825 * regex.c (reg_free): Likewise.
9826 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9827 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9828 * xsmfns.c (smc_save_yourself_CB): Likewise.
9829
98302008-06-02 Kenichi Handa <handa@m17n.org>
9831
9832 * font.c (font_find_for_lface): Handle float font size.
9833 (font_open_for_lface): Likewise.
9834
9835 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9836 comparing the properties.
9837
98382008-06-01 Jason Rumney <jasonr@gnu.org>
9839
9840 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9841 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9842 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9843 Don't add empty script list.
9844 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9845
98462008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9847
9848 * Makefile.in (dot, dotdot): Remove, update users.
9849 ".." has been used elsewhere in the file for a long time.
9850 (LIBXT_STATIC): Remove conditional based on unused variable.
9851
98522008-06-01 Miles Bader <miles@gnu.org>
9853
9854 * xfaces.c (Vface_remapping_alist): New variable.
9855 (syms_of_xfaces): Initialize it.
9856 (enum named_merge_point_kind): New type.
9857 (struct named_merge_point): Add `named_merge_point_kind' field.
9858 (push_named_merge_point): Make cycle detection respect different
9859 named-merge-point kinds.
9860 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9861 Remove face-name alias resolution.
9862 (lface_from_face_name): New definition using
9863 `lface_from_face_name_no_resolve'.
9864 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9865 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9866 (get_lface_attributes): New definition that layers face-remapping on
9867 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9868 (lookup_basic_face): New function.
9869 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9870 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9871 `get_lface_attributes'.
9872 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9873 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9874 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9875
9876 * xdisp.c (init_iterator): Pass base_face_id through
9877 `lookup_basic_face' when we actually use it as a face-id.
9878 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9879 DEFAULT_FACE_ID.
9880
9881 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9882 lookup the initial face-id.
9883
9884 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9885
98862008-06-01 Juanma Barranquero <lekktu@gmail.com>
9887
9888 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9889 (Fremove_text_properties): Fix typos in docstrings.
9890
98912008-05-31 Kenichi Handa <handa@m17n.org>
9892
9893 * font.c (font_list_entities): Fix the car part of data to be
9894 stored in the cache.
9895
9896 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9897
98982008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9899
9900 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9901 Add a `test' argument so another predicate than `equal' can be used.
9902 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9903 (map_char_table): Remove unused vars `c' and `i'.
9904 * lisp.h (Foptimize_char_table): Adjust declaration.
9905 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9906
99072008-05-30 Kenichi Handa <handa@m17n.org>
9908
9909 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9910 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9911 defined.
9912
99132008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9914
9915 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9916 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9917 frame-local settings for the same variable.
9918
99192008-05-30 Kenichi Handa <handa@m17n.org>
9920
9921 * fontset.c (Ffont_info): Move to font.c.
9922 (syms_of_fontset): Delete defsubr of Sfont_info.
9923
9924 * font.c (font_style_to_value, font_score): Delete casting of the
9925 args to xstcasecmp.
9926 (register_font_driver): Increment num_font_drivers only when
9927 registering the driver globally.
9928 (Ffont_info): Move from fontset.c. Handle a font object too.
9929 (syms_of_font): Defsubr Sfont_info.
9930
99312008-05-29 Kenichi Handa <handa@m17n.org>
9932
9933 * coding.h (enum define_coding_utf8_arg_index): New enum.
9934 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9935 coding_attr_utf_bom.
9936 (enum utf_bom_type): Rename from utf_16_bom_type.
9937 (struct utf_16_spec): Adjust for the above change.
9938 (struct coding_system): Add utf_8_bom in `spec' union.
9939
9940 * coding.c (CODING_UTF_8_BOM): New macro.
9941 (enum coding_category): Delete coding_category_utf_8, add
9942 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9943 coding_category_utf_8_sig.
9944 (CATEGORY_MASK_UTF_8): Delete it.
9945 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9946 (CATEGORY_MASK_UTF_8_SIG): New macros.
9947 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9948 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9949 CATEGORY_MASK_UTF_8_SIG.
9950 (CATEGORY_MASK_UTF_8): New macro.
9951 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9952 (detect_coding_utf_8): Check BOM.
9953 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9954 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9955 (encode_coding_utf_16): Likewise.
9956 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9957 (detect_coding, detect_coding_system): Handle utf-8-auto.
9958 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9959 (syms_of_coding): Fix setting up of Vcoding_category_table.
9960
99612008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9962
9963 * process.c (Faccept_process_output): If `millisec' is non-nil,
9964 `seconds' default to 0.
9965 (wait_reading_process_output): Also return non-nil if we read output
9966 from a non-running process.
9967
99682008-05-29 Jason Rumney <jasonr@gnu.org>
9969
9970 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9971 `raster' specified.
9972 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9973 in the uniscribe backend, but disallow any font that has no
9974 unicode subrange support.
9975
99762008-05-29 Juanma Barranquero <lekktu@gmail.com>
9977
9978 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9979 Fix typos in docstrings.
9980
99812008-05-29 Kenichi Handa <handa@m17n.org>
9982
9983 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9984 (Fx_family_fonts): Set frame correctly.
9985
99862008-05-28 Jason Rumney <jasonr@gnu.org>
9987
9988 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9989
99902008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9991
9992 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9993 calling build_annotations.
9994
99952008-05-28 Juanma Barranquero <lekktu@gmail.com>
9996
9997 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9998 (Fencode_coding_string):
9999 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10000 <latin-extra-code-table>: Fix typos in docstrings.
10001 (syms_of_coding) <coding-system-alist>: Doc fix.
10002 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10003
100042008-05-28 Kenichi Handa <handa@m17n.org>
10005
10006 * fontset.c (Ffont_info): Don't call font_close_object.
10007
10008 * font.c (font_parse_family_registry): Use Ffont_put to validate
10009 foundry and family.
10010 (font_delete_unmatched): Don't check spacing.
10011 (font_list_entities): Add spacing to the spec to list fonts.
10012
10013 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10014 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10015
10016 * coding.c (encode_coding_raw_text): Fix previous change.
10017 (encode_coding_object): When the dst_object is a buffer and is
10018 different from src_object, move gap to PT.
10019
100202008-05-27 Chong Yidong <cyd@stupidchicken.com>
10021
10022 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10023
100242008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10025
10026 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10027 all branches. Compute it differently.
10028
10029 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10030
100312008-05-27 Juanma Barranquero <lekktu@gmail.com>
10032
10033 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10034 into "else if () ... else ...".
10035
100362008-05-27 Jason Rumney <jasonr@gnu.org>
10037
10038 * w32font.c (w32font_open_internal): Determine if glyph indices
10039 are likely to work here.
10040
100412008-05-27 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10044 draw overlap glyphs with appropriate highlighting.
10045
100462008-05-27 Kenichi Handa <handa@m17n.org>
10047
10048 * xfont.c (xfont_open): Fix calculation of font->average_width.
10049
100502008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10051
10052 * casefiddle.c (casify_object): Try to guess better whether the
10053 argument is a byte or a char.
10054
100552008-05-26 Andreas Schwab <schwab@suse.de>
10056
10057 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10058 Always send multiples of format size.
10059
10060 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10061
100622008-05-26 Jason Rumney <jasonr@gnu.org>
10063
10064 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10065 (compute_metrics): Don't set failure if we just cleared the cache.
10066 (w32_weight_table): Remove unused variable.
10067 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10068 backwards compatibility.
10069
100702008-05-25 Kenichi Handa <handa@m17n.org>
10071
10072 * w32term.c (x_draw_glyph_string):
10073 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10074
10075 * xfaces.c: Delete unused function prototypes.
10076 (xstrlwr, font_frame): Delete them.
10077 (clear_face_cache): Delete unused variable.
10078
10079 * xftfont.c (xftfont_open): Delete unused variable.
10080 If underline_thickness is not 1, adjust underline_position.
10081
10082 * ftxfont.c (ftxfont_open): Delete unused variable.
10083
10084 * fontset.c (face_for_char): Optimize for the case of no charset
10085 property.
10086
10087 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10088 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10089 (otf_open, font_otf_capability, generate_otf_features)
10090 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10091 Comment out by surrounding "#if 0" and "#endif" for the moment.
10092 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10093 (syms_of_font): Codes for accessing above commented out.
10094
100952008-05-24 Eli Zaretskii <eliz@gnu.org>
10096
10097 * w32proc.c: Include dispextern.h.
10098
10099 * w32.c: Include dispextern.h.
10100
101012008-05-23 Juanma Barranquero <lekktu@gmail.com>
10102
10103 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10104 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10105 Fix typos in docstrings.
10106
101072008-05-23 Jason Rumney <jasonr@gnu.org>
10108
10109 * xsmfns.c: Remove includes that are already included by config.h.
10110
101112008-05-23 Kenichi Handa <handa@m17n.org>
10112
10113 * charset.c (Qemacs, charset_emacs): New variables.
10114 (char_charset): Fix for non-Unicode characters.
10115 (syms_of_charset): Define charset_emacs.
10116
10117 * w32term.c (x_draw_glyph_string): Be sure to update
10118 s->underline_thickness and s->underline_position. Be sure to draw
10119 underline within the current line area.
10120
10121 * xterm.c (x_draw_glyph_string): Be sure to update
10122 s->underline_thickness and s->underline_position. Be sure to draw
10123 underline within the current line area.
10124
10125 * fontset.c: Delete unused variables and add casting for char *
10126 throughout the file.
10127 (fontset_font): Try the fallback fonts of the current fontset
10128 before consulting the default fontset.
10129
10130 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10131
10132 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10133
101342008-05-22 Jason Rumney <jasonr@gnu.org>
10135
10136 * font.c: Don't include strings.h.
10137
10138 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10139
10140 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10141 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10142 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10143 to call xstrcasecmp.
10144
10145 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10146
10147 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10148
10149 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10150
10151 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10152
101532008-05-22 Kenichi Handa <handa@m17n.org>
10154
10155 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10156
10157 * font.c (font_prop_validate_style): Adjust for the format
10158 change of font_style_table.
10159
10160 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10161 two args.
10162
10163 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10164 two args.
10165
101662008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10167
10168 * minibuf.c (keys_of_minibuf): Delete.
10169 * lisp.h (keys_of_minibuf): Delete.
10170 * emacs.c (main): Don't call keys_of_minibuf.
10171
101722008-05-22 Kenichi Handa <handa@m17n.org>
10173
10174 * ftfont.c (ftfont_resolve_generic_family): Rename from
10175 ftfont_list_generic_family. Return a single family for each
10176 generic family.
10177 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10178 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10179 Call font_add_log.
10180 (ftfont_match): Call font_add_log.
10181
10182 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10183 (FONT_DEBUG): Define it.
10184 (font_add_log): Extern it.
10185 (font_assert): Rename from xassert.
10186
10187 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10188 (xfont_list_family): Call font_add_log.
10189 (xfont_match): Likewise.
10190 (memq_no_quit): Delete.
10191
10192 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10193 call of Ffont_xlfd_name.
10194
10195 * xfaces.c (struct table_entry, slant_table, weight_table)
10196 (swidth_table): Move to font.c.
10197
10198 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10199 xassert are changed to font_assert. Delete many unused variables.
10200 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10201 New variables.
10202 (struct table_entry): Move from xfaces.c and modified.
10203 (weight_table, slant_table, width_table): Move from xfaces.c and
10204 contents adjusted for the change of struct table_entry.
10205 (font_style_to_value, font_style_symbolic): Adjust for the
10206 format change of font_style_table.
10207 (font_parse_family_registry): Don't overwrite existing foundry and
10208 family of font_spec.
10209 (font_score): Fix calculation of diff for sizes.
10210 (font_sort_entites): Call font_add_log.
10211 (font_delete_unmatched): Return a newly created list.
10212 (font_list_entities): Fix previous change. Call font_add_log.
10213 (font_matching_entity, font_open_entity, font_close_entity):
10214 Call font_add_log.
10215 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10216 (Finternal_set_font_style_table): Delete.
10217 (BUILD_STYLE_TABLE): New macro.
10218 (build_style_table): New function.
10219 (Vfont_log, font_log_env_checked): New variables.
10220 (font_add_log): New function.
10221 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10222 Declare Lisp variables "font-weight-table", "font-slant-table",
10223 "font-width-table", and "font-log". Initialize font_style_table.
10224
102252008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10226
10227 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10228
102292008-05-21 Seiji Zenitani <zenitani@mac.com>
10230 Ryo Yoshitake <ryo@shiftmode.net>
10231
10232 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10233 (Vframe_alpha_lower_limit): New variable.
10234 (x_set_alpha): New function.
10235
10236 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10237
10238 * xfns.c (x-create-frame, Qalpha):
10239 Initialize the frame parameter `alpha'.
10240 * xterm.c (OPAQUE, OPACITY): New.
10241 (x_set_frame_alpha): New function.
10242 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10243
10244 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10245 * w32fns.c (w32_frame_parm_handlers): Likewise.
10246
102472008-05-20 Jason Rumney <jasonr@gnu.org>
10248
10249 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10250 truetype fonts to opentype list.
10251
102522008-05-20 Juanma Barranquero <lekktu@gmail.com>
10253
10254 * fontset.c (Ffontset_info): Doc fix.
10255 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10256 <ignore-relative-composition>: Fix typos in docstrings.
10257
10258 * font.c (syms-of-font) <font-encoding-alist>:
10259 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10260 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10261 (Ffont_otf_alternates): Doc fixes.
10262
102632008-05-20 Kenichi Handa <handa@m17n.org>
10264
10265 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10266 font.h through out the file.
10267 (FONT_DRIVERS): Rename from FONTOBJ.
10268 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10269 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10270
10271 * emacs.c (main): Call syms_of_font unconditionally.
10272
10273 * font.h (find_font_encoding): Extern it.
10274
10275 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10276 fontset.c.
10277 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10278 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10279 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10280 only when HAVE_WINDOW_SYSTEM is defined.
10281 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10282 when HAVE_WINDOW_SYSTEM is defined.
10283
10284 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10285 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10286
10287 * xfaces.c: Include font.h unconditionally.
10288 (merge_face_ref, merge_face_vectors)
10289 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10290
102912008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10292
10293 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10294 indirect_variable.
10295 * eval.c (lisp_indirect_variable): New fun.
10296 (Fuser_variable_p): Use it.
10297
102982008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10299
10300 * lisp.h (indirect_variable):
10301 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10302 Use Lisp_Symbol pointers rather than Lisp_Object.
10303 Adjust callers.
10304 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10305 To this end, change calling-convention.
10306
10307 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10308 if some non-hidden buffers are selected by string&pred.
10309
103102008-05-19 Chong Yidong <cyd@stupidchicken.com>
10311
10312 * process.c (wait_reading_process_output): Always check status
10313 when in batch mode.
10314
103152008-05-19 Kenichi Handa <handa@m17n.org>
10316
10317 * font.c (font_list_entities): Fix handling of cache.
10318 (font_matching_entity): Likewise.
10319
10320 * ftfont.c (cs_iso8859_1): Delete.
10321 (ft_face_cache): New variable.
10322 (struct ftfont_info): New member fc_charset_idx.
10323 (ftfont_build_basic_charsets): Delete.
10324 (fc_charset_table): New variable.
10325 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10326 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10327 Callers changed.
10328 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10329 (ftfont_spec_pattern): New argument fc_charset_idx.
10330 Check registry more rigidly. Change callers.
10331 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10332 change of :font-entity property of the font.
10333
10334 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10335 property of the font.
10336
103372008-05-18 Juanma Barranquero <lekktu@gmail.com>
10338
10339 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10340 (Funencodable_char_position, Fcheck_coding_systems_region)
10341 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10342 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10343 (Ffind_operation_coding_system, Fset_coding_system_priority)
10344 (Fcoding_system_eol_type): Doc fixes.
10345
103462008-05-17 Glenn Morris <rgm@gnu.org>
10347
10348 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10349
103502008-05-16 Eli Zaretskii <eliz@gnu.org>
10351
10352 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10353 and st_gid.
10354
10355 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10356 HAVE_WINDOW_SYSTEM is not defined.
10357
10358 * xfaces.c (merge_face_ref, merge_face_vectors)
10359 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10360 HAVE_WINDOW_SYSTEM is defined.
10361 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10362
103632008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10364
10365 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10366
103672008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10368
10369 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10370
103712008-05-15 Kenichi Handa <handa@m17n.org>
10372
10373 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10374 preference.
10375
103762008-05-15 Glenn Morris <rgm@gnu.org>
10377
10378 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10379
103802008-05-15 Chong Yidong <cyd@stupidchicken.com>
10381
10382 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10383 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10384
10385 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10386
103872008-05-15 Kenichi Handa <handa@m17n.org>
10388
10389 * ftfont.c (ftfont_list): Downcase family name to check generic
10390 families.
10391
10392 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10393 font-spec for QCfont value.
10394
10395 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10396 buffer. Check the return value of it.
10397
103982008-05-14 Jason Rumney <jasonr@gnu.org>
10399
10400 * w32term.c (w32_get_glyph_overhangs): Remove.
10401 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10402
104032008-05-14 Kenichi Handa <handa@m17n.org>
10404
10405 * font.c (font_prop_validate): Make nil a valid value.
10406 (font_clear_cache): Check if the cached vector of entities is nil
10407 or not.
10408
104092008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10410
10411 * emacs.c (main_thread): Conditionalize on
10412 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10413 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10414
10415 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10416 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10417 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10418
104192008-05-14 Kenichi Handa <handa@m17n.org>
10420
10421 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10422 has no corresponding coding system.
10423
104242008-05-14 Jason Rumney <jasonr@gnu.org>
10425
10426 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10427
10428 * w32font.h (w32font_open_internal): Update declaration.
10429
10430 * w32font.c (w32font_open_internal): Change last argument from
10431 w32font_info struct to font object. Fill in font object from
10432 font_entity. Get Outline metrics if possible. Use them to
10433 calculate underline position and thickness. Use xlfd name as name
10434 property. Don't set codepage.
10435 (w32font_open): Pass font_object to w32font_open_internal. Don't
10436 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10437 (w32font_draw): Use s->font.
10438 (clear_cached_metrics): Don't clear non-existent blocks.
10439
10440 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10441 font was not found.
10442 (x_draw_glyph_string): Use underline position and thickness from font.
10443
10444 * w32uniscribe.c (uniscribe_open): Pass font_object to
10445 w32font_open_internal.
10446
104472008-05-14 Kenichi Handa <handa@m17n.org>
10448
10449 These changes are to delete all legacy font-handling codes, and
10450 make Emacs use only font-backends.
10451
10452 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10453 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10454
10455 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10456
10457 * charset.h (Vcharset_non_preferred_head)
10458 (Vcurrent_iso639_language): Extern them.
10459
10460 * charset.c (Vcharset_non_preferred_head): New variable.
10461 (Vcurrent_iso639_language): New variable.
10462 (syms_of_charset): Declare it as a Lisp variable.
10463 (char_charset): Don't check non preferred charsets. As a last
10464 resort, return charset_unicode.
10465 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10466
10467 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10468 conditionals. Don't check enable_font_backend. Delete all codes
10469 used only when USE_FONT_BACKEND is not defined.
10470
10471 * dispextern.h (struct glyph_string): Change type of `font' to
10472 `struct font *'.
10473 (struct glyph_string): New member underline_position and
10474 underline_thickness.
10475 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10476 (struct face): Change type of `font' to `struct font *'. Remove
10477 members `font_name', `font_info_id'.
10478 (per_char_metric, encode_char): Delete externs.
10479 (calc_pixel_width_or_height): Adjust the prototype.
10480
10481 * emacs.c (enable_font_backend): Delete extern.
10482 (main): Don't set enable_font_backend. Don't check the command
10483 line argument "-disable-font-backend".
10484
10485 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10486 (enum font_property_index): New members FONT_DPI_INDEX,
10487 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10488 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10489 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10490 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10491 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10492 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10493 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10494 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10495 (struct font_spec, struct font_entity): New structs.
10496 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10497 (struct font): Many members from old "struct font_info" moved to
10498 here. Members font and entity deleted.
10499 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10500 the new font-related objects.
10501 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10502 (CHECK_FONT_GET_OBJECT): Likewise.
10503 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10504 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10505 (struct font_driver): New members case_sensitive anc check. Type
10506 of the member list and open changed.
10507 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10508 (font_symbolic_width, font_find_object, font_get_spec)
10509 (font_set_lface_from_name): Delete extern.
10510 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10511
10512 * font.c: Include <strings.h>.
10513 (enable_font_backend): Delete it.
10514 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10515 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10516 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10517 (null_string): Delete it.
10518 (null_vector): Make it static.
10519 (font_family_alist): Delete it.
10520 (Qnormal): Extern it.
10521 (QCextra, QClanguage): Delete it.
10522 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10523 (font_make_spec, font_make_entity, font_make_object)
10524 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10525 the string. Callers changed.
10526 (font_pixel_size): Adjusted for the format change of font-related
10527 objects.
10528 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10529 (font_style_to_value, font_style_symbolic): New function.
10530 (build_font_family_alist): Delete it.
10531 (font_registry_charsets): Use Fassoc_string instead of
10532 assq_no_quit.
10533 (font_prop_validate_symbol): Don't return null_string.
10534 (font_prop_validate_style): Adjusted for the change of
10535 style-related values in a font vector.
10536 (font_property_table): Delete entries for QClanguage and
10537 QCantialias, add entries for QCavgwidth.
10538 (get_font_prop_index): Delete the 2nd argument FROM.
10539 (font_prop_validate): Arguments changed.
10540 (font_put_extra): Adjusted for the change of font-related objects.
10541 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10542 (font_parse_fcname, font_unparse_fcname)
10543 (font_prepare_composition): Likewise.
10544 (font_parse_family_registry): Renamed from font_merge_old_spec.
10545 (otf_open): Delete the 1st arg entity.
10546 (font_otf_capability): Adjusted for the above change.
10547 (font_score): New arg alternate_families. Adjusted for the change
10548 of font-related objects.
10549 (font_sort_entites): New arg best_only.
10550 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10551 Delete them.
10552 (font_match_p): Check alternate families.
10553 (font_find_object): Delete it.
10554 (font_check_object): New function.
10555 (font_clear_cache): Adjusted for the change of font-related objects.
10556 (font_delete_unmatched): New arg.
10557 (font_list_entities): Call font_driver->list with a spec that
10558 doesn't specify style-related properties.
10559 (font_matching_entity): Arguments changed. Caller changed.
10560 (font_open_entity): Adjusted for the change of font-related objects.
10561 (font_close_object, font_has_char, font_encode_char)
10562 (font_get_name, font_get_spec): Likewise.
10563 (font_spec_from_name, font_clear_prop, font_update_lface):
10564 New functions.
10565 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10566 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10567 (font_at): Adjusted for the change of font-related objects.
10568 (font_range): New function.
10569 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10570 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10571 (Fcopy_font_spec, Fmerge_font_spec): New function.
10572 (Ffont_family_list): Renamed from list-families.
10573 (Finternal_set_font_style_table): Arguments changed.
10574 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10575 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10576 change of font-related objects.
10577 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10578
10579 * fontset.h (struct font_info): Delete it. Most members go to
10580 struct font.
10581 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10582 (enum FONT_SPEC_INDEX): Delete it.
10583 (font_info, list_fonts_func, load_font_func, query_font_func)
10584 (set_frame_fontset_func, find_ccl_program_func)
10585 (get_font_repertory_func, new_fontset_from_font_name): Delete
10586 externs.
10587 (fontset_from_font_name): Extern it.
10588 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10589 (FONT_INFO_FROM_FACE): Deleted.
10590 (face_for_font): Adjust prototype.
10591
10592 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10593 conditionals. Don't check enable_font_backend. Delete all codes
10594 used only when USE_FONT_BACKEND is not defined.
10595 (get_font_info_func, list_font_func, load_font_func)
10596 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10597 (get_font_repertory_func): Delete them.
10598 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10599 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10600 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10601 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10602 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10603 (fontset_compare_rfontdef): New function.
10604 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10605 rfont-defs by qsort. Adjusted for the change of font-group vector.
10606 (load_font_get_repertory): Deleted.
10607 (fontset_find_font): Use new macros to ref/set elements of
10608 font-def and rfont-def.
10609 (fontset_font): Fix the timing of remembering that no font for C.
10610 (free_face_fontset): Do nothing if the face has no fontset.
10611 (face_suitable_for_char_p): Use new macros to ref/set elements of
10612 rfont-def.
10613 (face_for_char): Likewise. Call face_for_char with font_object.
10614 (fs_load_font): Delete. Delete #pragma surrounding it.
10615 (fs_query_fontset): Use strcasecmp instead of strcmp.
10616 (generate_ascii_font_name): Adjusted for the format change of
10617 font-spec.
10618 (Fset_fontset_font): Likewise. Use new macros to set elements of
10619 font-def.
10620 (Fnew_fontset): Use font_unparse_xlfd to generate
10621 FONTSET_ASCII (fontset).
10622 (new_fontset_from_font_name): Deleted.
10623 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10624 a fontset is already created for the font. FIx updating of
10625 Vfontset_alias_alist.
10626 (fontset_ascii_font): Deleted.
10627 (Ffont_info): Adjusted for the format change of font-spec.
10628 (Finternal_char_font): Likewise.
10629 (Ffontset_info): Likewise.
10630 (syms_of_fontset): Don't check load_font_func.
10631
10632 * fns.c (internal_equal): Handle PREV_FONT.
10633
10634 * frame.h: Delete USE_FONT_BACKEND conditional.
10635
10636 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10637 conditionals. Don't check enable_font_backend. Delete all codes
10638 used only when USE_FONT_BACKEND is not defined.
10639 (x_set_font): Call x_new_font, not x_new_fontset2.
10640 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10641 already set for the frame.
10642
10643 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10644 a font-entity by font_make_entity. Use font_intern_prop instead
10645 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10646 font property. If a font is scalable, set avgwidth property to 0.
10647 Set font-entity property by font_put_extra.
10648 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10649 (ffont_driver): Adjusted for the change of struct font_driver.
10650 (ftfont_spec_pattern): New function.
10651 (ftfont_list): Return a list, not vector.
10652 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10653 (ftfont_list_family): Don't downcase names.
10654 (ftfont_free_entity): Deleted.
10655 (ftfont_open): Return a font-object. Adjusted for the change of
10656 struct font. Get underline_thickness and underline_position from
10657 font property. Don't update dpyinfo->smallest_font_height and
10658 dpyinfo->smallest_char_width.
10659 (ftfont_close): Don't free `struct font'.
10660 (ftfont_has_char): Adjusted for the format change of font-entity.
10661 (ftfont_encode_char, ftfont_text_extents): Likewise.
10662
10663 * ftxfont.c (ftxfont_list): Return a list, not vector.
10664 (ftxfont_open): Return a font-object. Adjusted for the change of
10665 struct font. Get underline_thickness and underline_position from
10666 font property. Don't update dpyinfo->smallest_font_height and
10667 dpyinfo->smallest_char_width.
10668 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10669 (ftxfont_draw): Adjusted for the change of struct font.
10670
10671 * image.c (image_ascent): Don't include "charset.h". Include
10672 "character.h" and "font.h".
10673
10674 * lisp.h (enum pvec_type): New member PREV_FONT.
10675 (Fassoc_string): EXFUN it.
10676
10677 * print.c: Include font.h.
10678 (print_object): Handle font-related objects.
10679
10680 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10681 conditionals. Don't check enable_font_backend. Delete all codes
10682 used only when USE_FONT_BACKEND is not defined.
10683 (handle_auto_composed_prop): Do nothing if it->f is not on a
10684 window system. Check how many following characters can be
10685 displayed by the same font.
10686 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10687 'struct font *'.
10688 (get_char_face_and_encoding): Assign the whole encoding task to
10689 the `encode-char' method of a font driver.
10690 (fill_composite_glyph_string): Adjusted for the change of `struct
10691 face' and `struct glyph_string'.
10692 (fill_glyph_string): Likewise.
10693 (get_per_char_metric): Arguments changed.
10694 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10695 and `struct glyph_string'.
10696 (produce_stretch_glyph, calc_line_height_property)
10697 (x_produce_glyphs): Likewise.
10698
10699 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10700 conditionals. Don't check enable_font_backend. Delete all codes
10701 used only when USE_FONT_BACKEND is not defined. Use
10702 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10703 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10704 (Qp): Extern them.
10705 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10706 Deleted.
10707 (struct font_name): Deleted.
10708 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10709 (compare_fonts_by_sort_order): New function.
10710 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10711 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10712 Deleted.
10713 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10714 compare_fonts_by_sort_order.
10715 (Fx_font_family_list): Call Ffont_family_list.
10716 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10717 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10718 (face_symbolic_slant, face_symbolic_swidth)
10719 (split_font_name_into_vector, build_font_name_from_vector)
10720 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10721 (font_rescale_ratio, split_font_name, build_font_name)
10722 (free_font_names, sort_fonts, x_face_list_fonts)
10723 (face_font_available_p, sorted_font_list, cmp_font_names)
10724 (font_list_1, concat_font_list, font_list, remove_duplicates):
10725 Deleted.
10726 (Fx_list_fonts): Use Ffont_list.
10727 (LFACE_AVGWIDTH): Deleted.
10728 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10729 by FONTP.
10730 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10731 (set_lface_from_font_name): Delete it.
10732 (set_lface_from_font): Renamed from
10733 set_lface_from_font_and_fontset. Caller changed. Don't set
10734 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10735 for face.
10736 (merge_face_vectors): Copy font-spec if necessary.
10737 Clear properties of the font-spec if necessary.
10738 (merge_face_ref): Clear properties of the font-spec if necessary.
10739 (Finternal_set_lisp_face_attribute): Likewise.
10740 (set_font_frame_param): Use font_load_for_lface to load a
10741 font-object, and call Fmodify_frame_parameters with it.
10742 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10743 font name by Ffont_xlfd_name.
10744 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10745 QCslant, and QCwidth.
10746 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10747 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10748 Compare fonts by EQ.
10749 (lookup_non_ascii_face): Deleted.
10750 (face_for_font): The 2nd argument changed.
10751 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10752 Check atomic font properties by case insensitive.
10753 (realize_non_ascii_face): Set face->overstrike correctly.
10754 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10755 (dump_realized_face): Get font name from
10756 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10757
10758 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10759 conditionals. Don't check enable_font_backend. Delete all codes
10760 used only when USE_FONT_BACKEND is not defined.
10761 (xic_create_xfontset): Original code deleted and renamed from
10762 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10763 (x_make_gc): Don't set GCFont in GCs.
10764 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10765 opened by "fixed".
10766 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10767 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10768 get_font_repertory_func.
10769
10770 * xfont.c: Include <stdlib.h> and "ccl.h".
10771 (struct xfont_info): New structure.
10772 (xfont_query_font): Deleted.
10773 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10774 moved from xterm.c.
10775 (xfont_driver): Adjusted for the change of struct font_driver.
10776 (compare_font_names): New function.
10777 (xfont_list_pattern): Sort font names case insensitively. Make
10778 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10779 (xfont_list): Return a list, not vector.
10780 (xfont_match): If the font doesn't have QCname property, generate
10781 a name from the other font properties.
10782 (xfont_open): Return a font-object. Adjusted for the change of
10783 struct font. Get underline_thickness and underline_position from
10784 font property. Don't update dpyinfo->smallest_font_height and
10785 dpyinfo->smallest_char_width.
10786 (xfont_close): Don't free struct font.
10787 (xfont_prepare_face): Adjusted for the change of struct font.
10788 (xfont_done_face): Deleted.
10789 (xfont_has_char): Adjusted for the change of struct font.
10790 (xfont_encode_char, xfont_draw): Likewise.
10791 (xfont_check): New function.
10792
10793 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10794 callback function.
10795 (xftfont_match): Adjusted for the format change of font-entity.
10796 (xftfont_open): Adjusted for the format change of font-entity and
10797 font-object. Adjusted for the change of struct font. Return a
10798 font-object. Don't update dpyinfo->smallest_font_height and
10799 dpyinfo->smallest_char_width.
10800 (xftfont_close): Block input while calling XftFontClose.
10801 (xftfont_prepare_face): Don't block input while calling
10802 xftfont_get_colors. Adjusted for the change of struct font.
10803 (xftfont_shape): Return value of error case fixed.
10804
10805 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10806
10807 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10808 conditionals.
10809 (FONT_WIDTH): Return (f)->max_width.
10810 (struct x_display_info): Delete member `font'.
10811 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10812 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10813 (struct x_output): Change type of `font' to `struct font *'.
10814
10815 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10816 conditionals. Don't check enable_font_backend. Delete all codes
10817 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10818 (x_per_char_metric, x_encode_char): Deleted.
10819 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10820 (x_compute_glyph_string_overhangs): Adjusted for the change of
10821 `struct face'.
10822 (x_draw_glyph_string_foreground)
10823 (x_draw_composite_glyph_string_foreground): Likewise.
10824 (x_draw_glyph_string): Likewise. Use font->underline_position and
10825 font->underline_thickness.
10826 (x_new_font): Renamed from x_new_fontset2.
10827 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10828 (x_check_font): Call `check' method of a font driver.
10829 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10830 (x_query_font, x_get_font_repertory): Deleted.
10831 (x_find_ccl_program): Renamed and moved to xfont.c.
10832 (x_redisplay_interface): Adjusted for the change of `struct
10833 redisplay_interface'.
10834
10835 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10836 conditionals. Don't check enable_font_backend. Delete all codes
10837 used only when USE_FONT_BACKEND is not defined. Surround non-used
10838 code by "#ifdef OLD_FONT" and "endif".
10839 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10840
10841 * w32font.h (struct w32font_info): New member.
10842 (FONT_COMPAT): New macro.
10843 (w32font_open_internal): Prototype adjusted.
10844
10845 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10846 OLD_FONT" and "endif".
10847
10848 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10849 conditionals. Don't check enable_font_backend. Delete all codes
10850 used only when USE_FONT_BACKEND is not defined.
10851 (w32font_open): Return a font-object. Make a font-object by
10852 font_make_object. Adjusted for the change of struct w32font_info.
10853 (w32font_close): Don't free struct font. Adjusted for the change
10854 of struct w32font_info.
10855 (w32font_encode_char, w32font_text_extents, w32font_draw):
10856 Adjusted for the change of struct w32font_info.
10857 (w32font_draw): Likewise.
10858 (w32font_list_internal): Return a list, not vector.
10859 (w32font_open_internal): Change the 4th arg to font-object.
10860 Adjusted for the change of struct w32font_info and font-object format.
10861 (add_font_name_to_list): Don't downcase names.
10862 (w32_enumfont_pattern_entity): Make a font-entity by
10863 font_make_entity. Adjusted for the format change of font-entity.
10864 Use FONT_SET_STYLE to set a style-related font property. If a
10865 font is scalable, set avgwidth property to 0. Set font-entity
10866 property by font_put_extra.
10867 (font_matches_spec): Adjusted for the format change of font-entity.
10868 (w32_weight_table, w32_decode_weight): New variables.
10869 (w32_encode_weight): New function.
10870 (fill_in_logfont): Adjusted for the format change of font-spec.
10871 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10872 weight value.
10873 (w32font_driver): Adjusted for the change of struct font_driver.
10874
10875 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10876 conditionals. Don't check enable_font_backend. Surround non-used
10877 code by "#ifdef OLD_FONT" and "endif".
10878 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10879 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10880
10881 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10882 conditionals. Don't check enable_font_backend. Delete all codes
10883 used only when USE_FONT_BACKEND is not defined. Surround non-used
10884 code by "#ifdef OLD_FONT" and "endif".
10885
10886 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10887 (uniscribe_open): Return value changed to font-object.
10888 Adjusted for the format change of font-object.
10889 (uniscribe_otf_capability): Adjusted for the change of struct font.
10890 (add_opentype_font_name_to_list): Don't downcase names.
10891 (uniscribe_font_driver): Adjusted for the change of struct
10892 font_driver.
10893
108942008-05-13 Chong Yidong <cyd@stupidchicken.com>
10895
10896 * dispnew.c (update_frame_1): Check if tty output is still valid
10897 before flushing it.
10898
108992008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10900
10901 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10902 to Gtk+ menus.
10903
109042008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10905
10906 * dired.c (file_name_completion): Tweak the code so as to always do it
10907 in a single pass. Tighten the scope of some variables.
10908
10909 * dired.c (Qdefault_directory): New var.
10910 (file_name_completion): Use it instead of Fexpand_file_name.
10911 (syms_of_dired): Initialize it.
10912
109132008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10914
10915 * fileio.c (double_dollars): Remove dead code.
10916
109172008-05-10 Eli Zaretskii <eliz@gnu.org>
10918
10919 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10920 Mention w32-get-true-file-attributes in doc string.
10921
10922 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10923
109242008-05-09 Glenn Morris <rgm@gnu.org>
10925
10926 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10927 2008-04-23.
10928
109292008-05-09 Eli Zaretskii <eliz@gnu.org>
10930
10931 Support for reporting owner and group of each file on MS-Windows:
10932 * dired.c (stat_uname, stat_gname): New functions, with special
10933 implementation for w32.
10934 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10935
10936 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10937 (dflt_group_name): New static variable.
10938 (dflt_group): Rename from the_group.
10939 (init_user_info): Init dflt_group fields. Get user's group name
10940 from LookupAccountSid.
10941 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10942 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10943 New initialization states.
10944 (globals_of_w32): Initialize them to zero. Initialize the default
10945 group name to "None".
10946 (GetFileSecurity_Name): New global var, the name of the function
10947 to call for GetFileSecurity.
10948 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10949 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10950 (get_file_security, get_security_descriptor_owner)
10951 (get_security_descriptor_group, is_valid_sid)
10952 (get_file_security_desc, get_rid, get_name_and_id)
10953 (get_file_owner_and_group): New functions.
10954 (stat): Use get_file_security_desc and get_file_owner_and_group to
10955 report the owner and primary group of each file. Don't ignore the
10956 high 32 bits of file's size, now that st_size is 64-bit wide.
10957 Fix test when to get true file attributes.
10958 (init_user_info): Use get_rid instead of equivalent inline code.
10959 (fstat): Don't ignore the high 32 bits of file's size.
10960
109612008-05-09 Chong Yidong <cyd@stupidchicken.com>
10962
10963 * image.c (png_load): Use correct bit-depth for setting background
10964 color.
10965
109662008-05-08 Eli Zaretskii <eliz@gnu.org>
10967
10968 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10969 epa-hook.elc.
10970
109712008-05-08 Juanma Barranquero <lekktu@gmail.com>
10972
10973 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10974
109752008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10976
10977 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10978 because the original parameters are in pure storage now.
10979 (mac_window): Remove unused params. Update callers.
10980
109812008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10982
10983 * lread.c (substitute_object_recurse): Use lower-level primitives.
10984 Don't signal errors when traversing sub-char-tables.
10985 Don't loop over all the possible characters when traversing char-tables.
10986
10987 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10988 just like we do in print.c.
10989
109902008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10991
10992 * minibuf.c (Ftry_completion): Remove code left over from when we used
10993 scmp instead of Fcompare_strings.
10994
109952008-05-04 Juanma Barranquero <lekktu@gmail.com>
10996
10997 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10998
109992008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11000
11001 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11002 Create bitmap context in native byte order.
11003
11004 * macterm.c (XDrawLine)
11005 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11006 context in native byte order.
11007
110082008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11009
11010 * config.in: Regenerate.
11011
11012 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11013 New definitions for Image I/O support.
11014 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11015 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11016 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11017 (mac_data_provider_release_data, image_load_image_io)
11018 [USE_MAC_IMAGE_IO]: New functions.
11019 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11020 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11021 (init_image_func_pointer) [MAC_OSX]: Remove function.
11022 (image_load_quartz2d) [MAC_OSX]: Check availability of
11023 CGImageCreateWithPNGDataProvider at compile time.
11024 Use lowercase `false' for boolean constant.
11025 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11026 Use image_load_image_io.
11027 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11028 Don't check MyCGImageCreateWithPNGDataProvider.
11029 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11030 Don't call init_image_func_pointer.
11031
11032 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11033
11034 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11035 Make variable non-static.
11036 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11037 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11038
11039 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11040 (RED_FROM_ULONG): Mask off higher bits.
11041 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11042
11043 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11044 Include AvailabilityMacros.h.
11045 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11046 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11047
110482008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11049
11050 * chartab.c (Fset_char_table_range): If range is t, really set all
11051 chars to that value.
11052
110532008-05-03 Eli Zaretskii <eliz@gnu.org>
11054
11055 * dired.c (Ffile_attributes): Don't allow the device number become
11056 negative.
11057
110582008-05-02 Daiki Ueno <ueno@unixuser.org>
11059
11060 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11061
110622008-05-02 Juri Linkov <juri@jurta.org>
11063
11064 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11065 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11066 DEFAULT argument as a list of default values in docstrings.
11067
110682008-05-01 Chong Yidong <cyd@stupidchicken.com>
11069
11070 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11071
110722008-05-01 Martin Rudalics <rudalics@gmx.at>
11073
11074 * dispnew.c (change_frame_size_1): Preserve small windows when
11075 shrinking frames by calling set_window_height|width with third
11076 arg 2.
11077
11078 * window.h (struct window): Replace field too_small_ok by field
11079 resize_proportionally.
11080
11081 * window.c (make_window): Initialize resize_proportionally.
11082 (enlarge_window): Temporarily set resize_proportionally to make
11083 sure that shrink_windows does scale the window proportionally.
11084 (shrink_windows): When window has resize_proportionally set try
11085 to shrink it proportionally by stealing from other windows.
11086 (struct saved_window, Fset_window_configuration)
11087 (compare_window_configurations): Handle resize_proportionally.
11088 (WINDOW_TOTAL_SIZE): New macro.
11089 (window_min_size, shrink_windows, size_window): Use it.
11090 (check_min_window_sizes): Remove. Invalid values of
11091 window-min-height|width are handled by window_min_size_2 now.
11092 (size_window, Fsplit_window, enlarge_window)
11093 (adjust_window_trailing_edge, grow_mini_window): Don't call
11094 check_min_window_sizes.
11095 (window_min_size_2, window_min_size_1, window_min_size):
11096 New argument safe_p for retrieving "safe" minimum sizes.
11097 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11098 (adjust_window_trailing_edge, grow_mini_window):
11099 Adjust arguments of window_min_size... functions.
11100 (shrink_windows): Argument min_size removed. New argument
11101 safe_p allows shrinking windows to their safe minimum sizes.
11102 Calculate minimum size and decide whether a window shall be
11103 deleted for each window individually.
11104 (size_window): When nodelete_p equals 2, tell shrink_windows to
11105 delete windows only if their new minimum size is no more safe.
11106 (shrink_window_lowest_first): Call window_min_size_1 to make
11107 sure to preserve modeline of bottom-most window when resizing
11108 the minibuffer.
11109 (Fset_window_configuration, Fcurrent_window_configuration)
11110 (compare_window_configurations): Do not handle
11111 window-min-height|width any more.
11112 (syms_of_window): Clarify window-min-height|width doc-strings.
11113
111142008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11115
11116 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11117 some more. Copy some of the code from Ftry_completions.
11118 Remove special case code that dates back to initial revision when the
11119 slash was only added when necessary and that can't trigger nowadays.
11120
111212008-04-27 Kenichi Handa <handa@m17n.org>
11122
11123 * font.c (font_prop_validate): Signal `error' instead of `font'.
11124
111252008-04-29 Jason Rumney <jasonr@gnu.org>
11126
11127 * w32fns.c (Fw32_battery_status): New defun.
11128 (syms_of_w32fns): Defsubr it.
11129
111302008-04-28 Andreas Schwab <schwab@suse.de>
11131
11132 * dired.c (file_name_completion): Fix another mixing of encoded
11133 and decoded names.
11134
111352008-04-28 Juanma Barranquero <lekktu@gmail.com>
11136
11137 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11138
111392008-04-27 Juanma Barranquero <lekktu@gmail.com>
11140
11141 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11142
111432008-04-27 Andreas Schwab <schwab@suse.de>
11144
11145 * dired.c (file_name_completion): Fix inappropriate mixing of
11146 encoded and decoded names.
11147
11148 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11149
11150 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11151
111522008-04-26 Eli Zaretskii <eliz@gnu.org>
11153
11154 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11155 2008-03-31, it's not needed anymore with `struct stat' definition
11156 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11157 for the same reasons.
11158
111592008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11160
11161 * m/sparc.h: Additional redefinitions for GNU/Linux.
11162
111632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11164
11165 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11166 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11167 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11168 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11169 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11170 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11171 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11172 Likewise.
11173
11174 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11175 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11176 (mac_ax_number_of_characters): Add externs.
11177 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11178 [USE_MAC_TSM]: Likewise.
11179 (mac_handle_text_input_event) [MAC_OSX]:
11180 Handle kEventTextInputOffsetToPos for no active input area case.
11181 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11182 (mac_handle_document_access_event)
11183 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11184 (install_application_handler) [MAC_OSX]: Register handlers for
11185 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11186 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11187 Register mac_handle_document_access_event.
11188
11189 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11190 Make functions non-static.
11191
111922008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11193
11194 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11195 (read_file_name_completion_ignore_case, insert_default_directory)
11196 (Qdefault_directory): Move to minibuffer.el.
11197 (Fread_file_name): Call the new `read-file-name' instead.
11198
111992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11200
11201 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11202 Make function non-static.
11203 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11204 Remove function.
11205 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11206 Move to mactoolbox.c.
11207 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11208
11209 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11210 (mac_rect_make): New macro.
11211
11212 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11213 instead of float.
11214 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11215 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11216 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11217 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11218 CGRectMake.
11219 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11220 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11221 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11222 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11223 instead of WindowRef in argument type.
11224 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11225 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11226 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11227 instead of DISPLAY. All uses changed.
11228 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11229 (x_calc_absolute_position): Simplify so as not to use
11230 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11231
11232 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11233 instead of WindowRef in argument type.
11234 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11235 [TARGET_API_MAC_CARBON]: Remove externs.
11236 (create_apple_event, mac_event_parameters_to_lisp)
11237 [TARGET_API_MAC_CARBON]: Add externs.
11238
11239 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11240 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11241 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11242 is clicked.
11243 (x_activate_menubar): Remove extern for saved_menu_event_location.
11244 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11245 Move from mac.c.
11246
112472008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11248
11249 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11250 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11251
112522008-04-23 Jason Rumney <jasonr@gnu.org>
11253
11254 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11255 attributes only for local files.
11256
11257 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11258 default to Qlocal.
11259
112602008-04-22 Juri Linkov <juri@jurta.org>
11261
11262 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11263 read-buffer-to-switch instead of using the letter "B".
11264
112652008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11266
11267 * fileio.c (Qdefault_directory): New variable.
11268 (Fread_file_name): Use it to pass `dir' to the completion functions.
11269
112702008-04-20 Chong Yidong <cyd@stupidchicken.com>
11271
11272 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11273
112742008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11275
11276 * keyboard.c (Vpre_help_message): Remove.
11277 (show_help_echo): Remove default C code.
11278
11279 * dired.c (directory_files_internal, file_name_completion):
11280 Only call ENCODE_FILE if the string is indeed decoded.
11281
112822008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11283
11284 * Makefile.in (TOOLKIT_DEFINES): Remove.
11285 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11286
112872008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11288
11289 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11290 (mactoolbox.o): New target.
11291
11292 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11293 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11294
11295 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11296 Use mac_set_frame_window_background instead of XSetWindowBackground.
11297 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11298 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11299 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11300 instead of SetWindowTitleWithCFString.
11301 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11302 Move function to mactoolbox.c.
11303 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11304 Use mac_set_window_modified instead of SetWindowModified.
11305 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11306 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11307 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11308 FrontNonFloatingWindow. Use mac_activate_window instead of
11309 ActivateWindow. Use mac_active_non_floating_window instead of
11310 ActiveNonFloatingWindow.
11311 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11312 Use mac_show_hourglass and mac_hide_hourglass.
11313 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11314 instead of GetGlobalMouse.
11315 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11316 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11317 Use mac_bring_window_to_front instead of BringToFront.
11318 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11319 mactoolbox.c.
11320 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11321 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11322 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11323 mactoolbox.c.
11324
11325 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11326 (XtPointer): Move typedef from macmenu.c.
11327 (enum button_type): Move enum from macmenu.c.
11328 (widget_value): Move typedef from macmenu.c.
11329 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11330 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11331 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11332 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11333 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11334 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11335 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11336 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11337 (Selection): Move typedef from macselect.c.
11338 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11339 macterm.c.
11340 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11341 (mac_is_window_collapsed, mac_bring_window_to_front)
11342 (mac_send_window_behind, mac_hide_window, mac_show_window)
11343 (mac_collapse_window, mac_front_non_floating_window)
11344 (mac_active_non_floating_window, mac_activate_window)
11345 (mac_move_window_structure, mac_move_window, mac_size_window)
11346 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11347
11348 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11349 (enum mac_menu_kind): Move enum to mactoolbox.c.
11350 (min_menu_id): Move variable to mactoolbox.c.
11351 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11352 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11353 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11354 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11355 [TARGET_API_MAC_CARBON]: Likewise.
11356 (XtPointer): Move typedef to macgui.h.
11357 (enum button_type): Move enum to macgui.h.
11358 (widget_value): Move typedef to macgui.h.
11359 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11360 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11361 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11362 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11363 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11364 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11365 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11366 (popup_activated_flag): Make variable non-static.
11367 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11368 (add_menu_item, fill_menu, dispose_menus):
11369 Move functions to mactoolbox.c.
11370 (restore_show_help_function, menu_target_item_handler)
11371 (install_menu_target_item_handler, mac_handle_dialog_event)
11372 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11373 [TARGET_API_MAC_CARBON]: Likewise.
11374 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11375 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11376 (find_and_call_menu_selection, name_is_separator): Make function
11377 non-static.
11378 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11379 to mactoolbox.c.
11380 (set_frame_menubar): Don't call install_menu_quit_handler.
11381 (menu_item_selection): New variable.
11382 (mac_menu_show): Use create_and_show_popup_menu.
11383 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11384 selection but set variable menu_item_selection. All uses changed.
11385 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11386 Call install_menu_quit_handler. Move to mactoolbox.c.
11387
11388 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11389 (Selection): Move typedef to macgui.h.
11390 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11391 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11392 Make variables non-static.
11393 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11394 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11395 Make functions non-static.
11396 (Vmac_service_selection) [MAC_OSX]: Likewise.
11397 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11398 (mac_valid_selection_target_p, mac_clear_selection)
11399 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11400 (mac_put_selection_value, mac_selection_has_target_p)
11401 (mac_get_selection_value, mac_get_selection_target_list)
11402 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11403 Move functions to mactoolbox.c.
11404 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11405 Likewise.
11406 (copy_scrap_flavor_data, mac_handle_service_event)
11407 (install_service_handler) [MAC_OSX]: Likewise.
11408 (syms_of_macselect) <Vmac_dnd_known_types>:
11409 Use mac_dnd_default_known_types.
11410
11411 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11412 Move to mactoolbox.c.
11413 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11414 (Fx_selection_owner_p): Add EXFUN.
11415 (install_window_handler, remove_window_handler, XSetWindowBackground):
11416 Remove externs.
11417 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11418 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11419 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11420 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11421 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11422 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11423 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11424 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11425 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11426 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11427 (mac_valid_selection_target_p, mac_clear_selection)
11428 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11429 (mac_put_selection_value, mac_selection_has_target_p)
11430 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11431 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11432 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11433 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11434 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11435 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11436 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11437 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11438 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11439
11440 * mactoolbox.c: New file.
11441
114422008-04-18 Jason Rumney <jasonr@gnu.org>
11443
11444 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11445
114462008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11447
11448 * character.c (Fmultibyte_char_to_unibyte):
11449 Return latin1 chars unchanged.
11450
11451 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11452 relocated if it points to `name'.
11453
114542008-04-17 Kenichi Handa <handa@m17n.org>
11455
11456 * data.c (Faset): Allow setting a multibyte character in an
11457 ASCII-only unibyte string.
11458
11459 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11460
114612008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11462
11463 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11464 done in config.h.
11465
114662008-04-16 Juanma Barranquero <lekktu@gmail.com>
11467
11468 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11469 (Fchar_direction): Add usage in the docstring.
11470
114712008-04-15 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * keyboard.c (read_key_sequence): Remove always-true checks.
11474
114752008-04-14 Jason Rumney <jasonr@gnu.org>
11476
11477 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11478 compatibility struct, for better underline positioning.
11479
114802008-04-13 David Hansen <david.hansen@gmx.net>
11481
11482 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11483 string.
11484
114852008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11486
11487 * m/hp800.h (XUINT, XSET): Remove.
11488
114892008-04-12 Juanma Barranquero <lekktu@gmail.com>
11490
11491 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11492 previous change.
11493
114942008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11495
11496 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11497 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11498
114992008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11500
11501 * keymap.h (map_keymap_canonical): Declare.
11502 * xmenu.c (single_keymap_panes): Use it.
11503
115042008-04-11 Glenn Morris <rgm@gnu.org>
11505
11506 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11507 set the target's value to that of the alias.
11508
115092008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11510
11511 * term.c (set_tty_color_mode): Left over typo.
11512
115132008-04-10 Michael Albinus <michael.albinus@gmx.de>
11514
11515 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11516 only after check for file name handler functions. Signal, when
11517 native functionality is not supported.
11518 (syms_of_fileio): Declare it unconditionally.
11519
115202008-04-10 Jason Rumney <jasonr@gnu.org>
11521
11522 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11523 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11524
11525 * w32.c (logon_network_drive): Also logon to remote drives that
11526 are mapped to drive letters.
11527
115282008-04-10 Glenn Morris <rgm@gnu.org>
11529
11530 * xdisp.c (truncate-partial-width-windows): Doc fix.
11531
115322008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11533
11534 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11535 Move functions to minibuffer.el.
11536 (syms_of_fileio): Don't declare them.
11537
115382008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11539
11540 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11541 (syms_of_minibuf): Remove its initialization.
11542
11543 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11544
115452008-04-09 Juanma Barranquero <lekktu@gmail.com>
11546
11547 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11548
115492008-04-09 Jason Rumney <jasonr@gnu.org>
11550
11551 * makefile.w32-in (distclean): Delete makefile too.
11552 (maintainer-clean): New target.
11553
11554 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11555
11556 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11557 for new font backend and composite cases.
11558
115592008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11560
11561 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11562 Most of the code moved to run_timers.
11563 (do_pending_atimers): Call run_timers.
11564 (run_timers): New function.
11565
11566 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11567 run atimers.
11568
11569 * process.c (wait_reading_process_output): The same as above.
11570
115712008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11572
11573 * minibuf.c (last_exact_completion): Remove variable.
11574 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11575 (complete_and_exit_1, complete_and_exit_2)
11576 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11577 (Fdisplay_completion_list, display_completion_list_1)
11578 (Fminibuffer_completion_help, Fself_insert_and_exit)
11579 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11580 minibuffer.el.
11581 (syms_of_minibuf): Remove corresponding initializations.
11582
11583 * keyboard.c (Qdeactivate_mark): New var.
11584 (command_loop_1): Use it to call `deactivate-mark'.
11585 (syms_of_keyboard): Initialize it.
11586
11587 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11588 to another frame.
11589 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11590 Don't call set_tty_color_mode.
11591 (store_frame_param): Reset previous_frame rather than call
11592 set_tty_color_mode.
11593 * term.c (set_tty_color_mode): Rewrite.
11594 * dispextern.h (set_tty_color_mode): New type.
11595 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11596
115972008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11598
11599 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11600 for generic chars, which do not exist any more in emacs-unicode.
11601
116022008-04-08 Michael Albinus <michael.albinus@gmx.de>
11603
11604 * coding.c (detect_coding_emacs_mule)
11605 (Ffind_operation_coding_system): Fix typo.
11606
116072008-04-08 Jason Rumney <jasonr@gnu.org>
11608
11609 * w32uniscribe.c (SNAME): Extract only symbol name.
11610
11611 * w32font.h (struct w32_metric_cache): New struct.
11612 (w32font_info): Use it.
11613 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11614 (CACHE_BLOCKSIZE): New constants.
11615
11616 * w32font.c (Qja, Qko, Qzh): New symbols.
11617 (syms_of_w32font): Initialise them.
11618 (font_matches_spec): Use them to filter by language.
11619 (recompute_cached_metrics): Remove function.
11620 (compute_metrics, clear_cached_metrics): New functions.
11621 (w32font_encode_char): Use them to manage metric cache.
11622 (w32font_text_extents): Cache metrics for all glyphs on demand.
11623 Delay converting glyph indices to WORD until needed.
11624 (w32font_open_internal): Initialize metric cache to empty.
11625 (registry_to_w32_charset): Charset should always be a symbol.
11626 (fill_in_logfont, list_all_matching_fonts): Family should
11627 always be a symbol.
11628
116292008-04-06 Jason Rumney <jasonr@gnu.org>
11630
11631 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11632 Give up if glyph indices not supported. Use uniscribe obtained
11633 ABC widths for individual metrics. Map glyph clusters back to
11634 characters using fClusterStart flag. Return number of glyphs
11635 produced, not chars processed.
11636 (uniscribe_shape): Map char at FROM to current glyph.
11637
116382008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11639
11640 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11641 Use SetMenuItemHierarchicalMenu.
11642
116432008-04-05 Jason Rumney <jasonr@gnu.org>
11644
11645 * image.c (pbm_load): Allow color values up to 65535.
11646 Throw an error if max_color_idx is outside the supported range.
11647 Report an error when image size is invalid.
11648 Read two bytes at a time when raw images have max_color_idx above 255.
11649
116502008-04-05 Eli Zaretskii <eliz@gnu.org>
11651
11652 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11653 cFileName a file name that includes `?' characters, use the 8+3
11654 alias in cAlternateFileName instead.
11655
116562008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11657
11658 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11659 append "CCL: Quitted" when the CCL program is quitted.
11660 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11661
11662 * ccl.h (struct ccl_program): New member quit_silently.
11663
116642008-04-05 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * search.c (compile_pattern_1): Treat non-nil and non-string of
11667 search-spaces-regexp as nil.
11668
11669 * minibuf.c (Fassoc_string): Tweak docstring.
11670
116712008-04-05 Eli Zaretskii <eliz@gnu.org>
11672
11673 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11674 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11675 2008-03-14 to force inode be positive.
11676
11677 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11678 _S_* ones, since we now use our own sys/stat.h.
11679 (stat, fstat): Don't mangle the inode number.
11680 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11681
116822008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11683
11684 * frame.h (struct frame): Give one more bit to `visible' since we use
11685 values larger than 1 to indicate obscured frames on ttys.
11686
11687 * keymap.c (Qkeymap_canonicalize): New var.
11688 (Fmap_keymap_internal): New fun.
11689 (describe_map): Use keymap-canonicalize.
11690
11691 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11692 (Fundo_boundary): Set them.
11693 (syms_of_undo): Initialize them.
11694 (record_point): Use them instead of last_point_position*.
11695 (last_undo_buffer): Change type.
11696
116972008-04-04 Jason Rumney <jasonr@gnu.org>
11698
11699 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11700 (recompute_cached_metrics): Don't set ascent and descent per char.
11701
11702 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11703 (uniscribe_check_otf): Add GC protection before consing.
11704 Rearrange loop for counting features.
11705
117062008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11707
11708 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11709 buffer with byte-size of source buffer.
11710
117112008-04-03 Chong Yidong <cyd@stupidchicken.com>
11712
11713 * callint.c (Fcall_interactively): Handle temporary region even
11714 when shift-select-mode is off.
11715
117162008-04-03 Jason Rumney <jasonr@gnu.org>
11717
11718 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11719
117202008-04-03 Kenichi Handa <handa@m17n.org>
11721
11722 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11723 (CATEGORY_MASK_UTF_16): Likewise.
11724 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11725 binary file.
11726 (detect_coding): Add null-byte detection for a binary file.
11727 (detect_coding_system): Likewise.
11728
117292008-04-03 Jason Rumney <jasonr@gnu.org>
11730
11731 * w32uniscribe.c: New file.
11732
11733 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11734
11735 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11736
11737 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11738 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11739 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11740 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11741 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11742 (Qphonetic): New symbols.
11743 (syms_of_w32font): Initialize them.
11744 (font_supported_scripts): Use them.
11745 (w32font_list_family): List all charsets.
11746 (w32font_text_extents, recompute_cached_metrics): Fix metric
11747 calculations.
11748 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11749 Give opentype fonts their own format.
11750 (font_matches_spec): New arguments backend and logfont.
11751 Handle :otf spec for uniscribe backend.
11752 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11753 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11754
11755 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11756 font backend.
11757 (globals_of_w32fns): Initialize uniscribe font backend.
11758
11759 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11760 dependencies.
11761 (w32uniscribe.$(O)): New file to build.
11762 (FONT_OBJ): Include w32uniscribe.$(O).
11763 (LIBS): Add uniscribe libraries.
11764
11765 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11766
117672008-04-02 Chong Yidong <cyd@stupidchicken.com>
11768
11769 * callint.c (Vshift_select_mode): New var.
11770 (Finteractive): Document new ^ spec.
11771 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11772 is present.
11773
11774 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11775 (command_loop_1): Avoid running the direct display versions of
11776 forward-char and backward-char if shift-selection may occur.
11777 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11778 shift-translation takes place.
11779
11780 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11781 avoid clobbering by define-minor-mode.
11782
11783 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11784 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11785
11786 * syntax.c (Fforward_word): Add ^ interactive spec.
11787
11788 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11789 (Fscroll_right): Add ^ interactive spec.
11790
117912008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11792
11793 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11794
11795 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11796
11797 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11798
117992008-03-31 Juri Linkov <juri@jurta.org>
11800
11801 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11802
118032008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11804
11805 * gtkutil.c (xg_set_geometry): Fix indentation.
11806 (xg_resize_outer_widget): Remove.
11807 (x_wm_size_hint_off): Fix indentation.
11808 (xg_frame_set_char_size): Call flush_and_sync after
11809 gtk_window_resize.
11810 (x_wm_set_size_hint): Pass NULL as geometry window to
11811 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11812 Add menu bar and tool bar height to base height.
11813 (xg_update_frame_menubar, free_frame_menubar)
11814 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11815 (update_frame_tool_bar, free_frame_tool_bar):
11816 Change xg_resize_outer_widget to xg_frame_set_char_size.
11817
118182008-03-30 Michael Albinus <michael.albinus@gmx.de>
11819
11820 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11821 (Fdbus_call_method): New parameter TIMEOUT.
11822 (dbus-send-signal): Optimize UNGCPRO call.
11823
118242008-03-29 Juri Linkov <juri@jurta.org>
11825
11826 * window.c (Fdisplay_buffer): Move call to
11827 Vsplit_window_preferred_function out of conditions that check
11828 if window is eligible for vertical splitting.
11829 When Vsplit_window_preferred_function is non-nil, call it and use
11830 its non-nil return value as window. Otherwise, continue doing
11831 vertical splitting using Fsplit_window with arg horflag=nil.
11832 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11833 default value from `split-window' to nil.
11834
118352008-03-29 Juri Linkov <juri@jurta.org>
11836
11837 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11838 for interactive code letters 'b' and 'B'.
11839
118402008-03-29 Eli Zaretskii <eliz@gnu.org>
11841
11842 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11843 multibyte string.
11844
118452008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11846
11847 * keyboard.c (pending_funcalls): New var.
11848 (timer_check): Run it.
11849 (syms_of_keyboard): Initialize it.
11850 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11851 (Vdelete_terminal_functions): New vars.
11852 (syms_of_terminal): Initialize them.
11853 (Fdelete_terminal): Run delete-terminal-functions.
11854 * xdisp.c (safe_eval): Rewrite.
11855 (safe_call2): New fun.
11856 * frame.c (Qdelete_frame_functions): New var.
11857 (syms_of_frame): Initialize it.
11858 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11859 * lisp.h (safe_call2, pending_funcalls): Declare.
11860
118612008-03-28 Andreas Schwab <schwab@suse.de>
11862
11863 * indent.c (Fmove_to_column): Move declaration before statements.
11864
118652008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11866
11867 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11868 (struct frame): Use bit fields for boolean vars.
11869
11870 * process.c (server_accept_connection): Simplify naming.
11871 (emacs_get_tty_pgrp): Use SDATA.
11872
11873 * coding.c (decode_coding_object): Fix last change.
11874
118752008-03-27 Jason Rumney <jasonr@gnu.org>
11876
11877 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11878
118792008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11880
11881 * charset.c (Fdefine_charset_internal): Change the way of
11882 registering charsets in Vcharset_order_list.
11883 (syms_of_charset): Make the charset `eight-bit' supplementary.
11884
118852008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11886
11887 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11888 operations, to avoid having the difference between pointers
11889 overflow.
11890
118912008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11892
11893 * indent.c (check_display_width): New fun.
11894 (scan_for_column): Use it.
11895
11896 * data.c (syms_of_data): Mark most-positive-fixnum and
11897 most-negative-fixnum as constants.
11898
11899 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11900
11901 * indent.c (scan_for_column): Extract from current_column_1.
11902 Merge with the same code from Fmove_to_column.
11903 (current_column_1, Fmove_to_column): Use it.
11904
119052008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11906
11907 * keymap.c (map_keymap_internal): New fun.
11908 (map_keymap): Use it.
11909 (Fmap_keymap_internal): New fun.
11910 (Fmap_keymap): Remove left-out test from before make_save_value.
11911
11912 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11913
11914 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11915 Use XCAR/XCDR.
11916
11917 * process.h (struct Lisp_Process): Remove filter_multibyte.
11918 * process.c (QCfilter_multibyte): Remove.
11919 (setup_process_coding_systems): Don't use filter_multibyte.
11920 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11921 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11922 (Fset_process_filter_multibyte): Change the coding-system to
11923 approximate the previous behavior.
11924 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11925 coding-system.
11926
11927 * coding.c (decode_coding_object): When not decoding into a buffer,
11928 obey the coding system's preference of (uni|multi)byte.
11929
119302008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11931
11932 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11933 every char is changed and has a different byte-length.
11934 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11935 Fix int -> EMACS_INT.
11936
119372008-03-23 David Hansen <david.hansen@gmx.net>
11938
11939 * dbusbind.c (xd_read_message): Remove extra copying of message
11940 strings. Check for NULL `interface' or `member'.
11941
119422008-03-22 Eli Zaretskii <eliz@gnu.org>
11943
11944 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11945 cFileName a file name that includes `?' characters, use the 8+3
11946 alias in cAlternateFileName instead.
11947
119482008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11949
11950 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11951
119522008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11953
11954 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11955 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11956 work on current_buffer only instead (that was already the case
11957 for some of the code anyway).
11958 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11959 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11960 (SET_PT, SET_PT_BOTH): Adjust.
11961 * intervals.h (set_point, temp_set_point, set_point_both)
11962 (temp_set_point_both): Remove redundant declarations.
11963
119642008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11965
11966 * fileio.c (Finsert_file_contents):
11967 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11968 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11969 when buffer != current_buffer anyway.
11970
119712008-03-20 Andreas Schwab <schwab@suse.de>
11972
11973 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11974 as default.
11975
119762008-03-19 Jason Rumney <jasonr@gnu.org>
11977
11978 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11979 (syms_of_w32fns): Initialize them.
11980 (HOURGLASS_ID): New constant.
11981 (x_window_to_frame): Don't check hourglass_window.
11982 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11983 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11984 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11985 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11986 Only change the cursor if hourglass is not active.
11987 (Fx_create_frame): Initialize frame's current_cursor.
11988 (hourglass_atimer): Remove.
11989 (hourglass_started): New function.
11990 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11991 (show_hourglass): Adapt to w32, changing argument to frame.
11992
11993 * w32term.h (struct w32_output): Remove hourglass_window.
11994 Add current_cursor.
11995
11996 * eval.c (call_debugger, Fsignal):
11997 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11998 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11999 (Fexecute_extended_command, cancel_hourglass_unwind):
12000 * minibuf.c (read_minibuf):
12001 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12002
120032008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * window.c (run_funs): New fun.
12006 (run_window_configuration_change_hook): Use it to run the buffer-local
12007 and the global part of the hook.
12008
12009 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12010 (unwind_format_mode_line): Restore selected window.
12011 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12012
120132008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12014
12015 * editfns.c (Fchar_equal): Check they are valid characters.
12016
12017 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12018
120192008-03-17 Andreas Schwab <schwab@suse.de>
12020
12021 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12022 against a charset.
12023
12024 * lisp.h (Fbuffer_list): Declare.
12025
120262008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12027
aac0c6e3
MR
12028 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12029 handlebox_widget is != 0.
12030
120312008-03-16 Juri Linkov <juri@jurta.org>
12032
12033 * callint.c (Fcall_interactively): For interactive code letters
12034 'b' and 'B' put the buffer list into the list of default "future"
12035 values of the minibuffer.
12036
120372008-03-16 Andreas Schwab <schwab@suse.de>
12038
12039 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12040 modifiers.
12041
12042 * regex.c (re_match_2_internal): Correct matching of a charset
12043 against latin-1 characters.
12044
120452008-03-16 Kenichi Handa <handa@m17n.org>
12046
12047 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12048 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12049 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12050 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12051 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12052 CHAR_STRING_ADVANCE.
12053 (produce_chars): Fix for the case that the source and the
12054 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12055 instead of CHAR_STRING_ADVANCE.
12056 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12057 STRING_CHAR_ADVANCE.
12058
120592008-03-15 Andreas Schwab <schwab@suse.de>
12060
12061 * regex.c (re_match_2_internal): Correct matching of eight bit
12062 characters in unibyte strings.
12063
120642008-03-15 Martin Rudalics <rudalics@gmx.at>
12065
12066 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12067 at end of range when it coincides with the end of the buffer.
12068
120692008-03-14 Eli Zaretskii <eliz@gnu.org>
12070
12071 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12072
12073 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12074
120752008-03-14 Jason Rumney <jasonr@gnu.org>
12076
12077 * editfns.c (initial_tz): New variable.
12078 (syms_of_editfns): Initialize it.
12079 (Fset_time_zone_rule): Set it when first called.
12080 Use it when TZSTRING is nil.
12081
12082 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12083 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12084 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12085 (globals_of_w32fns): Initialize them.
12086 (compute_tip_xy): Use them to position tooltips.
12087
120882008-03-14 Glenn Morris <rgm@gnu.org>
12089
12090 * emacs.c (main): Revert previous change.
12091 (standard_args): Revert -internal-script back to -scriptload,
12092 and remove the long-option form.
12093
120942008-03-13 Glenn Morris <rgm@gnu.org>
12095
12096 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12097 Remove option -enable-font-backend.
12098
120992008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12100
12101 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12102
121032008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12104
12105 * xterm.c (x_connection_closed): For GTK: If this is the last
12106 terminal just exit without closing the display.
12107
121082008-03-11 Jason Rumney <jasonr@gnu.org>
12109
12110 * w32font.c (w32font_full_name): Use floor to round.
12111
f0131492 121122008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12113
12114 * sound.c (alsa_configure): Declare vol at beginning of block.
12115
12116 * fontset.c (Ffontset_info): Remove extra semicolon.
12117
121182008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12119
12120 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12121 size of resulting string.
12122
121232008-03-10 Jason Rumney <jasonr@gnu.org>
12124
12125 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12126
121272008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12128
12129 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12130 Don't pretend as if characters with display property haven't been
12131 consumed for string-replacing-string case.
12132
121332008-03-08 Kim F. Storm <storm@cua.dk>
12134
12135 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12136 (get_next_display_element, next_element_from_string)
12137 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12138
121392008-03-08 Andreas Schwab <schwab@suse.de>
12140
12141 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12142
121432008-03-06 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12146 when charset not specified. Only translate ANSI to unicode when
12147 font_type is truetype.
12148 (w32font_coverage_ok): New function.
12149 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12150
121512008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12152
12153 * lread.c (Fread_char): Resolve modifiers.
12154 (Fread_char_exclusive): Likewise.
12155
12156 * character.c (char_resolve_modifier_mask): New function.
12157 (char_string): Use char_resolve_modifier_mask.
12158 (Fchar_resolve_modifiers): New function.
12159 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12160 function.
12161
121622008-03-04 Jason Rumney <jasonr@gnu.org>
12163
12164 * makefile.w32-in: Always include w32font.c in the build.
12165 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12166
121672008-03-04 Andreas Schwab <schwab@suse.de>
12168
12169 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12170 (versionclean): Likewise.
12171
121722008-03-04 Juanma Barranquero <lekktu@gmail.com>
12173
12174 * .cvsignore: Add oo.
12175
121762008-03-03 Andreas Schwab <schwab@suse.de>
12177
12178 * coding.c (decode_coding_object): Inhibit gap shrinking while
12179 decoding in place.
12180
121812008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12182
12183 * w32term.c: Remove unused include "gnu.h".
12184 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12185
12186 * gnu.h: Rename to ...
12187 * emacs-icon.h: ... this.
12188 * xterm.c: Use emacs-icon.h instead of gnu.h.
12189 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12190
121912008-03-03 Juanma Barranquero <lekktu@gmail.com>
12192
12193 * w32font.c: Include math.h.
12194
121952008-03-03 Jason Rumney <jasonr@gnu.org>
12196
12197 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12198 Compute options separately.
12199 (w32font_open_internal): Set glyph_idx before caching metrics.
12200
12201 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12202 Define if system headers don't.
12203 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12204 (w32font_encode_char): Don't declare here.
12205
12206 * w32font.c (Quniscribe, QCformat): New symbols.
12207 (syms_of_w32font): Define them.
12208 (w32font_has_char): Indicate uncertainty.
12209 (w32font_encode_char): Encode as glyph point. Make static.
12210 (recompute_cached_metrics): New function.
12211 (w32font_open_internal): Use it. Set font to use glyph points
12212 initially. Set format based on type of font.
12213 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12214 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12215 on it. Set format based on information available here.
12216 (add_font_entity_to_list): Identify backend based on opentype_only.
12217
122182008-03-02 Andreas Schwab <schwab@suse.de>
12219
12220 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12221
12222 * coding.c (decode_coding_big5, produce_chars):
12223 Fix typos in last change.
12224
122252008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12226
12227 * gnu.h: New icon.
12228
122292008-03-02 Kenichi Handa <handa@m17n.org>
12230
12231 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12232 `dos', don't decode '\r' if that is the last in the source.
12233 (decode_coding_utf_16, decode_coding_emacs_mule)
12234 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12235 (decode_coding_raw_text, decode_coding_charset): Likewise.
12236 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12237
122382008-03-01 Jason Rumney <jasonr@gnu.org>
12239
12240 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12241
122422008-03-01 Kim F. Storm <storm@cua.dk>
12243
12244 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12245
122462008-03-01 Jason Rumney <jasonr@gnu.org>
12247
12248 * w32font.c (w32font_full_name): New function.
12249 (w32font_open_internal): Use it.
12250
122512008-03-01 Kim F. Storm <storm@cua.dk>
12252
12253 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12254
122552008-03-01 Jason Rumney <jasonr@gnu.org>
12256
12257 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12258
122592008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12260
12261 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12262 xg_frame_resized when the event is for the edit widget.
12263
12264 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12265
12266 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12267 set_char_size.
12268 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12269 operations on widgets here. Just set frame size if needed.
12270 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12271 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12272 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12273 the whole frame.
12274 (xg_create_tool_bar): Move attachment of the tool bar to
12275 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12276 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12277
122782008-03-01 Jason Rumney <jasonr@gnu.org>
12279
12280 * w32fns.c (w32_msg_pump): Disable debug code.
12281
122822008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12283
12284 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12285
122862008-02-29 Chong Yidong <cyd@stupidchicken.com>
12287
12288 * xdisp.c (next_overlay_string): Don't set
12289 overlay_strings_at_end_processed_p if we're currently reading from
12290 a display string.
12291
122922008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12293
12294 * xdisp.c (get_overlay_strings_1): Fix typo.
12295
122962008-02-29 Chong Yidong <cyd@stupidchicken.com>
12297
12298 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12299
123002008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12301
12302 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12303
12304 * xdisp.c (display_mode_element): Cancel the previous change.
12305 (decode_mode_spec): Likewise.
12306 (handle_auto_composed_prop): Don't make composition if it->string
12307 is a string.
12308
123092008-02-27 Kim F. Storm <storm@cua.dk>
12310
12311 * lisp.h (GLYPH): Change type from int to struct with separate char
12312 and face_id members.
12313 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12314 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12315 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12316 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12317 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12318 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12319 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12320 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12321 handle new Lisp glyph code encoding, either an integer or a cons.
12322
12323 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12324 (GLYPH_ALIAS): Delete.
12325 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12326 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12327 (GLYPH_FROM_CHAR): Replace macro by ...
12328 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12329
12330 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12331 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12332 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12333 (GLYPH_INVALID_P): New macro.
12334 (spec_glyph_lookup_face): Update prototype.
12335
12336 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12337 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12338 new glyph code encoding.
12339 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12340 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12341
12342 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12343 Adapt to new glyph type and new glyph code encoding.
12344
12345 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12346
12347 * indent.c (current_column, current_column_1, Fmove_to_column)
12348 (compute_motion): Adapt to new glyph code encoding.
12349
12350 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12351
123522008-02-27 Chong Yidong <cyd@stupidchicken.com>
12353
12354 * process.c (wait_reading_process_output): Check for window
12355 changes caused by timers.
12356 Suggested by Johan Bockgård.
12357
123582008-02-27 Glenn Morris <rgm@gnu.org>
12359
12360 * emacs.c (USAGE1): Add `--disable-font-backend'.
12361
123622008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12365 is made to the buffer.
12366
123672008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12370 (face_at_string_position):
12371 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12372 (face_at_string_position):
12373 * xdisp.c (display_string, next_overlay_change):
12374 * buffer.h (overlays_at):
12375 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12376 Update callers.
12377
123782008-02-26 Chong Yidong <cyd@stupidchicken.com>
12379
12380 * editfns.c (Fformat): Doc fix.
12381
123822008-02-26 Juanma Barranquero <lekktu@gmail.com>
12383
12384 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12385 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12386 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12387
123882008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12389
12390 * buffer.c (Fbuffer_swap_text): New function.
12391 (syms_of_buffer): Defsubr it.
12392
123932008-02-25 Chong Yidong <cyd@stupidchicken.com>
12394
12395 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12396
123972008-02-25 Jason Rumney <jasonr@gnu.org>
12398
12399 * w32font.c (w32font_draw): Draw one character at a time when padding.
12400
124012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12402
12403 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12404 Handle a nil arg. Use run_window_configuration_change_hook.
12405 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12406 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12407 Use run_window_configuration_change_hook.
12408
124092008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12410
12411 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12412 1-pixel width.
12413
124142008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12415
12416 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12417 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12418 if the glyph in the font is zero pixel with.
12419
12420 * dispextern.h (struct glyph_string): New member padding_p.
12421
12422 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12423
12424 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12425
12426 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12427
12428 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12429
12430 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12431
124322008-02-25 Jason Rumney <jasonr@gnu.org>
12433
12434 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12435
124362008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12437
12438 Allow fine-grained image-cache flushing.
12439 * dispextern.h (struct image): Add `dependencies' field.
12440 (clear_image_caches): Change arg to Lisp_Object.
12441 * image.c (make_image): Initialize `dependencies' field.
12442 (clear_image_cache): Change arg to allow fine-grained flushing.
12443 Perform the flush even if image-cache-eviction-delay is nil.
12444 (clear_image_caches): Change arg to Lisp_Object.
12445 (Fclear_image_cache): Expand meaning of the argument.
12446 (mark_image): Mark `dependencies' field.
12447 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12448 (lface_hash): Use XHASH rather than XFASTINT.
12449 (face_at_buffer_position): Fix int -> EMACS_INT position.
12450 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12451 (select_frame_for_redisplay): Remove code duplication.
12452 (redisplay_internal): Adapt arg to call to clear_image_caches.
12453
124542008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12455
12456 * s/vms4-0.h:
12457 * s/vms4-2.h:
12458 * s/vms4-4.h:
12459 * s/vms5-5.h: Remove, unused.
12460
12461 * s/irix5-2.h:
12462 * s/irix6-0.h:
12463 * s/riscos5.h:
12464 * s/mach-bsd4-3.h:
12465 * m/mips4.h: Remove files for obsolete systems.
12466
12467 * Makefile.in:
12468 * filelock.c:
12469 * unexmips.c:
12470 * m/hp9000s300.h:
12471 * m/iris4d.h:
12472 * s/aix3-1.h:
12473 * s/hpux.h:
12474 * s/msdos.h:
12475 * s/usg5-0.h:
12476 * s/usg5-2-2.h:
12477 * s/usg5-2.h:
12478 * s/usg5-3.h: Remove references to obsolete variables.
12479
12480 * s/irix5-0.h: Remove, move all the contents ...
12481 * s/irix6-5.h: ... here. Simplify.
12482 * config.in: Regenerate.
12483
124842008-02-24 Jason Rumney <jasonr@gnu.org>
12485
12486 * w32term.c (x_draw_glyph_string_background): Clear the background
12487 manually when cleartype is in use.
12488 (x_draw_glyph_string_foreground): Draw text transparently when
12489 cleartype is in use.
12490
12491 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12492 a font into it unless we have to.
12493
124942008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12495
12496 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12497 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12498
aac0c6e3
MR
124992008-02-18 Jason Rumney <jasonr@gnu.org>
12500
12501 * w32fns.c (Fw32_shell_execute): Encode parameters.
12502
125032008-02-09 Eli Zaretskii <eliz@gnu.org>
12504
12505 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12506
125072008-02-05 Juanma Barranquero <lekktu@gmail.com>
12508
12509 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12510
125112008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12512
12513 * xterm.c (x_set_offset): Don't change the gravity if
12514 CHANGE_GRAVITY is -1.
12515
125162008-02-23 Chong Yidong <cyd@stupidchicken.com>
12517
12518 * fileio.c (auto_save_error_occurred): New var.
12519 (auto_save_error): Set it.
12520 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12521 error occurred.
12522
125232008-02-23 Eli Zaretskii <eliz@gnu.org>
12524
12525 * w32.c (globals_of_w32): Add initializations for
12526 g_b_init_get_sid_sub_authority and
12527 g_b_init_get_sid_sub_authority_count.
12528
125292008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12530
12531 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12532 (font_parse_xlfd): Use them for sanity check.
12533 (Finternal_set_font_style_table): Make sure the table is bijective.
12534
12535 Consolidate the image_cache to the terminal struct.
12536 * termhooks.h (P_): Remove redundant def.
12537 (struct terminal): New field `image_cache'.
12538 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12539 of FRAME_X_IMAGE_CACHE.
12540 * xterm.h (struct x_display_info): Remove image_cache field.
12541 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12542 * w32term.h (struct w32_display_info): Remove image_cache field.
12543 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12544 * macterm.h (struct mac_display_info): Remove image_cache field.
12545 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12546 * xterm.c (x_term_init):
12547 * w32term.c (w32_term_init):
12548 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12549 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12550 Remove declarations.
12551 (clear_image_caches, mark_image_cache): New declarations.
12552 * xfaces.c (clear_face_cache):
12553 * xdisp.c (redisplay_internal): Use clear_image_caches.
12554 * image.c (clear_image_cache): Don't check that a frame is on
12555 a window-system before checking if it shares the same cache.
12556 (clear_image_caches): New function.
12557 (Fclear_image_cache): Use it.
12558 (mark_image): Move from allo.c.
12559 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12560 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12561 (mark_object): Don't call mark_image_cache for frames.
12562 (mark_terminals): Call mark_image_cache.
12563
12564 * lisp.h (Fdelete_terminal): Declare.
12565
12566 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12567 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12568 wrong_type_argument.
12569
125702008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12571
12572 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12573 malayalam.el, and tamil.el. Add sinhala.el.
12574
125752008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12576
12577 * xterm.c (x_connection_closed): Consolidate identical tests.
12578 (x_delete_terminal): Don't crash if called via x_connection_closed.
12579
125802008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12581
12582 * xdisp.c (decode_mode_spec): New arg string.
12583 (display_mode_element): Adjust for the above change.
12584
125852008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12586
12587 * callint.c (Fcall_interactively): Use AREF.
12588
125892008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12592
125932008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12594
12595 * xfns.c (Fx_show_tip): Set string to " " if empty.
12596
125972008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12598
12599 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12600 with Qt.
12601
126022008-02-17 Kenichi Handa <handa@m17n.org>
12603
12604 * ftfont.c (ftfont_shape): Return Lispy number.
12605
12606 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12607 for GCs.
12608 (Finternal_set_font_selection_order): Call font_update_sort_order
12609 only when enable_font_backend is set.
12610 (realize_x_face): Set face->font_info to that of default face only
12611 when enable_font_backend is set.
12612
12613 * xdisp.c (handle_composition_prop): Set it->c to the fist
12614 character of the composed region.
12615 (fill_composite_glyph_string): Set base_face->font_info to
12616 s->font_info. Get a face for ascii from base_face->ascii_face.
12617 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12618 with a face already decided.
12619 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12620 non-negative.
12621 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12622 call font_prepare_composition unconditionally.
12623
12624 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12625
12626 * xterm.h (struct x_display_info): New member font.
12627
12628 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12629 (x_set_mouse_face_gc, x_new_font): Likewise.
12630 (x_term_init): Setup display_info->font.
12631 (x_delete_terminal): Free display_info->font.
12632
12633 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12634
12635 * ftxfont.c (ftxfont_default_fid): Delete it.
12636 (ftxfont_open): Set xfont->fid to 0.
12637 (ftxfont_end_for_frame): Clear data specific to the frame and the
12638 font-driver.
12639
12640 * xftfont.c (xftfont_default_fid): Delete it.
12641 (xftfont_open): Set xfont->fid to 0.
12642
12643 * fontset.c (FONTSET_OBJLIST): New macro.
12644 (fontset_find_font): Update font-object list of the fontset.
12645 (free_realized_fontset): New function.
12646 (free_face_fontset): Call free_realized_fontset.
12647 (Ffont_info): Call font_close_object only when enable_font_backend
12648 is set.
12649
12650 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12651 [HAVE_NTGUI]: Include w32term.h.
12652 [MAC_OS]: Include macterm.ch.
12653 (font_otf_ValueRecord): Use make_number.
12654 (font_finish_cache): Fix handling of reference count.
12655 (font_clear_cache): Update num_fonts.
12656 (font_open_entity): Update smallest_char_width and
12657 smallest_font_height of the frame.
12658 (font_close_object): Update num_fonts.
12659 (Fclear_font_cache): Fix finding the target cache data.
12660
126612008-02-16 Glenn Morris <rgm@gnu.org>
12662
12663 * fontset.c (Finternal_char_font): Fix compilation warning.
12664
126652008-02-16 Eli Zaretskii <eliz@gnu.org>
12666
12667 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12668 instead of char arrays. Enlarge the size of array passed to
12669 get_token_information.
12670
12671 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12672 warnings.
12673
126742008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12675
12676 * .gdbinit: Don't set `args', it breaks gdb --args.
12677
126782008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12679
12680 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12681 within a narrowed buffer.
12682
126832008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12684
12685 * coding.c (decode_coding_object, encode_coding_object):
12686 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12687
126882008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12689
12690 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12691 hardcoding 1.
12692 (detect_coding_system):
12693 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12694 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12695 * insdel.c (insert_from_gap):
12696 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12697 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12698 (string_to_multibyte):
12699 * character.c (chars_in_text, multibyte_chars_in_text):
12700 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12701
12702 * character.h (FETCH_STRING_CHAR_ADVANCE)
12703 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12704 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12705 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12706
12707 * casefiddle.c (casify_region): Only call after-change and composition
12708 functions on the part of the region that was changed.
12709
12710 * keyboard.c (read_avail_input):
12711 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12712
127132008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12714
12715 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12716 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12717
127182008-02-11 Juanma Barranquero <lekktu@gmail.com>
12719
12720 * w32menu.c (push_submenu_start, push_submenu_end)
12721 (push_left_right_boundary, push_menu_pane, push_menu_item):
12722 * keyboard.c (read_key_sequence): Don't pass args with side effects
12723 to AREF, it fails when compiling with -DENABLE_CHECKING.
12724
127252008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12726
12727 * Makefile.in (${lispsource}international/charprop.el):
12728 Delete this target.
12729
12730 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12731 emacs-unicode-2.
12732
127332008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12734
12735 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12736
127372008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12738
12739 * frame.c (Qnoelisp): New symbol.
12740 (syms_of_frame): Initialize it.
12741 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12742 harmless Elisp code, from a strong `force' from x_connection_closed.
12743 * frame.h (Qnoelisp): Declare.
12744 * xterm.c (x_connection_closed): Pass `noelisp'.
12745
12746 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12747 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12748 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12749 rather than `int' for the type of `type'.
12750
127512008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12752
12753 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12754
12755 * Makefile.in (GNUC): Remove support for gcc-1.x.
12756
127572008-02-10 Richard Stallman <rms@gnu.org>
12758
12759 * lisp.h (ASET): Use AREF, not ASLOT.
12760
127612008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12762
12763 * lisp.h (ASET): Check bounds.
12764
127652008-02-10 Glenn Morris <rgm@gnu.org>
12766
12767 * buffer.c (mode-name): Doc fix.
12768
127692008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12770
12771 * Makefile.in:
12772 * emacs.c:
12773 * gmalloc.c:
12774 * keyboard.c:
12775 * lisp.h:
12776 * m/ibm370aix.h:
12777 * process.c:
12778 * regex.c:
12779 * s/hpux.h:
12780 * sysdep.c:
12781 * sysselect.h:
12782 * systty.h:
12783 * unexec.c:
12784 * w32term.c:
12785 * xsmfns.c:
12786 * xterm.c: Remove code that deals with obsolete variables.
12787
12788 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12789
12790 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12791 nothing else needs it anymore.
12792
127932008-02-09 Eli Zaretskii <eliz@gnu.org>
12794
12795 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12796 instead of unibyte_char_to_multibyte.
12797
127982008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12799
12800 * s/gnu-linux.h: Remove commented out code.
12801
12802 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12803
12804 * Makefile.in: Update what RMS says about using autoconf.
12805 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12806 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12807 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12808 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12809
128102008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12811
12812 * keymap.c (Fkey_description): Move side effect outside of macro call.
12813
12814 * xfaces.c (Finternal_make_lisp_face):
12815 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12816
12817 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12818 (syms_of_fontset): Use ASET.
12819
12820 * fns.c (concat): Move side effect outside of macro call.
12821 (hash_clear): Use ASET.
12822
128232008-02-08 Richard Stallman <rms@gnu.org>
12824
12825 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12826 If FORCE, and frame has a surrogate minibuffer for another frame,
12827 delete the other frame first.
12828
128292008-02-07 Timo Savola <timo.savola@iki.fi>
12830
12831 * xterm.c (x_detect_focus_change): Handle embed client message.
12832 (handle_one_xevent): Ditto.
12833 (handle_one_xevent): If embedded and we get a button press/release,
12834 request focus.
12835 (xembed_set_info, xembed_send_message): New functions.
12836 (x_make_frame_visible): Call xembed_set_info if embedded.
12837 (x_make_frame_invisible): Call xembed_set_info if embedded.
12838 (x_term_init): Initialize Xatom_XEMBED.
12839 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12840 (x_iconify_frame): Ditto.
12841
12842 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12843 (enum xembed_info, enum xembed_message, enum xembed_focus)
12844 (enum xembed_modifier, enum xembed_accelerator): New.
12845 (xembed_set_info, xembed_send_message): Declare.
12846 (FRAME_X_EMBEDDED_P): New.
12847
12848 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12849 gtk_plug_new.
12850
12851 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12852 window ID of a frame.
12853 (x_window): Reparent frame if embedded.
12854 (Fx_create_frame): Don't set border width if embedded.
12855
12856 * emacs.c (USAGE3): Add --parent-id.
12857 (standard_args): Ditto.
12858
128592008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12860
12861 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12862
128632008-02-07 Jim Meyering <meyering@redhat.com>
12864
12865 Use "do...while (0)", not "if (1)...else" in macro definitions.
12866 The latter provokes a warning from gcc about the empty else, when
12867 followed by ";". Also, without that trailing semicolon, it would
12868 silently swallow up any following statement.
12869 * syntax.h (SETUP_SYNTAX_TABLE)
12870 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12871 * buffer.h (DECODE_POSITION): Likewise.
12872 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12873 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12874 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12875 (FETCH_CHAR_ADVANCE): Likewise.
12876 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12877
128782008-02-07 Jim Meyering <meyering@redhat.com>
12879
12880 * lread.c [lint]: Don't include <sys/inode.h>.
12881
128822008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12883
12884 * xselect.c (x_handle_dnd_message):
12885 * xmenu.c (digest_single_submenu, xmenu_show):
12886 * xdisp.c (with_echo_area_buffer_unwind_data)
12887 (format_mode_line_unwind_data, unwind_format_mode_line)
12888 (display_menu_bar):
12889 * eval.c (Ffetch_bytecode):
12890 * doc.c (store_function_docstring):
12891 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12892 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12893 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12894
128952008-02-07 Kenichi Handa <handa@m17n.org>
12896
12897 * ftxfont.c (ftxfont_open): Don't set
12898 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12899
12900 * ftfont.c (ftfont_open): Fix previous change.
12901
129022008-02-06 Jason Rumney <jasonr@gnu.org>
12903
12904 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12905 Use cached metrics for ASCII characters.
12906 (w32font_open_internal): Don't set font's owning_frame.
12907 Cache metrics for ASCII characters.
12908
12909 * w32font.h (struct w32font_info): Add ascii_metrics.
12910 Remove owning_frame.
12911
129122008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12913
12914 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12915 to negative value.
12916
12917 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12918
12919 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12920
12921 * charset.c (syms_of_charset): Set QCtest and Qeq.
12922
129232008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12924
12925 * process.c (Fstart_process):
12926 * callproc.c (Fcall_process): Handle the case where
12927 Funhandled_file_name_directory returns nil.
12928
12929 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12930 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12931 * font.c (check_gstring): Use them and AREF to access the vector before
12932 we know it's really a gstring.
12933 (Ffont_shape_text): Fix typo.
46e722a9 12934 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12935
12936 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12937 Declare.
12938
12939 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12940
129412008-02-05 Jason Rumney <jasonr@gnu.org>
12942
12943 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12944 Set smallest_font_height and smallest_char_width in display info.
12945
129462008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12947
12948 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12949
129502008-02-05 Miles Bader <miles@gnu.org>
12951
12952 * xfaces.c (get_lface_attributes, merge_named_face)
12953 (lookup_named_face, lookup_derived_face, realize_named_face):
12954 Revert 2008-02-01 change by cyd@stupidchicken.com.
12955
129562008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12957
12958 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12959 fallback fonts.
12960 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12961
129622008-02-04 Jason Rumney <jasonr@gnu.org>
12963
12964 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12965 set full_name.
12966 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12967
129682008-02-03 Jason Rumney <jasonr@gnu.org>
12969
12970 * makefile.w32-in (OBJ1): Include font.o here.
12971 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12972
129732008-02-02 Jason Rumney <jasonr@gnu.org>
12974
12975 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12976
129772008-02-01 Jason Rumney <jasonr@gnu.org>
12978
12979 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12980
12981 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12982
129832008-02-01 Andreas Schwab <schwab@suse.de>
12984
12985 * Makefile.in (shortlisp, lisp): Update for rename of
12986 ../lisp/language/myanmar.el.
12987
129882008-02-01 Chong Yidong <cyd@stupidchicken.com>
12989
12990 * xfaces.c (get_lface_attributes): Delete function.
12991 (merge_named_face, lookup_named_face, lookup_derived_face)
12992 (realize_named_face): Call lface_from_face_name directly, and use
12993 the fact that merge_face_vectors does not alter its FROM argument.
12994
129952008-02-01 Jason Rumney <jasonr@gnu.org>
12996
12997 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12998 input in the default locale. Handle non-Unicode multibyte input.
12999
130002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13001
13002 * fontset.c (reorder_font_vector): Exclude nil elements from the
13003 font group. Don't try multiple fonts.
13004 (fontset_font): Adjust for the above change.
13005 (Finternal_char_font): Return nil if the found font doesn't
13006 contain the character ch.
13007
13008 * Makefile.in (lisp, shortlisp): Add cham.el.
13009
130102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13011
13012 * font.h (FONTP): Make it return 1 also for a font-object.
13013
13014 * .gdbinit (xfontset): New function.
13015
13016 * font.c (font_find_for_lface): Check if the character C is
13017 supported or not only for the first font.
13018
13019 * fontset.c (reorder_font_vector): Fix typo.
13020 (fontset_find_font): Don't add a font-spec specifying a script.
13021 Use 0 (not Qt) for the indication of empty font-group. Change the
13022 format of RFONT-DEF. Return Qt if no font in the font-group
13023 support the character.
13024 (fontset_font): Adjust for the above change. If no font was
13025 found the character, remember that.
13026 (face_for_char): Adjust for the change of RFONT-DEF.
13027 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13028 no font for the target.
13029 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13030
130312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13032
13033 * font.c (font_load_for_face): Handle the case that the font in
13034 face->lface is a string.
13035
130362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13037
13038 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13039
130402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13041
13042 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13043 Fix previous change. If the frame is not on a window system,
13044 signal an error.
13045
130462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13047
13048 * coding.c (decode_coding_object, encode_coding_object): Adjust
13049 marker positions after conversion.
13050
13051 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13052
130532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13054
13055 * font.c (font_find_for_lface): Fix the handling of the return
13056 value of font_has_char.
13057 (Ffont_shape_text): Fix previous change.
13058
13059 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13060 (fontset_ref_and_range): Delete it.
13061 (fontset_find_font): Call char_table_ref_and_range instead of
13062 FONTSET_REF_AND_RANGE.
13063 (make_fontset): Don't setup font groups of Latin here.
13064 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13065 (new_fontset_from_font): Make the specified font the default for
13066 all Latin characters.
13067
130682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13069
13070 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13071 is on a window system before accessing the fontset of the frame.
13072
130732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13074
13075 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13076
13077 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13078 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13079
13080 * font.c (Ffont_shape_text): If the font driver doesn't have a
13081 shaper function, make zero-width glyphs to have at least one-pixel
13082 width. Fix setting of `to' field of glyphs.
13083
130842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13085
13086 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13087 glyphs.
13088
13089 * font.h (struct font_driver): Improve docstring of member `shape'.
13090
130912008-02-01 Kenichi Handa <handa@m17n.org>
13092
13093 * composite.c (syms_of_composite): Fix docstring of
13094 auto-composition-function.
13095
13096 * font.h (LGLYPH_SIZE): New macro.
13097
13098 * font.c (Ffont_fill_gstring): Stop filling when a character not
13099 supported by the font is found.
13100 (Ffont_shape_text): When a shape callback function returns nil,
13101 try at most two more times with larger gstring.
13102 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13103
13104 * xdisp.c (handle_auto_composed_prop): Change the argument to
13105 auto-composition-function.
13106
13107 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13108 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13109 Lispy glyph and store it in the lgstring.
13110
13111 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13112
13113 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13114
131152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13116
13117 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13118
13119 * fontset.c (Vfont_encoding_charset_alist): New variable.
13120 (syms_of_fontset): DEFVAR it.
13121 (reorder_font_vector, fontset_find_font): Optimize for the case of
13122 no need of reordering.
13123 (face_for_char): Map the charset property by
13124 Vfont_encoding_charset_alist.
13125
131262008-02-01 Jason Rumney <jasonr@gnu.org>
13127
13128 * w32font.c (logfonts_match): Don't check adstyle here.
13129 (font_matches_spec): Check here against physical font instead.
13130 (add_font_entity_to_list): Avoid some substitutions.
13131
13132 * font.c (font_parse_fcname): Default weight and slant to normal.
13133 (font_score): Prefer normal fonts if weight or slant unspecified.
13134 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13135 match freetype scores.
13136
131372008-02-01 Jason Rumney <jasonr@gnu.org>
13138
13139 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13140 font, as it may have been deleted.
13141 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13142 most common hyphenless variation.
13143 (logfonts_match): Check generic family.
13144 (font_matches_spec): Don't check generic family here.
13145 (fill_in_logfont): Set generic family based on adstyle.
13146
13147 * w32font.h (w32font_get_cache): Update declaration.
13148
131492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13150
13151 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13152
13153 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13154 If none of the new drivers are available, call font_update_drivers
13155 with the old drivers.
13156
13157 * w32font.c (w32font_get_cache): Adjust the argument type.
13158
13159 * xfont.c (xfont_get_cache): Adjust the argument type.
13160
13161 * font.h (struct font_driver): Change argument type of get_cache.
13162
13163 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13164
13165 * font.c (Ffont_get): Fix arguments to Fassoc.
13166 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13167 (font_clear_cache): New function.
13168 (font_list_entities, font_matching_entity): Use font_get_cache.
13169 (font_update_drivers): Call font_clear_cache when finishing a driver.
13170
13171 * fontset.c (fontset_find_font): Fix previous change.
13172
131732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13174
13175 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13176 dpyinfo->font_table.
13177 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13178 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13179
13180 * font.c (font_at): Handle the case that the arg C is negative.
13181 Handle the unibyte case.
13182 (Ffont_at): Call font_at with the arg C -1.
13183
13184 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13185 the position here, and call font_at with the arg C -1.
13186 Don't check the range of the existing composition at the point.
13187
131882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13189
13190 * fontset.c (fontset_add): New args charset_id and family.
13191 Change caller.
13192 (load_font_get_repertory, fontset_find_font): Assume that
13193 font_spec is always a font-spec object.
13194 (Fset_fontset_font): Always store a font-spec object in a fontset.
13195
13196 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13197 instead of get_property_and_range.
13198
131992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13200
13201 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13202 (xftfont_open): Don't keep locking face.
13203 (xftfont_close): Don't unlock face.
13204 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13205
13206 * fontset.c (fontset_find_font): Don't prefer a font of
13207 supplementary charset.
13208
132092008-02-01 Kenichi Handa <handa@m17n.org>
13210
13211 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13212 script, langsys_tag to langsys, new member script.
13213 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13214 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13215 listing to the script specified in that property. Fix arg to
13216 OTF_check_features.
13217
132182008-02-01 Jason Rumney <jasonr@gnu.org>
13219
13220 * w32font.h: New file.
13221
13222 * w32font.c: Include it.
13223 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13224 (w32font_open): Set owning_frame.
13225 (w32font_text_extents): Use owning_frame.
13226 (struct font_callback_data): Add opentype_only field.
13227 (add_font_entity_to_list): Use it to filter fonts.
13228 Don't check against full name.
13229 (w32font_list_internal): New function.
13230 (w32font_list): Use it.
13231 (w32font_match_internal): New function.
13232 (w32font_match): Use it.
13233 (w32font_open_internal): New function.
13234 (w32font_open): Use it.
13235 (w32font_get_cache, w32font_close, w32font_has_char)
13236 (w32font_encode_char, w32font_text_extents, w32font_draw):
13237 Make non-static.
13238
13239 * makefile.w32-in (w32font.o): Depend on w32font.h.
13240
132412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13242
13243 * charset.c (Fdefine_charset_internal): Record a supplementary
13244 charset at the tail of Vcharset_order_list.
13245
13246 * font.c (Ffont_shape_text): Fix the return value.
13247
13248 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13249
13250 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13251
132522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13253
13254 * ftfont.c (struct OpenTypeSpec): New struct.
13255 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13256 (ftfont_get_open_type_spec): New function.
13257 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13258
13259 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13260
132612008-02-01 Jason Rumney <jasonr@gnu.org>
13262
13263 * w32font.c (add_font_entity_to_list): Compare only the beginning
13264 of full name.
13265
132662008-02-01 Kenichi Handa <handa@m17n.org>
13267
13268 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13269 Never return HANDLED_RECOMPUTE_PROPS.
13270
132712008-02-01 Kenichi Handa <handa@m17n.org>
13272
13273 * font.c (font_gstring_produce): Delete it.
13274
13275 * composite.h (COMPOSITION_METHOD):
13276 Handle COMPOSITION_WITH_GLYPH_STRING.
13277
132782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13279
13280 * xfont.c (Qx): Delete.
13281 (syms_of_xfont): Don't initialize Qx.
13282
13283 * composite.h (enum composition_method):
13284 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13285
132862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13287
13288 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13289 (choose_face_font): Accept new form of font-spec.
13290
13291 * frame.h (font_driver_list): Declare it unconditionally.
13292 (struct frame): Define members font_driver_list and font_data_list
13293 unconditionally.
13294
13295 * fontset.c: Include "font.h" unconditionally.
13296 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13297 (Fset_fontset_font): Accept a font-spec object.
13298
13299 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13300 PIXEL_SIZE part a wild card.
13301
13302 * dispextern.h (struct glyph_string): Define members clip and
13303 num_clips unconditionally.
13304 (struct face): Define members font_info and extra unconditionally.
13305
13306 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13307 ftfont_info only when HAVE_LIBOTF is defined.
13308
133092008-02-01 Andreas Schwab <schwab@suse.de>
13310
13311 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13312 and end.
13313
133142008-02-01 Jason Rumney <jasonr@gnu.org>
13315
13316 * w32font.c (w32font_driver): Add new fields.
13317
133182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13319
13320 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13321 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13322 (LIBES): Add @M17N_FLT_CFLAGS@.
13323
13324 * composite.c (compose_text): Don't treat the new style
13325 composition specially.
13326
13327 * emacs.c (main): Call syms_of_font unconditionally.
13328
13329 * font.h (FONT_ENTITY_NOT_LOADABLE)
13330 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13331 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13332 (struct font_driver): New member shape.
13333 (font_registry_charsets): Extern it.
13334 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13335 (font_otf_capability, font_drive_otf): Delete their externs.
13336
13337 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13338 (font_charset_alist, font_registry_charsets): Move from xfont.c
13339 and rename.
13340 (font_prop_validate_otf): New function.
13341 (font_property_table): Register it for QCotf.
13342 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13343 (font_drive_otf): Delete.
13344 (font_prepare_composition): New arg F. Adjust for the change of
13345 lispy gstring.
13346 (font_find_for_lface): New arg C.
13347 (font_load_for_face): Adjust for the change of font_find_for_lface.
13348 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13349 lispy gstring.
13350 (Ffont_shape_text): New function.
13351 (Fopen_font): If the font size is not given, use 12-pixel.
13352 (Ffont_at): New arg STRING.
13353 (syms_of_font): Initalize font_charset_alist.
13354 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13355 conditionally.
13356
13357 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13358 fonts of the same font-spec. Change the format of RFONT-DEF.
13359 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13360 Adjust for the change of RFONT-DEF.
13361 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13362
13363 * ftfont.h: New file.
13364
13365 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13366 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13367 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13368 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13369 font_otf_capability and font_drive_otf, set ftfont_shape.
13370 (ftfont_list): Adjust for the change of :otf property value.
13371 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13372 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13373 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13374 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13375 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13376 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13377
13378 * w32term.c (x_draw_composite_glyph_string_foreground):
13379 Adjust for the change of lispy gstring.
13380
13381 * xdisp.c (handle_composition_prop): Adjust for the change of
13382 lispy gstring. Call a function for auto-composition with the
13383 third arg it->window.
13384 (fill_composite_glyph_string): Adjust for the change of lispy string.
13385 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13386
13387 * xfaces.c (set_font_frame_param): Adjust for the change of
13388 font_find_for_lface.
13389
13390 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13391 (xfont_registry_charsets): Likewise. Change caller.
13392 (syms_of_xfont): Don't handle x_font_charset_alist.
13393
13394 * xftfont.c: Include "ftfont.h".
13395 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13396 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13397 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13398 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13399 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13400 Set xftfont_driver.shape to xftfont_shape.
13401
13402 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13403 the change of lispy gstring.
13404
134052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13406
13407 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13408
134092008-02-01 Jason Rumney <jasonr@gnu.org>
13410
13411 * w32font.c (w32font_draw): Fill background manually.
13412
134132008-02-01 Jason Rumney <jasonr@gnu.org>
13414
13415 * font.c (Qfontp): Remove unused symbol.
13416 (QCantialias): New symbol.
13417 (syms_of_font): Define it.
13418 (font_property_table): Set a validator for QCantialias.
13419
13420 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13421 Define if not already.
13422 (QCfamily): Share with xfaces.c.
13423 (Qstandard, Qsubpixel, Qnatural): New symbols.
13424 (syms_of_w32font): Define them. Don't define QCfamily here.
13425 (w32_antialias_type, lispy_antialias_type): New functions.
13426 (w32_enumfont_pattern_entity): New arg requested_font.
13427 Set antialias parameter if non-default was requested.
13428 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13429
134302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13431
13432 * lread.c (read1): Undo the previous change.
13433
134342008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13435
13436 * frame.c (Fdelete_frame): Call font_update_drivers only when
13437 USE_FONT_BACKEND is defined.
13438
134392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13440
13441 * font.h (struct font_bitmap): New member bits_per_pixel.
13442 (struct font_driver): New members start_for_frame and end_for_frame.
13443 (struct font_data_list): New struct.
13444 (font_put_frame_data, font_get_frame_data): Extern them.
13445
13446 * frame.h (struct frame): New member font_data_list.
13447
13448 * font.c (font_update_drivers): Call driver->start_for_frame and
13449 driver->end_for_frame at proper timings.
13450 (font_put_frame_data, font_get_frame_data): New functions.
13451 (Ffont_spec): Add usage in the docstring.
13452
13453 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13454 (Fdelete_frame): Call font_update_drivers.
13455
13456 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13457 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13458 (xftfont_get_xft_draw): New function.
13459 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13460 (xftfont_end_for_frame): New function.
13461 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13462
13463 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13464 Change argument. Cache GCs in the per-frame data.
13465 (struct ftxfont_frame_data): New struct.
13466 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13467 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13468 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13469 (ftxfont_end_for_frame): New function.
13470 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13471
13472 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13473
134742008-02-01 Kenichi Handa <handa@m17n.org>
13475
13476 * xselect.c (Vselection_coding_system)
13477 (Vnext_selection_coding_system): Delete them.
13478 (syms_of_xselect): Don't declare selection-coding-system and
13479 next-selection-coding-system. They are declared in select.el.
13480
134812008-02-01 Jason Rumney <jasonr@gnu.org>
13482
13483 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13484
13485 * w32fns.c: Include imm.h.
13486 (get_composition_string_fn, get_ime_context_fn): New optional
13487 system functions.
13488 (globals_of_w32fns): Load them from imm32.dll.
13489 (ignore_ime_char): New flag.
13490 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13491 WM_IME_ENDCOMPOSITION messages.
13492
13493 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13494 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13495
134962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13497
13498 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13499 (READCHAR_REPORT_MULTIBYTE): New macro.
13500 (readchar): New 2nd arg MULTIBYTE.
13501 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13502 Make symbol's name multibyte according to the multibyteness of the
13503 source.
13504
135052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13506
13507 * xfaces.c (face_for_overlay_string): Call lookup_face with
13508 correct arguments (fix of synching with the trunk).
13509
135102008-02-01 Kenichi Handa <handa@m17n.org>
13511
13512 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13513 (font_prop_validate_non_neg, font_prop_validate_spacing):
13514 Delete argument prop_index.
13515 (font_property_table): Change arguments to validater. Change Callers.
13516 (font_lispy_object): Delete.
13517 (font_at): Use font_find_object instead fo font_lispy_object.
13518
135192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13520
13521 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13522 and file names.
13523
135242008-02-01 Jason Rumney <jasonr@gnu.org>
13525
13526 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13527 (font_matches_spec): Remove debug output.
13528 (add_font_entity_to_list): Avoid using substituted fonts.
13529
135302008-02-01 Jason Rumney <jasonr@gnu.org>
13531
13532 * doc.c (Fsnarf_documentation):
13533 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13534
135352008-02-01 Miles Bader <miles@gnu.org>
13536
13537 * dispextern.h (struct glyph_row): Only define "clip" field if
13538 HAVE_WINDOW_SYSTEM is defined.
13539
135402008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13541
13542 Fix up multi-tty merge.
13543
13544 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13545 and indentation.
13546
13547 * xfaces.c (free_realized_face, clear_face_gcs):
13548 Include font_done_for_face in the input_blocked section, just in case.
13549
13550 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13551 (get_char_face_and_encoding): Undo last change and remove the *other*
13552 duplicate definition (i.e. keep the one that's better scoped and that
13553 includes code for the font-backend).
13554
13555 * terminal.c (create_terminal): Default keyboard_coding to
13556 `no-conversion' and terminal_coding to `undecided'.
13557
13558 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13559
13560 * fontset.c (free_realized_fontsets): Check that the table entry does
13561 contain a fontset before trying to compare it to `base'.
13562
13563 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13564 syms_of_charset, and syms_of_coding earlier because init_window_once
13565 now needs Vcoding_system_hash_table to be setup.
13566
13567 * coding.h (default_buffer_file_coding): Remove.
13568
13569 * coding.c (default_buffer_file_coding): Remove.
13570 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13571 than ->symbol, and use the terminal-local coding system.
13572 (syms_of_coding): Don't setup the coding-systems that are not
13573 terminal-local.
13574 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13575
13576 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13577 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13578
13579 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13580 in chartab.c and were re-added here by mistake.
13581 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13582
13583 * doc.c (Fsnarf_documentation):
13584 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13585 src to etc.
13586
13587 * ChangeLog.10: Add mistakenly removed entry.
13588
135892008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13590
13591 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13592
135932008-02-01 Miles Bader <miles@gnu.org>
13594
13595 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13596 Add extra args to FACE_FOR_CHAR.
13597
135982008-02-01 Kenichi Handa <handa@m17n.org>
13599
13600 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13601 in sequence.
13602
13603 * chartab.c (map_sub_char_table, map_char_table): If the range
13604 contains just one character, call the function with that character
13605 even if the depth is not 3.
13606
136072008-02-01 Jason Rumney <jasonr@gnu.org>
13608
13609 * w32font.c (w32font_text_extents): Calculate metrics for the
13610 whole string.
13611
136122008-02-01 Jason Rumney <jasonr@gnu.org>
13613
13614 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13615
136162008-02-01 Jason Rumney <jasonr@gnu.org>
13617
13618 * w32term.c (x_set_glyph_string_clipping): Use
13619 get_glyph_string_clip_rects.
13620 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13621 Adjust for the change of struct glyph_string.
13622
13623 * w32font.c (w32font_draw): Do clipping here.
13624
136252008-02-01 Kenichi Handa <handa@m17n.org>
13626
13627 * xftfont.c (xftfont_draw): Adjust for the change of struct
13628 glyph_string.
13629
13630 * xterm.c (x_set_glyph_string_clipping): Use
13631 get_glyph_string_clip_rects.
13632 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13633 Adjust for the change of struct glyph_string.
13634
13635 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13636 the resulting clip(s}.
13637 (expose_overlaps): Add arg r. Change callers. Set it to
13638 row->clip temporarily.
13639 (expose_window): Redraw rows overlapping the exposed area.
13640
13641 * dispextern.h (struct glyph_row): New member clip.
13642 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13643 clip_height, new member clip, and num_clips.
13644
136452008-02-01 Kenichi Handa <handa@m17n.org>
13646
13647 * data.c (Fchar_or_string_p): Fix docstring.
13648
136492008-02-01 Kenichi Handa <handa@m17n.org>
13650
13651 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13652 create a temporary XftDraw object.
13653
136542008-02-01 Kenichi Handa <handa@m17n.org>
13655
13656 * font.c (Ffontp): Fix docstring.
13657
13658 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13659 strong evidence of ISO-2022.
13660
136612008-02-01 Kenichi Handa <handa@m17n.org>
13662
13663 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13664 SYNTAX_ENTRY_FOLLOW_PARENT.
13665
136662008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13667
13668 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13669 its type.
13670 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13671 Update to the new type of weak_hash_tables and next_weak.
13672
13673 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13674 a plain C pointer to Lisp_Hash_Table.
13675
13676 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13677 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13678 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13679 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13680 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13681 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13682 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13683 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13684 (GC_EQ): Remove since they've been identical to their non-GC_
13685 alter-egos ever since the markbit was eradicated.
13686
13687 * alloc.c:
13688 * buffer.c:
13689 * buffer.h:
13690 * data.c:
13691 * fileio.c:
13692 * filelock.c:
13693 * fns.c:
13694 * frame.h:
13695 * lisp.h:
13696 * macterm.c:
13697 * print.c:
13698 * process.c:
13699 * w32fns.c:
13700 * w32menu.c:
13701 * w32term.c:
13702 * xfns.c:
13703 * xmenu.c:
13704 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13705
137062008-02-01 Kenichi Handa <handa@m17n.org>
13707
13708 * chartab.c (map_sub_char_table): Make it work for the top-level
13709 char-table. Fix handling of parent char-table.
13710 (map_char_table): Adjust for the above change.
13711
137122008-02-01 Jason Rumney <jasonr@gnu.org>
13713
13714 * w32font.c (Qgdi): Rename from Qw32.
13715
137162008-02-01 Jason Rumney <jasonr@gnu.org>
13717
13718 * w32bdf.c (get_quoted_string): Make function static.
13719
137202008-02-01 Kenichi Handa <handa@m17n.org>
13721
13722 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13723 bigger ascent and descent than those of the font, use them as
13724 font's ascent and descent.
13725
137262008-02-01 Kenichi Handa <handa@m17n.org>
13727
13728 * Makefile.in (${lispsource}international/charprop.el): Move this
13729 target within "#ifdef HAVE_UNIDATA" and "#endif".
13730
137312008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13734 (shortlisp): Add ../lisp/language/tai-viet.el.
13735
137362008-02-01 Ulrich Mueller <ulm@gentoo.org>
13737
13738 * Makefile.in (${lispsource}international/charprop.el): Depend on
13739 temacs${EXEEXT}.
13740
137412008-02-01 Jason Rumney <jasonr@gnu.org>
13742
13743 * w32font.c (w32font_close): Delete the GDI font object.
13744
13745 * w32menu.c: Include character.h.
13746
13747 * w32proc.c: Likewise.
13748
13749 * w32select.c: Likewise.
13750
13751 * makefile.w32-in (w32proc.o): Depend on character.h.
13752
137532008-02-01 Jason Rumney <jasonr@gnu.org>
13754
13755 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13756
13757 * w32menu.c (syms_of_w32menu): Likewise.
13758
13759 * w32proc.c (syms_of_ntproc): Likewise.
13760
13761 * w32select.c (syms_of_w32select): Likewise.
13762
13763 * w32term.c (syms_of_w32term): Likewise.
13764
137652008-02-01 Jason Rumney <jasonr@gnu.org>
13766
13767 * w32font.c (w32font_draw): Delete brush after using it.
13768
137692008-02-01 Jason Rumney <jasonr@gnu.org>
13770
13771 * w32font.c (w32font_open): Don't set font_idx.
13772 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13773 to font settings.
13774 (w32font_draw): Fill background explicitly.
13775
137762008-02-01 Jason Rumney <jasonr@gnu.org>
13777
13778 * w32term.c (w32_initialize): Don't call w32font_initialize.
13779
13780 * w32font.c (w32font_info): Remove subranges.
13781 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13782 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13783 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13784 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13785 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13786 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13787 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13788 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13789 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13790 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13791 New symbols.
13792 (font_callback_data): New struct.
13793 (w32font_list, w32font_match): Use it.
13794 (w32font_open): Don't populate subranges.
13795 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13796 (w32font_encode_char): Always return unicode code-point as-is.
13797 (w32font_text_extents): Supply a transformation matrix to
13798 GetGlyphOutline. Never look up by glyph index. Avoid looping
13799 twice. Use unicode version of GetTexExtentPoint32 instead of
13800 glyph index version.
13801 (set_fonts_frame): Remove.
13802 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13803 set frame parameter. Use backward compatible fake foundries.
13804 Save generic family in extra slot under QCfamily. Make width slot
13805 constant. Save QCspacing value. Save list of scripts instead of
13806 binary subranges.
13807 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13808 (add_font_entity_to_list): Use font_callback_data struct. Filter
13809 unwanted fonts.
13810 (add_one_font_entity_to_list): Use font_callback_data struct.
13811 (w32_registry): Default to iso10646_1.
13812 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13813 string font registries. Don't fill in font name if it is a generic
13814 family name, fill family instead. Use spacing, family and script
13815 extra info to fill pitch, family and charset fields.
13816 (list_all_matching_fonts): Use font_callback_data struct.
13817 (unicode_range_for_char): Remove.
13818 (font_supported_scripts): New function.
13819 (w32font_initialize): Remove.
13820 (syms_of_w32font): Update which symbols are defined.
13821
138222008-02-01 Jason Rumney <jasonr@gnu.org>
13823
13824 * font.c (font_pixel_size): Reverse assq_no_quit args.
13825
13826 * w32term.h (FONT_WIDTH): Report max width, not average.
13827 (FONT_MAX_WIDTH): Remove.
13828 (FONT_AVG_WIDTH): New macro.
13829
13830 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13831 redefinition of FONT_WIDTH.
13832
13833 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13834 (w32_cache_char_metrics): Use FONT_WIDTH.
13835
13836 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13837
138382008-02-01 Jason Rumney <jasonr@gnu.org>
13839
13840 * w32font.c (w32font_open): Make lfHeight negative.
13841
13842 * w32fns.c (x_default_font_parameter): Use new style font name.
13843 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13844
138452008-02-01 Jason Rumney <jasonr@gnu.org>
13846
13847 * w32font.c (QCsubranges): New symbol.
13848 (w32font_open, w32font_has_char): Get subranges from subproperty
13849 of extra.
13850 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13851 (syms_of_w32font): Define :subranges symbol.
13852
13853 * font.c (font_put_extra): Expose externally.
13854
13855 * font.h (font_put_extra): Move declaration from font.c.
13856
13857 * font.c (Ffont_get): Use font driver to determine otf capability.
13858 (adjust_anchor): Check if driver defines anchor_point before using.
13859
13860 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13861 (w32font_draw): Use options.
13862 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13863 Fix detection of truetype fonts.
13864 (registry_to_w32_charset): Handle charsets other than iso8859-1
13865 expressed as lisp symbols.
13866 (w32_registry): Express charset as lisp symbol.
13867 (fill_in_logfont): Reverse pixel and point height logic.
13868 Don't set width here. Set quality to default.
13869
13870 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13871 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13872
13873 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13874 Remove redundant loop and allocation.
13875
13876 * makefile.w32-in (font.o, w32font.o): New objects.
13877 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13878 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13879
13880 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13881 STORE_XCHARB a valid l-value.
13882
13883 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13884 calculations for non-Truetype fonts.
13885 (x_draw_glyph_string): Sync with xterm.c.
13886 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13887 Remove redundant code.
13888 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13889
13890 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13891 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13892
13893 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13894 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13895
13896 * w32font.c: New file for w32 font backend.
13897
138982008-02-01 Kenichi Handa <handa@m17n.org>
13899
13900 * term.c: Don't include "buffer.h" twice.
13901
139022008-02-01 Kenichi Handa <handa@m17n.org>
13903
13904 * character.c (Funibyte_string): New function.
13905 (syms_of_character): Defsubr it.
13906
139072008-02-01 Jason Rumney <jasonr@gnu.org>
13908
13909 * w32term.c [USE_FONT_BACKEND]:
13910 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13911 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13912 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13913 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13914 (x_free_frame_resources): Sync with xterm.c.
13915
139162008-02-01 Andreas Schwab <schwab@suse.de>
13917
13918 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13919 char-table size.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13924
139252008-02-01 Kenichi Handa <handa@m17n.org>
13926
13927 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13928 font_otf_gpos, add font_drive_otf.
13929
13930 * fontset.c (fontset_find_font): Pay attention to font size
13931 specified for a font.
13932 (reorder_font_vector): Check contents of font_def.
13933
13934 * font.c (struct otf_list): Delete it.
13935 (otf_list): Make it a lisp variable.
13936 (otf_open): Use lispy otf_list.
13937 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13938 (check_otf_features): New function.
13939 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13940 New functions.
13941 (font_drive_otf): New function merging font_otf_gsub and
13942 font_otf_gpos.
13943 (font_open_for_lface): New arg spec. Change argument order.
13944 (font_load_for_face): Adjust for the change of font_open_for_lface.
13945 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13946 Ffont_otf_gpos.
13947 (syms_of_font): Staticpro otf_list. Delete defsubr of
13948 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13949
13950 * xfaces.c (set_font_frame_param): Adjust for the change of
13951 font_open_for_lface.
13952
13953 * font.h (font_open_for_lface): Adjust prototype.
13954 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13955 member otf_drive.
13956 (font_otf_gsub, font_otf_gpos): Delete externs.
13957 (font_drive_otf): Extern it.
13958
139592008-02-01 Kenichi Handa <handa@m17n.org>
13960
13961 * font.c (font_at): If the window W is not on a window system,
13962 return Qnil.
13963
13964 * coding.c (produce_chars, encode_coding): Don't call
13965 insert_from_gap if no characters to produce.
13966
139672008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13970 Fclear_face_cache.
13971
13972 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13973
139742008-02-01 Miles Bader <miles@gnu.org>
13975
13976 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13977 Parse "--disable-font-backend" option.
13978 (standard_args): Add "--disable-font-backend" option.
13979
139802008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * fontset.c (fontset_find_font): New function.
13983 (fontset_font): Use fontset_find_font.
13984 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13985 Register the specified font for all Latin characters.
13986 (new_fontset_from_font): Register the specified font for all Latin
13987 characters.
13988 (dump_fontset): For a realized fontset, include the base fontset
13989 name in the returned vector.
13990
139912008-02-01 Kenichi Handa <handa@m17n.org>
13992
13993 * character.h (CHAR_STRING): Cast C to unsigned on calling
13994 char_string.
13995
13996 * character.c (char_string): Type of arg C changed to unsigned.
13997 Signal an error if C is an invalid character code.
13998
13999 * editfns.c (general_insert_function, Fchar_to_string):
14000 Use CHARACTERP, not INTEGERP.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14005 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14006
14007 * regex.c (analyse_first): Fix for multibyte characters in "case
14008 charset:" and "case categoryspec:".
14009
140102008-02-01 Andreas Schwab <schwab@suse.de>
14011
14012 * Makefile.in (LIBES): Move standard libraries to the end.
14013
140142008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14017 nonzero, don't shrink the buffer nextb.
14018
14019 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14020
14021 * coding.c (coding_alloc_by_making_gap): New arg offset.
14022 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14023 offset.
14024 (decode_coding_iso_2022): Update coding->safe_charsets.
14025 (decode_coding_gap): Temporarily set
14026 current_buffer->text->inhibit_shrinking to 1.
14027
140282008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14031 indexing into elements of s->cmp and s->char2b.
14032
140332008-02-01 Juanma Barranquero <lekktu@gmail.com>
14034
14035 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14040 target_multibyte instead of multibyte.
14041 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14042 (bcmp_translate): Change the argument name from multibyte to
14043 target_multibyte.
14044
140452008-02-01 Kenichi Handa <handa@m17n.org>
14046
14047 These changes are to compile a regexp into a pattern that can be
14048 used both for multibyte and unibyte targets.
14049
14050 * Makefile.in (search.o): Depend on charset.h.
14051
14052 * character.c (multibyte_char_to_unibyte_safe): New function.
14053
14054 * search.c: Include "charset.h".
14055 (compile_pattern_1): Delete argument multibyte. Don't set
14056 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14057 (compile_pattern): Don't compare cp->buf.target_multibyte.
14058 Compare cp->buf.charset_unibyte.
14059 (compile_pattern): Set cp->buf.target_multibyte.
14060
14061 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14062
14063 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14064
14065 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14066 multibyte. Change callers.
14067 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14068 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14069 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14070 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14071 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14072 (regex_compile): Make the compiled pattern usable both for
14073 multibyte and unibyte targets.
14074 (analyse_first): Make the fastmap usable both for multibyte and
14075 unibyte targets.
14076 (TRANSLATE_VIA_MULTIBYTE): Delete.
14077 (re_match_2_internal): Pay attention to the case that the
14078 multibyteness of bufp and target may be different.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14083 empty box occupy at least one column width.
14084
140852008-02-01 Miles Bader <miles@gnu.org>
14086
14087 * Makefile.in: Remove redundant HAVE_XFT clause.
14088
140892008-02-01 Kenichi Handa <handa@m17n.org>
14090
14091 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14096 being nil.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14101
141022008-02-01 Kenichi Handa <handa@m17n.org>
14103
14104 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14105
141062008-02-01 Kenichi Handa <handa@m17n.org>
14107
14108 * search.c (simple_search): Fix previous change.
14109
141102008-02-01 Kenichi Handa <handa@m17n.org>
14111
14112 * xftfont.c (ftfont_font_format): Extern declaration.
14113
14114 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14115
14116 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14117 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14118
14119 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14120 (ftfont_font_format): Fix previous change.
14121
14122 * font.h (Ffont_xlfd_name): EXFUN it.
14123
14124 * font.c (font_parse_xlfd): Fix the array size of `f'.
14125 (register_font_driver): Use EQ to compare driver->type.
14126
14127 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14128 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14129 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14130
141312008-02-01 Kenichi Handa <handa@m17n.org>
14132
14133 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14134 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14135
141362008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * xfont.c (xfont_open): Set font->format.
14139
14140 * xftfont.c (xftfont_open): Set font->format.
14141
14142 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14143 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14144 (ftfont_open): Set font->format.
14145 (ftfont_font_format): New function.
14146
14147 * font.h (struct font): New member format.
14148
14149 * font.c (Qopentype): New variable.
14150 (syms_of_font): Defsym it.
14151 (Fquery_font): Change the format of the last element of the return
14152 value.
14153
141542008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14157 last resort.
14158
141592008-02-01 Kenichi Handa <handa@m17n.org>
14160
14161 * coding.c (detect_coding_charset): Fix detection of multi-byte
14162 charset.
14163
141642008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14165
14166 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14167
141682008-02-01 Kenichi Handa <handa@m17n.org>
14169
14170 * xdisp.c (get_next_display_element): Set it->face_id for the
14171 first component of a composition.
14172 (x_produce_glyphs): Check if the font is changed or not for composition.
14173
141742008-02-01 Kenichi Handa <handa@m17n.org>
14175
14176 * fontset.c (Qlatin): New variable.
14177 (syms_of_fontset): Define it as a lisp symbol.
14178 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14179
141802008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * font.c (font_unparse_fcname): Pay attention to the case that
14183 some of font property is a null string.
14184
141852008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * term.c: Include "composite.h".
14188 (encode_terminal_code): Output all components of composition.
14189 Check the size of encode_terminal_src.
14190 (produce_glyphs): For composition, call produce_composite_glyph.
14191 (append_composite_glyph, produce_composite_glyph): New functions.
14192
14193 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14194 is not found, get font_info from the current ascii face.
14195
141962008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14199 buffer-file-name to Qnil before calling insert_from_buffer.
14200
14201 * font.c (font_unparse_fcname): Pay attention to the case that
14202 foundry is a null string.
14203
142042008-02-01 Kenichi Handa <handa@m17n.org>
14205
14206 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14207
14208 * font.c (Qunicode_sip): New variable.
14209 (syms_of_font): Declare it as a Lisp symbol.
14210
14211 * font.h (Qunicode_sip): Extern it.
14212
142132008-02-01 Kenichi Handa <handa@m17n.org>
14214
14215 * composite.c (get_composition_id): Pay attention to TAB component.
14216
14217 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14218 TAB. Adjust for the change of s->char2b which always points to
14219 the first element of allocated memory.
14220
14221 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14222
14223 * xdisp.c (handle_composition_prop): Set it->c to the first
14224 non-TAB component.
14225 (fill_composite_glyph_string): Change argument.
14226 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14227 (x_produce_glyphs): Fix handling of left/right padding.
14228
142292008-02-01 Kenichi Handa <handa@m17n.org>
14230
14231 * coding.c (detect_coding_system): Fix for handling off
14232 inhibit_iso_escape_detection. Fix for the case that no coding
14233 system is defined for a specific coding category.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * font.c (font_matching_entity): Delete unused local var.
14238
14239 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14240 opening a font.
14241
14242 * fileio.c (Finsert_file_contents): On recovering a file, assume
14243 Unix-like eol.
14244 (choose_write_coding_system): On auto-saving a file, force
14245 Unix-like eol.
14246
14247 * coding.c (setup_coding_system): Fix setting of
14248 coding->common_flags based on eol_type.
14249 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14250 inherit from it.
14251
142522008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * alloc.c (NSTATICS): Increas to 0x600.
14255
142562008-02-01 Kenichi Handa <handa@m17n.org>
14257
14258 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14259 (ftfont_list): Don't check :name property.
14260 (ftfont_match): New function.
14261 (ftfont_pattern_entity): If the pattern doesn't contain
14262 FC_SPACING, don't assume FC_MONO.
14263
14264 * font.h (struct font_driver): New member `match'.
14265 (font_update_drivers): Adjust prototype.
14266
14267 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14268 property of FONT.
14269 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14270 them unconditionally.
14271 (font_matching_entity): New function.
14272 (font_open_by_name): Try font_matching_entity if exact match is
14273 not found.
14274 (font_update_drivers): Delete the arg FONT. Return a list of
14275 actually used backends. Don't free faces, font caches here.
14276 Don't store data in frame parameters. Don't call x_set_font.
14277 (Ffont_spec): Store :name property as is.
14278 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14279 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14280 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14281 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14282 Call font->driver->otf_gsub instead of font_otf_gsub.
14283
14284 * frame.c (x_set_font_backend): Do more works that were done in
14285 font_update_drivers before.
14286
14287 * xfont.c (xfont_match): New function.
14288 (xfont_driver): Set xfont_driver.match to xfont_match.
14289 (xfont_draw): Set font in GC if necessary.
14290
14291 * ftxfont.c (ftxfont_match): New function.
14292 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14293
14294 * xftfont.c (xftfont_match): New function.
14295 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14296
142972008-02-01 Kenichi Handa <handa@m17n.org>
14298
14299 * font.h (struct font): New member scalable.
14300 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14301 (font_otf_gsub): Adjust prototype.
14302
14303 * font.c (font_otf_capability): Fix handling of the default langsys.
14304 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14305 Check the contents of SPEC.
14306 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14307 (check_gstring): New function.
14308 (REPLACEMENT_CHARACTER): New macro.
14309 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14310 glyph codes of GSTRING.
14311 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14312 (font_prepare_composition): Set cmp->glyph_len.
14313 (font_open_entity): Set font->scalable.
14314 (Ffont_get): Handle :otf property.
14315 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14316 functions.
14317 (Fquery_font): Use font->font.full_name.
14318 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14319 Sfont_otf_alternates.
14320
14321 * ftfont.c (ftfont_open): Set font->font.full_name and
14322 font->font.name properly. Fix calculation of font->font.height
14323 and font->min_width.
14324
14325 * ftxfont.c (ftxfont_create_gcs): New function.
14326 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14327 (ftxfont_draw_backgrond): Fix filling region.
14328 (ftxfont_default_fid): New function.
14329 (ftxfont_open): Set xfont->fid to the return value of
14330 ftxfont_default_fid.
14331 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14332 (ftxfont_done_face): Free only GCs that are created by
14333 ftxfont_create_gcs.
14334 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14335
14336 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14337 Clip to src->width, etc (not src->clip_XXX).
14338
14339 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14340 FontBackend frame parameter.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * font.h (struct font_driver_list): New member `on'.
14345 (Fclear_font_cache): EXFUN it.
14346 (font_update_drivers): Extern it.
14347
14348 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14349 (font_list_entities): Check driver_list->on.
14350 (register_font_driver): Initalize `on' member to 0.
14351 (font_update_drivers): New function.
14352 (Fclear_font_cache): Check driver_list->on.
14353
14354 * frame.h (Qfont_backend): Extern it.
14355 (x_set_font_backend): Extern it.
14356
14357 * frame.c (Qfont_backend): New variable.
14358 (frame_parms): New element for font-backend.
14359 (x_set_font_backend): New function.
14360
14361 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14362 FontBackend frame parameter.
14363 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14364 x_set_font_backend.
14365
14366 * xfont.c (xfont_list): Don't try listing by :name property if the
14367 name is not for XLFD.
14368
143692008-02-01 Kenichi Handa <handa@m17n.org>
14370
14371 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14372 (LGLYPH_SET_TO): New macros.
14373 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14374 element of G is vector or not.
14375 (font_at): Extern it.
14376
14377 * font.c: Include window.h.
14378 (font_lispy_object): New function.
14379 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14380 end of valid glyph.
14381 (font_close_object): Fix getting (struct font *).
14382 (font_at): New function.
14383 (Ffont_get): If FONT is a font-object, get entity from it.
14384 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14385 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14386 range check.
14387 (Ffont_at): New function.
14388 (syms_of_font): Defsubr Sfont_at.
14389
14390 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14391 before the entry for Qcomposition.
14392 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14393 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14394 the font in gstring.
14395 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14396 LGLYPH_FORM (g) to detect the end of valid glyph.
14397 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14398 we are composing with gstring.
14399
14400 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14401 Check if adjustment is vector or not.
14402
14403 * Makefile.in (font.o): Make it depends on window.h.
14404
144052008-02-01 Kenichi Handa <handa@m17n.org>
14406
14407 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14408 adjustment is vector or not.
14409
144102008-02-01 Miles Bader <miles@gnu.org>
14411
14412 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14417 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14418 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14419
14420 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14421 (DEVICE_DELTA): Fix typo.
14422 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14423 LGLYPH format.
14424
14425 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14426 the change of LGLYPH format.
14427
144282008-02-01 Kenichi Handa <handa@m17n.org>
14429
14430 * ftfont.c (ftfont_list): Fix typo.
14431 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14432
144332008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14434
14435 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14436
14437 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14438 xftface_info is non-NULL.
14439
144402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14441
14442 * ftfont.c (ftfont_list): Move misplaced #endif.
14443
144442008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * ftfont.c (ftfont_list): Pay attention to the case that
14447 FC_CAPABILITY is not defined.
14448
144492008-02-01 Kenichi Handa <handa@m17n.org>
14450
14451 * xftfont.c (xftfont_open): Set charset related members to -1.
14452
14453 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14454 QCname.
14455 (ftfont_open): Set charset related members to -1.
14456
14457 * fontset.c (Votf_script_alist): New variable.
14458 (syms_of_fontset): Initialize it.
14459 (fontset_font): Delete unused variable.
14460
14461 * fontset.h (Votf_script_alist): Extern it.
14462
14463 * font.c (font_find_for_lface): Optimize code.
14464
14465 * font.h (font_close_object, font_merge_old_spec): Extern them.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14470 (syms_of_font): Initialize them.
14471 (font_pixel_size): Allow float value in dpi.
14472 (font_prop_validate_type): Delete.
14473 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14474 Change caller.
14475 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14476 (font_prop_validate_extra): Delete.
14477 (font_prop_validate_spacing): New function.
14478 (font_property_table): Add elements for all known properties.
14479 (get_font_prop_index): Rename from check_font_prop_name. New
14480 argument FROM. Change caller.
14481 (font_prop_validate): Validate all known properties.
14482 (font_put_extra): Delete argument force. Change caller.
14483 (font_expand_wildcards): Make it static. Fix the way of shrinking
14484 the possible range.
14485 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14486 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14487 Change caller.
14488 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14489 (font_parse_fcname): Delete argument merge. Fix parsing of point
14490 size. Don't validate properties values here. Change caller.
14491 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14492 (font_open_by_name): Delete unused variable.
14493 (Ffont_spec): Likewise. Validate property values.
14494 (Ffont_match_p): New function.
14495
14496 * font.h (QCscalable): Extern it.
14497 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14498
14499 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14500
14501 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14502 (xfont_list_pattern): New function.
14503 (xfont_list): Use xfont_list_pattern.
14504
145052008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 * font.h (Flist_fonts): EXFUN it.
14508
145092008-02-01 Jason Rumney <jasonr@gnu.org>
14510
14511 * w32term.c (w32_initialize): Add back smoothing_type and
14512 smoothing_enabled definitions.
14513
145142008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14517 s->face->font on determining underline position.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14522 (font_has_char): Accept font-object too.
14523 (font_find_for_lface): Try at first with a size specified in face.
14524
145252008-02-01 Kenichi Handa <handa@m17n.org>
14526
14527 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14528 font_open_by_name.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * font.h (QCspacing, QCdpi): Extern them.
14533 (enum font_spacing): New enum.
14534 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14535
14536 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14537 (QCspacing, QCdpi): New variables.
14538 (syms_of_font): Initialize them.
14539 (font_pixel_size): New function.
14540 (font_put_extra): New function.
14541 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14542 in FONT_EXTRA.
14543 (font_parse_fcname): Handle enumerated values (e.g. bold).
14544 Fix handling font size. Add QCname property that contains only
14545 unknown properties.
14546 (font_score): Change argument. Change caller. Pay attention to
14547 FONT_PIXEL_SIZE_QUANTUM.
14548 (font_sort_entites, font_list_entities, font_find_for_lface)
14549 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14550 (Ffont_spec): Add QCname property that contains only unknown properties.
14551
14552 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14553 include weight in listing pattern, instead check weight of each
14554 listed font. Don't include scalable in pattern. Pay attention to
14555 FONT_PIXEL_SIZE_QUANTUM.
14556
145572008-02-01 Kenichi Handa <handa@m17n.org>
14558
14559 * font.c (font_parse_fcname): Fix parsing of point-size.
14560 (font_unparse_fcname): Produce symbolic names for style properties.
14561 (font_list_entities): Handle float size correctly.
14562 (font_open_by_name): Prefer `normal' property values if the name
14563 doesn't specify them.
14564
14565 * fontset.c (Finternal_char_font): Use font_get_name, not
14566 Ffont_xlfd_name.
14567
14568 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14569 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14570 pattern. Don't force scalable.
14571
14572 * xftfont.c (xftfont_open): For generating a name, start from
14573 96-byte buffer.
14574
145752008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14576
14577 * frame.h (x_new_fontset2): Fix prototype.
14578
145792008-02-01 Kenichi Handa <handa@m17n.org>
14580
14581 * font.h (struct font_driver): Delete member parse_name.
14582 (font_match_p, font_get_spec, font_parse_fcname)
14583 (font_unparse_fcname): Extern them.
14584 (font_get_name): Adjust prototype.
14585
14586 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14587 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14588 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14589 unnecessary checks for weight, slant, and swidth.
14590 (font_parse_fcname): New function.
14591 (font_unparse_fcname): New function.
14592 (font_parse_name): New function.
14593 (font_match_p): New function.
14594 (font_get_name): Change return value to Lisp string.
14595 (font_get_spec): New function.
14596 (Qunspecified, Qignore_defface): Don't extern them.
14597 (font_find_for_lface): Assume that LFACE is fully specified.
14598 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14599 object, use it for FACE.
14600 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14601 driver->parse_name.
14602 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14603
14604 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14605 prototype.
14606
14607 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14608 argument F. Don't call Fnew_fontset. Instead, directly call
14609 make_fontset.
14610
14611 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14612
14613 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14614 of x_new_fontset2.
14615
14616 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14617 (Qsans__serif): New variables.
14618 (ftfont_generic_family_list): New variable.
14619 (syms_of_ftfont): Initialize the above variables.
14620 (ftfont_pattern_entity): Delete argument NAME.
14621 (ftfont_list_generic_family): New function.
14622 (ftfont_parse_name): Delete this function.
14623 (ftfont_list): Try generic family only when FcFontList found no font.
14624 (ftfont_list_family): Fix args to FcObjectSetBuild.
14625
14626 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14627 object in attrs[LFACE_FONT_INDEX].
14628 (set_lface_from_font_name): Cancel all changes for font-backend.
14629 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14630 function.
14631 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14632 font object in QCfont attribute.
14633 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14634 (realize_default_face) [USE_FONT_BACKEND]: Call
14635 set_lface_from_font_and_fontset.
14636
14637 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14638 "fixed", and signal error here if no suitable font was found.
14639
14640 * xfont.c (xfont_parse_name): Delete this function.
14641
14642 * xftfont.c (xftfont_open): Change coding style of error
14643 handling. Generate fontconfig's fontname pattern.
14644
14645 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14646 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14647
14648 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14649 Both args FONTSET and FONT_OBJECT must be existing ones.
14650
146512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14652
14653 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14654
146552008-02-01 Kenichi Handa <handa@m17n.org>
14656
14657 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14658
14659 * font.h (struct font): Fix typo.
14660
14661 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14662 XLFD_XXX_INDEX.
14663 (enum xlfd_field_mask): New enum.
14664 (intern_font_field): Changed argument. Change caller. If digits
14665 are followed by non-digits, return a symbol.
14666 (font_expand_wildcards): New function.
14667 (font_parse_xlfd): Fix wildcard handling.
14668 (Ffont_spec): If :name is specified, reflect the info in the other
14669 properties.
14670
14671 * ftfont.c (ftfont_pattern_entity): Fix typo.
14672 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14673 locale.
14674
146752008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14678
14679 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14680 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14681 registry doesn't specify encoding part.
14682 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14683 (font_open_by_name): At first try parsing the name.
14684 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14685 as Lisp symbols.
14686
14687 * fontset.c (reorder_font_vector): Pay attention to the case that
14688 the 3rd element of font_def is nil.
14689 (fontset_font): For the default fontset, append one more fontset
14690 elements for a script-based font specification. Don't add script
14691 attribute on finding a font.
14692 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14693 font name.
14694 (fontset_ascii_font): If a font can't be opened, return nil.
14695
14696 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14697 (ftfont_pattern_entity): New function.
14698 (ftfont_get_cache): Assume that freetype_font_cache is already
14699 initialized.
14700 (ftfont_list): Handle the case that a file is specified in font
14701 name. Use ftfont_pattern_entity to generate entities.
14702 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14703 (syms_of_ftfont): Initialize freetype_font_cache.
14704
14705 * xftfont.c (xftfont_open): Make the font name fontconfig's
14706 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14707 (xftfont_close): Free font->font.name if not NULL.
14708
14709 * xfont.c (xfont_list): If script is specified for a font, return
14710 null_vector.
14711 (xfont_list_family): Declare argument type.
14712
14713 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14714 name, set LFACE_FONT (lface) to nil.
14715
14716 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14717 return Qnil.
14718
147192008-02-01 Kenichi Handa <handa@m17n.org>
14720
14721 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14722 (standard_args): Add "-enable-font-backend".
14723
147242008-02-01 Kenichi Handa <handa@m17n.org>
14725
14726 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14727 (struct xftdraw_list, xftdraw_list): Delete them.
14728 (register_xftdraw, check_xftdraw): Delete them.
14729 (xftfont_prepare_face): Don't call register_xftdraw.
14730 (xftfont_done_face): Don't call check_xftdraw.
14731 (xftfont_draw): Get background color only when with_background is
14732 nonzero.
14733
14734 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14735
147362008-02-01 Kenichi Handa <handa@m17n.org>
14737
14738 These changes are for the new font handling codes.
14739
14740 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14741 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14742 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14743 (FONTSRC, FONTOBJ): New variables.
14744 (obj): Add $(FONTOBJ).
14745 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14746 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14747 @LIBOTF_LIBS@.
14748 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14749 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14750
14751 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14752
14753 * character.h (Vscript_representative_chars): Extern it.
14754
14755 * character.c (Vscript_representative_chars): New variable.
14756 (syms_of_character): Declare it as a Lisp variable.
14757
14758 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14759 enable_font_backend is nonzero, accept the composition method
14760 COMPOSITION_WITH_GLYPH_STRING.
14761
14762 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14763 enumeration COMPOSITION_WITH_GLYPH_STRING.
14764
14765 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14766 members clip_x, clip_y, clip_width, and clip_height.
14767 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14768
14769 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14770 --enable-font-backend. Call syms_of_font.
14771
14772 * fns.c (assoc_no_quit): New function.
14773
14774 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14775 (face_for_font, new_fontset_from_font)
14776 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14777
14778 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14779 (fontset_font, fontset_ascii, face_for_char)
14780 (make_fontset_for_ascii_face, Ffont_info)
14781 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14782 is nonzero, use font-backend mechanism.
14783 (find_font_encoding): Make it non-static.
14784 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14785 New functions.
14786
14787 * frame.h (struct frame): New members resx and resy.
14788 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14789 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14790
14791 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14792 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14793
14794 * lisp.h (assoc_no_quit): Extern it.
14795
14796 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14797 Through out the file, use FONT_INFO_FROM_FACE instead of
14798 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14799 rif->per_char_metric.
14800 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14801 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14802 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14803 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14804 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14805 nonzero, use font-backend mechanism.
14806 (get_per_char_metric): New function.
14807
14808 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14809 (set_lface_from_font_name)
14810 (set_font_frame_param, free_realized_face)
14811 (prepare_face_for_display, clear_face_gcs)
14812 (Finternal_set_font_selection_order, realize_x_face)
14813 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14814 font-backend mechanism.
14815 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14816 (load_face_font) [USE_FONT_BACKEND]: Abort.
14817 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14818 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14819
14820 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14821 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14822 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14823 nonzero, register all available font drivers. Call
14824 x_default_font_parameter for deciding a font.
14825 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14826
14827 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14828 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14829 (x_set_glyph_string_clipping_exactly)
14830 (x_compute_glyph_string_overhangs)
14831 (x_draw_glyph_string_foreground)
14832 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14833 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14834 enable_font_backend is nonzero, use font-backend mechanism.
14835 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14836
148372008-02-01 Kenichi Handa <handa@m17n.org>
14838
14839 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14840 system_eol_type.
14841 (syms_of_coding): Initialize system_eol_type.
14842
14843 * process.c (Fset_process_coding_system): Inherit system's eol
14844 format if necessary.
14845
148462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14847
14848 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * coding.c (decode_eol): Pay attention to buffer relocation in
14853 del_range_2.
14854 (decode_coding): Call decode_eol before restoring undo_list.
14855
148562008-02-01 Kenichi Handa <handa@m17n.org>
14857
14858 * charset.c (Fdefine_charset_internal): Fix setting of
14859 emacs_mule_bytes.
14860
148612008-02-01 Kenichi Handa <handa@m17n.org>
14862
14863 * keyboard.c (read_char): Check if C is a character or not before
14864 looking up Vkeyboard_translate_table.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14869 condition to terminate the loop.
14870
148712008-02-01 Kenichi Handa <handa@m17n.org>
14872
14873 * coding.c (produce_composition): Compare charbuf[i] instead of
14874 args[i] against 0.
14875 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14876
148772008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14880 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14881 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14882 detect_coding.
14883 (emacs_mule_char): Handle old style (Emacs 20) component character
14884 of a composition.
14885 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14886 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14887 composition rule.
14888 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14889
148902008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * coding.c (encode_coding_ccl): Allocate destination dynamically
14893 when necessary.
14894
148952008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14898 the loop. When quitted, show a proper error message.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14903 src->clip_head and src->clip_tail temporarily instead of src->hl.
14904
14905 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14906 character sequence.
14907 (Fccl_execute_on_string): Use ASET, not XSET.
14908
149092008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14912
149132008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * coding.c (decode_coding): Fix the condition of terminating the
14916 decoding loop.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * data.c (Faset): On setting a character bigger than 255 in a
14921 unibyte string, signal an error instead of make the string multibyte.
14922
149232008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14926 made by a mapping table.
14927
149282008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14931 not.
14932 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14933 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14934
14935 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14936 s->face is NULL or not.
14937
149382008-02-01 Kenichi Handa <handa@m17n.org>
14939
14940 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14941 (x_draw_glyph_string): Fix drawing of right_overhang and
14942 left_overhang around/on cursor.
14943
14944 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14945
149462008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14949
149502008-02-01 Kenichi Handa <handa@m17n.org>
14951
14952 * coding.c (Fdefine_coding_system_internal)
14953 (Fdefine_coding_system_alias): Avoid a duplicated element in
14954 Vcoding_system_alist.
14955
149562008-02-01 Kenichi Handa <handa@m17n.org>
14957
14958 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14959
14960 * coding.c (Qcoding_system_define_form): New variable.
14961 (syms_of_coding): Intern and staticpro it.
14962 (Fcoding_system_p): Check Qcoding_system_define_form.
14963 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14964
14965 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14966 Fcoding_system_p.
14967 (CHECK_CODING_SYSTEM): If ID is not available, call
14968 Fcheck_coding_system.
14969 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14970 Try also Fcheck_coding_system.
14971
149722008-02-01 Kenichi Handa <handa@m17n.org>
14973
14974 * coding.c (code_conversion_restore): GCPRO arg.
14975
149762008-02-01 Kenichi Handa <handa@m17n.org>
14977
14978 * character.c (lisp_string_width): Check multibyteness of STRING.
14979
149802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14981
14982 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14983 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14984 (decode_mac_font_name): Use decode_coding_c_string instead of
14985 decode_coding.
14986 (x_load_font): Initialize fontp->fontset to -1. Set
14987 fontp->encoding_type.
14988
149892008-02-01 Kenichi Handa <handa@m17n.org>
14990
14991 * search.c (search_buffer): Give up BM search on case-fold-search
14992 if one of a target character has a case-equivalence of different
14993 byte length even if that target charcter is an ASCII.
14994 (simple_search): Fix calculation of byte length of matched text.
14995 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * coding.c (decode_coding): Fix handling of invalid bytes.
15000
150012008-02-01 Kenichi Handa <handa@m17n.org>
15002
15003 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15004 Unicode characters.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * coding.c (encode_coding_object): If a pre-write-conversion
15009 function makes a new buffer, kill it.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * coding.c (QCascii_compatible_p): New variable.
15014 (syms_of_coding): Initialize it.
15015 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15016 calling string_char.
15017 (record_conversion_result): Add `default:' case.
15018 (coding_charset_list): Delete unused variable `coding_type'.
15019 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15020 property in the plist of the coding system.
15021 (Fcoding_system_put): Check QCascii_compatible_p.
15022
150232008-02-01 Miles Bader <miles@gnu.org>
15024
15025 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15026 removed calculation of frame `f', as it's now used.
15027
150282008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15031 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15032 (UNIDATA): New variable.
15033 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15034 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15035 $(RUN_TEMACS) unconditionally.
15036
150372008-02-01 Kenichi Handa <handa@m17n.org>
15038
15039 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15040 (admindir): New variable.
15041 ($(lispsource)international/charprop.el): New target.
15042
150432008-02-01 Miles Bader <miles@gnu.org>
15044
15045 * character.c (chars-in-region): Remove obsolete function.
15046 (syms_of_character): Remove its initialization.
15047
150482008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15049
15050 * w32select.c (validate_coding_system)
15051 (setup_windows_coding_system): New functions.
15052 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15053 setup_windows_coding_system.
15054 (setup_config, Fw32_get_clipboard_data): Use
15055 validate_coding_system.
15056 (Fx_selection_exists): Move call to setup_config to a place
15057 where signals are allowed.
15058
15059 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15060 (Fcheck_coding_system): Add declarations.
15061
150622008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15065
150662008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15067
15068 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15069 string as the second argument for x_new_fontset.
15070
150712008-02-01 Kenichi Handa <handa@m17n.org>
15072
15073 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15074 (encode_coding_object): Use safe_call instead of call2.
15075
150762008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15079
15080 * Makefile.in (lisp): Include charprop.el.
15081
150822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15083
15084 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15085 Not sure if it's unnecessary.
15086
150872008-02-01 Steven Tamm <steventamm@mac.com>
15088
15089 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15090 some possibly unnecessary fontset checking code that crashed
15091 when creating a new frame.
15092
150932008-02-01 Kenichi Handa <handa@m17n.org>
15094
15095 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15096 lookup_face.
15097
15098 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15099
15100 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15105 (coding_charset_list): New function.
15106
15107 * coding.h (coding_charset_list): Extern it.
15108
151092008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15112 concatenation of family and registry.
15113
151142008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * character.h (BYTE8_STRING): Fix typo.
15117
15118 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15119 string to multibyte (sync to HEAD).
15120
15121 * casefiddle.c (casify_region): Handle changes in byte-length
15122 using replace_range_2 (sync to HEAD).
15123
151242008-02-01 Andreas Schwab <schwab@suse.de>
15125
15126 * chartab.c (map_char_table): GCPRO table and arg.
15127
151282008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15131 already at limit.
15132
151332008-02-01 Kenichi Handa <handa@m17n.org>
15134
15135 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15136 instead of fast_c_string_match_ignore_case.
15137 (find_font_encoding): Change argument to Lisp_Object. Use
15138 fast_string_match_ignore_case instead of
15139 fast_c_string_match_ignore_case. Change caller.
15140
151412008-02-01 Kenichi Handa <handa@m17n.org>
15142
15143 * xdisp.c (get_next_display_element): In unibyte case, decide to
15144 display in octal form by checking a character by
15145 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15146
15147 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15148
15149 * character.c (unibyte_has_multibyte_table): New variable.
15150
15151 * character.h (unibyte_has_multibyte_table): Extern it.
15152 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * coding.c (encode_coding_iso_2022): Fix handling of charset
15157 annotation.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.c (setup_coding_system): If coding_system is nil, use
15162 Qundecided.
15163 (Fterminal_coding_system): Return nil if terminal coding system is
15164 `undecided'.
15165 (syms_of_coding): Define coding-system `undecided' here. Setup
15166 terminal_coding as `undecided'.
15167
151682008-02-01 Kenichi Handa <handa@m17n.org>
15169
15170 * xdisp.c (message_dolog, set_message_1): Call
15171 unibyte_char_to_multibyte with arg type int.
15172
15173 * lread.c (read1): Fix reading of a char-table.
15174
15175 * print.c (print_object): Include sub char-table in circularities
15176 detection.
15177
151782008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15181 Append the found sequences in car of ARGS instead of prepending.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * fileio.c (report_file_error): Make a unibyte string from
15186 strerror (errorno).
15187 (Fsubstitute_in_file_name): Fix the arg to
15188 unibyte_char_to_multibyte. It is evaluated twice.
15189
151902008-02-01 Kenichi Handa <handa@m17n.org>
15191
15192 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15197 BOM is not found.
15198 (detect_coding, detect_coding_system): Optimization for ISO-2022
15199 when no 8-bit data is found.
15200
152012008-02-01 Jason Rumney <jasonr@gnu.org>
15202
15203 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15208 CHARS.
15209
152102008-02-01 Steven Tamm <steventamm@mac.com>
15211
15212 * macterm.c (mac_encode_char): Add charset argument and update
15213 to use encoding_type.
15214 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15215 switch to pure fontset.
15216 (decode_mac_font_name): Temporarily remove decoding.
15217 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15218 (x_load_font): Temporarily remove encoding.
15219
152202008-02-01 Kenichi Handa <handa@m17n.org>
15221
15222 * xfaces.c (Fface_font): If frame is not on a window system,
15223 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15224 refer to face->font.
15225 (split_font_name_into_vector, build_font_name_from_vector)
15226 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15227 when HAVE_WINDOW_SYSTEM is defined.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15232 (x_produce_glyphs): Fix setting of members of cmp in case
15233 cmp->glyph_len is zero.
15234
15235 * fontset.c (Fset_fontset_font): Fix docstring.
15236 (Ffontset_info): Make it backward compatible. New arg ALL.
15237
152382008-02-01 Kim F. Storm <storm@cua.dk>
15239
15240 * process.c (read_process_output): Grow decoding_buf when needed;
15241 this could cause a crash in allocate_string and compact_small_strings.
15242
152432008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15246
152472008-02-01 Kenichi Handa <handa@m17n.org>
15248
15249 * coding.c (setup_coding_system): Set coding->common_flags
15250 correctly for raw-text.
15251 (consume_chars): On encoding unibyte text by raw-text, don't check
15252 multibyte form.
15253 (encode_coding): On encoding by raw-text, never use translation tables.
15254
15255 * fileio.c (e_write): Short cut for the case of no encoding.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * coding.c (detect_coding, detect_coding_system): Delete unused
15260 variables.
15261
152622008-02-01 Kenichi Handa <handa@m17n.org>
15263
15264 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15265 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15266
152672008-02-01 Kenichi Handa <handa@m17n.org>
15268
15269 * coding.c (Ffind_coding_systems_region_internal): Include
15270 raw-text and no-conversion in the result.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15275 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15276 FONT_DEF.
15277 (font_def_arg, add_arg, from_arg, to_arg): New args.
15278 (set_fontset_font): Change argument.
15279 (Fset_fontset_font): Fix for the case that TARGET is a script
15280 name and charset name.
15281 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15282
152832008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * fontset.c (fontset_font): Rename from fontset_face. Change return
15286 value.
15287 (face_suitable_for_char_p, face_for_char): Adjust for the change
15288 of fontset_font.
15289 (make_fontset_for_ascii_face): Fix setting of the fontset element
15290 for ASCII.
15291 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15292 to get a font name.
15293 (Ffontset_info): Adjust for the change of fontset_font.
15294
15295 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15296
15297 * character.h (LEADING_CODE_LATIN_1_MIN)
15298 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15299
153002008-02-01 Kenichi Handa <handa@m17n.org>
15301
15302 * editfns.c (check_translation): New function.
15303 (Ftranslate_region_internal): Handle M:N mapping.
15304
153052008-02-01 Kenichi Handa <handa@m17n.org>
15306
15307 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15308
153092008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15312 goto invalid_code.
15313 (decode_coding_iso_2022): Fix handling of invalid designation.
15314
15315 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15316 after calling code_conversion_save.
15317
153182008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15321
15322 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15323
15324 * fontset.c: Include "intervals.h".
15325 (fontset_face): Fix comparing of Lisp_Objects.
15326 (free_face_fontset, new_fontset_from_font_name): Fix
15327 Lisp_Object/int mixup.
15328
15329 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15330
15331 * coding.c: Add many prototypes for static functions.
15332 (get_translation_table): Allow max_lookup to be NULL.
15333 (decode_coding, Ffind_coding_systems_region_internal)
15334 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15335 get_translation_table with max_lookup NULL.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * coding.c (get_translation_table): Declare it as Lisp_Object.
15340 (LOOKUP_TRANSLATION_TABLE): New macro.
15341 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15342 instead of CHAR_TABLE_REF.
15343
153442008-02-01 Kenichi Handa <handa@m17n.org>
15345
15346 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15347 annotation data format.
15348 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15349 Change arguments FROM and TO to single argument NCHARS. Change caller.
15350 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15351 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15352 (decode_coding_ccl, decode_coding_charset): Pay attention to
15353 coding->charbuf_used.
15354 (get_translation): New function.
15355 (produce_chars): New arguments translation_table and last_block.
15356 Translate characters here. Return number of carryover chars.
15357 Change caller.
15358 (produce_composition): New argument pos. Change caller.
15359 Adjust for the change of annotation data format.
15360 (produce_charset, produce_annotation): Likewise.
15361 (decode_coding, encode_coding): Don't call translate_chars.
15362 (consume_chars): New arg translation_table. Change caller.
15363 (translate_chars): Delete.
15364 (syms_of_coding): Make translation-table's number of extra slots 2.
15365
153662008-02-01 Kenichi Handa <handa@m17n.org>
15367
15368 * search.c (simple_search): Fix setting this_pos_byte in backward
15369 search.
15370
15371 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15372 byte sequence.
15373 (detect_coding_ccl): Fix setting of the variable valids.
15374
153752008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15378
15379 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15380
15381 * editfns.c (Ftranslate_region_internal): Rename from
15382 Ftranslate_region. Accept a char-table in TABLE.
15383 (syms_of_editfns): Defsubr Stranslate_region_internal.
15384
15385 * xfaces.c (set_lface_from_font_name): If a font is specified for
15386 a frame, generate a fontset from the font.
15387 (build_scalable_font_name): If the scalable font is requested for
15388 a specific size, don't change that size.
15389 (try_font_list): Try a scalable font also in the case that a
15390 pattern string is specified.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * xfaces.c (Fface_font): New optional arg CHARACTER.
15395
153962008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * charset.h (CHARSET_OFFSET): New macro.
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15403
15404 * fontset.c (fontset_face): Handle the case that repertory is a
15405 char-table.
15406 (find_font_encoding): Return nil for unknown encoding.
15407 (Fset_fontset_font): Ignore a font of unknown encoding.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * keymap.c (describe_vector): Handle default value of a char table.
15412
15413 * fontset.c (fontset_face): Handle fallback fonts correctly.
15414 (Ffontset_info): Return infomation about fallback fonts.
15415
154162008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * fontset.c (FONTSET_DEFAULT): New macro.
15419 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15420 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15421 the case that it is nil.
15422 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15423 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15424
15425 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15426 subset or superset.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * emacs.c (main): Call init_charset after syms_of_XXX.
15431
15432 * charset.c (Vcharset_map_directory): Delete.
15433 (Vcharset_map_path): New variable.
15434 (load_charset_map_from_file): Use Vcharset_map_path instead.
15435 (init_charset): Initialize Vcharset_map_path.
15436 (syms_of_charset): Delete declaration of "charset-map-directory",
15437 add declaration of "charset-map-path".
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15442 ASCII only string.
15443
15444 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15445
15446 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15447 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15448
154492008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15452
15453 * coding.c (QCmnemonic, QCdefalut_char)
15454 (QCdecode_translation_table, QCencode_translation_table)
15455 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15456 (get_translation_table): Return a list of translation tables if
15457 necessary.
15458 (decode_coding): Call get_translation_table with ENCODEP 0.
15459 (char_encodable_p): If translation_table is non-nil, always call
15460 translate_char.
15461 (Fdefine_coding_system_internal): Accept list of translation
15462 tables as :encode-translation-table and :decode-translation-table.
15463 (Fcoding_system_put): New function.
15464 (syms_of_coding): Declare new symbols. Defsubr
15465 Scoding_system_put.
15466 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15467 typically JISX0212.
15468
15469 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15470 when the charset is superset type.
15471
15472 * character.c (translate_char): Accept list of translation tables.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15477 (CODING_ATTR_TRANS_TBL): New macro.
15478
15479 * coding.c (get_translation_table): New function.
15480 (translate_chars): Fix the bug of skipping annotation data.
15481 (decode_coding, encode_coding): Utilize get_translation_table.
15482 (char_encodable_p, Funencodable_char_position): Translate char if
15483 necessary.
15484 (Ffind_coding_systems_region_internal)
15485 (Fcheck_coding_systems_region): Setup translation table for encode
15486 in a coding system attribute vector in advance.
15487 (Fdefine_coding_system_internal): Allow a symbol as translation
15488 table. For shift-jis type coding system, allow 4th charset.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15493
15494 * xdisp.c (get_next_display_element): Pass -1 as POS to
15495 FACE_FOR_CHAR if displaying a C-string.
15496
154972008-02-01 Kenichi Handa <handa@m17n.org>
15498
15499 * composite.c (get_composition_id): Handle xoff and yoff in a
15500 composition rule.
15501
15502 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15503 (struct composition): New member lbearing and rbearing.
15504
15505 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15506 (x_get_glyph_overhangs): Handle a composition glyph.
15507 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15508
15509 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15510 composition glyph.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * print.c: Include charset.h.
15515 (Vprint_charset_text_property): New variable.
15516 (Qdefault): Extern it.
15517 (PRINT_STRING_NON_CHARSET_FOUND)
15518 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15519 (print_check_string_result): New variable.
15520 (print_check_string_charset_prop): New function.
15521 (print_prune_charset_plist): New variable.
15522 (print_prune_string_charset): New function.
15523 (print_object): Call print_prune_string_charset if
15524 Vprint_charset_text_property is not t.
15525 (print_interval): Print nothing if interval->plist is nil.
15526 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15527 variable. Init and staticpro print_prune_charset_plist.
15528
155292008-02-01 Kenichi Handa <handa@m17n.org>
15530
15531 * fontset.c (new_fontset_from_font_name): Use the specified font
15532 for all characters in the new fontset.
15533
15534 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15535 OBJECT args.
15536
15537 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15538 OBJECT args for composition too.
15539
15540 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15541 OBJECT args.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15546
15547 * fontset.c (reorder_font_vector): Adjust for the change of
15548 FONT_DEF format.
15549 (fontset_face): New arg id. Change caller.
15550 (face_for_char): New args pos and object.
15551 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15552 (fs_query_fontset): Check NAME by Fassoc too.
15553 (Fset_fontset_font): Allow non-XLFD font name.
15554 (Ffontset_info): Adjust for the change of FONT_DEF format.
15555
15556 * fontset.h (face_for_char): Adjust prototype.
15557
15558 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15559 (append_space, extend_face_to_end_of_line)
15560 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15561 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15562
15563 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15564 POS and OBJECT args.
15565
15566 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15567 POS and OBJECT args.
15568
155692008-02-01 Jason Rumney <jasonr@gnu.org>
15570
15571 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15572 of GlobalAlloc'ed memory.
15573
155742008-02-01 Kenichi Handa <handa@m17n.org>
15575
15576 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15577
15578 * charset.h (charset_table_used): Delete extern.
15579
15580 * charset.c (charset_table_used): Make it static.
15581 (map_charset_chars): Fix args to c_function with.
15582
15583 * chartab.c (map_sub_char_table_for_charset): Fix args to
15584 c_function with.
15585
15586 * coding.h (enum coding_result_code): Delete
15587 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15588
15589 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15590 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15591 (Vlast_code_conversion_error): New variables.
15592 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15593 (ONE_MORE_BYTE): Record error if any instead of signaling an
15594 error. If non-ASCII multibyte char is found, return the negative
15595 value of the code. All callers changed to check it.
15596 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15597 (record_conversion_result): New function. Change all codes setting
15598 coding->result to call this function.
15599 (detect_coding_utf_8, decode_coding_utf_8)
15600 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15601 Don't use the local variable incomplete.
15602 (emacs_mule_char): Change the second arg to `const'.
15603 (decode_coding): Fix of flushing out unprocessed data.
15604 (make_conversion_work_buffer): Fix making of a work buffer.
15605 (decode_coding_object): Return coding->dst_object.
15606
15607 * fontset.c (set_fontset_font): Fix args.
15608
15609 * lisp.h (CHARACTERBITS): Define as 22.
15610
15611 * process.c (send_process): Be sure to set coding->src_multibyte.
15612
15613 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15614
156152008-02-01 Kenichi Handa <handa@m17n.org>
15616
15617 * xdisp.c (handle_auto_composed_prop): Give limit to
15618 Fnext_single_char_property_change.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * composite.c (syms_of_composite): Don't make the composition hash
15623 table weak.
15624
15625 * fontset.c (Fset_fontset_font): Fix docstring.
15626
15627 * lisp.h (detect_coding_system): Adjust prototype.
15628
15629 * fileio.c (kill_workbuf_unwind): Delete this function.
15630 (Finsert_file_contents): Adjust the call of detect_coding_system.
15631 Get conversion_buffer by code_conversion_save. Use the macro
15632 CODING_MAY_REQUIRE_DECODING. After decoding, update
15633 coding_system.
15634
15635 * coding.h (make_conversion_work_buffer): Delete extern.
15636 (code_conversion_save): Extern it.
15637
15638 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15639 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15640 (decode_coding_utf_8): Don't do eol converion.
15641 (detect_coding_utf_16): Check coding->src_chars, not
15642 coding->src_bytes. Add heuristics for those that have no signature.
15643 (decode_coding_emacs_mule, decode_coding_iso_2022)
15644 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15645 Don't do eol converion.
15646 (adjust_coding_eol_type): Return a new coding system.
15647 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15648 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15649 each change.
15650 (decode_coding): Pay attention to undo_list. Do eol conversion for
15651 all types of coding-systems (if necessary).
15652 (Vcode_conversion_work_buf_list): Delete it.
15653 (Vcode_conversion_reused_workbuf): Rename from
15654 Vcode_conversion_reused_work_buf.
15655 (Vcode_conversion_workbuf_name): New variable.
15656 (reused_workbuf_in_use): New variable.
15657 (make_conversion_work_buffer): Delete the arg DEPTH.
15658 (code_conversion_restore): Change argument to cons.
15659 (code_conversion_save): Delete the argument BUFFER. Change callers.
15660 (detect_coding_system): New argument src_chars. Change callers.
15661 Fix for utf-16 detection.
15662 (init_coding_once): Don't use ISO_carriage_return.
15663 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15664 reused_workbuf_in_use.
15665
156662008-02-01 Kenichi Handa <handa@m17n.org>
15667
15668 * keymap.c (store_in_keymap): Pay attention to the case that idx
15669 is a cons specifying a character range.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15674 HANDLED_RECOMPUTE_PROPS.
15675
15676 * coding.c (Fdefine_coding_system_internal): Fix checking of
15677 ascii compatibility.
15678
156792008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * charset.c (find_charsets_in_text): Delete unused locale variable.
15682 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15683
15684 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15685 Resync charset_list to Vemacs_mule_charset_list.
15686
15687 * keymap.c (store_in_keymap): Pay attention to the case that idx
15688 is a cons specifying a character range.
15689
156902008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * composite.c (update_compositions): Bind inhibit-read-only, etc
15693 to t before calling remove-list-of-text-properties.
15694
15695 * print.c (print_object): Always print ASCII chars as is.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15700
15701 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15702 is a char table.
15703
157042008-02-01 Kenichi Handa <handa@m17n.org>
15705
15706 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15707
157082008-02-01 Kenichi Handa <handa@m17n.org>
15709
15710 * xfaces.c (set_lface_from_font_name): Fix for the case that
15711 FONTNAME is not fontset name.
15712
157132008-02-01 Kenichi Handa <handa@m17n.org>
15714
15715 * fns.c (base64_encode_1): Fix previous change.
15716
157172008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * fontset.c (set_fontset_font): New function.
15720 (Fset_fontset_font): If a font is specified for a charset, use
15721 map_charset_chars to store the font spec in a fontset.
15722
157232008-02-01 Kenichi Handa <handa@m17n.org>
15724
15725 * fontset.c (fontset_face): Create a fallback fontset on demand.
15726 (make_fontset): Don't create a fallback fontset here.
15727 (free_face_fontset): Free a fallback fontset (if any) too.
15728 (n_auto_fontsets): Delete this variable.
15729 (auto_fontset_alist): New variable.
15730 (new_fontset_from_font_name): Check auto_fontset_alist.
15731 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15732 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15733 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15734 Defsubr Sfontset_list_all.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15743
157442008-02-01 Kenichi Handa <handa@m17n.org>
15745
15746 * editfns.c (Fgoto_char): Fix docstring.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * insdel.c (insert_from_gap): Adjust intervals correctly.
15751
157522008-02-01 Jason Rumney <jasonr@gnu.org>
15753
15754 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15755 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15756 (w32_initialize): Try to load it.
15757 (x_get_font_repertory): Use it if available.
15758 (w32_encode_char): Add shortcut for unicode output.
15759
15760 * w32fns.c (w32_load_system_font): Default charset to -1.
15761 (x_to_w32_charset): Match all fonts for unicode.
15762 (w32_to_x_charset): New parameter matching. Don't return partial
15763 or wildcard charsets.
15764 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15765 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15766 (w32_to_x_font): Match charset to real charset.
15767 (enum_font_cb2): Always list unicode versions.
15768
15769 * makefile.w32-in (temacs): Increase EMHEAP.
15770
157712008-02-01 Jason Rumney <jasonr@gnu.org>
15772
15773 * w32term.c (w32_encode_char): New charset parameter.
15774 font_info.encoding becomes encoding_type.
15775 (x_get_font_repertory): New function. Warning: stub only!
15776 (x_new_font): Return quickly if font already set.
15777 (x_new_fontset): fontsetname parameter is Lisp_Object.
15778 Use new fs_query_fontset. Try new_fontset_from_font_name.
15779 Use fontset_name for return value.
15780
15781 * w32term.h: Declare x_get_font_repertory.
15782
15783 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15784 place of find_charset_in_text. Use encode_coding_object in place
15785 of encode_coding.
15786 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15787 decode_coding.
15788
15789 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15790 of x_new_fontset.
15791 (w32_load_system_font): Initialize charset as unicode.
15792 font_info.encoding becomes encoding_type.
15793 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15794 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15795 (syms_of_w32fns): Set get_font_repertory_func.
15796
15797 * w32console.c: Include character.h. Use terminal_encode_buffer
15798 from term.c.
15799 (write_glyphs): Use new version of encode_terminal_code. Use
15800 encode_coding_object in place of encode_coding.
15801
15802 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15803 encoding becomes encoding_type.
15804
15805 * term.c (terminal_encode_buffer): Make externally visible.
15806
15807 * makefile.w32-in: Add character.h dependancies.
15808 (character.o, chartab.o): New targets.
15809
158102008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15813 CODING_ID_EOL_TYPE.
15814
158152008-02-01 Andreas Schwab <schwab@suse.de>
15816
15817 * coding.c (produce_chars): Revert last change.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * charset.h (charset_unicode): Extern it.
15822
15823 * charset.c (string_xstring_p): Check by (C >= 0x100).
15824 (find_charsets_in_text): Change format of the arc CHARSETS. New
15825 arg MULTIBYTE.
15826 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15827 change of find_charsets_in_text.
15828 (Fsplit_char): Fix doc. Never return unknown.
15829
15830 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15831
15832 * coding.c (Fdefine_coding_system_alias): Update
15833 Vcoding_system_list.
15834
15835 * fontset.c (load_font_get_repertory): Pay attention to the case
15836 that ENCODING of a font is specified by a char-table.
15837
15838 * xterm.c (x_get_font_repertory): Handle the case that the
15839 encoding of font is other than Unicode.
15840
158412008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15844 if a character is encodable by the terminal coding system. If
15845 not, produces proper number of `?'s. Update
15846 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15847 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15848
158492008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15852 variables.
15853 (encode_terminal_code): Change argument. Encode multiple
15854 characters at once. Store the result of encoding in
15855 terminal_encode_buffer.
15856 (write_glyphs, insert_glyphs): Adjust for the change of
15857 encode_terminal_code.
15858 (term_init): Initialize terminal_encode_buffer and
15859 terminal_encode_buf_size.
15860
15861 * coding.c (consume_chars): If coding->src_object is nil, don't
15862 check annotation.
15863
158642008-02-01 Kenichi Handa <handa@m17n.org>
15865
15866 * character.c (char_string): Use ASCII_CHAR_P instead of
15867 SINGLE_BYTE_CHAR_P.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * xdisp.c (handle_auto_composed_prop): Check if the last
15872 characters of auto-composed region is newly composed with the
15873 following characters.
15874 (handle_composition_prop): Fix checking of point being inside
15875 composition.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * fns.c (concat): Don't change multibyteness of the result by
15880 concatenating an 8-bit character.
15881
15882 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15883 multibyteness of the result when newelt is an 8-bit character.
15884
158852008-02-01 Dave Love <fx@gnu.org>
15886
15887 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15888 EMACS_INT.
15889
15890 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15891
15892 * xfaces.c (face_numeric_value): Declare dim size_t.
15893 (Finternal_lisp_face_equal_p): Remove unused f.
15894
15895 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15896 (MATRIX_ROW): Remove unused vars.
15897 (draw_glyphs, x_insert_glyphs, fast_find_position)
15898 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15899 byte/char counts.
15900
15901 * regex.c (regex_compile): Remove unused var.
15902
15903 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15904
15905 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15906 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15907
15908 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15909
15910 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15911
15912 * fileio.c (Fwrite_region): Remove unused var.
15913
15914 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15915 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15916
15917 * composite.c (Fremove_list_of_text_properties): Declare.
15918
15919 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15920 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15921 (coding_inherit_eol_type): Remove unused attrs.
15922 (detect_coding): Cast arg of detect_eol.
15923
15924 * charset.c (syms_of_charset): Remove unused var p.
15925 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15926 byte/char counts.
15927
15928 * casetab.c (set_case_table): Remove unused var.
15929
15930 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15931 unused vars.
15932
159332008-02-01 Dave Love <fx@gnu.org>
15934
15935 * xterm.c (x_bitmap_mask): Declare.
15936
159372008-02-01 Dave Love <fx@gnu.org>
15938
15939 * xterm.c (x_term_init): Fix type error.
15940
15941 * lisp.h: Add Funibyte_char_to_multibyte.
15942
15943 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15944 (Fset_coding_system_priority): Doc fix.
15945
15946 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15947
15948 * indent.c (check_composition): Make start and end EMACS_INT.
15949
15950 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15951
15952 * xdisp.c (handle_composition_prop, check_point_in_composition):
15953 Make buffer positions EMACS_INT.
15954
15955 * composite.c (find_composition, run_composition_function)
15956 (update_compositions, Ffind_composition_internal): Make buffer
15957 positions EMACS_INT.
15958
15959 * composite.h (find_composition, update_compositions): Make
15960 position args EMACS_INT.
15961
15962 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15963
15964 * intervals.c (get_property_and_range):
15965 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15966
15967 * unexalpha.c: Don't include varargs.h.
15968
159692008-02-01 Dave Love <fx@gnu.org>
15970
15971 * coding.h (ENCODE_UTF_8): New.
15972
15973 * Makefile.in (gtkutil.o): Depend on coding.h.
15974
15975 * coding.c (Fset_coding_system_priority): Doc fix.
15976
159772008-02-01 Kenichi Handa <handa@m17n.org>
15978
15979 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15980 the case of auto saving.
15981
159822008-02-01 Andreas Schwab <schwab@suse.de>
15983
15984 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15985 `range' from GC.
15986
159872008-02-01 Kenichi Handa <handa@m17n.org>
15988
15989 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15990
159912008-02-01 Kenichi Handa <handa@m17n.org>
15992
15993 * fileio.c (choose_write_coding_system): Return a decided coding system.
15994 (Fwrite_region): Set Vlast_coding_system_used to the return value
15995 of choose_write_coding_system.
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * charset.c (Fset_charset_priority): Pay attention to duplicated
16000 arguments.
16001
16002 * coding.c (QCcategory): New variable.
16003 (syms_of_coding): Defsym it. Set all elements of
16004 Vcoding_category_table and their symbol values.
16005 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16006 coding-category-XXX, and coding-category-list.
16007 (Fdefine_coding_system_internal): Add category in the plist.
16008
160092008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * callproc.c (Fcall_process): Handle carryover correctly.
16012
16013 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16014 (raw_text_coding_system): Check NILP (coding_system).
16015 (coding_inherit_eol_type): Check NILP (coding_system) and
16016 NILP (parent).
16017 (consume_chars): Fix for the case of raw-text.
16018
16019 * process.c (read_process_output): Handle carryover correctly.
16020
160212008-02-01 Dave Love <fx@gnu.org>
16022
16023 * regex.c (re_search_2): Fix last change.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16028 target_multibyte. Even in a unibyte case, return a converted
16029 multibyte char.
16030 (GET_CHAR_AFTER): New macro.
16031 (PATFETCH): Translate via multibyte char.
16032 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16033 (SETUP_MULTIBYTE_RANGE): New macro.
16034 (regex_compile): Setup compiled code so that its multibyteness
16035 matches that of a target. Fix the handling of "[X-YZ]" using
16036 SETUP_MULTIBYTE_RANGE.
16037 (analyse_first) <charset>: For filling fastmap for all multibyte
16038 characters, don't check by BASE_LEADING_CODE_P.
16039 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16040 the same as RE_MULTIBYTE_P (bufp) now.
16041 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16042 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16043 (TRANSLATE_VIA_MULTIBYTE): New macro.
16044 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16045 It is the same as RE_MULTIBYTE_P (bufp) now.
16046 <exactn>: Translate via multibyte.
16047 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16048 translate it.
16049 <charset, charset_not>: Fetch a character by
16050 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16051 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16052 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16053 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16054 by GET_CHAR_AFTER.
16055 (bcmp_translate): Likewise.
16056
16057 * search.c (compile_pattern): Check the member target_multibyte,
16058 not the member multibyte of buf.
16059
16060 * lread.c (read1): While reading a string, set force_singlebyte
16061 and force_multibyte correctly.
16062
16063 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16064 up of unibyte_to_multibyte_table.
16065
160662008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * coding.c (setup_coding_system): If coding has
16069 post-read-conversion or pre-write-conversion, set
16070 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16071 respectively.
16072 (decode_coding_gap): Run post-read-conversion if any.
16073
16074 * fileio.c (Finsert_file_contents): Even if we read into a
16075 unibyte buffer, check if we must decode the result or not.
16076
160772008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * coding.c (make_conversion_work_buffer): Change the work buffer
16080 name to the same one as that of Emacs 21.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * coding.h (make_conversion_work_buffer): Adjust prototype.
16085 (code_conversion_restore): Don't extern it.
16086
16087 * coding.c (detected_mask): Delete unused variable.
16088 (decode_coding_iso_2022): Pay attention to the byte sequence of
16089 CTEXT extended segment, and retain those bytes as is.
16090 (decode_coding_ccl): Delete unused variable `valids'.
16091 (setup_coding_system): Delete unused variable `category'.
16092 (consume_chars): Delete unused variable `category'. Make it work
16093 for non-multibyte case.
16094 (make_conversion_work_buffer): Change argument.
16095 (saved_coding): Delete unused variable.
16096 (code_conversion_restore): Don't check saved_coding->destination.
16097 (code_conversion_save): New function.
16098 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16099 instead of record_unwind_protect.
16100 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16101 (detect_coding_system): Delete unused variable `mask'.
16102 (Fdefine_coding_system_internal): Delete unused variable id.
16103
16104 * fileio.c (kill_workbuf_unwind): New function.
16105 (Finsert_file_contents): On replacing, call
16106 make_conversion_work_buffer with correct args, and call
16107 record_unwind_protect with the first arg kill_workbuf_unwind.
16108
16109 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16114 (fontset_add): Fix for the case that TO is less than TO1.
16115 (Ffontset_info): Don't use fallback fontset on checking the
16116 default fontset.
16117 (dump_fontset): New function for debugging.
16118
16119 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16120 coding_type is Qcharset.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16125 (map_char_table): Don't inherit the value from the parent on
16126 initializing VAL. Adjust for the above change.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * coding.c (Qsignature, Qendian): Delete these variables.
16131 (syms_of_coding): Don't initialize them.
16132 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16133 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16134 detect_info->found.
16135 (decode_coding_utf_16): Don't detect BOM here.
16136 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16137 is NOT utf_16_without_bom.
16138 (setup_coding_system): For a coding system of type utf-16, check
16139 if the attribute :endian is Qbig or not (not nil or not), and set
16140 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16141 (detect_coding): If coding type is utf-16 and BOM detection is
16142 required, detect it.
16143 (Fdefine_coding_system_internal): For a coding system of type
16144 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16145
161462008-02-01 Kenichi Handa <handa@m17n.org>
16147
16148 * coding.c (coding_set_source): Fix for the case that the current
16149 buffer is different from coding->src_object.
16150 (decode_coding_object): Don't use the conversion work buffer if
16151 DST_OBJECT is a buffer.
16152
161532008-02-01 Dave Love <fx@gnu.org>
16154
16155 * lread.c (read_emacs_mule_char) [len==2]: Index
16156 emacs_mule_charset correctly.
16157
161582008-02-01 Dave Love <fx@gnu.org>
16159
16160 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16161 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16162 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16163 treated specially.)
16164 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16165 (detected_mask): Remove Big5 bits.
16166
161672008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 The following changes are to make the font rescaling facility
16170 compatible with Emacs 21.
16171
16172 * xfaces.c (Vface_font_rescale_alist): Rename from
16173 Vface_resizing_fonts.
16174 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16175 (font_rescale_ratio): Rename from font_resizing_ratio.
16176 (split_font_name): Set font->rescale_ratio.
16177 (better_font_p): Pay attention to font->rescale_ratio.
16178 (build_scalable_font_name): Likewise. Change RESX, and RESY
16179 fields.
16180 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16181
161822008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16185 (Qutf_16_le): Remove these variables.
16186 (syms_of_coding): Don't DEFSYM them.
16187 (decode_coding_utf_16): Fix handling of BOM.
16188 (encode_coding_utf_16): Fix handling of BOM.
16189
161902008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * fileio.c (Finsert_file_contents): On replacing, before decoding
16193 the file into the work buffer, set point of the work buffer to the end.
16194
161952008-02-01 Dave Love <fx@gnu.org>
16196
16197 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16198
161992008-02-01 Dave Love <fx@gnu.org>
16200
16201 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16202 and fix C types.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * xdisp.c (SKIP_GLYPHS): New macro.
16207 (set_cursor_from_row): Pay attention to string display properties.
16208
16209 * category.c (copy_category_entry): Fix for the case that RANGE
16210 is an integer.
16211
16212 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16213
16214 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16215
162162008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * charset.c (Fcharset_id_internal): New function.
16219 (syms_of_charset): Defsubr it.
16220
16221 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16222 with the last arg charset_list acquired from coding.
16223 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16224 the attribute coding_attr_ccl_valids.
16225
16226 * coding.h (enum define_coding_ccl_arg_index): Set the first
16227 member coding_arg_ccl_decoder to coding_arg_max.
16228
16229 * ccl.h (ccl_driver): Adjust prototype.
16230
16231 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16232 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16233 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16234 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16235 last arg Qnil.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16240 call encode_char.
16241
16242 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16243
162442008-02-01 Dave Love <fx@gnu.org>
16245
16246 * composite.c (syms_of_composite): Make composition_hash_table weak.
16247
162482008-02-01 Kenichi Handa <handa@m17n.org>
16249
16250 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16251 (font_name_registry): Don't extern them.
16252 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16253
16254 * fontset.h (Qfontset): Don't extern it.
16255 (new_fontset_from_font_name): Extern it.
16256
16257 * fontset.c: Give 8 extra slots to fontset objects.
16258 (Qfontset_info): New variable.
16259 (syms_of_fontset): Defsym it.
16260 (FONTSET_FALLBACK): New macro.
16261 (fontset_face): Try also the default fontset.
16262 (make_fontset): Realize a fallback fontset from the default fontset.
16263 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16264 using split_font_name_into_vector and build_font_name_from_vector.
16265 (Fset_fontset_font): Access the elements of font_spec by enum
16266 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16267 name by using split_font_name_into_vector.
16268 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16269 generate a proper font name from the fontset name. Update
16270 Vfontset_alias_alist.
16271 (n_auto_fontsets): New variable.
16272 (new_fontset_from_font_name): New function.
16273 (Ffont_info): Store the information about fonts generated from the
16274 default fontset in the first extra slot of the returned char-table.
16275
16276 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16277 (font_name_registry): Delete function.
16278 (split_font_name_into_vector): New function.
16279 (build_font_name_from_vector): New function.
16280 (font_list): The argument REGISTRY is now a list of registry names.
16281 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16282 specifies an explicit font name, return the name as is. Make a
16283 list of registy names.
16284
16285 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16286 of x_new_fontset.
16287 (Fx_create_frame): Don't call x_new_fontset here. Just use
16288 x_list_fonts to check the existence of fonts.
16289
16290 * xterm.h (x_new_fontset): Adjust prototype.
16291
16292 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16293 string. Use new_fontset_from_font_name to create a fontset from a
16294 font name.
16295
162962008-02-01 Kenichi Handa <handa@m17n.org>
16297
16298 * syntax.c (Vfind_word_boundary_function_table): New name for
16299 Vnext_word_boundary_function_table.
16300 (find-word-boundary-function-table): New name for
16301 next-word-boundary-function-table.
16302
163032008-02-01 Dave Love <fx@gnu.org>
16304
16305 * Makefile.in: Fix some dependencies.
16306
16307 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16308 set it to nil before returning.
16309
16310 * composite.c (update_compositions): Fix type error.
16311
16312 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * xterm.c (x_new_font): Optimize for the case that the font is
16317 already set for the frame.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * chartab.c (char_table_ascii): Check if the char table contents
16322 is sub-char-table or not.
16323 (char_table_set, char_table_set_range): Fix argument to
16324 char_table_ascii.
16325
16326 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16327 (detect_coding_utf_8, detect_coding_utf_16)
16328 (detect_coding_emacs_mule, detect_coding_iso_2022)
16329 (detect_coding_sjis, detect_coding_big5)
16330 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16331 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16332 sequence is valid in this coding system. Change callers.
16333 (MAX_ANNOTATION_LENGTH): New macro.
16334 (ADD_ANNOTATION_DATA): New macro.
16335 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16336 ADD_ANNOTATION_DATA. Change the format of annotation data.
16337 (ADD_CHARSET_DATA): New macro.
16338 (emacs_mule_char): New argument ID. Change callers.
16339 (decode_coding_emacs_mule, decode_coding_iso_2022)
16340 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16341 Produce charset annotation data in coding->charbuf.
16342 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16343 to charset annotation data in coding->charbuf.
16344 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16345 coding->common_flags if the coding system is iso-2022 based and
16346 uses designation.
16347 (produce_composition): Adjust for the new annotation data format.
16348 (produce_charset): New function.
16349 (produce_annotation): Handle charset annotation.
16350 (handle_composition_annotation, handle_charset_annotation): New
16351 functions.
16352 (consume_chars): Handle charset annotation. Utilize the above two
16353 functions.
16354 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16355 buffer, get the deleted text as a string and set
16356 coding->src_object to that string.
16357 (detect_coding, detect_coding_system): Use the new struct
16358 coding_detection_info.
16359
16360 * coding.h (struct coding_detection_info): New structure.
16361 (struct coding_system): Adjust prototype of the member `detector'.
16362 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16363
163642008-02-01 Kenichi Handa <handa@m17n.org>
16365
16366 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16367
163682008-02-01 Dave Love <fx@gnu.org>
16369
16370 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16371 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16372 to new local and nullify apropos_accumulate before returning.
16373 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16374
163752008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16378 correctly.
e3eea1fc 16379
aac0c6e3
MR
163802008-02-01 Dave Love <fx@gnu.org>
16381
16382 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16383
163842008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 The following changes are to make character composition happen
16387 automatically on displaying.
16388
16389 * Makefile.in (lisp, shortlisp): Add composite.elc.
16390
16391 * composite.h (Qauto_composed, Vauto_composition_function)
16392 (Qauto_composition_function): Extern them.
16393
16394 * composite.c (Vcomposition_function_table)
16395 (Qcomposition_function_table): Delete variables.
16396 (Qauto_composed, Vauto_composition_function)
16397 (Qauto_composition_function): New variables.
16398 (run_composition_function): Don't call
16399 compose-chars-after-function.
16400 (update_compositions): Clear `auto-composed' text property.
16401 (compose_chars_in_text): Delete this function.
16402 (syms_of_composite): Staticpro Qauto_composed and
16403 Qauto_composition_function. Declare Vauto_composition_function as
16404 a Lisp variable.
16405
16406 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16407
16408 * xdisp.c (it_props): Add an entry for Qauto_composed.
16409 (handle_auto_composed_prop): New function.
16410
16411 * xselect.c (selection_data_to_lisp_data): Don't call
16412 compose_chars_in_text.
16413
164142008-02-01 Dave Love <fx@gnu.org>
16415
16416 * keyboard.c (read_char): Modify checking around use of
16417 Vkeyboard_translate_table.
16418
16419 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16420 and fix C types.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16425 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16426 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16427 the case that the last byte is '\r' correctly.
16428 (decode_coding): Flush out the unprocessed data correctly.
16429 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16430
164312008-02-01 Dave Love <fx@gnu.org>
16432
16433 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16434 Add XK_ISO... case.
16435 (xaw_scroll_callback): Revert last change.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16440
164412008-02-01 Kenichi Handa <handa@m17n.org>
16442
16443 * xfaces.c (Vface_resizing_fonts): New variable.
16444 (struct font_name): New member `resizing_ratio'.
16445 (font_resizing_ratio): New function.
16446 (split_font_name): Set font->resizing_ratio.
16447 (better_font_p): Pay attention to font->resizing_ratio.
16448 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16449 RESX, and RESY fields.
16450 (try_alternative_families): Try scalable fonts if
16451 Vscalable_fonts_allowed is not Qt.
16452 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16453
164542008-02-01 Dave Love <fx@gnu.org>
16455
16456 * xterm.c (xaw_scroll_callback): Cast correctly.
16457
164582008-02-01 Dave Love <fx@gnu.org>
16459
16460 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16461 (lispy_kana_keys): Comment out.
16462 (make_lispy_event) [XK_kana_A]: Comment out.
16463
16464 * xterm.c (xaw_scroll_callback): Cast call_data.
16465 (XTread_socket): Deal with ASCII keysyms.
16466 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16467
164682008-02-01 Dave Love <fx@gnu.org>
16469
16470 * xterm.c (Vx_keysym_table): New.
16471 (syms_of_xterm): Initialize it.
16472 (XTread_socket): Use it.
16473 From head: Eliminate incorrect optimization that tried to avoid
16474 decoding the output of X*LookupString.
16475 (x_get_font_repertory): Delete charset declaration.
16476
164772008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16480 return 0.
16481 (Fdefine_coding_system_internal): Setup
16482 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16483
164842008-02-01 Dave Love <fx@gnu.org>
16485
16486 * coding.c (Fcheck_coding_system): Doc fix.
16487
16488 * editfns.c (Finsert_byte): Return a proper value.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * coding.c (decode_coding): Fix args to translate_chars. Pay
16493 attention to Vstandard_translation_table_for_decode.
16494 (encode_coding): Fix args to translate_chars. Pay attention to
16495 Vstandard_translation_table_for_encode.
16496
16497 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16498 SINGLE_BYTE_CHAR_P.
16499
16500 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16501 not by SINGLE_BYTE_CHAR_P.
16502
16503 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16504 SINGLE_BYTE_CHAR_P.
16505
16506 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16507 SINGLE_BYTE_CHAR_P.
16508
16509 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16510 by SINGLE_BYTE_CHAR_P.
16511
16512 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16513 SINGLE_BYTE_CHAR_P.
16514
165152008-02-01 Dave Love <fx@gnu.org>
16516
16517 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16518
165192008-02-01 Dave Love <fx@gnu.org>
16520
16521 * fns.c (Flanginfo): Fix typo.
16522
16523 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16528 (detect_coding_emacs_mule, detect_coding_iso_2022)
16529 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16530 incomplete byte sequence. Don't update *mask when correctly detected.
16531 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16532 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16533 (detect_coding, detect_coding_system): Adjust for the changes above.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * character.c (char_string): Rename from
16538 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16539 (string_char): Rename from string_char.
16540
16541 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16542 if C is greater than MAX_3_BYTE_CHAR.
16543 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16544 string_char instead of string_char_with_unification.
16545
165462008-02-01 Dave Love <fx@gnu.org>
16547
16548 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16549
165502008-02-01 Kenichi Handa <handa@m17n.org>
16551
16552 * keymap.c (push_key_description): Pay attention to force_multibyte.
16553
16554 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16555
165562008-02-01 Dave Love <fx@gnu.org>
16557
16558 * charset.c (define_charset_internal): Rename `supprementary'.
16559
16560 * Makefile.in (lisp, shortlisp): Remove latin-N.
16561
165622008-02-01 Dave Love <fx@gnu.org>
16563
16564 * xfns.c (x_window, x_window): Use use_xim.
16565
16566 * xterm.c (use_xim): Initialize.
16567 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16568 (x_term_init): Maybe set use_xim.
16569
16570 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 * search.c (search_buffer): Fix case-fold-search of multibyte
16575 characters.
16576 (boyer_moore): Rename the last argument to char_high_bits.
16577
165782008-02-01 Kenichi Handa <handa@m17n.org>
16579
16580 * xdisp.c (display_string): Fix for the case of zero width glyph.
16581
16582 * xfns.c (x_set_font): Change the error message of the case that
16583 x_new_fontset returns Qt.
16584
16585 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16586 (Finternal_set_lisp_face_attribute): Use signal_error for the
16587 error of invalid fontset.
16588
16589 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16590 fontset, return Qt.
16591
165922008-02-01 Dave Love <fx@gnu.org>
16593
16594 * unexelf.c (unexec): Make .got handling not SGI-specific.
16595
16596 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16597
16598 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16599
16600 * keyboard.c (read_key_sequence): Fix type error.
16601
16602 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16603 type error.
16604
16605 * fontset.c (fontset_add): Return Lisp_Object.
16606
166072008-02-01 Dave Love <fx@gnu.org>
16608
16609 * charset.h (charset_ordered_list_tick): Declare extern.
16610
166112008-02-01 Kenichi Handa <handa@m17n.org>
16612
16613 The following changes (and some of 2008-02-01 changes of mine) are
16614 for handling syntax, category, and case conversion for unibyte
16615 characters by converting them to multibyte on the fly. With these
16616 changes, we don't have to setup syntax and case tables for unibyte
16617 characters in each language environment.
16618
16619 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16620 multibyte if necessary.
16621
16622 * bytecode.c (Fbyte_code): Likewise.
16623
16624 * character.h (LEADING_CODE_LATIN_1_MIN)
16625 (LEADING_CODE_LATIN_1_MAX): New macros.
16626 (unibyte_to_multibyte_table): Extern it.
16627 (unibyte_char_to_multibyte): New macro.
16628 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16629 (CHAR_LEADING_CODE): New macro.
16630 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16631
16632 * character.c (unibyte_to_multibyte_table): New variable.
16633 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16634 (multibyte_char_to_unibyte): If C is an eight-bit character,
16635 convert it to the corresponding byte value.
16636
16637 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16638 not 1, signals an error. Update the elements of
16639 unibyte_to_multibyte_table.
16640 (init_charset_once): Initialize unibyte_to_multibyte_table.
16641 (syms_of_charset): Define the charset `iso-8859-1'.
16642
16643 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16644 as is without converting it to unibyte. In a unibyte buffer,
16645 convert C to multibyte before checking the syntax.
16646
16647 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16648
16649 * minibuf.c (Fminibuffer_complete_word): Use the macro
16650 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16651
16652 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16653
16654 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16655 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16656 that is zero, convert an eight-bit char to multibyte.
16657 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16658 non-emacs case.
16659 (PATFETCH): Convert an eight-bit char to multibyte.
16660 (HANDLE_UNIBYTE_RANGE): New macro.
16661 (regex_compile): Setup the compiled pattern for multibyte chars
16662 even if the given regex string is unibyte. Use PATFETCH_RAW
16663 instead of PATFETCH in many places. To handle `charset'
16664 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16665 only for ASCII chars.
16666 (analyse_first) <exactn>: Simplify because the compiled pattern
16667 is multibyte.
16668 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16669 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16670 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16671 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16672 multibyte always 1.
16673 (re_search_2): In emacs, set the locale variable multibyte to 1,
16674 otherwise to 0. New local variable target_multibyte. Check it
16675 to decide the multibyteness of STR1 and STR2. If
16676 target_multibyte is zero, convert unibyte chars to multibyte
16677 before translating and checking fastmap.
16678 (TARGET_CHAR_AND_LENGTH): New macro.
16679 (re_match_2_internal): In emacs, set the locale variable multibyte
16680 to 1, otherwise to 0. New local variable target_multibyte. Check
16681 it to decide the multibyteness of STR1 and STR2. Use
16682 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16683 <charset, charset_not>: If multibyte is nonzero, check fastmap
16684 only for ASCII chars. Call bcmp_translate with
16685 target_multibyte, not with multibyte.
16686 <begline>: Declare the local variable C as `unsigned'.
16687 (bcmp_translate): Change the last arg name to target_multibyte.
16688
16689 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16690 the regexp pattern and the matching target. Set cp->buf.multibyte
16691 to the multibyteness of the regexp pattern. Set
16692 cp->but.target_multibyte to the multibyteness of the matching target.
16693 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16694 FETCH_STRING_CHAR_ADVANCE.
16695 (Freplace_match): Convert unibyte chars to multibyte.
16696
16697 * syntax.c (char_quoted, back_comment, scan_words)
16698 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16699 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16700 unibyte chars to multibyte.
16701 (skip_chars): Delete the arg syntaxp, and move the code for
16702 handling syntaxes to skip_syntaxes. Change callers.
16703 Fix the case that the multibyteness of STRING and the current
16704 buffer doesn't match.
16705 (skip_syntaxes): New function.
16706 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16707 SINGLE_BYTE_CHAR_P.
16708
167092008-02-01 Kenichi Handa <handa@m17n.org>
16710
16711 * xfaces.c (QCfontset): New variable.
16712 (LFACE_FONTSET): New macro.
16713 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16714 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16715 (Finternal_set_lisp_face_attribute)
16716 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16717 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16718 check also LFACE_FONTSET_INDEX.
16719 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16720 attrs[LFACE_FONT_INDEX].
16721 (syms_of_xfaces): Intern and staticpro QCfontset.
16722
16723 * dispextern.h (enum lface_attribute_index): New member
16724 LFACE_FONTSET_INDEX.
16725
16726 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16727
167282008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * coding.c (coding_set_destination): Fix coding->destination for
16731 the case converting a region.
16732 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16733 (encode_coding_object): Fix coding->dst_pos and
16734 coding->dst_pos_byte for the case converting a region.
16735
16736 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16737
16738 * character.h (BYTE8_STRING): New macro.
16739
16740 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16745 characters by octal form.
16746
16747 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16748
16749 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16750 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16751 _fetch_multibyte_char_len.
16752 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16753
16754 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16755
16756 * casefiddle.c (casify_object): Simplify. Handle the case that
16757 the case conversion change the byte length.
16758 (casify_region): Likewise.
16759
16760 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16761
16762 * character.c (_fetch_multibyte_char_len): Delete this variable.
16763 (syms_of_character): Setup Vprintable_chars.
16764
16765 * editfns.c (Fchar_equal): Fix for the unibyte case.
16766 (Finsert_byte): New function.
16767 (syms_of_editfns): Defsubr it.
16768
16769 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16770 of direct code 0x3ffff.
16771
16772 * search.c (Freplace_match): Fix for the unibyte case.
16773
167742008-02-01 Kenichi Handa <handa@m17n.org>
16775
16776 * lread.c (safe_to_load_p): Fix the logic.
16777
16778 * syntax.c (scan_words): Don't treat characters belonging to
16779 different scripts as constituting a word.
16780
16781 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16782
16783 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16784
16785 * emacs.c (main): In the case of --unibyte, instead of aborting on
16786 finding non-empty buffer, make it unibyte.
16787
167882008-02-01 Kenichi Handa <handa@m17n.org>
16789
16790 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16791 to create a fontset.
16792
167932008-02-01 Dave Love <fx@gnu.org>
16794
16795 * character.c (Funibyte_char_to_multibyte): Doc fix.
16796
16797 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * fontset.c (fontset_add): Make the type `int'.
16802 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16803
16804 * character.c (unibyte_char_to_multibyte)
16805 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16806 charset_unibyte, not charset_primary.
16807
16808 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16809
16810 * charset.c (charset_unibyte): Rename from charset_primary.
16811 (Funibyte_charset): Rename from Fprimary_charset.
16812 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16813 (syms_of_charset): Adjust for the above changes.
16814
16815 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16816 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16817 it->multibyte_p is zero.
16818
16819 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16820 Delete extern.
16821
168222008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * coding.c (Fdefine_coding_system_internal): Fix category setting
16825 for a coding system of type iso-2022.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16830
168312008-02-01 Kenichi Handa <handa@m17n.org>
16832
16833 * syntax.c (Vnext_word_boundary_function_table): New variable.
16834 (next-word-boundary-function-table): Declare it as a Lisp variable
16835 in syms_of_syntax.
16836 (scan_words): Call functions in Vnext_word_boundary_function_table
16837 if any.
16838
16839 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16840
16841 * fontset.c (fs_load_font): If fontp->charset is not negative,
16842 return fontp without setting its members.
16843
168442008-02-01 Dave Love <fx@gnu.org>
16845
16846 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16847
16848 * m/sparc.h (HAVE_ALLOCA): Delete.
16849
16850 * s/irix6-5.h: Don't include strings.h.
16851 (bcopy, bzero, bcmp): Don't undef.
16852
16853 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16854
16855 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16856 (TIOCSIGSEND): Don't test IRIX6.
16857 (bcopy, bzero, bcmp): Define conditionally.
16858
168592008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 * buffer.c (Qas, Qmake, Qto): New variables.
16862 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16863 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16864
16865 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16866 we are inserting a process output into a multibyte buffer.
16867
16868 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16869 multibyte_char_to_unibyte.
16870
16871 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16872 by the primary charset, make it eight-bit char.
16873 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16874
16875 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16876 (charset_8_bit__control, charset_8_bit_graphic)
16877 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16878 (define_charset_internal): New function.
16879 (syms_of_charset): Call define_charset_internal for pre-defined
16880 charsets.
16881
16882 * charset.h (charset_8_bit): Extern it.
16883
16884 * coding.c (make_conversion_work_buffer): Adjust for the change
16885 of Fset_buffer_multibyte.
16886 (encode_coding_raw_text): Increment p0 in the loop.
16887
16888 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16889
16890 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16891 for the change of Fset_buffer_multibyte.
16892
16893 * fns.c (Fstring_to_multibyte): New function.
16894 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16895
168962008-02-01 Dave Love <fx@gnu.org>
16897
16898 * xfns.c (x_put_x_image): Declare args.
16899
16900 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16901 (try_font_list): Declare an arg.
16902
16903 * xdisp.c (message2_nolog, set_message): Declare an arg.
16904
16905 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16906
16907 * syntax.c (scan_sexps_forward): Declare an arg.
16908
16909 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16910 Declare an arg.
16911
16912 * lisp.h (Fnew_fontset): Declare.
16913
16914 * keymap.c (push_key_description): Call CHARACTERP correctly.
16915
16916 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16917 (face_for_char): Delete unused vars.
16918 (Fset_fontset_font): Doc fix. Delete unused vars.
16919
16920 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16921
16922 * composite.c (update_compositions): Declare arg.
16923
16924 * cm.c (calccost, cmgoto): Declare args.
16925
16926 * charset.c: Remove `emacs' conditional. Doc fixes.
16927 (map_char_table_for_charset): Declare.
16928
16929 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16930
16931 * ccl.c: Remove `emacs' conditional.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 The following changes are to allow specifying multiple font
16936 patterns for a character range (specified by script or charset).
16937
16938 * Makefile.in (abbrev.o): Depend on syntax.h.
16939 (xfaces.o): Depend on charset.h.
16940
16941 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16942 SINGLE_BYTE_CHAR_P.
16943
16944 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16945
16946 * character.h (Vchar_script_table): Extern it.
16947
16948 * character.c (Vscript_alist): Delete.
16949 (Vchar_script_table, Qchar_script_table): New variable.
16950 (syms_of_character): Declare Vchar_script_table as a lisp variable
16951 and initialize it.
16952
16953 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16954 have property char-table-extra-slots, make no extra slot.
16955
16956 * dispextern.h (struct face): Delete member `charset'.
16957 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16958 SINGLE_BYTE_CHAR_P.
16959 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16960 Add prototypes.
16961 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16962 (generate_ascii_font_name): Rename from generate_ascii_font.
16963
16964 * fontset.h (get_font_repertory_func): New prototype.
16965 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16966 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16967
16968 * fontset.c (Qprepend, Qappend): New variables.
16969 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16970 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16971 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16972 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16973 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16974 (load_font_get_repertory): New functions.
16975 (fontset_set): Delete.
16976 (fontset_face): New arg FACE. Return face ID, not face.
16977 Complete re-write to handle new fontset structure. Change caller.
16978 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16979 (face_for_char): Don't call lookup_face.
16980 (make_fontset_for_ascii_face): New arg FACE.
16981 (fs_load_font): New arg CHARSET_ID. Don't check
16982 Vfont_encoding_alist here.
16983 (find_font_encoding): New function.
16984 (list_fontsets): Use STRINGP, not ! NILP.
16985 (accumulate_script_ranges): New function.
16986 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16987 re-written to handle new fontset structure.
16988 (Ffontset_font): Return a copy of element.
16989 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16990 docstring of font-encoding-alist.
16991
16992 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16993 (Fset_fotset_font): Fix arguments to 5.
16994
16995 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16996
16997 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16998 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16999 (highlight_trailing_whitespace): Adjust for the change of
17000 lookup_named_face.
17001
17002 * xfaces.c: Include charset.h.
17003 (load_face_font): Delete argument C. Change caller.
17004 (generate_ascii_font_name): Rename from generate_ascii_font.
17005 (font_name_registry): New function.
17006 (cache_face): Store ascii faces before non-ascii faces in buckets.
17007 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17008 Lookup only ascii faces.
17009 (lookup_non_ascii_face): New function.
17010 (lookup_named_face): Delete argument C. Change caller.
17011 (lookup_derived_face): Delete argument C. Change caller.
17012 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17013 a string, just call font_list with it.
17014 (choose_face_font): Delete arguments FACE and C. New arg
17015 FONT_SPEC. Change caller.
17016 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17017 Change caller.
17018 (realize_non_ascii_face): New function.
17019 (realize_x_face): Call load_face_font here.
17020 (realize_tty_face): Delete argument C. Change caller.
17021 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17022 get a face ID.
17023 (dump_realized_face): Don't print charset of FACE.
17024
17025 * xfns.c (x_set_font): Always call x_new_fontset and
17026 store_frame_parameter.
17027 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17028 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17029
17030 * xterm.h (x_get_font_repertory): Extern it.
17031
17032 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17033 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17034 it->multibyte_p is zero.
17035 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17036 (x_new_fontset): If FONTSETNAME doesn't match any existing
17037 fontsets, create a new one.
17038 (x_get_font_repertory): New function.
17039
170402008-02-01 Kenichi Handa <handa@m17n.org>
17041
17042 * coding.c (Ffind_coding_systems_region_internal): Detect an
17043 ASCII only string correctly.
17044
17045 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17046 version is 0.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * lread.c: Include "coding.h".
17051 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17052 (load_each_byte, unread_char): New variables.
17053 (readchar_backlog): Delete.
17054 (readchar): Return a character unless load_each_byte is nonzero.
17055 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17056 cons. If unread_char is not -1, simply return it.
17057 (unreadchar): Handle the case that readcharfun is
17058 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17059 (read_multibyte): Delete.
17060 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17061 (read_emacs_mule_char): New functions.
17062 (Fload): Even if the file doesn't have the extension ".elc", if
17063 safe_to_load_p returns a positive version number, assume that the
17064 file contains bytecompiled code. If the version is less than 22,
17065 load the file while decoding multibyte sequences by emacs-mule.
17066 (readevalloop): Don't use readchar_backlog.
17067 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17068 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17069 (read_escape): Delete the arg BYTEREP.
17070 (read1): Set load_each_byte to 1 temporarily while handling
17071 #@NUMBER. Don't call read_multibyte.
17072 (read_vector): Call Fread with a cons. If readcharfun is
17073 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17074 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17075 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17076 and Qload_force_doc_strings.
17077
170782008-02-01 Kenichi Handa <handa@m17n.org>
17079
17080 * xdisp.c (face_before_or_after_it_pos): Call
17081 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * character.h (TRAILING_CODE_P): New macro.
17086 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17087 (string_char_with_unification): Fix prototype.
17088 (Vscript_alist): Extern it.
17089
17090 * character.c (Vscript_alist): New variable.
17091 (string_char_with_unification, str_as_unibyte)
17092 (string_escape_byte8): Add `const' to local variables.
17093 (syms_of_character): Declare script-alist as a Lisp variable.
17094
17095 * charset.h (Vcharset_ordered_list): Extern it.
17096 (charset_ordered_list_tick): Extern it.
17097 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17098 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17099 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17100 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17101 (Funify_charset): Adjust for the change of Funify_charset.
17102
17103 * charset.c (charset_ordered_list_tick): New variable.
17104 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17105 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17106 deunify intead of unify a charset.
17107 (string_xstring_p): Add `const' to local variables.
17108 (find_charsets_in_text): Add `const' to arguments and local variables.
17109 (encode_char): Adjust for the change of Funify_charset. Fix
17110 detecting of invalid code.
17111 (Fset_charset_priority): Increment charset_ordered_list_tick.
17112 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17113 and TO_CODE.
17114
17115 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17116 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17117 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17118 (decode_coding_ccl, consume_chars)
17119 (Ffind_coding_systems_region_internal)
17120 (Fcheck_coding_systems_region): Add `const' to local variables.
17121
17122 * print.c (print_object): Use octal form for printing the
17123 contents of a bool vector.
17124
171252008-02-01 Dave Love <fx@gnu.org>
17126
17127 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17128 <version == 20>: Refuse to load.
17129
171302008-02-01 Dave Love <fx@gnu.org>
17131
17132 * fns.c: Move coding.h.
17133 (Qcodeset, Qdays, Qmonths): New.
17134 (concat): Use CHARACTERP instead of INTEGERP.
17135 (Flocale_codeset): Delete.
17136 (Flanginfo): New function.
17137 (syms_of_fns): Change accordingly.
17138
17139 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17140
171412008-02-01 Dave Love <fx@gnu.org>
17142
17143 * casetab.c (init_casetab_once, init_casetab_once): Fix
17144 CHAR_TABLE_SET call.
17145
17146 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17147
17148 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17149
17150 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17151 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17152 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17153
17154 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17155
17156 * coding.c (ENCODE_DESIGNATION, decode_eol)
17157 (make_conversion_work_buffer, code_conversion_restore)
17158 (Fdefine_coding_system_internal): Convert Lisp types.
17159 (code_conversion_restore): Use EQ, not ==.
17160 (Fencode_coding_string): Fix code_convert_string call.
17161
17162 * coding.h (code_convert_region): Fix prototype.
17163
17164 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17165
17166 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17167 (Ffontset_info): Convert Lisp types.
17168
17169 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17170
17171 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17172
17173 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17174
17175 * chartab.c: Include "...h", not <...h> in some cases.
17176
17177 * callproc.c (Fcall_process): Remove unused variables.
17178
171792008-02-01 Dave Love <fx@gnu.org>
17180
17181 * coding.c (Fset_coding_system_priority): Allow null arg list.
17182
171832008-02-01 Dave Love <fx@gnu.org>
17184
17185 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17186 (Fself_insert_and_exit): Use CHARACTERP.
17187
17188 * callproc.c (Fcall_process): Remove unused vars.
17189
17190 * xterm.c (XTread_socket): Add extra dead keysyms.
17191
17192 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17193
17194 * dispextern.h: Remove prototypes for redraw_frame,
17195 redraw_garbaged_frames.
17196
17197 * cmds.c (Fself_insert_command): Use CHARACTERP.
17198
17199 * chartab.c (make_sub_char_table): Remove unused var.
17200 (Fset_char_table_default, Fmap_char_table): Doc fix.
17201
17202 * keymap.c (access_keymap): Remove generic char code.
17203 (push_key_description): Use CHARACTERP.
17204
172052008-02-01 Dave Love <fx@gnu.org>
17206
17207 * charset.c: Doc fixes.
17208 (Funify_charset): Extra checking.
17209
172102008-02-01 Dave Love <fx@gnu.org>
17211
17212 * lread.c: Remove some unused variables.
17213 (safe_to_load_p): If safe, return the magic number version byte.
17214 (Fload): Maybe use load-with-code-conversion.
17215
172162008-02-01 Kenichi Handa <handa@m17n.org>
17217
17218 * category.c (Fmodify_category_entry): Don't modify the contents
17219 of category_set for characters out of the range. Avoid
17220 unnecessary modification.
17221
17222 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17223 Vchar_unify_table. The default value of the table is now nil.
17224
17225 * character.c (syms_of_character): Setup Vchar_width_table for
17226 eight-bit-control and raw-byte chars.
17227
17228 * charset.h (enum define_charset_arg_index): Delete
17229 charset_arg_parents and add charset_arg_subset and
17230 charset_arg_superset.
17231 (enum charset_attr_index): Delete charset_parents and add
17232 charset_subset and charset_superset.
17233 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17234 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17235 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17236 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17237 (CHARSET_SUPERSET): New macros.
17238 (charset_work): Extern it.
17239 (ENCODE_CHAR): Use charset_work.
17240 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17241 (map_charset_chars): Extern it.
17242
17243 * charset.c (load_charset_map): Set the default value of encoder
17244 and deunifier char-tables to nil.
17245 (map_charset_chars): Change argument. Change callers. Use
17246 map_char_table_for_charset instead of map_char_table.
17247 (Fmap_charset_chars): New optional args from_code and to_code.
17248 (Fdefine_charset_internal): Adjust for the change of
17249 `define-charset' (:parents -> :subset or :superset).
17250 (charset_work): New variable.
17251 (encode_char, syms_of_charset): Adjust for the change of
17252 Fdefine_charset_internal.
17253 (Ffind_charset_string): Setup the vector `charsets' correctly.
17254
17255 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17256 the previous change.
17257 (char_table_ref_and_range): Adjust for the above change.
17258 (map_sub_char_table_for_charset): New function.
17259 (map_char_table_for_charset): New function.
17260
17261 * keymap.c (describe_vector): Handle a char-table directly here.
17262 (describe_char_table): Delete.
17263
17264 * lisp.h (map_charset_chars): Delete.
17265
172662008-02-01 Dave Love <fx@gnu.org>
17267
17268 * fns.c (count_combining): Comment out (unused).
17269 (Flocale_codeset): New.
17270 (syms_of_fns): Defsubr it.
17271
17272 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17273 (size_t): Remove.
17274
172752008-02-01 Dave Love <fx@gnu.org>
17276
17277 * Makefile.in (chartab.o): Depend on charset.h.
17278
172792008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * character.c (syms_of_character): Set the default value of
17282 Vprintable_chars to Qnil.
17283
172842008-02-01 Dave Love <fx@gnu.org>
17285
17286 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * charset.c (load_charset_map): Handle the case that from < to
17291 correctly.
17292
17293 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17294 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17295 Pay attention to raw-8-bit chars.
17296
172972008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17300 It is not bytecompiled now.
17301
17302 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17303 (charset_jisx0208): New variables.
17304 (Fdefine_charset_internal): Setup them if appropriate.
17305 (init_charset_once): Initialize them to -1.
17306
17307 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17308 (charset_jisx0208): Extern them.
17309
17310 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17311 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17312 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17313 (setup_iso_safe_charsets): Fix arguments to Fassq.
17314 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17315 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17316 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17317 (encode_coding_iso_2022): Change the 1st arg to
17318 ENCODE_ISO_CHARACTER to a variable.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * charset.h (enum define_charset_arg_index): New enums
17323 charset_arg_min_code and charset_arg_max_code.
17324 (struct charset): New member char_index_offset.
17325
17326 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17327 Take charset->char_index_offset into account.
17328 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17329 args[charset_arg_max_code]. Setup charset.char_index_offset.
17330 (syms_of_charset): Fix args to Fdefine_charset_internal.
17331
173322008-02-01 Dave Love <fx@gnu.org>
17333
17334 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17335
173362008-02-01 Dave Love <fx@gnu.org>
17337
17338 * coding.c: Doc fixes.
17339 (Fcoding_system_aliases): Fix return value.
17340 (Qmac): Remove (duplicated) definition.
17341
173422008-02-01 Dave Love <fx@gnu.org>
17343
362654a6
JB
17344 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17345 New functions.
aac0c6e3
MR
17346
17347 * character.c (Fstring): Doc fix.
17348
17349 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17350
362654a6 17351 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17352 (font-encoding-alist): Doc fix.
17353
173542008-02-01 Dave Love <fx@gnu.org>
17355
17356 * term.c (costs_set): Declare static, non-initialized for pcc.
17357 (encode_terminal_code): Remove unused var.
17358
17359 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17360 for K&R.
17361
17362 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17363
17364 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17365 (suffixes): Move out of make_subsidiaries for K&R.
17366
17367 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17368
17369 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17370
173712008-02-01 Dave Love <fx@gnu.org>
17372
17373 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17374
17375 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17376
173772008-02-01 Yong Lu <lyongu@asia-infonet.com>
17378
17379 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17380
17381 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17386 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * coding.c (decode_coding_charset): Adjust for the change of
17391 Fdefine_coding_system_internal.
17392 (Fdefine_coding_system_internal): For a coding system of
17393 `charset' type, store a list of charset IDs in
17394 `charset_attr_charset_valids' element of coding attributes.
17395
173962008-02-01 Kenichi Handa <handa@m17n.org>
17397
17398 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17399 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17400 caller. Handle 2-byte and 3-byte charsets correctly.
17401 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17402 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17403 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17404 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17405 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17406 sequence.
17407 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17408 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17409 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17410 and alt&rule composition.
17411 (decode_coding_iso_2022): Handle composition correctly.
17412 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17413
17414 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17415 re-defining a charset. If the charset has :emacs-mule-id, setup
17416 emacs_mule_bytes.
17417 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17422 (encode_coding_big5, encode_coding_charset): If coding requires safe
17423 encoding, produce a character specified by
17424 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17425
174262008-02-01 Dave Love <fx@gnu.org>
17427
17428 * xterm.c (XSetIMValues): Declare.
17429
17430 * process.c: Conditionally include sys/wait.h, pty.h.
17431
17432 * print.c (print_object): Fix print format for 64-bit systems.
17433
17434 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17435
17436 * buffer.c (emacs_strerror): Declare.
17437
17438 * fontset.c (Fclear_face_cache): Declare.
17439 (accumulate_font_info): Comment-out (unused).
17440 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17441 variables.
17442
17443 * character.h (string_escape_byte8): Declare.
17444
17445 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17446 unused vars.
17447 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17448 (Fmap_charset_chars): Doc fix.
17449
17450 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17451 (Fset_coding_system_priority, Fset_coding_system_priority)
17452 (Fdefine_coding_system_internal): Doc fix.
17453
174542008-02-01 Dave Love <fx@gnu.org>
17455
17456 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * character.c (string_escape_byte8): Make multibyte string with
17461 correct size.
17462
17463 * charset.c (Fmake_char): Delete unnecessary code.
17464
174652008-02-01 Kenichi Handa <handa@m17n.org>
17466
17467 * xfns.c (x_encode_text): Allocate coding.destination here, and
17468 call encode_coding_object with dst_object Qnil.
17469
17470 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17471 multibyte form correctly.
17472
17473 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17474 against Vfont_encoding_alist.
17475
17476 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17477 handling of charset list.
17478 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17479 (decode_coding_object): Move point to coding->dst_pos before
17480 calling post-read-conversion function.
17481 (encode_coding_object): Give correct arguments to
17482 pre-write-conversion. Ignore the return value of
17483 pre-write-conversion function. Pay attention to the case that
17484 pre-write-conversion changes the current buffer. If dst_object is
17485 Qt, even if coding->src_bytes is zero, allocate at least one byte
17486 to coding->destination.
17487
17488 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17489
17490 * charset.c (Fmake_char): Make it more backward compatible.
17491 (Fmap_charset_chars): Fix docstring.
17492
174932008-02-01 Dave Love <fx@gnu.org>
17494
17495 * coding.c: Doc fixes.
17496 (Fdefine_coding_system_alias): Use names, not symbols, in
17497 coding-system-alist.
17498
174992008-02-01 Kenichi Handa <handa@m17n.org>
17500
17501 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17502 of calling free_realized_face.
17503
175042008-02-01 Yong Lu <lyongu@asia-infonet.com>
17505
17506 * charset.c (read_hex): Don't treat SPC as a comment starter.
17507 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17508 (Fdecode_char): Fix typo.
17509
175102008-02-01 Kenichi Handa <handa@m17n.org>
17511
17512 * charset.h (struct charset): New member `code_space_mask'.
17513
17514 * coding.c (coding_set_source): Delete the local variable beg_byte.
17515 (encode_coding_charset, Fdefine_coding_system_internal):
17516 Delete the local variable charset.
17517 (Fdefine_coding_system_internal): Setup
17518 attrs[coding_attr_charset_valids] correctly.
17519
17520 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17521 member to check if CODE is valid or not.
17522 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17523 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17524 is within the range of charset->min_code and carset->max_code.
17525
175262008-02-01 Dave Love <fx@gnu.org>
17527
17528 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17529
17530 * dispextern.h (generate_ascii_font): Fix return type.
17531
17532 * xfaces.c (generate_ascii_font): Fix arg declaration.
17533
17534 * coding.c (coding_inherit_eol_type)
17535 (Fset_terminal_coding_system_internal)
17536 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17541 multiple charsets correctly.
17542
175432008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 * search.c (boyer_moore): Fix handling of multibyte character
17546 translation.
17547
17548 * xdisp.c (display_mode_element): When the variable `elt' is
17549 changed, update `this' and `lisp_string'.
17550
175512008-02-01 Kenichi Handa <handa@m17n.org>
17552
17553 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17554
17555 * callproc.c (Fcall_process): Be sure to give the current buffer
17556 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17557
17558 * charset.c (struct charset_map_entries): New struct.
17559 (load_charset_map): Rename from parse_charset_map. New args
17560 entries and n_entries. Change caller.
17561 (load_charset_map_from_file): Rename from load_charset_map.
17562 Change caller. New arg control_flag. Call load_charset_map at
17563 the tail.
17564 (load_charset_map_from_vector): New function.
17565 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17566 (encode_char): If the charset is compact, change a character index
17567 to a code point.
17568
17569 * coding.c (coding_alloc_by_making_gap): Check the case that the
17570 source and destination are the same correctly.
17571 (decode_coding_raw_text): Set coding->consumed_char and
17572 coding->consumed to 0.
17573 (produce_chars): If coding->chars_at_source is nonzero, update
17574 coding->consumed_char and coding->consumed before calling
17575 alloc_destination.
17576 (Fdefine_coding_system_alias): Register ALIAS in
17577 Vcoding_system_alist.
17578 (syms_of_coding): Define `no-conversion' coding system at the tail.
17579
17580 * fileio.c (Finsert_file_contents): Set coding_system instead of
17581 val. If the current buffer is multibyte, always call
17582 decode_coding_gap.
17583
17584 * xfaces.c (try_font_list): Give higher priority to fontset's
17585 family than face's family.
17586
175872008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * callproc.c (Fcall_process): Be sure to give the current buffer
17590 to decode_coding_c_string.
17591
17592 * xfaces.c (try_font_list): Give a family specified in a fontset
17593 higher priority than a family specified in a face.
17594
175952008-02-01 Kenichi Handa <handa@m17n.org>
17596
17597 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17598 Fix arguments to insert_from_buffer.
17599
17600 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17601
176022008-02-01 Kenichi Handa <handa@m17n.org>
17603
17604 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17605 (decode_coding_gap): Set coding->dst_multibyte correctly.
17606
176072008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17610 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17611 (encode_coding_utf_16): Substitute coding->default_char for
17612 non-Unicode characters.
17613 (decode_coding): Don't call record_insert here.
17614 (setup_coding_system): Initialize `surrogate' of
17615 coding->spec.utf_16 to 0.
17616 (EMIT_ONE_BYTE): Fix for multibyte case.
17617
17618 * insdel.c (insert_from_gap): Call record_insert.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * casefiddle.c (casify_region): Fix multibyte case.
17623
17624 * character.c (c_string_width): Add return type `int'.
17625 (char_string_with_unification): Delete arg ADVANCED.
17626
17627 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17628 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17629 (CHAR_STRING_ADVANCE): Make it do-while statement.
17630
17631 * chartab.c (sub_char_table_set_range): Optimize for the case
17632 DEPTH == 3. Add workaround code for a GCC optimization bug.
17633
17634 * charset.c (parse_charset_map): Remove an unused variable.
17635
17636 * coding.c: Delete unused variables.
17637
17638 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17639 earlier. If inserted is zero and the coding system doesn't
17640 require flushing, don't call decode_coding_gap.
17641
17642 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 The following changes are for using Unicode as an internal
17647 character model, and use UTF-8 format for buffer/string
17648 representation.
17649
17650 * .gdbinit (xchartable): Adjust for the change of char table structure.
17651 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17652
17653 * Makefile.in (obj): Add character.o and chartab.o.
17654 (lisp, shortlisp): Remove utf-8.elc.
17655 (*.o): For many files, change dependency on charset.h to
17656 character.h, and add dependency on character.h.
17657 (character.o, chartab.o): New targets.
17658
17659 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17660 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17661 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17662 of "charset.h".
17663
17664 * dired.c, filelock.c: Include "character.h".
17665
17666 * alloc.c: Include "character.h" instead of "charset.h".
17667 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17668 (syms_of_alloc): Remove defsubr for Smake_char_table.
17669
17670 * buffer.c: Include "character.h" instead of "charset.h", don't
17671 include "coding.h".
17672 (Fset_buffer_multibyte): Adjust for UTF-8.
17673
17674 * buffer.h: EXFUN Fbuffer_live_p.
17675
17676 * callproc.c: Include "character.h" instead of "charset.h".
17677 (Fcall_process): Big change for the new code-conversion APIs.
17678
17679 * casetab.c: Include "character.h" instead of "charset.h".
17680 (set_canon, set_identity, shuffle): Adjust for the new
17681 map_char_table spec.
17682 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17683 accessing the char table structure.
17684
17685 * chartab.c: New file that implements char table.
17686
17687 * category.c: Include "character.h".
17688 (copy_category_entry): New function.
17689 (copy_category_table): Call map_char_table and copy_category_entry.
17690 (Fmake_category_table): Initialize all top-level slots.
17691 (char_category_set): New function.
17692 (modify_lower_category_set): Delete.
17693 (Fmodify_category_entry): Call char_table_ref_and_range.
17694
17695 * category.h (CATEGORY_SET): Just call char_category_set.
17696
17697 * ccl.c: Include "character.h".
17698 (Qccl, Qcclp): New variables.
17699 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17700 it's less than 256.
17701 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17702 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17703 and DST type.
17704 (ccl_driver): Change types of argument, adjust code accordingly.
17705 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17706 ccl_driver.
17707 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17708
17709 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17710 New members src_multibyte, dst_multibyte, consumed, and produced.
17711 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17712 (CODING_SPEC_CCL_PROGRAM): New macro.
17713 (ccl_driver): Update prototype.
17714 (Qccl, Qcclp, Fccl_program_p): Extern them.
17715 (CHECK_CCL_PROGRAM): New macro.
17716
17717 * character.c, character.h, chartab.c: New files.
17718
17719 * charset.c: Mostly re-written. Move character and multibyte sequence
17720 handling codes to character.c.
17721
17722 * charset.h: Mostly re-written. Move character and multibyte sequence
17723 handling codes to character.h.
17724
17725 * coding.c, coding.h: Mostly re-written.
17726
17727 * composite.c: Include "character.h" instead of "charset.h".
17728 (CHAR_WIDTH): Move to character.h.
17729 (HASH_KEY, HASH_VALUE): Delete.
17730
17731 * composite.h (enum composition_method): Change order of enumeration
17732 symbols.
17733
17734 * data.c: Include "character.h" instead of "charset.h".
17735 (Faref): Call CHAR_TABLE_REF for a char table.
17736 (Faset): Call CHAR_TABLE_SET for a char table.
17737
17738 * dispextern.h (free_realized_face, check_face_attribytes)
17739 (generate_ascii_font): Extern them.
17740 (free_realized_multibyte_face): Delete extern.
17741
17742 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17743 table structure.
17744
17745 * editfns.c: Include "character.h" instead of "charset.h".
17746 (Fchar_to_string): Always call CHAR_STRING.
17747
17748 * emacs.c (main): Call init_charset_once, init_charset,
17749 syms_of_chartab, and syms_of_character.
17750
17751 * fileio.c: Include "character.h" instead of "charset.h".
17752 (Finsert_file_contents): Big change for the new code-conversion API.
17753 (choose_write_coding_system, Fwrite_region): Likewise.
17754 (build_annotations_2): Delete.
17755 (e_write): Big change for the new code-conversion API.
17756
17757 * fns.c: Include "character.h" instead of "charset.h".
17758 (copy_sub_char_table): Move to chartab.c.
17759 (Fcopy_sequence): Call copy_char_table for a char table.
17760 (concat): Delete codes calling count_multibyte.
17761 (string_char_to_byte, string_byte_to_char): Adjust for the new
17762 multibyte form.
17763 (internal_equal): Adjust for the change of char table structure.
17764 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17765 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17766 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17767 (char_table_translate, optimize_sub_char_table)
17768 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17769 chartab.c.
17770 (char_table_ref_and_index): Delete.
17771 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17772 (Fmd5): Call preferred_coding_system instead of accessing
17773 Vcoding_category_list. Adjust for the new code-conversion API.
17774 (syms_of_fns): Move defsubr for char table related functions to
17775 chartab.c.
17776
17777 * fontset.c: Mostly re-written.
17778
17779 * fontset.h (struct font_info): Change type of the member encoding_type.
17780 (enum FONT_SPEC_INDEX): New enum.
17781 (fontset_font_pattern, fs_load_font): Update prototype.
17782 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17783
17784 * indent.c: Include "character.h" instead of "charset.h".
17785 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17786
17787 * insdel.c: Include "character.h" instead of "charset.h".
17788 (copy_text): Don't refer to Vnonascii_translation_table.
17789 (insert_from_gap): New function.
17790
17791 * keyboard.c: Include "character.h" instead of "charset.h".
17792 (command_loop_1): Never call direct_output_forward_char before
17793 a non-ASCII character.
17794 (read_char): If Vkeyboard_translate_table is a char table, always
17795 translate a character.
17796
17797 * keymap.c: Include "character.h".
17798 (store_in_keymap): Handle the case that IDX is a cons.
17799 (Fdefine_key): Handle the case that KEY is a cons and the car part
17800 is also a cons (range).
17801 (push_key_description): Adjust for the new character code.
17802 (describe_vector): Call describe_char_table for a char table.
17803 (describe_char_table): New function.
17804
17805 * keymap.h (describe_char_table): Extern it.
17806
17807 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17808 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17809 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17810 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17811 Delete.
17812 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17813 structure.
17814 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17815 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17816 (CHARTAB_SIZE_BITS_3): New macros.
17817 (chartab_size): Extern it.
17818 (struct Lisp_Char_Table): Re-design.
17819 (struct Lisp_Sub_Char_Table): New structure.
17820 (HASH_KEY, HASH_VALUE): Move from fns.c.
17821 (CHARACTERBITS): Define as 22.
17822 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17823 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17824 (GC_SUB_CHAR_TABLE_P): New macro.
17825 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17826 (code_convert_string_norecord): Deleted extern.
17827 (init_character_once, syms_of_character, init_charset)
17828 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17829
17830 * lread.c: Include "character.h".
17831 (read_multibyte): New arg NBYTES.
17832 (read_escape): Change the meaning of returned *BYTEREP.
17833 (to_multibyte): Delete.
17834 (read1): Adjust the handling of char table and string.
17835
17836 * print.c: Include "character.h" instead of "charset.h".
17837 (print_string): Convert 8-bit raw bytes to octal form by
17838 string_escape_byte8.
17839 (print_object): Adjust for the new multibyte form. Print 8-bit
17840 raw bytes always in octal form. Handle sub char table correctly.
17841
17842 * process.c: Include "character.h" instead of "charset.h".
17843 (read_process_output, send_process): Adjust for the new
17844 code-conversion API.
17845
17846 * puresize.h (BASE_PURESIZE): Increase.
17847
17848 * regex.c: Include "character.h" instead of "charset.h".
17849 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17850 (regex_compile): Accept a range whose starting and ending
17851 character have different leading bytes.
17852 (analyse_first): Adjust for the above change.
17853
17854 * search.c: Include "character.h" instead of "charset.h".
17855 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17856 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17857
17858 * syntax.c: Include "character.h" instead of "charset.h".
17859 (syntax_parent_lookup): Delete.
17860 (Fmodify_syntax_entry): Accept a cons as CHAR.
17861 (skip_chars): Adjust for the new multibyte form.
17862 (init_syntax_once): Call char_table_set_range instead of directly
17863 accessing the structure of a char table.
17864
17865 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17866 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17867 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17868 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17869
17870 * term.c: Include "buffer.h" and "character.h".
17871 (encode_terminal_code, write_glyphs): Adjust for the new
17872 code-conversion API.
17873 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17874
17875 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17876
17877 * xdisp.c: Include "character.h".
17878 (get_next_display_element): Adjust for the new multibyte form.
17879 (disp_char_vector): Adjust for the new char table structure.
17880 (decode_mode_spec_coding): Adjust for the new structure of
17881 coding system.
17882 (decode_mode_spec): Adjust for the new code-conversion API.
17883
17884 * xfaces.c: Include "character.h" instead of "charset.h".
17885 (load_face_font): Adjust for the change of choose_face_font and
17886 FS_LOAD_FONT.
17887 (generate_ascii_font): New function.
17888 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17889 (set_font_frame_param): Adjust for the change of choose_face_font.
17890 (free_realized_face): Make it public.
17891 (free_realized_faces_for_fontset): Rename from
17892 free_realized_multibyte_face. Free also faces realized for ASCII.
17893 (choose_face_font): Change arguments. Adjust for the change of
17894 fontset_font_pattern and FS_LOAD_FONT.
17895
17896 * xfns.c: Include "character.h".
17897 (x_encode_text): Adjust for the new code-conversion API.
17898
17899 * xselect.c: Don't include "charset.h".
17900 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17901
17902 * xterm.c: Include "character.h".
17903 (x_encode_char): New argument CHARSET. Change caller.
17904 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17905 Call ENCODE_CHAR instead of SPLIT_CHAR.
17906 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17907 CHAR_WIDTH instead of CHARSET_WIDTH.
17908 (XTread_socket): Adjust for the new code-conversion API.
17909 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17910 (x_load_font): Adjust for the change of struct font.
17911
179122008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17913
17914 * xfaces.c (face_at_buffer_position): Remove unused vars.
17915
179162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17917
17918 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17919 Fix overflow checking.
17920
179212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17922
17923 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17924 Cancel previous change.
17925
179262008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17927
17928 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17929 ccl->eight_bit_control. Fix check for buffer overflow.
17930 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17931 (ccl_driver): Initialize extra_bytes to 0.
17932
179332008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17934
17935 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17936 return it ORed with ctrl_modifier.
17937
179382008-01-29 Miles Bader <miles@gnu.org>
17939
17940 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17941
179422008-01-28 Jason Rumney <jasonr@gnu.org>
17943
17944 * w32.c (stat): Don't double check for networked drive.
17945
179462008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17947
17948 * window.c (run_window_configuration_change_hook): New function.
17949 Code extracted from set_window_buffer. Set the selected frame.
17950 (set_window_buffer): Use it.
17951 * window.h (run_window_configuration_change_hook): Declare.
17952 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17953
17954 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17955
179562008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17957
17958 * Makefile.in: Remove references to unused macros.
17959
179602008-01-26 Eli Zaretskii <eliz@gnu.org>
17961
17962 * w32.c (g_b_init_get_sid_sub_authority)
17963 (g_b_init_get_sid_sub_authority_count): New static variables.
17964 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17965 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17966 (init_user_info): Use them to retrieve uid and gid.
17967 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17968 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17969 st_uid and st_gid of the file.
17970
179712008-01-26 Jason Rumney <jasonr@gnu.org>
17972
17973 * w32.c (logon_network_drive): New function.
17974 (stat): Use it.
17975
179762008-01-26 Chong Yidong <cyd@stupidchicken.com>
17977
17978 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17979 invisible text covered with an ellipsis.
17980
179812008-01-25 Richard Stallman <rms@gnu.org>
17982
17983 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17984 jump back to beginning. Move some other initializations after that.
17985 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17986 New variables.
17987 (syms_of_xdisp): Init them.
17988
17989 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17990
17991 * buffer.c (reset_buffer_local_variables):
17992 Implement `permanent-local-hook'.
17993 (Qpermanent_local_hook): New variable.
17994 (syms_of_buffer): Init and staticpro it.
17995
179962008-01-25 Michael Albinus <michael.albinus@gmx.de>
17997
17998 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17999
180002008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18001
18002 * fns.c (Fclrhash): Return TABLE.
18003
180042008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18005
18006 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18007 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18008 is set even without positional changes.
18009 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18010
18011 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18012
180132008-01-23 Jason Rumney <jasonr@gnu.org>
18014
18015 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18016
18017 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18018 the unicode range available in MULE by locale-coding-system.
18019 Improve dbcs lead byte detection. Set event timestamp and modifiers
18020 earlier.
18021
180222008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18023
18024 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18025 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18026 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18027 when used on child processes.
18028
180292008-01-21 Michael Albinus <michael.albinus@gmx.de>
18030
18031 * dbusbind.c (Fdbus_method_return_internal): Rename from
18032 Fdbus_method_return.
18033 (Fdbus_unregister_object): Move to dbus.el.
18034 (Fdbus_call_method, Fdbus_method_return_internal)
18035 (Fdbus_send_signal): Improve debug messages.
18036
180372008-01-20 Martin Rudalics <rudalics@gmx.at>
18038
18039 * undo.c (undo_inhibit_record_point): New variable.
18040 (syms_of_undo): Initialize it.
18041 (record_point): Don't record point when undo_inhibit_record_point
18042 is set.
18043
180442008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18045
18046 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18047
18048 * xdisp.c (Qauto_hscroll_mode): New var.
18049 (syms_of_xdisp): Initialize it.
18050 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18051 window's buffer.
18052 (hscroll_windows): Don't check automatic_hscrolling_p here.
18053
18054 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18055 vscroll if we're setting window-buffer to the value it already has.
18056
180572008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18058
18059 * m/intel386.h: Remove references to XENIX.
18060
180612008-01-17 Andreas Schwab <schwab@suse.de>
18062
18063 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18064 instead of HAVE_X86_64_LIB64_DIR.
18065 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18066
180672008-01-17 Glenn Morris <rgm@gnu.org>
18068
18069 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18070 to HAVE_X86_64_LIB64_DIR.
18071
180722008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18073
18074 * s/irix3-3.h:
18075 * s/irix4-0.h:
18076 * s/386-ix.h:
18077 * s/domain.h:
18078 * s/hpux9-x11r4.h:
18079 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18080
18081 * sysdep.c: Remove code containing references to symbols defined
18082 by unsupported systems.
18083
180842008-01-16 Glenn Morris <rgm@gnu.org>
18085
18086 * coding.c (select-safe-coding-system-function): Doc fix.
18087
180882008-01-15 Glenn Morris <rgm@gnu.org>
18089
18090 * config.in: Revert 2008-01-13 change: this is a generated file.
18091
180922008-01-13 Tom Tromey <tromey@redhat.com>
18093
18094 * lisp.h: Fix typo.
18095
180962008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18097
18098 * m/sequent-ptx.h:
18099 * m/sequent.h:
18100 * s/ptx.h:
18101 * s/ptx4-2.h:
18102 * s/ptx4.h: Remove files for systems no longer supported.
18103
18104 * callproc.c (Fcall_process): Fix previous change.
18105
181062008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18107
18108 * unexsunos4.c: Remove file, system not supported anymore.
18109
18110 * m/mips.h:
18111 * m/intel386.h:
18112 * callproc.c:
18113 * config.in:
18114 * ecrt0.c:
18115 * emacs.c:
18116 * fileio.c:
18117 * frame.c:
18118 * getpagesize.h:
18119 * keyboard.c:
18120 * lread.c:
18121 * process.c:
18122 * puresize.h:
18123 * sysdep.c:
18124 * systty.h:
18125 * syswait.h:
18126 * unexec.c:
18127 * xdisp.c:
18128 * alloc.c: Remove code containing references to symbols defined by
18129 unsupported systems.
18130
181312008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18132
18133 * coding.c (detect_coding_mask): Fix previous change.
18134
181352008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18136
18137 * coding.c (detect_coding_iso2022): New arg
18138 latin_extra_code_state. Allow Latin extra codes only
18139 when *latin_extra_code_state is nonzero.
18140 (detect_coding_mask): If there is a NULL byte, detect the encoding
18141 as UTF-16 or binary. If Latin extra codes exist, detect the
18142 encoding as ISO-2022 only when there's no other proper encoding is
18143 found.
18144
181452008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18146
18147 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18148 #ifdef MAC_OS.
18149
181502008-01-08 Richard Stallman <rms@gnu.org>
18151
18152 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18153
181542008-01-06 Nick Roberts <nickrob@snap.net.nz>
18155
18156 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18157 menu bar in parentheses.
18158
181592008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18160
18161 * m/7300.h:
18162 * m/acorn.h:
18163 * m/alliant-2800.h:
18164 * m/alliant.h:
18165 * m/alliant1.h:
18166 * m/alliant4.h:
18167 * m/altos.h:
18168 * m/amdahl.h:
18169 * m/apollo.h:
18170 * m/att3b.h:
18171 * m/aviion-intel.h:
18172 * m/aviion.h:
18173 * m/celerity.h:
18174 * m/clipper.h:
18175 * m/cnvrgnt.h:
18176 * m/convex.h:
18177 * m/cydra5.h:
18178 * m/delta88k.h:
18179 * m/dpx2.h:
18180 * m/dual.h:
18181 * m/elxsi.h:
18182 * m/f301.h:
18183 * m/gould-np1.h:
18184 * m/gould.h:
18185 * m/i860.h:
18186 * m/ibmps2-aix.h:
18187 * m/ibmrt-aix.h:
18188 * m/ibmrt.h:
18189 * m/irist.h:
18190 * m/is386.h:
18191 * m/isi-ov.h:
18192 * m/mega68.h:
18193 * m/mg1.h:
18194 * m/news-r6.h:
18195 * m/news-risc.h:
18196 * m/news.h:
18197 * m/nh3000.h:
18198 * m/nh4000.h:
18199 * m/ns16000.h:
18200 * m/ns32000.h:
18201 * m/nu.h:
18202 * m/orion.h:
18203 * m/orion105.h:
18204 * m/paragon.h:
18205 * m/pfa50.h:
18206 * m/plexus.h:
18207 * m/pyramid.h:
18208 * m/pyrmips.h:
18209 * m/sh3el.h:
18210 * m/sps7.h:
18211 * m/sr2k.h:
18212 * m/stride.h:
18213 * m/sun1.h:
18214 * m/sun2.h:
18215 * m/sun3-68881.h:
18216 * m/sun3-fpa.h:
18217 * m/sun3-soft.h:
18218 * m/sun3.h:
18219 * m/sun386.h:
18220 * m/symmetry.h:
18221 * m/tad68k.h:
18222 * m/tahoe.h:
18223 * m/targon31.h:
18224 * m/tek4300.h:
18225 * m/tekxd88.h:
18226 * m/tower32.h:
18227 * m/tower32v3.h:
18228 * m/ustation.h:
18229 * m/wicat.h:
18230 * m/xps100.h:
18231 * s/cxux.h:
18232 * s/cxux7.h:
18233 * s/dgux.h:
18234 * s/dgux4.h:
18235 * s/dgux5-4-3.h:
18236 * s/dgux5-4r2.h:
18237 * s/esix.h:
18238 * s/esix5r4.h:
18239 * s/hiuxmpp.h:
18240 * s/hiuxwe2.h:
18241 * s/iris3-5.h:
18242 * s/iris3-6.h:
18243 * s/isc2-2.h:
18244 * s/isc3-0.h:
18245 * s/isc4-0.h:
18246 * s/isc4-1.h:
18247 * s/newsos5.h:
18248 * s/newsos6.h:
18249 * s/osf1.h:
18250 * s/osf5-0.h:
18251 * s/riscix1-1.h:
18252 * s/riscix12.h:
18253 * s/sco4.h:
18254 * s/sco5.h:
18255 * s/sunos4-0.h:
18256 * s/sunos4-1.h:
18257 * s/sunos413.h:
18258 * s/sunos4shr.h:
18259 * s/umax.h:
18260 * s/unipl5-2.h:
18261 * s/xenix.h:
18262 * cxux-crt0.s:
18263 * unexapollo.c:
18264 * unexconvex.c:
18265 * unexenix.c:
18266 * unexsni.c: Remove files for systems no longer supported.
18267
18268 * m/intel386.h: Remove references to unsupported systems.
18269
18270 * w32.c (get_emacs_configuration): Remove reference to i860.
18271
18272 * sysdep.c: Remove dead code.
18273
182742008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18275
18276 * s/rtu.h:
18277 * m/masscomp.h: Remove files. Platform is obsolete.
18278
182792008-01-04 Michael Albinus <michael.albinus@gmx.de>
18280
18281 * dbusbind.c (Fdbus_method_return): New function.
18282 (xd_read_message): Add the serial number to the event.
18283 (Fdbus_register_method): Activate the function.
18284
182852008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18286
18287 * keyboard.c (read_key_sequence): Fix typo.
18288
182892008-01-03 Michael Albinus <michael.albinus@gmx.de>
18290
18291 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18292 (xd_signature, xd_append_arg): Handle element type detection for
18293 empty arrays.
18294 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18295 SDATA () calls; this must be solved more general.
18296 (Fdbus_register_signal): Use SBYTES instead of strlen.
18297
182982008-01-03 Magnus Henoch <magnus@zemdatav>
18299
18300 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18301 unsigned int for byte values (necessary for big-endian platform).
18302 (Fdbus_call_method): Handle the case of no returned arguments.
18303
183042007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18305
18306 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18307
183082007-12-31 Magnus Henoch <mange@freemail.hu>
18309
18310 * dbusbind.c (xd_signature): Signature of variant is just "v".
18311
183122007-12-30 Michael Albinus <michael.albinus@gmx.de>
18313
18314 * dbusbind.c: Fix several errors and compiler warnings.
18315 Reported by Tom Tromey <tromey@redhat.com>.
18316 (XD_ERROR, XD_DEBUG_MESSAGE)
18317 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18318 (xd_append_arg): Part for basic D-Bus types rewritten.
18319 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18320 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18321 appropriate.
18322 (xd_read_message): Return Qnil. Don't signal an error; it is not
18323 useful during event reading.
18324 (Fdbus_register_signal): Signal an error if the check for
18325 FUNCTIONP fails.
18326 (Fdbus_register_method): New function. The implementation is not
18327 complete, the call of the function signals an error therefore.
18328 (Fdbus_unregister_object): New function, renamed from
18329 Fdbus_unregister_signal. The initial check signals an error, if
18330 the object is not well formed.
18331
183322007-12-30 Richard Stallman <rms@gnu.org>
18333
18334 * textprop.c (get_char_property_and_overlay):
18335 Signal error if POSITION is out of range in a buffer.
18336
183372007-12-29 Martin Rudalics <rudalics@gmx.at>
18338
18339 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18340 because the original parameters are in pure storage now.
18341
183422007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18343
18344 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18345
183462007-12-22 Eli Zaretskii <eliz@gnu.org>
18347
18348 * callint.c (syms_of_callint) <command-history>: Add reference to
18349 history-length in the doc string.
18350
183512007-12-17 Jason Rumney <jasonr@gnu.org>
18352
18353 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18354 before passing as wParam.
18355
183562007-12-22 Michael Albinus <michael.albinus@gmx.de>
18357
18358 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18359 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18360 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18361 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18362 as number.
18363 (Fdbus_call_method): Fix docstring.
18364
183652007-12-21 Michael Albinus <michael.albinus@gmx.de>
18366
18367 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18368 New macros.
18369 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18370 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18371 Simplify.
18372 (xd_signature): New function.
18373 (xd_append_arg): Compute also signatures. Major rewrite.
18374 (xd_retrieve_arg): Make debug messages friendly.
18375 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18376 Check for signatures of arguments.
18377
183782007-12-19 Michael Albinus <michael.albinus@gmx.de>
18379
18380 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18381 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18382 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18383 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18384 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18385 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18386 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18387 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18388 (xd_retrieve_value): Remove. Functionality included in ...
18389 (xd_append_arg): New function.
18390 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18391
183922007-12-16 Michael Albinus <michael.albinus@gmx.de>
18393
18394 * dbusbind.c (top): Include <stdio.h>.
18395 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18396 dbus_message_new_method_call and dbus_message_new_signal.
18397 (Fdbus_register_signal): Rename unique_name to uname.
18398 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18399 non-existing unique name. Fix typos in matching rule. Return an
18400 object which is useful in Fdbus_unregister_signal.
18401 (Fdbus_unregister_signal): Reimplementation, in order to remove
18402 only the corresponding entry.
18403 (Vdbus_registered_functions_table): Change the order of entries.
18404 Apply these changes in xd_read_message and Fdbus_register_signal.
18405
184062007-12-16 Andreas Schwab <schwab@suse.de>
18407
18408 * fileio.c (Finsert_file_contents): Fix overflow check to not
18409 depend on undefined integer overflow.
18410
184112007-12-14 Jason Rumney <jasonr@gnu.org>
18412
18413 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18414 for characters above 127.
18415
184162007-12-13 Jason Rumney <jasonr@gnu.org>
18417
18418 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18419 before dereferencing array.
18420 (lookup_vk_code): Remove zero comparison.
18421
184222007-12-14 Michael Albinus <michael.albinus@gmx.de>
18423
18424 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18425 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18426 Use `unsigned int' instead of `uint'.
18427 (xd_read_message, Fdbus_register_signal): Split expressions into
18428 multiple lines before operators "&&" and "||", according to the
18429 GNU Coding Standards.
18430
184312007-12-14 Eli Zaretskii <eliz@gnu.org>
18432
18433 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18434
184352007-12-12 Juri Linkov <juri@jurta.org>
18436
18437 * buffer.c (Frename_buffer): In interactive spec replace
18438 `read-buffer' with `read-string' that uses `buffer-name-history'
18439 as history, and the current buffer's name as default.
18440
184412007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18442
18443 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18444 manipulating the backtrace manually.
18445 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18446 (struct backtrace, backtrace_list): Remove.
18447 (command_loop_1): Remove dead var `no_direct'.
18448
18449 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18450 preserve non-built-in buffer-local variables.
18451 (Fkill_all_local_variables): Don't re-create&re-set permanent
18452 buffer-local variables.
18453
184542007-12-09 Juri Linkov <juri@jurta.org>
18455
18456 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18457 Lisp code that uses `read-buffer' with current buffer as default.
18458
184592007-12-08 Michael Albinus <michael.albinus@gmx.de>
18460
18461 * dbusbind.c (xd_read_message): Generate an event for every
18462 registered handler. There might be several handlers registered
18463 for the same signal.
18464 (Fdbus_register_signal): Don't overwrite a registration for the
18465 same signal. Add a new registration if handlers are different.
18466 (Vdbus_registered_functions_table): Rework doc string.
18467
184682007-12-07 Michael Albinus <michael.albinus@gmx.de>
18469
18470 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18471 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18472 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18473 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18474 Unify argument lists.
18475 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18476 arguments and hash table keys. Use unique name for service.
18477 (Fdbus_unregister_signal): Remove checks.
18478 (Vdbus_registered_functions_table): Fix doc string.
18479
184802007-12-05 Magnus Henoch <mange@freemail.hu>
18481
18482 * process.c (make_process): Initialize pty_flag to 0.
18483
184842007-12-05 Jason Rumney <jasonr@gnu.org>
18485
18486 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18487 specified XBMs.
18488
184892007-12-05 Richard Stallman <rms@gnu.org>
18490
18491 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18492
184932007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18494
18495 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18496 New variable.
18497 (mac_try_close_socket) [MAC_OSX]: New function.
18498 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18499 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18500
18501 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18502 Use mac_try_close_socket.
18503
185042007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18505
18506 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18507 reloc_base.
18508 (copy_dysymtab): Compute relocation base here.
18509 (rebase_reloc_address) [__ppc64__]: New function.
18510 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18511 changed.
18512
185132007-12-05 Jason Rumney <jasonr@gnu.org>
18514
18515 * w32proc.c (sys_spawnve): Quote args with wildcards.
18516
185172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18518
18519 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18520 __objc_* sections.
18521 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18522
185232007-12-05 Michael Albinus <michael.albinus@gmx.de>
18524
18525 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18526 Move check for Vdbus_registered_functions_table to
18527 xd_read_queued_messages.
18528 (xd_read_queued_messages): Protect xd_read_message calls by
18529 internal_condition_case_1.
18530
185312007-12-04 Michael Albinus <michael.albinus@gmx.de>
18532
18533 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18534 Qdbus_system_bus and Qdbus_session_bus, respectively.
18535 (Vdbus_intern_symbols): Remove.
18536 (Vdbus_registered_functions_table): New hash table.
18537 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18538 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18539 Rewrite in order to manage registered functions by hash table
18540 Vdbus_registered_functions_table.
18541
185422007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18543
18544 * xterm.c: Update URL to Window Manager Specification in comment.
18545
185462007-12-02 Michael Albinus <michael.albinus@gmx.de>
18547
18548 * config.in (HAVE_DBUS): Add.
18549
18550 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18551 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18552 (obj): Add $(DBUS_OBJ).
18553 (LIBES): Add $(DBUS_LIBS).
18554 (dbusbind.o): New target.
18555
18556 * dbusbind.c: New file.
18557
18558 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18559
18560 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18561 (Qdbus_event): New Lisp symbol.
18562 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18563 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18564 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18565
18566 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18567
185682007-12-01 Richard Stallman <rms@gnu.org>
18569
18570 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18571
185722007-11-30 Jason Rumney <jasonr@gnu.org>
18573
18574 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18575 (w32con_reset_terminal_modes): Clear screen buffer.
18576 (w32_face_attributes): Don't use color indexes that are out of range.
18577 Only reverse the default colors.
18578
18579 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18580 WINDOWSNT.
18581
18582 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18583
185842007-11-29 Jason Rumney <jasonr@gnu.org>
18585
18586 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18587 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18588 if the terminal colors are initialized.
18589 (unspecified_fg, unspecified_bg): Remove unused declarations.
18590
185912007-11-29 Andreas Schwab <schwab@suse.de>
18592
18593 * keyboard.c (apply_modifiers): Fix typo.
18594
185952007-11-29 Richard Stallman <rms@gnu.org>
18596
18597 * keymap.c (Fcurrent_local_map): Doc fix.
18598
185992007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18600
18601 * s/gnu-kfreebsd.h: New file.
18602
186032007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18604
18605 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18606 Don't cast redundantly.
18607
18608 * keyboard.c (KEY_TO_CHAR): New macro.
18609 (parse_modifiers, apply_modifiers): Accept integer arguments.
18610 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18611 for chars and symbol keys.
18612 After doing such remapping, apply function-key-map again.
18613
186142007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18615
18616 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18617 compiled anymore.
18618
186192007-11-26 Andreas Schwab <schwab@suse.de>
18620
18621 * process.c (list_processes_1): Fix indentation level of the
18622 command column.
18623
186242007-11-23 Andreas Schwab <schwab@suse.de>
18625
18626 * editfns.c (Fformat): Handle %c specially since it requires the
18627 argument to be of type int.
18628
186292007-11-23 Markus Triska <markus.triska@gmx.at>
18630
18631 * emacs.c (main): Call init_editfns before init_process, since
18632 init_process sets Vprocess_connection_type depending on OS release.
18633
186342007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18635
18636 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18637 (find_symbol_value): Use do_symval_forwarding.
18638
18639 * data.c (set_internal): Set the value in the `cons-cell' (for
18640 Buffer_Local_values) not only for frame-local variables.
18641
186422007-11-22 Andreas Schwab <schwab@suse.de>
18643
18644 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18645 values to sprintf.
18646 * keymap.c (Fsingle_key_description): Likewise.
18647 * print.c (print_object): Likewise.
18648
186492007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18650
18651 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18652 file for image is nil.
18653
186542007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18655
18656 * term.c: Include stdarg.h.
18657 (fatal): Implement using varargs.
18658 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18659
186602007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18661
18662 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18663 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18664 Update call to buffer_slot_type_mismatch.
18665 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18666 (buffer_slot_type_mismatch): Update.
18667 * buffer.c (buffer_local_types): Remove.
18668 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18669 (defvar_per_buffer): Set the type in the buffer_objfwd.
18670
186712007-11-21 Jason Rumney <jasonr@gnu.org>
18672
18673 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18674 CreateFileMapping returns NULL on failure.
18675
186762007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18677
18678 * search.c (Fset_match_data): Remove the `evaporate' feature.
18679 (unwind_set_match_data): Don't use the `evaporate' feature.
18680
186812007-11-21 Jason Rumney <jasonr@gnu.org>
18682
18683 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18684
18685 * w32console.c (w32con_write_glyphs): Remove unused variables.
18686
186872007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18688
18689 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18690
18691 * s/darwin.h (MULTI_KBOARD): Remove.
18692
18693 * macfns.c (x_create_tip_frame, Fx_create_frame)
18694 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18695
186962007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18697
18698 * buffer.c (Fbuffer_local_value): Remove redundant test.
18699 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18700 than in `current-buffer' to match the comment.
18701 Do the swap using swap_in_global_binding.
18702
18703 * data.c (store_symval_forwarding, set_internal):
18704 * eval.c (specbind): Remove dead code.
18705
18706 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18707 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18708 Since we do not want to see internal Lisp_*fwd objects here.
18709
187102007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18711
18712 * sysdep.c (init_system_name): Use getaddrinfo if available.
18713
18714 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18715 (x_scroll_bar_note_movement): start, end, with, height in struct
18716 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18717
187182007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18719
18720 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18721
187222007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18723
18724 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18725 This undoes Richard's change of 14-Oct-2002.
18726
18727 * alloc.c (allocate_other_vector):
18728 * lisp.h (allocate_other_vector): Remove.
18729
18730 * window.c (struct save_window_data): Move non-lisp data to the end
18731 and make it `int' rather than Lisp_Object.
18732 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18733 Done wrap/unwrap integer values.
18734 (Fset_window_configuration, compare_window_configurations):
18735 Update use of fields to their new types.
18736
18737 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18738 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18739 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18740 (SET_SCROLL_BAR_X_WINDOW): Remove.
18741 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18742 Access the new x_window field directly.
18743 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18744 Don't wrap/unwrap integers into Lisp_Objects.
18745 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18746 (x_scroll_bar_report_motion):
18747 Don't wrap/unwrap integers into Lisp_Objects.
18748 (x_term_init): Use SDATA.
18749 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18750 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18751 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18752 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18753 * xfns.c (x_set_background_color):
18754 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18755 Access the new x_window field directly.
18756
18757 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18758 (allocate_pseudovector): Make non-static.
18759
18760 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18761 (allocate_pseudovector): Declare.
18762 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18763
187642007-11-15 Andreas Schwab <schwab@suse.de>
18765
18766 * editfns.c (Fformat): Correctly format EMACS_INT values.
18767 Also take precision into account when formatting an integer.
18768
18769 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18770
187712007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18772
18773 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18774 (syms_of_keyboard): Defsubr it.
18775
18776 * data.c (swap_in_global_binding): Fix longstanding bug where
18777 store_symval_forwarding was not called with the right second argument,
18778 thus causing objfwd-ing from being dropped.
18779
187802007-11-14 Juanma Barranquero <lekktu@gmail.com>
18781
18782 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18783 (Fx_display_pixel_height, Fx_display_planes)
18784 (Fx_display_color_cells, Fx_server_max_request_size)
18785 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18786 (Fx_display_visual_class, Fx_display_save_under):
18787 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18788 (Fx_display_pixel_height, Fx_display_planes)
18789 (Fx_display_color_cells, Fx_server_max_request_size)
18790 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18791 (Fx_display_mm_height, Fx_display_mm_width)
18792 (Fx_display_backing_store, Fx_display_visual_class)
18793 (Fw32_select_font, Fx_display_save_under):
18794 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18795 (Fx_display_pixel_height, Fx_display_planes)
18796 (Fx_display_color_cells, Fx_server_max_request_size)
18797 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18798 (Fx_display_save_under): Fix typos in docstrings.
18799
188002007-11-14 Juanma Barranquero <lekktu@gmail.com>
18801
18802 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18803 corresponding to deleted entries; they are an implementation detail.
18804 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18805 Remove variables.
18806 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18807 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18808 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18809 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18810 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18811 (Fw32_define_rgb_color, Fw32_load_color_file)
18812 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18813 Fix typos in docstrings.
18814 (Fx_server_version): Reflow docstring.
18815 (Fw32_shell_execute): Doc fixes.
18816
188172007-11-13 Juanma Barranquero <lekktu@gmail.com>
18818
18819 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18820 if w32_parse_hot_key returned nil.
18821
188222007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18823
18824 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18825
188262007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18827
aac0c6e3
MR
18828 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18829
18830 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18831
18832 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18833 Remove W32_SCROLL_BAR_CLICK_EVENT.
18834
18835 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18836 Add MULTIMEDIA_KEY_EVENT.
18837
18838 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18839 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18840 (make_lispy_event) [WINDOWSNT]: Use it to translate
18841 MULTIMEDIA_KEY_EVENT.
18842
18843 * w32term.h (WM_APPCOMMAND): Define if not already.
18844 (GET_APPCOMMAND_LPARAM): Likewise.
18845
18846 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18847 WM_APPCOMMAND.
18848
18849 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18850 (syms_of_w32fns): Export and initialize it.
18851 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18852
188532007-11-09 Chong Yidong <cyd@stupidchicken.com>
18854
18855 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18856 twice.
18857
18858 * xdisp.c (handle_face_prop): Fix last change.
18859
188602007-11-09 Richard Stallman <rms@gnu.org>
18861
18862 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18863 not just for after-strings and before-strings.
18864 Call face_for_overlay_string and pass the overlay to it.
18865 (handle_display_prop): Determine whether property came from an overlay.
18866 Pass OVERLAY arg to handle_single_display_spec.
18867 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18868 (load_overlay_strings): Fill in it->string_overlays.
18869 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18870
18871 * xfaces.c (face_for_overlay_string): Function renamed from
18872 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18873
18874 * dispextern.h (struct it): New elt string_overlays.
18875 New elt from_overlay, also in stack.
18876 Rearrange a few elements.
18877 (face_for_overlay_string): Decl renamed from
18878 face_at_buffer_position_no_overlays, and add argument.
18879
188802007-11-09 Richard Stallman <rms@gnu.org>
18881
18882 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18883 to get the base face for an overlay string.
18884
18885 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18886
18887 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18888
18889 * xdisp.c (handle_stop): Move some code out of loop.
18890
188912007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18892
18893 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18894 Fix conversion from Lisp object to ATSUFontID.
18895
188962007-11-09 Jason Rumney <jasonr@gnu.org>
18897
18898 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18899
189002007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18901
18902 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18903 Don't assume regions are aligned to page boundary.
18904 (print_load_command_name): Add LC_UUID if defined.
18905
189062007-11-09 Richard Stallman <rms@gnu.org>
18907
18908 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18909
189102007-11-07 Jason Rumney <jasonr@gnu.org>
18911
18912 * s/windows95.h: Remove.
18913
189142007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18915
18916 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18917 abort with a message on unhandled store_type values.
18918
189192007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18920
18921 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18922 Remove HAVE_X11R5 and HAVE_X11R4.
18923
189242007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18925
18926 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18927
189282007-11-01 Johan Bockgård <bojohan@gnu.org>
18929
18930 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18931 Don't set s->stippled_p here, since it has already been set by
18932 x_set_glyph_string_gc from x_draw_glyph_string.
18933
189342007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18935
18936 * sunfns.c: Remove file.
18937
18938 * m/sun386.h:
18939 * m/sun2.h:
18940 * m/sparc.h: Remove Sun windows code.
18941
189422007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18943
18944 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18945 (init_keyboard): Set current_kboard's window-system to nil.
18946 (tty_read_avail_input): Typo.
18947 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18948
189492007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18950
18951 * s/usg5-4.h:
18952 * s/usg5-3.h:
18953 * s/ptx.h:
18954 * m/is386.h:
18955 * m/ibmps2-aix.h:
18956 * Makefile.in: Remove all mentions of X10.
18957
18958 * dispnew.c (syms_of_display): Don't mention version 10.
18959
189602007-10-28 Juanma Barranquero <lekktu@gmail.com>
18961
18962 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18963 ($(BLD)/abbrev.$(O)): Remove.
18964
189652007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18966
18967 Rewrite abbrev.c in Elisp.
18968 * image.c (Qcount): Don't declare as extern.
18969 (syms_of_image): Initialize and staticpro `Qcount'.
18970 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18971 * emacs.c (main): Don't call syms_of_abbrev.
18972 * Makefile.in (obj): Remove abbrev.o.
18973 (abbrev.o): Remove.
18974 * abbrev.c: Remove.
18975
189762007-10-26 Martin Rudalics <rudalics@gmx.at>
18977
18978 * window.c (window_min_size_2): Don't count header-line.
18979
189802007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18981
18982 * frame.h (struct frame): Move all bit fields after the first bit
18983 field to take advantage of the available space. Group all the
18984 chars together to reduce wasted space due to padding.
18985
189862007-10-26 Juanma Barranquero <lekktu@gmail.com>
18987
18988 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18989
18990 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18991 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18992 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18993 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18994 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18995 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18996 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18997 (last_marked, mark_object_loop_halt): Make static.
18998
18999 * frame.c (syms_of_frame) <delete-frame-functions>:
19000 Fix typo in docstring.
19001
190022007-10-25 Juanma Barranquero <lekktu@gmail.com>
19003
19004 * w32.c (init_environment): Fix tiny memory leak.
19005 (w32_get_resource): Remove unused variable `ok'.
19006
190072007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19008
19009 Make `window-system' into a keyboard-local variable (rather than
19010 frame-local as done originally by multi-tty).
19011
19012 * keyboard.h (struct kboard): Add Vwindow_system.
19013 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19014 (mark_kboards): Mark Vwindow_system.
19015
19016 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19017 (init_display): Don't set the obsolete `window-system' frame-param.
19018
19019 * xterm.c (x_term_init):
19020 * w32term.c (w32_create_terminal):
19021 * term.c (init_tty): Set Vwindow_system.
19022 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19023 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19024
19025 * xfns.c (Fx_create_frame, x_create_tip_frame):
19026 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19027 * macfns.c (Fx_create_frame):
19028 Don't set the obsolete `window-system' frame-param.
19029
19030 * frame.h (Qwindow_system): Remove.
19031 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19032 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19033
190342007-10-24 Richard Stallman <rms@gnu.org>
19035
19036 * frame.c (x_figure_window_size): For fullscreen case,
19037 set USPosition | PPosition without clobbering rest of window_prompting.
19038
19039 * keyboard.c (Fcurrent_idle_time): Doc fix.
19040
19041 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19042
190432007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19044
19045 * process.c (unwind_request_sigio): Only define if __ultrix__.
19046
19047 * callproc.c (child_setup): Remove spurious *.
19048
19049 * lisp.h (Fget_text_property): Declare.
19050 (have_menus_p): Declare it here rather than in sys-dep header files.
19051 * macterm.h (have_menus_p):
19052 * msdos.h (have_menus_p):
19053 * xterm.h (have_menus_p): Remove.
19054
19055 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19056 (Fmake_variable_frame_local): Just check the variable's const-ness
19057 rather than checking nil or t.
19058
190592007-10-22 Jason Rumney <jasonr@gnu.org>
19060
19061 * w32fns.c: Include math.h.
19062 (w32_abort): Declaration moved to nt/config.nt.
19063
19064 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19065 (abort): Redefinition moved to nt/config.nt.
19066
19067 * m/windowsnt.h: Remove.
19068
190692007-10-22 Juanma Barranquero <lekktu@gmail.com>
19070
19071 * emacs.c (Fdump_emacs): Fix typo in message.
19072 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19073 <installation-directory>: Reflow docstring.
19074
190752007-10-22 Juri Linkov <juri@jurta.org>
19076
19077 * minibuf.c: Allow minibuffer default to be a list of default values.
19078 With empty input use the first element of this list as returned default.
19079 (string_to_object)
19080 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19081 (read_minibuf): If defalt is cons, set histstring to its car.
19082 (Fread_string): If default_value is cons, set val to its car.
19083 (Fread_buffer): If def is cons, use its car.
19084 (Fcompleting_read): If defalt is cons, set val to its car.
19085
190862007-10-21 Michael Albinus <michael.albinus@gmx.de>
19087
19088 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19089
190902007-10-20 Juanma Barranquero <lekktu@gmail.com>
19091
19092 * doc.c (Fdocumentation): Check for advice in all cases.
19093
190942007-10-19 Chong Yidong <cyd@stupidchicken.com>
19095
19096 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19097
190982007-10-19 Richard Stallman <rms@gnu.org>
19099
19100 * doc.c (Fdocumentation): Check for and handle an advised function.
19101
191022007-10-19 Juanma Barranquero <lekktu@gmail.com>
19103
19104 * process.c (Fset_process_filter): Doc fix.
19105
191062007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19107
19108 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19109 which caused key-translation-map to applied repeatedly (thus breaking
19110 double-mode).
19111
191122007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19113
19114 * xselect.c (x_own_selection, x_handle_selection_clear)
19115 (x_clear_frame_selections):
19116 * w32menu.c (list_of_panes, list_of_items):
19117 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19118 * textprop.c (validate_plist, interval_has_all_properties)
19119 (interval_has_some_properties, interval_has_some_properties_list)
19120 (add_properties, text_property_list):
19121 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19122 * minibuf.c (Fassoc_string):
19123 * macselect.c (x_own_selection, x_clear_frame_selections)
19124 (Fx_disown_selection_internal):
19125 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19126 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19127
191282007-10-17 Chong Yidong <cyd@stupidchicken.com>
19129
19130 * process.c: Link to libs for calling res_init() if available.
19131 (Fmake_network_process): Call res_init() before getaddrinfo or
19132 gethostbyname, if possible.
19133
191342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19135
19136 * lread.c (read1): Set pvectype for char_tables.
19137
19138 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19139 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19140 Add type checks.
19141 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19142
19143 * alloc.c (free_misc): Use XMISCTYPE.
19144 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19145
191462007-10-17 Glenn Morris <rgm@gnu.org>
19147
19148 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19149 (syms_of_minibuf): Add Qcompletion_ignore_case.
19150 * dired.c (Qcompletion_ignore_case): Change to external.
19151 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19152 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19153 (Fread_file_name): Use it rather than intern'ing.
19154
19155 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19156 (Fread_coding_system): Ignore case of user input.
19157
191582007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19159
19160 * xdisp.c (handle_display_prop): Ignore display specs after
19161 replacing one when string text is being replaced.
19162 (handle_single_display_spec): Pretend as if characters with display
19163 property haven't been consumed only when buffer text is being replaced.
19164
191652007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19166
19167 * xfns.c (Fx_create_frame, Fx_display_list):
19168 * window.c (window_fixed_size_p, enlarge_window)
19169 (shrink_window_lowest_first):
19170 * macterm.c (init_font_name_table):
19171 * macfns.c (Fx_create_frame, Fx_display_list):
19172 * lread.c (close_load_descs):
19173 * keyboard.c (read_char_x_menu_prompt):
19174 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19175 * coding.c (code_convert_region_unwind): Test the type of an object
19176 rather than just !NILP before extracting data from it.
19177
19178 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19179
19180 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19181 (XMISCANY): New macro.
19182 (XMISCTYPE): Use it.
19183 (struct Lisp_Misc_Any): New type.
19184 (union Lisp_Misc): Use it.
19185 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19186 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19187 (find_symbol_value, set_internal, default_value, Fset_default)
19188 (Fmake_variable_buffer_local, Fmake_local_variable)
19189 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19190 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19191 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19192 * alloc.c (allocate_buffer): Set the size and tag.
19193 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19194 Use XMISCANY.
19195 (die): Follow the GNU convention for error messages.
19196 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19197 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19198 tag any more.
19199 (set_buffer_internal_1):
19200 * frame.c (store_frame_param):
19201 * eval.c (specbind):
19202 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19203
19204 * doc.c (Fsnarf_documentation): Simplify.
19205
192062007-10-14 Juanma Barranquero <lekktu@gmail.com>
19207
19208 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19209 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19210
192112007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19212
19213 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19214
192152007-10-14 Juanma Barranquero <lekktu@gmail.com>
19216
19217 * eval.c (do_autoload): Don't save autoloads.
19218
19219 * data.c (Ffset): Save autoload of the function being set.
19220
192212007-10-07 John Paul Wallington <jpw@pobox.com>
19222
19223 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19224 parameter before setting up faces.
19225
192262007-10-13 Eli Zaretskii <eliz@gnu.org>
19227
19228 * ccl.c (Fregister_code_conversion_map):
19229 * keyboard.c (append_tool_bar_item): Reformat last change.
19230
19231 * lisp.h (eabs): Rename from `abs'. All callers changed.
19232
192332007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19234
19235 * buffer.c (add_overlay_mod_hooklist):
19236 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19237 * fontset.c (make_fontset):
19238 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19239 (append_tool_bar_item):
19240 * macmenu.c (grow_menu_items):
19241 * w32menu.c (grow_menu_items):
19242 * xmenu.c (grow_menu_items): Use larger_vector.
19243
192442007-10-13 Eli Zaretskii <eliz@gnu.org>
19245
19246 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19247 selected frame'' on MSDOS).
19248
192492007-10-12 Martin Rudalics <rudalics@gmx.at>
19250
19251 * frame.c (Qexplicit_name): New variable.
19252 (x_report_frame_params): Report it in parameter alist.
19253 (syms_of_frame): Intern and staticpro it.
19254
192552007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19256
19257 * macfns.c (x_create_tip_frame): Set terminal for frame.
19258
192592007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19260
19261 * frame.c (Qenvironment): Remove.
19262 (syms_of_frame) <Qenvironment>: Don't initialize.
19263 (Fdelete_frame): Don't treat the `environment' param specially.
19264 * frame.h (Qenvironment): Don't declare.
19265 * callproc.c (set_initial_environment): Don't set unused frame param.
19266
19267 * frame.c (Fframe_with_environment): Remove.
19268 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19269
19270 * lisp.h (Fframe_with_environment): Don't declare.
19271
192722007-10-10 Juanma Barranquero <lekktu@gmail.com>
19273
19274 * indent.c (indent_tabs_mode, last_known_column)
19275 (last_known_column_modified): Make static.
19276 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19277
192782007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19279
19280 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19281
192822007-10-09 Jason Rumney <jasonr@gnu.org>
19283
19284 * w32term.c (x_set_window_size): Disable code that attempts to tell
19285 Lisp code about a size change before it actually happens.
19286
192872007-10-09 Richard Stallman <rms@gnu.org>
19288
19289 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19290 return HANDLED_RETURN.
19291
192922007-10-08 Martin Rudalics <rudalics@gmx.at>
19293
19294 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19295 when there's an unread command event.
19296
19297 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19298 window autoselection act appropriately when leaving selected frame.
19299 (syms_of_frame): Initialize focus_follows_mouse.
19300 * frame.h (focus_follows_mouse): Extern it.
19301 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19302 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19303 * msdos.c (dos_rawgetc): Likewise.
19304 * w32term.c (w32_read_socket): Likewise.
19305 * xterm.c (handle_one_xevent): Likewise.
19306 * xdisp.c (syms_of_xdisp): In doc-string of
19307 mouse-autoselect-window mention focus-follows-mouse.
19308
193092007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19310
19311 * macterm.c (mac_load_query_font): Fix missing return value.
19312 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19313 Add BLOCK_INPUT.
19314
193152007-10-08 Richard Stallman <rms@gnu.org>
19316
19317 * xdisp.c (get_window_cursor_type): Implement documented behavior
19318 for cursor-in-non-selected-windows = t.
19319
193202007-10-08 Jason Rumney <jasonr@gnu.org>
19321
19322 * w32.c (w32_get_resource): Always close registry keys.
19323
193242007-10-08 Jason Rumney <jasonr@gnu.org>
19325
19326 * makefile.w32-in (LIBS): Add COMCTL32.
19327
19328 * w32fns.c (globals_of_w32fns): Init common controls.
19329
193302007-10-08 Richard Stallman <rms@gnu.org>
19331
19332 * image.c (our_memory_buffer): Rename from omfib_buffer.
19333
193342007-10-08 Richard Stallman <rms@gnu.org>
19335
19336 * buffer.c (Foverlays_at): Doc fix.
19337
193382007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19339
19340 * fns.c (Fplist_put): Preserve uneven tail data.
19341
193422007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19343
19344 * termhooks.h (enum event_kind): Remove trailing comma.
19345
19346 * frame.h (enum): Remove trailing comma.
19347
193482007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19349
19350 * w32proc.c (delete_child): Don't terminate threads of zombies.
19351
193522007-10-08 Martin Rudalics <rudalics@gmx.at>
19353
19354 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19355
19356 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19357 last-repeatable-command.
19358 (init_kboard): Initialize Vlast_repeatable_command.
19359 (command_loop_1): Set it to real_this_command unless that was
19360 bound to an input event.
19361 (mark_kboards): Mark it.
19362
193632007-10-08 Richard Stallman <rms@gnu.org>
19364
19365 * eval.c (condition-case): Doc fix.
19366
193672007-10-08 Masatake YAMATO <jet@gyve.org>
19368
19369 * xfaces.c (tty_supports_face_attributes_p): Fix code
19370 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19371 was copied and not edited.
19372
193732007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19374
19375 Add new `input-decode-map' keymap and use it for terminal
19376 escape sequences.
19377 * keyboard.h (struct kboard): Add Vinput_decode_map.
19378 Remove Vlocal_key_translation_map.
19379 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19380 (init_kboard): Init input-decode-map.
19381 Replace local-key-translation-map back with key-translation-map.
19382 (syms_of_keyboard): Declare input-decode-map.
19383 Remove local-key-translation-map. Update docstrings.
19384 (mark_kboards): Mark Vinput_decode_map.
19385 Don't mark Vlocal_key_translation_map.
19386 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19387 Replace local-key-translation-map back with key-translation-map.
19388 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19389 Bind in input-decode-map rather than function-key-map.
19390
19391 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19392 This was made redundant by the previous introduction of XSETPVECTYPE.
19393
193942007-10-09 Richard Stallman <rms@gnu.org>
19395
19396 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19397
193982007-09-29 Richard Stallman <rms@gnu.org>
19399
19400 * eval.c (internal_condition_case_2, internal_condition_case_1)
19401 (internal_condition_case): Reenable abort if x_catching_errors ()
19402 to see if that really happens and why.
19403
194042007-10-06 Andreas Schwab <schwab@suse.de>
19405
19406 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19407
194082007-10-04 Juanma Barranquero <lekktu@gmail.com>
19409
19410 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19411
194122007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19413
19414 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19415
194162007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19417
19418 * window.h (struct window):
19419 * window.c (struct save_window_data, struct saved_window):
19420 * termhooks.h (struct terminal):
19421 * process.h (struct Lisp_Process):
19422 * frame.h (struct frame):
19423 * buffer.h (struct buffer):
19424 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19425 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19426 The size field of (pseudo)vectors is now unsigned.
19427 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19428
19429 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19430 Turn `count' into an integer.
19431
19432 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19433 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19434 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19435 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19436 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19437
19438 * alloc.c (allocate_pseudovector): New fun.
19439 (ALLOCATE_PSEUDOVECTOR): New macro.
19440 (allocate_window, allocate_terminal, allocate_frame)
19441 (allocate_process): Use it.
19442 (mark_vectorlike): New function.
19443 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19444 (mark_terminals): Use it.
19445 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19446 (Fmake_byte_code): Use XSETPVECTYPE.
19447
19448 * frame.c (Fframe_parameters): Minor simplification.
19449
19450 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19451
19452 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19453
19454 * buffer.c (Fget_buffer_create, init_buffer_once):
19455 * lread.c (defsubr):
19456 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19457
19458 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19459 defined differently in the m/*.h files.
19460 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19461 (XSETPVECTYPE): New macro.
19462 (XSETPSEUDOVECTOR): Use it.
19463
19464 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19465 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19466
19467 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19468 * lread.c (defvar_per_buffer):
19469 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19470
19471 * window.c (candidate_window_p): Only consider as visible frames that
19472 are on the same terminal.
19473
19474 * m/ibms390x.h (MARKBIT): Remove unused macro.
19475
194762007-10-01 Juanma Barranquero <lekktu@gmail.com>
19477
19478 * lread.c (Fload): Fix typo in docstring.
19479
194802007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19481
19482 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19483 of a non-zero value can't yield zero.
19484
194852007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19486
19487 * term.c (term_clear_mouse_face, term_mouse_highlight)
19488 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19489
19490 * print.c (safe_debug_print): Use XHASH.
19491
19492 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19493 Lisp elements such as tags.
19494 (XHASH): New macro.
19495 (EQ): Use it.
19496 (SREF, SSET, STRING_COPYIN): Use SDATA.
19497 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19498
19499 * alloc.c (mark_terminal): Remove left-over declaration.
19500 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19501 (allocate_vectorlike): Remove type argument. Adjust callers.
19502 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19503 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19504
19505 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19506 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19507 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19508 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19509 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19510 Use them.
19511
19512 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19513 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19514 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19515
195162007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19517
19518 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19519 loaded by default.
19520
195212007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19522
19523 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19524 on this tty.
19525 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19526
19527 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19528 Update all users.
19529 (handle_one_term_event): Use Gpm_DrawPointer.
19530 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19531 Signal errors instead of returning nil. Always return nil.
19532 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19533 Make it a noop if gpm-mouse was not activated.
19534 (syms_of_term): Update names.
19535
195362007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19537
19538 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19539 (init_sys_modes): Check that gpm_tty is the current tty.
19540
19541 * alloc.c (allocate_terminal): Set the vector size to only count the
19542 lisp fields. Initialize those to nil.
19543 (mark_object): Don't treat terminals specially.
19544 (mark_terminal): Remove.
19545 (mark_terminals): Use mark_object instead.
19546
19547 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19548 the GC to the beginning.
19549
19550 * indent.h:
19551 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19552
19553 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19554
195552007-09-25 Jason Rumney <jasonr@gnu.org>
19556
19557 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19558
19559 * w32console.c (create_w32cons_output): Remove.
19560
19561 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19562
19563 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19564 (reset_sys_modes): Use reset_terminal_modes_hook.
19565
195662007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19567
19568 * eval.c (do_autoload): Don't output any message.
19569
195702007-09-24 Juri Linkov <juri@jurta.org>
19571
19572 * emacs.c (standard_args): Change priority of "--no-splash"
19573 from 40 to 3. Add "--no-desktop" with the same priority.
19574
195752007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19576
19577 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19578 and optimize the case where they are all 1.
19579
195802007-09-23 Johannes Weiner <hannes@saeurebad.de>
19581
19582 * lisp.h (abs): Define if not defined.
19583 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19584 Don't define `abs', since it's defined in lisp.h.
19585
195862007-09-22 Eli Zaretskii <eliz@gnu.org>
19587
19588 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19589 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19590 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19591 (init_tty): Use DEV_TTY instead of "/dev/tty".
19592 [WINDOWSNT]: No need to protect from NAME arg being null.
19593
195942007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19595
19596 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19597 up the tty state.
19598
195992007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19600
19601 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19602 (gpm_tty): Change its type.
19603 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19604 (gpm_tty): Change its type and initialize it.
19605 (Fterm_open_connection): Check the frame is indeed a tty.
19606 Use the new gpm_tty.
19607 (Fterm_close_connection): Use the new gpm_tty.
19608 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19609 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19610
196112007-09-21 Juanma Barranquero <lekktu@gmail.com>
19612
19613 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19614 underline_color, to draw strike-through.
19615
196162007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19617
19618 * lisp.h (allocate_terminal): Declare.
19619
19620 * window.c (candidate_window_p): Consider frames that are being placed
19621 by the user as somewhere between visible and iconified.
19622 (window_loop): Prefer windows on the current frame.
19623 (Fselect_window): Move the use of select-frame to the beginning so we
19624 can just delegate all the work (it'll call us back anyway).
19625
19626 * frame.c (Qdisplay_environment_variable):
19627 * frame.h (Qdisplay_environment_variable): Delete.
19628
19629 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19630 of the first arg, since that value may be a union.
19631
19632 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19633 parameter rather than Qdisplay_environment_variable. If all else
19634 fails, look for DISPLAY in initial-environment.
19635
196362007-09-21 Glenn Morris <rgm@gnu.org>
19637
19638 * Makefile.in (emacstool): Remove target.
19639 (lisp, shortlisp): Remove termdev.elc.
19640
196412007-09-21 Markus Triska <markus.triska@gmx.at>
19642
19643 * xterm.c (x_delete_display): Compile session management conditionally.
19644
196452007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19646
19647 * callproc.c (getenv_internal_1): New function.
19648 (getenv_internal): Use it.
19649 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19650
19651 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19652 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19653 (Fset_terminal_parameter): Work with dead terminals as well.
19654 (Fmodify_terminal_parameters): Remove.
19655
19656 * terminal.c (get_terminal): Handle terminals.
19657 Make sure the terminal returned is live.
19658 (create_terminal): Use allocate_terminal.
19659 (mark_terminals): Move to alloc.c.
19660 (delete_terminal): Use terminal->name as liveness status.
19661 NULL out fields after freeing their contents.
19662 Don't deallocate the object.
19663 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19664 rather than an int.
19665 (Fterminal_live_p): Accept non-integer arguments.
19666 (Fterminal_list): Return terminal objects rather than an ints.
19667
19668 * alloc.c (enum mem_type): New member for `terminal' objects.
19669 (allocate_terminal): New function.
19670 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19671 Handle terminals.
19672 (mark_terminal): New fun.
19673 (mark_terminals): Move from terminal.c.
19674
19675 * term.c (get_tty_terminal): Don't treat output_initial specially.
19676 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19677 (delete_tty): Use terminal->name as liveness status.
19678
19679 * termhooks.h (struct terminal): Make it into a pseudovector.
19680 Remove `deleted' replaced by checking `name's nullness.
19681
19682 * print.c (print_object): Handle terminals.
19683
19684 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19685 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19686
19687 * frame.c (make_terminal_frame):
19688 * keyboard.c (tty_read_avail_input):
19689 * w32term.c (x_delete_terminal):
19690 * xfns.c (Fx_create_frame, x_create_tip_frame):
19691 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19692
196932007-09-20 Glenn Morris <rgm@gnu.org>
19694
19695 * process.c (Fmake_network_process): Doc fix.
19696
196972007-09-19 Jason Rumney <jasonr@gnu.org>
19698
19699 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19700
197012007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19702
19703 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19704 Fix a C warning regarding variable constness.
19705
19706 * xterm.c (handle_one_xevent): Fix a C warning.
19707
197082007-09-18 Jason Rumney <jasonr@gnu.org>
19709
19710 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19711
197122007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19713
19714 * gtkutil.c (gdpy_def): New variable.
19715 (xg_initialize): Initialize gdpy_def.
19716 (xg_display_close): If no other display exists, set gdpy_def to a
19717 new connection.
19718
197192007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19720
19721 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19722 when we have no file name for the icon.
19723 (xg_tool_bar_expose_callback): Remove.
19724 (xg_create_tool_bar): Don't connect expose signal to
19725 xg_tool_bar_expose_callback.
19726 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19727
197282007-09-16 Andreas Schwab <schwab@suse.de>
19729
19730 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19731 values instead of zapping them.
19732
197332007-09-14 Glenn Morris <rgm@gnu.org>
19734
19735 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19736 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19737 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19738 scope and rename to omfib_buffer for clarity.
19739 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19740
197412007-09-14 Kenichi Handa <handa@m17n.org>
19742
19743 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19744
197452007-09-13 Jason Rumney <jasonr@gnu.org>
19746
19747 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19748
19749 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19750
19751 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19752 (mac_term_init): Call here instead, passing rif.
19753
197542007-09-13 Glenn Morris <rgm@gnu.org>
19755
19756 * s/hpux.h: No longer define `static' as nothing.
19757
197582007-09-13 Johan Bockgård <bojohan@gnu.org>
19759
19760 * callint.c (Fcall_interactively): Remove unused var `fun'.
19761
197622007-09-12 Romain Francoise <romain@orebokech.com>
19763
19764 * window.c (prefer_window_split_horizontally, display_buffer):
19765 Revert 2007-09-08 change.
19766
197672007-09-12 Glenn Morris <rgm@gnu.org>
19768
19769 * alloca.c: Remove file.
19770 * Makefile.in (alloca): Do not undef.
19771 (allocaobj, alloca.o): Remove.
19772 (otherobj): Remove allocaobj.
19773 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19774 * regex.c (C_ALLOCA): Remove all references and code that was only
19775 used when this was defined.
19776 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19777 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19778 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19779
19780 * Makefile.in (SOURCES, unlock, relock): Delete.
19781
19782 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19783 (menu_grab_callback): All uses changed.
19784
19785 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19786 (x_reply_selection_request): All uses changed.
19787
197882007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19789
19790 * lread.c (load_warn_old_style_backquotes): Change message to look
19791 better when it appears in the middle of byte-compiler messages.
19792
197932007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19794
19795 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19796
19797 * xterm.c (x_create_terminal): Add comment.
19798
19799 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19800
198012007-09-10 Richard Stallman <rms@gnu.org>
19802
19803 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19804
198052007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19806
19807 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19808 (DEFUN): Document `intspec', use it instead of `prompt'.
19809
19810 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19811
19812 * data.c (Finteractive_form): If the interactive specification starts
19813 with a `(', use it as a Lisp form.
19814
19815 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19816 name and file modes.
19817
19818 * callint.c (Fcall_interactively): Comment fixes.
19819
198202007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19821
19822 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19823 and compiled functions.
19824
198252007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19826
19827 * window.c (prefer_window_split_horizontally): New variable.
19828 (display_buffer): Consider splitting window horizontally depending
19829 on prefer_window_split_horizontally.
19830
198312007-09-08 Eli Zaretskii <eliz@gnu.org>
19832
19833 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19834
198352007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19838
19839 * frame.c (x_set_frame_parameters): Check number is positive before
19840 using XFASTINT.
19841
19842 * window.c (freeze_window_start): Don't presume selected_window holds
19843 a window object.
19844 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19845
198462007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19847
19848 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19849
198502007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19851
19852 * window.c (Vsplit_window_preferred_function): New var.
19853 (Fdisplay_buffer): Use it.
19854 (syms_of_window): Export, and initialize it.
19855
198562007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19857
19858 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19859
198602007-09-06 Glenn Morris <rgm@gnu.org>
19861
19862 * gtkutil.c (menu_grab_callback) <cnt>:
19863 * xselect.c (x_reply_selection_request) <cnt>: Move static
19864 variable to file scope.
19865
198662007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19867
19868 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19869 consistent values of selected_frame and selected_window.
19870
198712007-09-04 Jason Rumney <jasonr@gnu.org>
19872
19873 * w32console.c (initialize_w32_display): Zero unused hooks.
19874
198752007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19876
19877 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19878 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19879
198802007-09-04 Jason Rumney <jasonr@gnu.org>
19881
19882 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19883 in w32console.c. Set up input. Remove XXX comments that have been
19884 confirmed as correct.
19885
19886 * s/ms-w32.h (MULTI_KBOARD): Define.
19887
19888 * w32console.c (one_and_only_w32cons): Remove.
19889 (initialize_w32_display): Take terminal argument.
19890
19891 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19892 initialize_w32_display.
19893 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19894
19895 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19896
19897 * keyboard.c (discard_mouse_events): Discard it.
19898 (make_lispy_event): Translate it to a lisp event.
19899 (lispy_wheel_names): Add wheel-left and right events.
19900 (syms_of_keyboard): Enlarge wheel_syms.
19901
19902 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19903 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19904
19905 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19906
19907 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19908 from WM_MOUSEHWHEEL.
19909 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19910
19911 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19912 terminal.
19913
19914 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19915 keyboard for the terminal.
19916
199172007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19918
19919 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19920 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19921 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19922 and resume-tty-function to resume-tty-hook.
19923 (Fsuspend_tty, Fresume_tty): Use new names.
19924
199252007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19926
19927 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19928 if it starts with "n:".
19929
199302007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19931
19932 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19933
199342007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19935
19936 * frame.h:
19937 * frame.c (Qterm_environment_variable): Remove.
19938 (syms_of_frame): Don't init and staticpro it.
19939
19940 * callproc.c (getenv_internal): Remove special case for $TERM.
19941
19942 * callproc.c (Vinitial_environment): New variable.
19943 (set_initial_environment): Initialize it.
19944 (syms_of_callproc): Declare it.
19945 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19946 TERM under which a process runs is never related to the TERM in which
19947 Emacs is running.
19948
199492007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19950
19951 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19952 * s/darwin.h: ... do it here.
19953
199542007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19955
19956 * lisp.h (set_initial_environment): Rename from set_global_environment.
19957
19958 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19959 removed by mistake on the multi-tty branch.
19960
19961 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19962 (Fmodify_frame_parameters): Return a value.
19963
19964 * image.c (png_load): Comment-out var only used in commented-out code.
19965
19966 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19967 before passing it to mark_object.
19968
19969 * xfaces.c (internal_resolve_face_name): Return a value.
19970 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19971
19972 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19973 (x_icon): Comment-out var only used in commented-out code.
19974
199752007-08-29 Romain Francoise <romain@orebokech.com>
19976
19977 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19978 QUIT hasn't been provided.
19979
199802007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19981
19982 * callproc.c (child_setup, getenv_internal): Use the
19983 display-environment-variable and term-environment-variable frame params.
19984 (set_initial_environment): Initialise Vprocess_environment.
19985
19986 * config.in: Disable multi-keyboard support on a mac.
19987
19988 * frame.c (Qterm_environment_variable)
19989 (Qdisplay_environment_variable): New variables.
19990 (syms_of_frame): Intern and staticpro them.
19991 (Fmake_terminal_frame): Disable output method test.
19992
19993 * frame.h: Declare them here.
19994
19995 * macfns.c (x_set_mouse_color): Get rif from the frame.
19996 (x_set_tool_bar_lines): Don't use updating_frame.
19997 (mac_window): Add 2 new parameters for consistency with other systems.
19998 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19999 frame parameters following what is done in X11 and w32. Don't use
20000 FRAME_MAC_DISPLAY_INFO.
20001 (Fx_open_connection, start_hourglass): Remove window-system check.
20002 (x_create_tip_frame): Get the keyboard from the terminal.
20003
20004 * macmenu.c: Reorder includes.
20005 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20006
20007 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20008 terminal parameter.
20009 (x_clear_frame): Add a frame parameter.
20010 (note_mouse_movement): Get rif from the frame.
20011 (mac_term_init): Initialize the terminal.
20012 (mac_initialize): Make static and move terminal initialization ...
20013 (mac_create_terminal): ... to this new function.
20014
20015 * macterm.h (struct mac_display_info): Add terminal.
20016 (mac_initialize): Delete declaration.
20017
20018 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20019
20020 * sysdep.c: Comment out text after #endif.
20021
20022 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20023 is defined. Better initialize ttys in windows. Use terminal
20024 specific mouse_position_hook.
20025
20026 * termhooks.h (union display_info): Add mac_display_info.
20027
20028 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20029 Set the default minibuffer frame, window_system and the rest of the
20030 frame parameters following what is done in X11.
20031
20032 * w32term.c (w32_initialize): Make static.
20033
20034 * xselect.c (x_handle_selection_clear): Only access
20035 terminal->kboard when MULTI_KBOARD is defined.
20036
20037 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20038 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20039
200402007-08-29 Jason Rumney <jasonr@gnu.org>
20041
20042 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20043 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20044
20045 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20046 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20047
20048 * keyboard.c (restore_kboard_configuration): Only define when
20049 MULTI_KBOARD defined.
20050
20051 * makefile.w32-in: Update dependancies from Makefile.in.
20052 (OBJ1): Add terminal.$(O)
20053
20054 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20055 Don't define function body.
20056 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20057
20058 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20059
20060 * w32.c (request_sigio, unrequest_sigio): Remove.
20061
20062 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20063 (w32con_clear_frame, w32con_clear_end_of_line)
20064 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20065 (w32con_delete_glyphs, w32con_set_terminal_window)
20066 (scroll_line, w32_sys_ring_bell): Add frame arg.
20067 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20068 Add terminal arg.
20069 (PICK_FRAME): Remove.
20070 (w32con_write_glyphs): Use frame specific terminal coding.
20071 (one_and_only_w32cons): New global variable.
20072 (initialize_w32_display): Use it for storing hooks.
20073 (create_w32cons_output): New function.
20074
20075 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20076 arg a frame.
20077
20078 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20079 Set window_system.
20080 (x_set_tool_bar_lines): Don't use updating_frame.
20081 (Fx_create_frame): Set terminal and ref count.
20082 (Fx_open_connection): Remove window-system check.
20083
20084 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20085
20086 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20087 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20088 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20089 Add frame arg.
20090 (x_delete_terminal, w32_create_terminal): New functions.
20091 (w32_term_init): Create a terminal.
20092 (w32_initialize): Move terminal specific initialization to
20093 w32_create_terminal.
20094
20095 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20096 (w32_clear_rect, w32_clear_area): Use background from frame.
20097 (w32_display_info): Add terminal.
20098 (w32_sys_ring_bell, x_delete_display): Declare here.
20099
20100 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20101
20102 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20103
201042007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20105
20106 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20107 Fix get_named_tty calls for the controlling tty.
20108
201092007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20110
20111 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20112
201132007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20114
20115 * term.c (tty_insert_glyphs): Add missing first parameter.
20116
201172007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20118
20119 * buffer.c (Fbuffer_list, Fbury_buffer):
20120 Take frame->buried_buffer_list into account.
20121
20122 * cm.c (current_tty): New variable, for cmputc().
20123 (cmputc): Use it.
20124 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20125 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20126 (cmgoto): Add tty parameter. Pass it on to calccost().
20127 Use emacs_tputs() instead of tputs().
20128
20129 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20130 tputs().
20131 (current_tty): New variable, for cmputc().
20132 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20133
20134 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20135 (internal_condition_case, internal_condition_case_1)
20136 (internal_condition_case_2): Don't abort when x_catching_errors.
20137
20138 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20139 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20140 prevent crashes caused by bogus longjmps in read_char.
20141
20142 * keymap.h (Fset_keymap_parent): Add EXFUN.
20143
20144 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20145 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20146 Remove redundant definition.
20147
20148 * macfns.c (x_set_mouse_color, x_make_gc):
20149 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20150
20151 * w32term.c (x_free_frame_resources):
20152 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20153 (w32_initialize): Use the accessor macros for terminal characteristics.
20154
20155 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20156 Use the accessor macros for terminal characteristics.
20157 * msdos.c (internal_terminal_init): Use the accessor macros for
20158 terminal characteristics.
20159 (ScreenVisualBell, internal_terminal_init):
20160 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20161
20162 * termopts.h (no_redraw_on_reenter): Declare.
20163
20164 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20165 (mark_terminals, mark_ttys): Declare.
20166 (Fgarbage_collect): Call them.
20167 (mark_object): Mark buried_buffer_list.
20168
20169 * prefix-args.c: Include stdlib.h for exit.
20170
20171 * syssignal.h: Add comment.
20172
20173 * indent.c: Include stdio.h.
20174
20175 * window.h (Vinitial_window_system): Declare.
20176 (Vwindow_system): Delete declaration.
20177
20178 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20179
20180 * image.c (lookup_image): Don't initialize `c' until the xasserts
20181 have been run.
20182
20183 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20184 FRAME_FOREGROUND_PIXEL.
20185
20186 * print.c (print_preprocess): Don't lose print_depth levels while
20187 iterating.
20188
20189 * widget.c (update_from_various_frame_slots):
20190 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20191
20192 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20193 frames.
20194 (window_internal_height): Remove bogus make_number call.
20195 (init_window_once): Call make_terminal_frame with two zero parameters.
20196
20197 * fileio.c (Fread_file_name): Update comment.
20198
20199 * callint.c (Fcall_interactively):
20200 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20201 Make sure it is correctly unwound.
20202
20203 * xsmfns.c (x_session_close): New function.
20204
20205 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20206 Delete declarations.
20207
20208 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20209 (x_output): Remove background_pixel and foreground_pixel fields.
20210 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20211 (x_delete_device, x_session_close): Declare.
20212
20213 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20214 (read_filtered_event): Call `read_char' with a local
20215 `wrong_kboard_jmpbuf'.
20216
20217 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20218 Don't call single_kboard_state. Use FRAME_RIF.
20219
20220 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20221 systems.
20222
20223 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20224 (Fframe_with_environment, Fset_input_meta_mode)
20225 (Fset_quit_char): EXFUN.
20226 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20227 (init_sys_modes, reset_sys_modes): Update prototypes.
20228 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20229
20230 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20231 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20232 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20233 Delete declarations.
20234 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20235 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20236 New declarations.
20237
20238 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20239 already does that during init_display(). Call syms_of_keymap
20240 before syms_of_keyboard. Call `syms_of_terminal'.
20241 Call set_initial_environment, not set_process_environment.
20242 (shut_down_emacs): Call reset_all_sys_modes() instead of
20243 reset_sys_modes().
20244
20245 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20246 (internal_resolve_face_name, resolve_face_name_error): New functions.
20247 (resolve_face_name): Protect against loops and errors thrown by Fget.
20248 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20249 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20250
20251 * scroll.c: Replace CURTTY() with local variables throughout the
20252 file (where applicable).
20253 (calculate_scrolling, calculate_direct_scrolling)
20254 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20255 characteristics.
20256
20257 * keymap.c (Vfunction_key_map): Remove.
20258 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20259 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20260 (Vkey_translation_map): Remove.
20261 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20262 (Fdescribe_buffer_bindings)
20263 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20264 Update for terminal-local key-translation-map.
20265
20266 * Makefile.in (callproc.o): Update dependencies.
20267 (lisp, shortlisp): Add termdev.elc.
20268 (obj): Add terminal.o.
20269 (terminal.o): Add dependencies.
20270 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20271 (data.o, fns.o): Add termhooks.h dependency.
20272 (SOME_MACHINE_LISP): Add dnd.elc.
20273 (minibuf.o): Fix typo.
20274 Update dependencies.
20275
20276 * data.c (do_symval_forwarding, store_symval_forwarding)
20277 (find_symbol_value): Use the selected frame's keyboard, not
20278 current_kboard.
20279
20280 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20281 Vwindow_system.
20282
20283 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20284 Fmenu_bar_open.
20285 (syms_of_xmenu): Update defsubr.
20286 (mouse_position_for_popup, Fx_popup_menu)
20287 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20288 (set_frame_menubar, free_frame_menubar)
b97439ce 20289 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20290 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20291 an X frame.
20292
20293 * xselect.c (x_own_selection): Abort if not an X frame.
20294 (some_frame_on_display): Check if it is an X frame.
20295 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20296
20297 * coding.c: Include frame.h and termhooks.h.
20298 (terminal_coding, keyboard_coding): Delete.
20299 (Fset_terminal_coding_system_internal)
20300 (Fset_keyboard_coding_system_internal)
20301 (Fkeyboard_coding_system)
20302 (Fterminal_coding_system): Add a terminal parameter.
20303 Get terminal_coding from the terminal.
20304 (init_coding_once): Don't call setup_coding_system here.
20305
20306 * dispextern.h (set_scroll_region, turn_off_insert)
20307 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20308 (tty_clear_end_of_line, tty_setup_colors)
20309 (delete_tty, updating_frame)
20310 (produce_special_glyphs, produce_glyphs, write_glyphs)
20311 (insert_glyphs): Remove.
20312 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20313 (tty_turn_off_highlight, get_tty_size): Add declaration.
20314 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20315
20316 * frame.h (enum output_method): Add output_initial.
20317 (struct x_output): Delete.
20318 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20319 Access foreground_pixel and background_pixel directly from the frame.
20320 (tty_display): Delete.
20321 (struct frame): Add buried_buffer_list, foreground_pixel,
20322 background_pixel and terminal. Delete kboard.
20323 (union output_data): Add tty.
20324 (FRAME_KBOARD): Get the kboard from the terminal.
20325 (FRAME_INITIAL_P): New macro.
20326 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20327 (Qterm_environment_variable, Qdisplay_environment_variable)
20328 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20329 New declarations.
20330
20331 * termchar.h (tty_output, tty_display_info): New structures.
20332 (tty_list): Declare.
20333 (FRAME_TTY, CURTTY): New macros.
20334 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20335 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20336 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20337 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20338
20339 * callproc.c: Include frame.h and termhooks.h, for terminal
20340 parameters.
20341 (add_env): New function.
20342 (child_setup): Use it.
20343 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20344 (getenv_internal): Fix get_terminal_param call.
20345 (Fgetenv_internal, egetenv): Update doc.
20346 (syms_of_callproc): Initialize Vprocess_environment to nil.
20347 Register and initialize them. Remove obsolete defvars. Update doc
20348 strings.
20349 (child_setup): Handle Vlocal_environment_variables.
20350 (getenv_internal): Add terminal parameter.
20351 Handle Vlocal_environment_variables.
20352 (Fgetenv_internal): Add terminal parameter.
20353 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20354 environment in a frame (not terminal) parameter. Update doc strings.
20355 (set_initial_environment): Rename from set_global_environment.
20356 Store Emacs environment in initial frame parameter.
20357
20358 * xdisp.c (redisplay_internal): Update references to
20359 `previous_terminal_frame'.
20360 (display_mode_line, Fformat_mode_line): Replace calls to
20361 `push_frame_kboard' with `push_kboard'.
20362 (get_glyph_string_clip_rects): Add extra parentheses and
20363 braces to prevent compiler warnings.
20364 (calc_pixel_width_or_height): Add xassert to check that the
20365 frame is alive. Don't call `lookup_image' on a termcap frame.
20366 (message2_nolog, message3_nolog, redisplay_internal)
20367 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20368 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20369 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20370 (Fx_display_pixel_width, Fx_display_pixel_height)
20371 (Fx_display_planes, Fx_display_color_cells)
20372 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20373 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20374 (Fx_display_backing_store, Fx_display_visual_class)
20375 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20376 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20377
20378 * xfns.c (x_set_foreground_color x_set_background_color)
20379 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20380 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20381 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20382 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20383 terminal that is being deleted.
20384 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20385 frame parameter, and make sure it overrides any user-supplied setting.
20386 (Fx_close_connection, Fx_synchronize): Unify argument names with
20387 the rest of the DEFUNs.
20388
20389 * dispnew.c (Fsend_string_to_terminal): Update call to
20390 `get_tty_terminal'.
20391 (Fredraw_frame, Fsend_string_to_terminal)
20392 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20393 FRAME_TERMCAP_P and FRAME_TTY.
20394 (window_change_signal): Don't believe width/height values that are
20395 impossibly small.
20396 (Vinitial_window_system): Rename from Vwindow_system.
20397 (termscript, Wcm, rif): Delete.
20398
20399 * termhooks.h (struct terminal): New struct containing the
20400 previously global text display hooks and new members NAME,
20401 DELETED and PARAM_ALIST.
20402 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20403 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20404 (FRAME_RIF): New macros.
20405 (get_terminal_param, get_device): New declarations.
20406 (termscript): Delete declaration.
20407
20408 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20409 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20410 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20411 FRAME_FOREGROUND_PIXEL.
20412 (x_fully_uncatch_errors): Disable definition.
20413 (x_scroll_bar_expose): Fix reference to foreground pixel.
20414 (XTread_socket): Disable loop on all X displays.
20415 (x_delete_terminal): Don't set terminal->deleted and let
20416 delete_terminal delete the frames on the terminal.
20417 (x_delete_display): Doc update to reflect changes in
20418 delete_terminal.
20419 (x_display_info) <terminal>: Move member earlier in the struct.
20420 (deleting_tty): Remove old variable.
20421 (Fsuspend_tty): Call clear_tty_hooks.
20422 (Fresume_tty, init_tty): Call set_tty_hooks.
20423 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20424 errors on X frames.
20425 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20426 (handle_one_xevent): Initialize `f' to NULL.
20427 (x_delete_terminal, x_create_terminal): New functions.
20428 (XTset_terminal_modes, XTreset_terminal_modes)
20429 (XTread_socket, x_connection_closed, x_term_init)
20430 (x_term_init, x_delete_display): Add terminal parameter.
20431 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20432 X connections.
20433
20434 * frame.c: Include termchar.h.
20435 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20436 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20437 (Qdisplay_environment_variable): New vars.
20438 (Fframep): Deal with output_initial.
20439 (Fframe-live-p): Doc fix.
20440 (Fwindow-system): New function.
20441 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20442 (make_terminal_frame): Don't create frames on a terminal that is
20443 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20444 (store_frame_param): Check for found_for_frame before calling XFRAME.
20445 (Fmake_terminal_frame): Handle NULL tty names correctly.
20446 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20447 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20448 frames to refer to a deleted frame in their 'environment parameter.
20449 (Fframe_with_environment): New function.
20450 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20451 (get_future_frame_param): New function.
20452 (Fmake_terminal_frame): Use it.
20453 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20454
20455 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20456 * sysdep.c (reset_sys_modes): Update for renames.
20457
20458 * keyboard.c (tty_read_avail_input): New function.
20459 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20460 (syms_of_keyboard): Defsubr them.
20461 (Fset_input_meta_mode, Fset_quit_char): New functions.
20462 (Fset_input_mode): Split to above functions.
20463 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20464 parameter. Use it in call to `read_char'.
20465 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20466 Set wrong_kboard_jmpbuf correctly in recursive calls.
20467 Use current_kboard to access Vkeyboard_translate_table.
20468 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20469 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20470 Update longjmp invocations. Remember the original current_kboard,
20471 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20472 changes it. Comment out unnecessary calls to
20473 `record_single_kboard_state' and `any_kboard_state'.
20474 Update recursive calls.
20475 (wrong_kboard_jmpbuf): Remove global variable.
20476 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20477 Handle deleted interrupted_kboards correctly; that is a legal
20478 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20479 and read_char calls. Abort if interrupted_kboard died in read_char.
20480 (any_kboard_state, single_kboard_state)
20481 (push_frame_kboard): Remove function.
20482 (pop_kboard): Switch out of single_kboard mode if the kboard has
20483 been deleted. Remove unused variable. Help debugging by not
20484 changing current_kboard unnecessarily. Set current_kboard to the
20485 kboard of the selected frame when the stored kboard object has
20486 been deleted before pop_kboard.
20487 (temporarily_switch_to_single_kboard): Change first parameter to a
20488 frame pointer. Throw an error when caller wants to change kboards
20489 while in single_kboard mode. Don't push_kboard if we weren't in
20490 single kboard state. Don't pop_kboard if we popped into any
20491 kboard state.
20492 (restore_kboard_configuration): Abort if pop_kboard changed the
20493 kboard in single_kboard mode. Call pop_kboard only after setting
20494 up single_kboard mode.
20495 (Frecursive_edit): Switch to single_kboard mode only in nested
20496 command loops.
20497 (cmd_error, command_loop, command_loop_1, timer_check):
20498 Comment out unnecessary call to `any_kboard_state' and
20499 `record_single_kboard_state'.
20500 (delete_kboard): Exit single_kboard mode if we have just deleted
20501 that kboard. Use FRAME_KBOARD.
20502 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20503 `fatal_error_signal'.
20504 (record_single_kboard_state): Don't push_kboard if we weren't in
20505 single kboard state. Don't pop_kboard if we popped into any
20506 kboard state.
20507 (push_frame_kboard): Rename to push_kboard.
20508 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20509 (read_avail_input): Read input from all terminals.
20510 (mark_kboards): Also mark Vkeyboard_translate_table.
20511 (kbd_buffer_store_event_hold): Simplify condition.
20512 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20513 (Vkeyboard_translate_table): Move to struct kboard.
20514 (init_kboard): Initialize Vkeyboard_translate_table.
20515 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20516 Vkeyboard_translate_table. Update doc strings. Update docs of
20517 local-function-key-map and function-key-map.
20518
20519 * terminal.c: New file.
20520
20521 * term.c: Include errno.h.
20522 (Vring_bell_function, device_list, initial_device)
20523 (next_device_id, ring_bell, update_begin, update_end)
20524 (set_terminal_window, cursor_to, raw_cursor_to)
20525 (clear_to_end, clear_frame, clear_end_of_line)
20526 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20527 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20528 (syms_of_term): Move their initialization to terminal.c.
20529 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20530 (Ftty_display_color_cells)
20531 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20532 (clear_tty_hooks, set_tty_hooks)
20533 (init_tty, maybe_fatal): New functions.
20534 (Ftty_type): Return nil if terminal is not on a tty instead of
20535 throwing an error. Doc update.
20536 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20537 Doc update. Initialize new subrs and variables.
20538 (delete_tty): Use terminal->deleted.
20539 (tty_set_terminal_modes): Rename from set_terminal_modes.
20540 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20541 (set_scroll_region): Rename to `tty_set_scroll_region'.
20542 (turn_on_insert): Rename to `tty_turn_on_insert'.
20543 (turn_off_insert): Rename to `tty_turn_off_insert'.
20544 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20545 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20546 (toggle_highligh): Rename to `tty_toggle_highlight'.
20547 (background_highlight): Rename to `tty_background_highlight'.
20548 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20549 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20550 (tty_set_scroll_region, tty_background_highlight)
20551 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20552 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20553 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20554 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20555 Add static modifier.
20556 (tty_reset_terminal_modes, tty_set_terminal_window)
20557 (tty_set_scroll_region, tty_background_highlight)
20558 (tty_highlight_if_desired, tty_cursor_to)
20559 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20560 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20561 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20562 renames.
20563
205642007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20565
20566 * keyboard.c: Qrtl is new.
20567 (parse_tool_bar_item): Handle :rtl keyword.
20568 (syms_of_keyboard): Intern :rtl keyword.
20569
20570 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20571
20572 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20573 so no Lisp code is executed.
20574 (file_for_image, find_rtl_image): New functions.
20575 (xg_get_image_for_pixmap): Use file_for_image.
20576 (update_frame_tool_bar): If direction is RTL, use RTL image if
20577 defined. Use Gtk stock images if defined.
20578
205792007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20580
20581 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20582 for nonexistent or zero-width glyph in composition glyph.
20583
205842007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20585
20586 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20587
20588 * xdisp.c (Finvisible_p): New function.
20589 (syms_of_xdisp): defsubr it.
20590
205912007-08-24 Juanma Barranquero <lekktu@gmail.com>
20592
20593 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20594 Doc fixes.
20595
205962007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20597
20598 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20599
206002007-08-24 Martin Rudalics <rudalics@gmx.at>
20601
20602 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20603 whether decoding has modified buffer contents.
20604
206052007-08-24 Jason Rumney <jasonr@gnu.org>
20606
20607 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20608 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20609 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20610 (init_svg_functions) [HAVE_NTGUI]: New function.
20611 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20612 (svg_load_image): Use them.
20613 (svg_load_image) [HAVE_NTGUI]: Implement background.
20614
206152007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20616
20617 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20618 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20619 (LIBX): Remove @RSVG_LIBS@.
20620 (LIBES): Add $(RSVG_LIBS).
20621
20622 * image.c (svg_load_image): Blend with specified background if exists.
20623 Use IMAGE_BACKGROUND. Add Mac OS Support.
20624
20625 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20626 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20627 Remove macros.
20628 [MAC_OSX] (socket_callback): Do nothing.
20629 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20630 ReceiveNextEvent.
20631 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20632 socket_callback.
20633 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20634
206352007-08-22 Glenn Morris <rgm@gnu.org>
20636
20637 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20638
206392007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20640
20641 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20642
20643 * image.c: Add support for SVG images. Some additional comments
20644 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20645 (svg_image_p): New function to test for SVG image.
20646 (svg_load): New function to load SVG image.
20647 (svg_load_image): New function, helper for svg_load.
20648 (Qsvg): New Lisp_object.
20649 (svg_keyword_index): New enum.
20650 (svg_format): New static `image_keyword' struct.
20651 (svg_type): New static `image_type' struct.
20652 (librsvg/rsvg.h): Include it.
20653
206542007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20655
20656 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20657
206582007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20659
20660 * lread.c (Qold_style_backquotes): New var.
20661 (syms_of_lread): Init and staticpro it.
20662 (load_warn_old_style_backquotes): New fun.
20663 (Fload): Use them to warn about old style backquotes.
20664 (end_of_file_error, Fload): Remove unused vars.
20665
20666 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20667
20668 * lread.c (Vold_style_backquotes): New var.
20669 (syms_of_lread): Init and export it to Elisp.
20670 (read1): Set it when we find an old-style (back)quote.
20671
206722007-08-22 Jason Rumney <jasonr@gnu.org>
20673
20674 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20675
206762007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20677
20678 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20679
206802007-08-19 Richard Stallman <rms@gnu.org>
20681
20682 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20683
206842007-08-19 Andreas Schwab <schwab@suse.de>
20685
20686 * alloc.c (pure): Round PURESIZE up.
20687
206882007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20689
20690 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20691 active frame.
20692
206932007-08-16 Richard Stallman <rms@gnu.org>
20694
20695 * eval.c (Fcommandp): Add parens to clarify.
20696
20697 * minibuf.c (Fall_completions): Use enum for type of table.
20698
20699 * emacs.c (USAGE2): Improve text.
20700
207012007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20702
20703 * term.c (tty_default_color_capabilities): Declare static
20704 variables in file scope, to avoid HPUX compiler problem.
20705
207062007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20707
20708 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20709 to gtk_toolbar_insert.
20710
207112007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20712
20713 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20714
20715 * insdel.c (reset_var_on_error): New fun.
20716 (signal_before_change, signal_after_change):
20717 Use it to reset (after|before)-change-functions to nil in case of error.
20718 Bind inhibit-modification-hooks to t.
20719 Don't bind (after|before)-change-functions to nil while they run.
20720
207212007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20722
20723 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20724 filling pixmap with stippled background.
20725
207262007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20727
20728 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20729 Don't use invisible frame as parent window for repositioning.
20730
207312007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20732
20733 * print.c (new_backquote_output): Rename from old_backquote_output.
20734 (print): Inverse its logic (according to its name) so as to match the
20735 behavior of new_backquote_flag in lread.c.
20736
207372007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20738
20739 * gmalloc.c (posix_memalign): New function.
20740
20741 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20742 ActivateControl/DeactivateControl here.
20743 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20744 frame-notice-user-settings is non-nil.
20745 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20746 for kEventParamFMFontStyle.
20747 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20748 mac_pass_command_to_system and mac_pass_control_to_system here.
20749 (XTread_socket): Call ActivateControl/DeactivateControl here.
20750 (XTread_socket) [TARGET_API_MAC_CARBON]:
20751 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20752 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20753 for window repositioning.
20754
207552007-08-08 Glenn Morris <rgm@gnu.org>
20756
20757 * Replace `iff' in doc-strings and comments.
20758
207592007-08-07 Chong Yidong <cyd@stupidchicken.com>
20760
20761 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20762
207632007-08-07 Martin Rudalics <rudalics@gmx.at>
20764
20765 * fileio.c (Finsert_file_contents): Run format-decode and
20766 after_insert_file_functions on entire buffer when REPLACE is
20767 non-nil and inhibit modification_hooks and point_motion_hooks.
20768 For consistency, run after_insert_file_functions iff something
20769 got inserted. Move signal_after_change and update_compositions
20770 after code running after_insert_file_functions. Make sure that
20771 undo_list doesn't record intermediate steps of the decoding process.
20772
207732007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20774
20775 * emacs.c (main)
20776 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20777 Call malloc_enable_thread on interactive startup.
20778
20779 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20780 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20781 [USE_PTHREAD]: Conditionalize with it.
20782 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20783 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20784 New functions.
20785
207862007-08-06 Chong Yidong <cyd@stupidchicken.com>
20787
20788 * xdisp.c (redisplay_window): When restoring original buffer
20789 position, make sure it is still valid.
20790
20791 * image.c (png_load): Ignore png-supplied background color.
20792
207932007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20794
20795 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20796 Use kCFAbsoluteTimeIntervalSince1970.
20797
20798 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20799 New variable.
20800 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20801 event loop should be quit.
20802 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20803 Quit dialog event loop if quit_dialog_event_loop is set.
20804
20805 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20806 (Selection): New typedef. Use instead of ScrapRef.
20807 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20808 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20809 (mac_clear_selection): Rename from clear_scrap.
20810 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20811 scrap_has_target_type. All uses changed.
20812 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20813 (mac_selection_has_target_p): New functions.
20814 (mac_put_selection_value): Rename from put_scrap_string.
20815 (mac_get_selection_value): Rename from get_scrap_string.
20816 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20817 (put_scrap_private_timestamp, scrap_has_target_type)
20818 (get_scrap_private_timestamp): Remove functions.
20819 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20820 (x_own_selection, x_get_local_selection):
20821 Use mac_valid_selection_value_p.
20822 (x_own_selection): Don't use put_scrap_private_timestamp.
20823 Record OWNERSHIP-INFO into Vselection_alist instead.
20824 (x_get_local_selection): Don't check type if request is local.
20825 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20826 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20827
208282007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20829
20830 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20831 add comment explaining why.
20832
208332007-08-03 Richard Stallman <rms@gnu.org>
20834
20835 * fileio.c (Fvisited_file_modtime): Use make_time.
20836
208372007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20838
20839 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20840 build.
20841
208422007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20843
20844 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20845
208462007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20847
20848 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20849
208502007-07-30 Richard Stallman <rms@gnu.org>
20851
20852 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20853
208542007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20855
20856 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20857
208582007-07-28 Nick Roberts <nickrob@snap.net.nz>
20859
20860 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20861 remote default-directory.
20862
20863 * buffer.c (mode-line-format): Update doc string.
20864
208652007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20866
20867 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20868 scroll bar gap.
20869 (x_scroll_bar_create): Set bar->fringe_extended_p.
20870 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20871 on frame edge. Check fringe background extension. Don't clear
20872 extended fringe background area.
20873
20874 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20875 (w32_fill_area): Enclose multiple statements with do ... while (0).
20876
20877 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20878 Extend fringe background to scroll bar gap.
20879 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20880 Set bar->fringe_extended_p.
20881 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20882 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20883 background extension. Don't clear extended fringe background area.
20884
20885 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20886 New member fringe_extended_p.
20887
208882007-07-25 Glenn Morris <rgm@gnu.org>
20889
20890 * Relicense all FSF files to GPLv3 or later.
20891
20892 * COPYING: Switch to GPLv3.
20893
208942007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20895
20896 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20897
20898 * data.c (Finteractive_form): Check for the presence of an
20899 `interactive-form' symbol property more thoroughly.
20900
20901 * data.c (Finteractive_form): Use an `interactive-form' property if
20902 present, analogous to the function-documentation property.
20903
209042007-07-24 Jason Rumney <jasonr@gnu.org>
20905
20906 * w32fns.c (x_real_positions): Get real position from OS instead of
20907 calculating it.
20908
209092007-07-23 Jason Rumney <jasonr@gnu.org>
20910
20911 * filelock.c (current_lock_owner): Allow for @ sign in username.
20912
209132007-07-22 Nick Roberts <nickrob@snap.net.nz>
20914
20915 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20916 remote default-directory.
20917
20918 * buffer.c (mode-line-format): Describe above case in doc string.
20919
209202007-07-20 Eli Zaretskii <eliz@gnu.org>
20921
20922 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20923 Define if not defined.
20924
209252007-07-18 Jason Rumney <jasonr@gnu.org>
20926
20927 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20928
209292007-07-18 Richard Stallman <rms@gnu.org>
20930
20931 * data.c (Fsetq_default): Doc fix.
20932
20933 * eval.c (Fsetq): Doc fix.
20934
209352007-07-18 Juanma Barranquero <lekktu@gmail.com>
20936
20937 * coding.c (Ffind_operation_coding_system):
20938 * eval.c (For, Fand): Doc fixes.
20939 Reported by Johan Bockgård.
20940
209412007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20942
20943 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20944
20945 * xterm.h: Declare x_ewmh_activate_frame.
20946
20947 * xterm.c (x_ewmh_activate_frame): New function.
20948 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20949
209502007-07-17 Martin Rudalics <rudalics@gmx.at>
20951
20952 * window.c (Fdisplay_buffer): If largest or LRU window is the
20953 only window, split it even if it is not eligible for splitting.
20954 This restores the original behavior broken by the 2007-07-15
20955 change.
20956
209572007-07-17 Glenn Morris <rgm@gnu.org>
20958
20959 * abbrev.c (abbrev_check_chars): New function.
20960 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20961 Call abbrev_check_chars to check abbrev characters are word
20962 constituents. Doc fix.
20963
209642007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20965
20966 * process.c (Fstart_process, Fmake_network_process)
20967 (read_process_output): Fix up last changes.
20968
209692007-07-16 Eli Zaretskii <eliz@gnu.org>
20970
20971 * makefile.w32-in (clean): Don't delete *~.
20972
209732007-07-16 Andreas Schwab <schwab@suse.de>
20974
20975 * window.c (Fdisplay_buffer): Use NILP.
20976 (Fset_window_scroll_bars): Likewise.
20977
209782007-07-15 Martin Rudalics <rudalics@gmx.at>
20979
20980 * window.c (window_min_size_2): New function.
20981 (window_min_size_1, size_window, Fdisplay_buffer)
20982 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20983 windows without mode- or header-lines when window-min-height is
20984 too small.
20985 (size_window): Reset nodelete_p after testing it, following an
20986 earlier note by Kim F. Storm.
20987 (display_buffer): Do not set split_height_threshold to twice the
20988 value of window_min_height to avoid changing the value of a
20989 customizable variable. Rather explicitly check whether the
20990 height of the window that shall be splitted is at least as large
20991 as split_height_threshold.
20992 (Fwindow_full_width_p): New defun.
20993 (syms_of_window): Defsubr it.
20994
20995 * window.h: Add EXFUN for Fwindow_full_width_p.
20996
209972007-07-14 Jason Rumney <jasonr@gnu.org>
20998
20999 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21000
210012007-07-14 Richard Stallman <rms@gnu.org>
21002
21003 * eval.c (maybe_call_debugger): New function.
21004 (find_handler_clause): Use maybe_call_debugger.
21005 Call it when the handler says `debug'.
21006 Eliminate DEBUGGER_VALUE_PTR.
21007 (Fsignal): Eliminate debugger_value.
21008 (Qdebug): New variable.
21009 (syms_of_eval): Initialize it.
21010
210112007-07-14 Juanma Barranquero <lekktu@gmail.com>
21012
21013 * eval.c (Fprogn):
21014 * keyboard.c (Ftrack_mouse):
21015 * print.c (Fwith_output_to_temp_buffer):
21016 * window.c (Fsave_window_excursion): Doc fix.
21017
210182007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21019
21020 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21021
210222007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21025 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21026 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21027 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21028 Remove unused encoding_carryover.
21029 * process.c: Adjust all functions accordingly.
21030
210312007-07-12 Richard Stallman <rms@gnu.org>
21032
21033 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21034
210352007-07-11 Jason Rumney <jasonr@gnu.org>
21036
21037 * makefile.w32-in (LIBS): Include OLE32.
21038
21039 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21040 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21041
210422007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21043
21044 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21045 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21046 from a Lisp_Object into a bare pointer.
21047 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21048 Adjust the code correspondingly.
21049
21050 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21051
21052 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21053 (term_show_mouse_face): Remove unused var `j'.
21054 (handle_one_term_event): Remove unused vars `i' and `j'.
21055 Don't cast return value of ttyname since it's not necessary.
21056
210572007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21058
21059 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21060 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21061
21062 * fns.c (map_char_table): Use an array of int for `indices' rather than
21063 an array of Lisp_Objects (which are only ever integers anyway).
21064 (Fmap_char_table): Update caller.
21065 * lisp.h: Update prototype.
21066 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21067 * fontset.c (Ffontset_info):
21068 * casetab.c (set_case_table): Update callers.
21069
21070 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21071
21072 * keymap.c (struct accessible_keymaps_data)
21073 (struct where_is_internal_data): New structures.
21074 (accessible_keymaps_1, where_is_internal_1): Use them to change
21075 interface to adhere to the one used by map_keymap.
21076 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21077 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21078
21079 * keymap.h (map_keymap_function_t): More informative prototype.
21080
210812007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21082
21083 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21084 (looking_at_1): Don't change search_regs and last_thing_searched
21085 if `inhibit-changing-match-data' is non-nil.
21086 (string_match_1, search_buffer, set_search_regs): Likewise.
21087 (syms_of_search): Add Lisp level definition for
21088 `inhibit-changing-match-data' and set it to nil.
21089 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21090 start and end of the match, instead of using values in search_regs.
21091
210922007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21093
21094 * minibuf.c (Fcompleting_read): New value `confirm-only'
21095 for `require-match'.
21096
210972007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21098
21099 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21100 part of the 2007-06-27 change to syms_of_fileio.
21101
211022007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21103
21104 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21105 Check WINDOWP before using XWINDOW. Consolidate return statements.
21106
211072007-06-27 Richard Stallman <rms@gnu.org>
21108
21109 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21110
211112007-06-27 Juanma Barranquero <lekktu@gmail.com>
21112
21113 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21114
211152007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21116
21117 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21118 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21119 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21120 (_free_internal, memalign): Use them.
21121 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21122 Initialize to PTHREAD_MUTEX_INITIALIZER.
21123 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21124 (morecore_nolock): Rename from morecore. All uses changed.
21125 Use only nolock versions of internal allocation functions.
21126 (_malloc_internal_nolock, _realloc_internal_nolock)
21127 (_free_internal_nolock): New functions created from
21128 _malloc_internal, _realloc_internal, and _free_internal.
21129 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21130 Copy hook value to automatic variable before its use.
21131 (memalign): Copy hook value to automatic variable before its use.
21132
211332007-06-26 Kenichi Handa <handa@m17n.org>
21134
21135 * coding.c (Ffind_operation_coding_system): Docstring improved.
21136 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21137
211382007-06-25 David Kastrup <dak@gnu.org>
21139
21140 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21141 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21142 cater for additional parameter.
21143
21144 * keymap.h: Adjust number of parameters to `current-active-maps'.
21145
21146 * doc.c (Fsubstitute_command_keys): Adjust call of
21147 `current-active-maps'.
21148
211492007-06-25 David Kastrup <dak@gnu.org>
21150
21151 * callint.c (Fcall_interactively): Make the parsing of interactive
21152 specs somewhat more readable.
21153
211542007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21155
21156 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21157 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21158 if extended background has already been filled.
21159
211602007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21161
21162 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21163 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21164
21165 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21166 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21167 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21168 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21169 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21170 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21171 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21172 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21173 Run timers during dialog popup.
21174 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21175
211762007-06-21 Jason Rumney <jasonr@gnu.org>
21177
21178 * image.c (convert_mono_to_color_image): Swap fore and background.
21179
211802007-06-20 Jason Rumney <jasonr@gnu.org>
21181
21182 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21183 (w32_free_bdf_font): Unmap memory not handle.
21184
211852007-06-20 Sam Steingold <sds@gnu.org>
21186
21187 * gmalloc.c (__morecore): Fix the declaration to comply with the
21188 definition.
21189
211902007-06-20 Juanma Barranquero <lekktu@gmail.com>
21191
21192 * w32term.c (w32_delete_display): Remove leftover declaration.
21193 (w32_define_cursor, w32_initialize): Make static.
21194
21195 * w32.c (_wsa_errlist): Fix typo in error message.
21196 (init_environment): Ignore any environment variable from the
21197 registry having a null value.
21198
211992007-06-20 Glenn Morris <rgm@gnu.org>
21200
21201 * Makefile.in (LIBGIF): Default to -lgif.
21202
212032007-06-17 Jason Rumney <jasonr@gnu.org>
21204
21205 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21206 unicode strings.
21207
212082007-06-16 Juanma Barranquero <lekktu@gmail.com>
21209
21210 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21211 Fix typo in docstring.
21212
212132007-06-16 Eli Zaretskii <eliz@gnu.org>
21214
21215 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21216 and their keybindings.
21217
212182007-06-15 Chong Yidong <cyd@stupidchicken.com>
21219
21220 * composite.c (update_compositions): Fix last fix.
21221
212222007-06-14 Jason Rumney <jasonr@gnu.org>
21223
21224 * w32.c (get_process_times_fn): New function pointer.
21225 (globals_of_w32): Intialize it if present in kernel32.dll.
21226 (w32_get_internal_run_time): New function.
21227
21228 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21229
212302007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21231
21232 * composite.c (update_compositions): Check the validness of
21233 compositions.
21234
212352007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21236
21237 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21238 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21239
21240 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21241 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21242
21243 * macgui.h (USE_MAC_TOOLBAR): New define.
21244
21245 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21246 Return immediately unless popup is activated.
21247
21248 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21249 background to scroll bar gap.
21250 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21251 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21252 scroll bars on frame edge. Check fringe background extension.
21253 Don't clear extended fringe background area.
21254 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21255 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21256 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21257 [USE_MAC_TOOLBAR]: New macros.
21258 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21259 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21260 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21261 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21262 [USE_MAC_TOOLBAR]: New functions.
21263 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21264 manually if previous repositioning has failed.
21265 (mac_handle_keyboard_event): Use precomputed event kind.
21266 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21267 as tool bar item click. Handle mouse movement over tool bar items.
21268
21269 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21270 toolbar_win_gravity.
21271 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21272 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21273 Add externs.
21274
21275 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21276 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21277
212782007-06-14 Chong Yidong <cyd@stupidchicken.com>
21279
21280 * image.c (search_image_cache): Remove unused variable.
21281
212822007-06-13 Chong Yidong <cyd@stupidchicken.com>
21283
21284 * xfns.c, xmenu.c: Link to xaw3d if available.
21285
212862007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21287
21288 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21289 frame_foreground and frame_background.
21290
21291 * image.c (lookup_image): Save frame foreground and background colors.
21292 (search_image_cache): Check if saved and current frame colors match.
21293
212942007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21295
21296 * regex.c (regex_compile): Remove the `regnum' counter.
21297 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21298
212992007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21300
21301 * term.c: Include intervals.h to declare Fget_text_property.
21302
213032007-06-10 Jason Rumney <jasonr@gnu.org>
21304
21305 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21306
213072007-06-08 Juanma Barranquero <lekktu@gmail.com>
21308
21309 * callint.c (Fcall_interactively):
21310 * editfns.c (Fdelete_and_extract_region):
21311 * fileio.c (Fread_file_name):
21312 * fns.c (Fmapconcat):
21313 * keyboard.c (cmd_error_internal):
21314 * keymap.c (Fkey_description):
21315 * lread.c (openp):
21316 * minibuf.c (read_minibuf):
21317 * search.c (wordify):
21318 * sunfns.c (sel_read):
21319 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21320 * xfns.c (x_default_scroll_bar_color_parameter):
21321 * xmenu.c (menu_help_callback):
21322 * xselect.c (Fx_get_atom_name):
21323 * xterm.c (x_term_init): Use empty_unibyte_string.
21324
213252007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21326
21327 * alloc.c (init_strings): Initialize canonical empty strings.
21328 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21329 canonical empty string when the requested size is 0.
21330
21331 * emacs.c (empty_unibyte_string): Rename from empty_string.
21332 (empty_multibyte_string): New canonical empty string.
21333 (syms_of_emacs): Don't initialize empty_string.
21334
21335 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21336 string, if appropriate.
21337 (empty_unibyte_string, empty_multibyte_string): New externs.
21338 (empty_string): Remove extern.
21339
21340 * lread.c (syms_of_lread): Use empty_unibyte_string.
21341
213422007-06-07 Jason Rumney <jasonr@gnu.org>
21343
21344 * s/ms-w32.h: Don't define HAVE_TZNAME.
21345
21346 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21347
213482007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21349
21350 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21351
21352 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21353 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21354
21355 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21356 Don't call next handler.
21357 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21358 Remove argument. Install handler to application.
21359 (set_frame_menubar): Don't change deep_p.
21360 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21361 FRAME_OUTER_TO_INNER_DIFF_Y.
21362 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21363 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21364 [HAVE_DIALOGS]: New macros.
21365 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21366 Use them.
21367 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21368
21369 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21370 init_service_handler. All callers changed. Return OSStatus value.
21371
21372 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21373 All callers changed so as not to call SetPortWindowPort.
21374 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21375 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21376 mac_draw_string_common.
21377 (mac_draw_image_string_qd): Likewise.
21378 (mac_draw_string_common): Use them. Add INLINE.
21379 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21380 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21381 GetGlobalMouse.
21382 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21383 and FRAME_OUTER_TO_INNER_DIFF_Y.
21384 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21385 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21386 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21387 repositioning window to mac_handle_window_event.
21388 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21389 saving window location to mac_handle_window_event
21390 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21391 (install_menu_target_item_handler): Remove argument in extern.
21392 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21393 Also accept command events.
21394 (do_keystroke): New function created from XTread_socket.
21395 (init_command_handler): Remove functions.
21396 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21397 and save window location by kEventWindowShowing and kEventWindowHiding
21398 handlers here. Don't call next handler for window state change and
21399 focus events.
21400 (mac_handle_application_event, mac_handle_keyboard_event)
21401 [TARGET_API_MAC_CARBON]: New functions.
21402 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21403 kEventWindowShowing and kEventWindowHiding events. Move installation
21404 of mouse, font, text input and menu target item handlers to
21405 install_application_handler.
21406 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21407 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21408 New function.
21409 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21410 Register it.
21411 (XTread_socket) [TARGET_API_MAC_CARBON]:
21412 Consolidate SendEventToEventTarget calls.
21413 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21414 Move application activation handler to mac_handle_application_event.
21415 Move keyboard handler to mac_handle_keyboard_event.
21416 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21417 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21418 init_command_handler. Call install_application_handler.
21419
21420 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21421 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21422
214232007-06-07 Glenn Morris <rgm@gnu.org>
21424
21425 * emacs.c (main): Use `emacs-copyright' in --version output.
21426
214272007-06-06 Chong Yidong <cyd@stupidchicken.com>
21428
21429 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21430
214312007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21432
21433 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21434
21435 * macgui.h: Replace WindowPtr with WindowRef.
21436
21437 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21438 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21439 Replace ControlHandle with ControlRef.
21440 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21441
21442 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21443 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21444 Replace ControlHandle with ControlRef.
21445 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21446 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21447
21448 * macterm.h (struct scroll_bar): Rename member control_handle_low
21449 and control_handle_high to control_ref_low and control_ref_high.
21450 All uses changed.
21451 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21452 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21453 respectively. All uses changed.
21454 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21455 (install_window_handler, remove_window_handler): Replace WindowPtr
21456 with WindowRef in externs.
21457
214582007-06-05 Juanma Barranquero <lekktu@gmail.com>
21459
21460 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21461
214622007-06-03 Nick Roberts <nickrob@snap.net.nz>
21463
21464 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21465
21466 * frame.c (Fmouse_position, Fmouse_pixel_position):
21467 Condition on HAVE_GPM too.
21468
21469 * term.c (term_mouse_highlight): Remove unused variables.
21470 (Fterm_open_connection): Set gpm_zerobased to 1.
21471 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21472 Use zero based co-ordinates.
21473 (handle_one_term_event): Report a drag as mouse movement too.
21474
21475 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21476
214772007-06-03 Chong Yidong <cyd@stupidchicken.com>
21478
21479 * image.c (search_image_cache): New function. Require background
21480 color match if background color is unspecified in the image spec.
21481 (uncache_image, lookup_image): Use it.
21482
214832007-06-01 Juanma Barranquero <lekktu@gmail.com>
21484
21485 * window.c (Fshrink_window): Reflow docstring.
21486
214872007-06-02 Chong Yidong <cyd@stupidchicken.com>
21488
21489 * Version 22.1 released.
21490
214912007-06-01 Richard Stallman <rms@gnu.org>
21492
21493 * xfns.c (x_encode_text): Add GCPRO.
21494
214952007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21496
21497 * xfns.c (x_set_name_internal): Save encoded name before
21498 x_encode_text in case string data is relocated.
21499
215002007-05-31 Richard Stallman <rms@gnu.org>
21501
21502 * buffer.c (syms_of_buffer): Doc fix.
21503
215042007-05-30 Nick Roberts <nickrob@snap.net.nz>
21505
21506 * sysdep.c (init_sys_modes): Add rather than replace with
21507 O_NONBLOCK.
21508
21509 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21510 term_mouse_moveto.
21511
21512 * termhooks.h (term_mouse_moveto): New extern.
21513
21514 * term.c (mouse_face_window): Rename...
21515 (Qmouse_face_window): ...to this.
21516 (term_show_mouse_face, term_clear_mouse_face)
21517 (term_mouse_highlight): Use Qmouse_face_window.
21518 (term_mouse_moveto): New function.
21519 (term_mouse_position): Make it work.
21520 (syms_of_term): Uncomment assignment to mouse_position_hook.
21521 Staticpro Qmouse_face_window.
21522
215232007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21524
21525 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21526 around current_column call.
21527
215282007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21529
21530 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21531 * xdisp.c (next_element_from_buffer):
21532 * window.c (delete_window):
21533 * term.c (term_mouse_highlight):
21534 * msdos.c (getdefdir):
21535 * macterm.c (mac_create_bitmap_from_bitmap_data)
21536 (init_font_name_table):
21537 * fns.c (Fsxhash):
21538 * data.c (Fmake_local_variable):
21539 * ccl.c (ccl_driver): Likewise.
21540
215412007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21542
21543 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21544 Call mac_wakeup_from_rne on window size change.
21545
215462007-05-25 Chong Yidong <cyd@stupidchicken.com>
21547
21548 * image.c (uncache_image): Fix typo.
21549
215502007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21551
21552 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21553
215542007-05-22 Richard Stallman <rms@gnu.org>
21555
21556 * xterm.c (x_connection_closed): Remove NO_RETURN.
21557
215582007-05-22 Martin Rudalics <rudalics@gmx.at>
21559
21560 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21561
215622007-05-21 Chong Yidong <cyd@stupidchicken.com>
21563
21564 * image.c (uncache_image): New function.
21565 (Fimage_refresh): New function.
21566
215672007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21568
21569 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21570
215712007-05-20 Nick Roberts <nickrob@snap.net.nz>
21572
21573 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21574 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21575
215762007-05-20 Nick Roberts <nickrob@snap.net.nz>
21577
21578 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21579 conditional on [HAVE_GPM_H].
21580
215812007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21582
21583 * syntax.c (skip_chars): Update syntax-table only after we checked that
21584 the new location is valid.
21585
215862007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21587
21588 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21589 mac_get_window_bounds.
21590
215912007-05-20 Nick Roberts <nickrob@snap.net.nz>
21592
21593 * Makefile.in (LIBGPM): Allow it to be set from configure.
21594 If set then link Emacs with it.
21595
21596 * config.in: Regenerate.
21597
21598 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21599 New externs.
21600
21601 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21602 Include gpm.h.
21603 (handle_one_term_event, term_gpm): New externs.
21604
21605 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21606 and allow it to be interrupted by SIGIO.
21607
21608 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21609 (wait_reading_process_output): Wait on gpm_fd too.
21610 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21611 (add_gpm_wait_descriptor_called_flag): New variable.
21612 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21613
21614 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21615 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21616 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21617 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21618 (make_lispy_event): Add case GPM_CLICK_EVENT.
21619 (read_avail_input): Handle mouse input.
21620
21621 * term.c (write_glyphs_with_face): New function.
21622 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21623 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21624 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21625 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21626 (last_mouse_x, last_mouse_y): New variables.
21627 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21628 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21629 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21630 (Fterm_close_connection): New functions.
21631 (term_init): Initialise mouse_face_window.
21632
216332007-05-19 Chong Yidong <cyd@stupidchicken.com>
21634
21635 * xdisp.c (redisplay_window): If first window line is a
21636 continuation line, recompute the new window start instead of
21637 recentering.
21638
216392007-05-18 Glenn Morris <rgm@gnu.org>
21640
21641 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21642 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21643
216442007-05-17 Glenn Morris <rgm@gnu.org>
21645
21646 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21647
216482007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21649
21650 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21651 dead key repeat and up events.
21652
216532007-05-14 Chong Yidong <cyd@stupidchicken.com>
21654
21655 * image.c (pbm_load): Check image size for monochrome pbm.
21656
216572007-05-13 Chong Yidong <cyd@stupidchicken.com>
21658
21659 * xterm.c (XTread_socket): Revert last change.
21660
216612007-05-12 Chong Yidong <cyd@stupidchicken.com>
21662
21663 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21664
21665 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21666
216672007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21670 mixup (YAILOM).
21671
216722007-05-07 Andreas Schwab <schwab@suse.de>
21673
21674 * keymap.c (Flookup_key): Fix typo in last change.
21675
216762007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21677
21678 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21679 mapping for unibyte strings.
21680
216812007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21682
21683 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21684 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21685
216862007-04-29 Richard Stallman <rms@gnu.org>
21687
21688 * insdel.c (replace_range): For undo, record insertion first.
21689
216902007-04-29 Andreas Schwab <schwab@suse.de>
21691
21692 * lisp.h (VECSIZE): Use OFFSETOF.
21693
216942007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21695
21696 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21697 disabled lines.
21698
216992007-04-28 Richard Stallman <rms@gnu.org>
21700
21701 * lread.c (read_escape): In a string, \s is always space.
21702
217032007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21704
21705 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21706
21707 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21708 submenu for menu bar items.
21709
21710See ChangeLog.10 for earlier changes.
21711
21712;; Local Variables:
21713;; coding: utf-8
21714;; add-log-time-zone-rule: t
aac0c6e3
MR
21715;; End:
21716
e3eb1dae 21717 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21718
21719 This file is part of GNU Emacs.
21720
21721 GNU Emacs is free software: you can redistribute it and/or modify
21722 it under the terms of the GNU General Public License as published by
21723 the Free Software Foundation, either version 3 of the License, or
21724 (at your option) any later version.
21725
21726 GNU Emacs is distributed in the hope that it will be useful,
21727 but WITHOUT ANY WARRANTY; without even the implied warranty of
21728 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21729 GNU General Public License for more details.
21730
21731 You should have received a copy of the GNU General Public License
21732 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21733
21734;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40