quick-install-emacs: Use more portable shell syntax
[bpt/emacs.git] / src / ChangeLog
CommitLineData
618db430
SM
12010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
c0335e02
SM
3 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5 (QUIT): Use it to consolidate code and remove redundancy.
6 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7
254c06a8
SM
8 * regex.c (regex_compile): Setup gl_state as well.
9
618db430
SM
10 * syntax.c (skip_chars): Setup gl_state (bug#3823).
11 (in_classes): Use CONSP before XCAR/XCDR.
12
233f0c9f
CY
132010-03-03 Chong Yidong <cyd@stupidchicken.com>
14
15 * keymap.c (Fwhere_is_internal): Use Fequal to compare
16 definitions, so that keyboard macros are correctly handled
17 (Bug#5481).
18
75f80e63
EZ
192010-03-02 Eli Zaretskii <eliz@gnu.org>
20
21 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
22 text that could be relocated inside the call to emacs_mule_char.
23 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
24 (CODING_DECODE_CHAR): Add a comment describing its purpose.
25
dcfb9bc4
KH
262010-03-02 Kenichi Handa <handa@m17n.org>
27
fc9a17bc
KH
28 * character.c (parse_str_as_multibyte): Fix handling of the
29 multibyte form of raw-bytes.
30 (str_as_multibyte): Likewise.
31
dcfb9bc4
KH
32 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
33 form of raw-bytes.
34
412c01b6
CY
352010-02-28 Chong Yidong <cyd@stupidchicken.com>
36
37 * charset.c (load_charset_map_from_file)
38 (load_charset_map_from_vector): Zero out allocated
39 charset_map_entries before using them.
40
df7e1ea0
AS
412010-02-27 Andreas Schwab <schwab@linux-m68k.org>
42
43 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
44
fe69a722
CY
452010-02-27 Chong Yidong <cyd@stupidchicken.com>
46
4ed28cf4
CY
47 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
48 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 49
7379cfce
KH
502010-02-26 Kenichi Handa <handa@m17n.org>
51
f88cc4d6
KH
52 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
53
7379cfce
KH
54 * xdisp.c (reseat_to_string): Fix previous change.
55
cf2fdcfb
CY
562010-02-26 David Reitter <david.reitter@gmail.com>
57
58 * nsfont.m (nsfont_draw): ns_antialias_text should be a
59 Lisp_Object (Bug#4736).
60
cc6c7c75
KH
612010-02-25 Kenichi Handa <handa@m17n.org>
62
63 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
64
32e737d7
JD
652010-02-24 Jan Djärv <jan.h.d@swipnet.se>
66
67 * xterm.c (XTflash): Move declarations before statements.
68
69 * gtkutil.c (xg_get_gdk_display): Remove (unused).
70 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
71 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
72 (xg_create_tool_bar): Remove unused variables.
73 (x_wm_set_size_hint): Move declarations before statements.
74 (xg_create_frame_widgets): Remove variable grav,
75
676cae9f
CY
762010-02-21 Chong Yidong <cyd@stupidchicken.com>
77
78 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
79
886cc2b8
SM
802010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * term.c (fatal): Add a final \n if needed (bug#5596).
83
ddb2d8e2
CY
842010-02-18 Chong Yidong <cyd@stupidchicken.com>
85
86 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
87
2a4f8d3d
GM
882010-02-18 Glenn Morris <rgm@gnu.org>
89
90 * callint.c (Finteractive): Doc fix.
91
ebaf11b6
KH
922010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
93
886cc2b8
SM
94 * coding.c (record_conversion_result):
95 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
96 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
97 memory allocation error.
98
d0396581
KH
992010-02-17 Kenichi Handa <handa@m17n.org>
100
886cc2b8
SM
101 * coding.c (decode_coding_ccl): Don't setup ccl program here.
102 Fix for the case that the output buffer is fullfilled.
d0396581
KH
103 (decode_coding): Setup ccl program here. Keep looping when the
104 decoder stopped because the output buffer is
105 fullfilled (bug#5534).
106
107 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
108
98599f74
JD
1092010-02-13 Jan Djärv <jan.h.d@swipnet.se>
110
471e4f04 111 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 112 bug #5571.
886cc2b8 113 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 114 overdrawn.
98599f74 115
182659ae
JD
1162010-02-10 Jan Djärv <jan.h.d@swipnet.se>
117
118 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
119 doing_interact here.
120 (ice_connection_closed): New function.
121 (x_session_check_input, smc_die_CB, ice_io_error_handler)
122 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
123 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
124 returns I/O error.
125 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
126 bug #5512.
127
9be32c4e 1282010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
129
130 * nsfont.m (nsfont_open): The system's value for the font descent
131 is negative, so round it down to avoid clipping.
132
a2f3eb19
CY
1332010-02-06 Chong Yidong <cyd@stupidchicken.com>
134
135 * charset.c (load_charset_map_from_file)
136 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 137 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 138
3088147c
CY
1392010-02-05 Chong Yidong <cyd@stupidchicken.com>
140
141 * charset.c (load_charset_map_from_file): Allocate large
142 charset_map_entries structure on the heap rather than the stack.
143 (Bug#5526).
144
b57d9029
KH
1452010-01-31 Kenichi Handa <handa@m17n.org>
146
147 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 148 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 149
c67d885b
CY
1502010-01-31 Chong Yidong <cyd@stupidchicken.com>
151
152 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
153 <deactivated@gmail.com> (Bug#3605).
154
8fab2362
CY
1552010-01-31 David De La Harpe Golden <david@harpegolden.net>
156
157 * fileio.c (Frename_file): Correctly rename symlinks to
158 directories (Bug#5496).
159
cb2a62f2
CY
1602010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
161
162 * nsterm.m (ns_ring_bell): Handle visible bell like X.
163
944c7a26
AS
1642010-01-30 Andreas Schwab <schwab@linux-m68k.org>
165
166 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
167
c024ac08
CY
1682010-01-29 Chong Yidong <cyd@stupidchicken.com>
169
170 * frame.c (DEFAULT_ROWS): Change default to 35.
171
172 * xfns.c (x_default_font_parameter): Change default XFT font to
173 monospace-10 (Bug#3643).
174
af93af83
EZ
1752010-01-29 Eli Zaretskii <eliz@gnu.org>
176
177 * w32inevt.c (key_event): Remove unnecessary comparison of
178 event->uChar.AsciiChar with 128.
179
ca0eb708
CY
1802010-01-28 Chong Yidong <cyd@stupidchicken.com>
181
b242dbfc
CY
182 * fileio.c (Frename_file): Fix last change (Bug#5487).
183
ca0eb708
CY
184 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
185
186 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
187
45d45af5
JD
1882010-01-28 Jan Djärv <jan.h.d@swipnet.se>
189
190 * xfns.c (Fx_create_frame): Remove window size matching code from
191 2010-01-15.
192 (x_get_current_desktop, x_get_desktop_workarea): Remove
193
7e233730
JR
1942010-01-27 Jason Rumney <jasonr@gnu.org>
195
196 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 197 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 198
86e893e3
KH
1992010-01-27 Kenichi Handa <handa@m17n.org>
200
201 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 202 pattern string (Bug#4209).
86e893e3 203
8719abec
CY
2042010-01-27 David De La Harpe Golden <david@harpegolden.net>
205
206 * fileio.c (Frename_file): Call copy-directory and
207 delete-directory for directories, in order to handle cross-device
208 renaming (Bug#3353).
209
844794c8
JD
2102010-01-25 Jan Djärv <jan.h.d@swipnet.se>
211
aa3e13b5 212 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 213 sizes 24 and 10. Bug #3643.
844794c8 214
bd4b5750
SM
2152010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
216
8dc1adf6 217 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
218 * keymap.c (shadow_lookup): Add `remap' arg.
219 (describe_map, describe_vector): Update calls to shadow_lookup.
220 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
221 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
222 perform remapping during shadow_lookup check of remapped_sequences.
223
285d07e2
CY
2242010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
225
226 * image.c (png_load): Use png_sig_cmp instead of the obsolete
227 png_check_sig, which has been removed in libpng 1.4.
228
c6d09b8d
CY
2292010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
230
231 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
232 lacks this header file).
233
3d782998
YM
2342010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
235
236 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
237 as in Emacs 22.
238
2aff7c53
YM
2392010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
240
241 * lisp.h (make_pure_string): String pointer arg now points to const.
242
243 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
244 args now point to const.
245
74327f7a
EZ
2462010-01-22 Eli Zaretskii <eliz@gnu.org>
247
248 * lread.c (Fload): Don't treat files without .elc extension as
249 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
250 them. (bug#5303)
251
4d1e6632
KH
2522010-01-20 Kenichi Handa <handa@m17n.org>
253
254 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
255 treat the source as actual byte sequence.
256
1fdede8f
AM
2572010-01-19 Alan Mackenzie <acm@muc.de>
258
259 Fix spurious before-change-functions invocation from (insert ?\n).
260 * textprop.c (set_text_properties): rename parameter
261 `signal_after_change_p' to `coherent_change_p', and make the
262 invocation of `modify_region' conditional on it.
263
67477f30
JD
2642010-01-19 Jan Djärv <jan.h.d@swipnet.se>
265
266 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
267 for debug purpose.
268 (syms_of_xsettings): Declare xft-settings.
269
244b023e
CY
2702010-01-18 Chong Yidong <cyd@stupidchicken.com>
271
272 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
273
617364fe
CY
2742010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * xterm.c (event_handler_gdk): Block input (Bug#5037).
277
4fe22cdf
CY
2782010-01-16 Chong Yidong <cyd@stupidchicken.com>
279
280 * emacs.c (standard_args): Adjust arg priorities to reflect how
281 they are processed in startup.el.
282
e118d2be
AS
2832010-01-16 Andreas Schwab <schwab@linux-m68k.org>
284
285 * Makefile.in (lisp, shortlisp): Update.
286
523ae620
SM
2872010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
288
289 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
290 code, link the new kboard into all_kboard before running Lisp code,
291 and protect the new terminal with GCPRO (Bug#5365).
292 (x_term_init): Remove unused var `atom'.
293 (x_delete_display, x_delete_terminal): Remove unused var `i'.
294
f0d13888
JD
2952010-01-15 Jan Djärv <jan.h.d@swipnet.se>
296
297 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
298 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
299 to find out usable size of the desktop. Don't make frames larger than
ac146f82 300 this. Bug #3643.
f0d13888 301
cc320f07
KH
3022010-01-15 Kenichi Handa <handa@m17n.org>
303
304 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
305
7ffdf101
CY
3062010-01-15 Chong Yidong <cyd@stupidchicken.com>
307
308 * nsterm.m (Qnone): Define.
309
310 * nsfns.m (Qnone): Move definition to nsterm.m.
311
d12bd917
KH
3122010-01-14 Kenichi Handa <handa@m17n.org>
313
314 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
315 systems.
316
d9a7c140
KH
3172010-01-14 Kenichi Handa <handa@m17n.org>
318
319 Make auto-composition work on all buffers even if they are
320 fundamental mode.
321
322 * composite.c (Vauto_composition_mode): New variable.
323 (composition_compute_stop_pos): Check Vauto_composition_mode
324 instead of Vauto_composition_function.
325 (composition_adjust_point, Ffind_composition_internal): Likewise.
326 (syms_of_composite): Declare Lisp variable
327 "auto-composition-mode" here.
328
63286bb2
CY
3292010-01-13 Chong Yidong <cyd@stupidchicken.com>
330
331 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
332 during call to vendor-specific-keysyms (Bug#5365).
333
c2623ee7
YM
3342010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
335
336 * keyboard.c (input_available_signal) [SYNC_INPUT]:
337 Call SIGNAL_THREAD_CHECK (Bug#5333).
338
339 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
340 Call SIGNAL_THREAD_CHECK.
341
0b5397c2
SM
3422010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 Try to fix bug#5314. This is probably not the final word, tho.
345 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
346 recent-auto-save-p as a side-effect.
347 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
348 * buffer.c (Fkill_buffer, reset_buffer):
349 * editfns.c (Fsubst_char_in_region):
350 * fileio.c (Finsert_file_contents, Fdo_auto_save)
351 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
352
dc954cb2
KH
3532010-01-13 Kenichi Handa <handa@m17n.org>
354
355 Display buffer name, etc. in mode line by composing correctly.
356
357 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
358 STRING is not nil.
0b5397c2 359 (display_mode_element): Adjust for the change of
dc954cb2
KH
360 decode_mode_spec and display_line.
361 (decode_mode_spec): Change arg MULTIBYTE to STRING.
362 (display_string): Handle the case that STRING is non-null and
363 LISP_STRING is not nil.
364
0b5397c2
SM
365 * xterm.c (x_draw_composite_glyph_string_foreground):
366 Pay attention to s->face->overstrike.
dc954cb2
KH
367
368 * composite.c (composition_reseat_it): Don't check PT if STRING is
369 non nil.
370
4a00eaca
YM
3712010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
372
373 * keyboard.c (read_char): Don't apply previous change when current
374 buffer is unchanged by command execution.
375
60abb287
JD
3762010-01-12 Jan Djärv <jan.h.d@swipnet.se>
377
378 * keyboard.c (read_char): Return after executing from special map.
379
893db5bc
GM
3802010-01-12 Glenn Morris <rgm@gnu.org>
381
382 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
383 bug-gnu-emacs rather than emacs-pretest-bug.
384
4d03ece0
CY
3852010-01-11 Chong Yidong <cyd@stupidchicken.com>
386
387 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
388 initializing the Lisp variables that depend on them.
389
1df47e38
YM
3902010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
391
392 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
393 Clear areas that will not be updated after change of menu bar lines.
394 Clear the menu bar window's current matrix when the window gets empty.
395
2f1c6384
CY
3962010-01-09 Chong Yidong <cyd@stupidchicken.com>
397
e398c61c
CY
398 * intervals.h, textprop.c (extend_property_ranges): Return value
399 and args changed. Discard properties that begin at or after the
400 new end (Bug#5306).
401
402 * editfns.c (Fformat): Caller changed.
403
e5a29a10
CY
404 * nsterm.m (ns_set_default_prefs): Delete function.
405 (syms_of_nsterm): Initialize ns_command_modifier,
406 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
407 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
408
2f1c6384
CY
409 * xdisp.c (pos_visible_p): Check for invisible text at the correct
410 position (Bug#4040).
411
d427a9fa
EZ
4122010-01-09 Eli Zaretskii <eliz@gnu.org>
413
414 * editfns.c (Ffloat_time): Doc fix.
415
21b9df2f
JD
4162010-01-09 Jan Djärv <jan.h.d@swipnet.se>
417
418 * xfns.c (Fx_create_frame): Don't create frame larger than display
419 by default bug#3643.
420
4b00d3b1
YM
4212010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
422
423 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
424 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
425 windows above internal border.
426
427 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
428 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
429 windows above internal border.
430
431 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
432 tool bar windows specially.
433
434 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
435
436 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
437 specially.
438 (XTflash): Take account of menu bar height.
439
440 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
441 specially.
442
5075d853
JD
4432010-01-08 Jan Djärv <jan.h.d@swipnet.se>
444
ac146f82 445 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
446 also be true before we can return early (bug #5339).
447
474217c8
CY
4482010-01-06 David Reitter <david.reitter@gmail.com>
449
450 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
451 (Fns_display_usable_bounds): Rewrite, computing bounds properly
452 (Bug#3233).
453
c0e6d47d
JD
4542010-01-06 Jan Djärv <jan.h.d@swipnet.se>
455
d0cf45b7
JD
456 * font.c (font_open_entity): Enable chache and call cached_font_ok
457 for the driver if defined.
458 (QCuser_spec): New symbol.
459 (font_spec_from_name): Save name as user-spec.
460 (font_load_for_lface): Keep user-spec instead of name.
461 (font_open_by_name): Save name as user-spec.
462 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 463 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
464
465 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
466 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
467 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
468
469 * font.h (struct font_driver): Add cached_font_ok.
470
c0e6d47d
JD
471 * xterm.c (x_clear_frame): Queue draw for scroll bars.
472
7c583cd8
JD
4732010-01-05 Jan Djärv <jan.h.d@swipnet.se>
474
475 * xterm.c (x_new_font): Move code for setting rows/cols before
476 resizing ...
ac146f82 477 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
478
479 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
480 (xg_frame_resized, xg_frame_set_char_size):
481 Call xg_clear_under_internal_border.
7c583cd8 482 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 483
03f77f0a
CY
4842010-01-05 Chong Yidong <cyd@stupidchicken.com>
485
486 * keyboard.c (read_key_sequence): Catch keyboard switch after
487 making a new tty frame (Bug#5095).
488
2a1ef5be
KH
4892010-01-05 Kenichi Handa <handa@m17n.org>
490
491 * fontset.c (fontset_find_font): Fix getting the frame pointer.
492
e3eb1dae
SM
4932010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
494
495 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
496 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
497 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
498
777013f2
MA
4992010-01-03 Michael Albinus <michael.albinus@gmx.de>
500
501 * dbusbind.c (xd_add_watch): Improve debug message.
502 (xd_remove_watch): Improve debug message. If DATA is the session
503 bus, unset D-Bus session environment.
504 (Fdbus_init_bus): Pass the bus as argument to
505 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 506
8932b1c2
CY
5072010-01-01 Chong Yidong <cyd@stupidchicken.com>
508
87231e2c
CY
509 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
510
4801c5fa
CY
511 * lread.c (syms_of_lread): Make it clearer that these are the
512 names of loaded files (Bug#5068).
513
8932b1c2
CY
514 * eval.c (run_hook_with_args): Handle the case where the global
515 value has the obsolete single-function form (Bug#5026).
516
11e3c684
CY
5172009-12-27 Chong Yidong <cyd@stupidchicken.com>
518
519 * minibuf.c (Fall_completions): Minor optimization.
520
5b28ce35
EZ
5212009-12-26 Eli Zaretskii <eliz@gnu.org>
522
5ce6e4f4
JB
523 * .gdbinit (pgx): Fix display of composite glyphs.
524 Display cmp.from and cmp.to as well.
525 (pitx): Fix last change.
5b28ce35 526
bcffff46
KH
5272009-12-25 Kenichi Handa <handa@m17n.org>
528
529 * composite.h (composition_adjust_point): Update prototype.
530
531 * composite.c (composition_reseat_it): Don't make a composition
532 spanning over point.
533 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
534 composable characters.
535 (composition_adjust_point): New arg NEW_PT. Callers changed.
536
537 * keyboard.c (command_loop_1): Force redisplay if the last point
538 was within a composition.
539 (adjust_point_for_property): Don't adjust point for automatic
540 composition when called after buffer modification.
541
3f670e9a
EZ
5422009-12-19 Eli Zaretskii <eliz@gnu.org>
543
5ce6e4f4
JB
544 * .gdbinit (pitx): Don't use enum names, use their values.
545 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
546 (pgx): Don't use enum names, use their values.
547 (pitmethod): New helper command.
548 (pitx): Use it to display iteration method.
549 (pgrowit): New command.
550
ad903955
EZ
551 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
552
3f670e9a
EZ
553 Update dependencies in Makefile.in.
554
555 * Makefile.in (alloc.o): Depend on termhooks.h.
556 (atimer.o): Depend on blockinput.h.
557 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
558 and frame.h.
559 (callint.o): Depend on systime.h, coding.h, and composite.h.
560 (callproc.o): Depend on buffer.h.
561 (casefiddle.o): Don't depend on charset.h.
562 (casetab.o): Depend on character.h.
563 (ccl.o): Depend on composite.h.
564 (chartab.o): Depend on ccl.h.
565 (cm.o): Depend on dispextern.h.
566 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
567 (coding.o): Don't depend on $(INTERVALS_H).
568 (composite.o): Don't depend on dispextern.h explicitly (it's in
569 $(INTERVALS_H)). Depend on ccl.h.
570 (data.o): Depend on systime.h, coding.h, composite.h,
571 dispextern.h, font.h, and ccl.h.
572 (dired.o): Depend on composite.h.
573 (dispnew.o): Depend on coding.h. Don't depend explicitly on
574 composite.h (it's in $(INTERVALS_H)).
575 (doc.o): Depend on systime.h, coding.h, and composite.h.
576 (editfns.o): Don't depend explicitly on dispextern.h.
577 (emacs.o): Depend on frame.h and coding.h.
578 (eval.o): Depend on coding.h, composite.h, and xterm.h.
579 (fileio.o): Depend on frame.h and commands.h. Don't depend
580 explicitly on dispextern.h.
581 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
582 composite.h.
583 (fns.o): Don't depend on termhooks.h.
584 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
585 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
586 coding.h, $(INTERVALS_H), window.h, xterm.h.
587 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
588 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
589 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
590 fontset.h, ccl.h, and ftfont.h.
591 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
592 (gtkutil.o): Depend on dispextern.h and composite.h.
593 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
594 termhooks.h, and ccl.h.
595 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
596 (intervals.o): Depend on systime.h and coding.h.
597 (keyboard.o): Depend on composite.h and coding.h.
598 (keymap.o): Depend on coding.h and frame.h.
599 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
600 (macros.o): Depend on systime.h, coding.h, and composite.h.
601 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
602 and atimer.h.
603 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
604 dispextern.h explicitly.
0b5397c2
SM
605 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
606 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
607 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
608 (regex.o): Don't depend on charset.h.
609 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
610 (search.o): Don't depend explicitly on composite.h.
611 (sound.o): Depend on atimer.h and systime.h.
612 (syntax.o): Don't depend explicitly on composite.h.
613 (sysdep.o): Depend on coding.h and composite.h.
614 (term.o): Depend on xterm.h and buffer.h.
615 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
616 (textprop.o): Don't depend on dispextern.h explicitly.
617 (undo.o): Depend on dispextern.h.
618 (window.o): Depend on coding.h and termhooks.h. Don't depend on
619 dispextern.h and composite.h explicitly.
620 (xdisp.o): Depend on ccl.h.
621 (xfaces.o): Depend on coding.h and ccl.h.
622 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
623 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
624 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
625 ftfont.h.
626 (xgselect.o): New dependency.
627 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
628 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
629 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
630 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
631 (xsmfns.o): Depend on frame.h and dispextern.h.
632 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
633 sysselect.h.
634
7a6f7fea
AS
6352009-12-19 Andreas Schwab <schwab@linux-m68k.org>
636
637 * font.c (Fclear_font_cache): Pass correct cache argument to
638 font_clear_cache.
639
f4c21026
AS
6402009-12-16 Andreas Schwab <schwab@linux-m68k.org>
641
642 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
643 twice.
644
f7ab0997
CY
6452009-12-15 Chong Yidong <cyd@stupidchicken.com>
646
647 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
648 calling file-remote-p. Reported by Jim Meyering.
649
fa8e045a
MA
6502009-12-15 Michael Albinus <michael.albinus@gmx.de>
651
652 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 653 avoid compiler warnings. (Bug #5217)
fa8e045a 654
a63dba42
KH
6552009-12-14 Kenichi Handa <handa@m17n.org>
656
657 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
658 in 8-bit encoding.
659
5ce6e4f4 6602009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
661
662 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
663 tooltip windows.
664
223e5fc6
JD
6652009-12-13 Jan Djärv <jan.h.d@swipnet.se>
666
36acb2a7
JD
667 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
668 Xatom_net_window_type.
669
670 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
671 Xatom_net_window_type.
672
b8f00677
JD
673 * xterm.c (my_log_handler): New function.
674 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 675 so we can filter out buggy messages. (Bug #5120).
b8f00677 676
e5f0bc9a
JD
677 * xterm.c (xg_scroll_callback): Parameter list changed,
678 use parameter GtkScrollType to determine scroll/line/page.
679 Only allow dragging if a button < 4 is grabbed (bug #5177).
680 (xg_end_scroll_callback): New function.
681 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
682 xg_create_scroll_bar.
683
684 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
685 (scroll_end_callback): Remove.
686 (xg_create_scroll_bar): Add parameter end_callback, bind it to
687 button-release-event. Replace value-changed event with change-value,
688 bug #5177,
689 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
690 bug #5177.
691
692 * gtkutil.h (XG_LAST_SB_DATA): Remove.
693 (xg_create_scroll_bar): Add GCallback end_callback.
694
223e5fc6
JD
695 * xftfont.c (QClcdfilter): New variable.
696 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
697 (syms_of_xftfont): Initialize QClcdfilter.
698
3c055b77
JD
6992009-12-12 Jan Djärv <jan.h.d@swipnet.se>
700
701 * xsettings.c (struct xsettings): Add member seen.
702 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 703 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
704 (apply_xft_settings): Only update Xft settings with what member seen
705 indicates as new.
706
05fe33ff
EZ
7072009-12-12 Eli Zaretskii <eliz@gnu.org>
708
709 * dispextern.h (struct text_pos): Use EMACS_INT;
710 (struct glyph): Use EMACS_INT for charpos.
711 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
712 region_beg_charpos, region_end_charpos,
713 redisplay_end_trigger_charpos, and also for
714 iterator_stack_entry.end_charpos and
715 iterator_stack_entry.stop_charpos.
716
e8d7886a
JD
7172009-12-12 Jan Djärv <jan.h.d@swipnet.se>
718
5ce6e4f4 719 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
720 (xg_create_scroll_bar): Call scroll_end_callback on button release
721 event (bug #5177).
722 (xg_event_is_for_scrollbar): != replaced with ==.
723
d0db2ec8
KH
7242009-12-12 Kenichi Handa <handa@m17n.org>
725
726 * ftfont.c (struct ftfont_info): New member matrix.
727 (ftfont_open): Setup xftfont_info->matrix.
728 (MFLTFontFT): New member matrix.
729 (FLOOR, CEIL, ROUND): New macros.
730 (ftfont_get_metrics): Handle matrix transformation.
731 (ftfont_shape_by_flt): New arg matrix. Callers changed.
732
733 * xftfont.c (struct xftfont_info): New member matrix.
734 (xftfont_open): Setup xftfont_info->matrix.
735
7362009-12-10 Kenichi Handa <handa@m17n.org>
737
738 * xdisp.c (append_space_for_newline): Consider face-remapping.
739
2cc7b62f
AS
7402009-12-09 Andreas Schwab <schwab@linux-m68k.org>
741
b87dd913
AS
742 * xsettings.c: Include "keyboard.h".
743
eba5eb94
AS
744 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
745
2cc7b62f
AS
746 Fix implicit function declarations.
747 * cmds.c: Include "frame.h".
748 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
749 * frame.h: Move declaration of delete_frame outside of
750 HAVE_WINDOW_SYSTEM.
751
a4ef73c8
CY
7522009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
753
754 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
755
756 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
757 GTK builds.
758
944a300c
AS
7592009-12-07 Andreas Schwab <schwab@linux-m68k.org>
760
761 * unexelf.c (unexec): Don't search for .data twice.
762
022eef62
CY
7632009-12-05 Chong Yidong <cyd@stupidchicken.com>
764
426ac949
CY
765 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
766 if push failed.
767 (handle_line_prefix): Set avoid_cursor_p here. Check return value
768 of push_display_prop (Bug#5000).
769
022eef62
CY
770 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
771 value of font_list_entities (Bug#5085).
772
be95bee9
JB
7732009-12-04 Juanma Barranquero <lekktu@gmail.com>
774
775 Fix `string-to-number' to deal consistently with integers and floats.
776 * lread.c (isfloat_string): New argument ignore_trailing to accept all
777 trailing characters, not just whitespace.
778 (read1): Pass new arg 0 to keep old behavior.
779 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
780 trailing chars, as it is already done for integers. Doc fixes.
781 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
782
24c2d7ce
EZ
7832009-12-04 Eli Zaretskii <eliz@gnu.org>
784
0b5397c2
SM
785 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
786 Delete unused enumeration value.
24c2d7ce 787
7e694795
EZ
7882009-12-03 Eli Zaretskii <eliz@gnu.org>
789
790 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
791
84b31826
SM
7922009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
793
794 * process.c (Fmake_network_process): Fix up the tests for
795 "connectionless socket", so they DTRT for seqpacket sockets as well.
796
f00c449b
SM
7972009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
798
799 * process.c (Qseqpacket): New symbol.
800 (HAVE_SEQPACKET): New macro.
801 (Fmake_network_process): Accept new :type `seqpacket'.
802 (init_process): Add `seqpacket' feature when applicable.
803 (syms_of_process): Initialize Qseqpacket.
804
8096a0ff
YM
8052009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
806
807 * font.c (font_load_for_lface, font_open_by_name): Don't store name
808 if entity is Qnil.
809
3e0de07f
SM
8102009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
811
812 * print.c (print_preprocess): Preprocess the key_and_value table of
813 hashtables, even tho they're "hidden" (bug#5082).
814
abeafb2a
JD
8152009-11-29 Jan Djärv <jan.h.d@swipnet.se>
816
817 * frame.c (frame_make_pointer_invisible)
818 (frame_make_pointer_visible): Declare f before statements.
819
4bf47195
EZ
8202009-11-28 Eli Zaretskii <eliz@gnu.org>
821
822 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
823 omitted dependencies on lisp.h.
824
c525b3f2
JD
8252009-11-27 Jan Djärv <jan.h.d@swipnet.se>
826
ece2d4ed
JD
827 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
828 is NULL.
829
830 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
831
832 * frame.c (frame_make_pointer_invisible)
3e0de07f 833 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
834 frame.
835
c525b3f2
JD
836 * search.c (simple_search): Remove warning by making *p const.
837
2f00e299
DN
8382009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
839
840 * xdisp.c (power_letter): Remove duplicate const.
841
084b049b
JD
8422009-11-25 Jan Djärv <jan.h.d@swipnet.se>
843
a1fadc6f
JD
844 * term.c (delete_tty): Remove check for last terminal (bug#4970).
845
5ce6e4f4 846 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
847 defaults (bug #5025).
848
28259cac
SM
8492009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
850
851 * insdel.c (adjust_markers_for_delete): Move it in the
852 right direction! (bug#4803)
853
e8e14166
YM
8542009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
855
856 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
857
858 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
859
86677b58
GM
8602009-11-24 Glenn Morris <rgm@gnu.org>
861
862 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
863
581e51e8
JD
8642009-11-23 Jan Djärv <jan.h.d@swipnet.se>
865
cfc86c7a
JD
866 * Makefile.in: Must create deps for ecrt0.o in its rule.
867
581e51e8
JD
868 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
869 because that is what Gtk+ font dialog understands.
870
871 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
872 of Fcopy_sequence.
873 (font_open_by_name): Put name given into QCname for font-object returned.
874
875 * frame.c (x_set_font): Save original font name as frame parameter
876 font-parameter.
877
878 * xsettings.c (set_default_xft_settings): New function.
879 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
880 is found.
881
8b264ecb
AS
8822009-11-22 Andreas Schwab <schwab@linux-m68k.org>
883
884 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
885 searching backwards through multibyte buffer.
886
872870b2
JD
8872009-11-21 Jan Djärv <jan.h.d@swipnet.se>
888
889 * xterm.c: #include xgselect.h.
890 (x_initialize): Call xgselect_initialize.
891
892 * xsettings.c (something_changedCB): C++ comments => C comments.
893 (init_gconf): Do not deal with any GLib file descriptors, xg_select
894 does that now.
895
896 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
897 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
898 (scroll_bar_button_cb): Remove.
5ce6e4f4 899 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
900 event.
901 (xg_create_scroll_bar): Don't bind button-press-event and
902 button-release-event.
903
904 * process.c: Include xgselect.h if defined (USE_GTK) ||
905 defined (HAVE_GCONF).
906 (wait_reading_process_output): Call xg_select for the same condition.
907
908 * xgselect.c (xg_select): New function to better integrate with
909 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
910
911 * xgselect.h: New file, declare xg_select, xgselect_initialize.
912
913 * Makefile.in (XOBJ): Add xgselect.o.
914
62a6e103
AS
9152009-11-21 Andreas Schwab <schwab@linux-m68k.org>
916
0b5397c2
SM
917 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
918 Remove ignored second argument. All callers changed.
62a6e103
AS
919 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
920 (RE_STRING_CHAR_AND_LENGTH): Likewise.
921 * xdisp.c (string_char_and_length): Likewise.
922
b0ca0f33
DN
9232009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
924
925 * xterm.c (x_new_font):
926 * print.c (print_object):
927 * cmds.c (Fself_insert_command): Move declarations before statements.
928
dd5a6279
CY
9292009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
930
931 * s/cygwin.h: Remove unneeded linker flags.
932
4a8e097d
JD
9332009-11-20 Jan Djärv <jan.h.d@swipnet.se>
934
0d1d0d26
JD
935 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
936
937 * xsettings.h: Declare xsettings_get_system_font.
938
939 * xsettings.c (xsettings_get_system_font): New function.
940 (init_gconf): No use initiating gconf unless we have Xft also.
941 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
942 HAVE_GCONF.
943
4a8e097d
JD
944 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
945 add a blank entry so it doesn't collapse into nothing.
946
8ab1650e
SM
9472009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
948
949 * lread.c (Funintern): Comment out last change.
950
82c602f0
RS
9512009-11-19 Richard Stallman <rms@gnu.org>
952
953 * lread.c (Funintern): Error if symbol is t or nil.
954
87e32266
SM
9552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
956
957 * insdel.c (make_gap_larger): Don't make as many assumptions about the
958 representation of Lisp integers.
959 Reported by MJ Chan <mjchan.inbox@gmail.com>.
960
1b9ac145
AS
9612009-11-17 Andreas Schwab <schwab@linux-m68k.org>
962
963 * lisp.h: Remove declaration of Ffont_get_system_font.
964 * xfns.c: Move include of "xsettings.h".
965 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
966
dfb3c4c6
JD
9672009-11-17 Jan Djärv <jan.h.d@swipnet.se>
968
87e32266
SM
969 * xsettings.c (something_changedCB, Ffont_get_system_font):
970 Check use_system_font.
dfb3c4c6
JD
971 (syms_of_xsettings): DEFVAR font-use-system-font.
972
9370c1d8
AS
9732009-11-17 Andreas Schwab <schwab@linux-m68k.org>
974
25fe851a
AS
975 * xfns.c (x_default_font_parameter): Remove dead assignment.
976
9370c1d8
AS
977 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
978
637fa988
JD
9792009-11-17 Jan Djärv <jan.h.d@swipnet.se>
980
87e32266 981 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 982 not have FC_LCD_*. #define them if not there.
a6eb20d8 983
87e32266 984 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 985
637fa988
JD
986 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
987
988 * xterm.c (handle_one_xevent): Call xft_settings_event for
989 ClientMessage, PropertyNotify and DestroyNotify.
990 (x_term_init): If we have XFT, get DPI from Xft.dpi.
991 Call xsettings_initialize.
992
993 * xftfont.c (xftfont_fix_match): New function.
994 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
995 Call xftfont_fix_match after XftFontMatch.
996
997 * xfont.c (xfont_driver): Initialize all members.
998
87e32266
SM
999 * xfns.c (x_default_font_parameter):
1000 Try font from Ffont_get_system_font.
637fa988
JD
1001 Do not get font from x_default_parameter if we got one from
1002 Ffont_get_system_font.
87e32266 1003 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1004
1005 * w32font.c (w32font_driver): Initialize all members.
1006
1007 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1008
1009 * lisp.h: Declare syms_of_xsettings.
1010
87e32266
SM
1011 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1012 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1013
1014 * ftfont.c (ftfont_filter_properties): New function.
1015
1016 * frame.c (x_set_font): Remove unused variable lval.
1017
87e32266 1018 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1019
1020 * font.c (font_put_extra): Don't return if val is nil, it means
1021 boolean option is off.
1022 (font_parse_fcname): Collect all extra properties in extra_props
1023 and call filter_properties for all drivers with extra_props and
1024 font as parameter.
87e32266
SM
1025 (font_open_entity): Do not use cache, it does not pick up new
1026 fontconfig settings like hinting.
637fa988
JD
1027 (font_load_for_lface): If spec had a name in it, store it in entity.
1028
1029 * emacs.c (main): Call syms_of_xsettings
1030
1031 * config.in: HAVE_GCONF is new.
1032
1033 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1034 xsettings.o is new.
1035
5a942932
KH
10362009-11-17 Kenichi Handa <handa@m17n.org>
1037
1038 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1039 back to the default font in case that no suitable font is found.
1040
b7c7a4d1
SM
10412009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1042
1043 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1044 Suggested by Chad Brown <yandros@mit.edu>.
1045 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1046
072f1e39
JD
10472009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1048
1049 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1050
5d1e70a2
AS
10512009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1052
87e32266 1053 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1054
a53cfbe5
JD
10552009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1056
473a99b7
JD
1057 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1058 has a parent.
1059
a53cfbe5 1060 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1061 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1062
1063 * config.in: Generated (AUTO_DEPEND).
1064
f04bb9b2
MA
10652009-11-13 Michael Albinus <michael.albinus@gmx.de>
1066
b7c7a4d1 1067 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1068 Vdbus_registered_functions_table, because it contains also
1069 properties. Fix docstring.
b7c7a4d1 1070 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1071
8f11f7ec
SM
10722009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1073
1074 * alloc.c (mark_object): Don't reprocess marked strings.
1075 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1076 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1077
8a605fe8
KH
10782009-11-13 Kenichi Handa <handa@m17n.org>
1079
8f11f7ec 1080 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1081 semantics of Vword_combining_categories.
1082 (Vword_combining_categories): Describe the slight change of the
1083 semantics.
1084
241c4680
EZ
10852009-11-13 Eli Zaretskii <eliz@gnu.org>
1086
1087 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1088
1089 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1090
5d58e44c
SM
10912009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1094
5e13f9d3
JB
10952009-11-12 Juanma Barranquero <lekktu@gmail.com>
1096
1097 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1098
cf54c754
DR
10992009-11-11 David Reitter <david.reitter@gmail.com>
1100
1101 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1102 variables to fix 2009-11-09 change.
1103
a4ada374
DN
11042009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1105
91433552
DN
1106 * process.c (ifflag_def): Make flag_sym constant.
1107 (Fnetwork_interface_info): Use a constant pointer.
1108 (ifflag_table):
1109 * xfns.c (cursor_bits):
1110 * xdisp.c (power_letter):
1111 * termcap.c (speeds, esctab):
1112 * sysdep.c (baud_convert):
1113 * keyboard.c (lispy_accent_codes, modifier_names):
1114 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1115 (jpeg_format, tiff_format, gif_format, svg_format)
1116 (interlace_start, interlace_increment, gs_format):
1117 * gtkutil.c (separator_names):
1118 * fringe.c (swap_nibble):
1119 * fns.c (base64_value_to_char, base64_char_to_value):
1120 * fileio.c (make_temp_name_tbl):
1121 * coding.c (suffixes): Make constant.
1122
f4265f6c
DN
1123 * frame.c (make_initial_frame):
1124 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1125 build_string.
1126 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1127
04420943
DN
1128 * s/freebsd.h:
1129 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1130
0a5d24ae
DN
1131 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1132 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1133
a4ada374
DN
1134 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1135 * xterm.c (syms_of_xterm):
1136 * xfaces.c (syms_of_xfaces):
1137 * xdisp.c (syms_of_xdisp):
1138 * lread.c (syms_of_lread):
1139 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1140 build_string.
91433552 1141
a4ada374
DN
1142 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1143
af98fc7f
SM
11442009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1145
8ab1650e 1146 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1147
e90292a9
JD
11482009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1149
1150 * keyboard.h: Declare timer_check.
1151
1152 * keyboard.c (timer_check_2): New function that does what the old
1153 timer_check did.
1154 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1155 returned, i.e. don't return -1 with timers pending.
1156
1157 * process.c: Remove extern declaration of timer_check.
1158
1159 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1160 even if timer_check returned -1.
1161
af98fc7f
SM
1162 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1163 xg_dialog_data.
e90292a9
JD
1164 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1165 the event loop.
1166 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1167 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1168 Destroy the dialog after xg_dialog_run.
1169
045b83c0
SM
11702009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1171
1172 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1173
1fb99a3a
JD
11742009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1175
1176 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1177
04e452cb
JB
11782009-11-09 Juanma Barranquero <lekktu@gmail.com>
1179
1180 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1181
ef7417fd
SM
11822009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1183
1184 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1185 w32menu.c, and nsmenu.m.
1186 Simplify the obsolete case where position is nil.
1187 (cleanup_popup_menu): New function, moved from nsmenu.m.
1188 (struct skp): Remove slot `notreal'.
1189 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1190 adjust callers.
1191 (single_menu_item): Adjust call to parse_menu_item.
1192 (syms_of_menu): Defsubr x-popup-menu.
1193 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1194 (keymap_panes): Don't export any more.
1195 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1196 (xmenu_show): Declare.
1197 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1198 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1199 * keyboard.h (parse_menu_item): Update declaration.
1200 * xmenu.c (Fx_popup_menu): Remove.
1201 (syms_of_xmenu): Don't defsubr x-popup-menu.
1202 * w32menu.c (Fx_popup_menu): Remove.
1203 (syms_of_w32menu): Don't defsubr x-popup-menu.
1204 * nsmenu.m (cleanup_popup_menu): Remove.
1205 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1206 moved to menu.c's Fx_popup_menu.
1207 (Fx_popup_menu): Remove.
1208 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1209 menu_items (it's done in menu.c already).
1210
424d6179
SM
12112009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1212
1213 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1214 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1215
c0df13a6 12162009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1217
1218 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1219 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1220 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1221 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1222
2de9f71c
SM
12232009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1224
1225 Let integers use up 2 tags to give them one extra bit and thus double
1226 their range.
1227 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1228 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1229 New macros.
1230 (enum Lisp_Type): Use them. Give explicit values.
1231 (Lisp_Type_Limit): Remove.
1232 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1233 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1234 Pay attention to USE_2_TAGS_FOR_INTS.
1235 (INTEGERP): Use LISP_INT_TAG_P.
1236 * fns.c (internal_equal): Simplify the default case.
1237 (sxhash): Use case_Lisp_Int.
1238 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1239 any more.
1240 (Ftype_of): Use case_Lisp_Int.
1241 (store_symval_forwarding): Take into account the fact that Ints can
1242 now have more than one tag.
1243 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1244 buffer_slot_type_mismatch):
1245 * xfaces.c (face_attr_equal_p):
1246 * print.c (print_object):
1247 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1248 Use case_Lisp_Int.
1249
323637a2
EZ
12502009-11-06 Eli Zaretskii <eliz@gnu.org>
1251
7ac65b38
EZ
1252 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1253
323637a2
EZ
1254 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1255 warning.
1256
e511451f
JD
12572009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1258
1259 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1260
1261 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1262
1263 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1264 ButtonPressRelease and MotionNotify (bug#4870).
1265
5e2327cf
DN
12662009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1267
5adc433e
DN
1268 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1269
d67b4f80
DN
1270 * xterm.c (syms_of_xterm):
1271 * xselect.c (syms_of_xselect):
1272 * xmenu.c (syms_of_xmenu):
1273 * xfns.c (syms_of_xfns):
1274 * xfaces.c (syms_of_xfaces):
1275 * xdisp.c (syms_of_xdisp):
1276 * window.c (syms_of_window):
1277 * w32fns.c (syms_of_w32fns):
1278 * undo.c (syms_of_undo):
1279 * textprop.c (syms_of_textprop):
1280 * terminal.c (syms_of_terminal):
1281 * syntax.c (syms_of_syntax):
1282 * sound.c (syms_of_sound):
1283 * search.c (syms_of_search):
1284 * print.c (syms_of_print):
1285 * minibuf.c (syms_of_minibuf):
1286 * macros.c (syms_of_macros):
1287 * keymap.c (syms_of_keymap, initial_define_key)
1288 (initial_define_lispy_key):
1289 * keyboard.c (syms_of_keyboard):
1290 * insdel.c (syms_of_insdel):
1291 * image.c (syms_of_image):
1292 * fringe.c (syms_of_fringe):
1293 * frame.c (syms_of_frame):
1294 * fontset.c (syms_of_fontset):
1295 * fns.c (syms_of_fns):
1296 * fns.c (syms_of_fns):
1297 * fileio.c (syms_of_fileio):
1298 * fileio.c (syms_of_fileio):
1299 * eval.c (syms_of_eval):
1300 * doc.c (syms_of_doc):
1301 * dispnew.c (syms_of_display):
1302 * dired.c (syms_of_dired):
1303 * dbusbind.c (syms_of_dbusbind):
1304 * data.c (syms_of_data):
1305 * composite.c (syms_of_composite):
1306 * coding.c (syms_of_coding):
1307 * cmds.c (syms_of_cmds):
1308 * charset.c (define_charset_internal, syms_of_character):
1309 * ccl.c (syms_of_ccl):
1310 * category.c (syms_of_category, init_category_once):
1311 * casetab.c (syms_of_casetab):
1312 * casefiddle.c (syms_of_casefiddle):
1313 * callint.c (syms_of_callint):
1314 * bytecode.c (syms_of_bytecode):
1315 * buffer.c (keys_of_buffer, syms_of_buffer):
1316 * alloc.c (syms_of_alloc):
1317 * process.c (syms_of_process, init_process):
1318 * lread.c (syms_of_lread, init_obarray):
1319 * font.c (build_style_table):
1320 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1321 intern_c_string, calls to make_pure_string with
1322 make_pure_c_string. Use pure_cons instead of Fcons.
1323
5e2327cf
DN
1324 * process.c (socket_options): Make it const.
1325 (set_socket_option, init_process): Use a const pointer.
1326
1327 * lread.c (intern_c_string): New function.
1328 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1329 (defvar_int): Uset it. Make the name const char*.
1330
1331 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1332 (defvar_int): Update prototypes.
1333 (DEFUN, EXFUN): Support for prototypes is now required.
1334 (intern_c_string): New prototype.
1335 (struct Lisp_Subr): Make symbol_name constant.
1336
1337 * font.c (struct table_entry): Remove unused member. Make NAMES
1338 constant.
1339 (weight_table, slant_table, width_table): Make constant.
1340
1341 * emacs.c (struct standard_args): Make name and longname constant.
1342
1343 * character.h (DEFSYM): Use intern_c_string.
1344
a56eaaef
DN
13452009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1346
1347 * alloc.c (make_pure_c_string): New function.
1348
1349 * eval.c (Fautoload): Purecopy all arguments.
1350
f6a07420
KH
13512009-11-05 Kenichi Handa <handa@m17n.org>
1352
1353 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1354 the buffer in case of replace.
1355
5d28d4b1
DN
13562009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1357
1358 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1359
b349d111
SM
13602009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1361
d528b1ce
SM
1362 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1363 when applicable (bug#4851).
1364
b349d111
SM
1365 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1366 (P_): Support for prototypes is now required.
1367
c38eb027
CY
13682009-10-31 Chong Yidong <cyd@stupidchicken.com>
1369
1370 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1371 (Bug#4827).
1372
0405f8d9
EZ
13732009-10-30 Eli Zaretskii <eliz@gnu.org>
1374
d528b1ce 1375 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1376
ca0a881a
DN
13772009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1378
1379 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1380
d528b1ce
SM
1381 * lread.c (Fload): Purecopy the file name when building
1382 Vpreloaded_file_list.
ca0a881a 1383
47e0e0e4
JR
13842009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1385
1386 * w32fns.c (syms_of_w32fns): Change default value of
1387 w32-scroll-lock-modifier to nil. (Bug#2827)
1388
057bce6f
JB
13892009-10-26 Juanma Barranquero <lekktu@gmail.com>
1390
782a943e 1391 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1392
242bc74c
AS
13932009-10-26 Andreas Schwab <schwab@redhat.com>
1394
1395 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1396
522d013a
JB
13972009-10-26 Juanma Barranquero <lekktu@gmail.com>
1398
1399 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1400 For delta < 0, skip check that only makes sense when the mini-window
1401 is going to be enlarged. (Bug#4534)
1402
18060980
CY
14032009-10-25 Chong Yidong <cyd@stupidchicken.com>
1404
1405 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1406 string in menu maps (Bug#4471).
1407
fec8f0fe
CY
14082009-10-24 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1411 FRAME_NS_VIEW on terminal frames (Bug#4765).
1412
10d66ec0
AS
14132009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1414
1cae01f7
AS
1415 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1416 DBUS_TYPE_UINTnn separately to get proper sign extension.
1417
58a12889
AS
1418 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1419 can properly handle unsigned types.
d528b1ce 1420 (make_uid, make_gid): Remove.
58a12889 1421
987c9327
AS
1422 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1423 types again.
1424
522d013a 1425 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1426 (system_process_attributes): Likewise.
1427
905a9ed3
DN
14282009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1429
1430 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1431
1432 * eval.c (Fautoload): Purecopy the filename. Simplify.
1433
1434 * category.c (Fdefine_category): Purecopy docstring.
1435
a599b3e8
AS
14362009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1437
7b792fc9
AS
1438 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1439
a599b3e8
AS
1440 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1441
b35ac83e
CY
14422009-10-23 Chong Yidong <cyd@stupidchicken.com>
1443
1444 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1445 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1446 (Bug#4775).
1447
e8903e00
SM
14482009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1449
1450 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1451 (init_fileio_once):
1452 * lisp.h (init_fileio_once): Remove.
1453 * emacs.c (main): Don't call init_fileio_once.
1454
8f43cbf3
DN
14552009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1456
1457 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1458
26898943
AS
14592009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1460
1461 * doprnt.c (doprnt): Fix overflow check.
1462
5c646d5a
JD
14632009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1464
3132a7ea
JD
1465 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1466
5c646d5a
JD
1467 * xterm.h (x_wait_for_event): Declare it.
1468
1469 * xterm.c (pending_event_wait): New variable.
1470 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1471 see pending_event_wait.eventtype.
1472 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1473 (x_new_font): Call change_frame_size with new rows/columns before we
1474 try to resize the frame.
5c646d5a 1475 (x_wait_for_event): New function.
d528b1ce
SM
1476 (x_set_window_size_1): Don't change gravity unless change_gravity
1477 is set.
5c646d5a
JD
1478 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1479 don't change frame size, instead wait for the ConfigureNotify.
1480 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1481 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1482 (x_initialize): Initialize pending_event_wait.
1483
1484 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1485 size.
1486
1487 * widget.c (EmacsFrameSetValues): Add comment.
1488 (EmacsFrameSetCharSize): Just call x_set_window_size.
1489
1490 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1491 x_wait_for_event.
d528b1ce 1492 (flush_and_sync): Remove again.
5c646d5a
JD
1493 (xg_get_font_name): Suggest monospace if no previous font is known.
1494
e9c1637d
SM
14952009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1496
1497 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1498 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1499
5a72cccb
YM
15002009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1501
1502 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1503 processing pending events when event is filtered for input method.
ab04798f 1504 (Bug#3681)
5a72cccb 1505
2629aa37
JB
15062009-10-20 Juanma Barranquero <lekktu@gmail.com>
1507
1508 * fns.c: Add #endif accidentally removed in previous change.
1509
c3417a74
DN
15102009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1511
1512 * fns.c: Remove code for unsupported system: MAC_OS.
1513 * image.c: Likewise. Include setjmp.h.
1514
9685cef2
JD
15152009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1516
1517 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1518 pixel -1 (bug #4742).
1519
d7306fe6
DN
15202009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1521
019d2c4c
DN
1522 * process.c (create_pty): Remove conditionals for no longer
1523 supported systems: UNIPLUS and RTU.
1524
ee6bacd4
DN
1525 * xterm.c:
1526 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1527
d7306fe6
DN
1528 * alloc.c: Do not define struct catchtag.
1529 * eval.c: Move struct catchtag definition ...
1530 * lisp.h: ... here.
1531
1532 * image.c: Move png.h #include earlier to avoid warnings.
1533
1534 * xterm.c:
1535 * xsmfns.c:
1536 * xselect.c:
1537 * xrdb.c:
1538 * xmenu.c:
1539 * xftfont.c:
1540 * xfont.c:
1541 * xfns.c:
1542 * xfaces.c:
1543 * xdisp.c:
1544 * window.c:
1545 * widget.c:
1546 * w32xfns.c:
1547 * w32uniscribe.c:
1548 * w32term.c:
1549 * w32select.c:
1550 * w32reg.c:
1551 * w32proc.c:
1552 * w32menu.c:
1553 * w32inevt.c:
1554 * w32heap.c:
1555 * w32font.c:
1556 * w32fns.c:
1557 * w32console.c:
1558 * w32.c:
1559 * w16select.c:
1560 * vm-limit.c:
1561 * unexsol.c:
1562 * unexec.c:
1563 * unexcw.c:
1564 * unexaix.c:
1565 * undo.c:
1566 * tparam.c:
1567 * textprop.c:
1568 * terminfo.c:
1569 * terminal.c:
1570 * termcap.c:
1571 * term.c:
1572 * syntax.c:
1573 * sound.c:
1574 * sheap.c:
1575 * search.c:
1576 * scroll.c:
1577 * region-cache.c:
1578 * regex.c:
1579 * ralloc.c:
1580 * process.c:
1581 * print.c:
b024548b
DN
1582 * nsterm.m:
1583 * nsselect.m:
1584 * nsmenu.m:
1585 * nsimage.m:
1586 * nsfont.m:
1587 * nsfns.m:
d7306fe6
DN
1588 * msdos.c:
1589 * minibuf.c:
1590 * menu.c:
1591 * marker.c:
1592 * macros.c:
1593 * keymap.c:
1594 * keyboard.c:
1595 * intervals.c:
1596 * insdel.c:
1597 * indent.c:
1598 * gtkutil.c:
1599 * ftxfont.c:
1600 * ftfont.c:
1601 * fringe.c:
1602 * frame.c:
1603 * fontset.c:
1604 * font.c:
1605 * fns.c:
1606 * floatfns.c:
1607 * filelock.c:
1608 * fileio.c:
1609 * emacs.c:
1610 * editfns.c:
1611 * dosfns.c:
1612 * doprnt.c:
1613 * doc.c:
1614 * dispnew.c:
1615 * dired.c:
1616 * dbusbind.c:
1617 * data.c:
1618 * composite.c:
1619 * coding.c:
1620 * cmds.c:
1621 * cm.c:
1622 * chartab.c:
1623 * charset.c:
1624 * character.c:
1625 * ccl.c:
1626 * category.c:
1627 * casetab.c:
1628 * casefiddle.c:
1629 * callproc.c:
1630 * callint.c:
1631 * bytecode.c:
1632 * buffer.c:
1633 * atimer.c: Include setjmp.h. (Bug#4643)
1634
fd5f21e6
SM
16352009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1636
4c0354d7
SM
1637 Remove leftover table unibyte_to_multibyte_table.
1638 * character.c (unibyte_to_multibyte_table): Remove.
1639 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1640 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1641 * character.h (UNIBYTE_TO_CHAR): New macro.
1642 (MAKE_CHAR_MULTIBYTE): Use it.
1643 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1644 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1645 (message_dolog, set_message_1):
1646 * search.c (Freplace_match):
1647 * editfns.c (Fcompare_buffer_substrings):
1648 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1649 (concat):
1650 * insdel.c (copy_text, count_size_as_multibyte):
1651 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1652 * term.c (produce_glyphs):
1653 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1654 * regex.c (RE_CHAR_TO_MULTIBYTE):
1655 * cmds.c (internal_self_insert):
1656 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1657
fd5f21e6
SM
1658 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1659
4418646e
DN
16602009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1661
1662 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1663
35f5c1d2
JB
16642009-10-16 Juanma Barranquero <lekktu@gmail.com>
1665
1666 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1667
a0cd8f6b
AR
16682009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1669
1670 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1671 still needed under Tiger.
1672
1673 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1674
1675 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1676 __Apple__.
1677
1678 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1679
01a8d3fa
KH
16802009-10-15 Kenichi Handa <handa@m17n.org>
1681
1682 * print.c (print_object): Escape a symbol like "2E10" too.
1683
bf6c75c9 16842009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1685
1686 Cleanups and changes for 64-bit compile under Snow Leopard.
1687 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1688
1689 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1690
c5959062 1691 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1692 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1693 cast argument.
1694 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1695 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1696
1697 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1698
1699 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1700 where appropriate.
1701
1702 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1703 where appropriate.
6e4780c5
JB
1704 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1705 Use stringWithUTF8String.
bf6c75c9
AR
1706 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1707
6e4780c5
JB
1708 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1709 Add formal protocol mention to inheritance.
bf6c75c9
AR
1710 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1711
6e4780c5
JB
1712 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1713 Fix printf format.
bf6c75c9
AR
1714 (ns_query_color): Use CGFloat where appropriate.
1715 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1716 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1717 argument.
1718
3d87f118
AR
1719 * config.in (NS_HAVE_NSINTEGER): Drop.
1720
a95c8102
AR
1721 * dbusbind.c (dbus-method-return-internal)
1722 (dbus-method-error-internal): Use long format in printf, and cast
1723 argument.
1724
1725 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1726 in printf, and cast argument.
1727
6873acca 1728 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1729 cast argument.
1730
9ec6f100
GM
17312009-10-11 Glenn Morris <rgm@gnu.org>
1732
1733 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1734
5be883cd
JD
17352009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1736
1737 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1738 menu bar with a small width so it doesn't enlarge the frame.
1739
d7a39b51
JB
17402009-10-08 Juanma Barranquero <lekktu@gmail.com>
1741
1742 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1743
0c2b6f8e
GM
17442009-10-06 Glenn Morris <rgm@gnu.org>
1745
1746 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1747 SOME_MACHINE_LISP (this enters indirectly via DOC).
1748
e02131a2
EZ
17492009-10-05 Eli Zaretskii <eliz@gnu.org>
1750
1751 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1752
b4744254
EZ
17532009-10-04 Eli Zaretskii <eliz@gnu.org>
1754
1755 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1756 Doc fix.
1757
dbf64827
JB
17582009-10-03 Martin Rudalics <rudalics@gmx.at>
1759
1760 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1761
e9a0aef8
MA
17622009-10-02 Michael Albinus <michael.albinus@gmx.de>
1763
d528b1ce 1764 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1765 used anymore outside fileio.c.
1766
1767 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1768
64eb2b56
JB
17692009-10-01 Juanma Barranquero <lekktu@gmail.com>
1770
1771 * lisp.h (Qdelete_directory_internal):
1772 Declare, instead of Qdelete_directory.
1773
1774 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1775
9d28c33e
SM
17762009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1777
1778 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1779
9d8f3bd9
MA
17802009-10-01 Michael Albinus <michael.albinus@gmx.de>
1781
9d28c33e 1782 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1783 Fdelete_directory. It is not a command anymore. It has no file
1784 name handler.
1785
9694740b
SM
17862009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1787
1788 * xdisp.c (get_next_display_element): Use an enum in last change.
1789
748e162f
KH
17902009-09-28 Kenichi Handa <handa@m17n.org>
1791
9694740b 1792 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1793 unibyte_display_via_language_environment in handling
1794 Vnobreak_char_display.
1795
17efd58d
AR
17962009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1797
1798 * nsterm.h (ns_app_name): New extern variable.
1799
1800 * nsterm.m (ns_app_name): New variable.
1801 (ns_term_init): Set and use it.
1802 (ns_term_shutdown): Use it.
1803
1804 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1805 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1806
1807 * nsfns.m (ns_set_name_iconic, ns_set_name)
1808 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1809 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1810
9694740b
SM
1811 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1812 Remove double-casting in client_data comparison.
31c2d412 1813
3208cb35
YM
18142009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1815
1816 * keyboard.c (make_lispy_event): Remember last wheel direction.
1817 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1818
b7d552d6
GM
18192009-09-26 Glenn Morris <rgm@gnu.org>
1820
1821 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1822 internal.elc. Add term/pc-win.elc.
1823 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1824 term/x-win.elc.
1825 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1826 term/w32-win.elc.
1827 (NS_SUPPORT): New.
1828 (lisp): Add NS_SUPPORT.
1829 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1830
4ff670a8
DR
18312009-09-25 David Reitter <david.reitter@gmail.com>
1832
1833 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1834 on Mac OS X 10.6+ (bug#4513).
1835
feabfb6c
JB
18362009-09-24 Juanma Barranquero <lekktu@gmail.com>
1837
1838 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1839 some parts of Emacs code (like font selection) don't grok them.
1840 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1841
de59072a
AS
18422009-09-24 Andreas Schwab <schwab@redhat.com>
1843
1844 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1845
a489517b
JB
18462009-09-24 Juanma Barranquero <lekktu@gmail.com>
1847
1848 * dired.c (Fdirectory_files): Fix typo in docstring.
1849
0592970c
AR
18502009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1851
1852 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1853 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1854 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1855 under GNUstep.
1856 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1857
1858 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1859 glyph advancement.
1860
48e8a88b
AR
18612009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1862
1863 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1864 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1865
1866 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1867 deleted (bug #4492).
1868
e14f0a78
AR
1869 * nsfont.m (Vns_reg_to_script): New lisp variable.
1870 (syms_of_nsfont): Declare it.
1871 (ns_registry_to_script): New function.
1872 (ns_get_req_script): Call it.
1873 (ns_findfonts): Don't give up on non-unicode registry.
1874
1875 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1876
5b650faa
SM
18772009-09-20 Tom Tromey <tromey@redhat.com>
1878
1879 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1880 batch mode (bug#4228).
1881
a489517b 18822009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1883
1884 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1885 carefully. (Bug #4339)
0bae4e09 1886
fcfe06f3
CY
18872009-09-18 Chong Yidong <cyd@stupidchicken.com>
1888
d798ba87 1889 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1890
31642728
AR
18912009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1892
1893 * emacs.c (inhibit_x_resources): Update doc string for NS.
1894 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1895 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1896
1897 * nsterm.h (ns_no_defaults): Remove.
1898
1899 * nsterm.m (ns_no_defaults): Remove.
1900 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1901 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1902 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1903 don't update the NSWindow itself.
1904 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1905 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1906
1907 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1908 ns_use_qd_smoothing.
1909
1910 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1911 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1912 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1913 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1914
8686ac71
JB
19152009-09-17 Juanma Barranquero <lekktu@gmail.com>
1916
1917 * emacs.c (inhibit_x_resources): New variable.
1918 (main) [HAVE_NS]: Don't process --quick command line option.
1919 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1920
1921 * lisp.h (inhibit_x_resources): Declare it extern.
1922
1923 * w32reg.c (x_get_string_resource):
1924 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1925
e227ba05
EZ
19262009-09-17 Eli Zaretskii <eliz@gnu.org>
1927
362654a6
JB
1928 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1929 Add lisp/term/internal.elc.
e227ba05 1930
742d40e8
SM
19312009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1932
1933 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1934 (bug#4461).
1935
005bd5a2
DN
19362009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1937
1938 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1939
1940 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1941 (OBJECTS_MACHINE): Remove, unused.
1942
f9af9719
SM
19432009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1944
1945 * frame.c (x_get_resource_string): Remove unused.
1946
0307c7d2
JD
19472009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1948
1949 * xterm.c (x_new_font): Call change_frame_size before calling
1950 x_set_window_size, in case frame size won't change.
1951
1952 * frame.c (x_set_font): Remove dead code.
1953
428b13d6
SM
19542009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1955
1956 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1957
5766c380
SM
19582009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1959
1960 * lread.c (Fload): Don't output a message after loading an obsolete
1961 package any more (done in Lisp now).
1962
2fd0161b
CY
19632009-09-12 Chong Yidong <cyd@stupidchicken.com>
1964
1965 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1966
bc5e75b6
SM
19672009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * keymap.c (Fwhere_is_internal): Use nconc2.
1970
c31c985e
AM
19712009-09-11 Alan Mackenzie <acm@muc.de>
1972
1973 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1974 batch mode.
1975
78012bd2
AS
19762009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1977
1978 * xdisp.c (display_mode_element): Detect cycles.
1979
9d889332
SM
19802009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1981
1982 * keymap.c (where_is_internal): Don't erroneously return nil right after
1983 filling the cache.
1984 (where_is_internal_1): Fix up typo.
1985
7ab5d780
GM
19862009-09-11 Glenn Morris <rgm@gnu.org>
1987
1988 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1989 share a common doc-string.
1990
5238a749
SM
19912009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1992
66d77eda
SM
1993 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1994 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1995
5238a749
SM
1996 * keymap.c (QCadvertised_binding): New constant.
1997 (syms_of_keymap): Initialize it.
1998 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1999 if applicable.
2000
19f48442
SM
20012009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2002
50d4ba39
SM
2003 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2004 (parse_menu_item): Streamline since bindings are recomputed all the
2005 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2006 more and don't support lmenu's menu-alias any more either.
2007
a88a5372
SM
2008 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2009 (where_is_internal): Strip it down to only traverse the keymaps.
2010 Move the cache handling from Fwhere_is_internal to here.
2011 (Fwhere_is_internal): Move the handling of remapping and the choice of
2012 the best binding from where_is_internal to here.
2013 Unify the cached/noncached paths, so remapping is also handled
2014 correctly when the cache is used, and so the cache can be used to
2015 speed up remap-handling when applicable.
2016 Give preference to non-remapped bindings.
2017 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2018 non-remapped bindings.
2019 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2020 command remapping.
2021
19f48442
SM
2022 * xdisp.c (display_mode_element): Move list length limit from 50 to
2023 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2024
599498c3 20252009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2026
2027 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2028
f9b7b5ac
SM
20292009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2030
a53af587
JB
2031 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2032 (Bug#4334)
2033
f9b7b5ac
SM
2034 * keymap.c (where_is_internal): Filter out shadowed remappings.
2035 Assume that where_is_internal returns unshadowed bindings to simplify
2036 the code and get rid of the gotos. Use ASIZE.
2037
04f4b72d
JD
20382009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2039
4da146f2
JD
2040 * xterm.c (x_focus_changed): If we get a focusout and pointer
2041 is invisible, make it visible.
2042
04f4b72d
JD
2043 * xterm.h: Remove condition for declaration of
2044 x_*_window_to_frame.
2045
7cef7ce3
SM
20462009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2047
2048 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2049 initial terminal as well.
2050
a54fa5b7
JD
20512009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2052
2053 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2054 x_menubar_window_to_frame.
a54fa5b7
JD
2055
2056 * xterm.c: Remove declarations also in xterm.h
2057 (XTmouse_position): Do not return valid positions
2058 for clicks in the menubar and the toolbar for Gtk+.
2059
2060 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2061 if the widget for the event has the same top level as a frame,
2062 return the frame.
2063 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2064 internal windows, bug #4122.
2065 (x_non_menubar_window_to_frame): Remove.
2066
5a021dd0
GM
20672009-09-02 Glenn Morris <rgm@gnu.org>
2068
2069 * buffer.c (default-major-mode): Move most of the doc from here...
2070 (major-mode): ... to here.
2071
548fe2f3
NR
20722009-08-30 Nick Roberts <nickrob@snap.net.nz>
2073
2074 * process.c (wait_reading_process_output): Keep the descriptor
2075 when pty is used by a non-child process, e.g., in I/O buffer of
2076 GDB this allows inferior to be restarted.
2077
e0840eef
EZ
20782009-08-29 Eli Zaretskii <eliz@gnu.org>
2079
2080 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2081 both branches into one.
2082
82e98df4
SM
20832009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2084
2085 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2086 (main): Use enable-multibyte-characters rather than
2087 default-enable-multibyte-characters. Output a warning message when
2088 running a unibyte session.
2089
890617cb
YM
20902009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2091
2092 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2093 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2094 (copy_data_segment): Also copy __program_vars section.
2095 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2096 (dump_it) [LC_DYLD_INFO]: Use it.
2097
2098 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2099
e7adeadc
EZ
21002009-08-28 Eli Zaretskii <eliz@gnu.org>
2101
2102 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2103 $(SRC)/buildobj.h.
2104 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2105 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2106 $(SRC)/buildobj.h.
2107 (clean): Add buildobj.h.
2108
3ed8bbdc
TZ
21092009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2110
2111 * print.c (print_object): Set escapeflag to 1 when printing
2112 hashtable keys and values.
2113
155a6764
SM
21142009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2115
2116 * lread.c (read_integer): Use doubles (and potentially return a float
2117 number) as we do in string-to-number.
2118 (read1): Use strtol to read integers, signal errors on strtol's
2119 overflow and use floats if strtol's output is too large for
2120 Elisp integers.
2121
877610de
EZ
21222009-08-27 Eli Zaretskii <eliz@gnu.org>
2123
2124 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2125 (make-buildobj-SH): Fix last change.
2126 (SRC): Move to before where it's first used.
2127
ef73e7be
KH
21282009-08-27 Kenichi Handa <handa@m17n.org>
2129
550c8289
KH
2130 * process.c (send_process): Use encode_coding_object instead of
2131 encode_coding_string to perform eol-conversion even if the string
2132 is unibyte.
2133
60afa08d
KH
2134 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2135 character.
2136
ef73e7be 2137 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2138 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2139
7b3a82d7
DN
21402009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2141
5654bf63
DN
2142 * callproc.c (Fcall_process): Remove always true #if.
2143
7b3a82d7
DN
2144 * lisp.h: Replace #if 0 code for checking with text pointing to
2145 the --enable-checking configure flag.
2146
2147 * emacs.c (main): Mention the --enable-profiling configure flag
2148 instead of using CFLAGS.
2149
878bde49
KR
21502009-08-26 Ken Raeburn <raeburn@raeburn.org>
2151
2152 * Makefile.in (buildobj.h): New target.
2153 (doc.o): Depend on it.
2154 (temacs${EXEEXT}): Don't generate buildobj.lst.
2155 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2156 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2157 ($(BLD)/doc.$(O)): Depend on it.
2158 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2159 provided by Eli Zaretskii.)
2160 ($(TEMACS)): Don't generate buildobj.lst.
2161 * doc.c: Include buildobj.h.
2162 (buildobj): New static variable.
2163 (Fsnarf_documentation): Use it, instead of opening and reading
2164 buildobj.lst.
2165
1574224c
MA
21662009-08-25 Michael Albinus <michael.albinus@gmx.de>
2167
2168 * dbusbind.c (Fdbus_call_method)
2169 (Fdbus_call_method_asynchronously): Use English numeric format for
2170 timeout values in doc string.
2171
d9da2f45
KH
21722009-08-25 Kenichi Handa <handa@m17n.org>
2173
ef73e7be
KH
2174 * alloc.c (mark_char_table): New function.
2175 (mark_object): Use mark_char_table for a char-table.
2176
d9da2f45
KH
2177 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2178 (CHAR_TABLE_REF): Use it.
2179
c8edcc01
KR
21802009-08-23 Ken Raeburn <raeburn@raeburn.org>
2181
2182 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2183 before invoking the newly build emacs to check for load-path
2184 shadowing.
2185
7763401b
GM
21862009-08-22 Glenn Morris <rgm@gnu.org>
2187
2188 * Makefile.in (bootstrap_exe): New variable.
2189 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2190 Use ${bootstrap_exe}.
2191
729eadda
EZ
21922009-08-22 Eli Zaretskii <eliz@gnu.org>
2193
2194 * coding.h (encode_coding_string): Don't encode unibyte strings.
2195 (Bug#4047)
2196
eb4c6ace
MA
21972009-08-22 Michael Albinus <michael.albinus@gmx.de>
2198
2199 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2200
2201 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2202 intended as hotfix only.
2203 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2204
36e34d1b
AR
22052009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2206
2207 * nsterm.m (ns_get_color): Update documentation properly for last
2208 change, and clean up loose ends in the code left by it. Fix
2209 longstanding bug with 16-bit hex parsing, and add support for
2210 yet another X11 format (rgb:r/g/b) for compatibility.
2211 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2212 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2213
f983eb8a
SM
22142009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2215
2216 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2217
3f56d3c6
MA
22182009-08-20 Michael Albinus <michael.albinus@gmx.de>
2219
2220 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2221 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2222 (xd_initialize, xd_pending_messages): Check, whether
2223 $DBUS_SESSION_BUS_ADDRESS is set.
2224
fb641d68
YM
22252009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2226
2227 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2228
2229 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2230
cf59a374
GM
22312009-08-20 Glenn Morris <rgm@gnu.org>
2232
2233 * emacs.c (system-type): Doc fix.
2234
1373f3be
SM
22352009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2236
2237 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2238 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2239
058ed861
MA
22402009-08-18 Michael Albinus <michael.albinus@gmx.de>
2241
1373f3be
SM
2242 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2243 New functions.
058ed861
MA
2244 (xd_initialize): Revert change from 2009-08-16.
2245
563a866e 22462009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2247
2248 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2249 font-group vector, return nil.
5fc05db0 2250
e42bdf01
CY
22512009-08-17 Chong Yidong <cyd@stupidchicken.com>
2252
2253 * process.c (status_notify): Don't perform redisplay.
2254 (Fdelete_process, list_processes_1, process_send_signal):
2255 Expliticly perform redisplay.
2256 (wait_reading_process_output): Always check process status, but
2257 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2258
4230ab74
KR
22592009-08-17 Ken Raeburn <raeburn@raeburn.org>
2260
1373f3be 2261 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2262 (XFLOAT_INIT): New macro for storing a float value.
2263 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2264 * fns.c (sxhash): Copy out the value of a float in order to
2265 examine its bytes.
2266 * dbusbind.c (xd_append_arg): Likewise.
2267
4230ab74
KR
2268 * emacs.c (main): Don't call syms_of_data twice.
2269
a0645cdd
MA
22702009-08-16 Michael Albinus <michael.albinus@gmx.de>
2271
2272 * dbusbind.c (xd_initialize): Add connection file descriptor to
2273 input_wait_mask, in order to let select() detect, whether a new
2274 message has been arrived.
ca4f31ea 2275 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2276
485db0ba
MA
22772009-08-15 Michael Albinus <michael.albinus@gmx.de>
2278
1373f3be
SM
2279 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2280 New functions.
485db0ba
MA
2281
2282 * lisp.h (xd_pending_messages): Declare.
2283
2284 * keyboard.c (readable_events): Call xd_pending_messages.
2285
b5b98ff4
CY
22862009-08-15 Chong Yidong <cyd@stupidchicken.com>
2287
1373f3be 2288 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2289
f8354c6e
CY
2290 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2291
b5b98ff4
CY
2292 * buffer.c (set_buffer_internal_1)
2293 (swap_out_buffer_local_variables): Check for unbound local
2294 variables (Bug#4138).
2295
8b9fc636
EZ
22962009-08-14 Eli Zaretskii <eliz@gnu.org>
2297
2298 * process.c (create_pty): Fix last change.
2299
ce959360
CY
23002009-08-13 Chong Yidong <cyd@stupidchicken.com>
2301
2302 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2303 (xbm_load_image): Caller changed.
64b807c9 2304 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2305
c7baf7e9
NR
23062009-08-13 Nick Roberts <nickrob@snap.net.nz>
2307
2308 * process.c (create_pty): New function.
2309 (Fstart_process): Use it to allow Emacs to just associate a pty
2310 with the buffer. See associated change in gdb-mi.el.
2311 (list_processes_1): Deal with no program name.
2312 (start_process_unwind): Use pid == -2 to mean no process.
2313
1ac9108a
SM
23142009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2315
2316 * cmds.c (nonundocount): New global variable.
2317 (keys_of_cmds): Initialize it.
2318 (Fself_insert_command): Use it to combine upto 20 sequential chars
2319 into a single undo entry, just like the Qself_insert_command code in
2320 keyboard.c does.
2321 Call frame_make_pointer_invisible, also like the Qself_insert_command
2322 code in keyboard.c does.
2323 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2324 than its own local replacement for it.
2325
e267324c
KR
23262009-08-10 Ken Raeburn <raeburn@raeburn.org>
2327
1ac9108a 2328 * fns.c (concat): Don't re-set string length to its current value.
77437343 2329
1ac9108a
SM
2330 * coding.h (decode_coding_string, encode_coding_string):
2331 Use SBYTES macro.
f0bed503 2332
1ac9108a 2333 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2334 (doprnt): Merge with doprnt1, discarding lispstrings code.
2335 * lisp.h (doprnt_lisp): Don't declare.
2336
416e006d
JL
23372009-08-07 Juri Linkov <juri@jurta.org>
2338
2339 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2340
6f7d5780
DN
23412009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2342
2343 * print.c (syms_of_print): Undo previous change.
2344
f19a0f5b
TZ
23452009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2346
2347 * lread.c (read1, syms_of_lread): Read hashtables back from the
2348 readable format.
2349
2350 * print.c (print_preprocess, print_object): Print hashtables fully
2351 and readably.
2352 (syms_of_print): Provide 'hashtable-print-readable.
2353
b9173dc2
AR
23542009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2355
2356 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2357 no family set.
2358 (nsfont_open): Handle case when entity has no family.
2359
1586503c
AR
23602009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2361
2362 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2363 element, not a list, for match case.
2364
087048cd
KH
23652009-07-28 Kenichi Handa <handa@m17n.org>
2366
2367 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2368 rigidly.
2369
2370 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2371 font_parse_xlfd. Check font properties more rigidly.
2372
780c2506
DN
23732009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2374
31fd7c5c
JB
2375 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2376 bsd-common.h.
780c2506 2377
a8c0cc18
KH
23782009-07-27 Kenichi Handa <handa@m17n.org>
2379
2380 * xfaces.c (face_with_height): Call font_clear_prop.
2381
4fbe2306
CY
23822009-07-26 Chong Yidong <cyd@stupidchicken.com>
2383
111d9af3
CY
2384 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2385
2386 * xterm.c (x_term_init): Use Qx.
2387
4fbe2306
CY
2388 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2389
1ac9108a 2390 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2391 (ns_get_color): Revert 2009-07-16 change.
2392
beb0b7f9
EZ
23932009-07-25 Eli Zaretskii <eliz@gnu.org>
2394
2395 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2396 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2397
2baf5e76
KR
23982009-07-25 Ken Raeburn <raeburn@raeburn.org>
2399
1ac9108a
SM
2400 * coding.h (decode_coding_string, encode_coding_string):
2401 Use SCHARS macro.
8890e5f5 2402
2baf5e76 2403 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2404 (load_depth): Delete.
2baf5e76
KR
2405 (Qload_in_progress): New variable.
2406 (load_unwind): Don't reference load_depth or load_in_progress.
2407 (Fload): Likewise; specbind Qload_in_progress instead.
2408 (init_lread): Don't initialize load_depth.
2409 (syms_of_lread): Initialize and protect Qload_in_progress.
2410
1395c6f5
AR
24112009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2412
2413 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2414
4e2f36cf
AR
24152009-07-23 Yavor Doganov <yavor@gnu.org>
2416
2417 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2418
5dd9a6f7
AR
24192009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2420
2421 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2422 Bugs 3792, 3720, 2402.
2423 (ns_lookup_indexed_color): Check for bad index.
2424 (ns_index_color): Init unused slot to 0.
2425 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2426 Bug 3714, possibly 3082.
5dd9a6f7 2427
c902b920
JR
24282009-07-22 Jason Rumney <jasonr@gnu.org>
2429
1ac9108a
SM
2430 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2431 Position IME window at cursor (Bug#2570).
c902b920
JR
2432 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2433 (globals_of_w32fns): Dynamically load functions required above.
2434
2435 * w32term.c (w32_draw_window_cursor): Send message to reposition
2436 any IME window.
2437
090101cf
CY
24382009-07-21 Chong Yidong <cyd@stupidchicken.com>
2439
2440 * fileio.c: Revert 2009-07-16 changes.
2441 (Vauto_save_include_big_deletions): New variable.
2442 (Fdo_auto_save): Disable auto-save only if
2443 auto-save-include-big-deletions is nil.
2444
e6583e3d
CY
24452009-07-21 Chong Yidong <cyd@stupidchicken.com>
2446
2447 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2448 the overflowed pixels into account (Bug#3879).
2449
ece435a5
KR
24502009-07-21 Ken Raeburn <raeburn@raeburn.org>
2451
2452 * lread.c (load_depth): New variable.
2453 (Fload, load_unwind, init_lread): Set it to the load recursion
2454 depth; set load_in_progress as a simple boolean based on the
2455 current load_depth. (Bug#3892)
2456
40b2d973
AR
24572009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2458
2459 * nsfont.m (ns_has_attribute): Remove.
2460 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2461
10be7e0d
JL
24622009-07-18 Juri Linkov <juri@jurta.org>
2463
2464 * process.c (Fset_process_query_on_exit_flag): Mention killing
2465 a buffer in docstring.
2466
fa055055
KH
24672009-07-17 Kenichi Handa <handa@m17n.org>
2468
2469 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2470
042f7b69
YM
24712009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2472
2473 * nsfns.m (Fns_set_alpha): Remove function.
2474 (syms_of_nsfns): Don't defsubr it.
2475
2476 * nsterm.m (ns_get_color): Remove incompatible color formats.
2477 (ns_color_to_lisp): Generate #rrggbb color format string.
2478
4be941e3
RS
24792009-07-16 Richard Stallman <rms@gnu.org>
2480
2481 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2482 (Fset_buffer_auto_saved): Handle save_length = -2.
2483
4e6b227d
CY
24842009-07-16 Chong Yidong <cyd@stupidchicken.com>
2485
2486 * xterm.c (Qx_gtk_map_stock): New var.
2487
2488 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2489 of calling intern each time.
2490
a1856973
YM
24912009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2492
2493 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2494 does tiling.
2495
2496 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2497
497e54d8
KH
24982009-07-14 Kenichi Handa <handa@m17n.org>
2499
72d36834
KH
2500 * font.c (font_vconcat_entity_vectors): New function.
2501 (struct font_sort_data): New member font_driver_preference.
2502 (font_compare): Check font_driver_preference.
2503 (font_sort_entities): The format of the first argument changed.
2504 (font_delete_unmatched): Likewise.
2505 (font_list_entities): The return type changed.
2506 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2507 (font_find_for_lface): Adjuste for the above changes.
2508 Don't suppress the checking of C even if the repertory supports it.
2509 (Flist_fonts): Adjust for the above changes.
72d36834 2510
1ac9108a
SM
2511 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2512 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2513 Reject a font who has adstyle property that is different from a
2514 langname derived from registry property.
1ac9108a 2515 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2516
b6046155
EZ
25172009-07-13 Eli Zaretskii <eliz@gnu.org>
2518
2519 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2520 local copy of dirfilename.
2521
fb6b6049
KH
25222009-07-13 Kenichi Handa <handa@m17n.org>
2523
e2402a5e
KH
2524 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2525 against max_char.
2526
fb6b6049
KH
2527 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2528 calling XSYMBOL (sym).
2529
65156807
EZ
25302009-07-11 Eli Zaretskii <eliz@gnu.org>
2531
1ac9108a
SM
2532 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2533 New function.
2534 (directory_files_internal) [WINDOWSNT]:
2535 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2536 the filesystem of the directory is fast or slow.
2537
2538 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2539 file name.
2540 (is_slow_fs): New function.
2541 (stat): Use it to determine whether to issue more system calls to
2542 get accurate file attributes, when w32-get-true-file-attributes is
2543 `local'.
2544
e0ab5fcf
JD
25452009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2546
2547 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2548 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2549 parameter font-parameter as default to the font dialog.
2550
784ceded
KH
25512009-07-10 Kenichi Handa <handa@m17n.org>
2552
2553 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2554
fb8edc0b
EZ
25552009-07-09 Eli Zaretskii <eliz@gnu.org>
2556
1ac9108a 2557 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2558
fb8edc0b
EZ
2559 * w32.c (stat): Treat UNC file names as residing on remote
2560 drives. (Bug#3542)
2561
635c75b1
KH
25622009-07-09 Kenichi Handa <handa@m17n.org>
2563
2564 * fontset.c (fontset_find_font): Fix previous change.
2565
c1d5ce94
MA
25662009-07-08 Michael Albinus <michael.albinus@gmx.de>
2567
2568 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2569 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2570 error flag.
2571
edb61b39
KH
25722009-07-08 Kenichi Handa <handa@m17n.org>
2573
374bf7e4
KH
2574 * fontset.c (fontset_find_font): Fix the logic of handling
2575 charset_matched.
2576 (font_for_char): Delete unused var.
2577 (generate_ascii_font_name): Delete it.
2578
edb61b39
KH
2579 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2580
2581 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2582 (encode_coding_sjis): Fix the code range check.
2583
0f3f018c
CY
25842009-07-07 Chong Yidong <cyd@stupidchicken.com>
2585
2586 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2587 (Fexpand_file_name): Copy string data properly (Bug#3772).
2588
fcaf6f3a
JD
25892009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2590
2591 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2592 first MapNotify.
2593
6809ca75
KH
25942009-07-07 Kenichi Handa <handa@m17n.org>
2595
2596 * character.h (unibyte_has_multibyte_table): Delete extern.
2597 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2598
2599 * charset.c (Fset_charset_priority): Update charset_unibyte.
2600 (syms_of_charset): Initialize charset_unibyte.
2601
2602 * character.c (unibyte_has_multibyte_table): Delete it.
2603 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2604 charset_unibyte.
2605 (multibyte_char_to_unibyte_safe): Likewise.
2606 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2607
1ac9108a 2608 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2609 (x_produce_glyphs): Likewise.
2610
2611 * .gdbinit (xcharset): Fix the treating $arg0.
2612
ad9e2d54
EZ
26132009-07-04 Eli Zaretskii <eliz@gnu.org>
2614
2615 Emulation of `getloadavg' on MS-Windows.
2616 * w32.c: Include float.h
2617 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2618 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2619 (get_native_system_info, get_system_times): New functions.
2620 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2621 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2622 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2623 g_b_init_get_system_times, and num_of_processors.
2624
0a3472c7
JR
26252009-07-03 Jason Rumney <jasonr@gnu.org>
2626
2627 * w32term.c (w32_initialize): Use standard types.
2628
80904120
EZ
26292009-07-03 Eli Zaretskii <eliz@gnu.org>
2630
2631 * dired.c (Ffile_attributes): Decode user and group names by the
2632 locale's encoding. (Bug#3443)
2633
6978862d
DN
26342009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2635
f8d23104
DN
2636 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2637 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2638
2639 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2640
2641 * term.c (init_tty): Remove spurious #ifdef.
2642
6978862d
DN
2643 * m/mips.h: Mention this file is also used for netbsd.
2644 * m/pmax.h: Remove file.
2645
e044e4fc
JD
26462009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2647
2648 * xterm.h (struct x_display_info): Add invisible_cursor.
2649 (struct x_output): Add current_cursor.
2650
2651 * xterm.c (XTtoggle_invisible_pointer): New function.
2652 (x_define_frame_cursor): Don't define cursor if invisible or the
2653 same as before. Set current_cursor.
2654 (x_create_terminal): Set toggle_invisible_pointer_hook.
2655
2656 * xfns.c (make_invisible_cursor): New function.
2657 (x_set_mouse_color): Call make_invisible_cursor.
2658 Set current_cursor.
2659 (x_window): Set current_cursor.
2660
2661 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2662
2663 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2664 inserting a character.
2665 (read_avail_input): Call frame_make_pointer_visible.
2666
2667 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2668 (frame_make_pointer_invisible, frame_make_pointer_visible):
2669 New functions.
e044e4fc
JD
2670 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2671
2672 * frame.h: Declare frame_make_pointer_invisible and
2673 frame_make_pointer_visible.
2674 (struct frame): Add pointer_invisible.
2675
574c8efa
JD
26762009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2677
7b507248
JD
2678 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2679 frame isn't visible.
2680 (xg_frame_resized): If width/height is -1, get size of window
2681 from X server.
2682
2683 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2684 for MapNotify.
2685
835bdaa7 2686 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2687 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2688 (flush_and_sync): Reintroduce.
574c8efa 2689
3f1c6666 26902009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2691
31fd7c5c 2692 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2693
2694 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2695 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2696
2697 * frame.h: Declare Qsticky.
2698
cad9ef74
JD
2699 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2700
2701 * nsfns.m (ns_frame_parm_handlers): Ditto.
2702
2703 * frame.c: Declare Qsticky.
2704 (frame_parms): Add sticky.
2705
2706 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2707
2708 * xterm.h: Declare x_set_sticky.
2709
2710 * xterm.c (x_set_sticky): New function.
2711
69b16610
JD
2712 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2713 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2714 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2715
2716 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2717
2718 * frame.c: Qmaximized is new.
2719 (x_set_frame_parameters): Do not handle fullscreen specially.
2720 Only set width and height if explicitly set.
2721 (x_set_fullscreen): Handle Qmaximized.
2722 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2723 (syms_of_frame): Initialize Qmaximized.
2724
1ac9108a
SM
2725 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2726 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2727
2728 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2729 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2730 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2731 set gravity to NorthWestGravity when USE_GTK.
2732 (set_wm_state): New function.
31fd7c5c 2733 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2734 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2735 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2736 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2737 to x_real_positions and x_fullscreen_adjust.
2738
2739 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2740 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2741 flush_and_sync.
2742 (xg_height_changed): New function.
2743 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2744 and gtk_window_set_policy. Set frame gravity after parsing the
2745 geometry string.
3f1c6666
JD
2746 (xg_update_frame_menubar, free_frame_menubar)
2747 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2748 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2749 Remove calls to xg_frame_set_char_size.
2750
fd503d99
KH
27512009-07-01 Kenichi Handa <handa@m17n.org>
2752
2753 * keyboard.c (decode_keyboard_code): New function.
2754 (tty_read_avail_input): Decode the input bytes if necessary.
2755
1ac9108a
SM
2756 * coding.c (setup_coding_system):
2757 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2758 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2759 use Qno_conversion.
2760
24ed93fb
YM
27612009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2762
2763 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2764
99061dfc
CY
27652009-06-30 Chong Yidong <cyd@stupidchicken.com>
2766
1ac9108a 2767 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2768
ff90fbde
JR
27692009-06-30 Jason Rumney <jasonr@gnu.org>
2770
2771 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2772 is already loaded.
2773 Set user model ID if supported (bug#1849).
2774
5f445726
JM
27752009-06-29 Jim Meyering <meyering@redhat.com>
2776
2777 Remove useless if-before-xfree test.
2778 * nsfont.m (nsfont_close): Remove useless test.
2779 * term.c (delete_tty): Likewise.
2780 * w32.c (system_process_attributes): Likewise.
2781 * w32font.c (w32font_close): Likewise.
2782 * xfaces.c (x_free_gc): Likewise.
2783 * xselect.c (buffer): Likewise.
2784
b9607587
AS
27852009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2786
2787 * process.c (send_process): Keep decoded string in a local
2788 variable and protect it from GC. (Bug#3521)
2789
89ba96f4
EZ
27902009-06-28 Eli Zaretskii <eliz@gnu.org>
2791
2792 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2793 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2794
098a1589
CY
27952009-06-28 Chong Yidong <cyd@stupidchicken.com>
2796
485422be
CY
2797 * xdisp.c (start_display, handle_face_prop)
2798 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2799 (redisplay_window, try_window_id, produce_image_glyph):
2800 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2801
098a1589
CY
2802 * xterm.c (x_update_window_begin, x_new_focus_frame)
2803 (x_scroll_bar_handle_click, handle_one_xevent)
2804 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2805 (x_make_frame_visible, x_make_frame_invisible)
2806 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2807 code chunks that are now obsolete.
2808
78c38319
MA
28092009-06-28 Michael Albinus <michael.albinus@gmx.de>
2810
2811 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2812 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2813 for hours, when optimzation is enabled.
2814 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2815 (xd_read_message): Make them static.
2816
4189ed40
CY
28172009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2818
2819 * term.c (turn_on_face): Allow simultaneously bold and dim
2820 terminal faces (Bug#3530).
2821
cd9b5e16
CY
28222009-06-27 Chong Yidong <cyd@stupidchicken.com>
2823
4e23bedb
CY
2824 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2825
cd9b5e16
CY
2826 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2827 truncation glyphs (Bug#3686).
2828
07cc3c35
GM
28292009-06-27 Glenn Morris <rgm@gnu.org>
2830
2831 * m/pmax.h: Restore file, with only netbsd portions.
2832
31fd7c5c 28332009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2834
cd9b5e16 2835 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2836
42d4a64f
KH
28372009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2838
2839 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2840 the arg FORCE_SYMBOL.
2841
930fe55b 28422009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2843
2844 * fontset.c (fontset_find_font): When a usable rfont_def is found
2845 in a fallback font-group, make it the first element of the group.
2846
57ebc3fd
CY
28472009-06-24 Chong Yidong <cyd@stupidchicken.com>
2848
2849 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2850
f084f942
KH
28512009-06-24 Kenichi Handa <handa@m17n.org>
2852
2853 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2854 set for C.
2855 (fontset_font): Record the availability of a font for C both in
2856 the realized fontsets of the current one and the default one.
2857
2f686c87
DN
28582009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2859
2860 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2861 conditional, it is always defined on AIX.
2862
666e158e
MB
28632009-06-23 Miles Bader <miles@gnu.org>
2864
2865 * window.c (Vrecenter_redisplay): New variable.
2866 (syms_of_window): Initialize it.
2867 (Qtty): New extern declaration.
2868 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2869
c6da7cd2
JM
28702009-06-23 Jim Meyering <meyering@redhat.com>
2871
1ac9108a
SM
2872 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2873 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2874 pointer dereferences are guaranteed to be valid.
c6da7cd2 2875
678dca3d
KH
28762009-06-23 Kenichi Handa <handa@m17n.org>
2877
74d75424
KH
2878 * emacs.c (main): Call init_font ().
2879
2880 * font.h (Vfont_log): Extern it.
2881 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2882
2883 * font.c (font_sort_entities, font_list_entities)
2884 (font_matching_entity, font_open_entity)
2885 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2886 (Vfont_log): Delete static.
2887 (font_log_env_checked): Delete this variable.
2888 (font_add_log): Don't check font_log_env_checked.
2889 (font_deferred_log): Check Vfont_log.
2890 (init_font): New function.
2891
678dca3d
KH
2892 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2893
2894 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2895
2896 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2897
2898 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2899
2900 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2901 (face_for_char): Don't call font_deferred_log here.
2902 (font_for_char): Likewise.
2903
8a668709
CY
29042009-06-22 Chong Yidong <cyd@stupidchicken.com>
2905
9a01ee33
CY
2906 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2907 rather than its background_width for drawing the overline and
2908 underline (Bug#489).
2909
2910 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2911 rather than its background_width for drawing the overline and
2912 underline (Bug#489).
ec7c9926
CY
2913 (xg_default_icon_file): New variable.
2914 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2915 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2916
8a668709
CY
2917 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2918 (load_overlay_strings): Remove externs.
2919 (fast_find_position): Function deleted.
2920 (mouse_face_from_buffer_pos): New function, based on
2921 fast_find_position. Correctly handle before-strings,
2922 display-strings, and after-strings (Bug#1220).
2923 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2924
4d4c02d8
CY
29252009-06-21 Chong Yidong <cyd@stupidchicken.com>
2926
1ac9108a 2927 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2928 (move_it_in_display_line_to, move_it_in_display_line_to)
2929 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2930
70243478
CY
29312009-06-21 Chong Yidong <cyd@stupidchicken.com>
2932
2933 * Branch for 23.1.
2934
13087e59
JR
29352009-06-21 Jason Rumney <jasonr@gnu.org>
2936
2937 * w32term.c (keyboard_codepage): New static variable.
2938 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2939 (w32_read_socket) [WM_CHAR]: Use it to decode character
2940 input (bug#3237).
2941 (w32_initialize): Initialize it.
2942 (codepage_for_locale): New function.
2943
4735b74e
KR
29442009-06-20 Ken Raeburn <raeburn@raeburn.org>
2945
2946 * process.c (status_message): Pass Faset index argument as a lisp
2947 object, so as to work with USE_LISP_UNION_TYPE.
2948
0e727afa
YM
29492009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2950
2951 * coding.c (Ffind_coding_systems_region_internal):
2952 Cache checked characters.
2953
cf299835
KH
29542009-06-18 Kenichi Handa <handa@m17n.org>
2955
1ac9108a 2956 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2957
90f20d94
AS
29582009-06-18 Andreas Schwab <aschwab@redhat.com>
2959
2960 * xdisp.c (redisplay_internal): Check that the frame is still
2961 live after redisplay of its windows.
2962 (redisplay_windows): Check that the window is still live.
2963
7f1faf1c
KH
29642009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2965
2966 * coding.c (detect_coding_utf_16): Fix previous change.
2967
cc13543e
KH
29682009-06-16 Kenichi Handa <handa@m17n.org>
2969
2970 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2971 UTF-16 by checking the dispersion of Eth and Oth bytes.
2972
977b85f4
AS
29732009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2974
2975 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2976
66bd43d1
KH
29772009-06-15 Kenichi Handa <handa@m17n.org>
2978
2979 * process.c (status_message): Fix previous change. Be sure to
2980 decode a localized string.
2981
cb5ca9c5
YM
29822009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2983
2984 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2985 add comment explaining why.
2986
ec7709ba 29872009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2988
ec7709ba 2989 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2990
4b7f335c
AR
29912009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2992
2993 * nsfont.m (ns_attribute_value): Remove.
2994 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2995 (ns_has_attribute): Shrink the normal range.
2996 (ns_findfonts): Don't worry about requested spec in determining
2997 need for synthItal.
e41820ee 2998 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2999
73b26103
SZ
30002009-06-14 Seiji Zenitani <zenitani@mac.com>
3001
3002 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3003
5753e4da
KH
30042009-06-11 Kenichi Handa <handa@m17n.org>
3005
3006 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3007 overhang for the static composition case.
3008
3561b671
KH
30092009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3010
5753e4da
KH
3011 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3012 overhang for the automatic composition case.
3013
3561b671
KH
3014 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3015 composition case.
3016
852bbd41
CY
30172009-06-10 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * xdisp.c (get_next_display_element): When handling wrap-prefix
3020 and line-prefix, treat \n as a control character (bug#3502).
3021
9903d1e6
KH
30222009-06-10 Kenichi Handa <handa@m17n.org>
3023
3024 * font.c (font_parse_family_registry): Fix for one-char foundry.
3025 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3026
0bcbaaaa
CY
30272009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3028
3029 * process.c (status_message): Fix handling of multibyte signal
3030 string (Bug#3499).
3031
40aa3f13
JM
30322009-06-09 Jim Meyering <meyering@redhat.com>
3033
1f80c7e2
CY
3034 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3035 color name is missing.
40aa3f13 3036
72d51285
KH
30372009-06-09 Kenichi Handa <handa@m17n.org>
3038
3039 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3040 FROM-CODE and TO-CODE are codepoints of CHARSET.
3041
c1d04d84
AR
30422009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3043
3044 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3045
30462009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3047
3048 Changes to support :script/:lang/:otf in NS font driver.
3049 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3050 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3051 indicate not part of font driver interface, and change callers.
3052 (ns_get_family): Remove pointless null check.
3053 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3054 ns_spec_to_descriptor, ns_descriptor_to_entity.
3055 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3056 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3057 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3058 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3059 (ns_get_req_script, ns_accumulate_script_ranges)
3060 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3061 New functions.
3062 (nsfont_list, nsfont_match): Use ns_findfonts.
3063 (nsfont_open): Use font descriptor instead of traits.
3064 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3065 (dump_glyphstring): Rename to ns_dump_glyphstring.
3066
c7eb9816
AR
3067 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3068
c1d04d84
AR
3069 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3070
3071 * fontset.c (fontset_from_font): Remove NS-specific code.
3072
ec7709ba 30732009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3074
3075 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3076 nonactive windows.
3077
31fd7c5c 30782009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3079
1ac9108a 3080 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3081
68852c13 30822009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3083
3084 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3085
6756cd1d
CY
30862009-06-07 Chong Yidong <cyd@stupidchicken.com>
3087
3088 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3089 account for the overflowing of newlines into the last glyph on the
3090 display line (Bug#3482).
3091
28bf482a
DR
30922009-06-05 David Reitter <david.reitter@gmail.com>
3093
ec7709ba
JB
3094 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3095 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3096 Fns_selection_exists_p, Fns_selection_owner_p.
3097
fdb55376
JR
30982009-06-03 Jason Rumney <jasonr@gnu.org>
3099
3100 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3101 available. (Bug#3379)
3102
05129fbe
KH
31032009-05-29 Kenichi Handa <handa@m17n.org>
3104
1ac9108a
SM
3105 * coding.c (get_translation_table):
3106 Check Venable_character_translation.
05129fbe 3107
ec7709ba 31082009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3109
ec7709ba
JB
3110 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3111 (x_make_frame_visible): Move frame to front rather than calling
15891144 3112 ns_raise_frame().
ec7709ba 3113 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3114 isn't key window.
ec7709ba 3115 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3116 drawRect may be called by NSView even if the frame is hidden.
3117
ec7709ba
JB
3118 * nsfns.m (Fx_create_frame): Follow other ports in
3119 determining visibility; default to t. Ensure async_visible is set.
15891144 3120
21f73755
EZ
31212009-05-23 Eli Zaretskii <eliz@gnu.org>
3122
3123 * dired.c (Ffile_attributes): Doc fix.
3124
34001e41
CY
31252009-05-22 Chong Yidong <cyd@stupidchicken.com>
3126
3127 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3128
46306a17
SM
31292009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3130
3131 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3132 and xfont_scratch_props.
3133 (syms_of_xfont): Do it here instead.
3134 (xfont_find_ccl_program): Delete, unused.
3135 (xfont_open): Delete unused var `i'.
3136
ef6e0694
KH
31372009-05-21 Kenichi Handa <handa@m17n.org>
3138
3139 * fontset.c (Qlatin): Don't make it static.
3140
46306a17
SM
3141 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3142 New functions.
ef6e0694
KH
3143 (xfont_scripts_cache, xfont_scratch_props): New variables.
3144 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3145 (xfont_list_pattern): Argument changed. Callers changed.
3146 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3147 (xfont_list): Don't reject a font spec with :script property.
3148 (xfont_has_char): Fix setting of encoding.
3149 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3150 xfont_scratch_props.
3151
31522009-05-19 Kenichi Handa <handa@m17n.org>
3153
46306a17 3154 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3155 Callers changed.
3156
31572009-05-18 Kenichi Handa <handa@m17n.org>
3158
3159 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3160
ac71ced7
SM
31612009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3162
3163 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3164 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3165
1c6d1051
YM
31662009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3167
3168 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3169 (x_delete_terminal): Dissociate resource database from display and
3170 then call XrmDestroyDatabase before closing display.
3171
9b9b779c
AR
31722009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3173
3174 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3175 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3176 whether selected frame is viable before raising it (based on patch
3177 by David Reitter), and improve commentary.
3178 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3179
cccd42d5
KH
31802009-05-15 Kenichi Handa <handa@m17n.org>
3181
3182 * font.c (Ffont_spec): Check arguments.
3183
337fbd17
CY
31842009-05-14 Chong Yidong <cyd@stupidchicken.com>
3185
3186 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3187 weight when testing attributes (Bug#3282).
3188
47a6002f
JD
31892009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3190
3191 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3192 what we expect to get in the next ConfigureNotify event.
3193
9cb363db
YM
3194 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3195 before Xft one (Bug#1696).
3196
b9126609
CY
31972009-05-07 David Reitter <david.reitter@gmail.com>
3198
3199 * nsfns.m (Fx_display_planes): Compute bitplanes using
3200 NSBitsPerPixelFromDepth (Bug#3207).
3201
27a69fd9
CY
32022009-05-10 Chong Yidong <cyd@stupidchicken.com>
3203
3204 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3205
00f37552
TTN
32062009-05-10 Ulrich Mueller <ulm@gentoo.org>
3207
3208 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3209
2d82a920
DR
32102009-05-07 David Reitter <david.reitter@gmail.com>
3211
ec7709ba
JB
3212 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3213 Respect mouse face background.
2d82a920 3214
46b0d52d
DR
32152009-05-07 David Reitter <david.reitter@gmail.com>
3216
ec7709ba
JB
3217 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3218 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3219 in ns_update_begin and ns_update_end.
3220
ce1b23bb
SM
32212009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3222
5996e1b7
SM
3223 * nsfns.m (ns_get_screen): Rewrite.
3224 Don't presume selected-frame is of type `ns'.
3225
ba98e3a0
SM
3226 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3227 all drivers.
3228
ce1b23bb
SM
3229 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3230
bcda200f
YM
32312009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3232
3233 * keyboard.h (add_user_signal): Fix typo in extern.
3234
3235 * lisp.h (add_user_signal): Remove extern.
3236
3237 * unexelf.c (unexec): Consider a section to precede the .bss section
3238 if its addresses overlap that of .bss.
3239 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3240 instead of dumping process.
3241
864660a2
SM
32422009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3243
3244 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3245
50da4e56
SM
32462009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3247
3248 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3249
51520a1a
DN
32502009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3251
3252 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3253 any statements.
3254
409ea3a1
AS
32552009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3256
59c4c60f
AS
3257 * process.c (read_process_output): Make sure the current buffer is
3258 always restored.
3259
409ea3a1
AS
3260 * coding.c (record_conversion_result): Don't modify
3261 Vlast_code_conversion_error for successful result.
3262 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3263
56f00ed2
KH
32642009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3265
3266 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3267 (load_charset_map): Remove unnecessary code.
56f00ed2 3268
4491c9d2
DR
32692009-04-30 David Reitter <david.reitter@gmail.com>
3270
35f5b128 3271 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3272 through f24.
3273
6970f632
CY
32742009-04-30 Chong Yidong <cyd@stupidchicken.com>
3275
3276 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3277
3278 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3279 face_at_buffer_position.
3280 (face_before_or_after_it_pos, get_next_display_element)
3281 (note_mouse_highlight): Update face_at_buffer_position call.
3282
3283 * term.c (term_mouse_highlight):
3284 * msdos.c (IT_note_mouse_highlight):
3285 * fontset.c (Finternal_char_font):
35f5b128 3286 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3287
3288 * dispextern.h (face_at_buffer_position): Update prototype.
3289
0c616f63
KH
32902009-04-30 Kenichi Handa <handa@m17n.org>
3291
35f5b128 3292 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3293
ad3aaf33
AS
32942009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3295
3296 * callproc.c (Fcall_process): Fix GC protection. Make sure
3297 current buffer is always restored.
3298
c3c963a0
YM
32992009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3300
3301 * atimer.c (init_atimer): Also clear stopped_atimers.
3302
3303 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3304
7e3386cb
YM
3305 * process.c (create_process): Clean up merger residues of
3306 2008-07-17 change.
3307
91f68422
CY
33082009-04-29 Ulrich Mueller <ulm@gentoo.org>
3309
3310 * lread.c (Vread_circle): New variable.
3311 (read1): Disable recursive read if Vread_circle is nil.
3312
24b34550
KH
33132009-04-29 Kenichi Handa <handa@m17n.org>
3314
3315 * fontset.h (set_default_ascii_font): Delete extern.
3316
3317 * fontset.c (set_default_ascii_font): Delete this unused function.
3318
3319 * frame.c (x_set_font): When ARG is a font-object, check if the
3320 font-object matches with the ASCII font-spec of the frame's
9c358bda 3321 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3322
77bf07e1
AS
33232009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3324
3325 * fns.c (Flocale_info): Protect vector from GC during decoding.
3326
3327 * process.c (Fstart_process): Protect argv strings from GC during
3328 encoding.
3329
2c55aacf
AS
33302009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3331
3332 * sysdep.c: Include <ctype.h>.
3333
b892d3c9
DR
33342009-04-27 David Reitter <david.reitter@gmail.com>
3335
35f5b128 3336 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3337 Remove commented-out code.
3338
9d0644c4
JB
33392009-04-26 Johan Bockgård <bojohan@gnu.org>
3340
3341 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3342
b7053016
JR
33432009-04-25 Jason Rumney <jasonr@gnu.org>
3344
3345 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3346
4e8231f3
YM
33472009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3348
3349 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3350 Swap bytes in short integer if fringe bitmap width > 8.
3351
493dcf2c
KH
33522009-04-23 Kenichi Handa <handa@m17n.org>
3353
3354 * xfaces.c (Fx_list_fonts): If a font size is specified in
3355 PATTERN, set it in returned scalable fonts.
3356
401e9e57
CY
33572009-04-22 Chong Yidong <cyd@stupidchicken.com>
3358
708e05dc
CY
3359 * keyboard.c (Fset_input_meta_mode): Doc fix.
3360
3361 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3362
1ac9108a 3363 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3364
3365 * coding.c (Fterminal_coding_system): Doc fix.
3366
3367 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3368 (Fx_display_pixel_height, Fx_display_planes)
3369 (Fx_display_color_cells, Fx_server_max_request_size)
3370 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3371 (Fx_display_mm_height, Fx_display_mm_width)
3372 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3373 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3374 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3375 (check_x_display_info): Handle terminal objects instead of
3376 terminal ids.
3377
401e9e57
CY
3378 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3379 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3380 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3381 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3382
df80c7f0
KH
33832009-04-21 Kenichi Handa <handa@m17n.org>
3384
5a8f12af 3385 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3386 (font_score): Check AVGWIDTH too.
908567ef 3387
df80c7f0
KH
3388 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3389 worst case.
1ac9108a
SM
3390 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3391 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3392
705af33f
JR
33932009-04-19 Jason Rumney <jasonr@gnu.org>
3394
3395 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3396 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3397
3398 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3399 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3400 get_phys_cursor_geometry.
3401
b71ac3dd 3402 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3403 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3404 using get_phys_cursor_geometry.
3405
3406 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3407 correctly calculated.
3408
dc2933eb
JD
34092009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3410
1ac9108a
SM
3411 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3412 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3413 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3414 is deprecated.
3415
973e7849
AS
34162009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3417
3418 * font.c (font_put_frame_data): Use xfree instead of free.
3419
314d66f4
JB
34202009-04-17 Juanma Barranquero <lekktu@gmail.com>
3421
3422 * w32font.c (Qja, Qko): Remove declarations.
3423 (syms_of_w32font): Don't DEFSYM them.
3424
cf702558
CY
34252009-04-17 Chong Yidong <cyd@stupidchicken.com>
3426
3427 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3428
3429 * font.h (Qja, Qko): Extern them.
3430
3431 * ftfont.c (Qja, Qko): Remove declarations.
3432
3433 * xfont.c (Qja, Qko): Remove declarations.
3434
b50504f5
KH
34352009-04-17 Kenichi Handa <handa@m17n.org>
3436
bde25748
KH
3437 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3438 string from a vector to handle Latin-1 characters correctly.
3439
b50504f5
KH
3440 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3441 entity even if the cache hits.
3442
f4646fff
AS
34432009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3444
3445 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3446 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3447
e7deaab0
AS
3448 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3449 * lisp.h: Adjust prototypes.
3450
0a0e7d49
CY
34512009-04-16 Chong Yidong <cyd@stupidchicken.com>
3452
3453 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3454 change (Bug#3003).
3455
3c908a57
KH
34562009-04-16 Kenichi Handa <handa@m17n.org>
3457
1ac9108a 3458 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3459
3460 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3461 adstyle.
3462
3463 * ftfont.c (Qja, Qko): Don't make them static.
3464 (enum ftfont_cache_for): New enum.
3465 (fc_charset_table): Undo the previous change.
3466 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3467 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3468 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3469 non-scarable font, try to get AVERAGE_WIDTH.
3470 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3471 Change ft_face_cache from a list of a hash-table. Don't check
3472 `ja' and `ko' adstyle here.
3473 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3474 FTFONT_CACHE_FOR_CHARET.
3475 (ftfont_get_charset): Undo the previous change.
1ac9108a 3476 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3477 (ftfont_close): Likewise.
3478 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3479
3480 * font.c (font_sort_entites): Change the meaning of the arg
3481 BEST-ONLY. Don't optimize for VEC of lenght 1.
3482 (font_select_entity): Just return the value of font_sort_entites.
3483
3484 * xfaces.c (merge_face_vectors): Reflect font properties in
3485 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3486 font_clear_prop if a face attribute doesn't change.
3487
3c908a57
KH
3488 * charset.h (charset_ksc5601): Extern it.
3489
3490 * charset.c (charset_ksc5601): New variable.
3491 (Fdefine_charset_internal): Set charset_ksc5601.
3492 (init_charset_once): Initialize charset_ksc5601 to -1.
3493
d65859c3
DN
34942009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3495
3496 * fileio.c (history_delete_duplicates): Remove unused declaration.
3497
3498 * callint.c (history_delete_duplicates): New declaration.
3499 (Fcall_interactively): Remove command history duplicates when
3500 history_delete_duplicates is true.
3501
3ba010e5
EZ
35022009-04-14 Eli Zaretskii <eliz@gnu.org>
3503
3504 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3505
06f19b91
KH
35062009-04-14 Kenichi Handa <handa@m17n.org>
3507
3508 * font.c (Ffont_info): Fix docstring. Fix the second element of
3509 the returned value (bug#2949).
3510
2cce8bfc
CY
35112009-04-14 Chong Yidong <cyd@stupidchicken.com>
3512
3513 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3514
d156542d
KH
35152009-04-14 Kenichi Handa <handa@m17n.org>
3516
3517 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3518 encoding charset is ascii_compatible.
3519
3520 * charset.c (Fdefine_charset_internal): Make charset
3521 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3522 code_offset is 0, and covers all ASCII characters.
3523
86fa089e
SM
35242009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3525
3526 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3527 (ns_string_to_pasteboard_internal):
3528 * nsmenu.m (process_dialog):
3529 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3530 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3531 * lisp.h (Fx_load_color_file): Declare.
3532
a8a3728b
KH
35332009-04-13 Kenichi Handa <handa@m17n.org>
3534
1ac9108a 3535 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3536 (font_select_entity): Suppress the code to optimize for the same
3537 kind of fonts.
3538 (font_load_for_lface): Get a font that supports at least ASCII
3539 characters.
3540
3541 * ftfont.c (Qja, Qko): New variables.
3542 (fc_charset_table): Delete uniquifier data for iso8859-1.
3543 (ftfont_get_latin1_charset): New function.
3544 (get_adstyle_property): New function.
3545 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3546 bitmap fonts.
3547 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3548 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3549 `ko' or `ja'.
3550 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3551 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3552 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3553 property.
3554 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3555 (syms_of_ftfont): DEFSYM Qja and Qko.
3556
483670b5
KH
35572009-04-09 Kenichi Handa <handa@m17n.org>
3558
12b55765
KH
3559 * charset.c (map_charset_chars): For a charset of `superset'
3560 method, fix calculation of code range.
3561
483670b5
KH
3562 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3563 from the list of extra properties.
3564 (font_clear_prop): Be sure to delete `:name' font property.
3565
57d3b93b
KH
35662009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3567
b4b2c2ca
YM
3568 * dispnew.c (redraw_overlapping_rows): Fix detection of
3569 overlapping for topmost and bottommost rows.
3570
1ac9108a 3571 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3572
472c3609
JR
35732009-04-06 Jason Rumney <jasonr@gnu.org>
3574
3575 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3576
ab193662
KH
35772009-04-06 Kenichi Handa <handa@m17n.org>
3578
3579 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3580
3581 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3582
0c26f026
KH
35832009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3584
3585 * ftfont.c (ftfont_open): Fix checking of the return value of
3586 FT_Load_Char. Fix setting font->underline_thickness.
3587
e173bbce
CY
35882009-04-04 Chong Yidong <cyd@stupidchicken.com>
3589
3590 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3591 (Fterminal_parameters, Fterminal_parameter)
3592 (Fset_terminal_parameter): In doc string, refer to terminal
3593 objects rather than terminal ids.
3594
693a2698
EZ
35952009-04-04 Eli Zaretskii <eliz@gnu.org>
3596
3597 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3598 ret_lim_data. (Bug#2867)
3599
d5221487
CY
36002009-04-03 Chong Yidong <cyd@stupidchicken.com>
3601
3602 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3603 so they don't get wider than the window, matching 2006-01-23
3604 change to the partner function in xdisp.c (Bug#2800).
3605
223509a3
KH
36062009-04-03 Kenichi Handa <handa@m17n.org>
3607
3608 * print.c (print_object): Make each lowest sub_char_table start a
3609 new line (Bug#2866).
3610
74fcd0b1
KH
36112009-04-02 Kenichi Handa <handa@m17n.org>
3612
3613 * fontset.c (fontset_font): Record no-font when a fontset
3614 explicitly tells not to try another font-specs.
3615
c542407d
SM
36162009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3617
3618 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3619
e3869731
KH
36202009-03-30 Kenichi Handa <handa@m17n.org>
3621
d8d2f142
KH
3622 * fontset.c (fontset_from_font): Specify only registry in a
3623 font-spec for all characters supported by that registry.
3624
e3869731
KH
3625 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3626 even if HAVE_M17N_FLT is not defined.
3627
5da5f805
CY
36282009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3629
3630 * ftfont.c: Conditionalize prototyping and use of
3631 ftfont_variation_glyphs.
3632
ab226c50
SM
36332009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3634
9628fed7
SM
3635 * frame.c (delete_frame): Work around compiler bug.
3636
3637 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3638 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3639 Some more EMACS_INT.
3640 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3641
3642 * xdisp.c (dump_glyph): Fix typo.
3643
ae19ba7c
SM
3644 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3645 (adjust_markers_gap_motion, adjust_markers_for_delete)
3646 (adjust_markers_for_insert, adjust_point)
3647 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3648 (make_gap, copy_text, count_size_as_multibyte, insert)
3649 (insert_and_inherit, insert_before_markers)
3650 (insert_before_markers_and_inherit, insert_1)
3651 (count_combining_before, count_combining_after, insert_1_both)
3652 (insert_from_string, insert_from_string_before_markers)
3653 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3654 (insert_from_buffer_1, adjust_after_replace)
3655 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3656 (replace_range_2, del_range, del_range_1, del_range_byte)
3657 (del_range_both, del_range_2, modify_region)
3658 (prepare_to_modify_buffer, signal_before_change)
3659 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3660 for buffer positions and sizes.
3661 * lisp.h: Adjust prototypes accordingly.
3662
3663 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3664 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3665 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3666
ab226c50
SM
3667 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3668
46dfb8fb
JD
36692009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3670
3671 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3672 lines and columns so we keep the same pixel height and width.
3673
3674 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3675 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3676 (x_handle_net_wm_state): New function to update frame parameter
3677 fullscreen.
3678 (x_term_init): Initialize atoms for _NET_WM_STATE.
3679
3680 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3681
d347e494
SM
36822009-03-27 Kevin Ryde <user42@zip.com.au>
3683
3684 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3685 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3686 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3687 (Fgpm_mouse_stop): Pass that new parameter.
3688 * termhooks.h (close_gpm): Adjust prototype.
3689
84db11d6
SM
36902009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3691
c95a5008
SM
3692 * lisp.h (Fx_focus_frame): Declare.
3693
84db11d6
SM
3694 * callint.c (Fcall_interactively): For '^' just delegate the work to
3695 handle-shift-selection.
3696 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3697
0a1958d6
CY
36982009-03-24 Chong Yidong <cyd@stupidchicken.com>
3699
0bfdff23
CY
3700 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3701
0a1958d6
CY
3702 * data.c (Qinteractive_form): New variable.
3703 (Finteractive_form): Use it.
3704
3705 * eval.c (Fcommandp): Use Qinteractive_form.
3706
58aec0d6
JR
37072009-03-24 Jason Rumney <jasonr@gnu.org>
3708
3709 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3710 Calculate total size precisely. Decode environment variables
3711 before substituting. (Bug#38)
3712
553dd618
KH
37132009-03-24 Kenichi Handa <handa@m17n.org>
3714
3715 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3716 encoding (Bug#2722).
553dd618 3717
c39ea606
JD
37182009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3719
3720 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3721 that gdpy is set.
3722
bc9b2b5e
AM
37232009-03-22 Alan Mackenzie <acm@muc.de>
3724
3725 * callint.c (Finteractive): Clarify the doc string - even
3726 promptless elements need \n separators.
3727
9f995a76
JR
37282009-03-22 Jason Rumney <jasonr@gnu.org>
3729
3730 * w32term.c (syms_of_w32term): Doc fix for
3731 x-use-underline-position-properties.
3732
22749e9a
EZ
37332009-03-21 Eli Zaretskii <eliz@gnu.org>
3734
3735 * w32.c (getpwuid): Change argument type to unsigned.
3736 (struct w32_id): Change type of `rid' member to unsigned.
3737 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3738 argument ID to unsigned. All callers changed.
3739 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3740
e00553bf
EZ
37412009-03-20 Eli Zaretskii <eliz@gnu.org>
3742
3743 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3744 negative, produce a float value.
3745
3746 * dired.c (make_uid, make_gid): New functions.
3747 (Ffile_attributes): Use them to avoid negative UID and GID.
3748
f761d6b6
JB
37492009-03-20 Juanma Barranquero <lekktu@gmail.com>
3750
3751 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3752 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3753 Fix typos in docstrings.
3754
d507f8d7
KH
37552009-03-19 Kenichi Handa <handa@m17n.org>
3756
3757 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3758 changed, use font_load_for_lface to get a new font object.
3759 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3760
3761 * frame.c (x_set_font): Handle the case that ARG is a cons.
3762
c68845e0
GM
37632009-03-19 Glenn Morris <rgm@gnu.org>
3764
3765 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3766
bfa49dd1
CY
37672009-03-19 Chong Yidong <cyd@stupidchicken.com>
3768
3769 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3770
8458d4c1
KH
37712009-03-19 Kenichi Handa <handa@m17n.org>
3772
3773 * charset.c (load_charset_map_from_file): When a mapfile can't be
3774 loaded, signal an error.
3775
78e7d1fe
EZ
37762009-03-18 Eli Zaretskii <eliz@gnu.org>
3777
3778 * dired.c (Ffile_attributes): Make sure UID and GID are always
3779 positive, even if the value is too large for a positive EMACS_INT.
3780 Doc fix.
3781
3782 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3783
5da9fdfa
YM
37842009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3785
3786 * xmenu.c (xdialog_show): Move Fredisplay call ...
3787 (Fx_popup_dialog): ... here.
3788
7519c40d
SM
37892009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3790
3791 * dired.c (file_name_completion): Disable the first optimization just
3792 installed, since it is not implemented correctly.
3793
2cd298e2
SM
37942009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3795
3796 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3797 only if the entry can affect bestmatch.
2cd298e2
SM
3798 Stop the search early, as Ftry_completion already does.
3799
48d37adf
CY
38002009-03-17 Chong Yidong <cyd@stupidchicken.com>
3801
e10c9c93 3802 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3803
9286b16a
CY
38042009-03-15 Chong Yidong <cyd@stupidchicken.com>
3805
3806 * keyboard.c (parse_menu_item): Don't display remappings as menu
3807 equivalent bindings (Bug#788).
3808
f7b146dc
JR
38092009-03-15 Jason Rumney <jasonr@gnu.org>
3810
3811 * w32term.h (WM_EMACS_PAINT): New message.
3812 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3813 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3814 before passing to lisp thread. (Bug#950)
3815
f761d6b6 38162009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3817
d93f9575
CY
3818 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3819 variable as it was never reset.
3820 (ns_term_init): Remove initialization of Lisp-settable defaults
3821 and ns_expand_space.
3822 (-setPanelFromDefaultValues): Remove ns_expand_space.
3823 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3824 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3825 i.e. no additional spacing, similar to Carbon port.
3826
d93f9575
CY
3827 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3828 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3829
305018ec
JD
38302009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3831
3832 * sound.c (alsa_configure): Remove call to deprecated
3833 snd_pcm_sw_params_set_xfer_align.
3834
f761d6b6 38352009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3836
3837 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3838 after clicking in a detached tool bar.
3839 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3840
46e722a9
SM
38412009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3842
348db3dd
SM
3843 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3844 int/Lisp_Object mixup).
46e722a9 3845
a3d16f39
KH
38462009-03-13 Kenichi Handa <handa@m17n.org>
3847
3848 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3849 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3850 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3851 (set_fontset_font): Change ARG to a vector. Handle range_list in
3852 ARG correctly.
3853 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3854 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3855 the above change.
3856 (fontset_from_font): Fix previous change.
fe24f56a 3857 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3858 entry. If FONTSET is the default fontset, don't set the extra
3859 slot of the returning char-table.
3860
b066e6b6
JB
38612009-03-12 Juanma Barranquero <lekktu@gmail.com>
3862
3863 * nsfns.m (Fx_close_connection): Doc fix.
3864 (Fns_do_applescript): Reflow docstring.
3865 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3866 (Fx_display_pixel_width, Fx_display_pixel_height)
3867 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3868 Fix typos in docstrings.
3869 (Fns_set_alpha): Fix typos in error messages.
3870
d472514e 38712009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3872
d472514e 3873 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3874 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3875 were used for such events.
3876
d472514e
JB
3877 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3878 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3879
d472514e 3880 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3881 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3882
fb930676
KH
38832009-03-11 Kenichi Handa <handa@m17n.org>
3884
ff85581a
KH
3885 * font.h (font_open_by_spec): Extern it.
3886
c50b7e98
KH
3887 * font.c (font_open_by_spec): New function.
3888 (font_open_by_name): Use font_open_by_spec.
3889
fb930676
KH
3890 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3891 fontset of the frame.
3892
3893 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3894 modify the default font of frames that use this fontset.
3895 (num_auto_fontsets): New variable.
3896 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3897 name. Be sure to set FONTSET_ASCII to the correct font name.
3898 (update_auto_fontset_alist): New function.
3899
df4e8455
JB
39002009-03-11 Juanma Barranquero <lekktu@gmail.com>
3901
3902 * makefile.w32-in: Update dependencies.
3903
0a375797
AR
39042009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3905
3906 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3907
61313fa3
SM
39082009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3909
3910 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3911
b55103fb
CY
39122009-03-10 Chong Yidong <cyd@stupidchicken.com>
3913
3914 * lread.c (Feval_buffer): Doc fix.
3915
dde2559c
KH
39162009-03-09 Kenichi Handa <handa@m17n.org>
3917
3918 * charset.c (Qfile_name_handler_alist): Extern it.
3919 (load_charset_map_from_file): Temporarily bind
3920 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3921
df4e8455 39222009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3923
47f588bb
GM
3924 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3925 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3926
4ddf94bd
AR
39272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3928
4c9bdfc2
AR
3929 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3930 (x_set_window_size): Change back to calculated method of setting
3931 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3932 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3933 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3934
fe41ae9e
AR
3935 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3936
4c9bdfc2
AR
3937 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3938 accelerator in parens under GNUstep.
3939
825d0875
KH
39402009-03-06 Kenichi Handa <handa@m17n.org>
3941
3942 These changes are to detect incorrect composition sequence without
f3b3be74 3943 looking ahead the source. (Bug#2370)
825d0875
KH
3944
3945 * coding.h: Include "composite.h".
3946 (enum compisition_state): New enum.
3947 (struct compisition_status): New struct.
3948 (struct iso_2022_spec): New member cmp_status.
3949 (struct emacs_mule_spec): New struct.
3950 (struct coding_system): New members ctext_extended_segment_len and
3951 embedded_utf_8. Change the union member
3952 spec.emacs_mule_full_support to spec.emacs_mule.
3953
3954 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3955 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3956 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3957 (ADD_COMPOSITION_DATA): New arg nbytes.
3958 (emacs_mule_char): New arg cmp_status.
3959 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3960 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3961 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3962 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3963 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3964 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3965 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3966 (EMACS_MULE_COMPOSITION_END): New macro.
3967 (emacs_mule_finish_composition): New function.
3968 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3969 (decode_coding_emacs_mule): Avoid long looking ahead while
3970 handling composition.
3971 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3972 (ENCODE_COMPOSITION_RULE): New macro.
3973 (finish_composition): New function.
3974 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3975 (DECODE_COMPOSITION_START): New implementation.
3976 (DECODE_COMPOSITION_END): Likewise.
3977 (STORE_COMPOSITION_RULE): New macro.
3978 (decode_coding_iso_2022): Avoid long looking ahead while handling
3979 composition, CTEXT extended segment, and embedded UTF-8.
3980 (setup_coding_system): For a coding of type iso-2022, reset
3981 CODING_ISO_EXTSEGMENT_LEN (coding) and
3982 CODING_ISO_EMBEDDED_UTF_8 (coding).
3983 (get_translation): Delete arguments last_block, from_nchars,
3984 to_nchars. Callers changed.
3985 (produce_chars): Don't modify charbuf. Adjusted for the change of
3986 get_translation.
98a326f7 3987 (produce_composition): Adjust for the new annotation sequence.
825d0875 3988 (handle_composition_annotation): Likewise.
98a326f7 3989 (consume_chars): Adjust for the change of get_translation.
825d0875 3990
ccbc4452
AR
39912009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3992
4ddf94bd 3993 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3994
988a7ddb
KH
39952009-03-05 Kenichi Handa <handa@m17n.org>
3996
3997 * font.c (font_select_entity): New function.
3998 (font_find_for_lface): Use font_select_entity to select a font.
3999
4000 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4001 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4002 font with C restriction.
4003
98a326f7 40042009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4005
be1bce46 4006 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4007
10ea2b82
JR
40082009-03-04 Jason Rumney <jasonr@gnu.org>
4009
2c93b248 4010 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4011 characters that have already been read. (Bug#2569)
2c93b248 4012
10ea2b82
JR
4013 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4014 Log an error message if check_image_size failed.
4015 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4016 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4017
71a0c011
EZ
40182009-03-02 Eli Zaretskii <eliz@gnu.org>
4019
4020 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4021 when decoding process output.
4022
2f63bba8
RS
40232009-03-01 Richard M Stallman <rms@gnu.org>
4024
4025 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4026
4027 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4028
0a9564cb
EZ
40292009-02-28 Eli Zaretskii <eliz@gnu.org>
4030
4031 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4032 (decode_coding_emacs_mule, decode_coding_iso_2022)
4033 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4034 (decode_coding_raw_text, decode_coding_charset)
4035 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4036 Honor inhibit-eol-conversion. (Bug #2186)
4037
449148b3
JR
40382009-02-28 Jason Rumney <jasonr@gnu.org>
4039
4040 * coding.c (detect_coding_charset): If not checking latin extra,
4041 fail on characters between 0x80 and 0xA0. (Bug#2354)
4042
a4aee864
EZ
40432009-02-28 Eli Zaretskii <eliz@gnu.org>
4044
4045 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4046 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4047
d88bee5a
GM
40482009-02-27 Glenn Morris <rgm@gnu.org>
4049
4050 * callint.c (Finteractive): Doc fix.
4051
a808f22d
KH
40522009-02-27 Kenichi Handa <handa@m17n.org>
4053
4054 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4055
caf8d60c
CY
40562009-02-27 Chong Yidong <cyd@stupidchicken.com>
4057
4058 * font.c (font_style_to_value): Set value for unknown symbols to
4059 100 instead of 255.
b61137ea
CY
4060 (weight_table, slant_table, width_table): Treat "unspecified" as
4061 the default value.
caf8d60c 4062
1a0de25c
JB
40632009-02-26 Juanma Barranquero <lekktu@gmail.com>
4064
4065 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4066
8fc45744
JB
40672009-02-25 Juanma Barranquero <lekktu@gmail.com>
4068
107bd7d1
JB
4069 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4070 error as soon as a recursive load is detected.
8fc45744 4071
f097e223
AR
40722009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4073
4074 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4075 before caching.
4076
8810a12f
KH
40772009-02-24 Kenichi Handa <handa@m17n.org>
4078
4079 * fontset.c (fontset_find_font): Fix the condition for checking
4080 unavailable font.
4081
2c7d1565
GM
40822009-02-24 Glenn Morris <rgm@gnu.org>
4083
4084 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4085 whitespace that confuses documentation.
4086
a20878b6
MB
40872009-02-23 Miles Bader <miles@gnu.org>
4088
4089 * process.c (Flist_system_processes, Fprocess_attributes)
4090 (syms_of_process): Rename `system-process-attributes' to
4091 `process-attributes'.
4092
b3b58c01
AS
40932009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4094
1b3b981b
AS
4095 * coding.h (struct coding_system): Make safe_charsets a pointer to
4096 unsigned char.
4097 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4098 being 255.
4099 (SAFE_CHARSET_P): Likewise.
4100 (setup_iso_safe_charsets): Properly setup safe_charsets.
4101 (Fdefine_coding_system_internal): Likewise.
4102 (setup_coding_system): Likewise. Remove unneeded casts.
4103 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4104 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4105 unneeded casts.
4106
b3b58c01
AS
4107 * insdel.c (del_range_2): Don't modify gap contents when called
4108 from decode_coding_object. (Bug#1809)
4109
0b6f228c
CY
41102009-02-21 Chong Yidong <cyd@stupidchicken.com>
4111
4112 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4113 Qfont_object.
4114 (Ftype_of): Recognize font objects.
4115
4116 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4117
4118 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4119 moved to data.c.
4120
52f8870b
AR
41212009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4122
4123 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4124 async_iconified. Based on a patch by Christian Lynbech
4125 <christian.lynbech@tieto.com>.
4126 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4127
7087d5e9
GM
41282009-02-20 Glenn Morris <rgm@gnu.org>
4129
4130 * syntax.c (Fskip_chars_forward): Fix doc typo.
4131
41d2ceef
CY
41322009-02-20 Chong Yidong <cyd@stupidchicken.com>
4133
4134 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4135
1a3b7ca6
CY
41362009-02-19 Chong Yidong <cyd@stupidchicken.com>
4137
4138 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4139
73cce38d
KH
41402009-02-19 Kenichi Handa <handa@m17n.org>
4141
4142 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4143 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4144
a51092ee
DN
41452009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4146
4147 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4148
c423ecca
KH
41492009-02-18 Kenichi Handa <handa@m17n.org>
4150
4151 * font.c (font_check_otf_features): Fix handling of `nil' element.
4152 (Ffont_spec): Describe :lang and :otf in the docstring.
4153
4c1958f4
AS
41542009-02-16 Andreas Schwab <schwab@suse.de>
4155
4156 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4157 string.
4158
5704f39a
KH
41592009-02-16 Kenichi Handa <handa@m17n.org>
4160
4161 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4162 (Bug#1723)
5704f39a 4163
8f0085aa
CY
41642009-02-14 Chong Yidong <cyd@stupidchicken.com>
4165
a057d86a 4166 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4167
4168 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4169 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4170
aff01dd9
EZ
41712009-02-14 Eli Zaretskii <eliz@gnu.org>
4172
4173 * msdos.c (MAX_SCREEN_BUF): New macro.
4174 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4175 Encode the entire run of glyphs sharing the same face, instead of
4176 doing that one glyph at a time (fixes a bug with displaying
4177 double-size characters).
4178
ba301db3
AR
41792009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4180
4181 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4182
4183 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4184 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4185 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4186
4187 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4188 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4189
51d861de
SM
41902009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4191
ac146f82 4192 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4193 invisible areas.
4194
7fed8996
JR
41952009-02-12 Jason Rumney <jasonr@gnu.org>
4196
631ea4fb
JR
4197 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4198 (add_font_entity_to_list): Call check_face_name even when family
4199 is unspecified.
4200
cb4a3e42
JR
4201 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4202 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4203 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4204
7fed8996 4205 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4206 raster fonts. (Bug#2219)
7fed8996 4207
895416e3
KH
42082009-02-12 Kenichi Handa <handa@m17n.org>
4209
4210 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4211 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4212 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4213 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4214 (find_automatic_composition): While looking forward and backward,
4215 check static composition. Fix where to stop looking forward.
4216 (composition_adjust_point): Fix checking of static composition.
4217 (Fcomposition_get_gstring): Pay attention to
1dacf998 4218 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4219
4220 * lisp.h (fast_looking_at): Extern it.
4221
4222 * search.c (fast_looking_at): New function.
4223
51d861de 4224 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4225 <struct glyph>.u.cmp.to.
4226 (append_composite_glyph): Likewise.
4227
51d861de 4228 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4229 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4230 composition.
51d861de 4231 (append_composite_glyph): Adjust for the change of
895416e3
KH
4232 <strcut glyph>.u.cmp.to.
4233
8510724d
JB
42342009-02-11 Juanma Barranquero <lekktu@gmail.com>
4235
4236 * casetab.c (init_casetab_once):
4237 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4238 * font.c (font_update_lface):
4239 * fontset.c (Fnew_fontset):
4240 * ftfont.c (ftfont_drive_otf):
4241 * xfont.c (xfont_open):
4242 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4243
294fa707
SM
42442009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4245
4246 * fileio.c (Fwrite_region): !NILP -> CONSP.
4247
b5bfebec
AS
42482009-02-10 Andreas Schwab <schwab@suse.de>
4249
4250 * process.c (send_process): Properly relocate pointer into data
adab88bd 4251 when using encoded data. (Bug#2272)
b5bfebec 4252
cb84a2be
KH
42532009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4254
4255 * coding.c (detect_coding_charset): Fix previous change.
4256
89e09428
JR
42572009-02-08 Jason Rumney <jasonr@gnu.org>
4258
4259 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4260 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4261
4470a277
AS
42622009-02-07 Andreas Schwab <schwab@suse.de>
4263
4264 * unexelf.c (unexec): Fix error message.
4265
3175b12a
AR
42662009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4267
4268 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4269 when modal window is active. (Bug #2152)
3175b12a
AR
4270 (applicationShouldTerminate:): Remove now-unneeded while loop
4271 around NSRunAlertPanel.
4272
4273 * nsmenu.m (popupSession): New file-global variable.
4274 (pop_down_menu): End the popupSession before closing dialog.
4275 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4276 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4277 don't query NSApp for events (just sleep instead).
4278
8434d0b8
EZ
42792009-02-07 Eli Zaretskii <eliz@gnu.org>
4280
51d861de
SM
4281 * coding.c (syms_of_coding) <translation-table-for-input>:
4282 Modify doc string to discourage use for character code unification.
8434d0b8 4283
aa82edfd
CY
42842009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4285
4286 * atimer.c (run_timers): Update pending_atimers.
4287
2d283c7c
CY
42882009-02-06 Chong Yidong <cyd@stupidchicken.com>
4289
eb306cab
CY
4290 * image.c (svg_load_image): Fix last change.
4291
2d283c7c
CY
4292 * xfns.c (Fx_create_frame): Signal an error if no font is
4293 found (Bug#2147).
4294
4d8e170e
JB
42952009-02-05 Juanma Barranquero <lekktu@gmail.com>
4296
4297 * character.c (syms_of_character) <script-representative-chars>:
4298 Fix typo in docstring.
4299
c96169a0
AR
43002009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4301
4302 * nsmenu.m (pop_down_menu): New function.
4303 (ns_popup_dialog): Call it on unwind.
4304 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4305 call timer_check() (Bug#2154).
4306 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4307 handling_signal is set.
4308 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4309
31fd7c5c 4310 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4311
4312 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4313
4314 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4315
51d861de
SM
4316 * keyboard.c (poll_for_input_1, handle_async_input):
4317 Set handling_signal under HAVE_NS.
c96169a0 4318
aacd8ba1
GM
43192009-02-04 Glenn Morris <rgm@gnu.org>
4320
4321 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4322
4cb75c4b
KH
43232009-02-04 Kenichi Handa <handa@m17n.org>
4324
4325 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4326
4327 * charset.c (Fchar_charset): New optional arg restriction.
4328
4329 * coding.h (coding_system_charset_list): Extern it.
4330
4331 * coding.c (coding_system_charset_list): New function.
4332
4333 * composite.c: Include coding.h and termhooks.h.
4334 (composition_gstring_p): Fix for the terminal case.
4335 (composition_gstring_width): Likewise.
4336 (fill_gstring_body): Likewise.
4337 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4338 the frame.
4339 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4340 is within a composition.
867d4bb3 4341 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4342
4343 * term.c (encode_terminal_code): Fix handling of composition.
4344 (produce_composite_glyph): For static composition, get pixel_width
4345 from struct composition.
4346
826ba17e
AS
43472009-02-02 Andreas Schwab <schwab@suse.de>
4348
4349 * unexelf.c (unexec): Handle unaligned bss offset.
4350
8ad093db
AR
43512009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4352
4353 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4354 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4355
8ad093db
AR
4356 * keyboard.c (handle_interrupt): Don't call
4357 quit_throw_to_read_char() under NS.
d0a76a6e 4358
8ad093db
AR
4359 * blockinput.h: Remove NS-specific code.
4360
4d18a7a2
DN
43612009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4362
db878925
DN
4363 * dispnew.c (window_change_signal): Don't try to get the size of a
4364 suspended tty frame.
4365 * term.c (Fresume_tty): Resize if the size has changed while the
4366 tty was suspended.
4367
4d18a7a2
DN
4368 * alloc.c (mark_stack): Properly conditionalize previous change.
4369
8984df7c
JB
43702009-01-30 Juanma Barranquero <lekktu@gmail.com>
4371
4372 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4373 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4374 Remove; this code is not used on Windows.
4375
75f4f1ac
EZ
43762009-01-30 Eli Zaretskii <eliz@gnu.org>
4377
4378 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4379 EOLs that also has stray ^M characters.
4380
07a1e794
JB
43812009-01-30 Juanma Barranquero <lekktu@gmail.com>
4382
4383 * atimer.c (run_timers, alarm_signal_handler):
4384 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4385 * w32inevt.c (w32_console_read_socket):
4386 * w32term.c (w32_read_socket):
4387 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4388
a8b11cc9
CY
43892009-01-30 Chong Yidong <cyd@stupidchicken.com>
4390
4391 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4392 Initialize it as a relative filename pattern.
4393 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4394 (Fcall_process_region): Simplify temp file creation using
4395 temporary-file-directory.
4396
c279587b
EZ
43972009-01-29 Eli Zaretskii <eliz@gnu.org>
4398
4399 * msdos.c: Rename pending_signals to msdos_pending_signals.
4400 (sig_suspender, sigprocmask): Adjust.
4401
a8fe3242
CY
44022009-01-29 Chong Yidong <cyd@stupidchicken.com>
4403
4404 * keyboard.c (pending_signals): New var.
4405 (poll_for_input, input_available_signal, init_keyboard): Set it.
4406 (process_pending_signals): New function.
4407
4408 * lisp.h (QUIT): Check pending_signals instead of
4409 interrupt_input_pending. Use process_pending_signals.
4410
51d861de 4411 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4412
51d861de 4413 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4414
4415 * sysdep.c (emacs_write): Use process_pending_signals.
4416
4417 * xterm.c (XTread_socket): Update pending_signals.
4418
4419 * w32term.c (w32_read_socket): Update pending_signals.
4420
4421 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4422
6570a1c4
KH
44232009-01-29 Kenichi Handa <handa@m17n.org>
4424
4425 * xftfont.c (xftfont_has_char): New function.
4426 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4427
d72a4afa
AR
44282009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4429
4430 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4431 under GNUstep.
4432 (ns_query_color): New declaration.
4433
4434 * nsterm.m (ns_confirm_quit): New variable.
4435 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4436 (EmacsApp-applicationShouldTerminate:): Use it.
4437 (EmacsPrefsController): Let user set it.
4438 (ns_query_color): New function.
4439 (ns_defined_color): Use it.
4440 (ns_initialize): Drop.
4441 (ns_term_init): Add two lines from ns_initialize(), and set
4442 input_interrupt_mode to nil.
4443
4444 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4445 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4446
9fe78804
KH
44472009-01-28 Kenichi Handa <handa@m17n.org>
4448
4449 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4450 (fontset_get_font_group): Remember that no font-group is specified
4451 for C.
9fe78804 4452
fa57de36
CY
44532009-01-27 Chong Yidong <cyd@stupidchicken.com>
4454
930600e9
CY
4455 * fns.c (concat): Check for string overflow (bug#1787).
4456
fa57de36
CY
4457 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4458 Quadruple undo limits (bug#1501).
4459
7179ce7b
KH
44602009-01-27 Kenichi Handa <handa@m17n.org>
4461
4462 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4463 directly use GT_Get_Char_index.
4464
4465 * xftfont.c (struct xftfont_info): New member `index'.
4466
4467 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4468 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4469
5be8fcc0
CY
44702009-01-26 Kenichi Handa <handa@m17n.org>
4471
4472 * fontset.c (fontset_find_font): Fix handling of non-cons return
4473 value of fontset_get_font_group.
4474 (fontset_font): Revert last change.
4475
19ae3e61
JR
44762009-01-26 Jason Rumney <jasonr@gnu.org>
4477
4478 * w32font.c (w32font_list_internal): Return quickly if registry is
4479 unknown. Simplify final return.
4480 (add_font_entity_to_list): Break complex logic down into more
4481 manageable chunks. Move unknown registry check to
4482 w32font_list_internal.
4483
8612b71a
AR
44842009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4485
4486 Changes to remove Feval calls from GUI under NS.
4487
d8038940
JB
4488 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4489 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4490 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4491
4492 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4493 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4494 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4495 instead of NON_ASCII_KEYSTROKE_EVENT.
4496 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4497 (EmacsApp-applicationShouldTerminate:): Query user.
4498 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4499 instead of Feval.
4500
4501 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4502
4503 * keyboard.c (kbd_buffer_get_event): Check for it.
4504 (keys_of_keyboard): Define lispy keys for
4505 ns-put/unput-working-text.
4506
4507 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4508 versions.
4509 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4510
6288ae55
CY
45112009-01-25 Chong Yidong <cyd@stupidchicken.com>
4512
4513 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4514 setting current_buffer directly. (Bug#2044)
6288ae55 4515
289e7f8f
CY
45162009-01-24 Chong Yidong <cyd@stupidchicken.com>
4517
5ce87308 4518 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4519 any work. (Bug#1952, bug#1990).
5ce87308 4520
64cc3cf6 4521 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4522
b3243e6f
AR
45232009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4524
4525 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4526 (ns_no_defaults): New declaration.
4527 (main): Use it.
e0d2e69a 4528
d900b2af 4529 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4530
d900b2af 4531 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4532
d900b2af
AR
4533 * nsterm.m (ns_no_defaults): New variable.
4534 (ns_initialize): Don't read defaults when ns_no_defaults.
4535 (EmacsView-readSelectionFromPasteboard:)
4536 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4537 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4538 (ns_dumpglyphs_stretch): New function.
4539 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4540 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4541
e0d2e69a
AR
4542 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4543
3ac71f5d
CY
45442009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4545
4546 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4547 call for Sparc64.
4548
3fe53a83
AR
45492009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4550
4551 * nsfns.m:
4552 * nsgui.h:
4553 * nsmenu.m:
4554 * nsselect.m:
4555 * nsterm.h:
4556 * nsterm.m: Remove '23' comments that indicated code added during
4557 update from emacs-20 -> emacs-23.
4558
10f87c6f 45592009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4560
4561 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4562 ns_alternate_modifier. (Bug#1217)
a3b53a85 4563
c7cef62d
AR
4564 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4565 Display all shortcuts, including those w/o super modifier.
4566
575fb8bd
AR
4567 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4568
918b848b
CY
45692009-01-22 Chong Yidong <cyd@stupidchicken.com>
4570
4571 * fileio.c (Vwrite_region_post_annotation_function)
4572 (Vwrite_region_annotation_buffers): New vars.
4573 (build_annotations_unwind): Just reset
4574 Vwrite_region_annotation_buffers.
4575 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4576 Call write-region-post-annotation-function.
4577 (build_annotations): Add to Vwrite_region_annotation_buffers if
4578 buffer changes.
4579
a39e2539
AR
45802009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4581
4582 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4583 Tiger.
51d861de
SM
4584 * nsfns.m (ns_do_applescript):
4585 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4586
35ed44db
AR
45872009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4588
4589 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4590
cbe0b5bf
AR
45912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4592
4593 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4594
6049d3a0
AR
4595 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4596
4597 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4598 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4599 handle Ctrl-tab. (Bug#1841)
4600 (ns_get_color): Use unsigned long long for scanned hex string value.
4601 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4602 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4603 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4604 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4605 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4606 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4607 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4608
d3810c21 4609 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4610 DPI. (Bug#1316)
d3810c21
AR
4611 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4612 values in onTiger section.
4c7077c3 4613
e301e634
CY
46142009-01-19 Chong Yidong <cyd@stupidchicken.com>
4615
7f82490b
CY
4616 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4617 Check return value of font_spec_from_name.
64cc3cf6 4618 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4619
4620 * font.c (font_spec_from_name): Return Qnil if font name could not
4621 be parsed.
4622 (font_parse_name): Treat a `?' character as part of an XLFD.
4623
e301e634
CY
4624 * fns.c (Fsubstring): Doc fix.
4625
1c0db158
KH
46262009-01-19 Kenichi Handa <handa@m17n.org>
4627
51d861de 4628 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4629 (ftfont_list): Likewise.
4630
acf20901
JB
46312009-01-18 Juanma Barranquero <lekktu@gmail.com>
4632
fff4e459
JB
4633 * dbusbind.c (Fdbus_register_signal):
4634 * process.c (conv_sockaddr_to_lisp):
4635 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4636
acf20901
JB
4637 * callproc.c (Fgetenv_internal): Doc fix.
4638
e7abcdfb
CY
46392009-01-16 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4642 it is not even used.
4643
b60861e6
GM
46442009-01-16 Glenn Morris <rgm@gnu.org>
4645
4646 * font.c (Ffont_variation_glyphs): Silence compiler.
4647
8db52afe
JB
46482009-01-15 Juanma Barranquero <lekktu@gmail.com>
4649
4650 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4651 Reported by David Robinow <drobinow@gmail.com>.
4652
4cddb209
KH
46532009-01-15 Kenichi Handa <handa@m17n.org>
4654
51d861de 4655 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4656
f247f67b
JR
46572009-01-14 Jason Rumney <jasonr@gnu.org>
4658
4659 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4660 never a fontset. (Bug#1562)
f247f67b 4661
f56a4450
KH
46622009-01-14 Kenichi Handa <handa@m17n.org>
4663
4664 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4665 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4666
4e99855e
CY
46672009-01-13 Chong Yidong <cyd@stupidchicken.com>
4668
4669 * font.c (font_clear_prop): If clearing the family, clear the font
4670 width index too.
4671
fff4e459 4672 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4673
24f01470
JB
46742009-01-12 Juanma Barranquero <lekktu@gmail.com>
4675
4676 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4677 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4678 functions, use sizeof.
4679
a41240a3
MR
46802009-01-12 Martin Rudalics <rudalics@gmx.at>
4681
4682 * keyboard.c (read_char): Fix case where last_nonmenu_event
4683 returned a bad value with submenus. (Bug#447)
4684
944636b8
CY
46852009-01-12 Chong Yidong <cyd@stupidchicken.com>
4686
4687 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4688 family, clear the font width index too.
4689
0dad7c6f
JR
46902009-01-11 Jason Rumney <jasonr@gnu.org>
4691
4692 * keyboard.c (cmd_error_internal): Exit when errors occur before
4693 frame creation and not in daemon mode. (Bug#1836)
4694
7c2363af
CY
46952009-01-10 Chong Yidong <cyd@stupidchicken.com>
4696
4697 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4698 of a display vector, backtrack.
4699 (try_window_reusing_current_matrix): Check glyph type before
4700 referencing charpos member.
4701
97b1b294
EZ
47022009-01-10 Eli Zaretskii <eliz@gnu.org>
4703
4704 Fix Bug #876:
4705
4706 * coding.c (inhibit_null_byte_detection): New variable.
4707 (detect_coding, detect_coding_system): Don't pay attention to null
4708 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4709 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4710 <inhibit-iso-escape-detection>: Doc fix.
4711
4624b6e3
JR
47122009-01-09 Jason Rumney <jasonr@gnu.org>
4713
4714 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4715 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4716 Only report Unicode Plane 2 fonts as unicode-sip.
4717
323b840c
CY
47182009-01-09 Chong Yidong <cyd@stupidchicken.com>
4719
51d861de
SM
4720 * xfaces.c (Fx_font_family_list): Delete function.
4721 Move compatibility version to faces.el.
323b840c 4722
51d861de 4723 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4724
eba7400d
MR
47252009-01-09 Martin Rudalics <rudalics@gmx.at>
4726
4727 * frame.c (x_set_frame_parameters): Remember requested value for
4728 fullscreen before it's reset by the parameter handler.
4729
4b09796d
GM
47302009-01-09 Glenn Morris <rgm@gnu.org>
4731
4732 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4733 (last_command_event): ... and update all users.
4b09796d
GM
4734 (last_input_char): For clarity, rename to...
4735 (last_input_event): ... and update all users.
4736 (last-command-char, last-input-char): Move to subr.el as aliases.
4737 * cmds.c, commands.h: Update for last_command_char rename.
4738
14ccea62
CY
47392009-01-08 Chong Yidong <cyd@stupidchicken.com>
4740
51d861de 4741 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4742
5f004711
JR
47432009-01-08 Jason Rumney <jasonr@gnu.org>
4744
4745 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4746 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4747 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4748 Don't declare.
fff4e459 4749 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4750 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4751
b71f6f73
KH
47522009-01-07 Kenichi Handa <handa@m17n.org>
4753
50b06221 4754 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4755 remember the coding system used for decoding in
50b06221
KH
4756 coding_system (Bug#1039).
4757
b71f6f73 4758 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4759 breaking the loop. (Bug#870)
b71f6f73
KH
4760 (decode_coding_utf_16, decode_coding_emacs_mule)
4761 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4762 (decode_coding_charset): Likewise.
4763
56f668f7
MR
47642009-01-05 Martin Rudalics <rudalics@gmx.at>
4765
4766 * frame.c (x_set_frame_parameters): Make sure height (width) get
4767 applied when fullwidth (fullheight) is set. (Bug#1522)
4768
5da9424d
JB
47692009-01-04 Juanma Barranquero <lekktu@gmail.com>
4770
4771 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4772 (utc_base): Declare as ULONGLONG, not long double.
4773 (convert_time_raw): Delete.
4774 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4775 (initialize_utc_base): New function.
4776 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4777 (convert_from_time_t): Use initialize_utc_base; compute result with
4778 64-bit arithmetic.
4779 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4780
c4605e09
EZ
47812009-01-03 Eli Zaretskii <eliz@gnu.org>
4782
9acef61c 4783 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4784 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4785 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4786 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4787 [!subprocesses]: Define.
4788 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4789 (Flist_system_processes, Fsystem_process_attributes)
4790 [!subprocesses]: Call list_system_processes and
4791 system_process_attributes instead of returning Qnil.
4792
9acef61c
JB
4793 * dosfns.c (system_process_attributes, list_system_processes):
4794 New functions.
c4605e09
EZ
4795
4796 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4797
4798 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4799 Don't use the default (no-op) implementation.
4800
8b7d0a16
JR
48012009-01-03 Jason Rumney <jasonr@gnu.org>
4802
a6d46bc1
JR
4803 * keyboard.c (parse_modifiers_uncached): Wheel events are
4804 clicks (bug#687).
4805
8b7d0a16
JR
4806 * w32term.c (x_query_colors, x_query_color): New functions.
4807
4808 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4809 (svg_load_image): Cast returned pointers from dynamically loaded
4810 functions. Eliminate W32 specific code.
4811
bfe11752
DN
48122009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4813
89e2438a
DN
4814 * nsfns.m (x_set_foreground_color, x_set_background_color)
4815 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4816 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4817 x_ prefix instead of ns_. Update references.
4818 (syms_of_nsfns): Add a FIXME comment.
4819
4820 * nsterm.m (x_set_cursor_type): New prototype.
4821 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4822
bfe11752
DN
4823 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4824 for Solaris instead of incorrectly providing Qutime and Qcutime.
4825
031da700
EZ
48262009-01-02 Eli Zaretskii <eliz@gnu.org>
4827
4828 * w32.c (process_times): Compute sum of utime and stime.
4829 (system_process_attributes): Add Qtime to the alist.
4830
4831 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4832 and add them to the alist.
4833
4834 * process.c (top level) <Qtime, Qctime>: New variables.
4835 (syms_of_process): staticpro them.
4836 (Fsystem_process_attributes): Add their documentation to the doc
4837 string.
4838
4839 * process.h: Declare Qtime and Qctime.
4840
df23bf08
JR
48412009-01-02 Jason Rumney <jasonr@gnu.org>
4842
9acef61c 4843 * image.c (Qgobject): New symbol.
df23bf08
JR
4844 (syms_of_image): Initialize it.
4845 (init_svg_functions): Load some functions from gobject library.
4846
5bbdf7aa
DN
48472009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4848
4849 * frame.c (make_terminal_frame): Remove redundant code and useless
4850 block.
4851
63136da6
AS
48522009-01-01 Andreas Schwab <schwab@suse.de>
4853
4854 * process.c (conv_sockaddr_to_lisp): Add workaround for
4855 getsockname bug on BSD.
4856
9ef69046
CY
48572009-01-01 Chong Yidong <cyd@stupidchicken.com>
4858
d6fafbe0
CY
4859 * xfns.c (x_create_tip_frame): Set border width of the X window.
4860
51d861de 4861 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4862
f9c34147
JR
48632009-01-01 Jason Rumney <jasonr@gnu.org>
4864
9acef61c 4865 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4866 Don't block input, as per earlier xterm.c changes.
4867
f5497e45
AR
48682008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4869
4870 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4871 (ns_appkit_version_int): New function.
4872 (x-server-version): Use ns_appkit_version_int and follow 21+
4873 convention of returning 3 integers.
4874
c19cab20
KH
48752008-12-30 Kenichi Handa <handa@m17n.org>
4876
4877 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4878 (CHAR_SURROGATE_PAIR_P): New macro.
4879
4880 * font.h (struct font_driver): New member get_variation_glyphs.
4881
9acef61c 4882 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4883 (Ffont_variation_glyphs): New function.
4884 (syms_of_font): Defsubr it.
4885
4886 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4887 ftfont_variation_glyphs.
4888 (setup_otf_gstring): New function.
4889 (ftfont_drive_otf): Use it.
4890 (ftfont_shape_by_flt): Handle variation selector.
4891 (ftfont_variation_glyphs): New function.
4892
28cd591f
MR
48932008-12-30 Martin Rudalics <rudalics@gmx.at>
4894
4895 * frame.c (Vemacs_iconified): Remove.
4896
7f714baf
JR
48972008-12-30 Jason Rumney <jasonr@gnu.org>
4898
4899 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4900 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4901
9d2d22ab
CY
49022008-12-30 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * indent.c (Fvertical_motion): Don't advance iterator if we have
4905 reseated to the desired position.
4906
4907 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4908 checking for pos match.
4909
545312c2
KH
49102008-12-30 Kenichi Handa <handa@m17n.org>
4911
1ede3eb6
KH
4912 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4913 just get the low 8-bit of the code.
4914
545312c2
KH
4915 * font.c (font_intern_prop): Validate str as multibyte.
4916
bd7bbf29
DN
49172008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4918
31e0750e
DN
4919 * dispextern.h (struct face): Move lface and hash from the middle
4920 of bitfields.
4921
bd7bbf29
DN
4922 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4923
b5672e7c
DN
49242008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4925
4926 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4927 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4928 instead of intervals.h.
4929
d704470f
AS
49302008-12-26 Andreas Schwab <schwab@suse.de>
4931
4932 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4933 cons.
4934
54b33868
MR
49352008-12-26 Martin Rudalics <rudalics@gmx.at>
4936
4937 * textprop.c (Qminibuffer_prompt): New variable.
4938 (syms_of_textprop): Initialize it.
4939 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4940 in minibuffer-prompt face. (Bug#1662)
4941
40b615d6
JR
49422008-12-25 Jason Rumney <jasonr@gnu.org>
4943
4944 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4945
baae5c2d
JR
49462008-12-24 Jason Rumney <jasonr@gnu.org>
4947
4948 * ralloc.c (r_alloc_reset_variable): New function.
4949
4950 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4951 record of what points where. (Bug#716)
baae5c2d 4952
a9051c88
DN
49532008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4954
4955 * minibuf.c (read_minibuf): Follow the non-interactive case when
4956 running as a daemon, before detaching.
4957
8b146312
AS
49582008-12-22 Andreas Schwab <schwab@suse.de>
4959
4960 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4961 * gtkutil.c (free_widget_value): Use xfree instead of free.
4962
56f2de10
MR
49632008-12-22 Martin Rudalics <rudalics@gmx.at>
4964
4965 * frame.c (delete_frame): New function derived from
4966 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4967 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4968 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4969 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4970 * frame.h: Extern delete_frame.
4971 * window.c (window_loop):
4972 * terminal.c (delete_terminal):
4973 * xterm.c (x_connection_closed):
4974 * xfns.c (Fx_hide_tip):
9acef61c 4975 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4976
1fc200d6
JR
49772008-12-21 Jason Rumney <jasonr@gnu.org>
4978
4979 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4980 when character maps to .notdef character.
4981
5e252df2
SM
49822008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4983
4984 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4985
99b72cc4
JR
49862008-12-20 Jason Rumney <jasonr@gnu.org>
4987
4988 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4989 a graphical frame on Windows. (Bug#1325)
99b72cc4 4990
acc49a52
JD
49912008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4992
4993 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4994
6ea15123
CY
49952008-12-20 Chong Yidong <cyd@stupidchicken.com>
4996
4997 * minibuf.c (Fread_buffer): Doc fix.
4998
b2dab6c8
JR
49992008-12-20 Jason Rumney <jasonr@gnu.org>
5000
54ea0c87 5001 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5002 server name in UNC paths. (Bug#719)
54ea0c87 5003
b2dab6c8 5004 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5005 charbuf. (Bug#1035)
b2dab6c8 5006
6d1921be
DN
50072008-12-19 Daniel Engeler <engeler@gmail.com>
5008
5009 * sysdep.c (serial_configure): Fix typo.
5010
53934c98
DN
50112008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5012
5013 * sysdep.c: Include alloca.h.
f4f634e8
DN
5014 (system_process_attributes): Add implementation for Solaris.
5015
5016 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5017
06e111a6
DN
50182008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5019
5020 Reorganize implementation of Flist_system_processes and
5021 Fsystem_process_attributes. No functional changes.
5022 * process.c: Don't #include pwd.h, grp.h and limits.h.
5023 (Flist_system_processes): Just call list_system_processes.
5024 (Fsystem_process_attributes): Just call system_process_attributes.
5025 (procfs_list_system_processes, time_from_jiffies)
5026 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5027 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5028
5029 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5030 (list_system_processes): Rename from
5031 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5032 Provide a do nothing implementation.
5033 (system_process_attributes): Rename from
5034 procfs_list_system_processes.
5035 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5036 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5037
5038 * w32.c (list_system_processes): Rename from
5039 w32_list_system_processes.
5040 (system_process_attributes): Rename from
5041 w32_system_process_attributes.
5042
5043 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5044
5045 * process.h (w32_list_system_processes)
5046 (w32_system_process_attributes): Remove.
362654a6
JB
5047 (list_system_processes, system_process_attributes):
5048 New prototypes.
06e111a6 5049
6a705b23
KH
50502008-12-19 Kenichi Handa <handa@m17n.org>
5051
5052 * xfont.c (xfont_decode_coding_xlfd): New function.
5053 (xfont_encode_coding_xlfd): New function.
5054 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5055 (xfont_list): Decode and encode XLFD by iso-8859-1.
5056 (xfont_match): Likewise.
5057 (xfont_list_family): Likewise.
5058 (xfont_open): Likewise.
5059
d66c0241 5060 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5061 names are utf-8.
5062
d66c0241 5063 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5064 names are utf-8.
5065
5a130941
JD
50662008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5067
5068 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5069 changed.
bfd20325
JD
5070 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5071 clicked on a detached tool bar button.
5a130941 5072
fd95644b
DN
50732008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5074
5075 * emacs.c (main): Print and error and exit when no data is read
5076 from the pipe.
5077
e6eee6ae
JR
50782008-12-17 Jason Rumney <jasonr@gnu.org>
5079
5080 * w32font.c (w32font_has_char): Always return -1.
5081
a35dd56b
KH
50822008-12-16 Kenichi Handa <handa@m17n.org>
5083
5084 * font.c (font_open_entity): Fix previous change.
5085
0e3635c2
DN
50862008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5087
5088 * process.c: Include <limits.h>.
5089
d4835507 50902008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5091
5092 * font.c (font_update_drivers): Fix mistake in reconstructing the
5093 driver list.
5094
50952008-12-16 Chong Yidong <cyd@stupidchicken.com>
5096
5097 * font.c (font_clear_cache): Fix format of font cache data.
5098
e2cbc401
CY
50992008-12-15 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * xftfont.c (xftfont_open): Free Xft font pattern if
5102 XftFontOpenPattern fails.
5103
5104 * xterm.c (x_free_frame_resources): Remove extraneous call to
5105 free_frame_faces.
5106
b131d535
CY
51072008-12-13 Chong Yidong <cyd@stupidchicken.com>
5108
5109 * xterm.c (x_delete_display): Move xim_close_dpy call to
5110 x_delete_terminal.
5111 (x_delete_terminal): Call xim_close_dpy.
5112
e6df5336
JR
51132008-12-13 Jason Rumney <jasonr@gnu.org>
5114
5115 * w32font.c (intern_font_name): New function.
5116 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5117 (w32font_open_internal, Fx_select_font): Decode font name.
5118 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5119
5120 * w32font.h (intern_font_name): Declare new function.
5121
5122 * w32uniscribe.c (add_opentype_font_name_to_list):
5123 Use intern_font_name.
5124
20d68145
CY
51252008-12-13 Chong Yidong <cyd@stupidchicken.com>
5126
9f2554de
CY
5127 * frame.c (Fdelete_frame): Call free_font_driver_list.
5128
3d9bec9a
CY
5129 * font.c (free_font_driver_list): Implement missing function.
5130
20d68145
CY
5131 * w32term.c (w32_term_init): Don't initialize the image cache
5132 here; it will be done in init_frame_faces.
5133
5134 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5135 (struct x_display_info): Remove unused member null_pixel. New
5136 member xim_callback_data.
5137
5138 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5139 (xim_initialize): Save pointer to callback function data.
5140 (xim_close_dpy): Free callback function data. Call XCloseIM,
5141 reverting 2008-11-04 change by David Smith.
5142 (x_term_init): Don't initialize the image cache here; it will be
5143 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5144 (x_delete_display): Free x_dnd_atoms member.
5145
96f9306b
KH
51462008-12-13 Kenichi Handa <handa@m17n.org>
5147
6dec9044
JB
5148 * font.c (font_rescale_ratio): Moved from xfaces.c.
5149 Argument type changed. Handle a font-spec too.
96f9306b 5150 (font_score): Check Vface_font_rescale_alist.
6dec9044 5151 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5152
5153 * xfaces.c (font_rescale_ratio): Moved to font.c.
5154
8d5b4964
CY
51552008-12-13 Chong Yidong <cyd@stupidchicken.com>
5156
5157 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5158
e6df5336
JR
51592008-12-12 Jason Rumney <jasonr@gnu.org>
5160
5161 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5162 Vwindow_system_version to the real w32 major version.
5163
97c6058a
DN
51642008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5165
5166 * term.c (init_tty): Move setting the terminal name before the
5167 potential user: maybe_fatal.
5168
ec4e88d7
CY
51692008-12-11 Chong Yidong <cyd@stupidchicken.com>
5170
d4835507
JB
5171 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5172 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5173
b4233ec9
JR
51742008-12-11 Jason Rumney <jasonr@gnu.org>
5175
8ec71e23 5176 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5177 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5178
b4233ec9 5179 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5180 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5181
011a0143
JB
51822008-12-11 Juanma Barranquero <lekktu@gmail.com>
5183
5184 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5185
3c309f34
JB
51862008-12-11 Juanma Barranquero <lekktu@gmail.com>
5187
5188 * process.c (Fsystem_process_attributes, syms_of_process):
5189 Fix typo in name of Ssystem_process_attributes.
5190 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5191
fedc6ab5
JB
51922008-12-11 Juanma Barranquero <lekktu@gmail.com>
5193
5194 * syntax.c (Fmodify_syntax_entry): Doc fix.
5195
ba3de0e8
JB
51962008-12-10 Juanma Barranquero <lekktu@gmail.com>
5197
5198 * font.c (Ffont_spec): Move usage to end of docstring.
5199
174f1c74
JR
52002008-12-10 Jason Rumney <jasonr@gnu.org>
5201
5202 * w32font.c (Qcham): New symbol.
5203 (font_supported_scripts): Add cham, and comments for other new
5204 scripts in bitfield from OpenType spec.
9d32f818
JR
5205 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5206 contain characters beyond the bmp.
174f1c74 5207
7b649478
KH
52082008-12-10 Kenichi Handa <handa@m17n.org>
5209
5210 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5211 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5212 Qunicode_sip.
5213
2133e2d1
JB
52142008-12-10 Juanma Barranquero <lekktu@gmail.com>
5215
5216 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5217 (Fcoding_system_put): Use QCdefault_char.
5218 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5219
9af886ee
CY
52202008-12-09 Chong Yidong <cyd@stupidchicken.com>
5221
74d819eb
CY
5222 * xftfont.c (syms_of_xftfont): Fix typo.
5223
4ccfa1c0 5224 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5225
7c19d3ae
DN
52262008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5227
5228 * emacs.c (main): Close daemon_pipe on exec.
5229
567826bb
CY
52302008-12-08 Chong Yidong <cyd@stupidchicken.com>
5231
5232 * termchar.h (struct tty): New members termcap_term_buffer and
5233 termcap_strings_buffer.
5234
5235 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5236 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5237 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5238 All callers changed.
5239 (init_tty): Store termcap data and string buffers in new struct
5240 tty members termcap_term_buffer and termcap_strings_buffer.
5241 (delete_tty): Free them.
4ccfa1c0 5242 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5243
aa96c42b
SZ
52442008-12-07 Seiji Zenitani <zenitani@mac.com>
5245
5246 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5247 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5248
b7e1d896
CY
52492008-12-06 Chong Yidong <cyd@stupidchicken.com>
5250
5251 * coding.c (make_conversion_work_buffer): Disable buffer
5252 modification hooks in the work buffer.
5253
b5ec91a5
EZ
52542008-12-05 Eli Zaretskii <eliz@gnu.org>
5255
5256 * process.c (procfs_system_process_attributes): If `nread' has a
5257 negative value, assign zero to it.
5258
a5d2a52b
CY
52592008-12-05 Chong Yidong <cyd@stupidchicken.com>
5260
68c5540b 5261 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5262
7bf1bb21
KH
52632008-12-05 Kenichi Handa <handa@m17n.org>
5264
5265 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5266 second character is a combining character.
5267
2fdc7d00
EZ
52682008-12-05 Eli Zaretskii <eliz@gnu.org>
5269
5270 * process.c (procfs_system_process_attributes): Don't use cmd,
5271 cmdsize, and q without initializing them first.
5272
bf6bfba8
JR
52732008-12-04 Jason Rumney <jasonr@gnu.org>
5274
5275 * w32font.c (w32font_draw): Initialize orig_clip before getting
5276 it, and delete it when finished.
5277
a3b1a468
DN
52782008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5279
5280 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5281 case when running as a daemon before detaching.
5282
8b8be8eb
JB
52832008-12-03 Juanma Barranquero <lekktu@gmail.com>
5284
805f2638 5285 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5286
b1bde622
KH
52872008-12-03 Kenichi Handa <handa@m17n.org>
5288
e500c47d
KH
5289 * font.c (font_at): Set `multibyte' at first.
5290
ca516334
KH
5291 * coding.c (decode_coding_charset): Check type of an element of
5292 vector VALIDS.
7bf1bb21 5293 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5294
4ccfa1c0 5295 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5296 (font_for_char): Likewise.
5297
1e5ecd37
CY
52982008-12-03 Chong Yidong <cyd@stupidchicken.com>
5299
d5b01609 5300 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5301 (font_update_lface): Handle fonts with corrupted size specs,
5302 i.e. non-int and non-float.
d5b01609 5303
11e3a6e4 5304 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5305 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5306 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5307
ab06788b
CY
5308 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5309
1e5ecd37 5310 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5311 underline_minimum_offset for underline position.
1e5ecd37 5312
63c125ab
DN
53132008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5314
5315 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5316
5317 * character.c (c_string_width): Specify the type for LEN.
5318
3a8406e1
KH
53192008-12-03 Kenichi Handa <handa@m17n.org>
5320
4ccfa1c0 5321 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5322 (decode_coding_utf_8): Likewise.
4ccfa1c0 5323 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5324 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5325
651df7d9
CY
53262008-12-02 Chong Yidong <cyd@stupidchicken.com>
5327
5328 * keyboard.c (make_lispy_position): Only use PT if the selected
5329 window is current.
5330
1f625c6c
AS
53312008-12-02 Andreas Schwab <schwab@suse.de>
5332
f7741ce9
AS
5333 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5334
1f625c6c
AS
5335 * doprnt.c (doprnt1): Fix size of charbuf.
5336
92bc2678
CY
53372008-12-02 Chong Yidong <cyd@stupidchicken.com>
5338
5339 * keyboard.c (timer_check): Revert last change.
5340
93b9e8cc
JB
53412008-12-02 Juanma Barranquero <lekktu@gmail.com>
5342
5343 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5344
fd7a37d5
JB
53452008-12-01 Juanma Barranquero <lekktu@gmail.com>
5346
5347 * makefile.w32-in: Update dependencies.
5348 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5349
c115043b
AS
53502008-12-01 Andreas Schwab <schwab@suse.de>
5351
5352 * font.c (register_font_driver): Use xmalloc.
5353 (font_put_frame_data): Likewise.
5354
f5668d2a
CY
53552008-12-01 Chong Yidong <cyd@stupidchicken.com>
5356
860d96be
CY
5357 * xfaces.c (realize_x_face): Make abort condition clearer.
5358
f5668d2a
CY
5359 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5360
379c17e7
CY
53612008-11-30 Chong Yidong <cyd@stupidchicken.com>
5362
5363 * keyboard.c (timer_check): After a timer runs, ensure that the
5364 selected window's buffer is current.
5365
35f36d65
JB
53662008-11-30 Juanma Barranquero <lekktu@gmail.com>
5367
f952c61c
JB
5368 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5369 It was accidentally restored by the Unicode merge.
5370
35f36d65
JB
5371 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5372
b23077df
JB
53732008-11-29 Juanma Barranquero <lekktu@gmail.com>
5374
5375 * w32proc.c: Include "coding.h".
5376 (Fw32_short_file_name): Encode filename passed to Windows API.
5377 (Fw32_long_file_name): Encode filename passed to Windows API and
5378 decode back the result. (Bug#1433)
5379
b8ebe9dd
KH
53802008-11-29 Kenichi Handa <handa@m17n.org>
5381
8cc53f96
KH
5382 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5383 not before accessing it.
5384
b8ebe9dd
KH
5385 * charset.c (Fdefine_charset_internal): After calculating
5386 min_char, max_char, and fastmap, copy the charset structure again.
5387 (encode_char): Fix the previous change.
5388
59bc82c0
SZ
53892008-11-28 Seiji Zenitani <zenitani@mac.com>
5390
5391 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5392
5393 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5394
5395 * nsterm.m (x_set_frame_alpha): New function.
5396
32247e3d
EZ
53972008-11-27 Eli Zaretskii <eliz@gnu.org>
5398
5399 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5400
b003e5ff
JB
54012008-11-27 Juanma Barranquero <lekktu@gmail.com>
5402
5403 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5404 pointer to check_face_name.
5405
708550f5
KH
54062008-11-27 Kenichi Handa <handa@m17n.org>
5407
5408 * category.h (SET_CATEGORY_SET): Call set_category_set.
5409 (set_category_set): Extern it.
5410
5411 * category.c (hash_get_category_set): New function.
5412 (Fmodify_category_entry): Adjusted for the change of
5413 char_table_ref_and_range. Call hash_get_category_set to get a
5414 category set to store in the table.
5415
5416 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5417 Funify_charset.
5418
2ae37cf0 5419 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5420 (DECODE_CHAR): Check if the decoder vector is ready.
5421 (ENCODE_CHAR): Check if the encoder char-table is ready.
5422 (maybe_unify_char): Extern it.
5423
5424 * charset.c (Vchar_unified_charset_table): Delete it.
5425 (inhibit_load_charset_map): New variable.
5426 (temp_charset_work): New variable.
5427 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5428 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5429 New macros.
5430 (load_charset_map): Meaning of control_flag changed. If
5431 inhibit_load_charset_map is nonzero, setup a table in
5432 temp_charset_work.
5433 (load_charset): New argument control_flag.
5434 (map_charset_for_dump): New function.
5435 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5436 map_charset_for_dump.
5437 (Fdefine_charset_internal): If the charset method is MAP, load
5438 mapping tables by calling load_charset.
5439 (Funify_charset): Don't load a mapping table but directly set
5440 Vchar_unify_table.
5441 (maybe_unify_char): New function.
5442 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5443 Handle the case of inhibit_load_charset_map being nonzero.
5444 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5445 Handle the case of inhibit_load_charset_map being nonzero.
5446 (Fclear_charset_maps): Just free temp_charset_work.
5447 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5448 variable.
5449
5450 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5451 change of char_table_ref_and_range.
5452 (char_table_ref_and_range): Change the meaning of argument FROM
5453 and TO. Now the caller must provide initial values for *FROM
5454 and *TO.
5455
5456 * fontset.c (fontset_add): Adjusted for the change of
5457 char_table_ref_and_range.
5458 (fontset_get_font_group): Likewise.
5459 (Ffontset_info): Likewise.
5460
5461 * keymap.c (describe_vector): Adjusted for the change of
5462 char_table_ref_and_range. For char-table, put boundary between
5463 non-ASCII and 8-bit characters.
5464
5465 * print.c (print_object): For bool-vector, delete unnecessary
5466 check of ASCII_BYTE_P.
5467
9196133b
JR
54682008-11-26 Jason Rumney <jasonr@gnu.org>
5469
5470 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5471 leading in font height. (Bug#879)
9196133b 5472
9f688acf
GM
54732008-11-26 Glenn Morris <rgm@gnu.org>
5474
5475 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5476 redefinition with ifdef. (Bug#1383)
5477
90d19aff
AR
54782008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5479
5480 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5481
4ccfa1c0 54822008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5483
5484 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5485 New EmacsView methods.
5486 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5487 Fixes bug #1048,1357,1414.
5488
54892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5490
5491 Fix bug #1362.
5492 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5493 is not an indexed color.
5494 * nsterm.m (free_indexed_color): Add argument checking.
5495 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5496
e7d5ecb3
CY
54972008-11-24 Chong Yidong <cyd@stupidchicken.com>
5498
5499 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5500 Document confirm-after-completion value for
5501 minibuffer-completion-confirm.
5502
c285743c
JR
55032008-11-24 Jason Rumney <jasonr@gnu.org>
5504
5505 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5506 warning.
5507
b0857706
JR
55082008-11-23 Jason Rumney <jasonr@gnu.org>
5509
5510 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5511 restored before returning.
5512
5513 * w32font.c (check_face_name): New function.
5514 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5515 fonts. (Bug#642)
b0857706 5516
ee50ff07
MR
55172008-11-22 Martin Rudalics <rudalics@gmx.at>
5518
5519 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5520 confirm-nonexistent-file-or-buffer in doc-string.
5521
b8ff72fa
SM
55222008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5523
5524 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5525 Fix copy/paste typo. Add checks.
5526
cee53ed4
KH
55272008-11-21 Kenichi Handa <handa@m17n.org>
5528
5529 * coding.c (detect_coding_iso_2022): Reject invalid composition
5530 sequence.
5531 (DECODE_COMPOSITION_START): If the current source is the last
5532 block, and the current composition doesn't end, regard this
5533 sequence as invalid.
5534 (decode_coding_iso_2022): Handle invalid composition sequence.
5535
f6ef1e65
MR
55362008-11-20 Martin Rudalics <rudalics@gmx.at>
5537
5538 * window.c (coordinates_in_window): Don't return
5539 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5540 line when the window is not the rightmost one. (Bug#1372)
5541
e08b1705
MR
55422008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5543
5544 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5545
ad98e89f
EZ
55462008-11-15 Eli Zaretskii <eliz@gnu.org>
5547
5548 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5549 and bright_bg if noninteractive is non-zero.
5550
fb098a4b
CY
55512008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5552
5553 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5554 x_draw_glyph_string_background.
5555
5556 * w32term.c (x_draw_glyph_string): Likewise.
5557
ce952b6e
CY
55582008-11-15 Chong Yidong <cyd@stupidchicken.com>
5559
5560 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5561 the next glyph string once past the overhang width.
5562
5563 * nsterm.m (ns_draw_glyph_string): Likewise.
5564
5565 * w32term.c (x_draw_glyph_string): Likewise.
5566
26ea7079
CY
55672008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5568
5569 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5570 double file close.
5571
1c33c906
MR
55722008-11-14 Martin Rudalics <rudalics@gmx.at>
5573
5574 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5575 dedicated status of window before attempting to display another
5576 buffer in it.
5577
8fc29035
JB
55782008-11-14 Juanma Barranquero <lekktu@gmail.com>
5579
5580 * msdos.c (Fmsdos_long_file_names):
5581 (syms_of_msdos) <dos-unsupported-char-glyph>:
5582 * dosfns.c (Fint86): Fix typos in docstrings.
5583
55fb4286
EZ
55842008-11-14 Eli Zaretskii <eliz@gnu.org>
5585
5586 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5587
3fda0315
KY
55882008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5589
5590 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5591
7e849c17
CY
55922008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5593
5594 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5595
5596 * frame.h: Negative alpha means "don't touch".
5597
5598 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5599
5600 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5601
b9fd67bd
DN
56022008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5603
5604 * hftctl.c:
5605 * chpdef.h:
5606 * acldef.h: Remove files used only for systems no longer supported.
5607
5608 * Makefile.in: Fix .o alphabetical ordering.
5609 (hftctl.o): Remove dependency, file removed.
5610 (keymap.o, print.o): Depend on charset.h.
5611
d5998e03
KH
56122008-11-10 Kenichi Handa <handa@m17n.org>
5613
2ae37cf0 5614 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5615
be70e183
CY
56162008-11-08 Chong Yidong <cyd@stupidchicken.com>
5617
5618 * dired.c (file_name_completion): If completion_ignore_case is
5619 enabled, ignore case when checking completion-regexp-list.
5620
7cf94eac
EZ
56212008-11-08 Eli Zaretskii <eliz@gnu.org>
5622
5623 * vm-limit.c (get_lim_data): Fix last change.
5624
ee107a89
KH
56252008-11-08 Kenichi Handa <handa@m17n.org>
5626
5627 * character.c (Fget_byte): New function.
5628 (syms_of_character): Defsubr Fget_byte.
5629
5fd15622
CY
56302008-11-07 Chong Yidong <cyd@stupidchicken.com>
5631
5632 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5633 cursor position is valid after scrolling.
5634
13d62fad
JB
56352008-11-06 Juanma Barranquero <lekktu@gmail.com>
5636
5637 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5638
a1dd2936
GM
56392008-11-06 Glenn Morris <rgm@gnu.org>
5640
5641 * xterm.c (handle_one_xevent): Don't let popup menus cause
5642 mouse-autoselect-window related window switching. (Bug#1261)
5643
860cd236
CY
56442008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5645
5646 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5647
653a3150
AS
56482008-11-04 Andreas Schwab <schwab@suse.de>
5649
5650 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5651
870f5cac
CY
56522008-11-03 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * xfns.c (Fx_wm_set_size_hint): New function.
5655
1e02f3cb
MR
56562008-11-03 Martin Rudalics <rudalics@gmx.at>
5657
5658 * textprop.c (Fprevious_single_char_property_change): Return 0
5659 when there's no change in a string. (Bug#1301)
5660
e630dfc6
MR
56612008-11-02 Martin Rudalics <rudalics@gmx.at>
5662
5663 * frame.c (do_switch_frame): New argument NORECORD passed to
5664 Fselect_window.
5665 (Fselect_frame): New argument NORECORD passed to
5666 do_switch_frame.
5667 (Fset_frame_selected_window): New argument NORECORD passed to
5668 Fselect_frame.
5669 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5670 in call of do_switch_frame.
5671 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5672 Handle NORECORD argument in call of Fselect_frame.
5673 * lisp.h (do_switch_frame, Fselect_frame)
5674 (Fset_frame_selected_window): Adjust declarations.
5675 * window.c (select_frame_norecord): New function.
5676 (run_window_configuration_change_hook): Use it and call
5677 Fselect_frame with NORECORD set.
5678 (Fselect_window): Pass NORECORD to Fselect_frame.
5679 (Fset_window_configuration): Handle NORECORD argument in call of
5680 do_switch_frame.
5681 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5682 Fset_frame_selected_window.
5683 * keyboard.c (command_loop_1): Handle NORECORD in call of
5684 Fselect_frame (currently ifdefd).
5685
9020b223
GM
56862008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5687
5688 * emacs.c (USAGE2): Untabify.
5689
793ffee8
SM
56902008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5691
5692 * composite.c (fill_gstring_header): Fix copy/paste typo.
5693
ab6d1131
MR
56942008-10-31 Martin Rudalics <rudalics@gmx.at>
5695
5696 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5697 (Fother_window): Rename argument and rewrite doc-string.
5698 (select_window_norecord): Fix return value. (Bug#1276)
5699
601a9cf1
JB
57002008-10-30 Juanma Barranquero <lekktu@gmail.com>
5701
5702 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5703 new frames overriding foreground for tooltips. Based on similar patch
5704 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5705
813b0652
CY
57062008-10-29 Chong Yidong <cyd@stupidchicken.com>
5707
5708 * emacs.c (Fdaemon_initialized): Initialize nfd.
5709
4414f58f
MR
57102008-10-29 Martin Rudalics <rudalics@gmx.at>
5711
5712 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5713 (Fwindow_text_height): Clarify doc-strings.
5714 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5715 doc-string of window-scroll-functions.
5716
ecdcaa09
RS
57172008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5718
5719 * category.c (syms_of_category): Fix typo in docstring.
5720
23fe745a
JB
57212008-10-28 Juanma Barranquero <lekktu@gmail.com>
5722
5723 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5724 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5725 Fix typos in docstrings.
5726
ff808935
DN
57272008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5728
5729 * emacs.c (daemon_pipe): Make non-static.
5730 (IS_DAEMON): Move definition ...
5731 * lisp.h (IS_DAEMON): ... here.
5732 (daemon_pipe): Declare.
5733 (is_daemon): Remove.
5734 * dispnew.c (init_display): Use IS_DAEMON.
5735
fc012771
SM
57362008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5737
5738 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5739 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5740
5741 * emacs.c (is_daemon): Remove.
5742 (main): Don't set is_daemon.
5743 (IS_DAEMON): New macro.
5744 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5745 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5746 parent exits.
5747 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5748
d8bdbe6f
CY
57492008-10-27 Chong Yidong <cyd@stupidchicken.com>
5750
d1a072bf
CY
5751 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5752 over-sized glyph, draw it with the default glyph width.
5753
e2e325aa
CY
5754 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5755 glyph, draw it with the default glyph width.
5756
5757 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5758 glyph, draw it with the default glyph width.
5759
d8bdbe6f
CY
5760 * xdisp.c (try_scrolling): When computing the distance from the
5761 scroll margin to PT, try moving some distance past the window
5762 bottom before giving up.
5763
7bfac547
MR
57642008-10-27 Martin Rudalics <rudalics@gmx.at>
5765
5766 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5767 (Fset_window_buffer): Explain in doc-string that a window can be
5768 "strongly" dedicated to its buffer.
5769
4ff029f6
DN
57702008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5771
5772 * emacs.c (daemon_name): New variable.
5773 (main): Deal with --daemon=SERVER_NAME.
5774 (Fdaemonp): Return a name if one was passed to --daemon.
5775
5790ef40
DN
57762008-10-26 Romain Francoise <romain@orebokech.com>
5777
f9bd0df9 5778 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5779 (main): Create a pipe before forking, make the parent exit only after
5780 the child has closed its end of the pipe. Move closing the
5781 descriptors ...
5782 (Fdaemon_initialized): ... here. New function.
5783
f5385255
SM
57842008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5785
4d632321
SM
5786 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5787 the previous unoptimized table.
5788
f5385255
SM
5789 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5790 the distinction between non-nil and non-t value of `dedicated'.
5791
6c56a0f3
CY
57922008-10-25 Chong Yidong <cyd@stupidchicken.com>
5793
5794 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5795 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5796
fec89261
MR
57972008-10-25 Martin Rudalics <rudalics@gmx.at>
5798
5799 * window.c (Fget_buffer_window, Fdelete_windows_on)
5800 (Freplace_buffer_in_windows): Make buffer argument optional and
5801 rename to buffer_or_name.
5802
34fcddd0
CY
58032008-10-24 Chong Yidong <cyd@stupidchicken.com>
5804
f5385255
SM
5805 * xdisp.c (handle_single_display_spec, handle_display_prop):
5806 Undo 2005-05-16 change.
34fcddd0
CY
5807 (handle_stop): Pop iterator if it's loaded with an empty string.
5808 (get_overlay_strings_1): Don't save iterator if it's loaded with
5809 an empty string (bug#1201).
5810
064766f2
KH
58112008-10-24 Kenichi Handa <handa@m17n.org>
5812
5813 * ftfont.c (ftfont_otf_features): Fix previous change.
5814 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5815 calling ftfont_otf_features.
5816
f9bd0df9 58172008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5818
5819 * font.c (font_match_p): Fix for the case that a vector of
5820 characters is in script-representative-chars.
5821
1dae9197
MA
58222008-10-24 Michael Albinus <michael.albinus@gmx.de>
5823
5824 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5825 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5826 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5827 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5828 macro. (Bug#1186)
1dae9197 5829
f9bd0df9 58302008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5831
5832 * s/sol2-10.h: New file.
5833
878a4584
JB
58342008-10-23 Juanma Barranquero <lekktu@gmail.com>
5835
5836 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5837 poor beast has survived 9+ years and the jump from xterm.c!).
5838
cd265ca6
MR
58392008-10-23 Martin Rudalics <rudalics@gmx.at>
5840
5841 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5842 Reword doc-string.
f5385255 5843 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5844
472a4dc9
JB
58452008-10-23 Juanma Barranquero <lekktu@gmail.com>
5846
5847 * character.c (syms_of_character) <script-representative-chars>:
5848 <unicode-category-table>: Doc fixes.
5849
159bd5a2
NF
58502008-10-23 Noah Friedman <friedman@splode.com>
5851
5852 * coding.c (make_conversion_work_buffer): Check that
5853 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5854 Fget_buffer_create.
5855
49f9c344
KH
58562008-10-23 Kenichi Handa <handa@m17n.org>
5857
5858 * font.c (font_add_log): Check the values of extra properties.
5859
12bb3111
MR
58602008-10-22 Martin Rudalics <rudalics@gmx.at>
5861
5862 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5863 Reword doc-string.
5864 (Fset_window_parameter): Use NILP.
5865 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5866 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5867
bbeb4e99
JB
58682008-10-22 Juanma Barranquero <lekktu@gmail.com>
5869
5870 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5871
58722008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5873
5874 * nsfns.m (ns_appkit_version): New function.
5875 (x-server-version): Use it.
5876 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5877 (x-server-vendor): Don't check_ns().
5878
5879 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5880
a9b555d3
JB
58812008-10-22 Juanma Barranquero <lekktu@gmail.com>
5882
5883 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5884 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5885
4626499f
KH
58862008-10-22 Kenichi Handa <handa@m17n.org>
5887
e3681952
KH
5888 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5889 scripts.
5890
4626499f
KH
5891 * category.c (word_boundary_p): Check scripts instead of charset.
5892 Handle nil value in word-separating-categories and
5893 word-combining-categories.
5894 (syms_of_category): Fix docstrings of word-separating-categories
5895 and word-combining-categories.
5896
1560f91a
EZ
58972008-10-21 Eli Zaretskii <eliz@gnu.org>
5898
5899 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5900 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5901
f4668441
MR
59022008-10-21 Martin Rudalics <rudalics@gmx.at>
5903
5904 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5905 Rename arg "buffer" to "buffer_or_name".
5906 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5907 it optional.
5908 (no_switch_window): Remove since the return value is not used.
a9b555d3 5909 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5910 Consider window as dedicated when Fwindow_dedicated_p returns a
5911 non-nil value.
5912 * lisp.h: Remove prototype for no_switch_window.
5913
fd75ddb2
JD
59142008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5915
5916 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5917 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5918
07295713
KH
59192008-10-21 Kenichi Handa <handa@m17n.org>
5920
5921 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5922 check Vlatin_extra_code_table.
5923
712adc82
EZ
59242008-10-20 Eli Zaretskii <eliz@gnu.org>
5925
5926 * fileio.c (Fset_file_modes): Doc fix.
5927
f549eb0b
MA
59282008-10-19 Michael Albinus <michael.albinus@gmx.de>
5929
5930 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5931 in arrays.
5932
aac0c6e3
MR
59332008-10-19 Martin Rudalics <rudalics@gmx.at>
5934
5935 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5936 Mention kill-buffer in doc-string.
5937 (Fset_window_buffer): Reinsert tem check removed in last commit.
5938 (Fenlarge_window, Fshrink_window): Have argument names and
5939 doc-string follow Elisp manual more closely.
5940
59412008-10-18 Eli Zaretskii <eliz@gnu.org>
5942
5943 * fileio.c (Fset_file_modes): Doc fix.
5944
59452008-10-18 Martin Rudalics <rudalics@gmx.at>
5946
5947 * window.c (Fwindow_width, Fset_window_start)
5948 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5949 (Fdelete_windows_on, Freplace_buffer_in_windows):
5950 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5951 (Fwindow_dedicated_p): Make window argument optional.
5952 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5953 (Fset_window_buffer): Respect any non-nil dedicated value for
5954 window. Rename "buffer" argument to "buffer_or_name".
5955
59562008-10-18 Ulrich Mueller <ulm@gentoo.org>
5957
5958 * m/sh3.h: New file, machine description for SuperH.
5959
59602008-10-17 Martin Rudalics <rudalics@gmx.at>
5961
5962 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5963
59642008-10-17 Kenichi Handa <handa@m17n.org>
5965
5966 * ftfont.c (ftfont_otf_features): Fix indexing
5967 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5968
59692008-10-16 Magnus Henoch <mange@freemail.hu>
5970
5971 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5972 (Fdbus_call_method_asynchronously): Ditto.
5973 This change makes C-h f display the argument list.
5974
59752008-10-16 Chong Yidong <cyd@stupidchicken.com>
5976
5977 * fileio.c (Fexpand_file_name): Doc fix.
5978
5979 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5980 of :foreground and :background equivalent to unspecified (20.x
5981 compatibility).
5982
59832008-10-15 Eli Zaretskii <eliz@gnu.org>
5984
5985 * buffer.c (syms_of_buffer): Doc fix.
5986
59872008-10-14 Kenichi Handa <handa@m17n.org>
5988
5989 * font.c (font_clear_prop): When clearing font width, clear the
5990 average width field too.
5991
59922008-10-12 Andreas Schwab <schwab@suse.de>
5993
5994 * ftfont.c (ftfont_shape_by_flt): Make static.
5995 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5996
5997 * font.c: Don't include <m17n-flt.h>.
5998
59992008-10-10 Eli Zaretskii <eliz@gnu.org>
6000
6001 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6002
60032008-10-09 Eli Zaretskii <eliz@gnu.org>
6004
6005 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6006 away code.
6007
60082008-10-09 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * dispnew.c (update_text_area): Avoid looping due to large glyph
6011 overhangs (bug#1070).
6012
60132008-10-09 Kenichi Handa <handa@m17n.org>
6014
6015 * fontset.c (face_for_char): If face->fontset is negative, just
6016 return ascii_face.
6017
f5385255
SM
6018 * font.c (font_delete_unmatched): Fix previous change.
6019 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6020
60212008-10-09 Martin Rudalics <rudalics@gmx.at>
6022
6023 * frame.c (Fraise_frame): On text-only terminals select frame in
6024 order to make it visible. (Bug#1061)
6025
60262008-10-08 Chong Yidong <cyd@stupidchicken.com>
6027
6028 * fontset.c (fontset_find_font): Check frame validity.
6029
60302008-10-07 Chong Yidong <cyd@stupidchicken.com>
6031
a9b555d3 6032 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6033 (xg_display_close): Allow Emacs to close all displays (bug#985).
6034
60352008-10-06 Andreas Schwab <schwab@suse.de>
6036
f5385255 6037 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6038
60392008-10-06 Chong Yidong <cyd@stupidchicken.com>
6040
f5385255 6041 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6042
a9b555d3 6043 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6044
6045 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6046 during initialization.
6047
60482008-10-04 Eli Zaretskii <eliz@gnu.org>
6049
6050 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6051 whole thing on MSDOS frames as well as on a TTY.
6052
6053 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6054 well as for TTY.
6055 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6056 well as on a TTY.
6057
6058 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6059 as well as for TTY.
6060
6061 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6062
6063 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6064 MSDOS frames as well.
6065
60662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6067
6068 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6069 correct arguments.
b71ac3dd 6070 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6071
60722008-10-03 Glenn Morris <rgm@gnu.org>
6073
6074 * emacs.c (USAGE1): Add --daemon.
6075
60762008-10-02 Eli Zaretskii <eliz@gnu.org>
6077
6078 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6079 100, so it's in percents as advertised.
6080
60812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6082
6083 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6084 (ns_output.current_cursor, ns_output.desired_cursor)
6085 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6086 (FRAME_NEW_CURSOR_COLOR): Remove.
6087
6088 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6089 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6090 enumeration (HOLLOW_BOX_CURSOR, etc.).
6091
6092 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6093 (draw_window_cursor): Simplify code.
f5385255
SM
6094 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6095 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6096 updates manually.
a9b555d3
JB
6097 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6098 Use core Emacs cursor types.
aac0c6e3 6099
b8ff72fa 6100 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6101
61022008-10-02 Martin Rudalics <rudalics@gmx.at>
6103
6104 * process.c (Faccept_process_output): Fix doc-string.
6105
61062008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6107
6108 * gmalloc.c (__sbrk): Also define for uClibc.
6109
6110 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6111 for uClibc.
6112
61132008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6114
6115 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6116 styles.
6117 (nsfont_open): Reenable the cache.
6118
61192008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6120
6121 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6122 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6123
61242008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6125
6126 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6127 a suspended terminal.
6128
61292008-09-30 Michael Albinus <michael.albinus@gmx.de>
6130
6131 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6132
61332008-09-30 Eli Zaretskii <eliz@gnu.org>
6134
6135 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6136
61372008-09-30 Chong Yidong <cyd@stupidchicken.com>
6138
6139 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6140 in a continued line coincides with a line beginning.
6141
61422008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6143
6144 * nsfont.m (nsfont_trait_distance): Fix bug.
6145 (nsfont_list): Return a list rather than a vector (syncs with Handa
6146 changes of 2008-05-14).
6147 (nsfont_open): Improve logging.
6148
61492008-09-29 Andreas Schwab <schwab@suse.de>
6150
6151 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6152
61532008-09-28 Martin Rudalics <rudalics@gmx.at>
6154
6155 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6156 name as char-resolve-modifiers.
6157 Reported by: Markus Triska <markus.triska@gmx.at>
6158
61592008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6160
6161 * dispnew.c (init_display): Return earlier when running as a daemon.
6162
61632008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6164
6165 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6166
61672008-09-27 Eli Zaretskii <eliz@gnu.org>
6168
6169 * composite.c (Fcomposition_get_gstring)
6170 (Fcompose_region_internal, Fcompose_string_internal)
6171 (Ffind_composition_internal): Doc fix.
6172 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6173 (syms_of_composite) <auto-composition-function>: Doc fix.
6174 (syms_of_composite) <composition-function-table>: Doc fix.
6175
61762008-09-25 Chong Yidong <cyd@stupidchicken.com>
6177
6178 * search.c (wordify): New argument for lax word-ends.
6179 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6180
61812008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6182
6183 * lisp.h (is_daemon): Declare.
6184 * dispnew.c (init_display): Do not try to initialize the terminal
6185 when running as a daemon.
6186
61872008-09-22 Chong Yidong <cyd@stupidchicken.com>
6188
6189 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6190 x_display_pixel_height.
6191
61922008-09-22 Martin Rudalics <rudalics@gmx.at>
6193
6194 * undo.c (record_point): Don't call Fundo_boundary for first
6195 change. (Bug#731)
6196
61972008-09-22 Juanma Barranquero <lekktu@gmail.com>
6198
6199 * emacs.c (Fdaemonp): Doc fix.
6200
62012008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6202
6203 * emacs.c (main): Place #ifdef in the proper place.
6204
62052008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6206
6207 * emacs.c (standard_args): Add --daemon.
6208 (main): Disconnect from the terminal when --daemon is passed.
6209 (is_daemon): New variable.
6210 (Fdaemonp): New function.
6211 (syms_of_emacs): Defsubr it.
6212
62132008-09-20 Chong Yidong <cyd@stupidchicken.com>
6214
6215 * xdisp.c (get_next_display_element): Handle string display
6216 correctly when checking for the end of a box run.
6217
62182008-09-20 Glenn Morris <rgm@gnu.org>
6219
6220 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6221 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6222 (Frename_file): Avoid copying to trash if a rename involves
6223 a delete. (Bug#964).
6224
62252008-09-20 Eli Zaretskii <eliz@gnu.org>
6226
6227 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6228 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6229 frames as well as termcap frames.
6230 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6231 get_named_tty.
6232
62332008-09-19 Eli Zaretskii <eliz@gnu.org>
6234
6235 * process.c (procfs_system_process_attributes): Fix cmdline in
6236 case /proc/PID/cmdline is empty.
6237
6238 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6239 x_display_pixel_height.
6240
62412008-09-19 Juanma Barranquero <lekktu@gmail.com>
6242
6243 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6244
6245 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6246 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6247
62482008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6249
6250 * dispextern.h (struct it): Move line_wrap away from the middle of
6251 bitfields. Move voffset in struct iterator_stack_entry after the
6252 bitfields. Move tab_width near after another short.
6253
62542008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6255
6256 * frame.h (struct frame): Move alpha from the middle of bitfields.
6257
6258 * window.h (struct window): Move frozen_window_start_p after the
6259 rest of the bitfields to reduce padding.
6260
62612008-09-18 Chong Yidong <cyd@stupidchicken.com>
6262
6263 * xterm.h (x_display_info): Remove `height' and `width' members.
6264
6265 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6266
6267 * w32term.h (w32_display_info): Remove `height', `width',
6268 `height_in', and `width_in' members.
6269
b8ff72fa
SM
6270 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6271 New functions.
aac0c6e3
MR
6272 (x_calc_absolute_position): Use them.
6273 (x_term_init): Omit removed `height' and `width' members.
6274
b8ff72fa
SM
6275 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6276 New functions.
aac0c6e3
MR
6277 (w32_read_socket, x_calc_absolute_position): Use them.
6278 (w32_initialize_display_info, w32_term_init): Omit removed members
6279 of w32_display_info.
6280
b8ff72fa
SM
6281 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6282 New functions.
6283 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6284
b8ff72fa
SM
6285 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6286 New functions.
aac0c6e3
MR
6287 (x_calc_absolute_position): Use them.
6288 (x_term_init): Omit removed `height' and `width' members.
6289
6290 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6291 (compute_tip_xy):
6292 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6293 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6294 x_display_pixel_width.
6295
62962008-09-18 Kenichi Handa <handa@m17n.org>
6297
6298 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6299 (composition_compute_stop_pos): Fix handling of static composition.
6300 (Fcomposition_get_gstring): Check FROM and TO at first.
6301
63022008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6303
46e722a9 6304 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6305 mixup (YAILOM).
6306
63072008-09-17 Chong Yidong <cyd@stupidchicken.com>
6308
6309 * indent.c (Fvertical_motion): Use position reported by iterator
6310 instead of PT for determining screen motion (bug#943).
6311
63122008-09-17 Romain Francoise <romain@orebokech.com>
6313
6314 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6315
63162008-09-17 Kenichi Handa <handa@m17n.org>
6317
6318 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6319
6320 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6321 if necessary.
6322
63232008-09-16 Kenichi Handa <handa@m17n.org>
6324
6325 * coding.c (make_conversion_work_buffer): Avoid calling
6326 Fget_buffer_create if it is not necessary.
6327
63282008-09-15 Martin Rudalics <rudalics@gmx.at>
6329
6330 * window.c (Fselect_window): Don't update window_select_count and
6331 use_time when norecord is not nil.
6332
63332008-09-14 Kenichi Handa <handa@m17n.org>
6334
6335 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6336 specpdl_ptr.
6337
63382008-09-12 Kenichi Handa <handa@m17n.org>
6339
6340 * indent.c (scan_for_column): Don't handle automatic composition
6341 if the current buffer is not associated with a window.
6342
6343 * composite.c (composition_reseat_it): If the current buffer is
6344 not associated with a window, ignore the automatic composition.
6345 (find_automatic_composition): Likewise.
6346
63472008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6350 (Fgpm_mouse_stop): Use it.
6351 * termhooks.h (close_gpm): Declare.
6352 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6353 connection if Gpm_GetEvent fails.
6354
6355 * window.c (set_window_buffer): Always preserve current-buffer.
6356
63572008-09-12 Glenn Morris <rgm@gnu.org>
6358
6359 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6360
63612008-09-11 Glenn Morris <rgm@gnu.org>
6362
6363 * charset.c (charset-map-path): Doc fix.
6364
63652008-09-10 Kenichi Handa <handa@m17n.org>
6366
6367 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6368
6369 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6370 compose a grapheme cluster with the preceding base glyph.
6371
6372 * composite.c (composition_compute_stop_pos): Fix previous change.
6373 Reset cmp_it->id to -1 at first.
6374
63752008-09-10 Glenn Morris <rgm@gnu.org>
6376
6377 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6378
63792008-09-09 Chong Yidong <cyd@stupidchicken.com>
6380
6381 * keyboard.c (read_key_sequence): Reapply translation maps when
6382 switching keyboards.
6383
63842008-09-09 Kenichi Handa <handa@m17n.org>
6385
6386 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6387 characters.
6388
6389 * composite.c (FORWARD_CHAR): Fix calculation
6390 of (POSITION).pos_byte.
6391 (composition_compute_stop_pos): Limit the search of composition to
6392 at most 500 characters ahead. If we reach the limit or find a
6393 newline, set cmp_it->ch to -2 and return 0.
6394 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6395
63962008-09-08 Kenichi Handa <handa@m17n.org>
6397
6398 * indent.c (Fvertical_motion): Be sure to set
6399 it_overshoot_expected if it.cmp_it.id is non-negative.
6400
64012008-09-07 Andreas Schwab <schwab@suse.de>
6402
6403 * callproc.c (Fcall_process): Don't hold references to string data
6404 across garbage collection. Move initialisation of new_argv down
6405 to avoid compiler bug.
6406
64072008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6408
6409 * process.c (Fsystem_process_attributes): Doc fix.
6410
64112008-09-07 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * callproc.c (Fcall_process): Canonicalize current directory name.
6414
6415 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6416 iterator advances to the next line if the current line ends in a
6417 continued tab.
6418
64192008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6420
6421 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6422 member to point to cmp_from.
6423
6424 * xdisp.c: Doc fix for references to gidx data member.
6425
64262008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6427
6428 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6429
64302008-09-07 Kenichi Handa <handa@m17n.org>
6431
6432 * composite.c (FORWARD_CHAR): Check STOP after
6433 incrementing (POSITION).pos.
6434
64352008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6436
6437 * process.c (Fsystem_process_attributes): Doc fix.
6438
64392008-09-06 Chong Yidong <cyd@stupidchicken.com>
6440
6441 * keyboard.c (Ftop_level): Doc fix.
6442
64432008-09-06 Eli Zaretskii <eliz@gnu.org>
6444
6445 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6446 minibuffer, don't let lower part of menu invade the echo area.
6447
6448 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6449 "char *q" to access menu text and advance through it. Revert the
6450 change that displayed ">" instead of ASCII character 0x10.
6451
64522008-09-05 Eli Zaretskii <eliz@gnu.org>
6453
6454 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6455 toggle boxes and radio buttons on MS-DOS as well.
6456
64572008-09-05 Kenichi Handa <handa@m17n.org>
6458
6459 * composite.c (autocmp_chars): Check lookback count.
6460 (composition_compute_stop_pos): Set cmp_it->lookback.
6461 (composition_reseat_it): Check lookback count.
6462 (struct position_record): New struct.
6463 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6464 (find_automatic_composition): New function.
6465 (composition_adjust_point): Use find_automatic_composition.
6466
6467 * dispextern.h (struct composition_it): New member lookback.
6468
64692008-09-02 Chong Yidong <cyd@stupidchicken.com>
6470
6471 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6472 if moving by a single line.
6473
64742008-09-02 Andreas Schwab <schwab@suse.de>
6475
6476 * xterm.c (x_delete_display): Fix merge error.
6477
6478 * fileio.c (Fexpand_file_name): Remove unused variables.
6479
64802008-09-02 Eli Zaretskii <eliz@gnu.org>
6481
6482 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6483 storage on all platforms, not just on DOS_NT.
6484
64852008-09-02 Jason Rumney <jasonr@gnu.org>
6486
b8ff72fa
SM
6487 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6488 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6489
64902008-09-01 Chong Yidong <cyd@stupidchicken.com>
6491
6492 * xfaces.c (Finternal_set_alternative_font_family_alist)
6493 (Finternal_set_alternative_font_registry_alist): Properly copy
6494 entire alist structure.
6495
64962008-09-01 Kenichi Handa <handa@m17n.org>
6497
d66c0241 6498 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6499 representative chars of the script is a vector.
d66c0241
JB
6500 (ftfont_list): Handle the case where the representative chars of
6501 the script is a vector.
aac0c6e3
MR
6502
6503 * character.c (syms_of_character): Docstring of
6504 script-representative-chars fixed.
6505
65062008-08-31 Eli Zaretskii <eliz@gnu.org>
6507
6508 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6509 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6510 the menu. Allocate larger buffer for `text', to account for
6511 possible ^C characters.
6512
65132008-08-31 Martin Rudalics <rudalics@gmx.at>
6514
6515 * xdisp.c (prepare_menu_bars): Don't call
6516 Vwindow_size_change_functions with arg Qt.
6517
65182008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6519
6520 * font.h (font_range):
6521 * fileio.c (report_file_error):
46e722a9
SM
6522 * composite.c (composition_update_it): Yet another int/Lisp_Object
6523 mixup (YAILOM).
aac0c6e3
MR
6524
65252008-08-30 Glenn Morris <rgm@gnu.org>
6526
6527 * data.c (Fmake_variable_frame_local): Doc fix.
6528
6529 * frame.c (Fmodify_frame_parameters): Doc fix.
6530
65312008-08-30 Eli Zaretskii <eliz@gnu.org>
6532
6533 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6534 needed by GetTokenInformation.
6535 (w32_system_process_attributes): Check return values of all system
6536 APIs.
6537
6538 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6539 only when the state changes.
6540 (IT_update_begin, IT_update_end): Add termscript trace.
6541
6542 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6543 clipboard is unavailable. Set dst to NULL if it doesn't point to
6544 malloc'ed data.
6545 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6546 passing random values to xfree.
6547
6548 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6549 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6550
65512008-08-29 Jason Rumney <jasonr@gnu.org>
6552
6553 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6554
65552008-08-29 Eli Zaretskii <eliz@gnu.org>
6556
6557 * composite.c (fill_gstring_body): Avoid compiler warnings.
6558
6559 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6560 LGLYPH_SET_CODE to avoid compiler warnings.
6561
2ae37cf0 6562 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6563
6564 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6565
6566 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6567 LGLYPH_SET_CODE.
6568
65692008-08-29 Kenichi Handa <handa@m17n.org>
6570
6571 * fileio.c (report_file_error): Don't downcase the first character
6572 of errstring if it is still unibyte.
6573
65742008-08-29 Kenichi Handa <handa@m17n.org>
6575
6576 These changes are to re-implement the automatic composition so
6577 that it doesn't use text properties.
6578
6579 * Makefile.in (ftfont.o): Depend on composite.h.
6580 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6581
6582 * character.h (Vunicode_category_table): Extern it.
6583
6584 * character.c (Vunicode_category_table): New variable.
6585 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6586
6587 * chartab.c (optimize_sub_char_table): Perform more greedy
6588 optimization.
6589
b8ff72fa
SM
6590 * composite.h (enum composition_method):
6591 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6592 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6593 (Vcomposition_function_table): Extern it.
6594 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6595 (composition_gstring_put_cache, composition_gstring_from_id)
6596 (composition_gstring_p, composition_gstring_width)
6597 (composition_compute_stop_pos, composition_reseat_it)
6598 (composition_update_it, composition_adjust_point): Extern them.
6599 (Fcomposition_get_gstring): EXFUN it.
6600
d66c0241 6601 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6602 (Vcomposition_function_table)
6603 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6604 (gstring_hash_table, gstring_work, gstring_work_headers):
6605 New variables.
aac0c6e3
MR
6606 (gstring_lookup_cache, composition_gstring_put_cache)
6607 (composition_gstring_from_id, composition_gstring_p)
6608 (composition_gstring_width, fill_gstring_header)
6609 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6610 (composition_reseat_it, composition_update_it)
b8ff72fa 6611 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6612 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6613 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6614 Defsubr compostion_get_gstring.
6615
6616 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6617 cmp_id.
6618 (struct glyph_string): Delete the member gidx. New members
6619 cmp_id, cmp_from, and cmp_to.
6620 (enum it_method): Delete GET_FROM_COMPOSITION.
6621 (struct composition_it): New struct.
6622 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6623 Delete c, len, cmp_id, cmp_len in u.comp.
6624
6625 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6626 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6627 (enum lglyph_indices): Likewise.
b8ff72fa 6628 (font_range): Adjust extern.
aac0c6e3
MR
6629 (font_fill_lglyph_metrics): Extern it.
6630
6631 * font.c (QCf): New variable.
6632 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6633 (font_prepare_composition): Delete this function.
6634 (font_range): Type and arguments changed.
6635 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6636 (font_fill_lglyph_metrics): New function.
b8ff72fa 6637 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6638 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6639 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6640 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6641
6642 * fontset.h (font_for_char): Extern it.
6643
6644 * fontset.c (font_for_char): New function.
6645
6646 * ftfont.c: Include composite.h.
6647 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6648 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6649
6650 * indent.c: Include composite.h and dispextern.h.
6651 (check_composition): Delete this function.
6652 (scan_for_column): Handle composition by
6653 composition_compute_stop_pos, composition_reseat_it, and
6654 composition_update_it.
6655 (compute_motion): Likewise.
6656 (Fvertical_motion): Fix checking of composition.
6657
6658 * keyboard.c (adjust_point_for_property): Check composition by
6659 composition_adjust_point.
6660
b8ff72fa 6661 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6662 struct glyph_string.
6663
b8ff72fa
SM
6664 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6665 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6666 struct glyph.
6667 (produce_composite_glyph): Likewise.
6668
b8ff72fa
SM
6669 * w32term.c (x_draw_composite_glyph_string_foreground):
6670 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6671 (x_draw_glyph_string): Likewise.
6672
6673 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6674 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6675
6676 * xdisp.c: Include font.h.
6677 (it_props): Delete the entry for Qauto_composed.
6678 (init_iterator): Initialize it->cmp_it.id to -1.
6679 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6680 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6681 (handle_auto_composed_prop): Delete it.
6682 (handle_composition_prop): Handle only static composition.
6683 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6684 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6685 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6686 (pop_it): Likewise.
6687 (get_next_element): Delete next_element_from_composition.
6688 (CHAR_COMPOSED_P): New macro.
6689 (get_next_display_element): For automatic composition, get a face
6690 from the font in the glyph-string.
6691 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6692 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6693 (next_element_from_string): Check if the character at the current
6694 position is composed by CHAR_COMPOSED_P.
6695 (next_element_from_buffer): Likewise.
d66c0241
JB
6696 (next_element_from_composition): Adjust for the change of struct it.
6697 Update it->cmp_it.
b8ff72fa
SM
6698 (dump_glyph): Adjust for the change of struct glyph.
6699 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6700 it and struct glyph. Don't handle automatic composition here.
6701 (fill_gstring_glyph_string): New function.
6702 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6703 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6704 (BUILD_GSTRING_GLYPH_STRING): New macro.
6705 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6706 automatic composition.
b8ff72fa 6707 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6708 struct glyph.
b8ff72fa 6709 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6710
b8ff72fa 6711 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6712 the change of struct glyph_string.
6713 (x_draw_glyph_string): Likewise.
6714
67152008-08-29 Glenn Morris <rgm@gnu.org>
6716
6717 * buffer.c (word-wrap): Doc fix.
6718 * xdisp.c (truncate-partial-width-windows): Doc fix.
6719 Increase default to 50.
6720
67212008-08-29 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * xdisp.c (update_tool_bar_unwind): New function.
6724 (update_tool_bar): Temporarily set selected frame before building
6725 tool-bar items.
6726
67272008-08-28 Michael Albinus <michael.albinus@gmx.de>
6728
6729 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6730 snprintf, respectively.
6731 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6732
67332008-08-28 Chong Yidong <cyd@stupidchicken.com>
6734
6735 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6736 LDFLAGS to GNUstep CC invocation.
6737
67382008-08-27 Chong Yidong <cyd@stupidchicken.com>
6739
6740 * indent.c (Fvertical_motion): Revert last change. Handle the
6741 general case where we are moving forward, and PT spans multiple
6742 screen lines.
6743
6744 * eval.c (find_handler_clause): Temporarily increase
6745 max-lisp-eval-depth while printing the backtrace buffer, to
6746 guarantee that help-mode code can run.
6747
67482008-08-27 Eli Zaretskii <eliz@gnu.org>
6749
6750 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6751 colors under -rv.
6752 (IT_set_frame_parameters): Don't swap foreground and background
6753 colors if `(reverse . t)' is present in the frame properties.
6754 (internal_terminal_init): Call init_frame_faces only for the
6755 initial frame.
6756
67572008-08-27 Andreas Schwab <schwab@suse.de>
6758
6759 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6760
67612008-08-27 Andreas Schwab <schwab@suse.de>
6762
6763 * search.c (search_buffer): Set char_base to zero only at the end.
6764
67652008-08-27 Kenichi Handa <handa@m17n.org>
6766
b8ff72fa 6767 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6768
67692008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6770
6771 * xterm.c (x_term_init): Temporarily hide the partially
6772 initialized terminal while calling vendor-specific-keysyms.
6773
67742008-08-26 Eli Zaretskii <eliz@gnu.org>
6775
6776 * msdos.c (internal_terminal_init): Most initializations done only
6777 once, especially initial_screen_colors[] and termscript open.
6778
67792008-08-26 Chong Yidong <cyd@stupidchicken.com>
6780
6781 * eval.c (Fcondition_case): Doc fix.
6782
6783 * widgetprv.h (EmacsFramePart): Change font member to the new font
6784 struct.
6785
6786 * widget.c: Include character.h and font.h for XSETFONT.
6787 (setup_frame_gcs): Compute X font id from font struct, just once.
6788
67892008-08-26 Eli Zaretskii <eliz@gnu.org>
6790
6791 * term.c (get_named_tty): Fix last change.
6792
67932008-08-26 Chong Yidong <cyd@stupidchicken.com>
6794
6795 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6796 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6797
67982008-08-25 Eli Zaretskii <eliz@gnu.org>
6799
6800 * frame.c (do_switch_frame): Mark previously displayed frame as
6801 obscured for FRAME_MSDOS_P frames as well.
6802
68032008-08-24 Eli Zaretskii <eliz@gnu.org>
6804
6805 * frame.c (make_terminal_frame): Initialize f->terminal,
6806 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6807 Set the top frame to newly created frame.
6808 (Fmake_terminal_frame): Reuse the_only_display_info.
6809
6810 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6811 estimating available memory.
6812
b97439ce 68132008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6814
6815 * nsterm.m (ns_draw_window_cursor): Don't call
6816 NSDisableScreenUpdates and NSEnableScreenUpdates on
6817 non-NS_IMPL_COCOA systems.
6818
68192008-08-23 Andreas Schwab <schwab@suse.de>
6820
6821 * process.c (procfs_system_process_attributes): Fix use of
6822 uninitialized variables.
6823
68242008-08-23 Eli Zaretskii <eliz@gnu.org>
6825
6826 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6827
6828 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6829 calling tty-set-up-initial-frame-faces.
6830
b8ff72fa
SM
6831 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6832 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6833
6834 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6835 addition to output_termcap.
6836
6837 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6838
6839 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6840 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6841 highlight.
6842
6843 * process.c [!subprocesses]: Define QCname.
6844 (syms_of_process): Intern and staticpro it.
6845
6846 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6847 Adjust for changes in encoding/decoding routines.
6848 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6849 encode_coding and decode_coding.
6850
b8ff72fa 6851 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6852
6853 * dosfns.c: Include frame.h before termhooks.h.
6854 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6855 variable termscript.
6856
6857 * s/msdos.h (USER_FULL_NAME): Define.
6858 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6859
6860 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6861 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6862 pw->pw_gecos.
6863
6864 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6865 SELECTED_FRAME as additional (1st) argument.
6866 (tty_read_avail_input): Handle output_msdos_raw in
6867 addition to output_termcap.
6868
6869 * msdos.c: Include frame.h before termhooks.h.
6870 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6871 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6872 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6873 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6874 (IT_set_terminal_modes, IT_reset_terminal_modes)
6875 (IT_set_frame_parameters): Use tty->termscript instead of a global
6876 variable termscript.
6877 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6878 global variable terminal_coding. Don't refer to
6879 Vnonascii_translation_table.
6880 (internal_terminal_init): Set Vwindow_system in current_kboard.
6881 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6882 Announce date and time of session start, if termscript is open.
6883 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6884 term.c:init_tty). Open termscript only of not already open.
6885 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6886 here instead of dos_ttraw. Don't initialize display if this is an
6887 initial tty. Don't set FRAME_FONT.
6888 (Vwindow_system_version): Bump to 23.
6889 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6890 is available, set up mouse_position_hook.
6891 (dos_ttraw, IT_set_terminal_modes): If called with initial
6892 terminal, do nothing.
6893 (IT_set_frame_parameters): Handle the Qtty_type frame
6894 parameter by calling internal_terminal_init.
6895 (dos_set_window_size, show_mouse_face)
6896 (clear_mouse_face, IT_note_mode_line_highlight)
6897 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6898 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6899 (initialize_msdos_display): New function.
6900 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6901 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6902 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6903 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6904 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6905 (request_sigio, unrequest_sigio): Don't define, now defined on
6906 sysdep.c.
6907 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6908
6909 * term.c [MSDOS]: Include msdos.h.
6910 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6911 conditional to DOS_NT. Allow only one call to this function in a
6912 session. Don't allocate a new struct tty_display_info; instead,
6913 reuse the_only_display_info. Call get_tty_size to get screen
6914 dimensions. Call init_baud_rate to set bad_rate.
6915 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6916 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6917 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6918 (get_tty_terminal, get_named_tty, Ftty_type)
6919 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6920 output_termcap.
b8ff72fa
SM
6921 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6922 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6923 only when subprocesses are supported.
aac0c6e3
MR
6924
6925 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6926 f->output_data.x.
6927 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6928 terminal devices.
6929
5582fbc7 6930 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6931 x_output.
6932 (FRAME_FONT): Use output_data.tty.
6933 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6934 (struct x_display_info): Rename from display_info. Update all users in
6935 msdos.c.
aac0c6e3 6936 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6937 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6938 (dos_ttraw): Update prototype.
6939
6940 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6941 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6942
69432008-08-23 Jason Rumney <jasonr@gnu.org>
6944
6945 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6946 (fn_TIFFSetDirectory): New library function used.
6947 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6948 (tiff_load): Use :index to select among multiple images. Set count
6949 property when multiple images exist.
6950 (gif_format): Use :index, not :image.
6951
69522008-08-23 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * xdisp.c (try_scrolling): Check INT_MAX instead of
6955 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6956 to obtain INT_MAX.
6957
69582008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6959
6960 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6961
69622008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6963
6964 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6965 GNUstep library location.
6966
69672008-08-21 Chong Yidong <cyd@stupidchicken.com>
6968
6969 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6970 before using it.
6971
6972 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6973
69742008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6975
6976 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6977 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6978 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6979 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6980 (EmacsApp-cursor_blink_handler): Remove declaration.
6981 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6982 match 01 Feb 2008 changes in xterm.c.
6983 (ns_read_socket): Add cast to avoid warning.
6984 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6985 GNUstep.
6986
69872008-08-20 Chong Yidong <cyd@stupidchicken.com>
6988
6989 * xselect.c (x_get_foreign_selection): Return nil if desired
6990 selection could not be obtained, instead of signalling an error.
6991
69922008-08-20 David Reitter <david.reitter@gmail.com>
6993
6994 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6995 * nsterm.m: Remove ns-specific code for cursor blinking.
6996 (ns_draw_window_cursor): Clear cursor properly rather than
6997 redrawing the area. Respect width of bar cursors.
6998 These changes enable the use of generic blink-cursor-mode and
6999 generic cursor types in NS and support smooth cursor movements (do
7000 not blink off after command).
7001 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7002 Nextstep, too.
7003
70042008-08-19 Kenichi Handa <handa@m17n.org>
7005
7006 * font.c (Vfont_log_deferred): New variable.
7007 (font_add_log): Check Vfont_log_deferred.
7008 (font_deferred_log): New function.
7009
7010 * font.h (font_deferred_log): Extern it.
7011
7012 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7013 for sorting.
7014 (face_for_char): Use deferred log.
7015
70162008-08-18 Kenichi Handa <handa@m17n.org>
7017
7018 * fontset.c (face_for_char): Add font log.
7019
7020 * font.c (font_add_log): Add the font properties :script, :lang,
7021 and :otf in the log.
7022
70232008-08-17 Chong Yidong <cyd@stupidchicken.com>
7024
7025 * xdisp.c: Remove dead code.
7026 (handle_invisible_prop, next_overlay_string): Defer call to
7027 setup_for_ellipsis.
7028 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7029
70302008-08-15 Chong Yidong <cyd@stupidchicken.com>
7031
7032 * xfaces.c (lookup_derived_face): Properly handle possible zero
7033 return value of get_lface_attributes.
7034 (merge_faces): Don't tell lookup_derived_face to signal an error
7035 if face is not found.
7036
7037 * dired.c (Fdirectory_files): Doc fix.
7038
7039 * process.c (make_process): Initialize kill_without_query struct
7040 member.
7041
70422008-08-15 Eli Zaretskii <eliz@gnu.org>
7043
7044 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7045 Alternative calculation of totphys for Visual Studio 6.
7046
7047 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7048
7049 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7050 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7051 All users changed.
7052 (stat): Only root directory passed to GetDriveType. Allow RAM
7053 disk as well as local fixed disk when w32-get-true-file-attributes
7054 is set to `local'.
7055 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7056 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7057 (w32_cached_id, w32_add_to_cache): New functions.
7058 (get_name_and_id): Look account names in the cache before calling
7059 lookup_account_sid.
7060 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7061 New initialization flags.
7062 (globals_of_w32): Initialize them to zero.
7063 (w32_system_process_attributes): Use w32_cached_id and
7064 w32_add_to_cache.
7065
70662008-08-14 Lawrence Mitchell <wence@gmx.li>
7067
7068 * lread.c (Fread_char, Fread_char_exclusive): If no character
7069 event is read before timeout is reached, return nil, rather than
7070 converting to a number.
7071
70722008-08-14 Chong Yidong <cyd@stupidchicken.com>
7073
7074 * fns.c (use_dialog_box): Doc fix.
7075
7076 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7077 on OS X.
7078
70792008-08-13 Chong Yidong <cyd@stupidchicken.com>
7080
7081 * frame.c (Qns_parse_geometry): New var.
7082 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7083
70842008-08-11 Chong Yidong <cyd@stupidchicken.com>
7085
7086 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7087 space character in calculating tabs.
7088
70892008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7090
7091 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7092
70932008-08-10 Glenn Morris <rgm@gnu.org>
7094
7095 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7096 silence gcc "limited range of data type" warnings in some
7097 make_fixnum_or_float calls.
7098
70992008-08-09 Eli Zaretskii <eliz@gnu.org>
7100
7101 * w32.c (w32_system_process_attributes): If the process does not
7102 exist, return nil.
7103
7104 * w32.c: Include thelp32.h, psapi.h and coding.h.
7105 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7106 declarations.
7107 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7108 (Process32Next_Proc): New typedefs.
7109 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7110 (g_b_init_process32_next, g_b_init_open_thread_token)
7111 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7112 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7113 (g_b_init_get_process_working_set_size)
7114 (g_b_init_global_memory_status_ex): New static variables.
7115 (globals_of_w32): Initialize them.
7116 (create_toolhelp32_snapshot, process32_first, process32_next)
7117 (open_thread_token, impersonate_self, revert_to_self)
7118 (get_process_memory_info, get_process_working_set_size)
7119 (global_memory_status, global_memory_status_ex): New wrapper
7120 functions.
7121 (w32_list_system_processes, w32_system_process_attributes)
7122 (enable_privilege, restore_privilege, ltime, process_times):
7123 New functions.
7124 (convert_time_raw): New function.
7125 (convert_time): Remove conversion of FILETIME into time in 100
7126 nsec units, call convert_time_raw instead.
7127
7128 * process.h (w32_list_system_processes, w32_system_process_attributes):
7129 Add prototypes.
7130 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7131 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7132 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7133 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7134
7135 * process.c (Fsystem_process_attributes): Doc fix.
7136
71372008-08-08 Chong Yidong <cyd@stupidchicken.com>
7138
7139 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7140 a continued multi-char glyph; if so, advance to the actual glyph.
7141
71422008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7143
7144 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7145
7146 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7147 (.m.o): Use it.
7148 * config.in: Regenerate.
7149
71502008-08-07 Chong Yidong <cyd@stupidchicken.com>
7151
7152 * xdisp.c (redisplay_window): Revert last change.
7153 (try_window): Check bottom scroll margin too.
7154
71552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7156
7157 * config.in: Regenerate.
7158
7159 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7160 -list-load-path-shadows'.
7161 (nsgui.h): Reduce number of things depending on it.
7162
71632008-08-06 Chong Yidong <cyd@stupidchicken.com>
7164
7165 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7166 instead of window-end which does the wrong thing at eob.
7167 (try_cursor_movement): Minor optimization.
7168 (redisplay_window): If scroll margin is defined, don't assume
7169 window doesn't need scrolling.
7170
71712008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7172
7173 * config.in: Regenerate.
7174
7175 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7176 (mostlyclean): Don't delete *.d under NS.
7177
7178 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7179
71802008-08-06 Kenichi Handa <handa@m17n.org>
7181
7182 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7183
71842008-08-06 Andreas Schwab <schwab@suse.de>
7185
7186 * config.in: Regenerate.
7187
71882008-08-05 Chong Yidong <cyd@stupidchicken.com>
7189
7190 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7191 forcing a window start.
7192
7193 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7194 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7195
71962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7197
7198 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7199 argument.
7200
72012008-08-05 Juanma Barranquero <lekktu@gmail.com>
7202
7203 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7204 <scroll-down-aggressively, before-change-functions>:
7205 <after-change-functions>: Reflow docstrings.
7206
72072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7208 Ken Raeburn <raeburn@gnu.org>
7209
7210 Dock menu customization, based on a patch by Ken Raeburn, plus some
7211 other fixes.
7212 * nsmenu.m (dockMenu): New variable.
7213 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7214
7215 * nsterm.h (dockMenu): Declare.
7216
7217 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7218 (ns_term_init): Initialize dockMenu.
7219 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7220 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7221 left.
7222
7223 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7224
72252008-08-04 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7228
7229 * config.in: Regenerate.
7230
72312008-08-04 Seiji Zenitani <zenitani@mac.com>
7232
7233 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7234
72352008-08-04 Chong Yidong <cyd@stupidchicken.com>
7236
7237 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7238
72392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7240
7241 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7242
7243 * keyboard.h: Comment an #endif.
7244
7245 * lisp.h (have_menus_p): Adjust comment.
7246
7247 * menu.c (find_and_return_menu_selection): Fix comparison with
7248 client_data.
7249
7250 * nsmenu.m (popup_activated_flag): New variable.
7251 (popup_activated): New function.
7252 (menu-or-popup-active-p): New exported lisp definition.
7253 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7254 when popup done.
7255 (ns_popup_dialog): Set popup_activated_flag.
7256
7257 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7258 version for GNUstep (handled by conditional typedef in nsterm.m).
7259 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7260 in rgb.txt).
7261
7262 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7263
7264 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7265
7266 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7267
7268 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7269 shortcircuit if popup_activated like GTK and X toolkit.
7270
7271 * m/inter386.h: Change DARWIN to DARWIN_OS.
7272
7273 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7274 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7275 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7276 comment on NO_SOCK_SIGIO.
7277
72782008-08-03 Chong Yidong <cyd@stupidchicken.com>
7279
7280 * nsterm.m (windowDidResize): Remove stopModal call.
7281
72822008-08-03 Andreas Schwab <schwab@suse.de>
7283
7284 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7285 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7286
72872008-08-02 Chong Yidong <cyd@stupidchicken.com>
7288
7289 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7290 Don't use uninitialized pointer variable when using getrlimit.
7291
72922008-08-02 Jason Rumney <jasonr@gnu.org>
7293
7294 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7295
72962008-08-02 Eli Zaretskii <eliz@gnu.org>
7297
7298 * alloc.c (NSTATICS): Bump to 0x640.
7299
7300 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7301
7302 * lisp.h: Add prototype for directory_files_internal.
7303
7304 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7305 New functions.
7306 (syms_of_process): Defsubr them. Add initializations for various
7307 Q* symbols used in procfs_system_process_attributes.
7308 (procfs_list_system_processes, procfs_system_process_attributes)
7309 [HAVE_PROCFS]: New functions.
7310 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7311 (procfs_get_total_memory): New functions.
7312
73132008-08-01 Juanma Barranquero <lekktu@gmail.com>
7314
7315 * xfaces.c (Fx_load_color_file): Fix previous change;
7316 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7317
73182008-08-01 Michael Albinus <michael.albinus@gmx.de>
7319
7320 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7321
73222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7323
7324 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7325
73262008-08-01 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7329
7330 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7331 define NSApplicationDelegateReplySuccess.
7332 (EmacsView -converstationIdentifier): Use long instead of
7333 NSInteger for GNUstep, since it doesn't have NSInteger.
7334
7335 * xmenu.c: Revert last change.
7336
7337 * keyboard.h: Fix last change.
7338
73392008-08-01 Juanma Barranquero <lekktu@gmail.com>
7340
7341 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7342 on Windows.
7343
73442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7345
7346 Warning clearing and clean-up in NS port.
7347 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7348 Add prototypes.
7349 * nsgui.h (FACE_DEFAULT): Remove, unused.
7350 (XGCValues): Change colors to unsigned long.
7351 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7352 nsterm.m.
7353 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7354 (ns_list_fonts): Remove, unused.
7355 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7356 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7357 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7358 (nsfont_draw): Compare face colors to 0, not nil.
7359 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7360 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7361 (-addSubmenuWithTitle:): Use NSMenuItem class.
7362 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7363 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7364 (ns_clip_to_row): Make gc arg a BOOL.
7365 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7366 ns_clip_to_row() call.
7367 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7368 used). Cast FRAME_FONT assignments.
7369 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7370 (ns_string_to_lispmod): Change arg to const char.
7371 (ns_term_init): Use NSMenuItem class.
7372 (EmacsApp -openFile:): Move to different section of file.
7373 (EmacsApp -application:openFiles:): Don't return a value, call
7374 -replyToOpenOrPrint:.
7375 (EmacsView -keyDown:): Fix up cast.
7376 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7377 (EmacsView -menuDown:): Cast tag in call to
7378 find_and_call_menu_selection().
7379 (ns_list_fonts): Remove, unused.
7380 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7381 (ns_fontname_to_xlfd): Make static.
7382 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7383 Remove prototypes (now in keyboard.h).
7384 (next_menubar_widget_id): Remove, unused.
7385 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7386 Remove prototypes (now in keyboard.h).
7387 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7388
73892008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7390
7391 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7392 (floatfns.o): Depend on syssignal.h.
7393 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7394
7395 * systty.h: Fix previous change that removed BSD_TERMIOS.
7396 Add comments to #ifdefs.
7397
73982008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7399
7400 * w32fns.c (w32-load-color-file): Remove.
7401 (x-open-connection): Use renamed Fx_load_color_file.
7402 * xfaces.c (x-load-color-file): Add.
7403 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7404 Emacs.clr.
7405 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7406
74072008-07-31 Michael Albinus <michael.albinus@gmx.de>
7408
7409 * dbusbind.c (Fdbus_call_method_asynchronously)
7410 (Fdbus_method_error_internal): New defuns.
7411 (xd_read_message): Handle also reply messages.
7412 (Vdbus_registered_functions_table): Extend docstring.
7413
74142008-07-31 Juanma Barranquero <lekktu@gmail.com>
7415
7416 * keyboard.c (gobble_input): Fix previous change.
7417
74182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7419
7420 * bitmaps/README:
7421 * xfns.c:
7422 * termcap.c:
7423 * term.c:
7424 * syswait.h:
7425 * systty.h:
7426 * systime.h:
7427 * syssignal.h:
7428 * sysdep.c:
7429 * process.h:
7430 * process.c:
7431 * print.c:
7432 * ndir.h:
7433 * lread.c:
7434 * keyboard.c:
7435 * getpagesize.h:
7436 * floatfns.c:
7437 * fileio.c:
7438 * emacs.c:
7439 * doc.c:
7440 * dispnew.c:
7441 * dired.c:
7442 * data.c:
7443 * callproc.c:
7444 * buffer.c:
7445 * README:
7446 * Makefile.in:
7447 * s/template.h:
7448 * s/msdos.h:
7449 * m/vax.h: Remove VMS support.
7450 * s/vms.h:
7451 * vlimit.h:
7452 * uaf.h:
7453 * temacs.opt:
7454 * param.h:
7455 * ioctl.h: Remove file.
7456
74572008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7458
7459 * s/ms-w32.h (MULTI_KBOARD): Remove.
7460 * xterm.c:
7461 * xselect.c:
7462 * xfns.c:
7463 * window.c:
7464 * w32term.c:
7465 * w32fns.c:
7466 * terminal.c:
7467 * termhooks.h:
7468 * term.c:
7469 * sysdep.c:
7470 * keyboard.h:
7471 * keyboard.c:
7472 * frame.h:
7473 * frame.c:
7474 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7475 * config.in: Regenerate.
7476
74772008-07-30 Jason Rumney <jasonr@gnu.org>
7478
7479 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7480
7481 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7482 (w32font_open_internal): Get unicode version of textmetrics.
7483 Don't enable or disable glyph indices here.
7484 (w32font_open): Disable use of glyph indices.
7485
7486 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7487
74882008-07-30 Chong Yidong <cyd@stupidchicken.com>
7489
7490 * minibuf.c (Vread_buffer_function): Doc fix.
7491
74922008-07-30 John Paul Wallington <jpw@pobox.com>
7493
7494 * minibuf.c (read_buffer_completion_ignore_case): New var.
7495 (Fread_buffer): Use it.
7496
74972008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7498
7499 * systty.h (sensemode): Remove empty #if. Remove reference to
7500 BSD_TERMIOS, unused.
7501
7502 * sysdep.c: Remove reference to DGUX.
7503 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7504
7505 * config.in: Regenerate.
7506
75072008-07-30 Jason Rumney <jasonr@gnu.org>
7508
7509 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7510
75112008-07-29 Jason Rumney <jasonr@gnu.org>
7512
7513 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7514 is populated.
7515 (uniscribe_encode_char): Always use uniscribe.
7516 Avoid using context if cache is populated.
7517
75182008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7519
7520 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7521 open menu.
7522
7523 * gtkutil.c (menu_nav_ended): Remove.
7524 (create_menus): Remove signal connect for menu_nav_ended.
7525
75262008-07-28 Chong Yidong <cyd@stupidchicken.com>
7527
7528 * xdisp.c (redisplay_window): Check return value of
7529 compute_window_start_on_continuation_line before forcing a window
7530 start.
7531
75322008-07-28 Jason Rumney <jasonr@gnu.org>
7533
7534 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7535
7536 * w32term.c (w32_enable_unicode_output, cleartype_active):
7537 Remove obsolete display options.
7538 (x_draw_glyph_string_background): Don't use old cleartype_active
7539 workaround.
7540 (w32_initialize): Remove cleartype_active initialization.
7541 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7542
75432008-07-28 Andreas Schwab <schwab@suse.de>
7544
7545 * lisp.h (init_weak_hash_tables, syms_of_font)
7546 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7547 (remove_hash_entry): Don't declare.
7548 * eval.c (maybe_call_debugger): Make static and move before use.
7549 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7550 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7551 * xterm.h (x_set_frame_alpha): Declare.
7552
75532008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7554
7555 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7556 (create_menus): Connect selection-done to menu_nav_ended.
7557
75582008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7559
7560 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7561 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7562 parameter with read of 'alpha' one.
7563 (Qns_frame_parameter): Remove.
5582fbc7 7564 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7565 (next-selection-coding-system, Vselection_coding_system)
7566 (Vnext_selection_coding_system): Drop.
7567
75682008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7569
7570 * nsfns.m (do-applescript, do_applescript): Rename to
7571 ns-do-applescript, ns_do_applescript, and move within file.
7572
75732008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7574
7575 Remove support for Mac Carbon.
7576 * mactoolbox.c:
7577 * macterm.h:
7578 * macterm.c:
7579 * macselect.c:
7580 * macmenu.c:
7581 * macgui.h:
7582 * macfns.c:
7583 * mac.c: Remove file.
7584 * s/darwin.h:
7585 * m/intel386.h:
7586 * xfaces.c:
7587 * xdisp.c:
7588 * window.c:
7589 * tparam.c:
7590 * termhooks.h:
7591 * termcap.c:
7592 * term.c:
7593 * syssignal.h:
7594 * sysselect.h:
7595 * sysdep.c:
7596 * process.c:
7597 * lread.c:
7598 * lisp.h:
7599 * keyboard.c:
7600 * image.c:
7601 * fringe.c:
7602 * frame.h:
7603 * frame.c:
7604 * fontset.c:
7605 * font.h:
7606 * font.c:
7607 * fns.c:
7608 * fileio.c:
7609 * emacs.c:
7610 * dispnew.c:
7611 * dispextern.h:
7612 * config.in:
7613 * atimer.c:
2ae37cf0 7614 * Makefile.in: Remove code for Carbon.
aac0c6e3 7615
f0131492 76162008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7617
7618 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7619
76202008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7621
7622 * macterm.h (kCGBitmapByteOrder32Host): New define for
7623 non-universal SDKs.
7624
7625 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7626 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7627
7628 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7629 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7630
76312008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7632
7633 * w32inevt.c: Include dispextern.h.
7634
76352008-07-26 Andreas Schwab <schwab@suse.de>
7636
7637 * print.c (print_object): Fix off-by-one in last change.
7638
76392008-07-25 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * term.c (syms_of_term): Don't initialize default_orig_pair,
7642 default_set_foreground and default_set_background on Windows.
7643
76442008-07-25 Jason Rumney <jasonr@gnu.org>
7645
7646 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7647 ScriptItemize. Clean up return value checking. Remove unused
7648 variables.
7649 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7650 shaping engine.
7651
7652 * w32font.c (w32font_has_char): Handle the case where we can't
7653 determine the script for a character.
7654
76552008-07-25 Chong Yidong <cyd@stupidchicken.com>
7656
7657 * term.c (syms_of_term): Initialize default_orig_pair,
7658 default_set_foreground, and default_set_background.
7659
7660 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7661 clash (bug#86).
7662 (getloadavg): Callers changed.
7663
7664 * image.c (svg_load_image): Fix last change.
7665 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7666 image size is valid. Use g_object_unref instead of deprecated
7667 rsvg_handle_free to free rsvg handle.
7668 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7669
76702008-07-25 Jason Rumney <jasonr@gnu.org>
7671
7672 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7673 surrogates before looking up glyph index.
7674 (w32font_text_extents): Encode as surrogates if falling back to
7675 functions that need UTF-16 wide chars.
7676
7677 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7678 BMP as surrogates before looking up glyph index.
7679
76802008-07-25 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * image.c (svg_load_image): Check for failure in return value of
7683 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7684
76852008-07-25 Jason Rumney <jasonr@gnu.org>
7686
7687 * w32font.c (Fx_select_font): Reverse sense of second arg.
7688
76892008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7690
7691 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7692 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7693
7694 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7695 (PURESIZE): Use it.
7696
76972008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7698
7699 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7700 * m/alpha.h (TEXT_END):
7701 * m/ibmrs6000.h (TEXT_END):
7702 * m/macppc.h (TEXT_END):
7703 * s/darwin.h (TEXT_END):
7704 * s/msdos.h (TEXT_END): Remove, unused.
7705 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7706 * s/cygwin.h: Remove comment.
7707
7708 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7709 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7710 * m/intel386.h (DOT_GLOBAL_START):
7711 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7712 (USG): Remove, file not used on USG platforms.
7713
7714 * Makefile.in (HAVE_X11): Remove empty #else.
7715
77162008-07-24 Andreas Schwab <schwab@suse.de>
7717
7718 * fileio.c (Finsert_file_contents): Properly adjust undo list
7719 after format conversion.
7720
77212008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7722
7723 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7724 (menu_nav_ended): Remove.
7725 (create_menus): Remove signal connect for menu_nav_ended.
7726 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7727 create_menus.
7728 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7729
77302008-07-23 Jason Rumney <jasonr@gnu.org>
7731
7732 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7733 with opened font.
7734 (w32font_open): Set font type to gdi.
7735
7736 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7737
77382008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7739
7740 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7741 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7742 defines it.
7743 * unexec.c (ADDR_CORRECT): Define unconditionally.
7744
7745 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7746
7747 * unexec.c: Remove code depending on !COFF and USG, the file is
7748 not used for such systems.
7749
7750 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7751 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7752 (LD_SWITCH_SYSTEM_1): Remove, update users.
7753
7754 * s/darwin.h (DATA_END):
7755 * m/intel386.h (DATA_END):
7756 * m/ibmrs6000.h (DATA_END):
7757 * m/alpha.h (DATA_END): Remove, unused.
7758
7759 * config.in: Regenerate.
7760 * s/ms-w32.h (subprocesses): Define unconditionally.
7761 * s/template.h (subprocesses): Update comment.
7762 * s/vms.h (subprocesses):
7763 * s/usg5-4.h (subprocesses):
7764 * s/hpux10-20.h (subprocesses):
7765 * s/gnu-linux.h (subprocesses):
7766 * s/cygwin.h (subprocesses):
7767 * s/bsd-common.h (subprocesses):
7768 * s/aix4-2.h (subprocesses):
7769 * s/darwin.h (subprocesses): Do not define, defined by default now.
7770
7771 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7772 Remove all references.
7773 (temacs): Add GNUstep specific ld flags.
7774
7775 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7776 similarly to what X does.
7777
77782008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7779
7780 * nsfns.m (x-list-fonts): Remove.
7781 (syms_of_nsfns): Drop the x-list-fonts declaration.
7782 * nsterm.m: Get rid of remaining "//" comments.
7783
77842008-07-22 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7787
7788 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7789 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7790 (Fns_own_selection_internal, Fx_disown_selection_internal)
7791 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7792
7793 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7794 ... */' style of docstrings. Doc fixes.
7795
77962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7797
7798 * terminfo.c (UP, BC, PC): Undo previous change.
7799
7800 * nsfns.m: Rename ns prefixed functions/variables to the
7801 corresponding x versions. Update references.
7802
78032008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7804
7805 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7806
78072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7808
7809 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7810 Remove forwarding functions.
7811 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7812 non-static.
7813 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7814 non-static.
7815 (ns_frame_parm_handlers): Use the new names.
7816 (syms_of_nsfns): Move to the end of file.
7817
7818 * nsterm.m (syms_of_nsterm): Move to the end of file.
7819
7820 * dispnew.c (init_display): Remove code for X10.
7821
78222008-07-22 Jason Rumney <jasonr@gnu.org>
7823
7824 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7825 bare drive.
7826
78272008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7828
7829 * nsterm.m (syms_of_nsterm): Remove debugging println.
7830
78312008-07-22 David Reitter <david.reitter@gmail.com>
7832
7833 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7834 Carbon implementation of the same functionality: execute arbitrary
7835 AppleScript code.
7836
78372008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7838
7839 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7840 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7841 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7842 (Fx_display_mm_height, Fx_display_mm_width)
7843 (Fx_display_backing_store, Fx_display_visual_class)
7844 (Fx_display_save_under, Fx_open_connection)
7845 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7846 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7847 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7848 (Fx_display_pixel_width, Fx_display_pixel_height)
7849 (Fx_display_usable_bounds, Fx_display_planes)
7850 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7851 ... */' style of docstrings.
7852
78532008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7854
7855 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7856 on this platform.
7857 (mips):
7858 * m/iris4d.h (mips): Do not define.
7859 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7860
7861 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7862
7863 * image.c:
7864 * nsfns.m:
7865 * nsselect.m:
7866 * nsterm.h:
7867 * nsterm.m: Rename ns prefixed functions/variables to the
7868 corresponding x versions. Update references.
7869
7870 * m/ibms390x.h (NO_REMAP): Do not undefine.
7871
7872 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7873
78742008-07-21 Chong Yidong <cyd@stupidchicken.com>
7875
7876 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7877 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7878 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7879 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7880 (Fns_display_mm_height, Fns_display_mm_width)
7881 (Fns_display_backing_store, Fns_display_visual_class)
7882 (Fns_display_save_under, Fns_open_connection)
7883 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7884 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7885 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7886 (Fns_display_pixel_width, Fns_display_pixel_height)
7887 (Fns_display_usable_bounds, Fx_display_planes)
7888 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7889
78902008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7891
7892 * print.c (print_object): Check print_depth before searching for
7893 circularities.
7894
78952008-07-21 Michael Albinus <michael.albinus@gmx.de>
7896
7897 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7898 only sprintf.
7899
79002008-07-21 Kenichi Handa <handa@m17n.org>
7901
7902 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7903
79042008-07-20 Andreas Schwab <schwab@suse.de>
7905
7906 * syntax.c (find_start_pos, find_start_value)
7907 (find_start_value_byte, find_start_begv, find_defun_start)
7908 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7909
79102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7911
7912 * s/sol2-3.h: Insert contents of s/sol2.h.
7913 (LD_SWITCH_SYSTEM): Remove redundant definition.
7914 * s/sol2.h: Remove, unused.
7915
79162008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7917
7918 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7919
79202008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7921
7922 * Makefile.in (ns_appdir): Fix typo in find command.
7923
79242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7925
7926 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7927
7928 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7929 added not supported anymore.
7930
7931 * s/usg5-4-2.h (LIBS_SYSTEM):
7932 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7933
7934 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7935 * s/lynxos.h (GETPGRP_NO_ARG):
7936 * s/hpux10-20.h (NO_SIOCTL_H):
7937 * s/gnu.h (GETPGRP_NO_ARG):
7938 * s/gnu-linux.h (NO_SIOCTL_H):
7939 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7940 * s/cygwin.h (GETPGRP_NO_ARG):
7941 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7942 (C_DEBUG_SWITCH): Remove duplicate definition.
7943
7944 * m/ibms390.h: Remove boilerplate comments.
7945
7946 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7947
7948 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7949 (wait_reading_process_output): Remove code for SunOS, platform not
7950 supported anymore. Use SOLARIS2 instead of sun.
7951
79522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7953
7954 * font.c (font_open_by_name): Under NS, default lface height to zero.
7955 (font_open_for_lface): Under NS, set size based on frame fontsize.
7956 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7957 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7958
79592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7960
7961 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7962 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7963 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7964 YES/NO.
7965 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7966 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7967 * Makefile.in (clean): Clear out build destination dir.
7968
79692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7970
7971 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7972 xterm, xselect.
7973 * lisp.h: Remove declaration of hash_remove.
7974 * nsgui.h: Remove redefinitions of hash_remove.
7975 * fns.c (hash_remove): Rename to hash_remove_from_table.
7976
79772008-07-19 Seiji Zenitani <zenitani@mac.com>
7978
7979 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7980 strdup() the family UTF8String before modifying it.
7981
79822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7983
7984 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7985 NS_FACE_BACKGROUND with 0 instead of nil.
7986 * nsfont.m (nsfont_draw): Same.
7987
79882008-07-19 Chong Yidong <cyd@stupidchicken.com>
7989
7990 * nsfns.m (ns_set_background_color): Fix crash.
7991
79922008-07-18 Chong Yidong <cyd@stupidchicken.com>
7993
7994 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7995
79962008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7997
7998 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7999
80002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8001
8002 * gtkutil.c: Include <config.h> instead of "config.h".
8003
8004 * lisp.h (Foverlay_buffer): Add EXFUN.
8005
8006 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8007 child process to complete child_setup. Undo 2005-09-21 change.
8008
8009 * s/darwin.h: Mention setsid after vfork.
8010
80112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8012
8013 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8014 Depend on macgui.h.
8015
8016 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8017 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8018
8019 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8020 and f19.
8021 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8022
8023 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8024 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8025 Remove enumerators.
8026
8027 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8028 Check if FACE_FROM_ID returns NULL.
8029
80302008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8031
8032 * w32inevt.c (change_frame_size): Remove extern declaration.
8033 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8034 change_frame_size.
8035
80362008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8037
8038 * getloadavg.c: Revert last change (2008-07-15).
8039
80402008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8041
8042 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8043 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8044 from configure.
8045
80462008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8047
8048 * s/sol2.h:
8049 * s/sol2-4.h: Reorganize conditionals.
8050
8051 * ecrt0.c: Remove code depending on m68000, not used anymore.
8052
8053 * fns.c (hash_remove): Make static.
8054 * lisp.h (hash_remove): Don't prototype.
8055
8056 * m/ibmrs6000.h:
8057 * m/ibms390x.h:
8058 * m/macppc.h: Remove boilerplate comments.
8059
8060 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8061 Solaris, which does not need them.
8062
8063 * m/vax.h: Remove comments about unsupported systems.
8064
8065 * s/darwin.h: Reorganize ifdefs.
8066
80672008-07-17 Andreas Schwab <schwab@suse.de>
8068
8069 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8070
80712008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8072
8073 Use SDATA. Follow coding convention of placing operators at
8074 beginning of next line rather than end of previous line, and placing
8075 spaces around infix operators.
8076
8077 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8078 in case it was defined already.
8079 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8080 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8081 ns_default.
8082 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8083 Lisp_Objects.
8084 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8085 (ns_defined_color, ns_color_to_lisp): Declare.
8086 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8087 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8088 it's accepted even with USE_LISP_UNION_TYPE.
8089 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8090 (update_frame_tool_bar): Remove apparently obsolete tests for
8091 non-integerness of f->tool_bar_lines.
8092 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8093 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8094 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8095 (nsfont_open): Don't confuse NULL for Qnil.
8096 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8097 * menu.h (find_and_call_menu_selection):
8098 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8099 (find_and_return_menu_selection): Always return something.
8100 * frame.h: Include dispextern.h for Display_Info.
8101 (display_x_get_resource): Declare.
8102
81032008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8104
8105 * syntax.c: Remove stdio.h include accidentally introduced in
8106 Emacs.app commit.
8107 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8108 NS_IMPL_COCOA.
8109 * keyboard.c (handle_async_input, input_available_signal): Remove
8110 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8111
81122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8113
8114 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8115 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8116 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8117 Use SDATA.
8118
8119 * keymap.c: Remove all NS-specific code.
8120 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8121 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8122 where_is_preferred_modifier, return a different value depending on how
8123 preferred is the binding.
8124 (where_is_internal): Adjust accordingly.
8125 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8126 Adjust to new preferred_sequence_p.
8127 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8128 * keyboard.c (parse_solitary_modifier): Not static any more.
8129 * keyboard.h (parse_solitary_modifier): Declare.
8130
81312008-07-16 Andreas Schwab <schwab@suse.de>
8132
8133 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8134 of easymenu.
8135
81362008-07-16 Chong Yidong <cyd@stupidchicken.com>
8137
8138 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8139 that we don't move off the line.
8140
81412008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8142
8143 * keyboard.c (Qsuper): Remove.
8144 (parse_menu_item): Don't call where_is_internal specially for NS.
8145
81462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8147
8148 * s/gnu-linux.h: Remove boilerplate comments.
8149
8150 * m/alpha.h (__ELF__): Consolidate conditions.
8151
8152 * m/m68k.h (linux): Use GNU_LINUX instead.
8153 Remove boilerplate comments.
8154
8155 * m/intel386.h: Undo refactoring from previous change.
8156 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8157 too, remove dead code.
8158 (linux): Use GNU_LINUX instead.
8159
81602008-07-16 Jason Rumney <jasonr@gnu.org>
8161
8162 * w32gui.h: Repeat 26 June changes lost by last change.
8163
81642008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8165
8166 * systty.h: Remove code for Aix on 386, unsupported platform.
8167
8168 * s/ms-w32.h: Remove boilerplate comments.
8169 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8170
8171 * s/gnu-linux.h (TERM): Remove support.
8172 (HAVE_SYSVIPC): Remove, unused.
8173 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8174 for this system.
8175
8176 * process.c: Remove support for IRIS, unused.
8177 Remove support for TERM, not relevant anymore.
8178
8179 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8180 used with the definition.
8181
8182 * s/aix4-2.h (static): Do not undef.
8183
8184 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8185 only used on Aix.
8186 (HAVE_SYSVIPC): Remove, unused.
8187
8188 * m/hp800.h (CANNOT_DUMP): Do not undef.
8189
8190 * m/alpha.h: Fix comment.
8191
8192 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8193 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8194 used by this configuration.
8195 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8196 * unexec.c: Remove code depending on HPUX and
8197 USG_SHARED_LIBRARIES, not used with this file. Remove code
8198 depending on IRIS, unused. Remove if 0-ed code.
8199
8200 * s/template.h: Remove comments about static.
8201
8202 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8203 Remove if 0-ed code.
8204 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8205 were the same as the default.
8206 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8207 Remove boilerplate comments.
8208 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8209 (HAVE_SYSVIPC): Remove, unused.
8210 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8211
8212 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8213 Remove boilerplate comments.
8214 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8215 Remove boilerplate comments.
8216 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8217 Remove boilerplate comments.
8218 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8219
8220 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8221 USG systems which do not use DATA_SEG_BITS.
8222 Refactor code. Remove boilerplate comments.
8223
8224 * m/ibms390.h:
8225 * m/m68k.h:
8226 * s/bsd-common.h:
8227 * s/cygwin.h:
8228 * s/darwin.h:
8229 * s/freebsd.h:
8230 * s/gnu.h:
8231 * s/msdos.h: Remove boilerplate comments.
8232
8233 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8234 do not use this file.
aac0c6e3
MR
8235 (IRIS_4D): Remove, unused.
8236
8237 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8238 do not use this file.
aac0c6e3
MR
8239 (SIGN_EXTEND_CHAR):
8240 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8241 * unexmips.c: Remove file, unused.
8242
8243 * editfns.c (Fuser_full_name): Replace the only use of
8244 USER_FULL_NAME with its value.
8245 * config.in: Regenerate.
8246
82472008-07-16 David Reitter <david.reitter@gmail.com>
8248
8249 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8250 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8251
82522008-07-16 Glenn Morris <rgm@gnu.org>
8253
8254 * emacs.c (system-type): Doc fix.
8255
82562008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8257
8258 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8259 If the cache doesn't work, let's fix it, rather than work around it.
8260
82612008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8262
8263 * Makefile.in: Correct additions for nsfont.o in last commit.
8264 * nsfont.m: New file (forgot last commit).
8265
82662008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8267
8268 * callproc.c (set_initial_environment): Initialize
8269 Vprocess_environment under CANNOT_DUMP (fixes crash when
8270 batch-compiling for bootstrap).
8271
82722008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8273 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8274
8275 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8276 fix crash due to different init order.
8277
82782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8279
8280 Changes and additions for NeXTstep windowing system (Cocoa and
8281 GNUstep) support.
8282
8283 * Makefile.in:
8284 * config.in: Support defines and build commands for NS port.
8285 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8286 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8287 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8288 windowing.
8289 (struct face): Add synth_ital field.
8290 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8291 (init_display): Initialize Vinitial_window_system to "ns" when so
8292 compiled.
8293 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8294 (display_arg): Use under NS.
8295 (main): Under NS, allocate autorelease pool and handle command line
8296 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8297 (standard_args): Add NS-specific args.
8298 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8299 * font.c (DEFAULT_ENCODING): New variable.
8300 (font_find_for_lface): Use it.
8301 (syms_of_font): Load syms_of_nsfont under NS.
8302 * font.h: Declare nsfont_driver when compiled under NS.
8303 * fontset.c: When compiling under NS, include nsterm.h.
8304 (fontset_from_font): Autoconstruct fontset under NS.
8305 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8306 symbol, document and use it.
8307 (do_switch_frame): When for_deletion under Cocoa, add
8308 Fraise_frame(Qnil).
8309 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8310 (x_get_arg): Allow "yes" and "no" as boolean values.
8311 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8312 Qright under Cocoa.
8313 (focus-follows-mouse): Default to 0 under NS.
8314 * frame.h (enum output_method): Add output_ns.
8315 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8316 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8317 (FRAME_WINDOW_P): NS-specific definition.
8318 * fringe.c (max_used_fringe_bitmap): Make public.
8319 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8320 (getloadavg): Use NeXT code under descendant OS's.
8321 * image.c (includes and header section, x_create_bitmap_from_data)
8322 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8323 (image_background_transparent, x_clear_image_1)
8324 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8325 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8326 (x_to_xcolors, x_from_xcolors, x_disable_image)
8327 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8328 other GUIs, including XPM support using code originally written for
8329 Carbon GUI.
8330 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8331 using NS API.
8332 (image_ascent): Use font metrics macros instead of direct struct field
8333 access.
8334 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8335 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8336 Also, handle NS as GTK for menu bar purposes.
8337 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8338 toolkit where they differ.
8339 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8340 use cachelist, still needed under NS.
8341 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8342 (struct widget_value): Define it here for menu.c.
8343 * keymap.c (includes): Include modifier internals.
8344 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8345 NS.
8346 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8347 support for preferring sequences using certain modifiers, specified by
8348 the FIRSTONLY argument.
8349 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8350 under NS GNUstep implementation.
8351 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8352 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8353 * menu.c: Include nsterm.h under NS.
8354 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8355 (free_menubar_widget_tree_value, update_submenu_strings)
8356 (find_and_call_menu_selection): Treat NS as X and NT.
8357 (find_and_return_menu_selection): New function, used for popup menus.
8358 * nsgui.h:
8359 * nsterm.h:
8360 * nsfns.m:
8361 * nsimage.m:
8362 * nsmenu.m:
8363 * nsselect.m:
8364 * nsterm.m: New files.
8365 * process.c (wait_reading_process_output): Under NS, call ns_select()
8366 instead of plain select().
8367 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8368 beginning of buffer.
8369 * sysselect.h (init_process): Rename when compiling under Cocoa to
8370 avoid name conflict.
8371 * termhooks.h (display_info): Add ns_display_info to union.
8372 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8373 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8374 COCOA environment.
8375 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8376 unexec() signature. (Note, this will dump, but the resulting file
8377 crashes; unexosx is used instead; keeping around for reference and
8378 possible aid in getting dump working under GNUstep.)
8379 * w32gui.h (button_type, widget_value): Remove definitions (now in
8380 keyboard.h).
8381 * window.c: Include nsterm.h when compiling under NS.
8382 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8383 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8384 other GUI windowing systems.
8385 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8386 GTK.
8387 (x_consider_frame_title): Under NS, set icon type and frame
8388 modified-state indicator; use ns_set_name_as_filename() when using
8389 formatted title.
8390 (update_window_cursor): Make public when compiling under NS.
8391 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8392 (hourglass_atimer, Vhourglass_delay
8393 * xfaces.c (header section, init_frame_faces, clear_font_table)
8394 (defined_color, unload_color, x_face_list_fonts)
8395 (prepare_face_for_display): Add NS support parallel to other GUIs.
8396 Emulate GCs like other non-X GUIs.
8397 (split_font_name): Don't lowercase font name under NS.
8398 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8399 under NS.
8400 * s/darwin.h: Add support for compilation under NS.
8401
84022008-07-15 Jason Rumney <jasonr@gnu.org>
8403
8404 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8405 (w32_show_hourglass): Rename from show_hourglass.
8406 (w32_hide_hourglass): Rename from hide_hourglass.
8407 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8408 (Vhourglass_delay): Declare extern.
8409 (hourglass_started): Remove.
8410
8411 * xdisp.c (Vhourglass_delay): Remove static.
8412 (hourglass_started, start_hourglass, cancel_hourglass):
8413 Don't include these versions on WINDOWSNT.
8414
84152008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8416
8417 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8418 variables (formerly in xfns.c).
8419 (show_hourglass, hide_hourglass): New prototypes (same).
8420 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8421 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8422 in xfns.c).
8423 (syms_of_xdisp): Declare/initialize display-hourglass,
8424 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8425 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8426 formerly in xfns.c.
8427 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8428 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8429 (start_hourglass, cancel_hourglass): Remove.
8430 (show_hourglass, hide_hourglass): Remove prototypes and static
8431 modifiers.
8432 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8433 hourglass_atimer, hourglass_shown_p declaration/initialization.
8434 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8435 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8436 (start_hourglass, cancel_hourglass): Remove.
8437 (show_hourglass, hide_hourglass): Remove prototypes and static
8438 modifiers.
8439 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8440 hourglass_atimer, hourglass_shown_p declaration/initialization.
8441 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8442 (DEFAULT_HOURGLASS_DELAY): Remove.
8443 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8444 hourglass_shown_p declaration/initialization.
8445
84462008-07-14 Jason Rumney <jasonr@gnu.org>
8447
8448 * w32fns.c (w32_get_arg): Remove wrapper function.
8449 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8450 directly.
8451 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8452
84532008-07-14 Kenichi Handa <handa@m17n.org>
8454
8455 * xfont.c (xfont_open): Add workaround for X's bug.
8456
84572008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8458
8459 * fontset.c: Include <stdio.h> unconditionally.
8460
84612008-07-13 Michael Albinus <michael.albinus@gmx.de>
8462
8463 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8464 for filtering.
8465
84662008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8467
8468 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8469
8470 * m/macppc.h:
8471 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8472
8473 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8474 (SPECIAL_EMACS_INT):
8475 * m/ia64.h (SPECIAL_EMACS_INT):
8476 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8477 * s/gnu.h (NLIST_STRUCT):
8478 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8479 * s/gnu-linux.h (LINUX):
8480 * s/msdos.h (HAVE_FACES):
8481 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8482
8483 * systty.h:
8484 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8485 anymore.
8486
84872008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8488
8489 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8490 always defined as int.
8491
8492 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8493 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8494 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8495 * s/freebsd.h (HAVE_WAIT_HEADER):
8496 * s/bsd-common.h (HAVE_UNION_WAIT):
8497 * s/aix4-2.h (HAVE_WAIT_HEADER):
8498 * m/mips.h (HAVE_UNION_WAIT):
8499 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8500 (COFF, static): Do not define, they are undefined later in the file.
8501
8502 * process.c (update_status): Don't use a union.
8503 (status_convert):
8504 (sigchld_handler): Use int instead of WAITTYPE.
8505
85062008-07-12 Chong Yidong <cyd@stupidchicken.com>
8507
8508 * indent.c (Fvertical_motion): Restore hscroll before moving to
8509 goal column.
8510
85112008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8512
8513 * lisp.h: Remove left over code.
8514
85152008-07-11 Andreas Schwab <schwab@suse.de>
8516
8517 * lisp.h: Fix logic in last change.
8518
8519 * menu.h: New file.
8520 * menu.c: Include it.
8521 * xmenu.c: Likewise.
8522 * Makefile.in: Update dependencies.
8523
85242008-07-11 Kenichi Handa <handa@m17n.org>
8525
8526 * fontset.c (fontset_from_font): Cancel the previous change.
8527
85282008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8529
8530 * lisp.h:
8531 * w32heap.c:
8532 * emacs.c:
8533 * alloc.c: Replace all references of NO_UNION_TYPE with
8534 USE_LISP_UNION_TYPE.
8535
8536 * m/xtensa.h (NO_UNION_TYPE):
8537 * m/vax.h (NO_UNION_TYPE):
8538 * m/template.h (NO_UNION_TYPE):
8539 * m/sparc.h (NO_UNION_TYPE):
8540 * m/mips.h (NO_UNION_TYPE):
8541 * m/macppc.h (NO_UNION_TYPE):
8542 * m/m68k.h (NO_UNION_TYPE):
8543 * m/iris4d.h (NO_UNION_TYPE):
8544 * m/intel386.h (NO_UNION_TYPE):
8545 * m/ibms390x.h (NO_UNION_TYPE):
8546 * m/ibms390.h (NO_UNION_TYPE):
8547 * m/ibmrs6000.h (NO_UNION_TYPE):
8548 * m/ia64.h (NO_UNION_TYPE):
8549 * m/hp800.h (NO_UNION_TYPE):
8550 * m/arm.h (NO_UNION_TYPE):
8551 * m/amdx86-64.h (NO_UNION_TYPE):
8552 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8553 defining it the same.
8554
85552008-07-10 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8558
85592008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8560
8561 * fileio.c:
8562 * sysdep.c
8563 * systty.h:
8564 * m/ibmrs6000.h:
8565 * m/iris4d.h:
8566 * s/aix4-2.h:
8567 * s/freebsd.h:
8568 * s/gnu-linux.h:
8569 * s/hpux10-20.h:
8570 * s/hpux11.h:
8571 * s/netbsd.h:
8572 * s/sol2-3.h:
8573 * s/sol2-4.h:
8574 * s/sol2.h:
8575 * s/usg5-4.h:
8576 * s/vms.h: Remove references to unused variables.
8577
85782008-07-10 Andreas Schwab <schwab@suse.de>
8579
8580 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8581 pattern before matching the generic family.
8582
85832008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8584
8585 * unexec.c:
8586 * s/vms.h:
8587 * s/usg5-4-2.h:
8588 * s/sol2-5.h:
8589 * s/freebsd.h:
8590 * s/darwin.h: Remove dead code.
8591
8592 * m/template.h:
8593 * m/sparc.h:
8594 * m/mips.h:
8595 * m/m68k.h:
8596 * m/iris4d.h:
8597 * m/intel386.h:
8598 * m/ibms390x.h:
8599 * m/ibms390.h:
8600 * m/ia64.h:
8601 * m/hp800.h:
8602 * m/arm.h:
8603 * m/amdx86-64.h: Remove dead code and references to unused
8604 and compiler defined symbols.
8605
8606 * unexmips.c:
8607 * unexelf.c: Remove references to desupported systems.
8608
8609 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8610
8611 * m/powermac.h: Remove boilerplate comments.
8612 (NO_REMAP): Remove unused definition.
8613
8614 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8615 define them.
8616
86172008-07-10 Kenichi Handa <handa@m17n.org>
8618
8619 * xfont.c (xfont_open): Log the reason of failure.
8620
86212008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8622
8623 * fontset.c (fontset_get_font_group):
8624 * font.c (font_check_otf): Specify argument types.
8625
86262008-07-09 Kenichi Handa <handa@m17n.org>
8627
8628 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8629 non-ASCII char is found.
8630
8631 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8632 (reorder_font_vector): Change the arg preferred_family to font.
8633 Prefer the spec matching with font.
8634 (fontset_get_font_group): New function.
8635 (fontset_find_font): Change the format of an element of a realized
8636 fontset. Use fontset_get_font_group.
8637 (fontset_font): Try the current fontset, the default fontset, the
8638 fallbacks of the current fontset, and the fallbacks of the default
8639 fontset in this order.
8640 (face_for_char): Delete the shortcut to use the current font.
8641 (fontset_from_font): Don't set fonts for Latin in the fontset.
8642
8643 * font.h (font_make_object, font_match_p): Adjust prototypes.
8644
8645 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8646
8647 * font.c (font_make_object): New arg entity and pixelsize.
8648 (font_check_otf_features, font_check_otf): New functions.
8649 (font_match_p): Check :lang, :script, and :otf properties.
8650
8651 * xfont.c (xfont_open): Adjust it for the change of
8652 font_make_object.
8653 (xfont_text_extents): Fix initial setting of metrics.
8654
8655 * ftfont.c (struct ftfont_info): New member index, delete member
8656 fc_charset_idx. Make the member order compatible with struct
8657 xftfont_info.
8658 (fc_charset_table): Change charset names to registry names.
8659 (ftfont_pattern_entity): Delete the args registry and
8660 fc_charset_idx. Change the value of :font-entity property
8661 to (FONTNAME . INDEX). Always set :registry property to
8662 `iso10646-1'.
8663 (struct ftfont_cache_data): New struct.
8664 (ftfont_lookup_cache): New arg for_face.
8665 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8666 (ftfont_driver): Set the member otf_capability.
8667 (ftfont_get_charset): Adjust it for the change of
8668 fc_charset_table.
8669 (OTF_TAG_SYM): New macro.
8670 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8671 for the change of fc_charset_table.
8672 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8673 ftfont_pattern_entity. Add FC_INDEX to objset.
8674 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8675 and ftfont_pattern_entity.
8676 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8677 font_make_object, struct ftfont_info.
8678 (ftfont_has_char): Use ftfont_get_fc_charset.
8679 (ftfont_otf_features, ftfont_otf_capability): New functions.
8680 (ftfont_shape): Use ftfont_get_otf.
8681 (ftfont_text_extents): Fix initial setting of metrics.
8682
8683 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8684 member order compatible with struct ftfont_info.
8685 (xftfont_open): Add FC_CHARSET to the pattern. Set
8686 xftfont_info->ft_size. Don't unlock the face. Check BDF
8687 properties if appropriate.
8688 (xftfont_close): Unlock the face.
8689 (xftfont_anchor_point, xftfont_shape): Deleted.
8690 (syms_of_xftfont): Don't set members anchor_point and shape of
8691 xftfont_driver.
8692
8693 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8694 font_make_object.
8695
8696 * w32font.c (w32font_open): Adjust it for the change of
8697 font_make_object.
8698 (w32font_open_internal): Don't set properties of font_object here.
8699
87002008-07-08 Chong Yidong <cyd@stupidchicken.com>
8701
8702 * macfns.c (x_create_tip_frame):
8703 * w32fns.c (x_create_tip_frame):
8704 * xfns.c (x_create_tip_frame): Pass parameter argument to
8705 face-set-after-frame-default.
8706
8707 * xfaces.c (Finternal_merge_in_global_face): Save merged
8708 attributes for the default face back into the face vector.
8709
87102008-07-08 Andreas Schwab <schwab@suse.de>
8711
8712 * fontset.h: Declare fontset_from_font. Don't declare
8713 new_fontset_from_font and fontset_from_font_name.
8714 * xterm.c: Include "fontset.h".
8715 * Makefile.in (xterm.o): Update dependencies.
8716
87172008-07-08 Glenn Morris <rgm@gnu.org>
8718
8719 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8720 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8721
87222008-07-07 Chong Yidong <cyd@stupidchicken.com>
8723
8724 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8725 (x_set_frame_parameters): Don't bind it.
8726
87272008-07-07 Juanma Barranquero <lekktu@gmail.com>
8728
8729 * w32fns.c (map_w32_filename): Declare extern.
8730
87312008-07-07 Jason Rumney <jasonr@gnu.org>
8732
8733 * w32term.c (WS_EX_LAYERED): Define if not already.
8734
87352008-07-06 Chong Yidong <cyd@stupidchicken.com>
8736
8737 * xfaces.c (set_font_frame_param): Don't try to set the font
8738 parameter if it is still unspecified in the lface.
8739
87402008-07-05 Chong Yidong <cyd@stupidchicken.com>
8741
8742 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8743 face if it didn't already exist.
8744
8745 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8746
87472008-07-05 Andreas Schwab <schwab@suse.de>
8748
8749 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8750
87512008-07-05 Chong Yidong <cyd@stupidchicken.com>
8752
8753 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8754 word-wrapping.
8755 (IT_DISPLAYING_WHITESPACE): New macro.
8756 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8757 when word-wrapping. Simplify word-wrapping logic. Use correct
8758 pixel positions when saving copies of the iterator.
8759 (display_line): Use proper wrap point if the last character on a
8760 line was preceded by whitespace.
8761
87622008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8763
8764 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8765
87662008-07-04 Kenichi Handa <handa@m17n.org>
8767
8768 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8769
8770 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8771
87722008-07-02 Jason Rumney <jasonr@gnu.org>
8773
8774 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8775 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8776
8777 * xdisp.c (next_element_from_display_vector): Move assignment out
8778 of if statement.
8779
87802008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8781
8782 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8783
8784 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8785 (syms_of_fileio): Initialize and export them.
8786 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8787
8788 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8789 (Fsystem_move_file_to_trash): New function.
8790 (syms_of_w32fns): Export it to lisp.
8791
87922008-07-01 Jason Rumney <jasonr@gnu.org>
8793
8794 * w32font.c (w32font_text_extents): Don't count overhang as part
8795 of width.
8796
87972008-06-30 Miles Bader <miles@gnu.org>
8798
8799 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8800 Add `avoid_cursor_p' field.
8801
8802 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8803 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8804 (append_glyph, append_composite_glyph, produce_image_glyph)
8805 (append_stretch_glyph): Initialize avoid_cursor_p.
8806 (get_it_property): Rename from `get_line_height_property'.
8807 (x_produce_glyphs): Use get_it_property.
8808 (handle_line_prefix, push_display_prop): New functions.
8809 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8810 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8811 New variables.
8812 (syms_of_xdisp): Initialize them.
8813
88142008-06-30 Kenichi Handa <handa@m17n.org>
8815
8816 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8817 XftDefaultSubstitute (they are called in XftFontMatch).
8818 (xftfont_open): Fix args to ftfont_font_format.
8819
8820 * ftfont.c (fc_charset_table): New member lang.
8821 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8822 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8823 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8824 (ftfont_open): Fix args to ftfont_font_format.
8825 (ftfont_font_format): New arg filename.
8826
88272008-06-30 Chong Yidong <cyd@stupidchicken.com>
8828
8829 * xfaces.c (Finternal_merge_in_global_face): If default face was
8830 modified, realize it again. Update the font face attribute.
8831
88322008-06-29 Jason Rumney <jasonr@gnu.org>
8833
8834 * w32term.c (x_set_frame_alpha): Fix logic.
8835
88362008-06-29 Kenichi Handa <handa@m17n.org>
8837
8838 * fontset.c (Finternal_char_font): Return font-object instead of
8839 font-name.
8840
8841 * composite.c (get_composition_id): Fix the width calculation for TAB.
8842
88432008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8844
8845 * indent.c (Fvertical_motion): Properly handle float column arg.
8846
88472008-06-28 Jason Rumney <jasonr@gnu.org>
8848
8849 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8850 (pfnSetLayeredWindowAttributes): New function pointer.
8851 (w32_initialize): Initialize it when supported.
8852 (x_set_frame_alpha): New function.
8853
8854 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8855 (w32_frame_parm_handlers): Set alpha handler.
8856
8857 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8858
88592008-06-27 Jason Rumney <jasonr@gnu.org>
8860
8861 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8862 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8863 (w32_to_x_charset, x_to_w32_charset)
8864 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8865 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8866 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8867 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8868 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8869 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8870 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8871 (Qw32_charset_unicode): Remove.
8872 (syms_of_w32fns): Update for above changes.
8873
8874 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8875 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8876 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8877 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8878 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8879 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8880 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8881 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8882 (syms_of_w32font): Update for above changes.
8883
88842008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8885
8886 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8887 removed #if.
8888 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8889
88902008-06-26 Juanma Barranquero <lekktu@gmail.com>
8891 Eli Zaretskii <eliz@gnu.org>
8892
8893 * makefile.w32-in (LOCAL_FLAGS):
8894 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8895
8896 * sysdep.c (_spawnlp, _getpid):
8897 Declare with explicit _cdecl instead of _CRTAPI1.
8898
8899 * editfns.c (Fget_internal_run_time):
8900 Check for WINDOWSNT with #ifdef, not #if.
8901
89022008-06-26 Jason Rumney <jasonr@gnu.org>
8903
8904 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8905
8906 * w32term.c (x_draw_glyph_string_foreground)
8907 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8908 Use FONT_HANDLE macro.
8909 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8910
8911 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8912 (uniscribe_encode_char): Use FONT_HANDLE macro.
8913
8914 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8915 (w32font_text_extents): Use precast w32_font.
8916 (w32font_close): Free cached metrics.
8917 (w32font_open_internal): Allocate space for name on stack.
8918
89192008-06-26 Chong Yidong <cyd@stupidchicken.com>
8920
8921 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8922
89232008-06-26 Jason Rumney <jasonr@gnu.org>
8924
8925 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8926 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8927
89282008-06-26 Juanma Barranquero <lekktu@gmail.com>
8929
8930 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8931
89322008-06-26 Jason Rumney <jasonr@gnu.org>
8933
8934 * w32bdf.c, w32bdf.h: Remove obsolete files.
8935
8936 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8937
8938 * w32gui.h: Don't include w32bdf.h.
8939 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8940 Remove obsolete font support.
8941
8942 * w32font.h (struct w32font_info): Remove compat_w32_font.
8943 Add hfont member.
8944 (FONT_COMPAT): Remove obsolete macro.
8945
8946 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8947 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8948 (w32font_open_internal): Remove compat code. Set new hfont member.
8949 (Fx_select_font): Use new hfont member.
8950
8951 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8952 (uniscribe_encode_char): Use new hfont member.
8953
8954 * w32term.c (x_draw_glyph_string_foreground)
8955 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8956 (x_draw_glyph_string): Use metrics in w32font_info.
8957
89582008-06-26 Kenichi Handa <handa@m17n.org>
8959
8960 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8961
89622008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8963
8964 * unexnext.c:
8965 * m/ews4800.h:
8966 * m/hp9000s300.h:
8967 * m/ibm370aix.h:
8968 * m/mips-siemens.h:
8969 * m/ncr386.h:
8970 * m/next.h:
8971 * m/pmax.h:
8972 * m/powerpcle.h:
8973 * m/tandem-s2.h:
8974 * s/386bsd.h:
8975 * s/bsd386.h:
8976 * s/bsd4-1.h:
8977 * s/bsd4-2.h:
8978 * s/bsdos2-1.h:
8979 * s/bsdos2.h:
8980 * s/bsdos3.h:
8981 * s/bsdos4.h:
8982 * s/nextstep.h:
8983 * s/ultrix4-3.h:
8984 * s/usg5-0.h:
8985 * s/usg5-2-2.h:
8986 * s/usg5-2.h:
8987 * s/usg5-4-3.h:
8988 * s/ux4800.h:
8989 * s/uxpds.h:
8990 * s/uxpv.h: Remove support for obsolete systems.
8991 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8992 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8993 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8994 Remove, insert contents in s/aix4-2.h.
8995 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8996 * s/bsd4-3.h: Rename to ...
8997 * s/bsd-common.h: ... this.
8998 * data.c:
8999 * doc.c:
9000 * ecrt0.c:
9001 * emacs.c:
9002 * fileio.c:
9003 * floatfns.c:
9004 * keyboard.c:
9005 * mem-limits.h:
9006 * print.c:
9007 * process.c:
9008 * sysdep.c:
9009 * syssignal.h:
9010 * systty.h:
9011 * syswait.h:
9012 * term.c:
9013 * unexec.c:
9014 * unexelf.c:
9015 * unexhp9k800.c:
9016 * m/hp800.h:
9017 * m/ibmrs6000.h:
9018 * m/mips.h:
9019 * m/vax.h:
9020 * s/darwin.h:
9021 * s/freebsd.h:
9022 * s/gnu.h:
9023 * s/ms-w32.h:
9024 * s/msdos.h:
9025 * s/netbsd.h:
9026 * s/template.h: Remove references to obsolete variables.
9027
9028 * Makefile.in: Add dependencies for all unexec files.
9029 (admindir): Remove unused variable.
9030 (UNEXEC_SRC): Remove references.
9031
90322008-06-25 Chong Yidong <cyd@stupidchicken.com>
9033
9034 * xfns.c (x_default_font_parameter): If Xft is available, first
9035 try Monospace-12 for the default font.
9036
90372008-06-25 Jason Rumney <jasonr@gnu.org>
9038
9039 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9040
90412008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9042
9043 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9044
9045 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9046
90472008-06-25 Juanma Barranquero <lekktu@gmail.com>
9048
9049 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9050 <scroll-conservatively>: Fix typo in docstring.
9051
9052 * xselect.c (Fx_send_client_event): Doc fix.
9053
90542008-06-25 Kenichi Handa <handa@m17n.org>
9055
9056 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9057
9058 * font.c (font_parse_fcname): Remove unused variables.
9059 (font_sort_entites): Delete the arg SPEC. Caller changed.
9060 Fix for the case of ! best_only.
9061 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9062
9063 * lisp.h (Fstring_to_unibyte): EXFUN it.
9064
9065 * character.h (str_to_unibyte): Extern it.
9066
9067 * character.c (str_to_unibyte): New function.
9068
9069 * fns.c (Fstring_to_unibyte): New function.
9070 (syms_of_fns): Defsubr it.
9071
90722008-06-24 Kenichi Handa <handa@m17n.org>
9073
9074 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9075 DPI too.
9076 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9077
90782008-06-24 Andreas Schwab <schwab@suse.de>
9079
9080 * Makefile.in (${lispsource}loaddefs.el): Rename from
9081 ../lisp/loaddefs.el.
9082 (bootstrap-clean): Do what distclean does but don't remove
9083 Makefile.
9084 (distclean): Depend on bootstrap-clean and remove Makefile.
9085
90862008-06-24 Chong Yidong <cyd@stupidchicken.com>
9087
9088 * buffer.h (struct buffer): New member word_wrap.
9089
9090 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9091 word-wrap.
9092 (init_buffer_once): Initialize them.
9093
9094 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9095 line_wrap enum possessing three possible values.
9096
9097 * termopts.h: Replace truncate_partial_width_windows with
9098 Vtruncate_partial_width_windows.
9099
9100 * dispnew.c (direct_output_for_insert): Avoid direct output when
9101 inserting a space with word wrap on.
9102
9103 * indent.c (compute_motion): Obey integer values of
9104 truncate-partial-width-windows.
9105
9106 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9107 replacing truncate_partial_width_windows.
9108 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9109 truncate only if the window width is below that integer.
9110 (start_display, resize_mini_window, produce_stretch_glyph)
9111 (display_string, move_it_in_display_line_to): Use line_wrap.
9112 (back_to_previous_visible_line_start, reseat_1): Reset
9113 string_from_display_prop_p.
9114 (display_line): Extend default face to end of line when wrapping.
9115
91162008-06-24 Kim F. Storm <storm@cua.dk>
9117
9118 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9119 to wrap continued lines at word boundaries.
9120
91212008-06-24 Jason Rumney <jasonr@gnu.org>
9122
9123 * font.c (Ffont_face_attributes): Multiply pixel size before point
9124 conversion to avoid multiplying rounding error.
9125
91262008-06-23 Jason Rumney <jasonr@gnu.org>
9127
9128 * w32term.c (x_draw_glyph_string_background)
9129 (x_draw_glyph_string): Remove old bdf font code.
9130
9131 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9132
91332008-06-22 Kenichi Handa <handa@m17n.org>
9134
9135 * font.c (font_find_for_lface): Try the adstyle specified in
9136 the property of LFACE_FONT of LFACE (if any).
9137
91382008-06-21 Seiji Zenitani <zenitani@mac.com>
9139 Ryo Yoshitake <ryo@shiftmode.net>
9140
9141 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9142
91432008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9144
9145 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9146 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9147 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9148 (witness-emacs): Remove.
9149 (lisp, shortlisp): Move loaddefs.el earlier.
9150 (mostlyclean): Forget about witness-emacs.
9151
91522008-06-22 Glenn Morris <rgm@gnu.org>
9153
9154 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9155 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9156
91572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9158
9159 * Makefile.in (PRECOMP): Remove.
9160 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9161 (witness-emacs): Run `compile-first'.
9162 (.el.elc): Use the new compile-onefile target.
9163
91642008-06-21 Kenichi Handa <handa@m17n.org>
9165
9166 * xftfont.c (xftfont_open): Handle QCembolden only when
9167 FC_EMBOLDEN is defined.
9168
91692008-06-21 Andreas Schwab <schwab@suse.de>
9170
9171 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9172 (.el.elc): Likewise.
9173
91742008-06-21 Miles Bader <miles@gnu.org>
9175
9176 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9177 build dir, not the lisp source dir.
9178
91792008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9180
9181 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9182 (bootstrapclean): Remove.
9183 (.el.elc): New rule.
9184 (PRECOMP): New var.
9185 (../lisp/subdirs.el): Remove.
9186 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9187 (witness-emacs): New target.
9188 (mostlyclean): Remove witness-emacs as well.
9189 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9190 Add witness-emacs dependency.
9191
91922008-06-20 Chong Yidong <cyd@stupidchicken.com>
9193
9194 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9195 defined by the font.
9196
91972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9198
9199 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9200 (bootstrap-clean): New target that keeps TAGS around.
9201 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9202 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9203
92042008-06-20 Jason Rumney <jasonr@gnu.org>
9205
9206 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9207 Remove obsolete font code.
9208
9209 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9210 to determine language support.
9211
92122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9213
9214 * sysdep.c (cfsetspeed): New fun extracted from the code.
9215 (cfmakeraw): Move before first use.
9216
92172008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9218
9219 * sysdep.c (cfmakeraw): Provide fallback implementation.
9220 (serial_configure): Provide fallback implementation of cfsetspeed.
9221
92222008-06-20 Kenichi Handa <handa@m17n.org>
9223
9224 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9225 the pattern.
9226
9227 * fontset.c (fontset_from_font): Copy font_spec before changing
9228 the elements.
9229
9230 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9231
92322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9233
9234 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9235 for explicit `font' parameters.
9236
9237 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9238
92392008-06-19 Kenichi Handa <handa@m17n.org>
9240
9241 * frame.c: Include <ctype.h>.
9242 (x_set_font_backend): Allow spacing characters in the X resource
9243 for FontBackend.
9244
92452008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9246
9247 * w32fns.c, xfns.c (Qfont_param): New var.
9248 (syms_of_w32fns): Initialize it.
9249 (x_default_font_parameter): Record explicit `font' into
9250 `font-parameter'.
9251
92522008-06-18 Kenichi Handa <handa@m17n.org>
9253
9254 * font.c (font_parse_xlfd): Fix previous change.
9255 (font_parse_fcname): Don't use :fc-unknown-spec.
9256 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9257 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9258 (font_add_log): Prepend the driver name to the resulting fonts.
9259
9260 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9261 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9262 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9263
9264 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9265 (QCembolden): New variables.
9266 (syms_of_xftfont): DEFSYM them.
9267 (xftfont_open): Call XftFontMatch. Don't trust the result of
9268 XftTextExtents8 if the pixel_size is less than 5.
9269
92702008-06-18 Andreas Schwab <schwab@suse.de>
9271
9272 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9273 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9274
92752008-06-18 Jason Rumney <jasonr@gnu.org>
9276
9277 * w32font.c (w32font_list, w32font_match): Add logging.
9278
9279 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9280
92812008-06-17 Chong Yidong <cyd@stupidchicken.com>
9282
9283 * font.c (font_parse_fcname): Store divider characters for
9284 unknown-spec list. For known key symbols, intern using correct
9285 symbol name.
9286
92872008-06-17 Kenichi Handa <handa@m17n.org>
9288
9289 * xfaces.c (realize_default_face): If the frame is not on window
9290 system, set the fontset of face to nil.
9291
92922008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9293
9294 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9295
92962008-06-16 Juanma Barranquero <lekktu@gmail.com>
9297
9298 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9299 (build_font_name_from_vector): Delete externs.
9300
9301 * xfaces.c (struct font_name): Don't declare.
9302
93032008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9304
9305 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9306
93072008-06-16 Chong Yidong <cyd@stupidchicken.com>
9308
9309 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9310
93112008-06-16 Juanma Barranquero <lekktu@gmail.com>
9312
9313 * font.c (Ffont_spec): Fix usage in docstring.
9314 (Ffont_face_attributes): Doc fix.
9315
93162008-06-16 Andreas Schwab <schwab@suse.de>
9317
9318 * font.c (Ffont_face_attributes): Fix definition.
9319
93202008-06-16 Jason Rumney <jasonr@gnu.org>
9321
9322 * font.h (font_style_symbolic_from_value): Remove.
9323
9324 * font.c (font_style_symbolic_from_value): Remove.
9325 (font_style_symbolic): Revert to pre 2008-06-13 version.
9326
9327 * w32font.c (w32_to_fc_weight): New function.
9328 (w32font_full_name, logfont_to_fcname): Use it.
9329
93302008-06-16 Kenichi Handa <handa@m17n.org>
9331
9332 * font.c (font_check_object): Delete it.
9333 (font_clear_cache): Check if a font-object is alive.
9334 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9335 font-object to nil.
9336 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9337 (font_at): Don't call font_check_object.
9338 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9339
93402008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9341
9342 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9343
93442008-06-16 Chong Yidong <cyd@stupidchicken.com>
9345
9346 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9347
93482008-06-15 Chong Yidong <cyd@stupidchicken.com>
9349
9350 * font.c (font_parse_fcname): Only one decimal point.
9351 (font_unparse_fcname): Handle data in family and foundry indices
9352 as symbols, not strings.
9353 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9354
9355 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9356
9357 * font.h (font_unparse_gtkname): Add prototype.
9358
93592008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9360
9361 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9362
93632008-06-15 Andreas Schwab <schwab@suse.de>
9364
9365 * font.c (font_update_drivers): Fix crash when no drivers match.
9366
93672008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9370 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9371
93722008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9373
9374 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9375
93762008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9377
9378 * process.c (Fserial_process_configure, Fprocess_send_eof):
9379 Use EQ to compare Lisp_Objects.
9380
93812008-06-13 Jason Rumney <jasonr@gnu.org>
9382
9383 * w32fns.c (Fw32_select_font): Remove old font API function.
9384
9385 * w32font.c (logfont_to_fcname): New function.
9386 (Fx_select_font): New font dialog function compatible with
9387 GTK/fontconfig version.
9388
9389 * font.c (font_style_symbolic_from_value): New function.
9390 (font_style_symbolic): Use it.
9391
9392 * font.h (font_style_symbolic_from_value): Declare new function.
9393
93942008-06-13 Juanma Barranquero <lekktu@gmail.com>
9395
9396 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9397 <font-width-table>: Fix typos in docstrings.
9398
93992008-06-13 Daniel Engeler <engeler@gmail.com>
9400
9401 These changes add serial port access.
9402 * process.c: Add HAVE_SERIAL.
9403 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9404 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9405 (list_processes_1, select_wrapper, Fstop_process)
9406 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9407 (status_notify): Modify to handle serial processes.
9408 [HAVE_SERIAL] (Fserial_process_configure)
9409 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9410 New functions.
9411 * process.h (struct Lisp_Process): Add `type'.
9412 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9413 New functions.
9414 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9415 serial ports.
b71ac3dd 9416 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9417 * w32.h: Add FILE_SERIAL.
9418 (struct _child_process): Add ovl_read, ovl_write.
9419
94202008-06-13 Kenichi Handa <handa@m17n.org>
9421
9422 * dispextern.h (enum lface_attribute_index): New member
9423 LFACE_FOUNDRY_INDEX.
9424
9425 * font.c (font_score): Delete arg alternate_families. Check only
9426 weight, slant, width, and size. Ignore the difference of alias
9427 style symbols.
9428 (font_sort_entites): Adjust for the above change. Reflect the
9429 order of font-driver to scores.
9430 (font_list_entities): Don't check alternate_familes here.
9431 (font_clear_prop): Handle foundry.
9432 (font_update_lface): Don't parse "foundry-family" form here.
9433 Handle FONT_FOUNDRY_INDEX.
9434 (font_find_for_lface): Likewise. Handle alternate families here.
9435 If registry is nil, try iso8859-1 and ascii-0.
9436 (font_open_for_lface): Pay attention to size in ENTITY.
9437 (font_open_by_name): Simplify by calling font_load_for_lface.
9438 (free_font_driver_list): Delete it.
9439 (font_update_drivers): Preserve the order of backends.
9440 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9441 of font_score and font_sort_entites.
9442 (font_update_sort_order): Likewise.
9443
9444 * xfaces.c (LFACE_FOUNDRY): New macro.
9445 (check_lface_attrs): Check foundry.
9446 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9447 (merge_face_vectors): Check foundry.
9448 (merge_face_ref): Likewise.
9449 (Finternal_set_lisp_face_attribute): Likewise.
9450 (x_update_menu_appearance): Likewise.
9451 (Finternal_get_lisp_face_attribute): Likewise.
9452 (lface_hash): Likewise.
9453 (lface_same_font_attributes_p): Likewise.
9454 (x_supports_face_attributes_p): Likewise.
9455 (tty_supports_face_attributes_p): Likewise.
9456 (Finternal_set_alternative_font_family_alist): Intern strings.
9457 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9458 (realize_default_face): Set LFACE_FOUNDRY (lface).
9459
9460 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9461 font-driver at first.
9462
9463 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9464
94652008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9466
9467 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9468
94692008-06-12 Jim Meyering <meyering@redhat.com>
9470
9471 Make unexec_free handle NULL the same way free does.
9472 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9473
94742008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9475
9476 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9477 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9478 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9479 (WEAK_ALIAS): Simplify.
9480 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9481 when searching a unibyte buffer.
9482
94832008-06-12 Chong Yidong <cyd@stupidchicken.com>
9484
9485 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9486
94872008-06-12 Juanma Barranquero <lekktu@gmail.com>
9488
9489 * w32font.c: Include ctype.h.
9490
94912008-06-11 Jason Rumney <jasonr@gnu.org>
9492
9493 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9494 misreported as space.
9495 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9496 as aliases for registry iso10646-1.
9497
94982008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9499
9500 * buffer.c (clone_per_buffer_values): Skip `name'.
9501
95022008-06-11 Chong Yidong <cyd@stupidchicken.com>
9503
9504 * font.c (font_parse_fcname): Fix last change; accept decimal
9505 points in font size.
9506
95072008-06-10 Jason Rumney <jasonr@gnu.org>
9508
9509 * w32uniscribe.c (add_opentype_font_name_to_list):
9510 Skip non unicode fonts.
9511
95122008-06-10 Chong Yidong <cyd@stupidchicken.com>
9513
9514 * xfns.c (Fx_font_dialog): New function.
9515
9516 * gtkutil.c (xg_dialog_response_cb): Rename from
9517 xg_file_response_callback.
9518 (pop_down_dialog): Rename from pop_down_file_dialog.
9519 (xg_get_file_name): Callers changed.
9520 (xg_get_font_name): New function.
9521
9522 * gtkutil.h (xg_get_font_name): Insert prototype.
9523
95242008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9525
9526 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9527 x_underline_minimum_display_offset.
9528 (syms_of_xdisp): Declare it here rather than in xterm.c.
9529 * dispextern.h (underline_minimum_offset): Declare it.
9530 * w32term.c (x_draw_glyph_string): Use it.
9531 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9532 (syms_of_xterm): Don't declare it any more.
9533 (x_draw_glyph_string): Adjust to the new name.
9534
8719abec 95352008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9536
9537 * xterm.c (x_underline_minimum_display_offset): New var.
9538 (x_draw_glyph_string): Use it.
9539 (syms_of_xterm): Declare it.
9540
95412008-06-10 Chong Yidong <cyd@stupidchicken.com>
9542
9543 * font.c (font_parse_fcname): Accept GTK-style font names too.
9544
95452008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9546
9547 * dired.c (file_name_completion): Don't return t if the match is exact
9548 but with different capitalization.
9549 * minibuf.c (Ftry_completion): Simplify.
9550
9551 * window.c (Vwindow_point_insertion_type): New var.
9552 (set_window_buffer): Use it.
9553 (syms_of_window): Init and export it to Lisp.
9554
95552008-06-10 Kenichi Handa <handa@m17n.org>
9556
9557 * font.h (font_intern_prop): Prototype adjusted.
9558
9559 * font.c (font_intern_prop): New arg force_symbol.
9560 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9561 Adjust for the change of font_intern_prop.
9562
9563 * ftfont.c (ftfont_pattern_entity):
9564 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9565 (w32_registry):
9566 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9567 the change of font_intern_prop.
9568
95692008-06-09 Juanma Barranquero <lekktu@gmail.com>
9570
9571 * w32menu.c (digest_single_submenu): Declare extern.
9572
95732008-06-09 Jason Rumney <jasonr@gnu.org>
9574
9575 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9576
9577 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9578 (parse_single_submenu): Remove.
9579 (digest_single_submenu): Remove.
9580 (syms_of_w32menu): Don't initialise variables that have moved
9581 to menu.c.
9582 (set_frame_menubar): Sync with version in xmenu.c.
9583 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9584
9585 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9586 Make static again.
9587
95882008-06-09 Jason Rumney <jasonr@gnu.org>
9589
9590 Changes to w32 files related to the move of common menu code
9591 to menu.c on 2008-06-08 by Chong Yidong.
9592
9593 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9594 defs to w32gui.h.
9595 (single_keymap_panes, push_menu_item, push_menu_pane):
9596 Make globally visible.
9597
9598 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9599 (local_free, malloc_widget_value, free_widget_value)
9600 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9601 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9602 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9603 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9604 (menu_items, menu_items_allocated, menu_items_used)
9605 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9606 (init_menu_items, finish_menu_items, discard_menu_items)
9607 (grow_menu_items, push_submenu_start, push_submenu_end)
9608 (push_left_right_boundary, push_menu_pane, push_menu_item)
9609 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9610 (free_menubar_widget_tree_value, parse_single_submenu)
9611 (update_submenu_strings): Remove functions.
9612 (xmalloc_widget_value): Remove and declare extern.
9613
9614 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9615 (OBJ1): Build it.
9616
9617 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9618 (local_heap, local_alloc, local_free, malloc_widget_value)
9619 (free_widget_value): Define here.
9620
96212008-06-09 Kenichi Handa <handa@m17n.org>
9622
9623 * font.h (Qascii_0): Extern it.
9624
9625 * font.c (Qascii_0): New variable.
9626 (syms_of_font): DEFSYM it.
9627 (font_open_by_name): If the registry "iso8859-1" fails, try also
9628 "ascii-0".
9629
9630 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9631
96322008-06-08 Kenichi Handa <handa@m17n.org>
9633
9634 * .gdbinit (xfont): New command.
9635
96362008-06-08 Andreas Schwab <schwab@suse.de>
9637
9638 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9639 * Makefile.in (menu.o): Update dependencies.
9640
9641 * Makefile.in (obj): Always add menu.o.
9642 * emacs.c (main): Always call syms_of_menu.
9643 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9644
96452008-06-08 Chong Yidong <cyd@stupidchicken.com>
9646
9647 * Makefile.in: Compile menu.c.
9648
9649 * lisp.h: Declare syms_of_menu.
9650
9651 * emacs.c (main): Call syms_of_menu.
9652
9653 * keyboard.h: Relocate platform-independent menu definitions from
9654 xmenu.c.
9655
9656 * menu.c: New file. Relocate platform-independent menu
9657 definitions from xmenu.c. Suggested by Adrian Robert.
9658
9659 * xmenu.c: Remove platform-independent menu definitions.
9660 (menu_items menu_items_inuse, menu_items_allocated)
9661 (menu_items_used, menu_items_n_panes)
9662 (menu_items_submenu_depth): Move to keyboard.h.
9663 (init_menu_items, finish_menu_items, unuse_menu_items)
9664 (discard_menu_items, restore_menu_items, save_menu_items)
9665 (grow_menu_items, push_submenu_start, push_submenu_end)
9666 (push_left_right_boundary, push_menu_pane, push_menu_item)
9667 (keymap_panes, single_keymap_panes, single_menu_item)
9668 (list_of_panes, list_of_items, find_and_call_menu_selection)
9669 (xmalloc_widget_value, free_menubar_widget_value_tree)
9670 (parse_single_submenu, digest_single_submenu)
9671 (update_submenu_strings): Move to menu.c.
9672
96732008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9674
9675 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9676
96772008-06-06 Miles Bader <miles@gnu.org>
9678
9679 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9680 face, not frame default.
9681
96822008-06-05 Martin Rudalics <rudalics@gmx.at>
9683
9684 * window.c (pop_up_windows, pop_up_frames)
9685 (display_buffer_reuse_frames, Vpop_up_frame_function)
9686 (Vdisplay_buffer_function, Veven_window_heights)
9687 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9688 (Vspecial_display_function, Vsame_window_buffer_names)
9689 (Vsame_window_regexps, split_height_threshold)
9690 (Vsplit_window_preferred_function): Move those vars to window.el.
9691 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9692 (Fdisplay_buffer): Move those functions to window.el.
9693 (syms_of_window): Remove corresponding declarations.
9694 (display_buffer): New function.
9695 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9696 * dispnew.c (Flast_nonminibuf_frame): New function.
9697 * buffer.c (Fpop_to_buffer): Move to window.el.
9698
96992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9700
9701 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9702
97032008-06-05 Kenichi Handa <handa@m17n.org>
9704
9705 * coding.c (detect_coding): Fix previous change.
9706 (detect_coding_system): Likewise.
9707
97082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9709
9710 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9711
9712 * keymap.c (Vminibuffer_local_filename_must_match_map):
9713 Rename from Vminibuffer_local_must_match_filename_map.
9714 (syms_of_keymap):
9715 * minibuf.c (Fcompleting_read): Adjust accordingly.
9716 * commands.h: Rename declaration as well.
9717
97182008-06-05 Kenichi Handa <handa@m17n.org>
9719
9720 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9721 family name.
9722 (Ffont_put): Likewise.
9723
9724 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9725 current font-spec.
9726
9727 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9728 is unspecified.
9729
9730 * xfaces.c (realize_x_face): If the font-related face attributes
9731 are the same as those of default face, realize a new fontset from
9732 default->fontset.
9733 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9734
97352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9736
9737 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9738 (move_it_in_display_line): New wrapper.
9739
9740 * window.c (window_scroll_pixel_based_preserve_x)
9741 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9742 (window_scroll_pixel_based, window_scroll_line_based):
9743 Use them to preserve column positions.
9744 (syms_of_window): Initialize them.
9745
9746 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9747 (HPOS . VPOS) pair.
9748
9749 * dispextern.h (move_it_in_display_line): Declare.
9750
97512008-06-05 Juanma Barranquero <lekktu@gmail.com>
9752
9753 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9754 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9755 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9756
97572008-06-04 Juanma Barranquero <lekktu@gmail.com>
9758
9759 * window.c (Fset_window_parameter): Doc fix.
9760 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9761
97622008-06-04 Joakim Verona <joakim@verona.se>
9763
9764 * window.h (struct window): Add new member window_parameters.
9765
9766 * window.c (Fwindow_parameters, Fwindow_parameter)
9767 (Fset_window_parameter): New defuns.
9768 (syms_of_window): Defsubr the new defuns.
9769 (make_window): Initialize window_parameters to nil.
9770
97712008-06-04 John Paul Wallington <jpw@pobox.com>
9772
9773 * eval.c (Fdefmacro): Doc fix.
9774
97752008-06-04 Kenichi Handa <handa@m17n.org>
9776
9777 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9778 Be sure to call setup_coding_system when we find a proper coding system.
9779 (detect_coding_system): Fix handling of coding->head_ascii.
9780
97812008-06-03 Andreas Schwab <schwab@suse.de>
9782
9783 * font.c (font_prop_validate_spacing): Fix last change.
9784
97852008-06-03 Kenichi Handa <handa@m17n.org>
9786
9787 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9788 (font_parse_fcname): Fix handling of unknown key.
9789
9790 * xfont.c (xfont_list): Try an alias.
9791
9792 * charset.c (char_charset): Return NULL if the arg charset_list is
9793 specified and C doesn't belong to any of them.
9794
97952008-06-02 Chip Coldwell <coldwell@redhat.com>
9796
9797 * font.c (font_pixel_size): Don't take cdr of an integer.
9798
97992008-06-02 Jim Meyering <meyering@redhat.com>
9800
9801 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9802 * alloc.c (xfree): Return right away for a NULL arg.
9803 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9804 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9805 * mac.c (create_apple_event_from_event_ref): Likewise.
9806 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9807 Likewise.
9808 * doprnt.c (doprnt1): Likewise.
9809 * frame.c (frame): Likewise.
9810 * keyboard.c (wipe_kboard): Likewise.
9811 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9812 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9813 * term.c (tty_default_color_capabilities, maybe_fatal)
9814 (delete_tty): Likewise.
9815 * w16select.c (string): Likewise.
9816 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9817 * w32bdf.c (w32_free_bdf_font): Likewise.
9818 * w32fns.c (w32_unload_font): Likewise.
9819 * w32font.c (w32font_close): Likewise.
9820 * window.c (size_window): Likewise.
9821 * xselect.c (receive_incremental_selection): Likewise.
9822 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9823 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9824 * w32.c (stat): Likewise.
9825
9826 Remove useless if-before-free tests.
9827 * editfns.c (Fset_time_zone_rule): Likewise.
9828 * lread.c (nosuffix): Likewise.
9829 * ralloc.c (get_bloc): Likewise.
9830 * regex.c (reg_free): Likewise.
9831 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9832 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9833 * xsmfns.c (smc_save_yourself_CB): Likewise.
9834
98352008-06-02 Kenichi Handa <handa@m17n.org>
9836
9837 * font.c (font_find_for_lface): Handle float font size.
9838 (font_open_for_lface): Likewise.
9839
9840 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9841 comparing the properties.
9842
98432008-06-01 Jason Rumney <jasonr@gnu.org>
9844
9845 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9846 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9847 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9848 Don't add empty script list.
9849 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9850
98512008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9852
9853 * Makefile.in (dot, dotdot): Remove, update users.
9854 ".." has been used elsewhere in the file for a long time.
9855 (LIBXT_STATIC): Remove conditional based on unused variable.
9856
98572008-06-01 Miles Bader <miles@gnu.org>
9858
9859 * xfaces.c (Vface_remapping_alist): New variable.
9860 (syms_of_xfaces): Initialize it.
9861 (enum named_merge_point_kind): New type.
9862 (struct named_merge_point): Add `named_merge_point_kind' field.
9863 (push_named_merge_point): Make cycle detection respect different
9864 named-merge-point kinds.
9865 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9866 Remove face-name alias resolution.
9867 (lface_from_face_name): New definition using
9868 `lface_from_face_name_no_resolve'.
9869 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9870 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9871 (get_lface_attributes): New definition that layers face-remapping on
9872 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9873 (lookup_basic_face): New function.
9874 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9875 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9876 `get_lface_attributes'.
9877 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9878 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9879 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9880
9881 * xdisp.c (init_iterator): Pass base_face_id through
9882 `lookup_basic_face' when we actually use it as a face-id.
9883 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9884 DEFAULT_FACE_ID.
9885
9886 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9887 lookup the initial face-id.
9888
9889 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9890
98912008-06-01 Juanma Barranquero <lekktu@gmail.com>
9892
9893 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9894 (Fremove_text_properties): Fix typos in docstrings.
9895
98962008-05-31 Kenichi Handa <handa@m17n.org>
9897
9898 * font.c (font_list_entities): Fix the car part of data to be
9899 stored in the cache.
9900
9901 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9902
99032008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9904
9905 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9906 Add a `test' argument so another predicate than `equal' can be used.
9907 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9908 (map_char_table): Remove unused vars `c' and `i'.
9909 * lisp.h (Foptimize_char_table): Adjust declaration.
9910 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9911
99122008-05-30 Kenichi Handa <handa@m17n.org>
9913
9914 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9915 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9916 defined.
9917
99182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9919
9920 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9921 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9922 frame-local settings for the same variable.
9923
99242008-05-30 Kenichi Handa <handa@m17n.org>
9925
9926 * fontset.c (Ffont_info): Move to font.c.
9927 (syms_of_fontset): Delete defsubr of Sfont_info.
9928
9929 * font.c (font_style_to_value, font_score): Delete casting of the
9930 args to xstcasecmp.
9931 (register_font_driver): Increment num_font_drivers only when
9932 registering the driver globally.
9933 (Ffont_info): Move from fontset.c. Handle a font object too.
9934 (syms_of_font): Defsubr Sfont_info.
9935
99362008-05-29 Kenichi Handa <handa@m17n.org>
9937
9938 * coding.h (enum define_coding_utf8_arg_index): New enum.
9939 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9940 coding_attr_utf_bom.
9941 (enum utf_bom_type): Rename from utf_16_bom_type.
9942 (struct utf_16_spec): Adjust for the above change.
9943 (struct coding_system): Add utf_8_bom in `spec' union.
9944
9945 * coding.c (CODING_UTF_8_BOM): New macro.
9946 (enum coding_category): Delete coding_category_utf_8, add
9947 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9948 coding_category_utf_8_sig.
9949 (CATEGORY_MASK_UTF_8): Delete it.
9950 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9951 (CATEGORY_MASK_UTF_8_SIG): New macros.
9952 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9953 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9954 CATEGORY_MASK_UTF_8_SIG.
9955 (CATEGORY_MASK_UTF_8): New macro.
9956 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9957 (detect_coding_utf_8): Check BOM.
9958 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9959 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9960 (encode_coding_utf_16): Likewise.
9961 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9962 (detect_coding, detect_coding_system): Handle utf-8-auto.
9963 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9964 (syms_of_coding): Fix setting up of Vcoding_category_table.
9965
99662008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9967
9968 * process.c (Faccept_process_output): If `millisec' is non-nil,
9969 `seconds' default to 0.
9970 (wait_reading_process_output): Also return non-nil if we read output
9971 from a non-running process.
9972
99732008-05-29 Jason Rumney <jasonr@gnu.org>
9974
9975 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9976 `raster' specified.
9977 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9978 in the uniscribe backend, but disallow any font that has no
9979 unicode subrange support.
9980
99812008-05-29 Juanma Barranquero <lekktu@gmail.com>
9982
9983 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9984 Fix typos in docstrings.
9985
99862008-05-29 Kenichi Handa <handa@m17n.org>
9987
9988 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9989 (Fx_family_fonts): Set frame correctly.
9990
99912008-05-28 Jason Rumney <jasonr@gnu.org>
9992
9993 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9994
99952008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9996
9997 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9998 calling build_annotations.
9999
100002008-05-28 Juanma Barranquero <lekktu@gmail.com>
10001
10002 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10003 (Fencode_coding_string):
10004 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10005 <latin-extra-code-table>: Fix typos in docstrings.
10006 (syms_of_coding) <coding-system-alist>: Doc fix.
10007 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10008
100092008-05-28 Kenichi Handa <handa@m17n.org>
10010
10011 * fontset.c (Ffont_info): Don't call font_close_object.
10012
10013 * font.c (font_parse_family_registry): Use Ffont_put to validate
10014 foundry and family.
10015 (font_delete_unmatched): Don't check spacing.
10016 (font_list_entities): Add spacing to the spec to list fonts.
10017
10018 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10019 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10020
10021 * coding.c (encode_coding_raw_text): Fix previous change.
10022 (encode_coding_object): When the dst_object is a buffer and is
10023 different from src_object, move gap to PT.
10024
100252008-05-27 Chong Yidong <cyd@stupidchicken.com>
10026
10027 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10028
100292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10030
10031 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10032 all branches. Compute it differently.
10033
10034 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10035
100362008-05-27 Juanma Barranquero <lekktu@gmail.com>
10037
10038 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10039 into "else if () ... else ...".
10040
100412008-05-27 Jason Rumney <jasonr@gnu.org>
10042
10043 * w32font.c (w32font_open_internal): Determine if glyph indices
10044 are likely to work here.
10045
100462008-05-27 Chong Yidong <cyd@stupidchicken.com>
10047
10048 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10049 draw overlap glyphs with appropriate highlighting.
10050
100512008-05-27 Kenichi Handa <handa@m17n.org>
10052
10053 * xfont.c (xfont_open): Fix calculation of font->average_width.
10054
100552008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10056
10057 * casefiddle.c (casify_object): Try to guess better whether the
10058 argument is a byte or a char.
10059
100602008-05-26 Andreas Schwab <schwab@suse.de>
10061
10062 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10063 Always send multiples of format size.
10064
10065 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10066
100672008-05-26 Jason Rumney <jasonr@gnu.org>
10068
10069 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10070 (compute_metrics): Don't set failure if we just cleared the cache.
10071 (w32_weight_table): Remove unused variable.
10072 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10073 backwards compatibility.
10074
100752008-05-25 Kenichi Handa <handa@m17n.org>
10076
10077 * w32term.c (x_draw_glyph_string):
10078 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10079
10080 * xfaces.c: Delete unused function prototypes.
10081 (xstrlwr, font_frame): Delete them.
10082 (clear_face_cache): Delete unused variable.
10083
10084 * xftfont.c (xftfont_open): Delete unused variable.
10085 If underline_thickness is not 1, adjust underline_position.
10086
10087 * ftxfont.c (ftxfont_open): Delete unused variable.
10088
10089 * fontset.c (face_for_char): Optimize for the case of no charset
10090 property.
10091
10092 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10093 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10094 (otf_open, font_otf_capability, generate_otf_features)
10095 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10096 Comment out by surrounding "#if 0" and "#endif" for the moment.
10097 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10098 (syms_of_font): Codes for accessing above commented out.
10099
101002008-05-24 Eli Zaretskii <eliz@gnu.org>
10101
10102 * w32proc.c: Include dispextern.h.
10103
10104 * w32.c: Include dispextern.h.
10105
101062008-05-23 Juanma Barranquero <lekktu@gmail.com>
10107
10108 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10109 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10110 Fix typos in docstrings.
10111
101122008-05-23 Jason Rumney <jasonr@gnu.org>
10113
10114 * xsmfns.c: Remove includes that are already included by config.h.
10115
101162008-05-23 Kenichi Handa <handa@m17n.org>
10117
10118 * charset.c (Qemacs, charset_emacs): New variables.
10119 (char_charset): Fix for non-Unicode characters.
10120 (syms_of_charset): Define charset_emacs.
10121
10122 * w32term.c (x_draw_glyph_string): Be sure to update
10123 s->underline_thickness and s->underline_position. Be sure to draw
10124 underline within the current line area.
10125
10126 * xterm.c (x_draw_glyph_string): Be sure to update
10127 s->underline_thickness and s->underline_position. Be sure to draw
10128 underline within the current line area.
10129
10130 * fontset.c: Delete unused variables and add casting for char *
10131 throughout the file.
10132 (fontset_font): Try the fallback fonts of the current fontset
10133 before consulting the default fontset.
10134
10135 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10136
10137 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10138
101392008-05-22 Jason Rumney <jasonr@gnu.org>
10140
10141 * font.c: Don't include strings.h.
10142
10143 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10144
10145 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10146 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10147 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10148 to call xstrcasecmp.
10149
10150 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10151
10152 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10153
10154 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10155
10156 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10157
101582008-05-22 Kenichi Handa <handa@m17n.org>
10159
10160 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10161
10162 * font.c (font_prop_validate_style): Adjust for the format
10163 change of font_style_table.
10164
10165 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10166 two args.
10167
10168 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10169 two args.
10170
101712008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10172
10173 * minibuf.c (keys_of_minibuf): Delete.
10174 * lisp.h (keys_of_minibuf): Delete.
10175 * emacs.c (main): Don't call keys_of_minibuf.
10176
101772008-05-22 Kenichi Handa <handa@m17n.org>
10178
10179 * ftfont.c (ftfont_resolve_generic_family): Rename from
10180 ftfont_list_generic_family. Return a single family for each
10181 generic family.
10182 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10183 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10184 Call font_add_log.
10185 (ftfont_match): Call font_add_log.
10186
10187 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10188 (FONT_DEBUG): Define it.
10189 (font_add_log): Extern it.
10190 (font_assert): Rename from xassert.
10191
10192 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10193 (xfont_list_family): Call font_add_log.
10194 (xfont_match): Likewise.
10195 (memq_no_quit): Delete.
10196
10197 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10198 call of Ffont_xlfd_name.
10199
10200 * xfaces.c (struct table_entry, slant_table, weight_table)
10201 (swidth_table): Move to font.c.
10202
10203 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10204 xassert are changed to font_assert. Delete many unused variables.
10205 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10206 New variables.
10207 (struct table_entry): Move from xfaces.c and modified.
10208 (weight_table, slant_table, width_table): Move from xfaces.c and
10209 contents adjusted for the change of struct table_entry.
10210 (font_style_to_value, font_style_symbolic): Adjust for the
10211 format change of font_style_table.
10212 (font_parse_family_registry): Don't overwrite existing foundry and
10213 family of font_spec.
10214 (font_score): Fix calculation of diff for sizes.
10215 (font_sort_entites): Call font_add_log.
10216 (font_delete_unmatched): Return a newly created list.
10217 (font_list_entities): Fix previous change. Call font_add_log.
10218 (font_matching_entity, font_open_entity, font_close_entity):
10219 Call font_add_log.
10220 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10221 (Finternal_set_font_style_table): Delete.
10222 (BUILD_STYLE_TABLE): New macro.
10223 (build_style_table): New function.
10224 (Vfont_log, font_log_env_checked): New variables.
10225 (font_add_log): New function.
10226 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10227 Declare Lisp variables "font-weight-table", "font-slant-table",
10228 "font-width-table", and "font-log". Initialize font_style_table.
10229
102302008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10231
10232 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10233
102342008-05-21 Seiji Zenitani <zenitani@mac.com>
10235 Ryo Yoshitake <ryo@shiftmode.net>
10236
10237 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10238 (Vframe_alpha_lower_limit): New variable.
10239 (x_set_alpha): New function.
10240
10241 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10242
10243 * xfns.c (x-create-frame, Qalpha):
10244 Initialize the frame parameter `alpha'.
10245 * xterm.c (OPAQUE, OPACITY): New.
10246 (x_set_frame_alpha): New function.
10247 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10248
10249 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10250 * w32fns.c (w32_frame_parm_handlers): Likewise.
10251
102522008-05-20 Jason Rumney <jasonr@gnu.org>
10253
10254 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10255 truetype fonts to opentype list.
10256
102572008-05-20 Juanma Barranquero <lekktu@gmail.com>
10258
10259 * fontset.c (Ffontset_info): Doc fix.
10260 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10261 <ignore-relative-composition>: Fix typos in docstrings.
10262
10263 * font.c (syms-of-font) <font-encoding-alist>:
10264 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10265 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10266 (Ffont_otf_alternates): Doc fixes.
10267
102682008-05-20 Kenichi Handa <handa@m17n.org>
10269
10270 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10271 font.h through out the file.
10272 (FONT_DRIVERS): Rename from FONTOBJ.
10273 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10274 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10275
10276 * emacs.c (main): Call syms_of_font unconditionally.
10277
10278 * font.h (find_font_encoding): Extern it.
10279
10280 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10281 fontset.c.
10282 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10283 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10284 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10285 only when HAVE_WINDOW_SYSTEM is defined.
10286 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10287 when HAVE_WINDOW_SYSTEM is defined.
10288
10289 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10290 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10291
10292 * xfaces.c: Include font.h unconditionally.
10293 (merge_face_ref, merge_face_vectors)
10294 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10295
102962008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10297
10298 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10299 indirect_variable.
10300 * eval.c (lisp_indirect_variable): New fun.
10301 (Fuser_variable_p): Use it.
10302
103032008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10304
10305 * lisp.h (indirect_variable):
10306 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10307 Use Lisp_Symbol pointers rather than Lisp_Object.
10308 Adjust callers.
10309 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10310 To this end, change calling-convention.
10311
10312 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10313 if some non-hidden buffers are selected by string&pred.
10314
103152008-05-19 Chong Yidong <cyd@stupidchicken.com>
10316
10317 * process.c (wait_reading_process_output): Always check status
10318 when in batch mode.
10319
103202008-05-19 Kenichi Handa <handa@m17n.org>
10321
10322 * font.c (font_list_entities): Fix handling of cache.
10323 (font_matching_entity): Likewise.
10324
10325 * ftfont.c (cs_iso8859_1): Delete.
10326 (ft_face_cache): New variable.
10327 (struct ftfont_info): New member fc_charset_idx.
10328 (ftfont_build_basic_charsets): Delete.
10329 (fc_charset_table): New variable.
10330 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10331 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10332 Callers changed.
10333 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10334 (ftfont_spec_pattern): New argument fc_charset_idx.
10335 Check registry more rigidly. Change callers.
10336 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10337 change of :font-entity property of the font.
10338
10339 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10340 property of the font.
10341
103422008-05-18 Juanma Barranquero <lekktu@gmail.com>
10343
10344 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10345 (Funencodable_char_position, Fcheck_coding_systems_region)
10346 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10347 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10348 (Ffind_operation_coding_system, Fset_coding_system_priority)
10349 (Fcoding_system_eol_type): Doc fixes.
10350
103512008-05-17 Glenn Morris <rgm@gnu.org>
10352
10353 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10354
103552008-05-16 Eli Zaretskii <eliz@gnu.org>
10356
10357 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10358 and st_gid.
10359
10360 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10361 HAVE_WINDOW_SYSTEM is not defined.
10362
10363 * xfaces.c (merge_face_ref, merge_face_vectors)
10364 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10365 HAVE_WINDOW_SYSTEM is defined.
10366 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10367
103682008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10369
10370 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10371
103722008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10373
10374 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10375
103762008-05-15 Kenichi Handa <handa@m17n.org>
10377
10378 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10379 preference.
10380
103812008-05-15 Glenn Morris <rgm@gnu.org>
10382
10383 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10384
103852008-05-15 Chong Yidong <cyd@stupidchicken.com>
10386
10387 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10388 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10389
10390 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10391
103922008-05-15 Kenichi Handa <handa@m17n.org>
10393
10394 * ftfont.c (ftfont_list): Downcase family name to check generic
10395 families.
10396
10397 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10398 font-spec for QCfont value.
10399
10400 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10401 buffer. Check the return value of it.
10402
104032008-05-14 Jason Rumney <jasonr@gnu.org>
10404
10405 * w32term.c (w32_get_glyph_overhangs): Remove.
10406 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10407
104082008-05-14 Kenichi Handa <handa@m17n.org>
10409
10410 * font.c (font_prop_validate): Make nil a valid value.
10411 (font_clear_cache): Check if the cached vector of entities is nil
10412 or not.
10413
104142008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10415
10416 * emacs.c (main_thread): Conditionalize on
10417 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10418 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10419
10420 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10421 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10422 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10423
104242008-05-14 Kenichi Handa <handa@m17n.org>
10425
10426 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10427 has no corresponding coding system.
10428
104292008-05-14 Jason Rumney <jasonr@gnu.org>
10430
10431 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10432
10433 * w32font.h (w32font_open_internal): Update declaration.
10434
10435 * w32font.c (w32font_open_internal): Change last argument from
10436 w32font_info struct to font object. Fill in font object from
10437 font_entity. Get Outline metrics if possible. Use them to
10438 calculate underline position and thickness. Use xlfd name as name
10439 property. Don't set codepage.
10440 (w32font_open): Pass font_object to w32font_open_internal. Don't
10441 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10442 (w32font_draw): Use s->font.
10443 (clear_cached_metrics): Don't clear non-existent blocks.
10444
10445 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10446 font was not found.
10447 (x_draw_glyph_string): Use underline position and thickness from font.
10448
10449 * w32uniscribe.c (uniscribe_open): Pass font_object to
10450 w32font_open_internal.
10451
104522008-05-14 Kenichi Handa <handa@m17n.org>
10453
10454 These changes are to delete all legacy font-handling codes, and
10455 make Emacs use only font-backends.
10456
10457 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10458 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10459
10460 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10461
10462 * charset.h (Vcharset_non_preferred_head)
10463 (Vcurrent_iso639_language): Extern them.
10464
10465 * charset.c (Vcharset_non_preferred_head): New variable.
10466 (Vcurrent_iso639_language): New variable.
10467 (syms_of_charset): Declare it as a Lisp variable.
10468 (char_charset): Don't check non preferred charsets. As a last
10469 resort, return charset_unicode.
10470 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10471
10472 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10473 conditionals. Don't check enable_font_backend. Delete all codes
10474 used only when USE_FONT_BACKEND is not defined.
10475
10476 * dispextern.h (struct glyph_string): Change type of `font' to
10477 `struct font *'.
10478 (struct glyph_string): New member underline_position and
10479 underline_thickness.
10480 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10481 (struct face): Change type of `font' to `struct font *'. Remove
10482 members `font_name', `font_info_id'.
10483 (per_char_metric, encode_char): Delete externs.
10484 (calc_pixel_width_or_height): Adjust the prototype.
10485
10486 * emacs.c (enable_font_backend): Delete extern.
10487 (main): Don't set enable_font_backend. Don't check the command
10488 line argument "-disable-font-backend".
10489
10490 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10491 (enum font_property_index): New members FONT_DPI_INDEX,
10492 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10493 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10494 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10495 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10496 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10497 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10498 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10499 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10500 (struct font_spec, struct font_entity): New structs.
10501 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10502 (struct font): Many members from old "struct font_info" moved to
10503 here. Members font and entity deleted.
10504 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10505 the new font-related objects.
10506 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10507 (CHECK_FONT_GET_OBJECT): Likewise.
10508 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10509 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10510 (struct font_driver): New members case_sensitive anc check. Type
10511 of the member list and open changed.
10512 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10513 (font_symbolic_width, font_find_object, font_get_spec)
10514 (font_set_lface_from_name): Delete extern.
10515 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10516
10517 * font.c: Include <strings.h>.
10518 (enable_font_backend): Delete it.
10519 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10520 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10521 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10522 (null_string): Delete it.
10523 (null_vector): Make it static.
10524 (font_family_alist): Delete it.
10525 (Qnormal): Extern it.
10526 (QCextra, QClanguage): Delete it.
10527 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10528 (font_make_spec, font_make_entity, font_make_object)
10529 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10530 the string. Callers changed.
10531 (font_pixel_size): Adjusted for the format change of font-related
10532 objects.
10533 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10534 (font_style_to_value, font_style_symbolic): New function.
10535 (build_font_family_alist): Delete it.
10536 (font_registry_charsets): Use Fassoc_string instead of
10537 assq_no_quit.
10538 (font_prop_validate_symbol): Don't return null_string.
10539 (font_prop_validate_style): Adjusted for the change of
10540 style-related values in a font vector.
10541 (font_property_table): Delete entries for QClanguage and
10542 QCantialias, add entries for QCavgwidth.
10543 (get_font_prop_index): Delete the 2nd argument FROM.
10544 (font_prop_validate): Arguments changed.
10545 (font_put_extra): Adjusted for the change of font-related objects.
10546 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10547 (font_parse_fcname, font_unparse_fcname)
10548 (font_prepare_composition): Likewise.
10549 (font_parse_family_registry): Renamed from font_merge_old_spec.
10550 (otf_open): Delete the 1st arg entity.
10551 (font_otf_capability): Adjusted for the above change.
10552 (font_score): New arg alternate_families. Adjusted for the change
10553 of font-related objects.
10554 (font_sort_entites): New arg best_only.
10555 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10556 Delete them.
10557 (font_match_p): Check alternate families.
10558 (font_find_object): Delete it.
10559 (font_check_object): New function.
10560 (font_clear_cache): Adjusted for the change of font-related objects.
10561 (font_delete_unmatched): New arg.
10562 (font_list_entities): Call font_driver->list with a spec that
10563 doesn't specify style-related properties.
10564 (font_matching_entity): Arguments changed. Caller changed.
10565 (font_open_entity): Adjusted for the change of font-related objects.
10566 (font_close_object, font_has_char, font_encode_char)
10567 (font_get_name, font_get_spec): Likewise.
10568 (font_spec_from_name, font_clear_prop, font_update_lface):
10569 New functions.
10570 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10571 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10572 (font_at): Adjusted for the change of font-related objects.
10573 (font_range): New function.
10574 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10575 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10576 (Fcopy_font_spec, Fmerge_font_spec): New function.
10577 (Ffont_family_list): Renamed from list-families.
10578 (Finternal_set_font_style_table): Arguments changed.
10579 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10580 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10581 change of font-related objects.
10582 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10583
10584 * fontset.h (struct font_info): Delete it. Most members go to
10585 struct font.
10586 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10587 (enum FONT_SPEC_INDEX): Delete it.
10588 (font_info, list_fonts_func, load_font_func, query_font_func)
10589 (set_frame_fontset_func, find_ccl_program_func)
10590 (get_font_repertory_func, new_fontset_from_font_name): Delete
10591 externs.
10592 (fontset_from_font_name): Extern it.
10593 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10594 (FONT_INFO_FROM_FACE): Deleted.
10595 (face_for_font): Adjust prototype.
10596
10597 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10598 conditionals. Don't check enable_font_backend. Delete all codes
10599 used only when USE_FONT_BACKEND is not defined.
10600 (get_font_info_func, list_font_func, load_font_func)
10601 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10602 (get_font_repertory_func): Delete them.
10603 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10604 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10605 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10606 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10607 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10608 (fontset_compare_rfontdef): New function.
10609 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10610 rfont-defs by qsort. Adjusted for the change of font-group vector.
10611 (load_font_get_repertory): Deleted.
10612 (fontset_find_font): Use new macros to ref/set elements of
10613 font-def and rfont-def.
10614 (fontset_font): Fix the timing of remembering that no font for C.
10615 (free_face_fontset): Do nothing if the face has no fontset.
10616 (face_suitable_for_char_p): Use new macros to ref/set elements of
10617 rfont-def.
10618 (face_for_char): Likewise. Call face_for_char with font_object.
10619 (fs_load_font): Delete. Delete #pragma surrounding it.
10620 (fs_query_fontset): Use strcasecmp instead of strcmp.
10621 (generate_ascii_font_name): Adjusted for the format change of
10622 font-spec.
10623 (Fset_fontset_font): Likewise. Use new macros to set elements of
10624 font-def.
10625 (Fnew_fontset): Use font_unparse_xlfd to generate
10626 FONTSET_ASCII (fontset).
10627 (new_fontset_from_font_name): Deleted.
10628 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10629 a fontset is already created for the font. FIx updating of
10630 Vfontset_alias_alist.
10631 (fontset_ascii_font): Deleted.
10632 (Ffont_info): Adjusted for the format change of font-spec.
10633 (Finternal_char_font): Likewise.
10634 (Ffontset_info): Likewise.
10635 (syms_of_fontset): Don't check load_font_func.
10636
10637 * fns.c (internal_equal): Handle PREV_FONT.
10638
10639 * frame.h: Delete USE_FONT_BACKEND conditional.
10640
10641 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10642 conditionals. Don't check enable_font_backend. Delete all codes
10643 used only when USE_FONT_BACKEND is not defined.
10644 (x_set_font): Call x_new_font, not x_new_fontset2.
10645 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10646 already set for the frame.
10647
10648 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10649 a font-entity by font_make_entity. Use font_intern_prop instead
10650 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10651 font property. If a font is scalable, set avgwidth property to 0.
10652 Set font-entity property by font_put_extra.
10653 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10654 (ffont_driver): Adjusted for the change of struct font_driver.
10655 (ftfont_spec_pattern): New function.
10656 (ftfont_list): Return a list, not vector.
10657 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10658 (ftfont_list_family): Don't downcase names.
10659 (ftfont_free_entity): Deleted.
10660 (ftfont_open): Return a font-object. Adjusted for the change of
10661 struct font. Get underline_thickness and underline_position from
10662 font property. Don't update dpyinfo->smallest_font_height and
10663 dpyinfo->smallest_char_width.
10664 (ftfont_close): Don't free `struct font'.
10665 (ftfont_has_char): Adjusted for the format change of font-entity.
10666 (ftfont_encode_char, ftfont_text_extents): Likewise.
10667
10668 * ftxfont.c (ftxfont_list): Return a list, not vector.
10669 (ftxfont_open): Return a font-object. Adjusted for the change of
10670 struct font. Get underline_thickness and underline_position from
10671 font property. Don't update dpyinfo->smallest_font_height and
10672 dpyinfo->smallest_char_width.
10673 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10674 (ftxfont_draw): Adjusted for the change of struct font.
10675
10676 * image.c (image_ascent): Don't include "charset.h". Include
10677 "character.h" and "font.h".
10678
10679 * lisp.h (enum pvec_type): New member PREV_FONT.
10680 (Fassoc_string): EXFUN it.
10681
10682 * print.c: Include font.h.
10683 (print_object): Handle font-related objects.
10684
10685 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10686 conditionals. Don't check enable_font_backend. Delete all codes
10687 used only when USE_FONT_BACKEND is not defined.
10688 (handle_auto_composed_prop): Do nothing if it->f is not on a
10689 window system. Check how many following characters can be
10690 displayed by the same font.
10691 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10692 'struct font *'.
10693 (get_char_face_and_encoding): Assign the whole encoding task to
10694 the `encode-char' method of a font driver.
10695 (fill_composite_glyph_string): Adjusted for the change of `struct
10696 face' and `struct glyph_string'.
10697 (fill_glyph_string): Likewise.
10698 (get_per_char_metric): Arguments changed.
10699 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10700 and `struct glyph_string'.
10701 (produce_stretch_glyph, calc_line_height_property)
10702 (x_produce_glyphs): Likewise.
10703
10704 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10705 conditionals. Don't check enable_font_backend. Delete all codes
10706 used only when USE_FONT_BACKEND is not defined. Use
10707 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10708 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10709 (Qp): Extern them.
10710 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10711 Deleted.
10712 (struct font_name): Deleted.
10713 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10714 (compare_fonts_by_sort_order): New function.
10715 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10716 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10717 Deleted.
10718 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10719 compare_fonts_by_sort_order.
10720 (Fx_font_family_list): Call Ffont_family_list.
10721 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10722 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10723 (face_symbolic_slant, face_symbolic_swidth)
10724 (split_font_name_into_vector, build_font_name_from_vector)
10725 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10726 (font_rescale_ratio, split_font_name, build_font_name)
10727 (free_font_names, sort_fonts, x_face_list_fonts)
10728 (face_font_available_p, sorted_font_list, cmp_font_names)
10729 (font_list_1, concat_font_list, font_list, remove_duplicates):
10730 Deleted.
10731 (Fx_list_fonts): Use Ffont_list.
10732 (LFACE_AVGWIDTH): Deleted.
10733 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10734 by FONTP.
10735 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10736 (set_lface_from_font_name): Delete it.
10737 (set_lface_from_font): Renamed from
10738 set_lface_from_font_and_fontset. Caller changed. Don't set
10739 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10740 for face.
10741 (merge_face_vectors): Copy font-spec if necessary.
10742 Clear properties of the font-spec if necessary.
10743 (merge_face_ref): Clear properties of the font-spec if necessary.
10744 (Finternal_set_lisp_face_attribute): Likewise.
10745 (set_font_frame_param): Use font_load_for_lface to load a
10746 font-object, and call Fmodify_frame_parameters with it.
10747 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10748 font name by Ffont_xlfd_name.
10749 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10750 QCslant, and QCwidth.
10751 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10752 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10753 Compare fonts by EQ.
10754 (lookup_non_ascii_face): Deleted.
10755 (face_for_font): The 2nd argument changed.
10756 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10757 Check atomic font properties by case insensitive.
10758 (realize_non_ascii_face): Set face->overstrike correctly.
10759 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10760 (dump_realized_face): Get font name from
10761 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10762
10763 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10764 conditionals. Don't check enable_font_backend. Delete all codes
10765 used only when USE_FONT_BACKEND is not defined.
10766 (xic_create_xfontset): Original code deleted and renamed from
10767 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10768 (x_make_gc): Don't set GCFont in GCs.
10769 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10770 opened by "fixed".
10771 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10772 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10773 get_font_repertory_func.
10774
10775 * xfont.c: Include <stdlib.h> and "ccl.h".
10776 (struct xfont_info): New structure.
10777 (xfont_query_font): Deleted.
10778 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10779 moved from xterm.c.
10780 (xfont_driver): Adjusted for the change of struct font_driver.
10781 (compare_font_names): New function.
10782 (xfont_list_pattern): Sort font names case insensitively. Make
10783 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10784 (xfont_list): Return a list, not vector.
10785 (xfont_match): If the font doesn't have QCname property, generate
10786 a name from the other font properties.
10787 (xfont_open): Return a font-object. Adjusted for the change of
10788 struct font. Get underline_thickness and underline_position from
10789 font property. Don't update dpyinfo->smallest_font_height and
10790 dpyinfo->smallest_char_width.
10791 (xfont_close): Don't free struct font.
10792 (xfont_prepare_face): Adjusted for the change of struct font.
10793 (xfont_done_face): Deleted.
10794 (xfont_has_char): Adjusted for the change of struct font.
10795 (xfont_encode_char, xfont_draw): Likewise.
10796 (xfont_check): New function.
10797
10798 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10799 callback function.
10800 (xftfont_match): Adjusted for the format change of font-entity.
10801 (xftfont_open): Adjusted for the format change of font-entity and
10802 font-object. Adjusted for the change of struct font. Return a
10803 font-object. Don't update dpyinfo->smallest_font_height and
10804 dpyinfo->smallest_char_width.
10805 (xftfont_close): Block input while calling XftFontClose.
10806 (xftfont_prepare_face): Don't block input while calling
10807 xftfont_get_colors. Adjusted for the change of struct font.
10808 (xftfont_shape): Return value of error case fixed.
10809
10810 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10811
10812 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10813 conditionals.
10814 (FONT_WIDTH): Return (f)->max_width.
10815 (struct x_display_info): Delete member `font'.
10816 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10817 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10818 (struct x_output): Change type of `font' to `struct font *'.
10819
10820 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10821 conditionals. Don't check enable_font_backend. Delete all codes
10822 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10823 (x_per_char_metric, x_encode_char): Deleted.
10824 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10825 (x_compute_glyph_string_overhangs): Adjusted for the change of
10826 `struct face'.
10827 (x_draw_glyph_string_foreground)
10828 (x_draw_composite_glyph_string_foreground): Likewise.
10829 (x_draw_glyph_string): Likewise. Use font->underline_position and
10830 font->underline_thickness.
10831 (x_new_font): Renamed from x_new_fontset2.
10832 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10833 (x_check_font): Call `check' method of a font driver.
10834 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10835 (x_query_font, x_get_font_repertory): Deleted.
10836 (x_find_ccl_program): Renamed and moved to xfont.c.
10837 (x_redisplay_interface): Adjusted for the change of `struct
10838 redisplay_interface'.
10839
10840 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10841 conditionals. Don't check enable_font_backend. Delete all codes
10842 used only when USE_FONT_BACKEND is not defined. Surround non-used
10843 code by "#ifdef OLD_FONT" and "endif".
10844 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10845
10846 * w32font.h (struct w32font_info): New member.
10847 (FONT_COMPAT): New macro.
10848 (w32font_open_internal): Prototype adjusted.
10849
10850 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10851 OLD_FONT" and "endif".
10852
10853 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10854 conditionals. Don't check enable_font_backend. Delete all codes
10855 used only when USE_FONT_BACKEND is not defined.
10856 (w32font_open): Return a font-object. Make a font-object by
10857 font_make_object. Adjusted for the change of struct w32font_info.
10858 (w32font_close): Don't free struct font. Adjusted for the change
10859 of struct w32font_info.
10860 (w32font_encode_char, w32font_text_extents, w32font_draw):
10861 Adjusted for the change of struct w32font_info.
10862 (w32font_draw): Likewise.
10863 (w32font_list_internal): Return a list, not vector.
10864 (w32font_open_internal): Change the 4th arg to font-object.
10865 Adjusted for the change of struct w32font_info and font-object format.
10866 (add_font_name_to_list): Don't downcase names.
10867 (w32_enumfont_pattern_entity): Make a font-entity by
10868 font_make_entity. Adjusted for the format change of font-entity.
10869 Use FONT_SET_STYLE to set a style-related font property. If a
10870 font is scalable, set avgwidth property to 0. Set font-entity
10871 property by font_put_extra.
10872 (font_matches_spec): Adjusted for the format change of font-entity.
10873 (w32_weight_table, w32_decode_weight): New variables.
10874 (w32_encode_weight): New function.
10875 (fill_in_logfont): Adjusted for the format change of font-spec.
10876 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10877 weight value.
10878 (w32font_driver): Adjusted for the change of struct font_driver.
10879
10880 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10881 conditionals. Don't check enable_font_backend. Surround non-used
10882 code by "#ifdef OLD_FONT" and "endif".
10883 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10884 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10885
10886 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10887 conditionals. Don't check enable_font_backend. Delete all codes
10888 used only when USE_FONT_BACKEND is not defined. Surround non-used
10889 code by "#ifdef OLD_FONT" and "endif".
10890
10891 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10892 (uniscribe_open): Return value changed to font-object.
10893 Adjusted for the format change of font-object.
10894 (uniscribe_otf_capability): Adjusted for the change of struct font.
10895 (add_opentype_font_name_to_list): Don't downcase names.
10896 (uniscribe_font_driver): Adjusted for the change of struct
10897 font_driver.
10898
108992008-05-13 Chong Yidong <cyd@stupidchicken.com>
10900
10901 * dispnew.c (update_frame_1): Check if tty output is still valid
10902 before flushing it.
10903
109042008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10905
10906 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10907 to Gtk+ menus.
10908
109092008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10910
10911 * dired.c (file_name_completion): Tweak the code so as to always do it
10912 in a single pass. Tighten the scope of some variables.
10913
10914 * dired.c (Qdefault_directory): New var.
10915 (file_name_completion): Use it instead of Fexpand_file_name.
10916 (syms_of_dired): Initialize it.
10917
109182008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10919
10920 * fileio.c (double_dollars): Remove dead code.
10921
109222008-05-10 Eli Zaretskii <eliz@gnu.org>
10923
10924 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10925 Mention w32-get-true-file-attributes in doc string.
10926
10927 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10928
109292008-05-09 Glenn Morris <rgm@gnu.org>
10930
10931 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10932 2008-04-23.
10933
109342008-05-09 Eli Zaretskii <eliz@gnu.org>
10935
10936 Support for reporting owner and group of each file on MS-Windows:
10937 * dired.c (stat_uname, stat_gname): New functions, with special
10938 implementation for w32.
10939 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10940
10941 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10942 (dflt_group_name): New static variable.
10943 (dflt_group): Rename from the_group.
10944 (init_user_info): Init dflt_group fields. Get user's group name
10945 from LookupAccountSid.
10946 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10947 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10948 New initialization states.
10949 (globals_of_w32): Initialize them to zero. Initialize the default
10950 group name to "None".
10951 (GetFileSecurity_Name): New global var, the name of the function
10952 to call for GetFileSecurity.
10953 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10954 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10955 (get_file_security, get_security_descriptor_owner)
10956 (get_security_descriptor_group, is_valid_sid)
10957 (get_file_security_desc, get_rid, get_name_and_id)
10958 (get_file_owner_and_group): New functions.
10959 (stat): Use get_file_security_desc and get_file_owner_and_group to
10960 report the owner and primary group of each file. Don't ignore the
10961 high 32 bits of file's size, now that st_size is 64-bit wide.
10962 Fix test when to get true file attributes.
10963 (init_user_info): Use get_rid instead of equivalent inline code.
10964 (fstat): Don't ignore the high 32 bits of file's size.
10965
109662008-05-09 Chong Yidong <cyd@stupidchicken.com>
10967
10968 * image.c (png_load): Use correct bit-depth for setting background
10969 color.
10970
109712008-05-08 Eli Zaretskii <eliz@gnu.org>
10972
10973 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10974 epa-hook.elc.
10975
109762008-05-08 Juanma Barranquero <lekktu@gmail.com>
10977
10978 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10979
109802008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10981
10982 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10983 because the original parameters are in pure storage now.
10984 (mac_window): Remove unused params. Update callers.
10985
109862008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10987
10988 * lread.c (substitute_object_recurse): Use lower-level primitives.
10989 Don't signal errors when traversing sub-char-tables.
10990 Don't loop over all the possible characters when traversing char-tables.
10991
10992 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10993 just like we do in print.c.
10994
109952008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10996
10997 * minibuf.c (Ftry_completion): Remove code left over from when we used
10998 scmp instead of Fcompare_strings.
10999
110002008-05-04 Juanma Barranquero <lekktu@gmail.com>
11001
11002 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11003
110042008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11005
11006 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11007 Create bitmap context in native byte order.
11008
11009 * macterm.c (XDrawLine)
11010 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11011 context in native byte order.
11012
110132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11014
11015 * config.in: Regenerate.
11016
11017 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11018 New definitions for Image I/O support.
11019 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11020 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11021 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11022 (mac_data_provider_release_data, image_load_image_io)
11023 [USE_MAC_IMAGE_IO]: New functions.
11024 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11025 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11026 (init_image_func_pointer) [MAC_OSX]: Remove function.
11027 (image_load_quartz2d) [MAC_OSX]: Check availability of
11028 CGImageCreateWithPNGDataProvider at compile time.
11029 Use lowercase `false' for boolean constant.
11030 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11031 Use image_load_image_io.
11032 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11033 Don't check MyCGImageCreateWithPNGDataProvider.
11034 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11035 Don't call init_image_func_pointer.
11036
11037 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11038
11039 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11040 Make variable non-static.
11041 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11042 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11043
11044 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11045 (RED_FROM_ULONG): Mask off higher bits.
11046 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11047
11048 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11049 Include AvailabilityMacros.h.
11050 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11051 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11052
110532008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11054
11055 * chartab.c (Fset_char_table_range): If range is t, really set all
11056 chars to that value.
11057
110582008-05-03 Eli Zaretskii <eliz@gnu.org>
11059
11060 * dired.c (Ffile_attributes): Don't allow the device number become
11061 negative.
11062
110632008-05-02 Daiki Ueno <ueno@unixuser.org>
11064
11065 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11066
110672008-05-02 Juri Linkov <juri@jurta.org>
11068
11069 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11070 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11071 DEFAULT argument as a list of default values in docstrings.
11072
110732008-05-01 Chong Yidong <cyd@stupidchicken.com>
11074
11075 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11076
110772008-05-01 Martin Rudalics <rudalics@gmx.at>
11078
11079 * dispnew.c (change_frame_size_1): Preserve small windows when
11080 shrinking frames by calling set_window_height|width with third
11081 arg 2.
11082
11083 * window.h (struct window): Replace field too_small_ok by field
11084 resize_proportionally.
11085
11086 * window.c (make_window): Initialize resize_proportionally.
11087 (enlarge_window): Temporarily set resize_proportionally to make
11088 sure that shrink_windows does scale the window proportionally.
11089 (shrink_windows): When window has resize_proportionally set try
11090 to shrink it proportionally by stealing from other windows.
11091 (struct saved_window, Fset_window_configuration)
11092 (compare_window_configurations): Handle resize_proportionally.
11093 (WINDOW_TOTAL_SIZE): New macro.
11094 (window_min_size, shrink_windows, size_window): Use it.
11095 (check_min_window_sizes): Remove. Invalid values of
11096 window-min-height|width are handled by window_min_size_2 now.
11097 (size_window, Fsplit_window, enlarge_window)
11098 (adjust_window_trailing_edge, grow_mini_window): Don't call
11099 check_min_window_sizes.
11100 (window_min_size_2, window_min_size_1, window_min_size):
11101 New argument safe_p for retrieving "safe" minimum sizes.
11102 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11103 (adjust_window_trailing_edge, grow_mini_window):
11104 Adjust arguments of window_min_size... functions.
11105 (shrink_windows): Argument min_size removed. New argument
11106 safe_p allows shrinking windows to their safe minimum sizes.
11107 Calculate minimum size and decide whether a window shall be
11108 deleted for each window individually.
11109 (size_window): When nodelete_p equals 2, tell shrink_windows to
11110 delete windows only if their new minimum size is no more safe.
11111 (shrink_window_lowest_first): Call window_min_size_1 to make
11112 sure to preserve modeline of bottom-most window when resizing
11113 the minibuffer.
11114 (Fset_window_configuration, Fcurrent_window_configuration)
11115 (compare_window_configurations): Do not handle
11116 window-min-height|width any more.
11117 (syms_of_window): Clarify window-min-height|width doc-strings.
11118
111192008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11120
11121 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11122 some more. Copy some of the code from Ftry_completions.
11123 Remove special case code that dates back to initial revision when the
11124 slash was only added when necessary and that can't trigger nowadays.
11125
111262008-04-27 Kenichi Handa <handa@m17n.org>
11127
11128 * font.c (font_prop_validate): Signal `error' instead of `font'.
11129
111302008-04-29 Jason Rumney <jasonr@gnu.org>
11131
11132 * w32fns.c (Fw32_battery_status): New defun.
11133 (syms_of_w32fns): Defsubr it.
11134
111352008-04-28 Andreas Schwab <schwab@suse.de>
11136
11137 * dired.c (file_name_completion): Fix another mixing of encoded
11138 and decoded names.
11139
111402008-04-28 Juanma Barranquero <lekktu@gmail.com>
11141
11142 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11143
111442008-04-27 Juanma Barranquero <lekktu@gmail.com>
11145
11146 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11147
111482008-04-27 Andreas Schwab <schwab@suse.de>
11149
11150 * dired.c (file_name_completion): Fix inappropriate mixing of
11151 encoded and decoded names.
11152
11153 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11154
11155 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11156
111572008-04-26 Eli Zaretskii <eliz@gnu.org>
11158
11159 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11160 2008-03-31, it's not needed anymore with `struct stat' definition
11161 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11162 for the same reasons.
11163
111642008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11165
11166 * m/sparc.h: Additional redefinitions for GNU/Linux.
11167
111682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11169
11170 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11171 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11172 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11173 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11174 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11175 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11176 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11177 Likewise.
11178
11179 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11180 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11181 (mac_ax_number_of_characters): Add externs.
11182 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11183 [USE_MAC_TSM]: Likewise.
11184 (mac_handle_text_input_event) [MAC_OSX]:
11185 Handle kEventTextInputOffsetToPos for no active input area case.
11186 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11187 (mac_handle_document_access_event)
11188 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11189 (install_application_handler) [MAC_OSX]: Register handlers for
11190 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11191 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11192 Register mac_handle_document_access_event.
11193
11194 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11195 Make functions non-static.
11196
111972008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11198
11199 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11200 (read_file_name_completion_ignore_case, insert_default_directory)
11201 (Qdefault_directory): Move to minibuffer.el.
11202 (Fread_file_name): Call the new `read-file-name' instead.
11203
112042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11205
11206 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11207 Make function non-static.
11208 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11209 Remove function.
11210 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11211 Move to mactoolbox.c.
11212 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11213
11214 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11215 (mac_rect_make): New macro.
11216
11217 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11218 instead of float.
11219 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11220 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11221 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11222 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11223 CGRectMake.
11224 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11225 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11226 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11227 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11228 instead of WindowRef in argument type.
11229 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11230 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11231 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11232 instead of DISPLAY. All uses changed.
11233 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11234 (x_calc_absolute_position): Simplify so as not to use
11235 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11236
11237 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11238 instead of WindowRef in argument type.
11239 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11240 [TARGET_API_MAC_CARBON]: Remove externs.
11241 (create_apple_event, mac_event_parameters_to_lisp)
11242 [TARGET_API_MAC_CARBON]: Add externs.
11243
11244 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11245 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11246 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11247 is clicked.
11248 (x_activate_menubar): Remove extern for saved_menu_event_location.
11249 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11250 Move from mac.c.
11251
112522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11253
11254 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11255 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11256
112572008-04-23 Jason Rumney <jasonr@gnu.org>
11258
11259 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11260 attributes only for local files.
11261
11262 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11263 default to Qlocal.
11264
112652008-04-22 Juri Linkov <juri@jurta.org>
11266
11267 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11268 read-buffer-to-switch instead of using the letter "B".
11269
112702008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11271
11272 * fileio.c (Qdefault_directory): New variable.
11273 (Fread_file_name): Use it to pass `dir' to the completion functions.
11274
112752008-04-20 Chong Yidong <cyd@stupidchicken.com>
11276
11277 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11278
112792008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11280
11281 * keyboard.c (Vpre_help_message): Remove.
11282 (show_help_echo): Remove default C code.
11283
11284 * dired.c (directory_files_internal, file_name_completion):
11285 Only call ENCODE_FILE if the string is indeed decoded.
11286
112872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11288
11289 * Makefile.in (TOOLKIT_DEFINES): Remove.
11290 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11291
112922008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11293
11294 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11295 (mactoolbox.o): New target.
11296
11297 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11298 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11299
11300 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11301 Use mac_set_frame_window_background instead of XSetWindowBackground.
11302 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11303 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11304 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11305 instead of SetWindowTitleWithCFString.
11306 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11307 Move function to mactoolbox.c.
11308 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11309 Use mac_set_window_modified instead of SetWindowModified.
11310 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11311 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11312 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11313 FrontNonFloatingWindow. Use mac_activate_window instead of
11314 ActivateWindow. Use mac_active_non_floating_window instead of
11315 ActiveNonFloatingWindow.
11316 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11317 Use mac_show_hourglass and mac_hide_hourglass.
11318 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11319 instead of GetGlobalMouse.
11320 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11321 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11322 Use mac_bring_window_to_front instead of BringToFront.
11323 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11324 mactoolbox.c.
11325 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11326 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11327 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11328 mactoolbox.c.
11329
11330 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11331 (XtPointer): Move typedef from macmenu.c.
11332 (enum button_type): Move enum from macmenu.c.
11333 (widget_value): Move typedef from macmenu.c.
11334 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11335 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11336 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11337 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11338 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11339 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11340 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11341 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11342 (Selection): Move typedef from macselect.c.
11343 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11344 macterm.c.
11345 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11346 (mac_is_window_collapsed, mac_bring_window_to_front)
11347 (mac_send_window_behind, mac_hide_window, mac_show_window)
11348 (mac_collapse_window, mac_front_non_floating_window)
11349 (mac_active_non_floating_window, mac_activate_window)
11350 (mac_move_window_structure, mac_move_window, mac_size_window)
11351 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11352
11353 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11354 (enum mac_menu_kind): Move enum to mactoolbox.c.
11355 (min_menu_id): Move variable to mactoolbox.c.
11356 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11357 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11358 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11359 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11360 [TARGET_API_MAC_CARBON]: Likewise.
11361 (XtPointer): Move typedef to macgui.h.
11362 (enum button_type): Move enum to macgui.h.
11363 (widget_value): Move typedef to macgui.h.
11364 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11365 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11366 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11367 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11368 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11369 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11370 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11371 (popup_activated_flag): Make variable non-static.
11372 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11373 (add_menu_item, fill_menu, dispose_menus):
11374 Move functions to mactoolbox.c.
11375 (restore_show_help_function, menu_target_item_handler)
11376 (install_menu_target_item_handler, mac_handle_dialog_event)
11377 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11378 [TARGET_API_MAC_CARBON]: Likewise.
11379 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11380 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11381 (find_and_call_menu_selection, name_is_separator): Make function
11382 non-static.
11383 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11384 to mactoolbox.c.
11385 (set_frame_menubar): Don't call install_menu_quit_handler.
11386 (menu_item_selection): New variable.
11387 (mac_menu_show): Use create_and_show_popup_menu.
11388 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11389 selection but set variable menu_item_selection. All uses changed.
11390 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11391 Call install_menu_quit_handler. Move to mactoolbox.c.
11392
11393 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11394 (Selection): Move typedef to macgui.h.
11395 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11396 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11397 Make variables non-static.
11398 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11399 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11400 Make functions non-static.
11401 (Vmac_service_selection) [MAC_OSX]: Likewise.
11402 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11403 (mac_valid_selection_target_p, mac_clear_selection)
11404 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11405 (mac_put_selection_value, mac_selection_has_target_p)
11406 (mac_get_selection_value, mac_get_selection_target_list)
11407 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11408 Move functions to mactoolbox.c.
11409 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11410 Likewise.
11411 (copy_scrap_flavor_data, mac_handle_service_event)
11412 (install_service_handler) [MAC_OSX]: Likewise.
11413 (syms_of_macselect) <Vmac_dnd_known_types>:
11414 Use mac_dnd_default_known_types.
11415
11416 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11417 Move to mactoolbox.c.
11418 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11419 (Fx_selection_owner_p): Add EXFUN.
11420 (install_window_handler, remove_window_handler, XSetWindowBackground):
11421 Remove externs.
11422 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11423 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11424 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11425 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11426 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11427 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11428 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11429 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11430 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11431 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11432 (mac_valid_selection_target_p, mac_clear_selection)
11433 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11434 (mac_put_selection_value, mac_selection_has_target_p)
11435 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11436 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11437 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11438 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11439 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11440 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11441 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11442 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11443 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11444
11445 * mactoolbox.c: New file.
11446
114472008-04-18 Jason Rumney <jasonr@gnu.org>
11448
11449 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11450
114512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * character.c (Fmultibyte_char_to_unibyte):
11454 Return latin1 chars unchanged.
11455
11456 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11457 relocated if it points to `name'.
11458
114592008-04-17 Kenichi Handa <handa@m17n.org>
11460
11461 * data.c (Faset): Allow setting a multibyte character in an
11462 ASCII-only unibyte string.
11463
11464 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11465
114662008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11467
11468 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11469 done in config.h.
11470
114712008-04-16 Juanma Barranquero <lekktu@gmail.com>
11472
11473 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11474 (Fchar_direction): Add usage in the docstring.
11475
114762008-04-15 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * keyboard.c (read_key_sequence): Remove always-true checks.
11479
114802008-04-14 Jason Rumney <jasonr@gnu.org>
11481
11482 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11483 compatibility struct, for better underline positioning.
11484
114852008-04-13 David Hansen <david.hansen@gmx.net>
11486
11487 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11488 string.
11489
114902008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11491
11492 * m/hp800.h (XUINT, XSET): Remove.
11493
114942008-04-12 Juanma Barranquero <lekktu@gmail.com>
11495
11496 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11497 previous change.
11498
114992008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11500
11501 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11502 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11503
115042008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11505
11506 * keymap.h (map_keymap_canonical): Declare.
11507 * xmenu.c (single_keymap_panes): Use it.
11508
115092008-04-11 Glenn Morris <rgm@gnu.org>
11510
11511 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11512 set the target's value to that of the alias.
11513
115142008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11515
11516 * term.c (set_tty_color_mode): Left over typo.
11517
115182008-04-10 Michael Albinus <michael.albinus@gmx.de>
11519
11520 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11521 only after check for file name handler functions. Signal, when
11522 native functionality is not supported.
11523 (syms_of_fileio): Declare it unconditionally.
11524
115252008-04-10 Jason Rumney <jasonr@gnu.org>
11526
11527 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11528 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11529
11530 * w32.c (logon_network_drive): Also logon to remote drives that
11531 are mapped to drive letters.
11532
115332008-04-10 Glenn Morris <rgm@gnu.org>
11534
11535 * xdisp.c (truncate-partial-width-windows): Doc fix.
11536
115372008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11538
11539 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11540 Move functions to minibuffer.el.
11541 (syms_of_fileio): Don't declare them.
11542
115432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11544
11545 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11546 (syms_of_minibuf): Remove its initialization.
11547
11548 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11549
115502008-04-09 Juanma Barranquero <lekktu@gmail.com>
11551
11552 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11553
115542008-04-09 Jason Rumney <jasonr@gnu.org>
11555
11556 * makefile.w32-in (distclean): Delete makefile too.
11557 (maintainer-clean): New target.
11558
11559 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11560
11561 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11562 for new font backend and composite cases.
11563
115642008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11565
11566 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11567 Most of the code moved to run_timers.
11568 (do_pending_atimers): Call run_timers.
11569 (run_timers): New function.
11570
11571 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11572 run atimers.
11573
11574 * process.c (wait_reading_process_output): The same as above.
11575
115762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * minibuf.c (last_exact_completion): Remove variable.
11579 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11580 (complete_and_exit_1, complete_and_exit_2)
11581 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11582 (Fdisplay_completion_list, display_completion_list_1)
11583 (Fminibuffer_completion_help, Fself_insert_and_exit)
11584 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11585 minibuffer.el.
11586 (syms_of_minibuf): Remove corresponding initializations.
11587
11588 * keyboard.c (Qdeactivate_mark): New var.
11589 (command_loop_1): Use it to call `deactivate-mark'.
11590 (syms_of_keyboard): Initialize it.
11591
11592 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11593 to another frame.
11594 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11595 Don't call set_tty_color_mode.
11596 (store_frame_param): Reset previous_frame rather than call
11597 set_tty_color_mode.
11598 * term.c (set_tty_color_mode): Rewrite.
11599 * dispextern.h (set_tty_color_mode): New type.
11600 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11601
116022008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11605 for generic chars, which do not exist any more in emacs-unicode.
11606
116072008-04-08 Michael Albinus <michael.albinus@gmx.de>
11608
11609 * coding.c (detect_coding_emacs_mule)
11610 (Ffind_operation_coding_system): Fix typo.
11611
116122008-04-08 Jason Rumney <jasonr@gnu.org>
11613
11614 * w32uniscribe.c (SNAME): Extract only symbol name.
11615
11616 * w32font.h (struct w32_metric_cache): New struct.
11617 (w32font_info): Use it.
11618 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11619 (CACHE_BLOCKSIZE): New constants.
11620
11621 * w32font.c (Qja, Qko, Qzh): New symbols.
11622 (syms_of_w32font): Initialise them.
11623 (font_matches_spec): Use them to filter by language.
11624 (recompute_cached_metrics): Remove function.
11625 (compute_metrics, clear_cached_metrics): New functions.
11626 (w32font_encode_char): Use them to manage metric cache.
11627 (w32font_text_extents): Cache metrics for all glyphs on demand.
11628 Delay converting glyph indices to WORD until needed.
11629 (w32font_open_internal): Initialize metric cache to empty.
11630 (registry_to_w32_charset): Charset should always be a symbol.
11631 (fill_in_logfont, list_all_matching_fonts): Family should
11632 always be a symbol.
11633
116342008-04-06 Jason Rumney <jasonr@gnu.org>
11635
11636 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11637 Give up if glyph indices not supported. Use uniscribe obtained
11638 ABC widths for individual metrics. Map glyph clusters back to
11639 characters using fClusterStart flag. Return number of glyphs
11640 produced, not chars processed.
11641 (uniscribe_shape): Map char at FROM to current glyph.
11642
116432008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11644
11645 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11646 Use SetMenuItemHierarchicalMenu.
11647
116482008-04-05 Jason Rumney <jasonr@gnu.org>
11649
11650 * image.c (pbm_load): Allow color values up to 65535.
11651 Throw an error if max_color_idx is outside the supported range.
11652 Report an error when image size is invalid.
11653 Read two bytes at a time when raw images have max_color_idx above 255.
11654
116552008-04-05 Eli Zaretskii <eliz@gnu.org>
11656
11657 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11658 cFileName a file name that includes `?' characters, use the 8+3
11659 alias in cAlternateFileName instead.
11660
116612008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11662
11663 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11664 append "CCL: Quitted" when the CCL program is quitted.
11665 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11666
11667 * ccl.h (struct ccl_program): New member quit_silently.
11668
116692008-04-05 Chong Yidong <cyd@stupidchicken.com>
11670
11671 * search.c (compile_pattern_1): Treat non-nil and non-string of
11672 search-spaces-regexp as nil.
11673
11674 * minibuf.c (Fassoc_string): Tweak docstring.
11675
116762008-04-05 Eli Zaretskii <eliz@gnu.org>
11677
11678 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11679 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11680 2008-03-14 to force inode be positive.
11681
11682 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11683 _S_* ones, since we now use our own sys/stat.h.
11684 (stat, fstat): Don't mangle the inode number.
11685 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11686
116872008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11688
11689 * frame.h (struct frame): Give one more bit to `visible' since we use
11690 values larger than 1 to indicate obscured frames on ttys.
11691
11692 * keymap.c (Qkeymap_canonicalize): New var.
11693 (Fmap_keymap_internal): New fun.
11694 (describe_map): Use keymap-canonicalize.
11695
11696 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11697 (Fundo_boundary): Set them.
11698 (syms_of_undo): Initialize them.
11699 (record_point): Use them instead of last_point_position*.
11700 (last_undo_buffer): Change type.
11701
117022008-04-04 Jason Rumney <jasonr@gnu.org>
11703
11704 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11705 (recompute_cached_metrics): Don't set ascent and descent per char.
11706
11707 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11708 (uniscribe_check_otf): Add GC protection before consing.
11709 Rearrange loop for counting features.
11710
117112008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11712
11713 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11714 buffer with byte-size of source buffer.
11715
117162008-04-03 Chong Yidong <cyd@stupidchicken.com>
11717
11718 * callint.c (Fcall_interactively): Handle temporary region even
11719 when shift-select-mode is off.
11720
117212008-04-03 Jason Rumney <jasonr@gnu.org>
11722
11723 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11724
117252008-04-03 Kenichi Handa <handa@m17n.org>
11726
11727 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11728 (CATEGORY_MASK_UTF_16): Likewise.
11729 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11730 binary file.
11731 (detect_coding): Add null-byte detection for a binary file.
11732 (detect_coding_system): Likewise.
11733
117342008-04-03 Jason Rumney <jasonr@gnu.org>
11735
11736 * w32uniscribe.c: New file.
11737
11738 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11739
11740 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11741
11742 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11743 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11744 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11745 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11746 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11747 (Qphonetic): New symbols.
11748 (syms_of_w32font): Initialize them.
11749 (font_supported_scripts): Use them.
11750 (w32font_list_family): List all charsets.
11751 (w32font_text_extents, recompute_cached_metrics): Fix metric
11752 calculations.
11753 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11754 Give opentype fonts their own format.
11755 (font_matches_spec): New arguments backend and logfont.
11756 Handle :otf spec for uniscribe backend.
11757 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11758 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11759
11760 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11761 font backend.
11762 (globals_of_w32fns): Initialize uniscribe font backend.
11763
11764 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11765 dependencies.
11766 (w32uniscribe.$(O)): New file to build.
11767 (FONT_OBJ): Include w32uniscribe.$(O).
11768 (LIBS): Add uniscribe libraries.
11769
11770 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11771
117722008-04-02 Chong Yidong <cyd@stupidchicken.com>
11773
11774 * callint.c (Vshift_select_mode): New var.
11775 (Finteractive): Document new ^ spec.
11776 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11777 is present.
11778
11779 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11780 (command_loop_1): Avoid running the direct display versions of
11781 forward-char and backward-char if shift-selection may occur.
11782 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11783 shift-translation takes place.
11784
11785 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11786 avoid clobbering by define-minor-mode.
11787
11788 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11789 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11790
11791 * syntax.c (Fforward_word): Add ^ interactive spec.
11792
11793 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11794 (Fscroll_right): Add ^ interactive spec.
11795
117962008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11797
11798 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11799
11800 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11801
11802 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11803
118042008-03-31 Juri Linkov <juri@jurta.org>
11805
11806 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11807
118082008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11809
11810 * gtkutil.c (xg_set_geometry): Fix indentation.
11811 (xg_resize_outer_widget): Remove.
11812 (x_wm_size_hint_off): Fix indentation.
11813 (xg_frame_set_char_size): Call flush_and_sync after
11814 gtk_window_resize.
11815 (x_wm_set_size_hint): Pass NULL as geometry window to
11816 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11817 Add menu bar and tool bar height to base height.
11818 (xg_update_frame_menubar, free_frame_menubar)
11819 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11820 (update_frame_tool_bar, free_frame_tool_bar):
11821 Change xg_resize_outer_widget to xg_frame_set_char_size.
11822
118232008-03-30 Michael Albinus <michael.albinus@gmx.de>
11824
11825 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11826 (Fdbus_call_method): New parameter TIMEOUT.
11827 (dbus-send-signal): Optimize UNGCPRO call.
11828
118292008-03-29 Juri Linkov <juri@jurta.org>
11830
11831 * window.c (Fdisplay_buffer): Move call to
11832 Vsplit_window_preferred_function out of conditions that check
11833 if window is eligible for vertical splitting.
11834 When Vsplit_window_preferred_function is non-nil, call it and use
11835 its non-nil return value as window. Otherwise, continue doing
11836 vertical splitting using Fsplit_window with arg horflag=nil.
11837 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11838 default value from `split-window' to nil.
11839
118402008-03-29 Juri Linkov <juri@jurta.org>
11841
11842 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11843 for interactive code letters 'b' and 'B'.
11844
118452008-03-29 Eli Zaretskii <eliz@gnu.org>
11846
11847 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11848 multibyte string.
11849
118502008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11851
11852 * keyboard.c (pending_funcalls): New var.
11853 (timer_check): Run it.
11854 (syms_of_keyboard): Initialize it.
11855 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11856 (Vdelete_terminal_functions): New vars.
11857 (syms_of_terminal): Initialize them.
11858 (Fdelete_terminal): Run delete-terminal-functions.
11859 * xdisp.c (safe_eval): Rewrite.
11860 (safe_call2): New fun.
11861 * frame.c (Qdelete_frame_functions): New var.
11862 (syms_of_frame): Initialize it.
11863 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11864 * lisp.h (safe_call2, pending_funcalls): Declare.
11865
118662008-03-28 Andreas Schwab <schwab@suse.de>
11867
11868 * indent.c (Fmove_to_column): Move declaration before statements.
11869
118702008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11871
11872 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11873 (struct frame): Use bit fields for boolean vars.
11874
11875 * process.c (server_accept_connection): Simplify naming.
11876 (emacs_get_tty_pgrp): Use SDATA.
11877
11878 * coding.c (decode_coding_object): Fix last change.
11879
118802008-03-27 Jason Rumney <jasonr@gnu.org>
11881
11882 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11883
118842008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11885
11886 * charset.c (Fdefine_charset_internal): Change the way of
11887 registering charsets in Vcharset_order_list.
11888 (syms_of_charset): Make the charset `eight-bit' supplementary.
11889
118902008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11891
11892 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11893 operations, to avoid having the difference between pointers
11894 overflow.
11895
118962008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11897
11898 * indent.c (check_display_width): New fun.
11899 (scan_for_column): Use it.
11900
11901 * data.c (syms_of_data): Mark most-positive-fixnum and
11902 most-negative-fixnum as constants.
11903
11904 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11905
11906 * indent.c (scan_for_column): Extract from current_column_1.
11907 Merge with the same code from Fmove_to_column.
11908 (current_column_1, Fmove_to_column): Use it.
11909
119102008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11911
11912 * keymap.c (map_keymap_internal): New fun.
11913 (map_keymap): Use it.
11914 (Fmap_keymap_internal): New fun.
11915 (Fmap_keymap): Remove left-out test from before make_save_value.
11916
11917 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11918
11919 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11920 Use XCAR/XCDR.
11921
11922 * process.h (struct Lisp_Process): Remove filter_multibyte.
11923 * process.c (QCfilter_multibyte): Remove.
11924 (setup_process_coding_systems): Don't use filter_multibyte.
11925 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11926 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11927 (Fset_process_filter_multibyte): Change the coding-system to
11928 approximate the previous behavior.
11929 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11930 coding-system.
11931
11932 * coding.c (decode_coding_object): When not decoding into a buffer,
11933 obey the coding system's preference of (uni|multi)byte.
11934
119352008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11938 every char is changed and has a different byte-length.
11939 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11940 Fix int -> EMACS_INT.
11941
119422008-03-23 David Hansen <david.hansen@gmx.net>
11943
11944 * dbusbind.c (xd_read_message): Remove extra copying of message
11945 strings. Check for NULL `interface' or `member'.
11946
119472008-03-22 Eli Zaretskii <eliz@gnu.org>
11948
11949 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11950 cFileName a file name that includes `?' characters, use the 8+3
11951 alias in cAlternateFileName instead.
11952
119532008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11954
11955 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11956
119572008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11960 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11961 work on current_buffer only instead (that was already the case
11962 for some of the code anyway).
11963 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11964 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11965 (SET_PT, SET_PT_BOTH): Adjust.
11966 * intervals.h (set_point, temp_set_point, set_point_both)
11967 (temp_set_point_both): Remove redundant declarations.
11968
119692008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11970
11971 * fileio.c (Finsert_file_contents):
11972 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11973 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11974 when buffer != current_buffer anyway.
11975
119762008-03-20 Andreas Schwab <schwab@suse.de>
11977
11978 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11979 as default.
11980
119812008-03-19 Jason Rumney <jasonr@gnu.org>
11982
11983 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11984 (syms_of_w32fns): Initialize them.
11985 (HOURGLASS_ID): New constant.
11986 (x_window_to_frame): Don't check hourglass_window.
11987 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11988 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11989 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11990 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11991 Only change the cursor if hourglass is not active.
11992 (Fx_create_frame): Initialize frame's current_cursor.
11993 (hourglass_atimer): Remove.
11994 (hourglass_started): New function.
11995 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11996 (show_hourglass): Adapt to w32, changing argument to frame.
11997
11998 * w32term.h (struct w32_output): Remove hourglass_window.
11999 Add current_cursor.
12000
12001 * eval.c (call_debugger, Fsignal):
12002 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12003 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12004 (Fexecute_extended_command, cancel_hourglass_unwind):
12005 * minibuf.c (read_minibuf):
12006 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12007
120082008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * window.c (run_funs): New fun.
12011 (run_window_configuration_change_hook): Use it to run the buffer-local
12012 and the global part of the hook.
12013
12014 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12015 (unwind_format_mode_line): Restore selected window.
12016 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12017
120182008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12019
12020 * editfns.c (Fchar_equal): Check they are valid characters.
12021
12022 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12023
120242008-03-17 Andreas Schwab <schwab@suse.de>
12025
12026 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12027 against a charset.
12028
12029 * lisp.h (Fbuffer_list): Declare.
12030
120312008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12032
aac0c6e3
MR
12033 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12034 handlebox_widget is != 0.
12035
120362008-03-16 Juri Linkov <juri@jurta.org>
12037
12038 * callint.c (Fcall_interactively): For interactive code letters
12039 'b' and 'B' put the buffer list into the list of default "future"
12040 values of the minibuffer.
12041
120422008-03-16 Andreas Schwab <schwab@suse.de>
12043
12044 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12045 modifiers.
12046
12047 * regex.c (re_match_2_internal): Correct matching of a charset
12048 against latin-1 characters.
12049
120502008-03-16 Kenichi Handa <handa@m17n.org>
12051
12052 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12053 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12054 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12055 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12056 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12057 CHAR_STRING_ADVANCE.
12058 (produce_chars): Fix for the case that the source and the
12059 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12060 instead of CHAR_STRING_ADVANCE.
12061 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12062 STRING_CHAR_ADVANCE.
12063
120642008-03-15 Andreas Schwab <schwab@suse.de>
12065
12066 * regex.c (re_match_2_internal): Correct matching of eight bit
12067 characters in unibyte strings.
12068
120692008-03-15 Martin Rudalics <rudalics@gmx.at>
12070
12071 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12072 at end of range when it coincides with the end of the buffer.
12073
120742008-03-14 Eli Zaretskii <eliz@gnu.org>
12075
12076 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12077
12078 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12079
120802008-03-14 Jason Rumney <jasonr@gnu.org>
12081
12082 * editfns.c (initial_tz): New variable.
12083 (syms_of_editfns): Initialize it.
12084 (Fset_time_zone_rule): Set it when first called.
12085 Use it when TZSTRING is nil.
12086
12087 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12088 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12089 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12090 (globals_of_w32fns): Initialize them.
12091 (compute_tip_xy): Use them to position tooltips.
12092
120932008-03-14 Glenn Morris <rgm@gnu.org>
12094
12095 * emacs.c (main): Revert previous change.
12096 (standard_args): Revert -internal-script back to -scriptload,
12097 and remove the long-option form.
12098
120992008-03-13 Glenn Morris <rgm@gnu.org>
12100
12101 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12102 Remove option -enable-font-backend.
12103
121042008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12105
12106 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12107
121082008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12109
12110 * xterm.c (x_connection_closed): For GTK: If this is the last
12111 terminal just exit without closing the display.
12112
121132008-03-11 Jason Rumney <jasonr@gnu.org>
12114
12115 * w32font.c (w32font_full_name): Use floor to round.
12116
f0131492 121172008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12118
12119 * sound.c (alsa_configure): Declare vol at beginning of block.
12120
12121 * fontset.c (Ffontset_info): Remove extra semicolon.
12122
121232008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12124
12125 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12126 size of resulting string.
12127
121282008-03-10 Jason Rumney <jasonr@gnu.org>
12129
12130 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12131
121322008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12133
12134 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12135 Don't pretend as if characters with display property haven't been
12136 consumed for string-replacing-string case.
12137
121382008-03-08 Kim F. Storm <storm@cua.dk>
12139
12140 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12141 (get_next_display_element, next_element_from_string)
12142 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12143
121442008-03-08 Andreas Schwab <schwab@suse.de>
12145
12146 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12147
121482008-03-06 Jason Rumney <jasonr@gnu.org>
12149
12150 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12151 when charset not specified. Only translate ANSI to unicode when
12152 font_type is truetype.
12153 (w32font_coverage_ok): New function.
12154 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12155
121562008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12157
12158 * lread.c (Fread_char): Resolve modifiers.
12159 (Fread_char_exclusive): Likewise.
12160
12161 * character.c (char_resolve_modifier_mask): New function.
12162 (char_string): Use char_resolve_modifier_mask.
12163 (Fchar_resolve_modifiers): New function.
12164 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12165 function.
12166
121672008-03-04 Jason Rumney <jasonr@gnu.org>
12168
12169 * makefile.w32-in: Always include w32font.c in the build.
12170 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12171
121722008-03-04 Andreas Schwab <schwab@suse.de>
12173
12174 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12175 (versionclean): Likewise.
12176
121772008-03-04 Juanma Barranquero <lekktu@gmail.com>
12178
12179 * .cvsignore: Add oo.
12180
121812008-03-03 Andreas Schwab <schwab@suse.de>
12182
12183 * coding.c (decode_coding_object): Inhibit gap shrinking while
12184 decoding in place.
12185
121862008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12187
12188 * w32term.c: Remove unused include "gnu.h".
12189 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12190
12191 * gnu.h: Rename to ...
12192 * emacs-icon.h: ... this.
12193 * xterm.c: Use emacs-icon.h instead of gnu.h.
12194 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12195
121962008-03-03 Juanma Barranquero <lekktu@gmail.com>
12197
12198 * w32font.c: Include math.h.
12199
122002008-03-03 Jason Rumney <jasonr@gnu.org>
12201
12202 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12203 Compute options separately.
12204 (w32font_open_internal): Set glyph_idx before caching metrics.
12205
12206 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12207 Define if system headers don't.
12208 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12209 (w32font_encode_char): Don't declare here.
12210
12211 * w32font.c (Quniscribe, QCformat): New symbols.
12212 (syms_of_w32font): Define them.
12213 (w32font_has_char): Indicate uncertainty.
12214 (w32font_encode_char): Encode as glyph point. Make static.
12215 (recompute_cached_metrics): New function.
12216 (w32font_open_internal): Use it. Set font to use glyph points
12217 initially. Set format based on type of font.
12218 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12219 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12220 on it. Set format based on information available here.
12221 (add_font_entity_to_list): Identify backend based on opentype_only.
12222
122232008-03-02 Andreas Schwab <schwab@suse.de>
12224
12225 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12226
12227 * coding.c (decode_coding_big5, produce_chars):
12228 Fix typos in last change.
12229
122302008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12231
12232 * gnu.h: New icon.
12233
122342008-03-02 Kenichi Handa <handa@m17n.org>
12235
12236 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12237 `dos', don't decode '\r' if that is the last in the source.
12238 (decode_coding_utf_16, decode_coding_emacs_mule)
12239 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12240 (decode_coding_raw_text, decode_coding_charset): Likewise.
12241 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12242
122432008-03-01 Jason Rumney <jasonr@gnu.org>
12244
12245 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12246
122472008-03-01 Kim F. Storm <storm@cua.dk>
12248
12249 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12250
122512008-03-01 Jason Rumney <jasonr@gnu.org>
12252
12253 * w32font.c (w32font_full_name): New function.
12254 (w32font_open_internal): Use it.
12255
122562008-03-01 Kim F. Storm <storm@cua.dk>
12257
12258 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12259
122602008-03-01 Jason Rumney <jasonr@gnu.org>
12261
12262 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12263
122642008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12265
12266 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12267 xg_frame_resized when the event is for the edit widget.
12268
12269 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12270
12271 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12272 set_char_size.
12273 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12274 operations on widgets here. Just set frame size if needed.
12275 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12276 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12277 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12278 the whole frame.
12279 (xg_create_tool_bar): Move attachment of the tool bar to
12280 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12281 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12282
122832008-03-01 Jason Rumney <jasonr@gnu.org>
12284
12285 * w32fns.c (w32_msg_pump): Disable debug code.
12286
122872008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12288
12289 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12290
122912008-02-29 Chong Yidong <cyd@stupidchicken.com>
12292
12293 * xdisp.c (next_overlay_string): Don't set
12294 overlay_strings_at_end_processed_p if we're currently reading from
12295 a display string.
12296
122972008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12298
12299 * xdisp.c (get_overlay_strings_1): Fix typo.
12300
123012008-02-29 Chong Yidong <cyd@stupidchicken.com>
12302
12303 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12304
123052008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12306
12307 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12308
12309 * xdisp.c (display_mode_element): Cancel the previous change.
12310 (decode_mode_spec): Likewise.
12311 (handle_auto_composed_prop): Don't make composition if it->string
12312 is a string.
12313
123142008-02-27 Kim F. Storm <storm@cua.dk>
12315
12316 * lisp.h (GLYPH): Change type from int to struct with separate char
12317 and face_id members.
12318 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12319 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12320 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12321 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12322 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12323 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12324 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12325 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12326 handle new Lisp glyph code encoding, either an integer or a cons.
12327
12328 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12329 (GLYPH_ALIAS): Delete.
12330 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12331 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12332 (GLYPH_FROM_CHAR): Replace macro by ...
12333 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12334
12335 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12336 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12337 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12338 (GLYPH_INVALID_P): New macro.
12339 (spec_glyph_lookup_face): Update prototype.
12340
12341 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12342 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12343 new glyph code encoding.
12344 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12345 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12346
12347 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12348 Adapt to new glyph type and new glyph code encoding.
12349
12350 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12351
12352 * indent.c (current_column, current_column_1, Fmove_to_column)
12353 (compute_motion): Adapt to new glyph code encoding.
12354
12355 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12356
123572008-02-27 Chong Yidong <cyd@stupidchicken.com>
12358
12359 * process.c (wait_reading_process_output): Check for window
12360 changes caused by timers.
12361 Suggested by Johan Bockgård.
12362
123632008-02-27 Glenn Morris <rgm@gnu.org>
12364
12365 * emacs.c (USAGE1): Add `--disable-font-backend'.
12366
123672008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12370 is made to the buffer.
12371
123722008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12373
12374 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12375 (face_at_string_position):
12376 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12377 (face_at_string_position):
12378 * xdisp.c (display_string, next_overlay_change):
12379 * buffer.h (overlays_at):
12380 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12381 Update callers.
12382
123832008-02-26 Chong Yidong <cyd@stupidchicken.com>
12384
12385 * editfns.c (Fformat): Doc fix.
12386
123872008-02-26 Juanma Barranquero <lekktu@gmail.com>
12388
12389 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12390 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12391 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12392
123932008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12394
12395 * buffer.c (Fbuffer_swap_text): New function.
12396 (syms_of_buffer): Defsubr it.
12397
123982008-02-25 Chong Yidong <cyd@stupidchicken.com>
12399
12400 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12401
124022008-02-25 Jason Rumney <jasonr@gnu.org>
12403
12404 * w32font.c (w32font_draw): Draw one character at a time when padding.
12405
124062008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12407
12408 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12409 Handle a nil arg. Use run_window_configuration_change_hook.
12410 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12411 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12412 Use run_window_configuration_change_hook.
12413
124142008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12415
12416 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12417 1-pixel width.
12418
124192008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12420
12421 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12422 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12423 if the glyph in the font is zero pixel with.
12424
12425 * dispextern.h (struct glyph_string): New member padding_p.
12426
12427 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12428
12429 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12430
12431 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12432
12433 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12434
12435 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12436
124372008-02-25 Jason Rumney <jasonr@gnu.org>
12438
12439 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12440
124412008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12442
12443 Allow fine-grained image-cache flushing.
12444 * dispextern.h (struct image): Add `dependencies' field.
12445 (clear_image_caches): Change arg to Lisp_Object.
12446 * image.c (make_image): Initialize `dependencies' field.
12447 (clear_image_cache): Change arg to allow fine-grained flushing.
12448 Perform the flush even if image-cache-eviction-delay is nil.
12449 (clear_image_caches): Change arg to Lisp_Object.
12450 (Fclear_image_cache): Expand meaning of the argument.
12451 (mark_image): Mark `dependencies' field.
12452 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12453 (lface_hash): Use XHASH rather than XFASTINT.
12454 (face_at_buffer_position): Fix int -> EMACS_INT position.
12455 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12456 (select_frame_for_redisplay): Remove code duplication.
12457 (redisplay_internal): Adapt arg to call to clear_image_caches.
12458
124592008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12460
12461 * s/vms4-0.h:
12462 * s/vms4-2.h:
12463 * s/vms4-4.h:
12464 * s/vms5-5.h: Remove, unused.
12465
12466 * s/irix5-2.h:
12467 * s/irix6-0.h:
12468 * s/riscos5.h:
12469 * s/mach-bsd4-3.h:
12470 * m/mips4.h: Remove files for obsolete systems.
12471
12472 * Makefile.in:
12473 * filelock.c:
12474 * unexmips.c:
12475 * m/hp9000s300.h:
12476 * m/iris4d.h:
12477 * s/aix3-1.h:
12478 * s/hpux.h:
12479 * s/msdos.h:
12480 * s/usg5-0.h:
12481 * s/usg5-2-2.h:
12482 * s/usg5-2.h:
12483 * s/usg5-3.h: Remove references to obsolete variables.
12484
12485 * s/irix5-0.h: Remove, move all the contents ...
12486 * s/irix6-5.h: ... here. Simplify.
12487 * config.in: Regenerate.
12488
124892008-02-24 Jason Rumney <jasonr@gnu.org>
12490
12491 * w32term.c (x_draw_glyph_string_background): Clear the background
12492 manually when cleartype is in use.
12493 (x_draw_glyph_string_foreground): Draw text transparently when
12494 cleartype is in use.
12495
12496 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12497 a font into it unless we have to.
12498
124992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12500
12501 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12502 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12503
aac0c6e3
MR
125042008-02-18 Jason Rumney <jasonr@gnu.org>
12505
12506 * w32fns.c (Fw32_shell_execute): Encode parameters.
12507
125082008-02-09 Eli Zaretskii <eliz@gnu.org>
12509
12510 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12511
125122008-02-05 Juanma Barranquero <lekktu@gmail.com>
12513
12514 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12515
125162008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12517
12518 * xterm.c (x_set_offset): Don't change the gravity if
12519 CHANGE_GRAVITY is -1.
12520
125212008-02-23 Chong Yidong <cyd@stupidchicken.com>
12522
12523 * fileio.c (auto_save_error_occurred): New var.
12524 (auto_save_error): Set it.
12525 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12526 error occurred.
12527
125282008-02-23 Eli Zaretskii <eliz@gnu.org>
12529
12530 * w32.c (globals_of_w32): Add initializations for
12531 g_b_init_get_sid_sub_authority and
12532 g_b_init_get_sid_sub_authority_count.
12533
125342008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12537 (font_parse_xlfd): Use them for sanity check.
12538 (Finternal_set_font_style_table): Make sure the table is bijective.
12539
12540 Consolidate the image_cache to the terminal struct.
12541 * termhooks.h (P_): Remove redundant def.
12542 (struct terminal): New field `image_cache'.
12543 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12544 of FRAME_X_IMAGE_CACHE.
12545 * xterm.h (struct x_display_info): Remove image_cache field.
12546 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12547 * w32term.h (struct w32_display_info): Remove image_cache field.
12548 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12549 * macterm.h (struct mac_display_info): Remove image_cache field.
12550 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12551 * xterm.c (x_term_init):
12552 * w32term.c (w32_term_init):
12553 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12554 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12555 Remove declarations.
12556 (clear_image_caches, mark_image_cache): New declarations.
12557 * xfaces.c (clear_face_cache):
12558 * xdisp.c (redisplay_internal): Use clear_image_caches.
12559 * image.c (clear_image_cache): Don't check that a frame is on
12560 a window-system before checking if it shares the same cache.
12561 (clear_image_caches): New function.
12562 (Fclear_image_cache): Use it.
12563 (mark_image): Move from allo.c.
12564 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12565 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12566 (mark_object): Don't call mark_image_cache for frames.
12567 (mark_terminals): Call mark_image_cache.
12568
12569 * lisp.h (Fdelete_terminal): Declare.
12570
12571 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12572 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12573 wrong_type_argument.
12574
125752008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12576
12577 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12578 malayalam.el, and tamil.el. Add sinhala.el.
12579
125802008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12581
12582 * xterm.c (x_connection_closed): Consolidate identical tests.
12583 (x_delete_terminal): Don't crash if called via x_connection_closed.
12584
125852008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12586
12587 * xdisp.c (decode_mode_spec): New arg string.
12588 (display_mode_element): Adjust for the above change.
12589
125902008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12591
12592 * callint.c (Fcall_interactively): Use AREF.
12593
125942008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12595
12596 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12597
125982008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12599
12600 * xfns.c (Fx_show_tip): Set string to " " if empty.
12601
126022008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12603
12604 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12605 with Qt.
12606
126072008-02-17 Kenichi Handa <handa@m17n.org>
12608
12609 * ftfont.c (ftfont_shape): Return Lispy number.
12610
12611 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12612 for GCs.
12613 (Finternal_set_font_selection_order): Call font_update_sort_order
12614 only when enable_font_backend is set.
12615 (realize_x_face): Set face->font_info to that of default face only
12616 when enable_font_backend is set.
12617
12618 * xdisp.c (handle_composition_prop): Set it->c to the fist
12619 character of the composed region.
12620 (fill_composite_glyph_string): Set base_face->font_info to
12621 s->font_info. Get a face for ascii from base_face->ascii_face.
12622 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12623 with a face already decided.
12624 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12625 non-negative.
12626 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12627 call font_prepare_composition unconditionally.
12628
12629 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12630
12631 * xterm.h (struct x_display_info): New member font.
12632
12633 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12634 (x_set_mouse_face_gc, x_new_font): Likewise.
12635 (x_term_init): Setup display_info->font.
12636 (x_delete_terminal): Free display_info->font.
12637
12638 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12639
12640 * ftxfont.c (ftxfont_default_fid): Delete it.
12641 (ftxfont_open): Set xfont->fid to 0.
12642 (ftxfont_end_for_frame): Clear data specific to the frame and the
12643 font-driver.
12644
12645 * xftfont.c (xftfont_default_fid): Delete it.
12646 (xftfont_open): Set xfont->fid to 0.
12647
12648 * fontset.c (FONTSET_OBJLIST): New macro.
12649 (fontset_find_font): Update font-object list of the fontset.
12650 (free_realized_fontset): New function.
12651 (free_face_fontset): Call free_realized_fontset.
12652 (Ffont_info): Call font_close_object only when enable_font_backend
12653 is set.
12654
12655 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12656 [HAVE_NTGUI]: Include w32term.h.
12657 [MAC_OS]: Include macterm.ch.
12658 (font_otf_ValueRecord): Use make_number.
12659 (font_finish_cache): Fix handling of reference count.
12660 (font_clear_cache): Update num_fonts.
12661 (font_open_entity): Update smallest_char_width and
12662 smallest_font_height of the frame.
12663 (font_close_object): Update num_fonts.
12664 (Fclear_font_cache): Fix finding the target cache data.
12665
126662008-02-16 Glenn Morris <rgm@gnu.org>
12667
12668 * fontset.c (Finternal_char_font): Fix compilation warning.
12669
126702008-02-16 Eli Zaretskii <eliz@gnu.org>
12671
12672 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12673 instead of char arrays. Enlarge the size of array passed to
12674 get_token_information.
12675
12676 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12677 warnings.
12678
126792008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12680
12681 * .gdbinit: Don't set `args', it breaks gdb --args.
12682
126832008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12684
12685 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12686 within a narrowed buffer.
12687
126882008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12689
12690 * coding.c (decode_coding_object, encode_coding_object):
12691 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12692
126932008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12694
12695 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12696 hardcoding 1.
12697 (detect_coding_system):
12698 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12699 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12700 * insdel.c (insert_from_gap):
12701 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12702 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12703 (string_to_multibyte):
12704 * character.c (chars_in_text, multibyte_chars_in_text):
12705 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12706
12707 * character.h (FETCH_STRING_CHAR_ADVANCE)
12708 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12709 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12710 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12711
12712 * casefiddle.c (casify_region): Only call after-change and composition
12713 functions on the part of the region that was changed.
12714
12715 * keyboard.c (read_avail_input):
12716 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12717
127182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12719
12720 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12721 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12722
127232008-02-11 Juanma Barranquero <lekktu@gmail.com>
12724
12725 * w32menu.c (push_submenu_start, push_submenu_end)
12726 (push_left_right_boundary, push_menu_pane, push_menu_item):
12727 * keyboard.c (read_key_sequence): Don't pass args with side effects
12728 to AREF, it fails when compiling with -DENABLE_CHECKING.
12729
127302008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12731
12732 * Makefile.in (${lispsource}international/charprop.el):
12733 Delete this target.
12734
12735 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12736 emacs-unicode-2.
12737
127382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12739
12740 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12741
127422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * frame.c (Qnoelisp): New symbol.
12745 (syms_of_frame): Initialize it.
12746 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12747 harmless Elisp code, from a strong `force' from x_connection_closed.
12748 * frame.h (Qnoelisp): Declare.
12749 * xterm.c (x_connection_closed): Pass `noelisp'.
12750
12751 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12752 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12753 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12754 rather than `int' for the type of `type'.
12755
127562008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12757
12758 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12759
12760 * Makefile.in (GNUC): Remove support for gcc-1.x.
12761
127622008-02-10 Richard Stallman <rms@gnu.org>
12763
12764 * lisp.h (ASET): Use AREF, not ASLOT.
12765
127662008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12767
12768 * lisp.h (ASET): Check bounds.
12769
127702008-02-10 Glenn Morris <rgm@gnu.org>
12771
12772 * buffer.c (mode-name): Doc fix.
12773
127742008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12775
12776 * Makefile.in:
12777 * emacs.c:
12778 * gmalloc.c:
12779 * keyboard.c:
12780 * lisp.h:
12781 * m/ibm370aix.h:
12782 * process.c:
12783 * regex.c:
12784 * s/hpux.h:
12785 * sysdep.c:
12786 * sysselect.h:
12787 * systty.h:
12788 * unexec.c:
12789 * w32term.c:
12790 * xsmfns.c:
12791 * xterm.c: Remove code that deals with obsolete variables.
12792
12793 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12794
12795 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12796 nothing else needs it anymore.
12797
127982008-02-09 Eli Zaretskii <eliz@gnu.org>
12799
12800 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12801 instead of unibyte_char_to_multibyte.
12802
128032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12804
12805 * s/gnu-linux.h: Remove commented out code.
12806
12807 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12808
12809 * Makefile.in: Update what RMS says about using autoconf.
12810 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12811 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12812 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12813 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12814
128152008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * keymap.c (Fkey_description): Move side effect outside of macro call.
12818
12819 * xfaces.c (Finternal_make_lisp_face):
12820 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12821
12822 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12823 (syms_of_fontset): Use ASET.
12824
12825 * fns.c (concat): Move side effect outside of macro call.
12826 (hash_clear): Use ASET.
12827
128282008-02-08 Richard Stallman <rms@gnu.org>
12829
12830 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12831 If FORCE, and frame has a surrogate minibuffer for another frame,
12832 delete the other frame first.
12833
128342008-02-07 Timo Savola <timo.savola@iki.fi>
12835
12836 * xterm.c (x_detect_focus_change): Handle embed client message.
12837 (handle_one_xevent): Ditto.
12838 (handle_one_xevent): If embedded and we get a button press/release,
12839 request focus.
12840 (xembed_set_info, xembed_send_message): New functions.
12841 (x_make_frame_visible): Call xembed_set_info if embedded.
12842 (x_make_frame_invisible): Call xembed_set_info if embedded.
12843 (x_term_init): Initialize Xatom_XEMBED.
12844 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12845 (x_iconify_frame): Ditto.
12846
12847 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12848 (enum xembed_info, enum xembed_message, enum xembed_focus)
12849 (enum xembed_modifier, enum xembed_accelerator): New.
12850 (xembed_set_info, xembed_send_message): Declare.
12851 (FRAME_X_EMBEDDED_P): New.
12852
12853 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12854 gtk_plug_new.
12855
12856 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12857 window ID of a frame.
12858 (x_window): Reparent frame if embedded.
12859 (Fx_create_frame): Don't set border width if embedded.
12860
12861 * emacs.c (USAGE3): Add --parent-id.
12862 (standard_args): Ditto.
12863
128642008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12865
12866 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12867
128682008-02-07 Jim Meyering <meyering@redhat.com>
12869
12870 Use "do...while (0)", not "if (1)...else" in macro definitions.
12871 The latter provokes a warning from gcc about the empty else, when
12872 followed by ";". Also, without that trailing semicolon, it would
12873 silently swallow up any following statement.
12874 * syntax.h (SETUP_SYNTAX_TABLE)
12875 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12876 * buffer.h (DECODE_POSITION): Likewise.
12877 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12878 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12879 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12880 (FETCH_CHAR_ADVANCE): Likewise.
12881 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12882
128832008-02-07 Jim Meyering <meyering@redhat.com>
12884
12885 * lread.c [lint]: Don't include <sys/inode.h>.
12886
128872008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12888
12889 * xselect.c (x_handle_dnd_message):
12890 * xmenu.c (digest_single_submenu, xmenu_show):
12891 * xdisp.c (with_echo_area_buffer_unwind_data)
12892 (format_mode_line_unwind_data, unwind_format_mode_line)
12893 (display_menu_bar):
12894 * eval.c (Ffetch_bytecode):
12895 * doc.c (store_function_docstring):
12896 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12897 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12898 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12899
129002008-02-07 Kenichi Handa <handa@m17n.org>
12901
12902 * ftxfont.c (ftxfont_open): Don't set
12903 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12904
12905 * ftfont.c (ftfont_open): Fix previous change.
12906
129072008-02-06 Jason Rumney <jasonr@gnu.org>
12908
12909 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12910 Use cached metrics for ASCII characters.
12911 (w32font_open_internal): Don't set font's owning_frame.
12912 Cache metrics for ASCII characters.
12913
12914 * w32font.h (struct w32font_info): Add ascii_metrics.
12915 Remove owning_frame.
12916
129172008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12918
12919 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12920 to negative value.
12921
12922 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12923
12924 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12925
12926 * charset.c (syms_of_charset): Set QCtest and Qeq.
12927
129282008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12929
12930 * process.c (Fstart_process):
12931 * callproc.c (Fcall_process): Handle the case where
12932 Funhandled_file_name_directory returns nil.
12933
12934 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12935 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12936 * font.c (check_gstring): Use them and AREF to access the vector before
12937 we know it's really a gstring.
12938 (Ffont_shape_text): Fix typo.
46e722a9 12939 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12940
12941 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12942 Declare.
12943
12944 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12945
129462008-02-05 Jason Rumney <jasonr@gnu.org>
12947
12948 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12949 Set smallest_font_height and smallest_char_width in display info.
12950
129512008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12952
12953 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12954
129552008-02-05 Miles Bader <miles@gnu.org>
12956
12957 * xfaces.c (get_lface_attributes, merge_named_face)
12958 (lookup_named_face, lookup_derived_face, realize_named_face):
12959 Revert 2008-02-01 change by cyd@stupidchicken.com.
12960
129612008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12962
12963 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12964 fallback fonts.
12965 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12966
129672008-02-04 Jason Rumney <jasonr@gnu.org>
12968
12969 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12970 set full_name.
12971 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12972
129732008-02-03 Jason Rumney <jasonr@gnu.org>
12974
12975 * makefile.w32-in (OBJ1): Include font.o here.
12976 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12977
129782008-02-02 Jason Rumney <jasonr@gnu.org>
12979
12980 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12981
129822008-02-01 Jason Rumney <jasonr@gnu.org>
12983
12984 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12985
12986 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12987
129882008-02-01 Andreas Schwab <schwab@suse.de>
12989
12990 * Makefile.in (shortlisp, lisp): Update for rename of
12991 ../lisp/language/myanmar.el.
12992
129932008-02-01 Chong Yidong <cyd@stupidchicken.com>
12994
12995 * xfaces.c (get_lface_attributes): Delete function.
12996 (merge_named_face, lookup_named_face, lookup_derived_face)
12997 (realize_named_face): Call lface_from_face_name directly, and use
12998 the fact that merge_face_vectors does not alter its FROM argument.
12999
130002008-02-01 Jason Rumney <jasonr@gnu.org>
13001
13002 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13003 input in the default locale. Handle non-Unicode multibyte input.
13004
130052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13006
13007 * fontset.c (reorder_font_vector): Exclude nil elements from the
13008 font group. Don't try multiple fonts.
13009 (fontset_font): Adjust for the above change.
13010 (Finternal_char_font): Return nil if the found font doesn't
13011 contain the character ch.
13012
13013 * Makefile.in (lisp, shortlisp): Add cham.el.
13014
130152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13016
13017 * font.h (FONTP): Make it return 1 also for a font-object.
13018
13019 * .gdbinit (xfontset): New function.
13020
13021 * font.c (font_find_for_lface): Check if the character C is
13022 supported or not only for the first font.
13023
13024 * fontset.c (reorder_font_vector): Fix typo.
13025 (fontset_find_font): Don't add a font-spec specifying a script.
13026 Use 0 (not Qt) for the indication of empty font-group. Change the
13027 format of RFONT-DEF. Return Qt if no font in the font-group
13028 support the character.
13029 (fontset_font): Adjust for the above change. If no font was
13030 found the character, remember that.
13031 (face_for_char): Adjust for the change of RFONT-DEF.
13032 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13033 no font for the target.
13034 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13035
130362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13037
13038 * font.c (font_load_for_face): Handle the case that the font in
13039 face->lface is a string.
13040
130412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13042
13043 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13044
130452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13046
13047 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13048 Fix previous change. If the frame is not on a window system,
13049 signal an error.
13050
130512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13052
13053 * coding.c (decode_coding_object, encode_coding_object): Adjust
13054 marker positions after conversion.
13055
13056 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13057
130582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13059
13060 * font.c (font_find_for_lface): Fix the handling of the return
13061 value of font_has_char.
13062 (Ffont_shape_text): Fix previous change.
13063
13064 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13065 (fontset_ref_and_range): Delete it.
13066 (fontset_find_font): Call char_table_ref_and_range instead of
13067 FONTSET_REF_AND_RANGE.
13068 (make_fontset): Don't setup font groups of Latin here.
13069 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13070 (new_fontset_from_font): Make the specified font the default for
13071 all Latin characters.
13072
130732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13074
13075 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13076 is on a window system before accessing the fontset of the frame.
13077
130782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13079
13080 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13081
13082 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13083 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13084
13085 * font.c (Ffont_shape_text): If the font driver doesn't have a
13086 shaper function, make zero-width glyphs to have at least one-pixel
13087 width. Fix setting of `to' field of glyphs.
13088
130892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13090
13091 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13092 glyphs.
13093
13094 * font.h (struct font_driver): Improve docstring of member `shape'.
13095
130962008-02-01 Kenichi Handa <handa@m17n.org>
13097
13098 * composite.c (syms_of_composite): Fix docstring of
13099 auto-composition-function.
13100
13101 * font.h (LGLYPH_SIZE): New macro.
13102
13103 * font.c (Ffont_fill_gstring): Stop filling when a character not
13104 supported by the font is found.
13105 (Ffont_shape_text): When a shape callback function returns nil,
13106 try at most two more times with larger gstring.
13107 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13108
13109 * xdisp.c (handle_auto_composed_prop): Change the argument to
13110 auto-composition-function.
13111
13112 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13113 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13114 Lispy glyph and store it in the lgstring.
13115
13116 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13117
13118 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13119
131202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13121
13122 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13123
13124 * fontset.c (Vfont_encoding_charset_alist): New variable.
13125 (syms_of_fontset): DEFVAR it.
13126 (reorder_font_vector, fontset_find_font): Optimize for the case of
13127 no need of reordering.
13128 (face_for_char): Map the charset property by
13129 Vfont_encoding_charset_alist.
13130
131312008-02-01 Jason Rumney <jasonr@gnu.org>
13132
13133 * w32font.c (logfonts_match): Don't check adstyle here.
13134 (font_matches_spec): Check here against physical font instead.
13135 (add_font_entity_to_list): Avoid some substitutions.
13136
13137 * font.c (font_parse_fcname): Default weight and slant to normal.
13138 (font_score): Prefer normal fonts if weight or slant unspecified.
13139 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13140 match freetype scores.
13141
131422008-02-01 Jason Rumney <jasonr@gnu.org>
13143
13144 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13145 font, as it may have been deleted.
13146 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13147 most common hyphenless variation.
13148 (logfonts_match): Check generic family.
13149 (font_matches_spec): Don't check generic family here.
13150 (fill_in_logfont): Set generic family based on adstyle.
13151
13152 * w32font.h (w32font_get_cache): Update declaration.
13153
131542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13155
13156 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13157
13158 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13159 If none of the new drivers are available, call font_update_drivers
13160 with the old drivers.
13161
13162 * w32font.c (w32font_get_cache): Adjust the argument type.
13163
13164 * xfont.c (xfont_get_cache): Adjust the argument type.
13165
13166 * font.h (struct font_driver): Change argument type of get_cache.
13167
13168 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13169
13170 * font.c (Ffont_get): Fix arguments to Fassoc.
13171 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13172 (font_clear_cache): New function.
13173 (font_list_entities, font_matching_entity): Use font_get_cache.
13174 (font_update_drivers): Call font_clear_cache when finishing a driver.
13175
13176 * fontset.c (fontset_find_font): Fix previous change.
13177
131782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13179
13180 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13181 dpyinfo->font_table.
13182 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13183 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13184
13185 * font.c (font_at): Handle the case that the arg C is negative.
13186 Handle the unibyte case.
13187 (Ffont_at): Call font_at with the arg C -1.
13188
13189 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13190 the position here, and call font_at with the arg C -1.
13191 Don't check the range of the existing composition at the point.
13192
131932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13194
13195 * fontset.c (fontset_add): New args charset_id and family.
13196 Change caller.
13197 (load_font_get_repertory, fontset_find_font): Assume that
13198 font_spec is always a font-spec object.
13199 (Fset_fontset_font): Always store a font-spec object in a fontset.
13200
13201 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13202 instead of get_property_and_range.
13203
132042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13205
13206 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13207 (xftfont_open): Don't keep locking face.
13208 (xftfont_close): Don't unlock face.
13209 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13210
13211 * fontset.c (fontset_find_font): Don't prefer a font of
13212 supplementary charset.
13213
132142008-02-01 Kenichi Handa <handa@m17n.org>
13215
13216 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13217 script, langsys_tag to langsys, new member script.
13218 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13219 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13220 listing to the script specified in that property. Fix arg to
13221 OTF_check_features.
13222
132232008-02-01 Jason Rumney <jasonr@gnu.org>
13224
13225 * w32font.h: New file.
13226
13227 * w32font.c: Include it.
13228 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13229 (w32font_open): Set owning_frame.
13230 (w32font_text_extents): Use owning_frame.
13231 (struct font_callback_data): Add opentype_only field.
13232 (add_font_entity_to_list): Use it to filter fonts.
13233 Don't check against full name.
13234 (w32font_list_internal): New function.
13235 (w32font_list): Use it.
13236 (w32font_match_internal): New function.
13237 (w32font_match): Use it.
13238 (w32font_open_internal): New function.
13239 (w32font_open): Use it.
13240 (w32font_get_cache, w32font_close, w32font_has_char)
13241 (w32font_encode_char, w32font_text_extents, w32font_draw):
13242 Make non-static.
13243
13244 * makefile.w32-in (w32font.o): Depend on w32font.h.
13245
132462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13247
13248 * charset.c (Fdefine_charset_internal): Record a supplementary
13249 charset at the tail of Vcharset_order_list.
13250
13251 * font.c (Ffont_shape_text): Fix the return value.
13252
13253 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13254
13255 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13256
132572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13258
13259 * ftfont.c (struct OpenTypeSpec): New struct.
13260 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13261 (ftfont_get_open_type_spec): New function.
13262 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13263
13264 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13265
132662008-02-01 Jason Rumney <jasonr@gnu.org>
13267
13268 * w32font.c (add_font_entity_to_list): Compare only the beginning
13269 of full name.
13270
132712008-02-01 Kenichi Handa <handa@m17n.org>
13272
13273 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13274 Never return HANDLED_RECOMPUTE_PROPS.
13275
132762008-02-01 Kenichi Handa <handa@m17n.org>
13277
13278 * font.c (font_gstring_produce): Delete it.
13279
13280 * composite.h (COMPOSITION_METHOD):
13281 Handle COMPOSITION_WITH_GLYPH_STRING.
13282
132832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13284
13285 * xfont.c (Qx): Delete.
13286 (syms_of_xfont): Don't initialize Qx.
13287
13288 * composite.h (enum composition_method):
13289 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13290
132912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13292
13293 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13294 (choose_face_font): Accept new form of font-spec.
13295
13296 * frame.h (font_driver_list): Declare it unconditionally.
13297 (struct frame): Define members font_driver_list and font_data_list
13298 unconditionally.
13299
13300 * fontset.c: Include "font.h" unconditionally.
13301 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13302 (Fset_fontset_font): Accept a font-spec object.
13303
13304 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13305 PIXEL_SIZE part a wild card.
13306
13307 * dispextern.h (struct glyph_string): Define members clip and
13308 num_clips unconditionally.
13309 (struct face): Define members font_info and extra unconditionally.
13310
13311 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13312 ftfont_info only when HAVE_LIBOTF is defined.
13313
133142008-02-01 Andreas Schwab <schwab@suse.de>
13315
13316 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13317 and end.
13318
133192008-02-01 Jason Rumney <jasonr@gnu.org>
13320
13321 * w32font.c (w32font_driver): Add new fields.
13322
133232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13324
13325 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13326 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13327 (LIBES): Add @M17N_FLT_CFLAGS@.
13328
13329 * composite.c (compose_text): Don't treat the new style
13330 composition specially.
13331
13332 * emacs.c (main): Call syms_of_font unconditionally.
13333
13334 * font.h (FONT_ENTITY_NOT_LOADABLE)
13335 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13336 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13337 (struct font_driver): New member shape.
13338 (font_registry_charsets): Extern it.
13339 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13340 (font_otf_capability, font_drive_otf): Delete their externs.
13341
13342 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13343 (font_charset_alist, font_registry_charsets): Move from xfont.c
13344 and rename.
13345 (font_prop_validate_otf): New function.
13346 (font_property_table): Register it for QCotf.
13347 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13348 (font_drive_otf): Delete.
13349 (font_prepare_composition): New arg F. Adjust for the change of
13350 lispy gstring.
13351 (font_find_for_lface): New arg C.
13352 (font_load_for_face): Adjust for the change of font_find_for_lface.
13353 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13354 lispy gstring.
13355 (Ffont_shape_text): New function.
13356 (Fopen_font): If the font size is not given, use 12-pixel.
13357 (Ffont_at): New arg STRING.
13358 (syms_of_font): Initalize font_charset_alist.
13359 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13360 conditionally.
13361
13362 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13363 fonts of the same font-spec. Change the format of RFONT-DEF.
13364 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13365 Adjust for the change of RFONT-DEF.
13366 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13367
13368 * ftfont.h: New file.
13369
13370 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13371 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13372 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13373 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13374 font_otf_capability and font_drive_otf, set ftfont_shape.
13375 (ftfont_list): Adjust for the change of :otf property value.
13376 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13377 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13378 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13379 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13380 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13381 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13382
13383 * w32term.c (x_draw_composite_glyph_string_foreground):
13384 Adjust for the change of lispy gstring.
13385
13386 * xdisp.c (handle_composition_prop): Adjust for the change of
13387 lispy gstring. Call a function for auto-composition with the
13388 third arg it->window.
13389 (fill_composite_glyph_string): Adjust for the change of lispy string.
13390 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13391
13392 * xfaces.c (set_font_frame_param): Adjust for the change of
13393 font_find_for_lface.
13394
13395 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13396 (xfont_registry_charsets): Likewise. Change caller.
13397 (syms_of_xfont): Don't handle x_font_charset_alist.
13398
13399 * xftfont.c: Include "ftfont.h".
13400 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13401 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13402 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13403 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13404 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13405 Set xftfont_driver.shape to xftfont_shape.
13406
13407 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13408 the change of lispy gstring.
13409
134102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13411
13412 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13413
134142008-02-01 Jason Rumney <jasonr@gnu.org>
13415
13416 * w32font.c (w32font_draw): Fill background manually.
13417
134182008-02-01 Jason Rumney <jasonr@gnu.org>
13419
13420 * font.c (Qfontp): Remove unused symbol.
13421 (QCantialias): New symbol.
13422 (syms_of_font): Define it.
13423 (font_property_table): Set a validator for QCantialias.
13424
13425 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13426 Define if not already.
13427 (QCfamily): Share with xfaces.c.
13428 (Qstandard, Qsubpixel, Qnatural): New symbols.
13429 (syms_of_w32font): Define them. Don't define QCfamily here.
13430 (w32_antialias_type, lispy_antialias_type): New functions.
13431 (w32_enumfont_pattern_entity): New arg requested_font.
13432 Set antialias parameter if non-default was requested.
13433 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13434
134352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13436
13437 * lread.c (read1): Undo the previous change.
13438
134392008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13440
13441 * frame.c (Fdelete_frame): Call font_update_drivers only when
13442 USE_FONT_BACKEND is defined.
13443
134442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13445
13446 * font.h (struct font_bitmap): New member bits_per_pixel.
13447 (struct font_driver): New members start_for_frame and end_for_frame.
13448 (struct font_data_list): New struct.
13449 (font_put_frame_data, font_get_frame_data): Extern them.
13450
13451 * frame.h (struct frame): New member font_data_list.
13452
13453 * font.c (font_update_drivers): Call driver->start_for_frame and
13454 driver->end_for_frame at proper timings.
13455 (font_put_frame_data, font_get_frame_data): New functions.
13456 (Ffont_spec): Add usage in the docstring.
13457
13458 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13459 (Fdelete_frame): Call font_update_drivers.
13460
13461 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13462 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13463 (xftfont_get_xft_draw): New function.
13464 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13465 (xftfont_end_for_frame): New function.
13466 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13467
13468 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13469 Change argument. Cache GCs in the per-frame data.
13470 (struct ftxfont_frame_data): New struct.
13471 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13472 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13473 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13474 (ftxfont_end_for_frame): New function.
13475 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13476
13477 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13478
134792008-02-01 Kenichi Handa <handa@m17n.org>
13480
13481 * xselect.c (Vselection_coding_system)
13482 (Vnext_selection_coding_system): Delete them.
13483 (syms_of_xselect): Don't declare selection-coding-system and
13484 next-selection-coding-system. They are declared in select.el.
13485
134862008-02-01 Jason Rumney <jasonr@gnu.org>
13487
13488 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13489
13490 * w32fns.c: Include imm.h.
13491 (get_composition_string_fn, get_ime_context_fn): New optional
13492 system functions.
13493 (globals_of_w32fns): Load them from imm32.dll.
13494 (ignore_ime_char): New flag.
13495 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13496 WM_IME_ENDCOMPOSITION messages.
13497
13498 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13499 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13500
135012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13502
13503 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13504 (READCHAR_REPORT_MULTIBYTE): New macro.
13505 (readchar): New 2nd arg MULTIBYTE.
13506 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13507 Make symbol's name multibyte according to the multibyteness of the
13508 source.
13509
135102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13511
13512 * xfaces.c (face_for_overlay_string): Call lookup_face with
13513 correct arguments (fix of synching with the trunk).
13514
135152008-02-01 Kenichi Handa <handa@m17n.org>
13516
13517 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13518 (font_prop_validate_non_neg, font_prop_validate_spacing):
13519 Delete argument prop_index.
13520 (font_property_table): Change arguments to validater. Change Callers.
13521 (font_lispy_object): Delete.
13522 (font_at): Use font_find_object instead fo font_lispy_object.
13523
135242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13525
13526 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13527 and file names.
13528
135292008-02-01 Jason Rumney <jasonr@gnu.org>
13530
13531 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13532 (font_matches_spec): Remove debug output.
13533 (add_font_entity_to_list): Avoid using substituted fonts.
13534
135352008-02-01 Jason Rumney <jasonr@gnu.org>
13536
13537 * doc.c (Fsnarf_documentation):
13538 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13539
135402008-02-01 Miles Bader <miles@gnu.org>
13541
13542 * dispextern.h (struct glyph_row): Only define "clip" field if
13543 HAVE_WINDOW_SYSTEM is defined.
13544
135452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13546
13547 Fix up multi-tty merge.
13548
13549 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13550 and indentation.
13551
13552 * xfaces.c (free_realized_face, clear_face_gcs):
13553 Include font_done_for_face in the input_blocked section, just in case.
13554
13555 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13556 (get_char_face_and_encoding): Undo last change and remove the *other*
13557 duplicate definition (i.e. keep the one that's better scoped and that
13558 includes code for the font-backend).
13559
13560 * terminal.c (create_terminal): Default keyboard_coding to
13561 `no-conversion' and terminal_coding to `undecided'.
13562
13563 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13564
13565 * fontset.c (free_realized_fontsets): Check that the table entry does
13566 contain a fontset before trying to compare it to `base'.
13567
13568 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13569 syms_of_charset, and syms_of_coding earlier because init_window_once
13570 now needs Vcoding_system_hash_table to be setup.
13571
13572 * coding.h (default_buffer_file_coding): Remove.
13573
13574 * coding.c (default_buffer_file_coding): Remove.
13575 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13576 than ->symbol, and use the terminal-local coding system.
13577 (syms_of_coding): Don't setup the coding-systems that are not
13578 terminal-local.
13579 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13580
13581 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13582 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13583
13584 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13585 in chartab.c and were re-added here by mistake.
13586 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13587
13588 * doc.c (Fsnarf_documentation):
13589 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13590 src to etc.
13591
13592 * ChangeLog.10: Add mistakenly removed entry.
13593
135942008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13595
13596 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13597
135982008-02-01 Miles Bader <miles@gnu.org>
13599
13600 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13601 Add extra args to FACE_FOR_CHAR.
13602
136032008-02-01 Kenichi Handa <handa@m17n.org>
13604
13605 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13606 in sequence.
13607
13608 * chartab.c (map_sub_char_table, map_char_table): If the range
13609 contains just one character, call the function with that character
13610 even if the depth is not 3.
13611
136122008-02-01 Jason Rumney <jasonr@gnu.org>
13613
13614 * w32font.c (w32font_text_extents): Calculate metrics for the
13615 whole string.
13616
136172008-02-01 Jason Rumney <jasonr@gnu.org>
13618
13619 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13620
136212008-02-01 Jason Rumney <jasonr@gnu.org>
13622
13623 * w32term.c (x_set_glyph_string_clipping): Use
13624 get_glyph_string_clip_rects.
13625 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13626 Adjust for the change of struct glyph_string.
13627
13628 * w32font.c (w32font_draw): Do clipping here.
13629
136302008-02-01 Kenichi Handa <handa@m17n.org>
13631
13632 * xftfont.c (xftfont_draw): Adjust for the change of struct
13633 glyph_string.
13634
13635 * xterm.c (x_set_glyph_string_clipping): Use
13636 get_glyph_string_clip_rects.
13637 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13638 Adjust for the change of struct glyph_string.
13639
13640 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13641 the resulting clip(s}.
13642 (expose_overlaps): Add arg r. Change callers. Set it to
13643 row->clip temporarily.
13644 (expose_window): Redraw rows overlapping the exposed area.
13645
13646 * dispextern.h (struct glyph_row): New member clip.
13647 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13648 clip_height, new member clip, and num_clips.
13649
136502008-02-01 Kenichi Handa <handa@m17n.org>
13651
13652 * data.c (Fchar_or_string_p): Fix docstring.
13653
136542008-02-01 Kenichi Handa <handa@m17n.org>
13655
13656 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13657 create a temporary XftDraw object.
13658
136592008-02-01 Kenichi Handa <handa@m17n.org>
13660
13661 * font.c (Ffontp): Fix docstring.
13662
13663 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13664 strong evidence of ISO-2022.
13665
136662008-02-01 Kenichi Handa <handa@m17n.org>
13667
13668 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13669 SYNTAX_ENTRY_FOLLOW_PARENT.
13670
136712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13672
13673 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13674 its type.
13675 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13676 Update to the new type of weak_hash_tables and next_weak.
13677
13678 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13679 a plain C pointer to Lisp_Hash_Table.
13680
13681 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13682 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13683 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13684 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13685 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13686 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13687 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13688 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13689 (GC_EQ): Remove since they've been identical to their non-GC_
13690 alter-egos ever since the markbit was eradicated.
13691
13692 * alloc.c:
13693 * buffer.c:
13694 * buffer.h:
13695 * data.c:
13696 * fileio.c:
13697 * filelock.c:
13698 * fns.c:
13699 * frame.h:
13700 * lisp.h:
13701 * macterm.c:
13702 * print.c:
13703 * process.c:
13704 * w32fns.c:
13705 * w32menu.c:
13706 * w32term.c:
13707 * xfns.c:
13708 * xmenu.c:
13709 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13710
137112008-02-01 Kenichi Handa <handa@m17n.org>
13712
13713 * chartab.c (map_sub_char_table): Make it work for the top-level
13714 char-table. Fix handling of parent char-table.
13715 (map_char_table): Adjust for the above change.
13716
137172008-02-01 Jason Rumney <jasonr@gnu.org>
13718
13719 * w32font.c (Qgdi): Rename from Qw32.
13720
137212008-02-01 Jason Rumney <jasonr@gnu.org>
13722
13723 * w32bdf.c (get_quoted_string): Make function static.
13724
137252008-02-01 Kenichi Handa <handa@m17n.org>
13726
13727 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13728 bigger ascent and descent than those of the font, use them as
13729 font's ascent and descent.
13730
137312008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 * Makefile.in (${lispsource}international/charprop.el): Move this
13734 target within "#ifdef HAVE_UNIDATA" and "#endif".
13735
137362008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13739 (shortlisp): Add ../lisp/language/tai-viet.el.
13740
137412008-02-01 Ulrich Mueller <ulm@gentoo.org>
13742
13743 * Makefile.in (${lispsource}international/charprop.el): Depend on
13744 temacs${EXEEXT}.
13745
137462008-02-01 Jason Rumney <jasonr@gnu.org>
13747
13748 * w32font.c (w32font_close): Delete the GDI font object.
13749
13750 * w32menu.c: Include character.h.
13751
13752 * w32proc.c: Likewise.
13753
13754 * w32select.c: Likewise.
13755
13756 * makefile.w32-in (w32proc.o): Depend on character.h.
13757
137582008-02-01 Jason Rumney <jasonr@gnu.org>
13759
13760 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13761
13762 * w32menu.c (syms_of_w32menu): Likewise.
13763
13764 * w32proc.c (syms_of_ntproc): Likewise.
13765
13766 * w32select.c (syms_of_w32select): Likewise.
13767
13768 * w32term.c (syms_of_w32term): Likewise.
13769
137702008-02-01 Jason Rumney <jasonr@gnu.org>
13771
13772 * w32font.c (w32font_draw): Delete brush after using it.
13773
137742008-02-01 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32font.c (w32font_open): Don't set font_idx.
13777 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13778 to font settings.
13779 (w32font_draw): Fill background explicitly.
13780
137812008-02-01 Jason Rumney <jasonr@gnu.org>
13782
13783 * w32term.c (w32_initialize): Don't call w32font_initialize.
13784
13785 * w32font.c (w32font_info): Remove subranges.
13786 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13787 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13788 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13789 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13790 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13791 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13792 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13793 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13794 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13795 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13796 New symbols.
13797 (font_callback_data): New struct.
13798 (w32font_list, w32font_match): Use it.
13799 (w32font_open): Don't populate subranges.
13800 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13801 (w32font_encode_char): Always return unicode code-point as-is.
13802 (w32font_text_extents): Supply a transformation matrix to
13803 GetGlyphOutline. Never look up by glyph index. Avoid looping
13804 twice. Use unicode version of GetTexExtentPoint32 instead of
13805 glyph index version.
13806 (set_fonts_frame): Remove.
13807 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13808 set frame parameter. Use backward compatible fake foundries.
13809 Save generic family in extra slot under QCfamily. Make width slot
13810 constant. Save QCspacing value. Save list of scripts instead of
13811 binary subranges.
13812 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13813 (add_font_entity_to_list): Use font_callback_data struct. Filter
13814 unwanted fonts.
13815 (add_one_font_entity_to_list): Use font_callback_data struct.
13816 (w32_registry): Default to iso10646_1.
13817 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13818 string font registries. Don't fill in font name if it is a generic
13819 family name, fill family instead. Use spacing, family and script
13820 extra info to fill pitch, family and charset fields.
13821 (list_all_matching_fonts): Use font_callback_data struct.
13822 (unicode_range_for_char): Remove.
13823 (font_supported_scripts): New function.
13824 (w32font_initialize): Remove.
13825 (syms_of_w32font): Update which symbols are defined.
13826
138272008-02-01 Jason Rumney <jasonr@gnu.org>
13828
13829 * font.c (font_pixel_size): Reverse assq_no_quit args.
13830
13831 * w32term.h (FONT_WIDTH): Report max width, not average.
13832 (FONT_MAX_WIDTH): Remove.
13833 (FONT_AVG_WIDTH): New macro.
13834
13835 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13836 redefinition of FONT_WIDTH.
13837
13838 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13839 (w32_cache_char_metrics): Use FONT_WIDTH.
13840
13841 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13842
138432008-02-01 Jason Rumney <jasonr@gnu.org>
13844
13845 * w32font.c (w32font_open): Make lfHeight negative.
13846
13847 * w32fns.c (x_default_font_parameter): Use new style font name.
13848 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13849
138502008-02-01 Jason Rumney <jasonr@gnu.org>
13851
13852 * w32font.c (QCsubranges): New symbol.
13853 (w32font_open, w32font_has_char): Get subranges from subproperty
13854 of extra.
13855 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13856 (syms_of_w32font): Define :subranges symbol.
13857
13858 * font.c (font_put_extra): Expose externally.
13859
13860 * font.h (font_put_extra): Move declaration from font.c.
13861
13862 * font.c (Ffont_get): Use font driver to determine otf capability.
13863 (adjust_anchor): Check if driver defines anchor_point before using.
13864
13865 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13866 (w32font_draw): Use options.
13867 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13868 Fix detection of truetype fonts.
13869 (registry_to_w32_charset): Handle charsets other than iso8859-1
13870 expressed as lisp symbols.
13871 (w32_registry): Express charset as lisp symbol.
13872 (fill_in_logfont): Reverse pixel and point height logic.
13873 Don't set width here. Set quality to default.
13874
13875 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13876 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13877
13878 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13879 Remove redundant loop and allocation.
13880
13881 * makefile.w32-in (font.o, w32font.o): New objects.
13882 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13883 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13884
13885 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13886 STORE_XCHARB a valid l-value.
13887
13888 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13889 calculations for non-Truetype fonts.
13890 (x_draw_glyph_string): Sync with xterm.c.
13891 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13892 Remove redundant code.
13893 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13894
13895 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13896 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13897
13898 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13899 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13900
13901 * w32font.c: New file for w32 font backend.
13902
139032008-02-01 Kenichi Handa <handa@m17n.org>
13904
13905 * term.c: Don't include "buffer.h" twice.
13906
139072008-02-01 Kenichi Handa <handa@m17n.org>
13908
13909 * character.c (Funibyte_string): New function.
13910 (syms_of_character): Defsubr it.
13911
139122008-02-01 Jason Rumney <jasonr@gnu.org>
13913
13914 * w32term.c [USE_FONT_BACKEND]:
13915 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13916 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13917 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13918 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13919 (x_free_frame_resources): Sync with xterm.c.
13920
139212008-02-01 Andreas Schwab <schwab@suse.de>
13922
13923 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13924 char-table size.
13925
139262008-02-01 Kenichi Handa <handa@m17n.org>
13927
13928 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13929
139302008-02-01 Kenichi Handa <handa@m17n.org>
13931
13932 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13933 font_otf_gpos, add font_drive_otf.
13934
13935 * fontset.c (fontset_find_font): Pay attention to font size
13936 specified for a font.
13937 (reorder_font_vector): Check contents of font_def.
13938
13939 * font.c (struct otf_list): Delete it.
13940 (otf_list): Make it a lisp variable.
13941 (otf_open): Use lispy otf_list.
13942 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13943 (check_otf_features): New function.
13944 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13945 New functions.
13946 (font_drive_otf): New function merging font_otf_gsub and
13947 font_otf_gpos.
13948 (font_open_for_lface): New arg spec. Change argument order.
13949 (font_load_for_face): Adjust for the change of font_open_for_lface.
13950 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13951 Ffont_otf_gpos.
13952 (syms_of_font): Staticpro otf_list. Delete defsubr of
13953 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13954
13955 * xfaces.c (set_font_frame_param): Adjust for the change of
13956 font_open_for_lface.
13957
13958 * font.h (font_open_for_lface): Adjust prototype.
13959 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13960 member otf_drive.
13961 (font_otf_gsub, font_otf_gpos): Delete externs.
13962 (font_drive_otf): Extern it.
13963
139642008-02-01 Kenichi Handa <handa@m17n.org>
13965
13966 * font.c (font_at): If the window W is not on a window system,
13967 return Qnil.
13968
13969 * coding.c (produce_chars, encode_coding): Don't call
13970 insert_from_gap if no characters to produce.
13971
139722008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13975 Fclear_face_cache.
13976
13977 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13978
139792008-02-01 Miles Bader <miles@gnu.org>
13980
13981 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13982 Parse "--disable-font-backend" option.
13983 (standard_args): Add "--disable-font-backend" option.
13984
139852008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * fontset.c (fontset_find_font): New function.
13988 (fontset_font): Use fontset_find_font.
13989 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13990 Register the specified font for all Latin characters.
13991 (new_fontset_from_font): Register the specified font for all Latin
13992 characters.
13993 (dump_fontset): For a realized fontset, include the base fontset
13994 name in the returned vector.
13995
139962008-02-01 Kenichi Handa <handa@m17n.org>
13997
13998 * character.h (CHAR_STRING): Cast C to unsigned on calling
13999 char_string.
14000
14001 * character.c (char_string): Type of arg C changed to unsigned.
14002 Signal an error if C is an invalid character code.
14003
14004 * editfns.c (general_insert_function, Fchar_to_string):
14005 Use CHARACTERP, not INTEGERP.
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14010 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14011
14012 * regex.c (analyse_first): Fix for multibyte characters in "case
14013 charset:" and "case categoryspec:".
14014
140152008-02-01 Andreas Schwab <schwab@suse.de>
14016
14017 * Makefile.in (LIBES): Move standard libraries to the end.
14018
140192008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14022 nonzero, don't shrink the buffer nextb.
14023
14024 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14025
14026 * coding.c (coding_alloc_by_making_gap): New arg offset.
14027 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14028 offset.
14029 (decode_coding_iso_2022): Update coding->safe_charsets.
14030 (decode_coding_gap): Temporarily set
14031 current_buffer->text->inhibit_shrinking to 1.
14032
140332008-02-01 Kenichi Handa <handa@m17n.org>
14034
14035 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14036 indexing into elements of s->cmp and s->char2b.
14037
140382008-02-01 Juanma Barranquero <lekktu@gmail.com>
14039
14040 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14041
140422008-02-01 Kenichi Handa <handa@m17n.org>
14043
14044 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14045 target_multibyte instead of multibyte.
14046 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14047 (bcmp_translate): Change the argument name from multibyte to
14048 target_multibyte.
14049
140502008-02-01 Kenichi Handa <handa@m17n.org>
14051
14052 These changes are to compile a regexp into a pattern that can be
14053 used both for multibyte and unibyte targets.
14054
14055 * Makefile.in (search.o): Depend on charset.h.
14056
14057 * character.c (multibyte_char_to_unibyte_safe): New function.
14058
14059 * search.c: Include "charset.h".
14060 (compile_pattern_1): Delete argument multibyte. Don't set
14061 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14062 (compile_pattern): Don't compare cp->buf.target_multibyte.
14063 Compare cp->buf.charset_unibyte.
14064 (compile_pattern): Set cp->buf.target_multibyte.
14065
14066 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14067
14068 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14069
14070 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14071 multibyte. Change callers.
14072 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14073 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14074 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14075 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14076 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14077 (regex_compile): Make the compiled pattern usable both for
14078 multibyte and unibyte targets.
14079 (analyse_first): Make the fastmap usable both for multibyte and
14080 unibyte targets.
14081 (TRANSLATE_VIA_MULTIBYTE): Delete.
14082 (re_match_2_internal): Pay attention to the case that the
14083 multibyteness of bufp and target may be different.
14084
140852008-02-01 Kenichi Handa <handa@m17n.org>
14086
14087 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14088 empty box occupy at least one column width.
14089
140902008-02-01 Miles Bader <miles@gnu.org>
14091
14092 * Makefile.in: Remove redundant HAVE_XFT clause.
14093
140942008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14101 being nil.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14106
141072008-02-01 Kenichi Handa <handa@m17n.org>
14108
14109 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14110
141112008-02-01 Kenichi Handa <handa@m17n.org>
14112
14113 * search.c (simple_search): Fix previous change.
14114
141152008-02-01 Kenichi Handa <handa@m17n.org>
14116
14117 * xftfont.c (ftfont_font_format): Extern declaration.
14118
14119 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14120
14121 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14122 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14123
14124 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14125 (ftfont_font_format): Fix previous change.
14126
14127 * font.h (Ffont_xlfd_name): EXFUN it.
14128
14129 * font.c (font_parse_xlfd): Fix the array size of `f'.
14130 (register_font_driver): Use EQ to compare driver->type.
14131
14132 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14133 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14134 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14135
141362008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14139 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * xfont.c (xfont_open): Set font->format.
14144
14145 * xftfont.c (xftfont_open): Set font->format.
14146
14147 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14148 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14149 (ftfont_open): Set font->format.
14150 (ftfont_font_format): New function.
14151
14152 * font.h (struct font): New member format.
14153
14154 * font.c (Qopentype): New variable.
14155 (syms_of_font): Defsym it.
14156 (Fquery_font): Change the format of the last element of the return
14157 value.
14158
141592008-02-01 Kenichi Handa <handa@m17n.org>
14160
14161 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14162 last resort.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * coding.c (detect_coding_charset): Fix detection of multi-byte
14167 charset.
14168
141692008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14170
14171 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14172
141732008-02-01 Kenichi Handa <handa@m17n.org>
14174
14175 * xdisp.c (get_next_display_element): Set it->face_id for the
14176 first component of a composition.
14177 (x_produce_glyphs): Check if the font is changed or not for composition.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * fontset.c (Qlatin): New variable.
14182 (syms_of_fontset): Define it as a lisp symbol.
14183 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14184
141852008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * font.c (font_unparse_fcname): Pay attention to the case that
14188 some of font property is a null string.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * term.c: Include "composite.h".
14193 (encode_terminal_code): Output all components of composition.
14194 Check the size of encode_terminal_src.
14195 (produce_glyphs): For composition, call produce_composite_glyph.
14196 (append_composite_glyph, produce_composite_glyph): New functions.
14197
14198 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14199 is not found, get font_info from the current ascii face.
14200
142012008-02-01 Kenichi Handa <handa@m17n.org>
14202
14203 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14204 buffer-file-name to Qnil before calling insert_from_buffer.
14205
14206 * font.c (font_unparse_fcname): Pay attention to the case that
14207 foundry is a null string.
14208
142092008-02-01 Kenichi Handa <handa@m17n.org>
14210
14211 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14212
14213 * font.c (Qunicode_sip): New variable.
14214 (syms_of_font): Declare it as a Lisp symbol.
14215
14216 * font.h (Qunicode_sip): Extern it.
14217
142182008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * composite.c (get_composition_id): Pay attention to TAB component.
14221
14222 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14223 TAB. Adjust for the change of s->char2b which always points to
14224 the first element of allocated memory.
14225
14226 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14227
14228 * xdisp.c (handle_composition_prop): Set it->c to the first
14229 non-TAB component.
14230 (fill_composite_glyph_string): Change argument.
14231 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14232 (x_produce_glyphs): Fix handling of left/right padding.
14233
142342008-02-01 Kenichi Handa <handa@m17n.org>
14235
14236 * coding.c (detect_coding_system): Fix for handling off
14237 inhibit_iso_escape_detection. Fix for the case that no coding
14238 system is defined for a specific coding category.
14239
142402008-02-01 Kenichi Handa <handa@m17n.org>
14241
14242 * font.c (font_matching_entity): Delete unused local var.
14243
14244 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14245 opening a font.
14246
14247 * fileio.c (Finsert_file_contents): On recovering a file, assume
14248 Unix-like eol.
14249 (choose_write_coding_system): On auto-saving a file, force
14250 Unix-like eol.
14251
14252 * coding.c (setup_coding_system): Fix setting of
14253 coding->common_flags based on eol_type.
14254 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14255 inherit from it.
14256
142572008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * alloc.c (NSTATICS): Increas to 0x600.
14260
142612008-02-01 Kenichi Handa <handa@m17n.org>
14262
14263 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14264 (ftfont_list): Don't check :name property.
14265 (ftfont_match): New function.
14266 (ftfont_pattern_entity): If the pattern doesn't contain
14267 FC_SPACING, don't assume FC_MONO.
14268
14269 * font.h (struct font_driver): New member `match'.
14270 (font_update_drivers): Adjust prototype.
14271
14272 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14273 property of FONT.
14274 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14275 them unconditionally.
14276 (font_matching_entity): New function.
14277 (font_open_by_name): Try font_matching_entity if exact match is
14278 not found.
14279 (font_update_drivers): Delete the arg FONT. Return a list of
14280 actually used backends. Don't free faces, font caches here.
14281 Don't store data in frame parameters. Don't call x_set_font.
14282 (Ffont_spec): Store :name property as is.
14283 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14284 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14285 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14286 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14287 Call font->driver->otf_gsub instead of font_otf_gsub.
14288
14289 * frame.c (x_set_font_backend): Do more works that were done in
14290 font_update_drivers before.
14291
14292 * xfont.c (xfont_match): New function.
14293 (xfont_driver): Set xfont_driver.match to xfont_match.
14294 (xfont_draw): Set font in GC if necessary.
14295
14296 * ftxfont.c (ftxfont_match): New function.
14297 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14298
14299 * xftfont.c (xftfont_match): New function.
14300 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * font.h (struct font): New member scalable.
14305 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14306 (font_otf_gsub): Adjust prototype.
14307
14308 * font.c (font_otf_capability): Fix handling of the default langsys.
14309 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14310 Check the contents of SPEC.
14311 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14312 (check_gstring): New function.
14313 (REPLACEMENT_CHARACTER): New macro.
14314 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14315 glyph codes of GSTRING.
14316 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14317 (font_prepare_composition): Set cmp->glyph_len.
14318 (font_open_entity): Set font->scalable.
14319 (Ffont_get): Handle :otf property.
14320 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14321 functions.
14322 (Fquery_font): Use font->font.full_name.
14323 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14324 Sfont_otf_alternates.
14325
14326 * ftfont.c (ftfont_open): Set font->font.full_name and
14327 font->font.name properly. Fix calculation of font->font.height
14328 and font->min_width.
14329
14330 * ftxfont.c (ftxfont_create_gcs): New function.
14331 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14332 (ftxfont_draw_backgrond): Fix filling region.
14333 (ftxfont_default_fid): New function.
14334 (ftxfont_open): Set xfont->fid to the return value of
14335 ftxfont_default_fid.
14336 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14337 (ftxfont_done_face): Free only GCs that are created by
14338 ftxfont_create_gcs.
14339 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14340
14341 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14342 Clip to src->width, etc (not src->clip_XXX).
14343
14344 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14345 FontBackend frame parameter.
14346
143472008-02-01 Kenichi Handa <handa@m17n.org>
14348
14349 * font.h (struct font_driver_list): New member `on'.
14350 (Fclear_font_cache): EXFUN it.
14351 (font_update_drivers): Extern it.
14352
14353 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14354 (font_list_entities): Check driver_list->on.
14355 (register_font_driver): Initalize `on' member to 0.
14356 (font_update_drivers): New function.
14357 (Fclear_font_cache): Check driver_list->on.
14358
14359 * frame.h (Qfont_backend): Extern it.
14360 (x_set_font_backend): Extern it.
14361
14362 * frame.c (Qfont_backend): New variable.
14363 (frame_parms): New element for font-backend.
14364 (x_set_font_backend): New function.
14365
14366 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14367 FontBackend frame parameter.
14368 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14369 x_set_font_backend.
14370
14371 * xfont.c (xfont_list): Don't try listing by :name property if the
14372 name is not for XLFD.
14373
143742008-02-01 Kenichi Handa <handa@m17n.org>
14375
14376 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14377 (LGLYPH_SET_TO): New macros.
14378 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14379 element of G is vector or not.
14380 (font_at): Extern it.
14381
14382 * font.c: Include window.h.
14383 (font_lispy_object): New function.
14384 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14385 end of valid glyph.
14386 (font_close_object): Fix getting (struct font *).
14387 (font_at): New function.
14388 (Ffont_get): If FONT is a font-object, get entity from it.
14389 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14390 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14391 range check.
14392 (Ffont_at): New function.
14393 (syms_of_font): Defsubr Sfont_at.
14394
14395 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14396 before the entry for Qcomposition.
14397 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14398 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14399 the font in gstring.
14400 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14401 LGLYPH_FORM (g) to detect the end of valid glyph.
14402 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14403 we are composing with gstring.
14404
14405 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14406 Check if adjustment is vector or not.
14407
14408 * Makefile.in (font.o): Make it depends on window.h.
14409
144102008-02-01 Kenichi Handa <handa@m17n.org>
14411
14412 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14413 adjustment is vector or not.
14414
144152008-02-01 Miles Bader <miles@gnu.org>
14416
14417 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14418
144192008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14422 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14423 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14424
14425 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14426 (DEVICE_DELTA): Fix typo.
14427 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14428 LGLYPH format.
14429
14430 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14431 the change of LGLYPH format.
14432
144332008-02-01 Kenichi Handa <handa@m17n.org>
14434
14435 * ftfont.c (ftfont_list): Fix typo.
14436 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14437
144382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14439
14440 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14441
14442 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14443 xftface_info is non-NULL.
14444
144452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14446
14447 * ftfont.c (ftfont_list): Move misplaced #endif.
14448
144492008-02-01 Kenichi Handa <handa@m17n.org>
14450
14451 * ftfont.c (ftfont_list): Pay attention to the case that
14452 FC_CAPABILITY is not defined.
14453
144542008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * xftfont.c (xftfont_open): Set charset related members to -1.
14457
14458 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14459 QCname.
14460 (ftfont_open): Set charset related members to -1.
14461
14462 * fontset.c (Votf_script_alist): New variable.
14463 (syms_of_fontset): Initialize it.
14464 (fontset_font): Delete unused variable.
14465
14466 * fontset.h (Votf_script_alist): Extern it.
14467
14468 * font.c (font_find_for_lface): Optimize code.
14469
14470 * font.h (font_close_object, font_merge_old_spec): Extern them.
14471
144722008-02-01 Kenichi Handa <handa@m17n.org>
14473
14474 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14475 (syms_of_font): Initialize them.
14476 (font_pixel_size): Allow float value in dpi.
14477 (font_prop_validate_type): Delete.
14478 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14479 Change caller.
14480 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14481 (font_prop_validate_extra): Delete.
14482 (font_prop_validate_spacing): New function.
14483 (font_property_table): Add elements for all known properties.
14484 (get_font_prop_index): Rename from check_font_prop_name. New
14485 argument FROM. Change caller.
14486 (font_prop_validate): Validate all known properties.
14487 (font_put_extra): Delete argument force. Change caller.
14488 (font_expand_wildcards): Make it static. Fix the way of shrinking
14489 the possible range.
14490 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14491 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14492 Change caller.
14493 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14494 (font_parse_fcname): Delete argument merge. Fix parsing of point
14495 size. Don't validate properties values here. Change caller.
14496 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14497 (font_open_by_name): Delete unused variable.
14498 (Ffont_spec): Likewise. Validate property values.
14499 (Ffont_match_p): New function.
14500
14501 * font.h (QCscalable): Extern it.
14502 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14503
14504 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14505
14506 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14507 (xfont_list_pattern): New function.
14508 (xfont_list): Use xfont_list_pattern.
14509
145102008-02-01 Kenichi Handa <handa@m17n.org>
14511
14512 * font.h (Flist_fonts): EXFUN it.
14513
145142008-02-01 Jason Rumney <jasonr@gnu.org>
14515
14516 * w32term.c (w32_initialize): Add back smoothing_type and
14517 smoothing_enabled definitions.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14522 s->face->font on determining underline position.
14523
145242008-02-01 Kenichi Handa <handa@m17n.org>
14525
14526 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14527 (font_has_char): Accept font-object too.
14528 (font_find_for_lface): Try at first with a size specified in face.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14533 font_open_by_name.
14534
145352008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * font.h (QCspacing, QCdpi): Extern them.
14538 (enum font_spacing): New enum.
14539 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14540
14541 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14542 (QCspacing, QCdpi): New variables.
14543 (syms_of_font): Initialize them.
14544 (font_pixel_size): New function.
14545 (font_put_extra): New function.
14546 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14547 in FONT_EXTRA.
14548 (font_parse_fcname): Handle enumerated values (e.g. bold).
14549 Fix handling font size. Add QCname property that contains only
14550 unknown properties.
14551 (font_score): Change argument. Change caller. Pay attention to
14552 FONT_PIXEL_SIZE_QUANTUM.
14553 (font_sort_entites, font_list_entities, font_find_for_lface)
14554 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14555 (Ffont_spec): Add QCname property that contains only unknown properties.
14556
14557 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14558 include weight in listing pattern, instead check weight of each
14559 listed font. Don't include scalable in pattern. Pay attention to
14560 FONT_PIXEL_SIZE_QUANTUM.
14561
145622008-02-01 Kenichi Handa <handa@m17n.org>
14563
14564 * font.c (font_parse_fcname): Fix parsing of point-size.
14565 (font_unparse_fcname): Produce symbolic names for style properties.
14566 (font_list_entities): Handle float size correctly.
14567 (font_open_by_name): Prefer `normal' property values if the name
14568 doesn't specify them.
14569
14570 * fontset.c (Finternal_char_font): Use font_get_name, not
14571 Ffont_xlfd_name.
14572
14573 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14574 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14575 pattern. Don't force scalable.
14576
14577 * xftfont.c (xftfont_open): For generating a name, start from
14578 96-byte buffer.
14579
145802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14581
14582 * frame.h (x_new_fontset2): Fix prototype.
14583
145842008-02-01 Kenichi Handa <handa@m17n.org>
14585
14586 * font.h (struct font_driver): Delete member parse_name.
14587 (font_match_p, font_get_spec, font_parse_fcname)
14588 (font_unparse_fcname): Extern them.
14589 (font_get_name): Adjust prototype.
14590
14591 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14592 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14593 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14594 unnecessary checks for weight, slant, and swidth.
14595 (font_parse_fcname): New function.
14596 (font_unparse_fcname): New function.
14597 (font_parse_name): New function.
14598 (font_match_p): New function.
14599 (font_get_name): Change return value to Lisp string.
14600 (font_get_spec): New function.
14601 (Qunspecified, Qignore_defface): Don't extern them.
14602 (font_find_for_lface): Assume that LFACE is fully specified.
14603 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14604 object, use it for FACE.
14605 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14606 driver->parse_name.
14607 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14608
14609 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14610 prototype.
14611
14612 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14613 argument F. Don't call Fnew_fontset. Instead, directly call
14614 make_fontset.
14615
14616 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14617
14618 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14619 of x_new_fontset2.
14620
14621 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14622 (Qsans__serif): New variables.
14623 (ftfont_generic_family_list): New variable.
14624 (syms_of_ftfont): Initialize the above variables.
14625 (ftfont_pattern_entity): Delete argument NAME.
14626 (ftfont_list_generic_family): New function.
14627 (ftfont_parse_name): Delete this function.
14628 (ftfont_list): Try generic family only when FcFontList found no font.
14629 (ftfont_list_family): Fix args to FcObjectSetBuild.
14630
14631 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14632 object in attrs[LFACE_FONT_INDEX].
14633 (set_lface_from_font_name): Cancel all changes for font-backend.
14634 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14635 function.
14636 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14637 font object in QCfont attribute.
14638 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14639 (realize_default_face) [USE_FONT_BACKEND]: Call
14640 set_lface_from_font_and_fontset.
14641
14642 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14643 "fixed", and signal error here if no suitable font was found.
14644
14645 * xfont.c (xfont_parse_name): Delete this function.
14646
14647 * xftfont.c (xftfont_open): Change coding style of error
14648 handling. Generate fontconfig's fontname pattern.
14649
14650 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14651 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14652
14653 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14654 Both args FONTSET and FONT_OBJECT must be existing ones.
14655
146562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14657
14658 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14659
146602008-02-01 Kenichi Handa <handa@m17n.org>
14661
14662 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14663
14664 * font.h (struct font): Fix typo.
14665
14666 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14667 XLFD_XXX_INDEX.
14668 (enum xlfd_field_mask): New enum.
14669 (intern_font_field): Changed argument. Change caller. If digits
14670 are followed by non-digits, return a symbol.
14671 (font_expand_wildcards): New function.
14672 (font_parse_xlfd): Fix wildcard handling.
14673 (Ffont_spec): If :name is specified, reflect the info in the other
14674 properties.
14675
14676 * ftfont.c (ftfont_pattern_entity): Fix typo.
14677 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14678 locale.
14679
146802008-02-01 Kenichi Handa <handa@m17n.org>
14681
14682 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14683
14684 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14685 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14686 registry doesn't specify encoding part.
14687 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14688 (font_open_by_name): At first try parsing the name.
14689 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14690 as Lisp symbols.
14691
14692 * fontset.c (reorder_font_vector): Pay attention to the case that
14693 the 3rd element of font_def is nil.
14694 (fontset_font): For the default fontset, append one more fontset
14695 elements for a script-based font specification. Don't add script
14696 attribute on finding a font.
14697 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14698 font name.
14699 (fontset_ascii_font): If a font can't be opened, return nil.
14700
14701 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14702 (ftfont_pattern_entity): New function.
14703 (ftfont_get_cache): Assume that freetype_font_cache is already
14704 initialized.
14705 (ftfont_list): Handle the case that a file is specified in font
14706 name. Use ftfont_pattern_entity to generate entities.
14707 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14708 (syms_of_ftfont): Initialize freetype_font_cache.
14709
14710 * xftfont.c (xftfont_open): Make the font name fontconfig's
14711 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14712 (xftfont_close): Free font->font.name if not NULL.
14713
14714 * xfont.c (xfont_list): If script is specified for a font, return
14715 null_vector.
14716 (xfont_list_family): Declare argument type.
14717
14718 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14719 name, set LFACE_FONT (lface) to nil.
14720
14721 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14722 return Qnil.
14723
147242008-02-01 Kenichi Handa <handa@m17n.org>
14725
14726 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14727 (standard_args): Add "-enable-font-backend".
14728
147292008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14732 (struct xftdraw_list, xftdraw_list): Delete them.
14733 (register_xftdraw, check_xftdraw): Delete them.
14734 (xftfont_prepare_face): Don't call register_xftdraw.
14735 (xftfont_done_face): Don't call check_xftdraw.
14736 (xftfont_draw): Get background color only when with_background is
14737 nonzero.
14738
14739 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 These changes are for the new font handling codes.
14744
14745 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14746 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14747 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14748 (FONTSRC, FONTOBJ): New variables.
14749 (obj): Add $(FONTOBJ).
14750 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14751 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14752 @LIBOTF_LIBS@.
14753 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14754 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14755
14756 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14757
14758 * character.h (Vscript_representative_chars): Extern it.
14759
14760 * character.c (Vscript_representative_chars): New variable.
14761 (syms_of_character): Declare it as a Lisp variable.
14762
14763 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14764 enable_font_backend is nonzero, accept the composition method
14765 COMPOSITION_WITH_GLYPH_STRING.
14766
14767 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14768 enumeration COMPOSITION_WITH_GLYPH_STRING.
14769
14770 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14771 members clip_x, clip_y, clip_width, and clip_height.
14772 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14773
14774 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14775 --enable-font-backend. Call syms_of_font.
14776
14777 * fns.c (assoc_no_quit): New function.
14778
14779 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14780 (face_for_font, new_fontset_from_font)
14781 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14782
14783 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14784 (fontset_font, fontset_ascii, face_for_char)
14785 (make_fontset_for_ascii_face, Ffont_info)
14786 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14787 is nonzero, use font-backend mechanism.
14788 (find_font_encoding): Make it non-static.
14789 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14790 New functions.
14791
14792 * frame.h (struct frame): New members resx and resy.
14793 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14794 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14795
14796 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14797 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14798
14799 * lisp.h (assoc_no_quit): Extern it.
14800
14801 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14802 Through out the file, use FONT_INFO_FROM_FACE instead of
14803 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14804 rif->per_char_metric.
14805 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14806 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14807 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14808 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14809 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14810 nonzero, use font-backend mechanism.
14811 (get_per_char_metric): New function.
14812
14813 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14814 (set_lface_from_font_name)
14815 (set_font_frame_param, free_realized_face)
14816 (prepare_face_for_display, clear_face_gcs)
14817 (Finternal_set_font_selection_order, realize_x_face)
14818 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14819 font-backend mechanism.
14820 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14821 (load_face_font) [USE_FONT_BACKEND]: Abort.
14822 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14823 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14824
14825 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14826 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14827 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14828 nonzero, register all available font drivers. Call
14829 x_default_font_parameter for deciding a font.
14830 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14831
14832 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14833 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14834 (x_set_glyph_string_clipping_exactly)
14835 (x_compute_glyph_string_overhangs)
14836 (x_draw_glyph_string_foreground)
14837 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14838 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14839 enable_font_backend is nonzero, use font-backend mechanism.
14840 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14845 system_eol_type.
14846 (syms_of_coding): Initialize system_eol_type.
14847
14848 * process.c (Fset_process_coding_system): Inherit system's eol
14849 format if necessary.
14850
148512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14852
14853 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14854
148552008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * coding.c (decode_eol): Pay attention to buffer relocation in
14858 del_range_2.
14859 (decode_coding): Call decode_eol before restoring undo_list.
14860
148612008-02-01 Kenichi Handa <handa@m17n.org>
14862
14863 * charset.c (Fdefine_charset_internal): Fix setting of
14864 emacs_mule_bytes.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * keyboard.c (read_char): Check if C is a character or not before
14869 looking up Vkeyboard_translate_table.
14870
148712008-02-01 Kenichi Handa <handa@m17n.org>
14872
14873 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14874 condition to terminate the loop.
14875
148762008-02-01 Kenichi Handa <handa@m17n.org>
14877
14878 * coding.c (produce_composition): Compare charbuf[i] instead of
14879 args[i] against 0.
14880 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14881
148822008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14885 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14886 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14887 detect_coding.
14888 (emacs_mule_char): Handle old style (Emacs 20) component character
14889 of a composition.
14890 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14891 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14892 composition rule.
14893 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14894
148952008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * coding.c (encode_coding_ccl): Allocate destination dynamically
14898 when necessary.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14903 the loop. When quitted, show a proper error message.
14904
149052008-02-01 Kenichi Handa <handa@m17n.org>
14906
14907 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14908 src->clip_head and src->clip_tail temporarily instead of src->hl.
14909
14910 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14911 character sequence.
14912 (Fccl_execute_on_string): Use ASET, not XSET.
14913
149142008-02-01 Kenichi Handa <handa@m17n.org>
14915
14916 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * coding.c (decode_coding): Fix the condition of terminating the
14921 decoding loop.
14922
149232008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * data.c (Faset): On setting a character bigger than 255 in a
14926 unibyte string, signal an error instead of make the string multibyte.
14927
149282008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14931 made by a mapping table.
14932
149332008-02-01 Kenichi Handa <handa@m17n.org>
14934
14935 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14936 not.
14937 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14938 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14939
14940 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14941 s->face is NULL or not.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14946 (x_draw_glyph_string): Fix drawing of right_overhang and
14947 left_overhang around/on cursor.
14948
14949 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14950
149512008-02-01 Kenichi Handa <handa@m17n.org>
14952
14953 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14954
149552008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * coding.c (Fdefine_coding_system_internal)
14958 (Fdefine_coding_system_alias): Avoid a duplicated element in
14959 Vcoding_system_alist.
14960
149612008-02-01 Kenichi Handa <handa@m17n.org>
14962
14963 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14964
14965 * coding.c (Qcoding_system_define_form): New variable.
14966 (syms_of_coding): Intern and staticpro it.
14967 (Fcoding_system_p): Check Qcoding_system_define_form.
14968 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14969
14970 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14971 Fcoding_system_p.
14972 (CHECK_CODING_SYSTEM): If ID is not available, call
14973 Fcheck_coding_system.
14974 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14975 Try also Fcheck_coding_system.
14976
149772008-02-01 Kenichi Handa <handa@m17n.org>
14978
14979 * coding.c (code_conversion_restore): GCPRO arg.
14980
149812008-02-01 Kenichi Handa <handa@m17n.org>
14982
14983 * character.c (lisp_string_width): Check multibyteness of STRING.
14984
149852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14986
14987 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14988 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14989 (decode_mac_font_name): Use decode_coding_c_string instead of
14990 decode_coding.
14991 (x_load_font): Initialize fontp->fontset to -1. Set
14992 fontp->encoding_type.
14993
149942008-02-01 Kenichi Handa <handa@m17n.org>
14995
14996 * search.c (search_buffer): Give up BM search on case-fold-search
14997 if one of a target character has a case-equivalence of different
14998 byte length even if that target charcter is an ASCII.
14999 (simple_search): Fix calculation of byte length of matched text.
15000 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * coding.c (decode_coding): Fix handling of invalid bytes.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15009 Unicode characters.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * coding.c (encode_coding_object): If a pre-write-conversion
15014 function makes a new buffer, kill it.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * coding.c (QCascii_compatible_p): New variable.
15019 (syms_of_coding): Initialize it.
15020 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15021 calling string_char.
15022 (record_conversion_result): Add `default:' case.
15023 (coding_charset_list): Delete unused variable `coding_type'.
15024 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15025 property in the plist of the coding system.
15026 (Fcoding_system_put): Check QCascii_compatible_p.
15027
150282008-02-01 Miles Bader <miles@gnu.org>
15029
15030 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15031 removed calculation of frame `f', as it's now used.
15032
150332008-02-01 Kenichi Handa <handa@m17n.org>
15034
15035 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15036 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15037 (UNIDATA): New variable.
15038 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15039 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15040 $(RUN_TEMACS) unconditionally.
15041
150422008-02-01 Kenichi Handa <handa@m17n.org>
15043
15044 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15045 (admindir): New variable.
15046 ($(lispsource)international/charprop.el): New target.
15047
150482008-02-01 Miles Bader <miles@gnu.org>
15049
15050 * character.c (chars-in-region): Remove obsolete function.
15051 (syms_of_character): Remove its initialization.
15052
150532008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15054
15055 * w32select.c (validate_coding_system)
15056 (setup_windows_coding_system): New functions.
15057 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15058 setup_windows_coding_system.
15059 (setup_config, Fw32_get_clipboard_data): Use
15060 validate_coding_system.
15061 (Fx_selection_exists): Move call to setup_config to a place
15062 where signals are allowed.
15063
15064 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15065 (Fcheck_coding_system): Add declarations.
15066
150672008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15070
150712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15072
15073 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15074 string as the second argument for x_new_fontset.
15075
150762008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15079 (encode_coding_object): Use safe_call instead of call2.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15084
15085 * Makefile.in (lisp): Include charprop.el.
15086
150872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15088
15089 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15090 Not sure if it's unnecessary.
15091
150922008-02-01 Steven Tamm <steventamm@mac.com>
15093
15094 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15095 some possibly unnecessary fontset checking code that crashed
15096 when creating a new frame.
15097
150982008-02-01 Kenichi Handa <handa@m17n.org>
15099
15100 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15101 lookup_face.
15102
15103 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15104
15105 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15106
151072008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15110 (coding_charset_list): New function.
15111
15112 * coding.h (coding_charset_list): Extern it.
15113
151142008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15117 concatenation of family and registry.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * character.h (BYTE8_STRING): Fix typo.
15122
15123 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15124 string to multibyte (sync to HEAD).
15125
15126 * casefiddle.c (casify_region): Handle changes in byte-length
15127 using replace_range_2 (sync to HEAD).
15128
151292008-02-01 Andreas Schwab <schwab@suse.de>
15130
15131 * chartab.c (map_char_table): GCPRO table and arg.
15132
151332008-02-01 Kenichi Handa <handa@m17n.org>
15134
15135 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15136 already at limit.
15137
151382008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15141 instead of fast_c_string_match_ignore_case.
15142 (find_font_encoding): Change argument to Lisp_Object. Use
15143 fast_string_match_ignore_case instead of
15144 fast_c_string_match_ignore_case. Change caller.
15145
151462008-02-01 Kenichi Handa <handa@m17n.org>
15147
15148 * xdisp.c (get_next_display_element): In unibyte case, decide to
15149 display in octal form by checking a character by
15150 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15151
15152 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15153
15154 * character.c (unibyte_has_multibyte_table): New variable.
15155
15156 * character.h (unibyte_has_multibyte_table): Extern it.
15157 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.c (encode_coding_iso_2022): Fix handling of charset
15162 annotation.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * coding.c (setup_coding_system): If coding_system is nil, use
15167 Qundecided.
15168 (Fterminal_coding_system): Return nil if terminal coding system is
15169 `undecided'.
15170 (syms_of_coding): Define coding-system `undecided' here. Setup
15171 terminal_coding as `undecided'.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * xdisp.c (message_dolog, set_message_1): Call
15176 unibyte_char_to_multibyte with arg type int.
15177
15178 * lread.c (read1): Fix reading of a char-table.
15179
15180 * print.c (print_object): Include sub char-table in circularities
15181 detection.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15186 Append the found sequences in car of ARGS instead of prepending.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * fileio.c (report_file_error): Make a unibyte string from
15191 strerror (errorno).
15192 (Fsubstitute_in_file_name): Fix the arg to
15193 unibyte_char_to_multibyte. It is evaluated twice.
15194
151952008-02-01 Kenichi Handa <handa@m17n.org>
15196
15197 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15202 BOM is not found.
15203 (detect_coding, detect_coding_system): Optimization for ISO-2022
15204 when no 8-bit data is found.
15205
152062008-02-01 Jason Rumney <jasonr@gnu.org>
15207
15208 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15209
152102008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15213 CHARS.
15214
152152008-02-01 Steven Tamm <steventamm@mac.com>
15216
15217 * macterm.c (mac_encode_char): Add charset argument and update
15218 to use encoding_type.
15219 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15220 switch to pure fontset.
15221 (decode_mac_font_name): Temporarily remove decoding.
15222 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15223 (x_load_font): Temporarily remove encoding.
15224
152252008-02-01 Kenichi Handa <handa@m17n.org>
15226
15227 * xfaces.c (Fface_font): If frame is not on a window system,
15228 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15229 refer to face->font.
15230 (split_font_name_into_vector, build_font_name_from_vector)
15231 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15232 when HAVE_WINDOW_SYSTEM is defined.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15237 (x_produce_glyphs): Fix setting of members of cmp in case
15238 cmp->glyph_len is zero.
15239
15240 * fontset.c (Fset_fontset_font): Fix docstring.
15241 (Ffontset_info): Make it backward compatible. New arg ALL.
15242
152432008-02-01 Kim F. Storm <storm@cua.dk>
15244
15245 * process.c (read_process_output): Grow decoding_buf when needed;
15246 this could cause a crash in allocate_string and compact_small_strings.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15251
152522008-02-01 Kenichi Handa <handa@m17n.org>
15253
15254 * coding.c (setup_coding_system): Set coding->common_flags
15255 correctly for raw-text.
15256 (consume_chars): On encoding unibyte text by raw-text, don't check
15257 multibyte form.
15258 (encode_coding): On encoding by raw-text, never use translation tables.
15259
15260 * fileio.c (e_write): Short cut for the case of no encoding.
15261
152622008-02-01 Kenichi Handa <handa@m17n.org>
15263
15264 * coding.c (detect_coding, detect_coding_system): Delete unused
15265 variables.
15266
152672008-02-01 Kenichi Handa <handa@m17n.org>
15268
15269 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15270 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * coding.c (Ffind_coding_systems_region_internal): Include
15275 raw-text and no-conversion in the result.
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15280 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15281 FONT_DEF.
15282 (font_def_arg, add_arg, from_arg, to_arg): New args.
15283 (set_fontset_font): Change argument.
15284 (Fset_fontset_font): Fix for the case that TARGET is a script
15285 name and charset name.
15286 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15287
152882008-02-01 Kenichi Handa <handa@m17n.org>
15289
15290 * fontset.c (fontset_font): Rename from fontset_face. Change return
15291 value.
15292 (face_suitable_for_char_p, face_for_char): Adjust for the change
15293 of fontset_font.
15294 (make_fontset_for_ascii_face): Fix setting of the fontset element
15295 for ASCII.
15296 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15297 to get a font name.
15298 (Ffontset_info): Adjust for the change of fontset_font.
15299
15300 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15301
15302 * character.h (LEADING_CODE_LATIN_1_MIN)
15303 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15304
153052008-02-01 Kenichi Handa <handa@m17n.org>
15306
15307 * editfns.c (check_translation): New function.
15308 (Ftranslate_region_internal): Handle M:N mapping.
15309
153102008-02-01 Kenichi Handa <handa@m17n.org>
15311
15312 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15313
153142008-02-01 Kenichi Handa <handa@m17n.org>
15315
15316 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15317 goto invalid_code.
15318 (decode_coding_iso_2022): Fix handling of invalid designation.
15319
15320 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15321 after calling code_conversion_save.
15322
153232008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15326
15327 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15328
15329 * fontset.c: Include "intervals.h".
15330 (fontset_face): Fix comparing of Lisp_Objects.
15331 (free_face_fontset, new_fontset_from_font_name): Fix
15332 Lisp_Object/int mixup.
15333
15334 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15335
15336 * coding.c: Add many prototypes for static functions.
15337 (get_translation_table): Allow max_lookup to be NULL.
15338 (decode_coding, Ffind_coding_systems_region_internal)
15339 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15340 get_translation_table with max_lookup NULL.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * coding.c (get_translation_table): Declare it as Lisp_Object.
15345 (LOOKUP_TRANSLATION_TABLE): New macro.
15346 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15347 instead of CHAR_TABLE_REF.
15348
153492008-02-01 Kenichi Handa <handa@m17n.org>
15350
15351 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15352 annotation data format.
15353 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15354 Change arguments FROM and TO to single argument NCHARS. Change caller.
15355 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15356 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15357 (decode_coding_ccl, decode_coding_charset): Pay attention to
15358 coding->charbuf_used.
15359 (get_translation): New function.
15360 (produce_chars): New arguments translation_table and last_block.
15361 Translate characters here. Return number of carryover chars.
15362 Change caller.
15363 (produce_composition): New argument pos. Change caller.
15364 Adjust for the change of annotation data format.
15365 (produce_charset, produce_annotation): Likewise.
15366 (decode_coding, encode_coding): Don't call translate_chars.
15367 (consume_chars): New arg translation_table. Change caller.
15368 (translate_chars): Delete.
15369 (syms_of_coding): Make translation-table's number of extra slots 2.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * search.c (simple_search): Fix setting this_pos_byte in backward
15374 search.
15375
15376 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15377 byte sequence.
15378 (detect_coding_ccl): Fix setting of the variable valids.
15379
153802008-02-01 Kenichi Handa <handa@m17n.org>
15381
15382 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15383
15384 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15385
15386 * editfns.c (Ftranslate_region_internal): Rename from
15387 Ftranslate_region. Accept a char-table in TABLE.
15388 (syms_of_editfns): Defsubr Stranslate_region_internal.
15389
15390 * xfaces.c (set_lface_from_font_name): If a font is specified for
15391 a frame, generate a fontset from the font.
15392 (build_scalable_font_name): If the scalable font is requested for
15393 a specific size, don't change that size.
15394 (try_font_list): Try a scalable font also in the case that a
15395 pattern string is specified.
15396
153972008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * xfaces.c (Fface_font): New optional arg CHARACTER.
15400
154012008-02-01 Kenichi Handa <handa@m17n.org>
15402
15403 * charset.h (CHARSET_OFFSET): New macro.
15404
154052008-02-01 Kenichi Handa <handa@m17n.org>
15406
15407 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15408
15409 * fontset.c (fontset_face): Handle the case that repertory is a
15410 char-table.
15411 (find_font_encoding): Return nil for unknown encoding.
15412 (Fset_fontset_font): Ignore a font of unknown encoding.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * keymap.c (describe_vector): Handle default value of a char table.
15417
15418 * fontset.c (fontset_face): Handle fallback fonts correctly.
15419 (Ffontset_info): Return infomation about fallback fonts.
15420
154212008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * fontset.c (FONTSET_DEFAULT): New macro.
15424 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15425 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15426 the case that it is nil.
15427 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15428 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15429
15430 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15431 subset or superset.
15432
154332008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 * emacs.c (main): Call init_charset after syms_of_XXX.
15436
15437 * charset.c (Vcharset_map_directory): Delete.
15438 (Vcharset_map_path): New variable.
15439 (load_charset_map_from_file): Use Vcharset_map_path instead.
15440 (init_charset): Initialize Vcharset_map_path.
15441 (syms_of_charset): Delete declaration of "charset-map-directory",
15442 add declaration of "charset-map-path".
15443
154442008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15447 ASCII only string.
15448
15449 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15450
15451 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15452 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15453
154542008-02-01 Kenichi Handa <handa@m17n.org>
15455
15456 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15457
15458 * coding.c (QCmnemonic, QCdefalut_char)
15459 (QCdecode_translation_table, QCencode_translation_table)
15460 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15461 (get_translation_table): Return a list of translation tables if
15462 necessary.
15463 (decode_coding): Call get_translation_table with ENCODEP 0.
15464 (char_encodable_p): If translation_table is non-nil, always call
15465 translate_char.
15466 (Fdefine_coding_system_internal): Accept list of translation
15467 tables as :encode-translation-table and :decode-translation-table.
15468 (Fcoding_system_put): New function.
15469 (syms_of_coding): Declare new symbols. Defsubr
15470 Scoding_system_put.
15471 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15472 typically JISX0212.
15473
15474 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15475 when the charset is superset type.
15476
15477 * character.c (translate_char): Accept list of translation tables.
15478
154792008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15482 (CODING_ATTR_TRANS_TBL): New macro.
15483
15484 * coding.c (get_translation_table): New function.
15485 (translate_chars): Fix the bug of skipping annotation data.
15486 (decode_coding, encode_coding): Utilize get_translation_table.
15487 (char_encodable_p, Funencodable_char_position): Translate char if
15488 necessary.
15489 (Ffind_coding_systems_region_internal)
15490 (Fcheck_coding_systems_region): Setup translation table for encode
15491 in a coding system attribute vector in advance.
15492 (Fdefine_coding_system_internal): Allow a symbol as translation
15493 table. For shift-jis type coding system, allow 4th charset.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15498
15499 * xdisp.c (get_next_display_element): Pass -1 as POS to
15500 FACE_FOR_CHAR if displaying a C-string.
15501
155022008-02-01 Kenichi Handa <handa@m17n.org>
15503
15504 * composite.c (get_composition_id): Handle xoff and yoff in a
15505 composition rule.
15506
15507 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15508 (struct composition): New member lbearing and rbearing.
15509
15510 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15511 (x_get_glyph_overhangs): Handle a composition glyph.
15512 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15513
15514 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15515 composition glyph.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * print.c: Include charset.h.
15520 (Vprint_charset_text_property): New variable.
15521 (Qdefault): Extern it.
15522 (PRINT_STRING_NON_CHARSET_FOUND)
15523 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15524 (print_check_string_result): New variable.
15525 (print_check_string_charset_prop): New function.
15526 (print_prune_charset_plist): New variable.
15527 (print_prune_string_charset): New function.
15528 (print_object): Call print_prune_string_charset if
15529 Vprint_charset_text_property is not t.
15530 (print_interval): Print nothing if interval->plist is nil.
15531 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15532 variable. Init and staticpro print_prune_charset_plist.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * fontset.c (new_fontset_from_font_name): Use the specified font
15537 for all characters in the new fontset.
15538
15539 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15540 OBJECT args.
15541
15542 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15543 OBJECT args for composition too.
15544
15545 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15546 OBJECT args.
15547
155482008-02-01 Kenichi Handa <handa@m17n.org>
15549
15550 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15551
15552 * fontset.c (reorder_font_vector): Adjust for the change of
15553 FONT_DEF format.
15554 (fontset_face): New arg id. Change caller.
15555 (face_for_char): New args pos and object.
15556 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15557 (fs_query_fontset): Check NAME by Fassoc too.
15558 (Fset_fontset_font): Allow non-XLFD font name.
15559 (Ffontset_info): Adjust for the change of FONT_DEF format.
15560
15561 * fontset.h (face_for_char): Adjust prototype.
15562
15563 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15564 (append_space, extend_face_to_end_of_line)
15565 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15566 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15567
15568 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15569 POS and OBJECT args.
15570
15571 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15572 POS and OBJECT args.
15573
155742008-02-01 Jason Rumney <jasonr@gnu.org>
15575
15576 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15577 of GlobalAlloc'ed memory.
15578
155792008-02-01 Kenichi Handa <handa@m17n.org>
15580
15581 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15582
15583 * charset.h (charset_table_used): Delete extern.
15584
15585 * charset.c (charset_table_used): Make it static.
15586 (map_charset_chars): Fix args to c_function with.
15587
15588 * chartab.c (map_sub_char_table_for_charset): Fix args to
15589 c_function with.
15590
15591 * coding.h (enum coding_result_code): Delete
15592 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15593
15594 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15595 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15596 (Vlast_code_conversion_error): New variables.
15597 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15598 (ONE_MORE_BYTE): Record error if any instead of signaling an
15599 error. If non-ASCII multibyte char is found, return the negative
15600 value of the code. All callers changed to check it.
15601 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15602 (record_conversion_result): New function. Change all codes setting
15603 coding->result to call this function.
15604 (detect_coding_utf_8, decode_coding_utf_8)
15605 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15606 Don't use the local variable incomplete.
15607 (emacs_mule_char): Change the second arg to `const'.
15608 (decode_coding): Fix of flushing out unprocessed data.
15609 (make_conversion_work_buffer): Fix making of a work buffer.
15610 (decode_coding_object): Return coding->dst_object.
15611
15612 * fontset.c (set_fontset_font): Fix args.
15613
15614 * lisp.h (CHARACTERBITS): Define as 22.
15615
15616 * process.c (send_process): Be sure to set coding->src_multibyte.
15617
15618 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * xdisp.c (handle_auto_composed_prop): Give limit to
15623 Fnext_single_char_property_change.
15624
156252008-02-01 Kenichi Handa <handa@m17n.org>
15626
15627 * composite.c (syms_of_composite): Don't make the composition hash
15628 table weak.
15629
15630 * fontset.c (Fset_fontset_font): Fix docstring.
15631
15632 * lisp.h (detect_coding_system): Adjust prototype.
15633
15634 * fileio.c (kill_workbuf_unwind): Delete this function.
15635 (Finsert_file_contents): Adjust the call of detect_coding_system.
15636 Get conversion_buffer by code_conversion_save. Use the macro
15637 CODING_MAY_REQUIRE_DECODING. After decoding, update
15638 coding_system.
15639
15640 * coding.h (make_conversion_work_buffer): Delete extern.
15641 (code_conversion_save): Extern it.
15642
15643 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15644 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15645 (decode_coding_utf_8): Don't do eol converion.
15646 (detect_coding_utf_16): Check coding->src_chars, not
15647 coding->src_bytes. Add heuristics for those that have no signature.
15648 (decode_coding_emacs_mule, decode_coding_iso_2022)
15649 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15650 Don't do eol converion.
15651 (adjust_coding_eol_type): Return a new coding system.
15652 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15653 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15654 each change.
15655 (decode_coding): Pay attention to undo_list. Do eol conversion for
15656 all types of coding-systems (if necessary).
15657 (Vcode_conversion_work_buf_list): Delete it.
15658 (Vcode_conversion_reused_workbuf): Rename from
15659 Vcode_conversion_reused_work_buf.
15660 (Vcode_conversion_workbuf_name): New variable.
15661 (reused_workbuf_in_use): New variable.
15662 (make_conversion_work_buffer): Delete the arg DEPTH.
15663 (code_conversion_restore): Change argument to cons.
15664 (code_conversion_save): Delete the argument BUFFER. Change callers.
15665 (detect_coding_system): New argument src_chars. Change callers.
15666 Fix for utf-16 detection.
15667 (init_coding_once): Don't use ISO_carriage_return.
15668 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15669 reused_workbuf_in_use.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * keymap.c (store_in_keymap): Pay attention to the case that idx
15674 is a cons specifying a character range.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15679 HANDLED_RECOMPUTE_PROPS.
15680
15681 * coding.c (Fdefine_coding_system_internal): Fix checking of
15682 ascii compatibility.
15683
156842008-02-01 Kenichi Handa <handa@m17n.org>
15685
15686 * charset.c (find_charsets_in_text): Delete unused locale variable.
15687 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15688
15689 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15690 Resync charset_list to Vemacs_mule_charset_list.
15691
15692 * keymap.c (store_in_keymap): Pay attention to the case that idx
15693 is a cons specifying a character range.
15694
156952008-02-01 Kenichi Handa <handa@m17n.org>
15696
15697 * composite.c (update_compositions): Bind inhibit-read-only, etc
15698 to t before calling remove-list-of-text-properties.
15699
15700 * print.c (print_object): Always print ASCII chars as is.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15705
15706 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15707 is a char table.
15708
157092008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15712
157132008-02-01 Kenichi Handa <handa@m17n.org>
15714
15715 * xfaces.c (set_lface_from_font_name): Fix for the case that
15716 FONTNAME is not fontset name.
15717
157182008-02-01 Kenichi Handa <handa@m17n.org>
15719
15720 * fns.c (base64_encode_1): Fix previous change.
15721
157222008-02-01 Kenichi Handa <handa@m17n.org>
15723
15724 * fontset.c (set_fontset_font): New function.
15725 (Fset_fontset_font): If a font is specified for a charset, use
15726 map_charset_chars to store the font spec in a fontset.
15727
157282008-02-01 Kenichi Handa <handa@m17n.org>
15729
15730 * fontset.c (fontset_face): Create a fallback fontset on demand.
15731 (make_fontset): Don't create a fallback fontset here.
15732 (free_face_fontset): Free a fallback fontset (if any) too.
15733 (n_auto_fontsets): Delete this variable.
15734 (auto_fontset_alist): New variable.
15735 (new_fontset_from_font_name): Check auto_fontset_alist.
15736 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15737 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15738 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15739 Defsubr Sfontset_list_all.
15740
157412008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * editfns.c (Fgoto_char): Fix docstring.
15752
157532008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 * insdel.c (insert_from_gap): Adjust intervals correctly.
15756
157572008-02-01 Jason Rumney <jasonr@gnu.org>
15758
15759 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15760 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15761 (w32_initialize): Try to load it.
15762 (x_get_font_repertory): Use it if available.
15763 (w32_encode_char): Add shortcut for unicode output.
15764
15765 * w32fns.c (w32_load_system_font): Default charset to -1.
15766 (x_to_w32_charset): Match all fonts for unicode.
15767 (w32_to_x_charset): New parameter matching. Don't return partial
15768 or wildcard charsets.
15769 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15770 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15771 (w32_to_x_font): Match charset to real charset.
15772 (enum_font_cb2): Always list unicode versions.
15773
15774 * makefile.w32-in (temacs): Increase EMHEAP.
15775
157762008-02-01 Jason Rumney <jasonr@gnu.org>
15777
15778 * w32term.c (w32_encode_char): New charset parameter.
15779 font_info.encoding becomes encoding_type.
15780 (x_get_font_repertory): New function. Warning: stub only!
15781 (x_new_font): Return quickly if font already set.
15782 (x_new_fontset): fontsetname parameter is Lisp_Object.
15783 Use new fs_query_fontset. Try new_fontset_from_font_name.
15784 Use fontset_name for return value.
15785
15786 * w32term.h: Declare x_get_font_repertory.
15787
15788 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15789 place of find_charset_in_text. Use encode_coding_object in place
15790 of encode_coding.
15791 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15792 decode_coding.
15793
15794 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15795 of x_new_fontset.
15796 (w32_load_system_font): Initialize charset as unicode.
15797 font_info.encoding becomes encoding_type.
15798 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15799 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15800 (syms_of_w32fns): Set get_font_repertory_func.
15801
15802 * w32console.c: Include character.h. Use terminal_encode_buffer
15803 from term.c.
15804 (write_glyphs): Use new version of encode_terminal_code. Use
15805 encode_coding_object in place of encode_coding.
15806
15807 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15808 encoding becomes encoding_type.
15809
15810 * term.c (terminal_encode_buffer): Make externally visible.
15811
15812 * makefile.w32-in: Add character.h dependancies.
15813 (character.o, chartab.o): New targets.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15818 CODING_ID_EOL_TYPE.
15819
158202008-02-01 Andreas Schwab <schwab@suse.de>
15821
15822 * coding.c (produce_chars): Revert last change.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * charset.h (charset_unicode): Extern it.
15827
15828 * charset.c (string_xstring_p): Check by (C >= 0x100).
15829 (find_charsets_in_text): Change format of the arc CHARSETS. New
15830 arg MULTIBYTE.
15831 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15832 change of find_charsets_in_text.
15833 (Fsplit_char): Fix doc. Never return unknown.
15834
15835 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15836
15837 * coding.c (Fdefine_coding_system_alias): Update
15838 Vcoding_system_list.
15839
15840 * fontset.c (load_font_get_repertory): Pay attention to the case
15841 that ENCODING of a font is specified by a char-table.
15842
15843 * xterm.c (x_get_font_repertory): Handle the case that the
15844 encoding of font is other than Unicode.
15845
158462008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15849 if a character is encodable by the terminal coding system. If
15850 not, produces proper number of `?'s. Update
15851 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15852 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15853
158542008-02-01 Kenichi Handa <handa@m17n.org>
15855
15856 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15857 variables.
15858 (encode_terminal_code): Change argument. Encode multiple
15859 characters at once. Store the result of encoding in
15860 terminal_encode_buffer.
15861 (write_glyphs, insert_glyphs): Adjust for the change of
15862 encode_terminal_code.
15863 (term_init): Initialize terminal_encode_buffer and
15864 terminal_encode_buf_size.
15865
15866 * coding.c (consume_chars): If coding->src_object is nil, don't
15867 check annotation.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * character.c (char_string): Use ASCII_CHAR_P instead of
15872 SINGLE_BYTE_CHAR_P.
15873
158742008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * xdisp.c (handle_auto_composed_prop): Check if the last
15877 characters of auto-composed region is newly composed with the
15878 following characters.
15879 (handle_composition_prop): Fix checking of point being inside
15880 composition.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * fns.c (concat): Don't change multibyteness of the result by
15885 concatenating an 8-bit character.
15886
15887 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15888 multibyteness of the result when newelt is an 8-bit character.
15889
158902008-02-01 Dave Love <fx@gnu.org>
15891
15892 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15893 EMACS_INT.
15894
15895 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15896
15897 * xfaces.c (face_numeric_value): Declare dim size_t.
15898 (Finternal_lisp_face_equal_p): Remove unused f.
15899
15900 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15901 (MATRIX_ROW): Remove unused vars.
15902 (draw_glyphs, x_insert_glyphs, fast_find_position)
15903 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15904 byte/char counts.
15905
15906 * regex.c (regex_compile): Remove unused var.
15907
15908 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15909
15910 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15911 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15912
15913 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15914
15915 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15916
15917 * fileio.c (Fwrite_region): Remove unused var.
15918
15919 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15920 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15921
15922 * composite.c (Fremove_list_of_text_properties): Declare.
15923
15924 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15925 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15926 (coding_inherit_eol_type): Remove unused attrs.
15927 (detect_coding): Cast arg of detect_eol.
15928
15929 * charset.c (syms_of_charset): Remove unused var p.
15930 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15931 byte/char counts.
15932
15933 * casetab.c (set_case_table): Remove unused var.
15934
15935 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15936 unused vars.
15937
159382008-02-01 Dave Love <fx@gnu.org>
15939
15940 * xterm.c (x_bitmap_mask): Declare.
15941
159422008-02-01 Dave Love <fx@gnu.org>
15943
15944 * xterm.c (x_term_init): Fix type error.
15945
15946 * lisp.h: Add Funibyte_char_to_multibyte.
15947
15948 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15949 (Fset_coding_system_priority): Doc fix.
15950
15951 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15952
15953 * indent.c (check_composition): Make start and end EMACS_INT.
15954
15955 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15956
15957 * xdisp.c (handle_composition_prop, check_point_in_composition):
15958 Make buffer positions EMACS_INT.
15959
15960 * composite.c (find_composition, run_composition_function)
15961 (update_compositions, Ffind_composition_internal): Make buffer
15962 positions EMACS_INT.
15963
15964 * composite.h (find_composition, update_compositions): Make
15965 position args EMACS_INT.
15966
15967 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15968
15969 * intervals.c (get_property_and_range):
15970 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15971
15972 * unexalpha.c: Don't include varargs.h.
15973
159742008-02-01 Dave Love <fx@gnu.org>
15975
15976 * coding.h (ENCODE_UTF_8): New.
15977
15978 * Makefile.in (gtkutil.o): Depend on coding.h.
15979
15980 * coding.c (Fset_coding_system_priority): Doc fix.
15981
159822008-02-01 Kenichi Handa <handa@m17n.org>
15983
15984 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15985 the case of auto saving.
15986
159872008-02-01 Andreas Schwab <schwab@suse.de>
15988
15989 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15990 `range' from GC.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * fileio.c (choose_write_coding_system): Return a decided coding system.
15999 (Fwrite_region): Set Vlast_coding_system_used to the return value
16000 of choose_write_coding_system.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * charset.c (Fset_charset_priority): Pay attention to duplicated
16005 arguments.
16006
16007 * coding.c (QCcategory): New variable.
16008 (syms_of_coding): Defsym it. Set all elements of
16009 Vcoding_category_table and their symbol values.
16010 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16011 coding-category-XXX, and coding-category-list.
16012 (Fdefine_coding_system_internal): Add category in the plist.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * callproc.c (Fcall_process): Handle carryover correctly.
16017
16018 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16019 (raw_text_coding_system): Check NILP (coding_system).
16020 (coding_inherit_eol_type): Check NILP (coding_system) and
16021 NILP (parent).
16022 (consume_chars): Fix for the case of raw-text.
16023
16024 * process.c (read_process_output): Handle carryover correctly.
16025
160262008-02-01 Dave Love <fx@gnu.org>
16027
16028 * regex.c (re_search_2): Fix last change.
16029
160302008-02-01 Kenichi Handa <handa@m17n.org>
16031
16032 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16033 target_multibyte. Even in a unibyte case, return a converted
16034 multibyte char.
16035 (GET_CHAR_AFTER): New macro.
16036 (PATFETCH): Translate via multibyte char.
16037 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16038 (SETUP_MULTIBYTE_RANGE): New macro.
16039 (regex_compile): Setup compiled code so that its multibyteness
16040 matches that of a target. Fix the handling of "[X-YZ]" using
16041 SETUP_MULTIBYTE_RANGE.
16042 (analyse_first) <charset>: For filling fastmap for all multibyte
16043 characters, don't check by BASE_LEADING_CODE_P.
16044 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16045 the same as RE_MULTIBYTE_P (bufp) now.
16046 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16047 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16048 (TRANSLATE_VIA_MULTIBYTE): New macro.
16049 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16050 It is the same as RE_MULTIBYTE_P (bufp) now.
16051 <exactn>: Translate via multibyte.
16052 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16053 translate it.
16054 <charset, charset_not>: Fetch a character by
16055 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16056 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16057 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16058 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16059 by GET_CHAR_AFTER.
16060 (bcmp_translate): Likewise.
16061
16062 * search.c (compile_pattern): Check the member target_multibyte,
16063 not the member multibyte of buf.
16064
16065 * lread.c (read1): While reading a string, set force_singlebyte
16066 and force_multibyte correctly.
16067
16068 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16069 up of unibyte_to_multibyte_table.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * coding.c (setup_coding_system): If coding has
16074 post-read-conversion or pre-write-conversion, set
16075 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16076 respectively.
16077 (decode_coding_gap): Run post-read-conversion if any.
16078
16079 * fileio.c (Finsert_file_contents): Even if we read into a
16080 unibyte buffer, check if we must decode the result or not.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * coding.c (make_conversion_work_buffer): Change the work buffer
16085 name to the same one as that of Emacs 21.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * coding.h (make_conversion_work_buffer): Adjust prototype.
16090 (code_conversion_restore): Don't extern it.
16091
16092 * coding.c (detected_mask): Delete unused variable.
16093 (decode_coding_iso_2022): Pay attention to the byte sequence of
16094 CTEXT extended segment, and retain those bytes as is.
16095 (decode_coding_ccl): Delete unused variable `valids'.
16096 (setup_coding_system): Delete unused variable `category'.
16097 (consume_chars): Delete unused variable `category'. Make it work
16098 for non-multibyte case.
16099 (make_conversion_work_buffer): Change argument.
16100 (saved_coding): Delete unused variable.
16101 (code_conversion_restore): Don't check saved_coding->destination.
16102 (code_conversion_save): New function.
16103 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16104 instead of record_unwind_protect.
16105 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16106 (detect_coding_system): Delete unused variable `mask'.
16107 (Fdefine_coding_system_internal): Delete unused variable id.
16108
16109 * fileio.c (kill_workbuf_unwind): New function.
16110 (Finsert_file_contents): On replacing, call
16111 make_conversion_work_buffer with correct args, and call
16112 record_unwind_protect with the first arg kill_workbuf_unwind.
16113
16114 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16115
161162008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16119 (fontset_add): Fix for the case that TO is less than TO1.
16120 (Ffontset_info): Don't use fallback fontset on checking the
16121 default fontset.
16122 (dump_fontset): New function for debugging.
16123
16124 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16125 coding_type is Qcharset.
16126
161272008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16130 (map_char_table): Don't inherit the value from the parent on
16131 initializing VAL. Adjust for the above change.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * coding.c (Qsignature, Qendian): Delete these variables.
16136 (syms_of_coding): Don't initialize them.
16137 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16138 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16139 detect_info->found.
16140 (decode_coding_utf_16): Don't detect BOM here.
16141 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16142 is NOT utf_16_without_bom.
16143 (setup_coding_system): For a coding system of type utf-16, check
16144 if the attribute :endian is Qbig or not (not nil or not), and set
16145 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16146 (detect_coding): If coding type is utf-16 and BOM detection is
16147 required, detect it.
16148 (Fdefine_coding_system_internal): For a coding system of type
16149 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16150
161512008-02-01 Kenichi Handa <handa@m17n.org>
16152
16153 * coding.c (coding_set_source): Fix for the case that the current
16154 buffer is different from coding->src_object.
16155 (decode_coding_object): Don't use the conversion work buffer if
16156 DST_OBJECT is a buffer.
16157
161582008-02-01 Dave Love <fx@gnu.org>
16159
16160 * lread.c (read_emacs_mule_char) [len==2]: Index
16161 emacs_mule_charset correctly.
16162
161632008-02-01 Dave Love <fx@gnu.org>
16164
16165 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16166 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16167 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16168 treated specially.)
16169 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16170 (detected_mask): Remove Big5 bits.
16171
161722008-02-01 Kenichi Handa <handa@m17n.org>
16173
16174 The following changes are to make the font rescaling facility
16175 compatible with Emacs 21.
16176
16177 * xfaces.c (Vface_font_rescale_alist): Rename from
16178 Vface_resizing_fonts.
16179 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16180 (font_rescale_ratio): Rename from font_resizing_ratio.
16181 (split_font_name): Set font->rescale_ratio.
16182 (better_font_p): Pay attention to font->rescale_ratio.
16183 (build_scalable_font_name): Likewise. Change RESX, and RESY
16184 fields.
16185 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16186
161872008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16190 (Qutf_16_le): Remove these variables.
16191 (syms_of_coding): Don't DEFSYM them.
16192 (decode_coding_utf_16): Fix handling of BOM.
16193 (encode_coding_utf_16): Fix handling of BOM.
16194
161952008-02-01 Kenichi Handa <handa@m17n.org>
16196
16197 * fileio.c (Finsert_file_contents): On replacing, before decoding
16198 the file into the work buffer, set point of the work buffer to the end.
16199
162002008-02-01 Dave Love <fx@gnu.org>
16201
16202 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16203
162042008-02-01 Dave Love <fx@gnu.org>
16205
16206 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16207 and fix C types.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * xdisp.c (SKIP_GLYPHS): New macro.
16212 (set_cursor_from_row): Pay attention to string display properties.
16213
16214 * category.c (copy_category_entry): Fix for the case that RANGE
16215 is an integer.
16216
16217 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16218
16219 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16220
162212008-02-01 Kenichi Handa <handa@m17n.org>
16222
16223 * charset.c (Fcharset_id_internal): New function.
16224 (syms_of_charset): Defsubr it.
16225
16226 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16227 with the last arg charset_list acquired from coding.
16228 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16229 the attribute coding_attr_ccl_valids.
16230
16231 * coding.h (enum define_coding_ccl_arg_index): Set the first
16232 member coding_arg_ccl_decoder to coding_arg_max.
16233
16234 * ccl.h (ccl_driver): Adjust prototype.
16235
16236 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16237 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16238 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16239 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16240 last arg Qnil.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16245 call encode_char.
16246
16247 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16248
162492008-02-01 Dave Love <fx@gnu.org>
16250
16251 * composite.c (syms_of_composite): Make composition_hash_table weak.
16252
162532008-02-01 Kenichi Handa <handa@m17n.org>
16254
16255 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16256 (font_name_registry): Don't extern them.
16257 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16258
16259 * fontset.h (Qfontset): Don't extern it.
16260 (new_fontset_from_font_name): Extern it.
16261
16262 * fontset.c: Give 8 extra slots to fontset objects.
16263 (Qfontset_info): New variable.
16264 (syms_of_fontset): Defsym it.
16265 (FONTSET_FALLBACK): New macro.
16266 (fontset_face): Try also the default fontset.
16267 (make_fontset): Realize a fallback fontset from the default fontset.
16268 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16269 using split_font_name_into_vector and build_font_name_from_vector.
16270 (Fset_fontset_font): Access the elements of font_spec by enum
16271 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16272 name by using split_font_name_into_vector.
16273 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16274 generate a proper font name from the fontset name. Update
16275 Vfontset_alias_alist.
16276 (n_auto_fontsets): New variable.
16277 (new_fontset_from_font_name): New function.
16278 (Ffont_info): Store the information about fonts generated from the
16279 default fontset in the first extra slot of the returned char-table.
16280
16281 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16282 (font_name_registry): Delete function.
16283 (split_font_name_into_vector): New function.
16284 (build_font_name_from_vector): New function.
16285 (font_list): The argument REGISTRY is now a list of registry names.
16286 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16287 specifies an explicit font name, return the name as is. Make a
16288 list of registy names.
16289
16290 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16291 of x_new_fontset.
16292 (Fx_create_frame): Don't call x_new_fontset here. Just use
16293 x_list_fonts to check the existence of fonts.
16294
16295 * xterm.h (x_new_fontset): Adjust prototype.
16296
16297 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16298 string. Use new_fontset_from_font_name to create a fontset from a
16299 font name.
16300
163012008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * syntax.c (Vfind_word_boundary_function_table): New name for
16304 Vnext_word_boundary_function_table.
16305 (find-word-boundary-function-table): New name for
16306 next-word-boundary-function-table.
16307
163082008-02-01 Dave Love <fx@gnu.org>
16309
16310 * Makefile.in: Fix some dependencies.
16311
16312 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16313 set it to nil before returning.
16314
16315 * composite.c (update_compositions): Fix type error.
16316
16317 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * xterm.c (x_new_font): Optimize for the case that the font is
16322 already set for the frame.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * chartab.c (char_table_ascii): Check if the char table contents
16327 is sub-char-table or not.
16328 (char_table_set, char_table_set_range): Fix argument to
16329 char_table_ascii.
16330
16331 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16332 (detect_coding_utf_8, detect_coding_utf_16)
16333 (detect_coding_emacs_mule, detect_coding_iso_2022)
16334 (detect_coding_sjis, detect_coding_big5)
16335 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16336 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16337 sequence is valid in this coding system. Change callers.
16338 (MAX_ANNOTATION_LENGTH): New macro.
16339 (ADD_ANNOTATION_DATA): New macro.
16340 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16341 ADD_ANNOTATION_DATA. Change the format of annotation data.
16342 (ADD_CHARSET_DATA): New macro.
16343 (emacs_mule_char): New argument ID. Change callers.
16344 (decode_coding_emacs_mule, decode_coding_iso_2022)
16345 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16346 Produce charset annotation data in coding->charbuf.
16347 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16348 to charset annotation data in coding->charbuf.
16349 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16350 coding->common_flags if the coding system is iso-2022 based and
16351 uses designation.
16352 (produce_composition): Adjust for the new annotation data format.
16353 (produce_charset): New function.
16354 (produce_annotation): Handle charset annotation.
16355 (handle_composition_annotation, handle_charset_annotation): New
16356 functions.
16357 (consume_chars): Handle charset annotation. Utilize the above two
16358 functions.
16359 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16360 buffer, get the deleted text as a string and set
16361 coding->src_object to that string.
16362 (detect_coding, detect_coding_system): Use the new struct
16363 coding_detection_info.
16364
16365 * coding.h (struct coding_detection_info): New structure.
16366 (struct coding_system): Adjust prototype of the member `detector'.
16367 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16372
163732008-02-01 Dave Love <fx@gnu.org>
16374
16375 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16376 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16377 to new local and nullify apropos_accumulate before returning.
16378 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16383 correctly.
e3eea1fc 16384
aac0c6e3
MR
163852008-02-01 Dave Love <fx@gnu.org>
16386
16387 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 The following changes are to make character composition happen
16392 automatically on displaying.
16393
16394 * Makefile.in (lisp, shortlisp): Add composite.elc.
16395
16396 * composite.h (Qauto_composed, Vauto_composition_function)
16397 (Qauto_composition_function): Extern them.
16398
16399 * composite.c (Vcomposition_function_table)
16400 (Qcomposition_function_table): Delete variables.
16401 (Qauto_composed, Vauto_composition_function)
16402 (Qauto_composition_function): New variables.
16403 (run_composition_function): Don't call
16404 compose-chars-after-function.
16405 (update_compositions): Clear `auto-composed' text property.
16406 (compose_chars_in_text): Delete this function.
16407 (syms_of_composite): Staticpro Qauto_composed and
16408 Qauto_composition_function. Declare Vauto_composition_function as
16409 a Lisp variable.
16410
16411 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16412
16413 * xdisp.c (it_props): Add an entry for Qauto_composed.
16414 (handle_auto_composed_prop): New function.
16415
16416 * xselect.c (selection_data_to_lisp_data): Don't call
16417 compose_chars_in_text.
16418
164192008-02-01 Dave Love <fx@gnu.org>
16420
16421 * keyboard.c (read_char): Modify checking around use of
16422 Vkeyboard_translate_table.
16423
16424 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16425 and fix C types.
16426
164272008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16430 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16431 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16432 the case that the last byte is '\r' correctly.
16433 (decode_coding): Flush out the unprocessed data correctly.
16434 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16435
164362008-02-01 Dave Love <fx@gnu.org>
16437
16438 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16439 Add XK_ISO... case.
16440 (xaw_scroll_callback): Revert last change.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16445
164462008-02-01 Kenichi Handa <handa@m17n.org>
16447
16448 * xfaces.c (Vface_resizing_fonts): New variable.
16449 (struct font_name): New member `resizing_ratio'.
16450 (font_resizing_ratio): New function.
16451 (split_font_name): Set font->resizing_ratio.
16452 (better_font_p): Pay attention to font->resizing_ratio.
16453 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16454 RESX, and RESY fields.
16455 (try_alternative_families): Try scalable fonts if
16456 Vscalable_fonts_allowed is not Qt.
16457 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16458
164592008-02-01 Dave Love <fx@gnu.org>
16460
16461 * xterm.c (xaw_scroll_callback): Cast correctly.
16462
164632008-02-01 Dave Love <fx@gnu.org>
16464
16465 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16466 (lispy_kana_keys): Comment out.
16467 (make_lispy_event) [XK_kana_A]: Comment out.
16468
16469 * xterm.c (xaw_scroll_callback): Cast call_data.
16470 (XTread_socket): Deal with ASCII keysyms.
16471 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16472
164732008-02-01 Dave Love <fx@gnu.org>
16474
16475 * xterm.c (Vx_keysym_table): New.
16476 (syms_of_xterm): Initialize it.
16477 (XTread_socket): Use it.
16478 From head: Eliminate incorrect optimization that tried to avoid
16479 decoding the output of X*LookupString.
16480 (x_get_font_repertory): Delete charset declaration.
16481
164822008-02-01 Kenichi Handa <handa@m17n.org>
16483
16484 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16485 return 0.
16486 (Fdefine_coding_system_internal): Setup
16487 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16488
164892008-02-01 Dave Love <fx@gnu.org>
16490
16491 * coding.c (Fcheck_coding_system): Doc fix.
16492
16493 * editfns.c (Finsert_byte): Return a proper value.
16494
164952008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * coding.c (decode_coding): Fix args to translate_chars. Pay
16498 attention to Vstandard_translation_table_for_decode.
16499 (encode_coding): Fix args to translate_chars. Pay attention to
16500 Vstandard_translation_table_for_encode.
16501
16502 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16503 SINGLE_BYTE_CHAR_P.
16504
16505 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16506 not by SINGLE_BYTE_CHAR_P.
16507
16508 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16509 SINGLE_BYTE_CHAR_P.
16510
16511 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16512 SINGLE_BYTE_CHAR_P.
16513
16514 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16515 by SINGLE_BYTE_CHAR_P.
16516
16517 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16518 SINGLE_BYTE_CHAR_P.
16519
165202008-02-01 Dave Love <fx@gnu.org>
16521
16522 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16523
165242008-02-01 Dave Love <fx@gnu.org>
16525
16526 * fns.c (Flanginfo): Fix typo.
16527
16528 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16529
165302008-02-01 Kenichi Handa <handa@m17n.org>
16531
16532 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16533 (detect_coding_emacs_mule, detect_coding_iso_2022)
16534 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16535 incomplete byte sequence. Don't update *mask when correctly detected.
16536 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16537 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16538 (detect_coding, detect_coding_system): Adjust for the changes above.
16539
165402008-02-01 Kenichi Handa <handa@m17n.org>
16541
16542 * character.c (char_string): Rename from
16543 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16544 (string_char): Rename from string_char.
16545
16546 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16547 if C is greater than MAX_3_BYTE_CHAR.
16548 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16549 string_char instead of string_char_with_unification.
16550
165512008-02-01 Dave Love <fx@gnu.org>
16552
16553 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16554
165552008-02-01 Kenichi Handa <handa@m17n.org>
16556
16557 * keymap.c (push_key_description): Pay attention to force_multibyte.
16558
16559 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16560
165612008-02-01 Dave Love <fx@gnu.org>
16562
16563 * charset.c (define_charset_internal): Rename `supprementary'.
16564
16565 * Makefile.in (lisp, shortlisp): Remove latin-N.
16566
165672008-02-01 Dave Love <fx@gnu.org>
16568
16569 * xfns.c (x_window, x_window): Use use_xim.
16570
16571 * xterm.c (use_xim): Initialize.
16572 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16573 (x_term_init): Maybe set use_xim.
16574
16575 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * search.c (search_buffer): Fix case-fold-search of multibyte
16580 characters.
16581 (boyer_moore): Rename the last argument to char_high_bits.
16582
165832008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * xdisp.c (display_string): Fix for the case of zero width glyph.
16586
16587 * xfns.c (x_set_font): Change the error message of the case that
16588 x_new_fontset returns Qt.
16589
16590 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16591 (Finternal_set_lisp_face_attribute): Use signal_error for the
16592 error of invalid fontset.
16593
16594 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16595 fontset, return Qt.
16596
165972008-02-01 Dave Love <fx@gnu.org>
16598
16599 * unexelf.c (unexec): Make .got handling not SGI-specific.
16600
16601 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16602
16603 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16604
16605 * keyboard.c (read_key_sequence): Fix type error.
16606
16607 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16608 type error.
16609
16610 * fontset.c (fontset_add): Return Lisp_Object.
16611
166122008-02-01 Dave Love <fx@gnu.org>
16613
16614 * charset.h (charset_ordered_list_tick): Declare extern.
16615
166162008-02-01 Kenichi Handa <handa@m17n.org>
16617
16618 The following changes (and some of 2008-02-01 changes of mine) are
16619 for handling syntax, category, and case conversion for unibyte
16620 characters by converting them to multibyte on the fly. With these
16621 changes, we don't have to setup syntax and case tables for unibyte
16622 characters in each language environment.
16623
16624 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16625 multibyte if necessary.
16626
16627 * bytecode.c (Fbyte_code): Likewise.
16628
16629 * character.h (LEADING_CODE_LATIN_1_MIN)
16630 (LEADING_CODE_LATIN_1_MAX): New macros.
16631 (unibyte_to_multibyte_table): Extern it.
16632 (unibyte_char_to_multibyte): New macro.
16633 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16634 (CHAR_LEADING_CODE): New macro.
16635 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16636
16637 * character.c (unibyte_to_multibyte_table): New variable.
16638 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16639 (multibyte_char_to_unibyte): If C is an eight-bit character,
16640 convert it to the corresponding byte value.
16641
16642 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16643 not 1, signals an error. Update the elements of
16644 unibyte_to_multibyte_table.
16645 (init_charset_once): Initialize unibyte_to_multibyte_table.
16646 (syms_of_charset): Define the charset `iso-8859-1'.
16647
16648 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16649 as is without converting it to unibyte. In a unibyte buffer,
16650 convert C to multibyte before checking the syntax.
16651
16652 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16653
16654 * minibuf.c (Fminibuffer_complete_word): Use the macro
16655 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16656
16657 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16658
16659 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16660 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16661 that is zero, convert an eight-bit char to multibyte.
16662 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16663 non-emacs case.
16664 (PATFETCH): Convert an eight-bit char to multibyte.
16665 (HANDLE_UNIBYTE_RANGE): New macro.
16666 (regex_compile): Setup the compiled pattern for multibyte chars
16667 even if the given regex string is unibyte. Use PATFETCH_RAW
16668 instead of PATFETCH in many places. To handle `charset'
16669 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16670 only for ASCII chars.
16671 (analyse_first) <exactn>: Simplify because the compiled pattern
16672 is multibyte.
16673 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16674 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16675 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16676 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16677 multibyte always 1.
16678 (re_search_2): In emacs, set the locale variable multibyte to 1,
16679 otherwise to 0. New local variable target_multibyte. Check it
16680 to decide the multibyteness of STR1 and STR2. If
16681 target_multibyte is zero, convert unibyte chars to multibyte
16682 before translating and checking fastmap.
16683 (TARGET_CHAR_AND_LENGTH): New macro.
16684 (re_match_2_internal): In emacs, set the locale variable multibyte
16685 to 1, otherwise to 0. New local variable target_multibyte. Check
16686 it to decide the multibyteness of STR1 and STR2. Use
16687 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16688 <charset, charset_not>: If multibyte is nonzero, check fastmap
16689 only for ASCII chars. Call bcmp_translate with
16690 target_multibyte, not with multibyte.
16691 <begline>: Declare the local variable C as `unsigned'.
16692 (bcmp_translate): Change the last arg name to target_multibyte.
16693
16694 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16695 the regexp pattern and the matching target. Set cp->buf.multibyte
16696 to the multibyteness of the regexp pattern. Set
16697 cp->but.target_multibyte to the multibyteness of the matching target.
16698 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16699 FETCH_STRING_CHAR_ADVANCE.
16700 (Freplace_match): Convert unibyte chars to multibyte.
16701
16702 * syntax.c (char_quoted, back_comment, scan_words)
16703 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16704 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16705 unibyte chars to multibyte.
16706 (skip_chars): Delete the arg syntaxp, and move the code for
16707 handling syntaxes to skip_syntaxes. Change callers.
16708 Fix the case that the multibyteness of STRING and the current
16709 buffer doesn't match.
16710 (skip_syntaxes): New function.
16711 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16712 SINGLE_BYTE_CHAR_P.
16713
167142008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * xfaces.c (QCfontset): New variable.
16717 (LFACE_FONTSET): New macro.
16718 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16719 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16720 (Finternal_set_lisp_face_attribute)
16721 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16722 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16723 check also LFACE_FONTSET_INDEX.
16724 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16725 attrs[LFACE_FONT_INDEX].
16726 (syms_of_xfaces): Intern and staticpro QCfontset.
16727
16728 * dispextern.h (enum lface_attribute_index): New member
16729 LFACE_FONTSET_INDEX.
16730
16731 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * coding.c (coding_set_destination): Fix coding->destination for
16736 the case converting a region.
16737 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16738 (encode_coding_object): Fix coding->dst_pos and
16739 coding->dst_pos_byte for the case converting a region.
16740
16741 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16742
16743 * character.h (BYTE8_STRING): New macro.
16744
16745 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16750 characters by octal form.
16751
16752 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16753
16754 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16755 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16756 _fetch_multibyte_char_len.
16757 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16758
16759 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16760
16761 * casefiddle.c (casify_object): Simplify. Handle the case that
16762 the case conversion change the byte length.
16763 (casify_region): Likewise.
16764
16765 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16766
16767 * character.c (_fetch_multibyte_char_len): Delete this variable.
16768 (syms_of_character): Setup Vprintable_chars.
16769
16770 * editfns.c (Fchar_equal): Fix for the unibyte case.
16771 (Finsert_byte): New function.
16772 (syms_of_editfns): Defsubr it.
16773
16774 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16775 of direct code 0x3ffff.
16776
16777 * search.c (Freplace_match): Fix for the unibyte case.
16778
167792008-02-01 Kenichi Handa <handa@m17n.org>
16780
16781 * lread.c (safe_to_load_p): Fix the logic.
16782
16783 * syntax.c (scan_words): Don't treat characters belonging to
16784 different scripts as constituting a word.
16785
16786 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16787
16788 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16789
16790 * emacs.c (main): In the case of --unibyte, instead of aborting on
16791 finding non-empty buffer, make it unibyte.
16792
167932008-02-01 Kenichi Handa <handa@m17n.org>
16794
16795 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16796 to create a fontset.
16797
167982008-02-01 Dave Love <fx@gnu.org>
16799
16800 * character.c (Funibyte_char_to_multibyte): Doc fix.
16801
16802 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * fontset.c (fontset_add): Make the type `int'.
16807 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16808
16809 * character.c (unibyte_char_to_multibyte)
16810 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16811 charset_unibyte, not charset_primary.
16812
16813 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16814
16815 * charset.c (charset_unibyte): Rename from charset_primary.
16816 (Funibyte_charset): Rename from Fprimary_charset.
16817 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16818 (syms_of_charset): Adjust for the above changes.
16819
16820 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16821 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16822 it->multibyte_p is zero.
16823
16824 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16825 Delete extern.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * coding.c (Fdefine_coding_system_internal): Fix category setting
16830 for a coding system of type iso-2022.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16835
168362008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * syntax.c (Vnext_word_boundary_function_table): New variable.
16839 (next-word-boundary-function-table): Declare it as a Lisp variable
16840 in syms_of_syntax.
16841 (scan_words): Call functions in Vnext_word_boundary_function_table
16842 if any.
16843
16844 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16845
16846 * fontset.c (fs_load_font): If fontp->charset is not negative,
16847 return fontp without setting its members.
16848
168492008-02-01 Dave Love <fx@gnu.org>
16850
16851 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16852
16853 * m/sparc.h (HAVE_ALLOCA): Delete.
16854
16855 * s/irix6-5.h: Don't include strings.h.
16856 (bcopy, bzero, bcmp): Don't undef.
16857
16858 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16859
16860 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16861 (TIOCSIGSEND): Don't test IRIX6.
16862 (bcopy, bzero, bcmp): Define conditionally.
16863
168642008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * buffer.c (Qas, Qmake, Qto): New variables.
16867 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16868 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16869
16870 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16871 we are inserting a process output into a multibyte buffer.
16872
16873 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16874 multibyte_char_to_unibyte.
16875
16876 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16877 by the primary charset, make it eight-bit char.
16878 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16879
16880 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16881 (charset_8_bit__control, charset_8_bit_graphic)
16882 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16883 (define_charset_internal): New function.
16884 (syms_of_charset): Call define_charset_internal for pre-defined
16885 charsets.
16886
16887 * charset.h (charset_8_bit): Extern it.
16888
16889 * coding.c (make_conversion_work_buffer): Adjust for the change
16890 of Fset_buffer_multibyte.
16891 (encode_coding_raw_text): Increment p0 in the loop.
16892
16893 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16894
16895 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16896 for the change of Fset_buffer_multibyte.
16897
16898 * fns.c (Fstring_to_multibyte): New function.
16899 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16900
169012008-02-01 Dave Love <fx@gnu.org>
16902
16903 * xfns.c (x_put_x_image): Declare args.
16904
16905 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16906 (try_font_list): Declare an arg.
16907
16908 * xdisp.c (message2_nolog, set_message): Declare an arg.
16909
16910 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16911
16912 * syntax.c (scan_sexps_forward): Declare an arg.
16913
16914 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16915 Declare an arg.
16916
16917 * lisp.h (Fnew_fontset): Declare.
16918
16919 * keymap.c (push_key_description): Call CHARACTERP correctly.
16920
16921 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16922 (face_for_char): Delete unused vars.
16923 (Fset_fontset_font): Doc fix. Delete unused vars.
16924
16925 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16926
16927 * composite.c (update_compositions): Declare arg.
16928
16929 * cm.c (calccost, cmgoto): Declare args.
16930
16931 * charset.c: Remove `emacs' conditional. Doc fixes.
16932 (map_char_table_for_charset): Declare.
16933
16934 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16935
16936 * ccl.c: Remove `emacs' conditional.
16937
169382008-02-01 Kenichi Handa <handa@m17n.org>
16939
16940 The following changes are to allow specifying multiple font
16941 patterns for a character range (specified by script or charset).
16942
16943 * Makefile.in (abbrev.o): Depend on syntax.h.
16944 (xfaces.o): Depend on charset.h.
16945
16946 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16947 SINGLE_BYTE_CHAR_P.
16948
16949 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16950
16951 * character.h (Vchar_script_table): Extern it.
16952
16953 * character.c (Vscript_alist): Delete.
16954 (Vchar_script_table, Qchar_script_table): New variable.
16955 (syms_of_character): Declare Vchar_script_table as a lisp variable
16956 and initialize it.
16957
16958 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16959 have property char-table-extra-slots, make no extra slot.
16960
16961 * dispextern.h (struct face): Delete member `charset'.
16962 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16963 SINGLE_BYTE_CHAR_P.
16964 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16965 Add prototypes.
16966 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16967 (generate_ascii_font_name): Rename from generate_ascii_font.
16968
16969 * fontset.h (get_font_repertory_func): New prototype.
16970 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16971 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16972
16973 * fontset.c (Qprepend, Qappend): New variables.
16974 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16975 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16976 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16977 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16978 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16979 (load_font_get_repertory): New functions.
16980 (fontset_set): Delete.
16981 (fontset_face): New arg FACE. Return face ID, not face.
16982 Complete re-write to handle new fontset structure. Change caller.
16983 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16984 (face_for_char): Don't call lookup_face.
16985 (make_fontset_for_ascii_face): New arg FACE.
16986 (fs_load_font): New arg CHARSET_ID. Don't check
16987 Vfont_encoding_alist here.
16988 (find_font_encoding): New function.
16989 (list_fontsets): Use STRINGP, not ! NILP.
16990 (accumulate_script_ranges): New function.
16991 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16992 re-written to handle new fontset structure.
16993 (Ffontset_font): Return a copy of element.
16994 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16995 docstring of font-encoding-alist.
16996
16997 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16998 (Fset_fotset_font): Fix arguments to 5.
16999
17000 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17001
17002 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17003 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17004 (highlight_trailing_whitespace): Adjust for the change of
17005 lookup_named_face.
17006
17007 * xfaces.c: Include charset.h.
17008 (load_face_font): Delete argument C. Change caller.
17009 (generate_ascii_font_name): Rename from generate_ascii_font.
17010 (font_name_registry): New function.
17011 (cache_face): Store ascii faces before non-ascii faces in buckets.
17012 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17013 Lookup only ascii faces.
17014 (lookup_non_ascii_face): New function.
17015 (lookup_named_face): Delete argument C. Change caller.
17016 (lookup_derived_face): Delete argument C. Change caller.
17017 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17018 a string, just call font_list with it.
17019 (choose_face_font): Delete arguments FACE and C. New arg
17020 FONT_SPEC. Change caller.
17021 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17022 Change caller.
17023 (realize_non_ascii_face): New function.
17024 (realize_x_face): Call load_face_font here.
17025 (realize_tty_face): Delete argument C. Change caller.
17026 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17027 get a face ID.
17028 (dump_realized_face): Don't print charset of FACE.
17029
17030 * xfns.c (x_set_font): Always call x_new_fontset and
17031 store_frame_parameter.
17032 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17033 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17034
17035 * xterm.h (x_get_font_repertory): Extern it.
17036
17037 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17038 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17039 it->multibyte_p is zero.
17040 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17041 (x_new_fontset): If FONTSETNAME doesn't match any existing
17042 fontsets, create a new one.
17043 (x_get_font_repertory): New function.
17044
170452008-02-01 Kenichi Handa <handa@m17n.org>
17046
17047 * coding.c (Ffind_coding_systems_region_internal): Detect an
17048 ASCII only string correctly.
17049
17050 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17051 version is 0.
17052
170532008-02-01 Kenichi Handa <handa@m17n.org>
17054
17055 * lread.c: Include "coding.h".
17056 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17057 (load_each_byte, unread_char): New variables.
17058 (readchar_backlog): Delete.
17059 (readchar): Return a character unless load_each_byte is nonzero.
17060 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17061 cons. If unread_char is not -1, simply return it.
17062 (unreadchar): Handle the case that readcharfun is
17063 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17064 (read_multibyte): Delete.
17065 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17066 (read_emacs_mule_char): New functions.
17067 (Fload): Even if the file doesn't have the extension ".elc", if
17068 safe_to_load_p returns a positive version number, assume that the
17069 file contains bytecompiled code. If the version is less than 22,
17070 load the file while decoding multibyte sequences by emacs-mule.
17071 (readevalloop): Don't use readchar_backlog.
17072 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17073 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17074 (read_escape): Delete the arg BYTEREP.
17075 (read1): Set load_each_byte to 1 temporarily while handling
17076 #@NUMBER. Don't call read_multibyte.
17077 (read_vector): Call Fread with a cons. If readcharfun is
17078 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17079 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17080 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17081 and Qload_force_doc_strings.
17082
170832008-02-01 Kenichi Handa <handa@m17n.org>
17084
17085 * xdisp.c (face_before_or_after_it_pos): Call
17086 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17087
170882008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * character.h (TRAILING_CODE_P): New macro.
17091 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17092 (string_char_with_unification): Fix prototype.
17093 (Vscript_alist): Extern it.
17094
17095 * character.c (Vscript_alist): New variable.
17096 (string_char_with_unification, str_as_unibyte)
17097 (string_escape_byte8): Add `const' to local variables.
17098 (syms_of_character): Declare script-alist as a Lisp variable.
17099
17100 * charset.h (Vcharset_ordered_list): Extern it.
17101 (charset_ordered_list_tick): Extern it.
17102 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17103 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17104 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17105 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17106 (Funify_charset): Adjust for the change of Funify_charset.
17107
17108 * charset.c (charset_ordered_list_tick): New variable.
17109 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17110 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17111 deunify intead of unify a charset.
17112 (string_xstring_p): Add `const' to local variables.
17113 (find_charsets_in_text): Add `const' to arguments and local variables.
17114 (encode_char): Adjust for the change of Funify_charset. Fix
17115 detecting of invalid code.
17116 (Fset_charset_priority): Increment charset_ordered_list_tick.
17117 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17118 and TO_CODE.
17119
17120 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17121 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17122 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17123 (decode_coding_ccl, consume_chars)
17124 (Ffind_coding_systems_region_internal)
17125 (Fcheck_coding_systems_region): Add `const' to local variables.
17126
17127 * print.c (print_object): Use octal form for printing the
17128 contents of a bool vector.
17129
171302008-02-01 Dave Love <fx@gnu.org>
17131
17132 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17133 <version == 20>: Refuse to load.
17134
171352008-02-01 Dave Love <fx@gnu.org>
17136
17137 * fns.c: Move coding.h.
17138 (Qcodeset, Qdays, Qmonths): New.
17139 (concat): Use CHARACTERP instead of INTEGERP.
17140 (Flocale_codeset): Delete.
17141 (Flanginfo): New function.
17142 (syms_of_fns): Change accordingly.
17143
17144 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17145
171462008-02-01 Dave Love <fx@gnu.org>
17147
17148 * casetab.c (init_casetab_once, init_casetab_once): Fix
17149 CHAR_TABLE_SET call.
17150
17151 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17152
17153 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17154
17155 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17156 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17157 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17158
17159 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17160
17161 * coding.c (ENCODE_DESIGNATION, decode_eol)
17162 (make_conversion_work_buffer, code_conversion_restore)
17163 (Fdefine_coding_system_internal): Convert Lisp types.
17164 (code_conversion_restore): Use EQ, not ==.
17165 (Fencode_coding_string): Fix code_convert_string call.
17166
17167 * coding.h (code_convert_region): Fix prototype.
17168
17169 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17170
17171 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17172 (Ffontset_info): Convert Lisp types.
17173
17174 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17175
17176 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17177
17178 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17179
17180 * chartab.c: Include "...h", not <...h> in some cases.
17181
17182 * callproc.c (Fcall_process): Remove unused variables.
17183
171842008-02-01 Dave Love <fx@gnu.org>
17185
17186 * coding.c (Fset_coding_system_priority): Allow null arg list.
17187
171882008-02-01 Dave Love <fx@gnu.org>
17189
17190 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17191 (Fself_insert_and_exit): Use CHARACTERP.
17192
17193 * callproc.c (Fcall_process): Remove unused vars.
17194
17195 * xterm.c (XTread_socket): Add extra dead keysyms.
17196
17197 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17198
17199 * dispextern.h: Remove prototypes for redraw_frame,
17200 redraw_garbaged_frames.
17201
17202 * cmds.c (Fself_insert_command): Use CHARACTERP.
17203
17204 * chartab.c (make_sub_char_table): Remove unused var.
17205 (Fset_char_table_default, Fmap_char_table): Doc fix.
17206
17207 * keymap.c (access_keymap): Remove generic char code.
17208 (push_key_description): Use CHARACTERP.
17209
172102008-02-01 Dave Love <fx@gnu.org>
17211
17212 * charset.c: Doc fixes.
17213 (Funify_charset): Extra checking.
17214
172152008-02-01 Dave Love <fx@gnu.org>
17216
17217 * lread.c: Remove some unused variables.
17218 (safe_to_load_p): If safe, return the magic number version byte.
17219 (Fload): Maybe use load-with-code-conversion.
17220
172212008-02-01 Kenichi Handa <handa@m17n.org>
17222
17223 * category.c (Fmodify_category_entry): Don't modify the contents
17224 of category_set for characters out of the range. Avoid
17225 unnecessary modification.
17226
17227 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17228 Vchar_unify_table. The default value of the table is now nil.
17229
17230 * character.c (syms_of_character): Setup Vchar_width_table for
17231 eight-bit-control and raw-byte chars.
17232
17233 * charset.h (enum define_charset_arg_index): Delete
17234 charset_arg_parents and add charset_arg_subset and
17235 charset_arg_superset.
17236 (enum charset_attr_index): Delete charset_parents and add
17237 charset_subset and charset_superset.
17238 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17239 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17240 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17241 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17242 (CHARSET_SUPERSET): New macros.
17243 (charset_work): Extern it.
17244 (ENCODE_CHAR): Use charset_work.
17245 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17246 (map_charset_chars): Extern it.
17247
17248 * charset.c (load_charset_map): Set the default value of encoder
17249 and deunifier char-tables to nil.
17250 (map_charset_chars): Change argument. Change callers. Use
17251 map_char_table_for_charset instead of map_char_table.
17252 (Fmap_charset_chars): New optional args from_code and to_code.
17253 (Fdefine_charset_internal): Adjust for the change of
17254 `define-charset' (:parents -> :subset or :superset).
17255 (charset_work): New variable.
17256 (encode_char, syms_of_charset): Adjust for the change of
17257 Fdefine_charset_internal.
17258 (Ffind_charset_string): Setup the vector `charsets' correctly.
17259
17260 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17261 the previous change.
17262 (char_table_ref_and_range): Adjust for the above change.
17263 (map_sub_char_table_for_charset): New function.
17264 (map_char_table_for_charset): New function.
17265
17266 * keymap.c (describe_vector): Handle a char-table directly here.
17267 (describe_char_table): Delete.
17268
17269 * lisp.h (map_charset_chars): Delete.
17270
172712008-02-01 Dave Love <fx@gnu.org>
17272
17273 * fns.c (count_combining): Comment out (unused).
17274 (Flocale_codeset): New.
17275 (syms_of_fns): Defsubr it.
17276
17277 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17278 (size_t): Remove.
17279
172802008-02-01 Dave Love <fx@gnu.org>
17281
17282 * Makefile.in (chartab.o): Depend on charset.h.
17283
172842008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * character.c (syms_of_character): Set the default value of
17287 Vprintable_chars to Qnil.
17288
172892008-02-01 Dave Love <fx@gnu.org>
17290
17291 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * charset.c (load_charset_map): Handle the case that from < to
17296 correctly.
17297
17298 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17299 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17300 Pay attention to raw-8-bit chars.
17301
173022008-02-01 Kenichi Handa <handa@m17n.org>
17303
17304 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17305 It is not bytecompiled now.
17306
17307 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17308 (charset_jisx0208): New variables.
17309 (Fdefine_charset_internal): Setup them if appropriate.
17310 (init_charset_once): Initialize them to -1.
17311
17312 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17313 (charset_jisx0208): Extern them.
17314
17315 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17316 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17317 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17318 (setup_iso_safe_charsets): Fix arguments to Fassq.
17319 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17320 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17321 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17322 (encode_coding_iso_2022): Change the 1st arg to
17323 ENCODE_ISO_CHARACTER to a variable.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * charset.h (enum define_charset_arg_index): New enums
17328 charset_arg_min_code and charset_arg_max_code.
17329 (struct charset): New member char_index_offset.
17330
17331 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17332 Take charset->char_index_offset into account.
17333 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17334 args[charset_arg_max_code]. Setup charset.char_index_offset.
17335 (syms_of_charset): Fix args to Fdefine_charset_internal.
17336
173372008-02-01 Dave Love <fx@gnu.org>
17338
17339 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17340
173412008-02-01 Dave Love <fx@gnu.org>
17342
17343 * coding.c: Doc fixes.
17344 (Fcoding_system_aliases): Fix return value.
17345 (Qmac): Remove (duplicated) definition.
17346
173472008-02-01 Dave Love <fx@gnu.org>
17348
362654a6
JB
17349 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17350 New functions.
aac0c6e3
MR
17351
17352 * character.c (Fstring): Doc fix.
17353
17354 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17355
362654a6 17356 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17357 (font-encoding-alist): Doc fix.
17358
173592008-02-01 Dave Love <fx@gnu.org>
17360
17361 * term.c (costs_set): Declare static, non-initialized for pcc.
17362 (encode_terminal_code): Remove unused var.
17363
17364 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17365 for K&R.
17366
17367 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17368
17369 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17370 (suffixes): Move out of make_subsidiaries for K&R.
17371
17372 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17373
17374 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17375
173762008-02-01 Dave Love <fx@gnu.org>
17377
17378 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17379
17380 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17381
173822008-02-01 Yong Lu <lyongu@asia-infonet.com>
17383
17384 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17385
17386 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17391 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * coding.c (decode_coding_charset): Adjust for the change of
17396 Fdefine_coding_system_internal.
17397 (Fdefine_coding_system_internal): For a coding system of
17398 `charset' type, store a list of charset IDs in
17399 `charset_attr_charset_valids' element of coding attributes.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17404 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17405 caller. Handle 2-byte and 3-byte charsets correctly.
17406 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17407 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17408 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17409 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17410 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17411 sequence.
17412 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17413 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17414 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17415 and alt&rule composition.
17416 (decode_coding_iso_2022): Handle composition correctly.
17417 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17418
17419 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17420 re-defining a charset. If the charset has :emacs-mule-id, setup
17421 emacs_mule_bytes.
17422 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17423
174242008-02-01 Kenichi Handa <handa@m17n.org>
17425
17426 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17427 (encode_coding_big5, encode_coding_charset): If coding requires safe
17428 encoding, produce a character specified by
17429 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17430
174312008-02-01 Dave Love <fx@gnu.org>
17432
17433 * xterm.c (XSetIMValues): Declare.
17434
17435 * process.c: Conditionally include sys/wait.h, pty.h.
17436
17437 * print.c (print_object): Fix print format for 64-bit systems.
17438
17439 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17440
17441 * buffer.c (emacs_strerror): Declare.
17442
17443 * fontset.c (Fclear_face_cache): Declare.
17444 (accumulate_font_info): Comment-out (unused).
17445 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17446 variables.
17447
17448 * character.h (string_escape_byte8): Declare.
17449
17450 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17451 unused vars.
17452 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17453 (Fmap_charset_chars): Doc fix.
17454
17455 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17456 (Fset_coding_system_priority, Fset_coding_system_priority)
17457 (Fdefine_coding_system_internal): Doc fix.
17458
174592008-02-01 Dave Love <fx@gnu.org>
17460
17461 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17462
174632008-02-01 Kenichi Handa <handa@m17n.org>
17464
17465 * character.c (string_escape_byte8): Make multibyte string with
17466 correct size.
17467
17468 * charset.c (Fmake_char): Delete unnecessary code.
17469
174702008-02-01 Kenichi Handa <handa@m17n.org>
17471
17472 * xfns.c (x_encode_text): Allocate coding.destination here, and
17473 call encode_coding_object with dst_object Qnil.
17474
17475 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17476 multibyte form correctly.
17477
17478 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17479 against Vfont_encoding_alist.
17480
17481 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17482 handling of charset list.
17483 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17484 (decode_coding_object): Move point to coding->dst_pos before
17485 calling post-read-conversion function.
17486 (encode_coding_object): Give correct arguments to
17487 pre-write-conversion. Ignore the return value of
17488 pre-write-conversion function. Pay attention to the case that
17489 pre-write-conversion changes the current buffer. If dst_object is
17490 Qt, even if coding->src_bytes is zero, allocate at least one byte
17491 to coding->destination.
17492
17493 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17494
17495 * charset.c (Fmake_char): Make it more backward compatible.
17496 (Fmap_charset_chars): Fix docstring.
17497
174982008-02-01 Dave Love <fx@gnu.org>
17499
17500 * coding.c: Doc fixes.
17501 (Fdefine_coding_system_alias): Use names, not symbols, in
17502 coding-system-alist.
17503
175042008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17507 of calling free_realized_face.
17508
175092008-02-01 Yong Lu <lyongu@asia-infonet.com>
17510
17511 * charset.c (read_hex): Don't treat SPC as a comment starter.
17512 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17513 (Fdecode_char): Fix typo.
17514
175152008-02-01 Kenichi Handa <handa@m17n.org>
17516
17517 * charset.h (struct charset): New member `code_space_mask'.
17518
17519 * coding.c (coding_set_source): Delete the local variable beg_byte.
17520 (encode_coding_charset, Fdefine_coding_system_internal):
17521 Delete the local variable charset.
17522 (Fdefine_coding_system_internal): Setup
17523 attrs[coding_attr_charset_valids] correctly.
17524
17525 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17526 member to check if CODE is valid or not.
17527 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17528 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17529 is within the range of charset->min_code and carset->max_code.
17530
175312008-02-01 Dave Love <fx@gnu.org>
17532
17533 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17534
17535 * dispextern.h (generate_ascii_font): Fix return type.
17536
17537 * xfaces.c (generate_ascii_font): Fix arg declaration.
17538
17539 * coding.c (coding_inherit_eol_type)
17540 (Fset_terminal_coding_system_internal)
17541 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17542
175432008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17546 multiple charsets correctly.
17547
175482008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * search.c (boyer_moore): Fix handling of multibyte character
17551 translation.
17552
17553 * xdisp.c (display_mode_element): When the variable `elt' is
17554 changed, update `this' and `lisp_string'.
17555
175562008-02-01 Kenichi Handa <handa@m17n.org>
17557
17558 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17559
17560 * callproc.c (Fcall_process): Be sure to give the current buffer
17561 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17562
17563 * charset.c (struct charset_map_entries): New struct.
17564 (load_charset_map): Rename from parse_charset_map. New args
17565 entries and n_entries. Change caller.
17566 (load_charset_map_from_file): Rename from load_charset_map.
17567 Change caller. New arg control_flag. Call load_charset_map at
17568 the tail.
17569 (load_charset_map_from_vector): New function.
17570 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17571 (encode_char): If the charset is compact, change a character index
17572 to a code point.
17573
17574 * coding.c (coding_alloc_by_making_gap): Check the case that the
17575 source and destination are the same correctly.
17576 (decode_coding_raw_text): Set coding->consumed_char and
17577 coding->consumed to 0.
17578 (produce_chars): If coding->chars_at_source is nonzero, update
17579 coding->consumed_char and coding->consumed before calling
17580 alloc_destination.
17581 (Fdefine_coding_system_alias): Register ALIAS in
17582 Vcoding_system_alist.
17583 (syms_of_coding): Define `no-conversion' coding system at the tail.
17584
17585 * fileio.c (Finsert_file_contents): Set coding_system instead of
17586 val. If the current buffer is multibyte, always call
17587 decode_coding_gap.
17588
17589 * xfaces.c (try_font_list): Give higher priority to fontset's
17590 family than face's family.
17591
175922008-02-01 Kenichi Handa <handa@m17n.org>
17593
17594 * callproc.c (Fcall_process): Be sure to give the current buffer
17595 to decode_coding_c_string.
17596
17597 * xfaces.c (try_font_list): Give a family specified in a fontset
17598 higher priority than a family specified in a face.
17599
176002008-02-01 Kenichi Handa <handa@m17n.org>
17601
17602 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17603 Fix arguments to insert_from_buffer.
17604
17605 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17606
176072008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17610 (decode_coding_gap): Set coding->dst_multibyte correctly.
17611
176122008-02-01 Kenichi Handa <handa@m17n.org>
17613
17614 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17615 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17616 (encode_coding_utf_16): Substitute coding->default_char for
17617 non-Unicode characters.
17618 (decode_coding): Don't call record_insert here.
17619 (setup_coding_system): Initialize `surrogate' of
17620 coding->spec.utf_16 to 0.
17621 (EMIT_ONE_BYTE): Fix for multibyte case.
17622
17623 * insdel.c (insert_from_gap): Call record_insert.
17624
176252008-02-01 Kenichi Handa <handa@m17n.org>
17626
17627 * casefiddle.c (casify_region): Fix multibyte case.
17628
17629 * character.c (c_string_width): Add return type `int'.
17630 (char_string_with_unification): Delete arg ADVANCED.
17631
17632 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17633 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17634 (CHAR_STRING_ADVANCE): Make it do-while statement.
17635
17636 * chartab.c (sub_char_table_set_range): Optimize for the case
17637 DEPTH == 3. Add workaround code for a GCC optimization bug.
17638
17639 * charset.c (parse_charset_map): Remove an unused variable.
17640
17641 * coding.c: Delete unused variables.
17642
17643 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17644 earlier. If inserted is zero and the coding system doesn't
17645 require flushing, don't call decode_coding_gap.
17646
17647 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 The following changes are for using Unicode as an internal
17652 character model, and use UTF-8 format for buffer/string
17653 representation.
17654
17655 * .gdbinit (xchartable): Adjust for the change of char table structure.
17656 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17657
17658 * Makefile.in (obj): Add character.o and chartab.o.
17659 (lisp, shortlisp): Remove utf-8.elc.
17660 (*.o): For many files, change dependency on charset.h to
17661 character.h, and add dependency on character.h.
17662 (character.o, chartab.o): New targets.
17663
17664 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17665 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17666 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17667 of "charset.h".
17668
17669 * dired.c, filelock.c: Include "character.h".
17670
17671 * alloc.c: Include "character.h" instead of "charset.h".
17672 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17673 (syms_of_alloc): Remove defsubr for Smake_char_table.
17674
17675 * buffer.c: Include "character.h" instead of "charset.h", don't
17676 include "coding.h".
17677 (Fset_buffer_multibyte): Adjust for UTF-8.
17678
17679 * buffer.h: EXFUN Fbuffer_live_p.
17680
17681 * callproc.c: Include "character.h" instead of "charset.h".
17682 (Fcall_process): Big change for the new code-conversion APIs.
17683
17684 * casetab.c: Include "character.h" instead of "charset.h".
17685 (set_canon, set_identity, shuffle): Adjust for the new
17686 map_char_table spec.
17687 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17688 accessing the char table structure.
17689
17690 * chartab.c: New file that implements char table.
17691
17692 * category.c: Include "character.h".
17693 (copy_category_entry): New function.
17694 (copy_category_table): Call map_char_table and copy_category_entry.
17695 (Fmake_category_table): Initialize all top-level slots.
17696 (char_category_set): New function.
17697 (modify_lower_category_set): Delete.
17698 (Fmodify_category_entry): Call char_table_ref_and_range.
17699
17700 * category.h (CATEGORY_SET): Just call char_category_set.
17701
17702 * ccl.c: Include "character.h".
17703 (Qccl, Qcclp): New variables.
17704 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17705 it's less than 256.
17706 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17707 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17708 and DST type.
17709 (ccl_driver): Change types of argument, adjust code accordingly.
17710 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17711 ccl_driver.
17712 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17713
17714 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17715 New members src_multibyte, dst_multibyte, consumed, and produced.
17716 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17717 (CODING_SPEC_CCL_PROGRAM): New macro.
17718 (ccl_driver): Update prototype.
17719 (Qccl, Qcclp, Fccl_program_p): Extern them.
17720 (CHECK_CCL_PROGRAM): New macro.
17721
17722 * character.c, character.h, chartab.c: New files.
17723
17724 * charset.c: Mostly re-written. Move character and multibyte sequence
17725 handling codes to character.c.
17726
17727 * charset.h: Mostly re-written. Move character and multibyte sequence
17728 handling codes to character.h.
17729
17730 * coding.c, coding.h: Mostly re-written.
17731
17732 * composite.c: Include "character.h" instead of "charset.h".
17733 (CHAR_WIDTH): Move to character.h.
17734 (HASH_KEY, HASH_VALUE): Delete.
17735
17736 * composite.h (enum composition_method): Change order of enumeration
17737 symbols.
17738
17739 * data.c: Include "character.h" instead of "charset.h".
17740 (Faref): Call CHAR_TABLE_REF for a char table.
17741 (Faset): Call CHAR_TABLE_SET for a char table.
17742
17743 * dispextern.h (free_realized_face, check_face_attribytes)
17744 (generate_ascii_font): Extern them.
17745 (free_realized_multibyte_face): Delete extern.
17746
17747 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17748 table structure.
17749
17750 * editfns.c: Include "character.h" instead of "charset.h".
17751 (Fchar_to_string): Always call CHAR_STRING.
17752
17753 * emacs.c (main): Call init_charset_once, init_charset,
17754 syms_of_chartab, and syms_of_character.
17755
17756 * fileio.c: Include "character.h" instead of "charset.h".
17757 (Finsert_file_contents): Big change for the new code-conversion API.
17758 (choose_write_coding_system, Fwrite_region): Likewise.
17759 (build_annotations_2): Delete.
17760 (e_write): Big change for the new code-conversion API.
17761
17762 * fns.c: Include "character.h" instead of "charset.h".
17763 (copy_sub_char_table): Move to chartab.c.
17764 (Fcopy_sequence): Call copy_char_table for a char table.
17765 (concat): Delete codes calling count_multibyte.
17766 (string_char_to_byte, string_byte_to_char): Adjust for the new
17767 multibyte form.
17768 (internal_equal): Adjust for the change of char table structure.
17769 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17770 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17771 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17772 (char_table_translate, optimize_sub_char_table)
17773 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17774 chartab.c.
17775 (char_table_ref_and_index): Delete.
17776 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17777 (Fmd5): Call preferred_coding_system instead of accessing
17778 Vcoding_category_list. Adjust for the new code-conversion API.
17779 (syms_of_fns): Move defsubr for char table related functions to
17780 chartab.c.
17781
17782 * fontset.c: Mostly re-written.
17783
17784 * fontset.h (struct font_info): Change type of the member encoding_type.
17785 (enum FONT_SPEC_INDEX): New enum.
17786 (fontset_font_pattern, fs_load_font): Update prototype.
17787 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17788
17789 * indent.c: Include "character.h" instead of "charset.h".
17790 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17791
17792 * insdel.c: Include "character.h" instead of "charset.h".
17793 (copy_text): Don't refer to Vnonascii_translation_table.
17794 (insert_from_gap): New function.
17795
17796 * keyboard.c: Include "character.h" instead of "charset.h".
17797 (command_loop_1): Never call direct_output_forward_char before
17798 a non-ASCII character.
17799 (read_char): If Vkeyboard_translate_table is a char table, always
17800 translate a character.
17801
17802 * keymap.c: Include "character.h".
17803 (store_in_keymap): Handle the case that IDX is a cons.
17804 (Fdefine_key): Handle the case that KEY is a cons and the car part
17805 is also a cons (range).
17806 (push_key_description): Adjust for the new character code.
17807 (describe_vector): Call describe_char_table for a char table.
17808 (describe_char_table): New function.
17809
17810 * keymap.h (describe_char_table): Extern it.
17811
17812 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17813 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17814 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17815 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17816 Delete.
17817 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17818 structure.
17819 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17820 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17821 (CHARTAB_SIZE_BITS_3): New macros.
17822 (chartab_size): Extern it.
17823 (struct Lisp_Char_Table): Re-design.
17824 (struct Lisp_Sub_Char_Table): New structure.
17825 (HASH_KEY, HASH_VALUE): Move from fns.c.
17826 (CHARACTERBITS): Define as 22.
17827 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17828 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17829 (GC_SUB_CHAR_TABLE_P): New macro.
17830 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17831 (code_convert_string_norecord): Deleted extern.
17832 (init_character_once, syms_of_character, init_charset)
17833 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17834
17835 * lread.c: Include "character.h".
17836 (read_multibyte): New arg NBYTES.
17837 (read_escape): Change the meaning of returned *BYTEREP.
17838 (to_multibyte): Delete.
17839 (read1): Adjust the handling of char table and string.
17840
17841 * print.c: Include "character.h" instead of "charset.h".
17842 (print_string): Convert 8-bit raw bytes to octal form by
17843 string_escape_byte8.
17844 (print_object): Adjust for the new multibyte form. Print 8-bit
17845 raw bytes always in octal form. Handle sub char table correctly.
17846
17847 * process.c: Include "character.h" instead of "charset.h".
17848 (read_process_output, send_process): Adjust for the new
17849 code-conversion API.
17850
17851 * puresize.h (BASE_PURESIZE): Increase.
17852
17853 * regex.c: Include "character.h" instead of "charset.h".
17854 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17855 (regex_compile): Accept a range whose starting and ending
17856 character have different leading bytes.
17857 (analyse_first): Adjust for the above change.
17858
17859 * search.c: Include "character.h" instead of "charset.h".
17860 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17861 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17862
17863 * syntax.c: Include "character.h" instead of "charset.h".
17864 (syntax_parent_lookup): Delete.
17865 (Fmodify_syntax_entry): Accept a cons as CHAR.
17866 (skip_chars): Adjust for the new multibyte form.
17867 (init_syntax_once): Call char_table_set_range instead of directly
17868 accessing the structure of a char table.
17869
17870 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17871 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17872 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17873 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17874
17875 * term.c: Include "buffer.h" and "character.h".
17876 (encode_terminal_code, write_glyphs): Adjust for the new
17877 code-conversion API.
17878 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17879
17880 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17881
17882 * xdisp.c: Include "character.h".
17883 (get_next_display_element): Adjust for the new multibyte form.
17884 (disp_char_vector): Adjust for the new char table structure.
17885 (decode_mode_spec_coding): Adjust for the new structure of
17886 coding system.
17887 (decode_mode_spec): Adjust for the new code-conversion API.
17888
17889 * xfaces.c: Include "character.h" instead of "charset.h".
17890 (load_face_font): Adjust for the change of choose_face_font and
17891 FS_LOAD_FONT.
17892 (generate_ascii_font): New function.
17893 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17894 (set_font_frame_param): Adjust for the change of choose_face_font.
17895 (free_realized_face): Make it public.
17896 (free_realized_faces_for_fontset): Rename from
17897 free_realized_multibyte_face. Free also faces realized for ASCII.
17898 (choose_face_font): Change arguments. Adjust for the change of
17899 fontset_font_pattern and FS_LOAD_FONT.
17900
17901 * xfns.c: Include "character.h".
17902 (x_encode_text): Adjust for the new code-conversion API.
17903
17904 * xselect.c: Don't include "charset.h".
17905 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17906
17907 * xterm.c: Include "character.h".
17908 (x_encode_char): New argument CHARSET. Change caller.
17909 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17910 Call ENCODE_CHAR instead of SPLIT_CHAR.
17911 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17912 CHAR_WIDTH instead of CHARSET_WIDTH.
17913 (XTread_socket): Adjust for the new code-conversion API.
17914 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17915 (x_load_font): Adjust for the change of struct font.
17916
179172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17918
17919 * xfaces.c (face_at_buffer_position): Remove unused vars.
17920
179212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17922
17923 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17924 Fix overflow checking.
17925
179262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17927
17928 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17929 Cancel previous change.
17930
179312008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17932
17933 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17934 ccl->eight_bit_control. Fix check for buffer overflow.
17935 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17936 (ccl_driver): Initialize extra_bytes to 0.
17937
179382008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17939
17940 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17941 return it ORed with ctrl_modifier.
17942
179432008-01-29 Miles Bader <miles@gnu.org>
17944
17945 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17946
179472008-01-28 Jason Rumney <jasonr@gnu.org>
17948
17949 * w32.c (stat): Don't double check for networked drive.
17950
179512008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17952
17953 * window.c (run_window_configuration_change_hook): New function.
17954 Code extracted from set_window_buffer. Set the selected frame.
17955 (set_window_buffer): Use it.
17956 * window.h (run_window_configuration_change_hook): Declare.
17957 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17958
17959 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17960
179612008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17962
17963 * Makefile.in: Remove references to unused macros.
17964
179652008-01-26 Eli Zaretskii <eliz@gnu.org>
17966
17967 * w32.c (g_b_init_get_sid_sub_authority)
17968 (g_b_init_get_sid_sub_authority_count): New static variables.
17969 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17970 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17971 (init_user_info): Use them to retrieve uid and gid.
17972 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17973 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17974 st_uid and st_gid of the file.
17975
179762008-01-26 Jason Rumney <jasonr@gnu.org>
17977
17978 * w32.c (logon_network_drive): New function.
17979 (stat): Use it.
17980
179812008-01-26 Chong Yidong <cyd@stupidchicken.com>
17982
17983 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17984 invisible text covered with an ellipsis.
17985
179862008-01-25 Richard Stallman <rms@gnu.org>
17987
17988 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17989 jump back to beginning. Move some other initializations after that.
17990 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17991 New variables.
17992 (syms_of_xdisp): Init them.
17993
17994 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17995
17996 * buffer.c (reset_buffer_local_variables):
17997 Implement `permanent-local-hook'.
17998 (Qpermanent_local_hook): New variable.
17999 (syms_of_buffer): Init and staticpro it.
18000
180012008-01-25 Michael Albinus <michael.albinus@gmx.de>
18002
18003 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18004
180052008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18006
18007 * fns.c (Fclrhash): Return TABLE.
18008
180092008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18010
18011 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18012 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18013 is set even without positional changes.
18014 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18015
18016 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18017
180182008-01-23 Jason Rumney <jasonr@gnu.org>
18019
18020 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18021
18022 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18023 the unicode range available in MULE by locale-coding-system.
18024 Improve dbcs lead byte detection. Set event timestamp and modifiers
18025 earlier.
18026
180272008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18028
18029 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18030 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18031 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18032 when used on child processes.
18033
180342008-01-21 Michael Albinus <michael.albinus@gmx.de>
18035
18036 * dbusbind.c (Fdbus_method_return_internal): Rename from
18037 Fdbus_method_return.
18038 (Fdbus_unregister_object): Move to dbus.el.
18039 (Fdbus_call_method, Fdbus_method_return_internal)
18040 (Fdbus_send_signal): Improve debug messages.
18041
180422008-01-20 Martin Rudalics <rudalics@gmx.at>
18043
18044 * undo.c (undo_inhibit_record_point): New variable.
18045 (syms_of_undo): Initialize it.
18046 (record_point): Don't record point when undo_inhibit_record_point
18047 is set.
18048
180492008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18050
18051 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18052
18053 * xdisp.c (Qauto_hscroll_mode): New var.
18054 (syms_of_xdisp): Initialize it.
18055 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18056 window's buffer.
18057 (hscroll_windows): Don't check automatic_hscrolling_p here.
18058
18059 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18060 vscroll if we're setting window-buffer to the value it already has.
18061
180622008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18063
18064 * m/intel386.h: Remove references to XENIX.
18065
180662008-01-17 Andreas Schwab <schwab@suse.de>
18067
18068 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18069 instead of HAVE_X86_64_LIB64_DIR.
18070 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18071
180722008-01-17 Glenn Morris <rgm@gnu.org>
18073
18074 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18075 to HAVE_X86_64_LIB64_DIR.
18076
180772008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18078
18079 * s/irix3-3.h:
18080 * s/irix4-0.h:
18081 * s/386-ix.h:
18082 * s/domain.h:
18083 * s/hpux9-x11r4.h:
18084 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18085
18086 * sysdep.c: Remove code containing references to symbols defined
18087 by unsupported systems.
18088
180892008-01-16 Glenn Morris <rgm@gnu.org>
18090
18091 * coding.c (select-safe-coding-system-function): Doc fix.
18092
180932008-01-15 Glenn Morris <rgm@gnu.org>
18094
18095 * config.in: Revert 2008-01-13 change: this is a generated file.
18096
180972008-01-13 Tom Tromey <tromey@redhat.com>
18098
18099 * lisp.h: Fix typo.
18100
181012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18102
18103 * m/sequent-ptx.h:
18104 * m/sequent.h:
18105 * s/ptx.h:
18106 * s/ptx4-2.h:
18107 * s/ptx4.h: Remove files for systems no longer supported.
18108
18109 * callproc.c (Fcall_process): Fix previous change.
18110
181112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18112
18113 * unexsunos4.c: Remove file, system not supported anymore.
18114
18115 * m/mips.h:
18116 * m/intel386.h:
18117 * callproc.c:
18118 * config.in:
18119 * ecrt0.c:
18120 * emacs.c:
18121 * fileio.c:
18122 * frame.c:
18123 * getpagesize.h:
18124 * keyboard.c:
18125 * lread.c:
18126 * process.c:
18127 * puresize.h:
18128 * sysdep.c:
18129 * systty.h:
18130 * syswait.h:
18131 * unexec.c:
18132 * xdisp.c:
18133 * alloc.c: Remove code containing references to symbols defined by
18134 unsupported systems.
18135
181362008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18137
18138 * coding.c (detect_coding_mask): Fix previous change.
18139
181402008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18141
18142 * coding.c (detect_coding_iso2022): New arg
18143 latin_extra_code_state. Allow Latin extra codes only
18144 when *latin_extra_code_state is nonzero.
18145 (detect_coding_mask): If there is a NULL byte, detect the encoding
18146 as UTF-16 or binary. If Latin extra codes exist, detect the
18147 encoding as ISO-2022 only when there's no other proper encoding is
18148 found.
18149
181502008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18151
18152 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18153 #ifdef MAC_OS.
18154
181552008-01-08 Richard Stallman <rms@gnu.org>
18156
18157 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18158
181592008-01-06 Nick Roberts <nickrob@snap.net.nz>
18160
18161 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18162 menu bar in parentheses.
18163
181642008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18165
18166 * m/7300.h:
18167 * m/acorn.h:
18168 * m/alliant-2800.h:
18169 * m/alliant.h:
18170 * m/alliant1.h:
18171 * m/alliant4.h:
18172 * m/altos.h:
18173 * m/amdahl.h:
18174 * m/apollo.h:
18175 * m/att3b.h:
18176 * m/aviion-intel.h:
18177 * m/aviion.h:
18178 * m/celerity.h:
18179 * m/clipper.h:
18180 * m/cnvrgnt.h:
18181 * m/convex.h:
18182 * m/cydra5.h:
18183 * m/delta88k.h:
18184 * m/dpx2.h:
18185 * m/dual.h:
18186 * m/elxsi.h:
18187 * m/f301.h:
18188 * m/gould-np1.h:
18189 * m/gould.h:
18190 * m/i860.h:
18191 * m/ibmps2-aix.h:
18192 * m/ibmrt-aix.h:
18193 * m/ibmrt.h:
18194 * m/irist.h:
18195 * m/is386.h:
18196 * m/isi-ov.h:
18197 * m/mega68.h:
18198 * m/mg1.h:
18199 * m/news-r6.h:
18200 * m/news-risc.h:
18201 * m/news.h:
18202 * m/nh3000.h:
18203 * m/nh4000.h:
18204 * m/ns16000.h:
18205 * m/ns32000.h:
18206 * m/nu.h:
18207 * m/orion.h:
18208 * m/orion105.h:
18209 * m/paragon.h:
18210 * m/pfa50.h:
18211 * m/plexus.h:
18212 * m/pyramid.h:
18213 * m/pyrmips.h:
18214 * m/sh3el.h:
18215 * m/sps7.h:
18216 * m/sr2k.h:
18217 * m/stride.h:
18218 * m/sun1.h:
18219 * m/sun2.h:
18220 * m/sun3-68881.h:
18221 * m/sun3-fpa.h:
18222 * m/sun3-soft.h:
18223 * m/sun3.h:
18224 * m/sun386.h:
18225 * m/symmetry.h:
18226 * m/tad68k.h:
18227 * m/tahoe.h:
18228 * m/targon31.h:
18229 * m/tek4300.h:
18230 * m/tekxd88.h:
18231 * m/tower32.h:
18232 * m/tower32v3.h:
18233 * m/ustation.h:
18234 * m/wicat.h:
18235 * m/xps100.h:
18236 * s/cxux.h:
18237 * s/cxux7.h:
18238 * s/dgux.h:
18239 * s/dgux4.h:
18240 * s/dgux5-4-3.h:
18241 * s/dgux5-4r2.h:
18242 * s/esix.h:
18243 * s/esix5r4.h:
18244 * s/hiuxmpp.h:
18245 * s/hiuxwe2.h:
18246 * s/iris3-5.h:
18247 * s/iris3-6.h:
18248 * s/isc2-2.h:
18249 * s/isc3-0.h:
18250 * s/isc4-0.h:
18251 * s/isc4-1.h:
18252 * s/newsos5.h:
18253 * s/newsos6.h:
18254 * s/osf1.h:
18255 * s/osf5-0.h:
18256 * s/riscix1-1.h:
18257 * s/riscix12.h:
18258 * s/sco4.h:
18259 * s/sco5.h:
18260 * s/sunos4-0.h:
18261 * s/sunos4-1.h:
18262 * s/sunos413.h:
18263 * s/sunos4shr.h:
18264 * s/umax.h:
18265 * s/unipl5-2.h:
18266 * s/xenix.h:
18267 * cxux-crt0.s:
18268 * unexapollo.c:
18269 * unexconvex.c:
18270 * unexenix.c:
18271 * unexsni.c: Remove files for systems no longer supported.
18272
18273 * m/intel386.h: Remove references to unsupported systems.
18274
18275 * w32.c (get_emacs_configuration): Remove reference to i860.
18276
18277 * sysdep.c: Remove dead code.
18278
182792008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18280
18281 * s/rtu.h:
18282 * m/masscomp.h: Remove files. Platform is obsolete.
18283
182842008-01-04 Michael Albinus <michael.albinus@gmx.de>
18285
18286 * dbusbind.c (Fdbus_method_return): New function.
18287 (xd_read_message): Add the serial number to the event.
18288 (Fdbus_register_method): Activate the function.
18289
182902008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18291
18292 * keyboard.c (read_key_sequence): Fix typo.
18293
182942008-01-03 Michael Albinus <michael.albinus@gmx.de>
18295
18296 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18297 (xd_signature, xd_append_arg): Handle element type detection for
18298 empty arrays.
18299 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18300 SDATA () calls; this must be solved more general.
18301 (Fdbus_register_signal): Use SBYTES instead of strlen.
18302
183032008-01-03 Magnus Henoch <magnus@zemdatav>
18304
18305 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18306 unsigned int for byte values (necessary for big-endian platform).
18307 (Fdbus_call_method): Handle the case of no returned arguments.
18308
183092007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18310
18311 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18312
183132007-12-31 Magnus Henoch <mange@freemail.hu>
18314
18315 * dbusbind.c (xd_signature): Signature of variant is just "v".
18316
183172007-12-30 Michael Albinus <michael.albinus@gmx.de>
18318
18319 * dbusbind.c: Fix several errors and compiler warnings.
18320 Reported by Tom Tromey <tromey@redhat.com>.
18321 (XD_ERROR, XD_DEBUG_MESSAGE)
18322 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18323 (xd_append_arg): Part for basic D-Bus types rewritten.
18324 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18325 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18326 appropriate.
18327 (xd_read_message): Return Qnil. Don't signal an error; it is not
18328 useful during event reading.
18329 (Fdbus_register_signal): Signal an error if the check for
18330 FUNCTIONP fails.
18331 (Fdbus_register_method): New function. The implementation is not
18332 complete, the call of the function signals an error therefore.
18333 (Fdbus_unregister_object): New function, renamed from
18334 Fdbus_unregister_signal. The initial check signals an error, if
18335 the object is not well formed.
18336
183372007-12-30 Richard Stallman <rms@gnu.org>
18338
18339 * textprop.c (get_char_property_and_overlay):
18340 Signal error if POSITION is out of range in a buffer.
18341
183422007-12-29 Martin Rudalics <rudalics@gmx.at>
18343
18344 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18345 because the original parameters are in pure storage now.
18346
183472007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18348
18349 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18350
183512007-12-22 Eli Zaretskii <eliz@gnu.org>
18352
18353 * callint.c (syms_of_callint) <command-history>: Add reference to
18354 history-length in the doc string.
18355
183562007-12-17 Jason Rumney <jasonr@gnu.org>
18357
18358 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18359 before passing as wParam.
18360
183612007-12-22 Michael Albinus <michael.albinus@gmx.de>
18362
18363 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18364 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18365 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18366 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18367 as number.
18368 (Fdbus_call_method): Fix docstring.
18369
183702007-12-21 Michael Albinus <michael.albinus@gmx.de>
18371
18372 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18373 New macros.
18374 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18375 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18376 Simplify.
18377 (xd_signature): New function.
18378 (xd_append_arg): Compute also signatures. Major rewrite.
18379 (xd_retrieve_arg): Make debug messages friendly.
18380 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18381 Check for signatures of arguments.
18382
183832007-12-19 Michael Albinus <michael.albinus@gmx.de>
18384
18385 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18386 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18387 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18388 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18389 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18390 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18391 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18392 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18393 (xd_retrieve_value): Remove. Functionality included in ...
18394 (xd_append_arg): New function.
18395 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18396
183972007-12-16 Michael Albinus <michael.albinus@gmx.de>
18398
18399 * dbusbind.c (top): Include <stdio.h>.
18400 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18401 dbus_message_new_method_call and dbus_message_new_signal.
18402 (Fdbus_register_signal): Rename unique_name to uname.
18403 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18404 non-existing unique name. Fix typos in matching rule. Return an
18405 object which is useful in Fdbus_unregister_signal.
18406 (Fdbus_unregister_signal): Reimplementation, in order to remove
18407 only the corresponding entry.
18408 (Vdbus_registered_functions_table): Change the order of entries.
18409 Apply these changes in xd_read_message and Fdbus_register_signal.
18410
184112007-12-16 Andreas Schwab <schwab@suse.de>
18412
18413 * fileio.c (Finsert_file_contents): Fix overflow check to not
18414 depend on undefined integer overflow.
18415
184162007-12-14 Jason Rumney <jasonr@gnu.org>
18417
18418 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18419 for characters above 127.
18420
184212007-12-13 Jason Rumney <jasonr@gnu.org>
18422
18423 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18424 before dereferencing array.
18425 (lookup_vk_code): Remove zero comparison.
18426
184272007-12-14 Michael Albinus <michael.albinus@gmx.de>
18428
18429 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18430 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18431 Use `unsigned int' instead of `uint'.
18432 (xd_read_message, Fdbus_register_signal): Split expressions into
18433 multiple lines before operators "&&" and "||", according to the
18434 GNU Coding Standards.
18435
184362007-12-14 Eli Zaretskii <eliz@gnu.org>
18437
18438 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18439
184402007-12-12 Juri Linkov <juri@jurta.org>
18441
18442 * buffer.c (Frename_buffer): In interactive spec replace
18443 `read-buffer' with `read-string' that uses `buffer-name-history'
18444 as history, and the current buffer's name as default.
18445
184462007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18447
18448 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18449 manipulating the backtrace manually.
18450 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18451 (struct backtrace, backtrace_list): Remove.
18452 (command_loop_1): Remove dead var `no_direct'.
18453
18454 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18455 preserve non-built-in buffer-local variables.
18456 (Fkill_all_local_variables): Don't re-create&re-set permanent
18457 buffer-local variables.
18458
184592007-12-09 Juri Linkov <juri@jurta.org>
18460
18461 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18462 Lisp code that uses `read-buffer' with current buffer as default.
18463
184642007-12-08 Michael Albinus <michael.albinus@gmx.de>
18465
18466 * dbusbind.c (xd_read_message): Generate an event for every
18467 registered handler. There might be several handlers registered
18468 for the same signal.
18469 (Fdbus_register_signal): Don't overwrite a registration for the
18470 same signal. Add a new registration if handlers are different.
18471 (Vdbus_registered_functions_table): Rework doc string.
18472
184732007-12-07 Michael Albinus <michael.albinus@gmx.de>
18474
18475 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18476 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18477 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18478 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18479 Unify argument lists.
18480 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18481 arguments and hash table keys. Use unique name for service.
18482 (Fdbus_unregister_signal): Remove checks.
18483 (Vdbus_registered_functions_table): Fix doc string.
18484
184852007-12-05 Magnus Henoch <mange@freemail.hu>
18486
18487 * process.c (make_process): Initialize pty_flag to 0.
18488
184892007-12-05 Jason Rumney <jasonr@gnu.org>
18490
18491 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18492 specified XBMs.
18493
184942007-12-05 Richard Stallman <rms@gnu.org>
18495
18496 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18497
184982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18499
18500 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18501 New variable.
18502 (mac_try_close_socket) [MAC_OSX]: New function.
18503 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18504 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18505
18506 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18507 Use mac_try_close_socket.
18508
185092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18510
18511 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18512 reloc_base.
18513 (copy_dysymtab): Compute relocation base here.
18514 (rebase_reloc_address) [__ppc64__]: New function.
18515 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18516 changed.
18517
185182007-12-05 Jason Rumney <jasonr@gnu.org>
18519
18520 * w32proc.c (sys_spawnve): Quote args with wildcards.
18521
185222007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18523
18524 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18525 __objc_* sections.
18526 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18527
185282007-12-05 Michael Albinus <michael.albinus@gmx.de>
18529
18530 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18531 Move check for Vdbus_registered_functions_table to
18532 xd_read_queued_messages.
18533 (xd_read_queued_messages): Protect xd_read_message calls by
18534 internal_condition_case_1.
18535
185362007-12-04 Michael Albinus <michael.albinus@gmx.de>
18537
18538 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18539 Qdbus_system_bus and Qdbus_session_bus, respectively.
18540 (Vdbus_intern_symbols): Remove.
18541 (Vdbus_registered_functions_table): New hash table.
18542 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18543 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18544 Rewrite in order to manage registered functions by hash table
18545 Vdbus_registered_functions_table.
18546
185472007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18548
18549 * xterm.c: Update URL to Window Manager Specification in comment.
18550
185512007-12-02 Michael Albinus <michael.albinus@gmx.de>
18552
18553 * config.in (HAVE_DBUS): Add.
18554
18555 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18556 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18557 (obj): Add $(DBUS_OBJ).
18558 (LIBES): Add $(DBUS_LIBS).
18559 (dbusbind.o): New target.
18560
18561 * dbusbind.c: New file.
18562
18563 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18564
18565 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18566 (Qdbus_event): New Lisp symbol.
18567 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18568 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18569 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18570
18571 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18572
185732007-12-01 Richard Stallman <rms@gnu.org>
18574
18575 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18576
185772007-11-30 Jason Rumney <jasonr@gnu.org>
18578
18579 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18580 (w32con_reset_terminal_modes): Clear screen buffer.
18581 (w32_face_attributes): Don't use color indexes that are out of range.
18582 Only reverse the default colors.
18583
18584 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18585 WINDOWSNT.
18586
18587 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18588
185892007-11-29 Jason Rumney <jasonr@gnu.org>
18590
18591 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18592 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18593 if the terminal colors are initialized.
18594 (unspecified_fg, unspecified_bg): Remove unused declarations.
18595
185962007-11-29 Andreas Schwab <schwab@suse.de>
18597
18598 * keyboard.c (apply_modifiers): Fix typo.
18599
186002007-11-29 Richard Stallman <rms@gnu.org>
18601
18602 * keymap.c (Fcurrent_local_map): Doc fix.
18603
186042007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18605
18606 * s/gnu-kfreebsd.h: New file.
18607
186082007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18609
18610 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18611 Don't cast redundantly.
18612
18613 * keyboard.c (KEY_TO_CHAR): New macro.
18614 (parse_modifiers, apply_modifiers): Accept integer arguments.
18615 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18616 for chars and symbol keys.
18617 After doing such remapping, apply function-key-map again.
18618
186192007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18620
18621 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18622 compiled anymore.
18623
186242007-11-26 Andreas Schwab <schwab@suse.de>
18625
18626 * process.c (list_processes_1): Fix indentation level of the
18627 command column.
18628
186292007-11-23 Andreas Schwab <schwab@suse.de>
18630
18631 * editfns.c (Fformat): Handle %c specially since it requires the
18632 argument to be of type int.
18633
186342007-11-23 Markus Triska <markus.triska@gmx.at>
18635
18636 * emacs.c (main): Call init_editfns before init_process, since
18637 init_process sets Vprocess_connection_type depending on OS release.
18638
186392007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18640
18641 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18642 (find_symbol_value): Use do_symval_forwarding.
18643
18644 * data.c (set_internal): Set the value in the `cons-cell' (for
18645 Buffer_Local_values) not only for frame-local variables.
18646
186472007-11-22 Andreas Schwab <schwab@suse.de>
18648
18649 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18650 values to sprintf.
18651 * keymap.c (Fsingle_key_description): Likewise.
18652 * print.c (print_object): Likewise.
18653
186542007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18655
18656 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18657 file for image is nil.
18658
186592007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18660
18661 * term.c: Include stdarg.h.
18662 (fatal): Implement using varargs.
18663 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18664
186652007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18666
18667 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18668 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18669 Update call to buffer_slot_type_mismatch.
18670 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18671 (buffer_slot_type_mismatch): Update.
18672 * buffer.c (buffer_local_types): Remove.
18673 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18674 (defvar_per_buffer): Set the type in the buffer_objfwd.
18675
186762007-11-21 Jason Rumney <jasonr@gnu.org>
18677
18678 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18679 CreateFileMapping returns NULL on failure.
18680
186812007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18682
18683 * search.c (Fset_match_data): Remove the `evaporate' feature.
18684 (unwind_set_match_data): Don't use the `evaporate' feature.
18685
186862007-11-21 Jason Rumney <jasonr@gnu.org>
18687
18688 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18689
18690 * w32console.c (w32con_write_glyphs): Remove unused variables.
18691
186922007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18693
18694 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18695
18696 * s/darwin.h (MULTI_KBOARD): Remove.
18697
18698 * macfns.c (x_create_tip_frame, Fx_create_frame)
18699 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18700
187012007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18702
18703 * buffer.c (Fbuffer_local_value): Remove redundant test.
18704 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18705 than in `current-buffer' to match the comment.
18706 Do the swap using swap_in_global_binding.
18707
18708 * data.c (store_symval_forwarding, set_internal):
18709 * eval.c (specbind): Remove dead code.
18710
18711 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18712 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18713 Since we do not want to see internal Lisp_*fwd objects here.
18714
187152007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18716
18717 * sysdep.c (init_system_name): Use getaddrinfo if available.
18718
18719 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18720 (x_scroll_bar_note_movement): start, end, with, height in struct
18721 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18722
187232007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18724
18725 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18726
187272007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18728
18729 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18730 This undoes Richard's change of 14-Oct-2002.
18731
18732 * alloc.c (allocate_other_vector):
18733 * lisp.h (allocate_other_vector): Remove.
18734
18735 * window.c (struct save_window_data): Move non-lisp data to the end
18736 and make it `int' rather than Lisp_Object.
18737 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18738 Done wrap/unwrap integer values.
18739 (Fset_window_configuration, compare_window_configurations):
18740 Update use of fields to their new types.
18741
18742 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18743 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18744 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18745 (SET_SCROLL_BAR_X_WINDOW): Remove.
18746 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18747 Access the new x_window field directly.
18748 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18749 Don't wrap/unwrap integers into Lisp_Objects.
18750 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18751 (x_scroll_bar_report_motion):
18752 Don't wrap/unwrap integers into Lisp_Objects.
18753 (x_term_init): Use SDATA.
18754 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18755 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18756 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18757 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18758 * xfns.c (x_set_background_color):
18759 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18760 Access the new x_window field directly.
18761
18762 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18763 (allocate_pseudovector): Make non-static.
18764
18765 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18766 (allocate_pseudovector): Declare.
18767 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18768
187692007-11-15 Andreas Schwab <schwab@suse.de>
18770
18771 * editfns.c (Fformat): Correctly format EMACS_INT values.
18772 Also take precision into account when formatting an integer.
18773
18774 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18775
187762007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18777
18778 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18779 (syms_of_keyboard): Defsubr it.
18780
18781 * data.c (swap_in_global_binding): Fix longstanding bug where
18782 store_symval_forwarding was not called with the right second argument,
18783 thus causing objfwd-ing from being dropped.
18784
187852007-11-14 Juanma Barranquero <lekktu@gmail.com>
18786
18787 * macfns.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_backing_store)
18791 (Fx_display_visual_class, Fx_display_save_under):
18792 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18793 (Fx_display_pixel_height, Fx_display_planes)
18794 (Fx_display_color_cells, Fx_server_max_request_size)
18795 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18796 (Fx_display_mm_height, Fx_display_mm_width)
18797 (Fx_display_backing_store, Fx_display_visual_class)
18798 (Fw32_select_font, Fx_display_save_under):
18799 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18800 (Fx_display_pixel_height, Fx_display_planes)
18801 (Fx_display_color_cells, Fx_server_max_request_size)
18802 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18803 (Fx_display_save_under): Fix typos in docstrings.
18804
188052007-11-14 Juanma Barranquero <lekktu@gmail.com>
18806
18807 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18808 corresponding to deleted entries; they are an implementation detail.
18809 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18810 Remove variables.
18811 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18812 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18813 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18814 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18815 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18816 (Fw32_define_rgb_color, Fw32_load_color_file)
18817 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18818 Fix typos in docstrings.
18819 (Fx_server_version): Reflow docstring.
18820 (Fw32_shell_execute): Doc fixes.
18821
188222007-11-13 Juanma Barranquero <lekktu@gmail.com>
18823
18824 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18825 if w32_parse_hot_key returned nil.
18826
188272007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18828
18829 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18830
188312007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18832
aac0c6e3
MR
18833 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18834
18835 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18836
18837 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18838 Remove W32_SCROLL_BAR_CLICK_EVENT.
18839
18840 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18841 Add MULTIMEDIA_KEY_EVENT.
18842
18843 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18844 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18845 (make_lispy_event) [WINDOWSNT]: Use it to translate
18846 MULTIMEDIA_KEY_EVENT.
18847
18848 * w32term.h (WM_APPCOMMAND): Define if not already.
18849 (GET_APPCOMMAND_LPARAM): Likewise.
18850
18851 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18852 WM_APPCOMMAND.
18853
18854 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18855 (syms_of_w32fns): Export and initialize it.
18856 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18857
188582007-11-09 Chong Yidong <cyd@stupidchicken.com>
18859
18860 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18861 twice.
18862
18863 * xdisp.c (handle_face_prop): Fix last change.
18864
188652007-11-09 Richard Stallman <rms@gnu.org>
18866
18867 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18868 not just for after-strings and before-strings.
18869 Call face_for_overlay_string and pass the overlay to it.
18870 (handle_display_prop): Determine whether property came from an overlay.
18871 Pass OVERLAY arg to handle_single_display_spec.
18872 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18873 (load_overlay_strings): Fill in it->string_overlays.
18874 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18875
18876 * xfaces.c (face_for_overlay_string): Function renamed from
18877 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18878
18879 * dispextern.h (struct it): New elt string_overlays.
18880 New elt from_overlay, also in stack.
18881 Rearrange a few elements.
18882 (face_for_overlay_string): Decl renamed from
18883 face_at_buffer_position_no_overlays, and add argument.
18884
188852007-11-09 Richard Stallman <rms@gnu.org>
18886
18887 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18888 to get the base face for an overlay string.
18889
18890 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18891
18892 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18893
18894 * xdisp.c (handle_stop): Move some code out of loop.
18895
188962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18897
18898 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18899 Fix conversion from Lisp object to ATSUFontID.
18900
189012007-11-09 Jason Rumney <jasonr@gnu.org>
18902
18903 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18904
189052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18906
18907 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18908 Don't assume regions are aligned to page boundary.
18909 (print_load_command_name): Add LC_UUID if defined.
18910
189112007-11-09 Richard Stallman <rms@gnu.org>
18912
18913 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18914
189152007-11-07 Jason Rumney <jasonr@gnu.org>
18916
18917 * s/windows95.h: Remove.
18918
189192007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18920
18921 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18922 abort with a message on unhandled store_type values.
18923
189242007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18925
18926 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18927 Remove HAVE_X11R5 and HAVE_X11R4.
18928
189292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18930
18931 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18932
189332007-11-01 Johan Bockgård <bojohan@gnu.org>
18934
18935 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18936 Don't set s->stippled_p here, since it has already been set by
18937 x_set_glyph_string_gc from x_draw_glyph_string.
18938
189392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18940
18941 * sunfns.c: Remove file.
18942
18943 * m/sun386.h:
18944 * m/sun2.h:
18945 * m/sparc.h: Remove Sun windows code.
18946
189472007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18948
18949 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18950 (init_keyboard): Set current_kboard's window-system to nil.
18951 (tty_read_avail_input): Typo.
18952 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18953
189542007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18955
18956 * s/usg5-4.h:
18957 * s/usg5-3.h:
18958 * s/ptx.h:
18959 * m/is386.h:
18960 * m/ibmps2-aix.h:
18961 * Makefile.in: Remove all mentions of X10.
18962
18963 * dispnew.c (syms_of_display): Don't mention version 10.
18964
189652007-10-28 Juanma Barranquero <lekktu@gmail.com>
18966
18967 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18968 ($(BLD)/abbrev.$(O)): Remove.
18969
189702007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18971
18972 Rewrite abbrev.c in Elisp.
18973 * image.c (Qcount): Don't declare as extern.
18974 (syms_of_image): Initialize and staticpro `Qcount'.
18975 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18976 * emacs.c (main): Don't call syms_of_abbrev.
18977 * Makefile.in (obj): Remove abbrev.o.
18978 (abbrev.o): Remove.
18979 * abbrev.c: Remove.
18980
189812007-10-26 Martin Rudalics <rudalics@gmx.at>
18982
18983 * window.c (window_min_size_2): Don't count header-line.
18984
189852007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18986
18987 * frame.h (struct frame): Move all bit fields after the first bit
18988 field to take advantage of the available space. Group all the
18989 chars together to reduce wasted space due to padding.
18990
189912007-10-26 Juanma Barranquero <lekktu@gmail.com>
18992
18993 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18994
18995 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18996 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18997 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18998 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18999 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19000 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19001 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19002 (last_marked, mark_object_loop_halt): Make static.
19003
19004 * frame.c (syms_of_frame) <delete-frame-functions>:
19005 Fix typo in docstring.
19006
190072007-10-25 Juanma Barranquero <lekktu@gmail.com>
19008
19009 * w32.c (init_environment): Fix tiny memory leak.
19010 (w32_get_resource): Remove unused variable `ok'.
19011
190122007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19013
19014 Make `window-system' into a keyboard-local variable (rather than
19015 frame-local as done originally by multi-tty).
19016
19017 * keyboard.h (struct kboard): Add Vwindow_system.
19018 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19019 (mark_kboards): Mark Vwindow_system.
19020
19021 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19022 (init_display): Don't set the obsolete `window-system' frame-param.
19023
19024 * xterm.c (x_term_init):
19025 * w32term.c (w32_create_terminal):
19026 * term.c (init_tty): Set Vwindow_system.
19027 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19028 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19029
19030 * xfns.c (Fx_create_frame, x_create_tip_frame):
19031 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19032 * macfns.c (Fx_create_frame):
19033 Don't set the obsolete `window-system' frame-param.
19034
19035 * frame.h (Qwindow_system): Remove.
19036 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19037 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19038
190392007-10-24 Richard Stallman <rms@gnu.org>
19040
19041 * frame.c (x_figure_window_size): For fullscreen case,
19042 set USPosition | PPosition without clobbering rest of window_prompting.
19043
19044 * keyboard.c (Fcurrent_idle_time): Doc fix.
19045
19046 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19047
190482007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19049
19050 * process.c (unwind_request_sigio): Only define if __ultrix__.
19051
19052 * callproc.c (child_setup): Remove spurious *.
19053
19054 * lisp.h (Fget_text_property): Declare.
19055 (have_menus_p): Declare it here rather than in sys-dep header files.
19056 * macterm.h (have_menus_p):
19057 * msdos.h (have_menus_p):
19058 * xterm.h (have_menus_p): Remove.
19059
19060 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19061 (Fmake_variable_frame_local): Just check the variable's const-ness
19062 rather than checking nil or t.
19063
190642007-10-22 Jason Rumney <jasonr@gnu.org>
19065
19066 * w32fns.c: Include math.h.
19067 (w32_abort): Declaration moved to nt/config.nt.
19068
19069 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19070 (abort): Redefinition moved to nt/config.nt.
19071
19072 * m/windowsnt.h: Remove.
19073
190742007-10-22 Juanma Barranquero <lekktu@gmail.com>
19075
19076 * emacs.c (Fdump_emacs): Fix typo in message.
19077 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19078 <installation-directory>: Reflow docstring.
19079
190802007-10-22 Juri Linkov <juri@jurta.org>
19081
19082 * minibuf.c: Allow minibuffer default to be a list of default values.
19083 With empty input use the first element of this list as returned default.
19084 (string_to_object)
19085 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19086 (read_minibuf): If defalt is cons, set histstring to its car.
19087 (Fread_string): If default_value is cons, set val to its car.
19088 (Fread_buffer): If def is cons, use its car.
19089 (Fcompleting_read): If defalt is cons, set val to its car.
19090
190912007-10-21 Michael Albinus <michael.albinus@gmx.de>
19092
19093 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19094
190952007-10-20 Juanma Barranquero <lekktu@gmail.com>
19096
19097 * doc.c (Fdocumentation): Check for advice in all cases.
19098
190992007-10-19 Chong Yidong <cyd@stupidchicken.com>
19100
19101 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19102
191032007-10-19 Richard Stallman <rms@gnu.org>
19104
19105 * doc.c (Fdocumentation): Check for and handle an advised function.
19106
191072007-10-19 Juanma Barranquero <lekktu@gmail.com>
19108
19109 * process.c (Fset_process_filter): Doc fix.
19110
191112007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19112
19113 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19114 which caused key-translation-map to applied repeatedly (thus breaking
19115 double-mode).
19116
191172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19118
19119 * xselect.c (x_own_selection, x_handle_selection_clear)
19120 (x_clear_frame_selections):
19121 * w32menu.c (list_of_panes, list_of_items):
19122 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19123 * textprop.c (validate_plist, interval_has_all_properties)
19124 (interval_has_some_properties, interval_has_some_properties_list)
19125 (add_properties, text_property_list):
19126 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19127 * minibuf.c (Fassoc_string):
19128 * macselect.c (x_own_selection, x_clear_frame_selections)
19129 (Fx_disown_selection_internal):
19130 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19131 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19132
191332007-10-17 Chong Yidong <cyd@stupidchicken.com>
19134
19135 * process.c: Link to libs for calling res_init() if available.
19136 (Fmake_network_process): Call res_init() before getaddrinfo or
19137 gethostbyname, if possible.
19138
191392007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19140
19141 * lread.c (read1): Set pvectype for char_tables.
19142
19143 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19144 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19145 Add type checks.
19146 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19147
19148 * alloc.c (free_misc): Use XMISCTYPE.
19149 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19150
191512007-10-17 Glenn Morris <rgm@gnu.org>
19152
19153 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19154 (syms_of_minibuf): Add Qcompletion_ignore_case.
19155 * dired.c (Qcompletion_ignore_case): Change to external.
19156 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19157 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19158 (Fread_file_name): Use it rather than intern'ing.
19159
19160 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19161 (Fread_coding_system): Ignore case of user input.
19162
191632007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19164
19165 * xdisp.c (handle_display_prop): Ignore display specs after
19166 replacing one when string text is being replaced.
19167 (handle_single_display_spec): Pretend as if characters with display
19168 property haven't been consumed only when buffer text is being replaced.
19169
191702007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19171
19172 * xfns.c (Fx_create_frame, Fx_display_list):
19173 * window.c (window_fixed_size_p, enlarge_window)
19174 (shrink_window_lowest_first):
19175 * macterm.c (init_font_name_table):
19176 * macfns.c (Fx_create_frame, Fx_display_list):
19177 * lread.c (close_load_descs):
19178 * keyboard.c (read_char_x_menu_prompt):
19179 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19180 * coding.c (code_convert_region_unwind): Test the type of an object
19181 rather than just !NILP before extracting data from it.
19182
19183 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19184
19185 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19186 (XMISCANY): New macro.
19187 (XMISCTYPE): Use it.
19188 (struct Lisp_Misc_Any): New type.
19189 (union Lisp_Misc): Use it.
19190 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19191 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19192 (find_symbol_value, set_internal, default_value, Fset_default)
19193 (Fmake_variable_buffer_local, Fmake_local_variable)
19194 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19195 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19196 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19197 * alloc.c (allocate_buffer): Set the size and tag.
19198 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19199 Use XMISCANY.
19200 (die): Follow the GNU convention for error messages.
19201 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19202 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19203 tag any more.
19204 (set_buffer_internal_1):
19205 * frame.c (store_frame_param):
19206 * eval.c (specbind):
19207 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19208
19209 * doc.c (Fsnarf_documentation): Simplify.
19210
192112007-10-14 Juanma Barranquero <lekktu@gmail.com>
19212
19213 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19214 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19215
192162007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19217
19218 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19219
192202007-10-14 Juanma Barranquero <lekktu@gmail.com>
19221
19222 * eval.c (do_autoload): Don't save autoloads.
19223
19224 * data.c (Ffset): Save autoload of the function being set.
19225
192262007-10-07 John Paul Wallington <jpw@pobox.com>
19227
19228 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19229 parameter before setting up faces.
19230
192312007-10-13 Eli Zaretskii <eliz@gnu.org>
19232
19233 * ccl.c (Fregister_code_conversion_map):
19234 * keyboard.c (append_tool_bar_item): Reformat last change.
19235
19236 * lisp.h (eabs): Rename from `abs'. All callers changed.
19237
192382007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19239
19240 * buffer.c (add_overlay_mod_hooklist):
19241 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19242 * fontset.c (make_fontset):
19243 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19244 (append_tool_bar_item):
19245 * macmenu.c (grow_menu_items):
19246 * w32menu.c (grow_menu_items):
19247 * xmenu.c (grow_menu_items): Use larger_vector.
19248
192492007-10-13 Eli Zaretskii <eliz@gnu.org>
19250
19251 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19252 selected frame'' on MSDOS).
19253
192542007-10-12 Martin Rudalics <rudalics@gmx.at>
19255
19256 * frame.c (Qexplicit_name): New variable.
19257 (x_report_frame_params): Report it in parameter alist.
19258 (syms_of_frame): Intern and staticpro it.
19259
192602007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19261
19262 * macfns.c (x_create_tip_frame): Set terminal for frame.
19263
192642007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19265
19266 * frame.c (Qenvironment): Remove.
19267 (syms_of_frame) <Qenvironment>: Don't initialize.
19268 (Fdelete_frame): Don't treat the `environment' param specially.
19269 * frame.h (Qenvironment): Don't declare.
19270 * callproc.c (set_initial_environment): Don't set unused frame param.
19271
19272 * frame.c (Fframe_with_environment): Remove.
19273 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19274
19275 * lisp.h (Fframe_with_environment): Don't declare.
19276
192772007-10-10 Juanma Barranquero <lekktu@gmail.com>
19278
19279 * indent.c (indent_tabs_mode, last_known_column)
19280 (last_known_column_modified): Make static.
19281 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19282
192832007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19284
19285 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19286
192872007-10-09 Jason Rumney <jasonr@gnu.org>
19288
19289 * w32term.c (x_set_window_size): Disable code that attempts to tell
19290 Lisp code about a size change before it actually happens.
19291
192922007-10-09 Richard Stallman <rms@gnu.org>
19293
19294 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19295 return HANDLED_RETURN.
19296
192972007-10-08 Martin Rudalics <rudalics@gmx.at>
19298
19299 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19300 when there's an unread command event.
19301
19302 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19303 window autoselection act appropriately when leaving selected frame.
19304 (syms_of_frame): Initialize focus_follows_mouse.
19305 * frame.h (focus_follows_mouse): Extern it.
19306 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19307 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19308 * msdos.c (dos_rawgetc): Likewise.
19309 * w32term.c (w32_read_socket): Likewise.
19310 * xterm.c (handle_one_xevent): Likewise.
19311 * xdisp.c (syms_of_xdisp): In doc-string of
19312 mouse-autoselect-window mention focus-follows-mouse.
19313
193142007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19315
19316 * macterm.c (mac_load_query_font): Fix missing return value.
19317 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19318 Add BLOCK_INPUT.
19319
193202007-10-08 Richard Stallman <rms@gnu.org>
19321
19322 * xdisp.c (get_window_cursor_type): Implement documented behavior
19323 for cursor-in-non-selected-windows = t.
19324
193252007-10-08 Jason Rumney <jasonr@gnu.org>
19326
19327 * w32.c (w32_get_resource): Always close registry keys.
19328
193292007-10-08 Jason Rumney <jasonr@gnu.org>
19330
19331 * makefile.w32-in (LIBS): Add COMCTL32.
19332
19333 * w32fns.c (globals_of_w32fns): Init common controls.
19334
193352007-10-08 Richard Stallman <rms@gnu.org>
19336
19337 * image.c (our_memory_buffer): Rename from omfib_buffer.
19338
193392007-10-08 Richard Stallman <rms@gnu.org>
19340
19341 * buffer.c (Foverlays_at): Doc fix.
19342
193432007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19344
19345 * fns.c (Fplist_put): Preserve uneven tail data.
19346
193472007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19348
19349 * termhooks.h (enum event_kind): Remove trailing comma.
19350
19351 * frame.h (enum): Remove trailing comma.
19352
193532007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19354
19355 * w32proc.c (delete_child): Don't terminate threads of zombies.
19356
193572007-10-08 Martin Rudalics <rudalics@gmx.at>
19358
19359 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19360
19361 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19362 last-repeatable-command.
19363 (init_kboard): Initialize Vlast_repeatable_command.
19364 (command_loop_1): Set it to real_this_command unless that was
19365 bound to an input event.
19366 (mark_kboards): Mark it.
19367
193682007-10-08 Richard Stallman <rms@gnu.org>
19369
19370 * eval.c (condition-case): Doc fix.
19371
193722007-10-08 Masatake YAMATO <jet@gyve.org>
19373
19374 * xfaces.c (tty_supports_face_attributes_p): Fix code
19375 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19376 was copied and not edited.
19377
193782007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19379
19380 Add new `input-decode-map' keymap and use it for terminal
19381 escape sequences.
19382 * keyboard.h (struct kboard): Add Vinput_decode_map.
19383 Remove Vlocal_key_translation_map.
19384 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19385 (init_kboard): Init input-decode-map.
19386 Replace local-key-translation-map back with key-translation-map.
19387 (syms_of_keyboard): Declare input-decode-map.
19388 Remove local-key-translation-map. Update docstrings.
19389 (mark_kboards): Mark Vinput_decode_map.
19390 Don't mark Vlocal_key_translation_map.
19391 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19392 Replace local-key-translation-map back with key-translation-map.
19393 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19394 Bind in input-decode-map rather than function-key-map.
19395
19396 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19397 This was made redundant by the previous introduction of XSETPVECTYPE.
19398
193992007-10-09 Richard Stallman <rms@gnu.org>
19400
19401 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19402
194032007-09-29 Richard Stallman <rms@gnu.org>
19404
19405 * eval.c (internal_condition_case_2, internal_condition_case_1)
19406 (internal_condition_case): Reenable abort if x_catching_errors ()
19407 to see if that really happens and why.
19408
194092007-10-06 Andreas Schwab <schwab@suse.de>
19410
19411 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19412
194132007-10-04 Juanma Barranquero <lekktu@gmail.com>
19414
19415 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19416
194172007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19418
19419 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19420
194212007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19422
19423 * window.h (struct window):
19424 * window.c (struct save_window_data, struct saved_window):
19425 * termhooks.h (struct terminal):
19426 * process.h (struct Lisp_Process):
19427 * frame.h (struct frame):
19428 * buffer.h (struct buffer):
19429 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19430 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19431 The size field of (pseudo)vectors is now unsigned.
19432 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19433
19434 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19435 Turn `count' into an integer.
19436
19437 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19438 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19439 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19440 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19441 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19442
19443 * alloc.c (allocate_pseudovector): New fun.
19444 (ALLOCATE_PSEUDOVECTOR): New macro.
19445 (allocate_window, allocate_terminal, allocate_frame)
19446 (allocate_process): Use it.
19447 (mark_vectorlike): New function.
19448 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19449 (mark_terminals): Use it.
19450 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19451 (Fmake_byte_code): Use XSETPVECTYPE.
19452
19453 * frame.c (Fframe_parameters): Minor simplification.
19454
19455 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19456
19457 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19458
19459 * buffer.c (Fget_buffer_create, init_buffer_once):
19460 * lread.c (defsubr):
19461 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19462
19463 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19464 defined differently in the m/*.h files.
19465 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19466 (XSETPVECTYPE): New macro.
19467 (XSETPSEUDOVECTOR): Use it.
19468
19469 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19470 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19471
19472 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19473 * lread.c (defvar_per_buffer):
19474 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19475
19476 * window.c (candidate_window_p): Only consider as visible frames that
19477 are on the same terminal.
19478
19479 * m/ibms390x.h (MARKBIT): Remove unused macro.
19480
194812007-10-01 Juanma Barranquero <lekktu@gmail.com>
19482
19483 * lread.c (Fload): Fix typo in docstring.
19484
194852007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19486
19487 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19488 of a non-zero value can't yield zero.
19489
194902007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19491
19492 * term.c (term_clear_mouse_face, term_mouse_highlight)
19493 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19494
19495 * print.c (safe_debug_print): Use XHASH.
19496
19497 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19498 Lisp elements such as tags.
19499 (XHASH): New macro.
19500 (EQ): Use it.
19501 (SREF, SSET, STRING_COPYIN): Use SDATA.
19502 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19503
19504 * alloc.c (mark_terminal): Remove left-over declaration.
19505 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19506 (allocate_vectorlike): Remove type argument. Adjust callers.
19507 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19508 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19509
19510 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19511 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19512 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19513 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19514 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19515 Use them.
19516
19517 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19518 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19519 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19520
195212007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19522
19523 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19524 loaded by default.
19525
195262007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19527
19528 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19529 on this tty.
19530 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19531
19532 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19533 Update all users.
19534 (handle_one_term_event): Use Gpm_DrawPointer.
19535 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19536 Signal errors instead of returning nil. Always return nil.
19537 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19538 Make it a noop if gpm-mouse was not activated.
19539 (syms_of_term): Update names.
19540
195412007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19542
19543 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19544 (init_sys_modes): Check that gpm_tty is the current tty.
19545
19546 * alloc.c (allocate_terminal): Set the vector size to only count the
19547 lisp fields. Initialize those to nil.
19548 (mark_object): Don't treat terminals specially.
19549 (mark_terminal): Remove.
19550 (mark_terminals): Use mark_object instead.
19551
19552 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19553 the GC to the beginning.
19554
19555 * indent.h:
19556 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19557
19558 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19559
195602007-09-25 Jason Rumney <jasonr@gnu.org>
19561
19562 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19563
19564 * w32console.c (create_w32cons_output): Remove.
19565
19566 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19567
19568 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19569 (reset_sys_modes): Use reset_terminal_modes_hook.
19570
195712007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19572
19573 * eval.c (do_autoload): Don't output any message.
19574
195752007-09-24 Juri Linkov <juri@jurta.org>
19576
19577 * emacs.c (standard_args): Change priority of "--no-splash"
19578 from 40 to 3. Add "--no-desktop" with the same priority.
19579
195802007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19581
19582 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19583 and optimize the case where they are all 1.
19584
195852007-09-23 Johannes Weiner <hannes@saeurebad.de>
19586
19587 * lisp.h (abs): Define if not defined.
19588 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19589 Don't define `abs', since it's defined in lisp.h.
19590
195912007-09-22 Eli Zaretskii <eliz@gnu.org>
19592
19593 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19594 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19595 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19596 (init_tty): Use DEV_TTY instead of "/dev/tty".
19597 [WINDOWSNT]: No need to protect from NAME arg being null.
19598
195992007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19600
19601 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19602 up the tty state.
19603
196042007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19605
19606 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19607 (gpm_tty): Change its type.
19608 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19609 (gpm_tty): Change its type and initialize it.
19610 (Fterm_open_connection): Check the frame is indeed a tty.
19611 Use the new gpm_tty.
19612 (Fterm_close_connection): Use the new gpm_tty.
19613 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19614 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19615
196162007-09-21 Juanma Barranquero <lekktu@gmail.com>
19617
19618 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19619 underline_color, to draw strike-through.
19620
196212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19622
19623 * lisp.h (allocate_terminal): Declare.
19624
19625 * window.c (candidate_window_p): Consider frames that are being placed
19626 by the user as somewhere between visible and iconified.
19627 (window_loop): Prefer windows on the current frame.
19628 (Fselect_window): Move the use of select-frame to the beginning so we
19629 can just delegate all the work (it'll call us back anyway).
19630
19631 * frame.c (Qdisplay_environment_variable):
19632 * frame.h (Qdisplay_environment_variable): Delete.
19633
19634 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19635 of the first arg, since that value may be a union.
19636
19637 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19638 parameter rather than Qdisplay_environment_variable. If all else
19639 fails, look for DISPLAY in initial-environment.
19640
196412007-09-21 Glenn Morris <rgm@gnu.org>
19642
19643 * Makefile.in (emacstool): Remove target.
19644 (lisp, shortlisp): Remove termdev.elc.
19645
196462007-09-21 Markus Triska <markus.triska@gmx.at>
19647
19648 * xterm.c (x_delete_display): Compile session management conditionally.
19649
196502007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19651
19652 * callproc.c (getenv_internal_1): New function.
19653 (getenv_internal): Use it.
19654 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19655
19656 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19657 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19658 (Fset_terminal_parameter): Work with dead terminals as well.
19659 (Fmodify_terminal_parameters): Remove.
19660
19661 * terminal.c (get_terminal): Handle terminals.
19662 Make sure the terminal returned is live.
19663 (create_terminal): Use allocate_terminal.
19664 (mark_terminals): Move to alloc.c.
19665 (delete_terminal): Use terminal->name as liveness status.
19666 NULL out fields after freeing their contents.
19667 Don't deallocate the object.
19668 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19669 rather than an int.
19670 (Fterminal_live_p): Accept non-integer arguments.
19671 (Fterminal_list): Return terminal objects rather than an ints.
19672
19673 * alloc.c (enum mem_type): New member for `terminal' objects.
19674 (allocate_terminal): New function.
19675 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19676 Handle terminals.
19677 (mark_terminal): New fun.
19678 (mark_terminals): Move from terminal.c.
19679
19680 * term.c (get_tty_terminal): Don't treat output_initial specially.
19681 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19682 (delete_tty): Use terminal->name as liveness status.
19683
19684 * termhooks.h (struct terminal): Make it into a pseudovector.
19685 Remove `deleted' replaced by checking `name's nullness.
19686
19687 * print.c (print_object): Handle terminals.
19688
19689 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19690 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19691
19692 * frame.c (make_terminal_frame):
19693 * keyboard.c (tty_read_avail_input):
19694 * w32term.c (x_delete_terminal):
19695 * xfns.c (Fx_create_frame, x_create_tip_frame):
19696 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19697
196982007-09-20 Glenn Morris <rgm@gnu.org>
19699
19700 * process.c (Fmake_network_process): Doc fix.
19701
197022007-09-19 Jason Rumney <jasonr@gnu.org>
19703
19704 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19705
197062007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19707
19708 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19709 Fix a C warning regarding variable constness.
19710
19711 * xterm.c (handle_one_xevent): Fix a C warning.
19712
197132007-09-18 Jason Rumney <jasonr@gnu.org>
19714
19715 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19716
197172007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19718
19719 * gtkutil.c (gdpy_def): New variable.
19720 (xg_initialize): Initialize gdpy_def.
19721 (xg_display_close): If no other display exists, set gdpy_def to a
19722 new connection.
19723
197242007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19725
19726 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19727 when we have no file name for the icon.
19728 (xg_tool_bar_expose_callback): Remove.
19729 (xg_create_tool_bar): Don't connect expose signal to
19730 xg_tool_bar_expose_callback.
19731 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19732
197332007-09-16 Andreas Schwab <schwab@suse.de>
19734
19735 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19736 values instead of zapping them.
19737
197382007-09-14 Glenn Morris <rgm@gnu.org>
19739
19740 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19741 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19742 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19743 scope and rename to omfib_buffer for clarity.
19744 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19745
197462007-09-14 Kenichi Handa <handa@m17n.org>
19747
19748 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19749
197502007-09-13 Jason Rumney <jasonr@gnu.org>
19751
19752 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19753
19754 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19755
19756 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19757 (mac_term_init): Call here instead, passing rif.
19758
197592007-09-13 Glenn Morris <rgm@gnu.org>
19760
19761 * s/hpux.h: No longer define `static' as nothing.
19762
197632007-09-13 Johan Bockgård <bojohan@gnu.org>
19764
19765 * callint.c (Fcall_interactively): Remove unused var `fun'.
19766
197672007-09-12 Romain Francoise <romain@orebokech.com>
19768
19769 * window.c (prefer_window_split_horizontally, display_buffer):
19770 Revert 2007-09-08 change.
19771
197722007-09-12 Glenn Morris <rgm@gnu.org>
19773
19774 * alloca.c: Remove file.
19775 * Makefile.in (alloca): Do not undef.
19776 (allocaobj, alloca.o): Remove.
19777 (otherobj): Remove allocaobj.
19778 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19779 * regex.c (C_ALLOCA): Remove all references and code that was only
19780 used when this was defined.
19781 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19782 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19783 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19784
19785 * Makefile.in (SOURCES, unlock, relock): Delete.
19786
19787 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19788 (menu_grab_callback): All uses changed.
19789
19790 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19791 (x_reply_selection_request): All uses changed.
19792
197932007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19794
19795 * lread.c (load_warn_old_style_backquotes): Change message to look
19796 better when it appears in the middle of byte-compiler messages.
19797
197982007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19799
19800 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19801
19802 * xterm.c (x_create_terminal): Add comment.
19803
19804 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19805
198062007-09-10 Richard Stallman <rms@gnu.org>
19807
19808 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19809
198102007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19811
19812 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19813 (DEFUN): Document `intspec', use it instead of `prompt'.
19814
19815 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19816
19817 * data.c (Finteractive_form): If the interactive specification starts
19818 with a `(', use it as a Lisp form.
19819
19820 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19821 name and file modes.
19822
19823 * callint.c (Fcall_interactively): Comment fixes.
19824
198252007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19826
19827 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19828 and compiled functions.
19829
198302007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19831
19832 * window.c (prefer_window_split_horizontally): New variable.
19833 (display_buffer): Consider splitting window horizontally depending
19834 on prefer_window_split_horizontally.
19835
198362007-09-08 Eli Zaretskii <eliz@gnu.org>
19837
19838 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19839
198402007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19841
19842 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19843
19844 * frame.c (x_set_frame_parameters): Check number is positive before
19845 using XFASTINT.
19846
19847 * window.c (freeze_window_start): Don't presume selected_window holds
19848 a window object.
19849 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19850
198512007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19852
19853 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19854
198552007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19856
19857 * window.c (Vsplit_window_preferred_function): New var.
19858 (Fdisplay_buffer): Use it.
19859 (syms_of_window): Export, and initialize it.
19860
198612007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19862
19863 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19864
198652007-09-06 Glenn Morris <rgm@gnu.org>
19866
19867 * gtkutil.c (menu_grab_callback) <cnt>:
19868 * xselect.c (x_reply_selection_request) <cnt>: Move static
19869 variable to file scope.
19870
198712007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19872
19873 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19874 consistent values of selected_frame and selected_window.
19875
198762007-09-04 Jason Rumney <jasonr@gnu.org>
19877
19878 * w32console.c (initialize_w32_display): Zero unused hooks.
19879
198802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19881
19882 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19883 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19884
198852007-09-04 Jason Rumney <jasonr@gnu.org>
19886
19887 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19888 in w32console.c. Set up input. Remove XXX comments that have been
19889 confirmed as correct.
19890
19891 * s/ms-w32.h (MULTI_KBOARD): Define.
19892
19893 * w32console.c (one_and_only_w32cons): Remove.
19894 (initialize_w32_display): Take terminal argument.
19895
19896 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19897 initialize_w32_display.
19898 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19899
19900 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19901
19902 * keyboard.c (discard_mouse_events): Discard it.
19903 (make_lispy_event): Translate it to a lisp event.
19904 (lispy_wheel_names): Add wheel-left and right events.
19905 (syms_of_keyboard): Enlarge wheel_syms.
19906
19907 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19908 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19909
19910 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19911
19912 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19913 from WM_MOUSEHWHEEL.
19914 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19915
19916 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19917 terminal.
19918
19919 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19920 keyboard for the terminal.
19921
199222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19923
19924 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19925 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19926 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19927 and resume-tty-function to resume-tty-hook.
19928 (Fsuspend_tty, Fresume_tty): Use new names.
19929
199302007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19931
19932 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19933 if it starts with "n:".
19934
199352007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19936
19937 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19938
199392007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19940
19941 * frame.h:
19942 * frame.c (Qterm_environment_variable): Remove.
19943 (syms_of_frame): Don't init and staticpro it.
19944
19945 * callproc.c (getenv_internal): Remove special case for $TERM.
19946
19947 * callproc.c (Vinitial_environment): New variable.
19948 (set_initial_environment): Initialize it.
19949 (syms_of_callproc): Declare it.
19950 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19951 TERM under which a process runs is never related to the TERM in which
19952 Emacs is running.
19953
199542007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19955
19956 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19957 * s/darwin.h: ... do it here.
19958
199592007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19960
19961 * lisp.h (set_initial_environment): Rename from set_global_environment.
19962
19963 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19964 removed by mistake on the multi-tty branch.
19965
19966 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19967 (Fmodify_frame_parameters): Return a value.
19968
19969 * image.c (png_load): Comment-out var only used in commented-out code.
19970
19971 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19972 before passing it to mark_object.
19973
19974 * xfaces.c (internal_resolve_face_name): Return a value.
19975 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19976
19977 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19978 (x_icon): Comment-out var only used in commented-out code.
19979
199802007-08-29 Romain Francoise <romain@orebokech.com>
19981
19982 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19983 QUIT hasn't been provided.
19984
199852007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19986
19987 * callproc.c (child_setup, getenv_internal): Use the
19988 display-environment-variable and term-environment-variable frame params.
19989 (set_initial_environment): Initialise Vprocess_environment.
19990
19991 * config.in: Disable multi-keyboard support on a mac.
19992
19993 * frame.c (Qterm_environment_variable)
19994 (Qdisplay_environment_variable): New variables.
19995 (syms_of_frame): Intern and staticpro them.
19996 (Fmake_terminal_frame): Disable output method test.
19997
19998 * frame.h: Declare them here.
19999
20000 * macfns.c (x_set_mouse_color): Get rif from the frame.
20001 (x_set_tool_bar_lines): Don't use updating_frame.
20002 (mac_window): Add 2 new parameters for consistency with other systems.
20003 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20004 frame parameters following what is done in X11 and w32. Don't use
20005 FRAME_MAC_DISPLAY_INFO.
20006 (Fx_open_connection, start_hourglass): Remove window-system check.
20007 (x_create_tip_frame): Get the keyboard from the terminal.
20008
20009 * macmenu.c: Reorder includes.
20010 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20011
20012 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20013 terminal parameter.
20014 (x_clear_frame): Add a frame parameter.
20015 (note_mouse_movement): Get rif from the frame.
20016 (mac_term_init): Initialize the terminal.
20017 (mac_initialize): Make static and move terminal initialization ...
20018 (mac_create_terminal): ... to this new function.
20019
20020 * macterm.h (struct mac_display_info): Add terminal.
20021 (mac_initialize): Delete declaration.
20022
20023 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20024
20025 * sysdep.c: Comment out text after #endif.
20026
20027 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20028 is defined. Better initialize ttys in windows. Use terminal
20029 specific mouse_position_hook.
20030
20031 * termhooks.h (union display_info): Add mac_display_info.
20032
20033 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20034 Set the default minibuffer frame, window_system and the rest of the
20035 frame parameters following what is done in X11.
20036
20037 * w32term.c (w32_initialize): Make static.
20038
20039 * xselect.c (x_handle_selection_clear): Only access
20040 terminal->kboard when MULTI_KBOARD is defined.
20041
20042 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20043 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20044
200452007-08-29 Jason Rumney <jasonr@gnu.org>
20046
20047 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20048 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20049
20050 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20051 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20052
20053 * keyboard.c (restore_kboard_configuration): Only define when
20054 MULTI_KBOARD defined.
20055
20056 * makefile.w32-in: Update dependancies from Makefile.in.
20057 (OBJ1): Add terminal.$(O)
20058
20059 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20060 Don't define function body.
20061 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20062
20063 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20064
20065 * w32.c (request_sigio, unrequest_sigio): Remove.
20066
20067 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20068 (w32con_clear_frame, w32con_clear_end_of_line)
20069 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20070 (w32con_delete_glyphs, w32con_set_terminal_window)
20071 (scroll_line, w32_sys_ring_bell): Add frame arg.
20072 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20073 Add terminal arg.
20074 (PICK_FRAME): Remove.
20075 (w32con_write_glyphs): Use frame specific terminal coding.
20076 (one_and_only_w32cons): New global variable.
20077 (initialize_w32_display): Use it for storing hooks.
20078 (create_w32cons_output): New function.
20079
20080 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20081 arg a frame.
20082
20083 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20084 Set window_system.
20085 (x_set_tool_bar_lines): Don't use updating_frame.
20086 (Fx_create_frame): Set terminal and ref count.
20087 (Fx_open_connection): Remove window-system check.
20088
20089 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20090
20091 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20092 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20093 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20094 Add frame arg.
20095 (x_delete_terminal, w32_create_terminal): New functions.
20096 (w32_term_init): Create a terminal.
20097 (w32_initialize): Move terminal specific initialization to
20098 w32_create_terminal.
20099
20100 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20101 (w32_clear_rect, w32_clear_area): Use background from frame.
20102 (w32_display_info): Add terminal.
20103 (w32_sys_ring_bell, x_delete_display): Declare here.
20104
20105 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20106
20107 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20108
201092007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20110
20111 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20112 Fix get_named_tty calls for the controlling tty.
20113
201142007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20115
20116 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20117
201182007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20119
20120 * term.c (tty_insert_glyphs): Add missing first parameter.
20121
201222007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20123
20124 * buffer.c (Fbuffer_list, Fbury_buffer):
20125 Take frame->buried_buffer_list into account.
20126
20127 * cm.c (current_tty): New variable, for cmputc().
20128 (cmputc): Use it.
20129 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20130 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20131 (cmgoto): Add tty parameter. Pass it on to calccost().
20132 Use emacs_tputs() instead of tputs().
20133
20134 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20135 tputs().
20136 (current_tty): New variable, for cmputc().
20137 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20138
20139 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20140 (internal_condition_case, internal_condition_case_1)
20141 (internal_condition_case_2): Don't abort when x_catching_errors.
20142
20143 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20144 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20145 prevent crashes caused by bogus longjmps in read_char.
20146
20147 * keymap.h (Fset_keymap_parent): Add EXFUN.
20148
20149 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20150 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20151 Remove redundant definition.
20152
20153 * macfns.c (x_set_mouse_color, x_make_gc):
20154 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20155
20156 * w32term.c (x_free_frame_resources):
20157 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20158 (w32_initialize): Use the accessor macros for terminal characteristics.
20159
20160 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20161 Use the accessor macros for terminal characteristics.
20162 * msdos.c (internal_terminal_init): Use the accessor macros for
20163 terminal characteristics.
20164 (ScreenVisualBell, internal_terminal_init):
20165 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20166
20167 * termopts.h (no_redraw_on_reenter): Declare.
20168
20169 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20170 (mark_terminals, mark_ttys): Declare.
20171 (Fgarbage_collect): Call them.
20172 (mark_object): Mark buried_buffer_list.
20173
20174 * prefix-args.c: Include stdlib.h for exit.
20175
20176 * syssignal.h: Add comment.
20177
20178 * indent.c: Include stdio.h.
20179
20180 * window.h (Vinitial_window_system): Declare.
20181 (Vwindow_system): Delete declaration.
20182
20183 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20184
20185 * image.c (lookup_image): Don't initialize `c' until the xasserts
20186 have been run.
20187
20188 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20189 FRAME_FOREGROUND_PIXEL.
20190
20191 * print.c (print_preprocess): Don't lose print_depth levels while
20192 iterating.
20193
20194 * widget.c (update_from_various_frame_slots):
20195 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20196
20197 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20198 frames.
20199 (window_internal_height): Remove bogus make_number call.
20200 (init_window_once): Call make_terminal_frame with two zero parameters.
20201
20202 * fileio.c (Fread_file_name): Update comment.
20203
20204 * callint.c (Fcall_interactively):
20205 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20206 Make sure it is correctly unwound.
20207
20208 * xsmfns.c (x_session_close): New function.
20209
20210 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20211 Delete declarations.
20212
20213 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20214 (x_output): Remove background_pixel and foreground_pixel fields.
20215 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20216 (x_delete_device, x_session_close): Declare.
20217
20218 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20219 (read_filtered_event): Call `read_char' with a local
20220 `wrong_kboard_jmpbuf'.
20221
20222 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20223 Don't call single_kboard_state. Use FRAME_RIF.
20224
20225 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20226 systems.
20227
20228 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20229 (Fframe_with_environment, Fset_input_meta_mode)
20230 (Fset_quit_char): EXFUN.
20231 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20232 (init_sys_modes, reset_sys_modes): Update prototypes.
20233 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20234
20235 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20236 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20237 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20238 Delete declarations.
20239 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20240 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20241 New declarations.
20242
20243 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20244 already does that during init_display(). Call syms_of_keymap
20245 before syms_of_keyboard. Call `syms_of_terminal'.
20246 Call set_initial_environment, not set_process_environment.
20247 (shut_down_emacs): Call reset_all_sys_modes() instead of
20248 reset_sys_modes().
20249
20250 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20251 (internal_resolve_face_name, resolve_face_name_error): New functions.
20252 (resolve_face_name): Protect against loops and errors thrown by Fget.
20253 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20254 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20255
20256 * scroll.c: Replace CURTTY() with local variables throughout the
20257 file (where applicable).
20258 (calculate_scrolling, calculate_direct_scrolling)
20259 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20260 characteristics.
20261
20262 * keymap.c (Vfunction_key_map): Remove.
20263 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20264 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20265 (Vkey_translation_map): Remove.
20266 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20267 (Fdescribe_buffer_bindings)
20268 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20269 Update for terminal-local key-translation-map.
20270
20271 * Makefile.in (callproc.o): Update dependencies.
20272 (lisp, shortlisp): Add termdev.elc.
20273 (obj): Add terminal.o.
20274 (terminal.o): Add dependencies.
20275 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20276 (data.o, fns.o): Add termhooks.h dependency.
20277 (SOME_MACHINE_LISP): Add dnd.elc.
20278 (minibuf.o): Fix typo.
20279 Update dependencies.
20280
20281 * data.c (do_symval_forwarding, store_symval_forwarding)
20282 (find_symbol_value): Use the selected frame's keyboard, not
20283 current_kboard.
20284
20285 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20286 Vwindow_system.
20287
20288 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20289 Fmenu_bar_open.
20290 (syms_of_xmenu): Update defsubr.
20291 (mouse_position_for_popup, Fx_popup_menu)
20292 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20293 (set_frame_menubar, free_frame_menubar)
b97439ce 20294 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20295 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20296 an X frame.
20297
20298 * xselect.c (x_own_selection): Abort if not an X frame.
20299 (some_frame_on_display): Check if it is an X frame.
20300 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20301
20302 * coding.c: Include frame.h and termhooks.h.
20303 (terminal_coding, keyboard_coding): Delete.
20304 (Fset_terminal_coding_system_internal)
20305 (Fset_keyboard_coding_system_internal)
20306 (Fkeyboard_coding_system)
20307 (Fterminal_coding_system): Add a terminal parameter.
20308 Get terminal_coding from the terminal.
20309 (init_coding_once): Don't call setup_coding_system here.
20310
20311 * dispextern.h (set_scroll_region, turn_off_insert)
20312 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20313 (tty_clear_end_of_line, tty_setup_colors)
20314 (delete_tty, updating_frame)
20315 (produce_special_glyphs, produce_glyphs, write_glyphs)
20316 (insert_glyphs): Remove.
20317 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20318 (tty_turn_off_highlight, get_tty_size): Add declaration.
20319 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20320
20321 * frame.h (enum output_method): Add output_initial.
20322 (struct x_output): Delete.
20323 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20324 Access foreground_pixel and background_pixel directly from the frame.
20325 (tty_display): Delete.
20326 (struct frame): Add buried_buffer_list, foreground_pixel,
20327 background_pixel and terminal. Delete kboard.
20328 (union output_data): Add tty.
20329 (FRAME_KBOARD): Get the kboard from the terminal.
20330 (FRAME_INITIAL_P): New macro.
20331 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20332 (Qterm_environment_variable, Qdisplay_environment_variable)
20333 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20334 New declarations.
20335
20336 * termchar.h (tty_output, tty_display_info): New structures.
20337 (tty_list): Declare.
20338 (FRAME_TTY, CURTTY): New macros.
20339 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20340 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20341 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20342 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20343
20344 * callproc.c: Include frame.h and termhooks.h, for terminal
20345 parameters.
20346 (add_env): New function.
20347 (child_setup): Use it.
20348 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20349 (getenv_internal): Fix get_terminal_param call.
20350 (Fgetenv_internal, egetenv): Update doc.
20351 (syms_of_callproc): Initialize Vprocess_environment to nil.
20352 Register and initialize them. Remove obsolete defvars. Update doc
20353 strings.
20354 (child_setup): Handle Vlocal_environment_variables.
20355 (getenv_internal): Add terminal parameter.
20356 Handle Vlocal_environment_variables.
20357 (Fgetenv_internal): Add terminal parameter.
20358 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20359 environment in a frame (not terminal) parameter. Update doc strings.
20360 (set_initial_environment): Rename from set_global_environment.
20361 Store Emacs environment in initial frame parameter.
20362
20363 * xdisp.c (redisplay_internal): Update references to
20364 `previous_terminal_frame'.
20365 (display_mode_line, Fformat_mode_line): Replace calls to
20366 `push_frame_kboard' with `push_kboard'.
20367 (get_glyph_string_clip_rects): Add extra parentheses and
20368 braces to prevent compiler warnings.
20369 (calc_pixel_width_or_height): Add xassert to check that the
20370 frame is alive. Don't call `lookup_image' on a termcap frame.
20371 (message2_nolog, message3_nolog, redisplay_internal)
20372 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20373 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20374 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20375 (Fx_display_pixel_width, Fx_display_pixel_height)
20376 (Fx_display_planes, Fx_display_color_cells)
20377 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20378 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20379 (Fx_display_backing_store, Fx_display_visual_class)
20380 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20381 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20382
20383 * xfns.c (x_set_foreground_color x_set_background_color)
20384 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20385 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20386 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20387 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20388 terminal that is being deleted.
20389 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20390 frame parameter, and make sure it overrides any user-supplied setting.
20391 (Fx_close_connection, Fx_synchronize): Unify argument names with
20392 the rest of the DEFUNs.
20393
20394 * dispnew.c (Fsend_string_to_terminal): Update call to
20395 `get_tty_terminal'.
20396 (Fredraw_frame, Fsend_string_to_terminal)
20397 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20398 FRAME_TERMCAP_P and FRAME_TTY.
20399 (window_change_signal): Don't believe width/height values that are
20400 impossibly small.
20401 (Vinitial_window_system): Rename from Vwindow_system.
20402 (termscript, Wcm, rif): Delete.
20403
20404 * termhooks.h (struct terminal): New struct containing the
20405 previously global text display hooks and new members NAME,
20406 DELETED and PARAM_ALIST.
20407 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20408 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20409 (FRAME_RIF): New macros.
20410 (get_terminal_param, get_device): New declarations.
20411 (termscript): Delete declaration.
20412
20413 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20414 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20415 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20416 FRAME_FOREGROUND_PIXEL.
20417 (x_fully_uncatch_errors): Disable definition.
20418 (x_scroll_bar_expose): Fix reference to foreground pixel.
20419 (XTread_socket): Disable loop on all X displays.
20420 (x_delete_terminal): Don't set terminal->deleted and let
20421 delete_terminal delete the frames on the terminal.
20422 (x_delete_display): Doc update to reflect changes in
20423 delete_terminal.
20424 (x_display_info) <terminal>: Move member earlier in the struct.
20425 (deleting_tty): Remove old variable.
20426 (Fsuspend_tty): Call clear_tty_hooks.
20427 (Fresume_tty, init_tty): Call set_tty_hooks.
20428 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20429 errors on X frames.
20430 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20431 (handle_one_xevent): Initialize `f' to NULL.
20432 (x_delete_terminal, x_create_terminal): New functions.
20433 (XTset_terminal_modes, XTreset_terminal_modes)
20434 (XTread_socket, x_connection_closed, x_term_init)
20435 (x_term_init, x_delete_display): Add terminal parameter.
20436 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20437 X connections.
20438
20439 * frame.c: Include termchar.h.
20440 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20441 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20442 (Qdisplay_environment_variable): New vars.
20443 (Fframep): Deal with output_initial.
20444 (Fframe-live-p): Doc fix.
20445 (Fwindow-system): New function.
20446 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20447 (make_terminal_frame): Don't create frames on a terminal that is
20448 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20449 (store_frame_param): Check for found_for_frame before calling XFRAME.
20450 (Fmake_terminal_frame): Handle NULL tty names correctly.
20451 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20452 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20453 frames to refer to a deleted frame in their 'environment parameter.
20454 (Fframe_with_environment): New function.
20455 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20456 (get_future_frame_param): New function.
20457 (Fmake_terminal_frame): Use it.
20458 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20459
20460 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20461 * sysdep.c (reset_sys_modes): Update for renames.
20462
20463 * keyboard.c (tty_read_avail_input): New function.
20464 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20465 (syms_of_keyboard): Defsubr them.
20466 (Fset_input_meta_mode, Fset_quit_char): New functions.
20467 (Fset_input_mode): Split to above functions.
20468 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20469 parameter. Use it in call to `read_char'.
20470 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20471 Set wrong_kboard_jmpbuf correctly in recursive calls.
20472 Use current_kboard to access Vkeyboard_translate_table.
20473 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20474 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20475 Update longjmp invocations. Remember the original current_kboard,
20476 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20477 changes it. Comment out unnecessary calls to
20478 `record_single_kboard_state' and `any_kboard_state'.
20479 Update recursive calls.
20480 (wrong_kboard_jmpbuf): Remove global variable.
20481 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20482 Handle deleted interrupted_kboards correctly; that is a legal
20483 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20484 and read_char calls. Abort if interrupted_kboard died in read_char.
20485 (any_kboard_state, single_kboard_state)
20486 (push_frame_kboard): Remove function.
20487 (pop_kboard): Switch out of single_kboard mode if the kboard has
20488 been deleted. Remove unused variable. Help debugging by not
20489 changing current_kboard unnecessarily. Set current_kboard to the
20490 kboard of the selected frame when the stored kboard object has
20491 been deleted before pop_kboard.
20492 (temporarily_switch_to_single_kboard): Change first parameter to a
20493 frame pointer. Throw an error when caller wants to change kboards
20494 while in single_kboard mode. Don't push_kboard if we weren't in
20495 single kboard state. Don't pop_kboard if we popped into any
20496 kboard state.
20497 (restore_kboard_configuration): Abort if pop_kboard changed the
20498 kboard in single_kboard mode. Call pop_kboard only after setting
20499 up single_kboard mode.
20500 (Frecursive_edit): Switch to single_kboard mode only in nested
20501 command loops.
20502 (cmd_error, command_loop, command_loop_1, timer_check):
20503 Comment out unnecessary call to `any_kboard_state' and
20504 `record_single_kboard_state'.
20505 (delete_kboard): Exit single_kboard mode if we have just deleted
20506 that kboard. Use FRAME_KBOARD.
20507 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20508 `fatal_error_signal'.
20509 (record_single_kboard_state): Don't push_kboard if we weren't in
20510 single kboard state. Don't pop_kboard if we popped into any
20511 kboard state.
20512 (push_frame_kboard): Rename to push_kboard.
20513 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20514 (read_avail_input): Read input from all terminals.
20515 (mark_kboards): Also mark Vkeyboard_translate_table.
20516 (kbd_buffer_store_event_hold): Simplify condition.
20517 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20518 (Vkeyboard_translate_table): Move to struct kboard.
20519 (init_kboard): Initialize Vkeyboard_translate_table.
20520 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20521 Vkeyboard_translate_table. Update doc strings. Update docs of
20522 local-function-key-map and function-key-map.
20523
20524 * terminal.c: New file.
20525
20526 * term.c: Include errno.h.
20527 (Vring_bell_function, device_list, initial_device)
20528 (next_device_id, ring_bell, update_begin, update_end)
20529 (set_terminal_window, cursor_to, raw_cursor_to)
20530 (clear_to_end, clear_frame, clear_end_of_line)
20531 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20532 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20533 (syms_of_term): Move their initialization to terminal.c.
20534 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20535 (Ftty_display_color_cells)
20536 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20537 (clear_tty_hooks, set_tty_hooks)
20538 (init_tty, maybe_fatal): New functions.
20539 (Ftty_type): Return nil if terminal is not on a tty instead of
20540 throwing an error. Doc update.
20541 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20542 Doc update. Initialize new subrs and variables.
20543 (delete_tty): Use terminal->deleted.
20544 (tty_set_terminal_modes): Rename from set_terminal_modes.
20545 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20546 (set_scroll_region): Rename to `tty_set_scroll_region'.
20547 (turn_on_insert): Rename to `tty_turn_on_insert'.
20548 (turn_off_insert): Rename to `tty_turn_off_insert'.
20549 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20550 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20551 (toggle_highligh): Rename to `tty_toggle_highlight'.
20552 (background_highlight): Rename to `tty_background_highlight'.
20553 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20554 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20555 (tty_set_scroll_region, tty_background_highlight)
20556 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20557 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20558 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20559 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20560 Add static modifier.
20561 (tty_reset_terminal_modes, tty_set_terminal_window)
20562 (tty_set_scroll_region, tty_background_highlight)
20563 (tty_highlight_if_desired, tty_cursor_to)
20564 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20565 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20566 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20567 renames.
20568
205692007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20570
20571 * keyboard.c: Qrtl is new.
20572 (parse_tool_bar_item): Handle :rtl keyword.
20573 (syms_of_keyboard): Intern :rtl keyword.
20574
20575 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20576
20577 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20578 so no Lisp code is executed.
20579 (file_for_image, find_rtl_image): New functions.
20580 (xg_get_image_for_pixmap): Use file_for_image.
20581 (update_frame_tool_bar): If direction is RTL, use RTL image if
20582 defined. Use Gtk stock images if defined.
20583
205842007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20585
20586 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20587 for nonexistent or zero-width glyph in composition glyph.
20588
205892007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20590
20591 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20592
20593 * xdisp.c (Finvisible_p): New function.
20594 (syms_of_xdisp): defsubr it.
20595
205962007-08-24 Juanma Barranquero <lekktu@gmail.com>
20597
20598 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20599 Doc fixes.
20600
206012007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20602
20603 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20604
206052007-08-24 Martin Rudalics <rudalics@gmx.at>
20606
20607 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20608 whether decoding has modified buffer contents.
20609
206102007-08-24 Jason Rumney <jasonr@gnu.org>
20611
20612 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20613 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20614 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20615 (init_svg_functions) [HAVE_NTGUI]: New function.
20616 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20617 (svg_load_image): Use them.
20618 (svg_load_image) [HAVE_NTGUI]: Implement background.
20619
206202007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20621
20622 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20623 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20624 (LIBX): Remove @RSVG_LIBS@.
20625 (LIBES): Add $(RSVG_LIBS).
20626
20627 * image.c (svg_load_image): Blend with specified background if exists.
20628 Use IMAGE_BACKGROUND. Add Mac OS Support.
20629
20630 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20631 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20632 Remove macros.
20633 [MAC_OSX] (socket_callback): Do nothing.
20634 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20635 ReceiveNextEvent.
20636 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20637 socket_callback.
20638 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20639
206402007-08-22 Glenn Morris <rgm@gnu.org>
20641
20642 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20643
206442007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20645
20646 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20647
20648 * image.c: Add support for SVG images. Some additional comments
20649 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20650 (svg_image_p): New function to test for SVG image.
20651 (svg_load): New function to load SVG image.
20652 (svg_load_image): New function, helper for svg_load.
20653 (Qsvg): New Lisp_object.
20654 (svg_keyword_index): New enum.
20655 (svg_format): New static `image_keyword' struct.
20656 (svg_type): New static `image_type' struct.
20657 (librsvg/rsvg.h): Include it.
20658
206592007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20660
20661 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20662
206632007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20664
20665 * lread.c (Qold_style_backquotes): New var.
20666 (syms_of_lread): Init and staticpro it.
20667 (load_warn_old_style_backquotes): New fun.
20668 (Fload): Use them to warn about old style backquotes.
20669 (end_of_file_error, Fload): Remove unused vars.
20670
20671 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20672
20673 * lread.c (Vold_style_backquotes): New var.
20674 (syms_of_lread): Init and export it to Elisp.
20675 (read1): Set it when we find an old-style (back)quote.
20676
206772007-08-22 Jason Rumney <jasonr@gnu.org>
20678
20679 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20680
206812007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20682
20683 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20684
206852007-08-19 Richard Stallman <rms@gnu.org>
20686
20687 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20688
206892007-08-19 Andreas Schwab <schwab@suse.de>
20690
20691 * alloc.c (pure): Round PURESIZE up.
20692
206932007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20694
20695 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20696 active frame.
20697
206982007-08-16 Richard Stallman <rms@gnu.org>
20699
20700 * eval.c (Fcommandp): Add parens to clarify.
20701
20702 * minibuf.c (Fall_completions): Use enum for type of table.
20703
20704 * emacs.c (USAGE2): Improve text.
20705
207062007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20707
20708 * term.c (tty_default_color_capabilities): Declare static
20709 variables in file scope, to avoid HPUX compiler problem.
20710
207112007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20712
20713 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20714 to gtk_toolbar_insert.
20715
207162007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20717
20718 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20719
20720 * insdel.c (reset_var_on_error): New fun.
20721 (signal_before_change, signal_after_change):
20722 Use it to reset (after|before)-change-functions to nil in case of error.
20723 Bind inhibit-modification-hooks to t.
20724 Don't bind (after|before)-change-functions to nil while they run.
20725
207262007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20727
20728 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20729 filling pixmap with stippled background.
20730
207312007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20732
20733 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20734 Don't use invisible frame as parent window for repositioning.
20735
207362007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20737
20738 * print.c (new_backquote_output): Rename from old_backquote_output.
20739 (print): Inverse its logic (according to its name) so as to match the
20740 behavior of new_backquote_flag in lread.c.
20741
207422007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20743
20744 * gmalloc.c (posix_memalign): New function.
20745
20746 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20747 ActivateControl/DeactivateControl here.
20748 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20749 frame-notice-user-settings is non-nil.
20750 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20751 for kEventParamFMFontStyle.
20752 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20753 mac_pass_command_to_system and mac_pass_control_to_system here.
20754 (XTread_socket): Call ActivateControl/DeactivateControl here.
20755 (XTread_socket) [TARGET_API_MAC_CARBON]:
20756 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20757 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20758 for window repositioning.
20759
207602007-08-08 Glenn Morris <rgm@gnu.org>
20761
20762 * Replace `iff' in doc-strings and comments.
20763
207642007-08-07 Chong Yidong <cyd@stupidchicken.com>
20765
20766 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20767
207682007-08-07 Martin Rudalics <rudalics@gmx.at>
20769
20770 * fileio.c (Finsert_file_contents): Run format-decode and
20771 after_insert_file_functions on entire buffer when REPLACE is
20772 non-nil and inhibit modification_hooks and point_motion_hooks.
20773 For consistency, run after_insert_file_functions iff something
20774 got inserted. Move signal_after_change and update_compositions
20775 after code running after_insert_file_functions. Make sure that
20776 undo_list doesn't record intermediate steps of the decoding process.
20777
207782007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20779
20780 * emacs.c (main)
20781 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20782 Call malloc_enable_thread on interactive startup.
20783
20784 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20785 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20786 [USE_PTHREAD]: Conditionalize with it.
20787 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20788 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20789 New functions.
20790
207912007-08-06 Chong Yidong <cyd@stupidchicken.com>
20792
20793 * xdisp.c (redisplay_window): When restoring original buffer
20794 position, make sure it is still valid.
20795
20796 * image.c (png_load): Ignore png-supplied background color.
20797
207982007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20799
20800 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20801 Use kCFAbsoluteTimeIntervalSince1970.
20802
20803 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20804 New variable.
20805 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20806 event loop should be quit.
20807 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20808 Quit dialog event loop if quit_dialog_event_loop is set.
20809
20810 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20811 (Selection): New typedef. Use instead of ScrapRef.
20812 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20813 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20814 (mac_clear_selection): Rename from clear_scrap.
20815 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20816 scrap_has_target_type. All uses changed.
20817 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20818 (mac_selection_has_target_p): New functions.
20819 (mac_put_selection_value): Rename from put_scrap_string.
20820 (mac_get_selection_value): Rename from get_scrap_string.
20821 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20822 (put_scrap_private_timestamp, scrap_has_target_type)
20823 (get_scrap_private_timestamp): Remove functions.
20824 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20825 (x_own_selection, x_get_local_selection):
20826 Use mac_valid_selection_value_p.
20827 (x_own_selection): Don't use put_scrap_private_timestamp.
20828 Record OWNERSHIP-INFO into Vselection_alist instead.
20829 (x_get_local_selection): Don't check type if request is local.
20830 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20831 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20832
208332007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20834
20835 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20836 add comment explaining why.
20837
208382007-08-03 Richard Stallman <rms@gnu.org>
20839
20840 * fileio.c (Fvisited_file_modtime): Use make_time.
20841
208422007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20843
20844 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20845 build.
20846
208472007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20848
20849 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20850
208512007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20852
20853 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20854
208552007-07-30 Richard Stallman <rms@gnu.org>
20856
20857 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20858
208592007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20860
20861 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20862
208632007-07-28 Nick Roberts <nickrob@snap.net.nz>
20864
20865 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20866 remote default-directory.
20867
20868 * buffer.c (mode-line-format): Update doc string.
20869
208702007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20871
20872 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20873 scroll bar gap.
20874 (x_scroll_bar_create): Set bar->fringe_extended_p.
20875 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20876 on frame edge. Check fringe background extension. Don't clear
20877 extended fringe background area.
20878
20879 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20880 (w32_fill_area): Enclose multiple statements with do ... while (0).
20881
20882 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20883 Extend fringe background to scroll bar gap.
20884 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20885 Set bar->fringe_extended_p.
20886 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20887 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20888 background extension. Don't clear extended fringe background area.
20889
20890 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20891 New member fringe_extended_p.
20892
208932007-07-25 Glenn Morris <rgm@gnu.org>
20894
20895 * Relicense all FSF files to GPLv3 or later.
20896
20897 * COPYING: Switch to GPLv3.
20898
208992007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20900
20901 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20902
20903 * data.c (Finteractive_form): Check for the presence of an
20904 `interactive-form' symbol property more thoroughly.
20905
20906 * data.c (Finteractive_form): Use an `interactive-form' property if
20907 present, analogous to the function-documentation property.
20908
209092007-07-24 Jason Rumney <jasonr@gnu.org>
20910
20911 * w32fns.c (x_real_positions): Get real position from OS instead of
20912 calculating it.
20913
209142007-07-23 Jason Rumney <jasonr@gnu.org>
20915
20916 * filelock.c (current_lock_owner): Allow for @ sign in username.
20917
209182007-07-22 Nick Roberts <nickrob@snap.net.nz>
20919
20920 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20921 remote default-directory.
20922
20923 * buffer.c (mode-line-format): Describe above case in doc string.
20924
209252007-07-20 Eli Zaretskii <eliz@gnu.org>
20926
20927 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20928 Define if not defined.
20929
209302007-07-18 Jason Rumney <jasonr@gnu.org>
20931
20932 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20933
209342007-07-18 Richard Stallman <rms@gnu.org>
20935
20936 * data.c (Fsetq_default): Doc fix.
20937
20938 * eval.c (Fsetq): Doc fix.
20939
209402007-07-18 Juanma Barranquero <lekktu@gmail.com>
20941
20942 * coding.c (Ffind_operation_coding_system):
20943 * eval.c (For, Fand): Doc fixes.
20944 Reported by Johan Bockgård.
20945
209462007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20947
20948 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20949
20950 * xterm.h: Declare x_ewmh_activate_frame.
20951
20952 * xterm.c (x_ewmh_activate_frame): New function.
20953 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20954
209552007-07-17 Martin Rudalics <rudalics@gmx.at>
20956
20957 * window.c (Fdisplay_buffer): If largest or LRU window is the
20958 only window, split it even if it is not eligible for splitting.
20959 This restores the original behavior broken by the 2007-07-15
20960 change.
20961
209622007-07-17 Glenn Morris <rgm@gnu.org>
20963
20964 * abbrev.c (abbrev_check_chars): New function.
20965 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20966 Call abbrev_check_chars to check abbrev characters are word
20967 constituents. Doc fix.
20968
209692007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20970
20971 * process.c (Fstart_process, Fmake_network_process)
20972 (read_process_output): Fix up last changes.
20973
209742007-07-16 Eli Zaretskii <eliz@gnu.org>
20975
20976 * makefile.w32-in (clean): Don't delete *~.
20977
209782007-07-16 Andreas Schwab <schwab@suse.de>
20979
20980 * window.c (Fdisplay_buffer): Use NILP.
20981 (Fset_window_scroll_bars): Likewise.
20982
209832007-07-15 Martin Rudalics <rudalics@gmx.at>
20984
20985 * window.c (window_min_size_2): New function.
20986 (window_min_size_1, size_window, Fdisplay_buffer)
20987 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20988 windows without mode- or header-lines when window-min-height is
20989 too small.
20990 (size_window): Reset nodelete_p after testing it, following an
20991 earlier note by Kim F. Storm.
20992 (display_buffer): Do not set split_height_threshold to twice the
20993 value of window_min_height to avoid changing the value of a
20994 customizable variable. Rather explicitly check whether the
20995 height of the window that shall be splitted is at least as large
20996 as split_height_threshold.
20997 (Fwindow_full_width_p): New defun.
20998 (syms_of_window): Defsubr it.
20999
21000 * window.h: Add EXFUN for Fwindow_full_width_p.
21001
210022007-07-14 Jason Rumney <jasonr@gnu.org>
21003
21004 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21005
210062007-07-14 Richard Stallman <rms@gnu.org>
21007
21008 * eval.c (maybe_call_debugger): New function.
21009 (find_handler_clause): Use maybe_call_debugger.
21010 Call it when the handler says `debug'.
21011 Eliminate DEBUGGER_VALUE_PTR.
21012 (Fsignal): Eliminate debugger_value.
21013 (Qdebug): New variable.
21014 (syms_of_eval): Initialize it.
21015
210162007-07-14 Juanma Barranquero <lekktu@gmail.com>
21017
21018 * eval.c (Fprogn):
21019 * keyboard.c (Ftrack_mouse):
21020 * print.c (Fwith_output_to_temp_buffer):
21021 * window.c (Fsave_window_excursion): Doc fix.
21022
210232007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21024
21025 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21026
210272007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21028
21029 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21030 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21031 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21032 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21033 Remove unused encoding_carryover.
21034 * process.c: Adjust all functions accordingly.
21035
210362007-07-12 Richard Stallman <rms@gnu.org>
21037
21038 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21039
210402007-07-11 Jason Rumney <jasonr@gnu.org>
21041
21042 * makefile.w32-in (LIBS): Include OLE32.
21043
21044 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21045 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21046
210472007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21048
21049 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21050 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21051 from a Lisp_Object into a bare pointer.
21052 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21053 Adjust the code correspondingly.
21054
21055 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21056
21057 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21058 (term_show_mouse_face): Remove unused var `j'.
21059 (handle_one_term_event): Remove unused vars `i' and `j'.
21060 Don't cast return value of ttyname since it's not necessary.
21061
210622007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21063
21064 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21065 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21066
21067 * fns.c (map_char_table): Use an array of int for `indices' rather than
21068 an array of Lisp_Objects (which are only ever integers anyway).
21069 (Fmap_char_table): Update caller.
21070 * lisp.h: Update prototype.
21071 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21072 * fontset.c (Ffontset_info):
21073 * casetab.c (set_case_table): Update callers.
21074
21075 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21076
21077 * keymap.c (struct accessible_keymaps_data)
21078 (struct where_is_internal_data): New structures.
21079 (accessible_keymaps_1, where_is_internal_1): Use them to change
21080 interface to adhere to the one used by map_keymap.
21081 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21082 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21083
21084 * keymap.h (map_keymap_function_t): More informative prototype.
21085
210862007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21087
21088 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21089 (looking_at_1): Don't change search_regs and last_thing_searched
21090 if `inhibit-changing-match-data' is non-nil.
21091 (string_match_1, search_buffer, set_search_regs): Likewise.
21092 (syms_of_search): Add Lisp level definition for
21093 `inhibit-changing-match-data' and set it to nil.
21094 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21095 start and end of the match, instead of using values in search_regs.
21096
210972007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21098
21099 * minibuf.c (Fcompleting_read): New value `confirm-only'
21100 for `require-match'.
21101
211022007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21103
21104 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21105 part of the 2007-06-27 change to syms_of_fileio.
21106
211072007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21108
21109 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21110 Check WINDOWP before using XWINDOW. Consolidate return statements.
21111
211122007-06-27 Richard Stallman <rms@gnu.org>
21113
21114 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21115
211162007-06-27 Juanma Barranquero <lekktu@gmail.com>
21117
21118 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21119
211202007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21121
21122 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21123 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21124 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21125 (_free_internal, memalign): Use them.
21126 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21127 Initialize to PTHREAD_MUTEX_INITIALIZER.
21128 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21129 (morecore_nolock): Rename from morecore. All uses changed.
21130 Use only nolock versions of internal allocation functions.
21131 (_malloc_internal_nolock, _realloc_internal_nolock)
21132 (_free_internal_nolock): New functions created from
21133 _malloc_internal, _realloc_internal, and _free_internal.
21134 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21135 Copy hook value to automatic variable before its use.
21136 (memalign): Copy hook value to automatic variable before its use.
21137
211382007-06-26 Kenichi Handa <handa@m17n.org>
21139
21140 * coding.c (Ffind_operation_coding_system): Docstring improved.
21141 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21142
211432007-06-25 David Kastrup <dak@gnu.org>
21144
21145 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21146 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21147 cater for additional parameter.
21148
21149 * keymap.h: Adjust number of parameters to `current-active-maps'.
21150
21151 * doc.c (Fsubstitute_command_keys): Adjust call of
21152 `current-active-maps'.
21153
211542007-06-25 David Kastrup <dak@gnu.org>
21155
21156 * callint.c (Fcall_interactively): Make the parsing of interactive
21157 specs somewhat more readable.
21158
211592007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21160
21161 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21162 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21163 if extended background has already been filled.
21164
211652007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21166
21167 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21168 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21169
21170 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21171 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21172 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21173 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21174 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21175 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21176 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21177 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21178 Run timers during dialog popup.
21179 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21180
211812007-06-21 Jason Rumney <jasonr@gnu.org>
21182
21183 * image.c (convert_mono_to_color_image): Swap fore and background.
21184
211852007-06-20 Jason Rumney <jasonr@gnu.org>
21186
21187 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21188 (w32_free_bdf_font): Unmap memory not handle.
21189
211902007-06-20 Sam Steingold <sds@gnu.org>
21191
21192 * gmalloc.c (__morecore): Fix the declaration to comply with the
21193 definition.
21194
211952007-06-20 Juanma Barranquero <lekktu@gmail.com>
21196
21197 * w32term.c (w32_delete_display): Remove leftover declaration.
21198 (w32_define_cursor, w32_initialize): Make static.
21199
21200 * w32.c (_wsa_errlist): Fix typo in error message.
21201 (init_environment): Ignore any environment variable from the
21202 registry having a null value.
21203
212042007-06-20 Glenn Morris <rgm@gnu.org>
21205
21206 * Makefile.in (LIBGIF): Default to -lgif.
21207
212082007-06-17 Jason Rumney <jasonr@gnu.org>
21209
21210 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21211 unicode strings.
21212
212132007-06-16 Juanma Barranquero <lekktu@gmail.com>
21214
21215 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21216 Fix typo in docstring.
21217
212182007-06-16 Eli Zaretskii <eliz@gnu.org>
21219
21220 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21221 and their keybindings.
21222
212232007-06-15 Chong Yidong <cyd@stupidchicken.com>
21224
21225 * composite.c (update_compositions): Fix last fix.
21226
212272007-06-14 Jason Rumney <jasonr@gnu.org>
21228
21229 * w32.c (get_process_times_fn): New function pointer.
21230 (globals_of_w32): Intialize it if present in kernel32.dll.
21231 (w32_get_internal_run_time): New function.
21232
21233 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21234
212352007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21236
21237 * composite.c (update_compositions): Check the validness of
21238 compositions.
21239
212402007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21241
21242 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21243 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21244
21245 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21246 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21247
21248 * macgui.h (USE_MAC_TOOLBAR): New define.
21249
21250 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21251 Return immediately unless popup is activated.
21252
21253 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21254 background to scroll bar gap.
21255 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21256 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21257 scroll bars on frame edge. Check fringe background extension.
21258 Don't clear extended fringe background area.
21259 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21260 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21261 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21262 [USE_MAC_TOOLBAR]: New macros.
21263 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21264 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21265 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21266 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21267 [USE_MAC_TOOLBAR]: New functions.
21268 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21269 manually if previous repositioning has failed.
21270 (mac_handle_keyboard_event): Use precomputed event kind.
21271 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21272 as tool bar item click. Handle mouse movement over tool bar items.
21273
21274 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21275 toolbar_win_gravity.
21276 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21277 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21278 Add externs.
21279
21280 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21281 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21282
212832007-06-14 Chong Yidong <cyd@stupidchicken.com>
21284
21285 * image.c (search_image_cache): Remove unused variable.
21286
212872007-06-13 Chong Yidong <cyd@stupidchicken.com>
21288
21289 * xfns.c, xmenu.c: Link to xaw3d if available.
21290
212912007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21292
21293 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21294 frame_foreground and frame_background.
21295
21296 * image.c (lookup_image): Save frame foreground and background colors.
21297 (search_image_cache): Check if saved and current frame colors match.
21298
212992007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21300
21301 * regex.c (regex_compile): Remove the `regnum' counter.
21302 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21303
213042007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21305
21306 * term.c: Include intervals.h to declare Fget_text_property.
21307
213082007-06-10 Jason Rumney <jasonr@gnu.org>
21309
21310 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21311
213122007-06-08 Juanma Barranquero <lekktu@gmail.com>
21313
21314 * callint.c (Fcall_interactively):
21315 * editfns.c (Fdelete_and_extract_region):
21316 * fileio.c (Fread_file_name):
21317 * fns.c (Fmapconcat):
21318 * keyboard.c (cmd_error_internal):
21319 * keymap.c (Fkey_description):
21320 * lread.c (openp):
21321 * minibuf.c (read_minibuf):
21322 * search.c (wordify):
21323 * sunfns.c (sel_read):
21324 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21325 * xfns.c (x_default_scroll_bar_color_parameter):
21326 * xmenu.c (menu_help_callback):
21327 * xselect.c (Fx_get_atom_name):
21328 * xterm.c (x_term_init): Use empty_unibyte_string.
21329
213302007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21331
21332 * alloc.c (init_strings): Initialize canonical empty strings.
21333 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21334 canonical empty string when the requested size is 0.
21335
21336 * emacs.c (empty_unibyte_string): Rename from empty_string.
21337 (empty_multibyte_string): New canonical empty string.
21338 (syms_of_emacs): Don't initialize empty_string.
21339
21340 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21341 string, if appropriate.
21342 (empty_unibyte_string, empty_multibyte_string): New externs.
21343 (empty_string): Remove extern.
21344
21345 * lread.c (syms_of_lread): Use empty_unibyte_string.
21346
213472007-06-07 Jason Rumney <jasonr@gnu.org>
21348
21349 * s/ms-w32.h: Don't define HAVE_TZNAME.
21350
21351 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21352
213532007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21354
21355 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21356
21357 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21358 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21359
21360 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21361 Don't call next handler.
21362 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21363 Remove argument. Install handler to application.
21364 (set_frame_menubar): Don't change deep_p.
21365 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21366 FRAME_OUTER_TO_INNER_DIFF_Y.
21367 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21368 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21369 [HAVE_DIALOGS]: New macros.
21370 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21371 Use them.
21372 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21373
21374 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21375 init_service_handler. All callers changed. Return OSStatus value.
21376
21377 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21378 All callers changed so as not to call SetPortWindowPort.
21379 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21380 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21381 mac_draw_string_common.
21382 (mac_draw_image_string_qd): Likewise.
21383 (mac_draw_string_common): Use them. Add INLINE.
21384 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21385 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21386 GetGlobalMouse.
21387 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21388 and FRAME_OUTER_TO_INNER_DIFF_Y.
21389 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21390 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21391 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21392 repositioning window to mac_handle_window_event.
21393 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21394 saving window location to mac_handle_window_event
21395 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21396 (install_menu_target_item_handler): Remove argument in extern.
21397 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21398 Also accept command events.
21399 (do_keystroke): New function created from XTread_socket.
21400 (init_command_handler): Remove functions.
21401 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21402 and save window location by kEventWindowShowing and kEventWindowHiding
21403 handlers here. Don't call next handler for window state change and
21404 focus events.
21405 (mac_handle_application_event, mac_handle_keyboard_event)
21406 [TARGET_API_MAC_CARBON]: New functions.
21407 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21408 kEventWindowShowing and kEventWindowHiding events. Move installation
21409 of mouse, font, text input and menu target item handlers to
21410 install_application_handler.
21411 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21412 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21413 New function.
21414 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21415 Register it.
21416 (XTread_socket) [TARGET_API_MAC_CARBON]:
21417 Consolidate SendEventToEventTarget calls.
21418 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21419 Move application activation handler to mac_handle_application_event.
21420 Move keyboard handler to mac_handle_keyboard_event.
21421 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21422 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21423 init_command_handler. Call install_application_handler.
21424
21425 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21426 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21427
214282007-06-07 Glenn Morris <rgm@gnu.org>
21429
21430 * emacs.c (main): Use `emacs-copyright' in --version output.
21431
214322007-06-06 Chong Yidong <cyd@stupidchicken.com>
21433
21434 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21435
214362007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21437
21438 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21439
21440 * macgui.h: Replace WindowPtr with WindowRef.
21441
21442 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21443 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21444 Replace ControlHandle with ControlRef.
21445 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21446
21447 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21448 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21449 Replace ControlHandle with ControlRef.
21450 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21451 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21452
21453 * macterm.h (struct scroll_bar): Rename member control_handle_low
21454 and control_handle_high to control_ref_low and control_ref_high.
21455 All uses changed.
21456 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21457 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21458 respectively. All uses changed.
21459 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21460 (install_window_handler, remove_window_handler): Replace WindowPtr
21461 with WindowRef in externs.
21462
214632007-06-05 Juanma Barranquero <lekktu@gmail.com>
21464
21465 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21466
214672007-06-03 Nick Roberts <nickrob@snap.net.nz>
21468
21469 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21470
21471 * frame.c (Fmouse_position, Fmouse_pixel_position):
21472 Condition on HAVE_GPM too.
21473
21474 * term.c (term_mouse_highlight): Remove unused variables.
21475 (Fterm_open_connection): Set gpm_zerobased to 1.
21476 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21477 Use zero based co-ordinates.
21478 (handle_one_term_event): Report a drag as mouse movement too.
21479
21480 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21481
214822007-06-03 Chong Yidong <cyd@stupidchicken.com>
21483
21484 * image.c (search_image_cache): New function. Require background
21485 color match if background color is unspecified in the image spec.
21486 (uncache_image, lookup_image): Use it.
21487
214882007-06-01 Juanma Barranquero <lekktu@gmail.com>
21489
21490 * window.c (Fshrink_window): Reflow docstring.
21491
214922007-06-02 Chong Yidong <cyd@stupidchicken.com>
21493
21494 * Version 22.1 released.
21495
214962007-06-01 Richard Stallman <rms@gnu.org>
21497
21498 * xfns.c (x_encode_text): Add GCPRO.
21499
215002007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21501
21502 * xfns.c (x_set_name_internal): Save encoded name before
21503 x_encode_text in case string data is relocated.
21504
215052007-05-31 Richard Stallman <rms@gnu.org>
21506
21507 * buffer.c (syms_of_buffer): Doc fix.
21508
215092007-05-30 Nick Roberts <nickrob@snap.net.nz>
21510
21511 * sysdep.c (init_sys_modes): Add rather than replace with
21512 O_NONBLOCK.
21513
21514 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21515 term_mouse_moveto.
21516
21517 * termhooks.h (term_mouse_moveto): New extern.
21518
21519 * term.c (mouse_face_window): Rename...
21520 (Qmouse_face_window): ...to this.
21521 (term_show_mouse_face, term_clear_mouse_face)
21522 (term_mouse_highlight): Use Qmouse_face_window.
21523 (term_mouse_moveto): New function.
21524 (term_mouse_position): Make it work.
21525 (syms_of_term): Uncomment assignment to mouse_position_hook.
21526 Staticpro Qmouse_face_window.
21527
215282007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21529
21530 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21531 around current_column call.
21532
215332007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21534
21535 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21536 * xdisp.c (next_element_from_buffer):
21537 * window.c (delete_window):
21538 * term.c (term_mouse_highlight):
21539 * msdos.c (getdefdir):
21540 * macterm.c (mac_create_bitmap_from_bitmap_data)
21541 (init_font_name_table):
21542 * fns.c (Fsxhash):
21543 * data.c (Fmake_local_variable):
21544 * ccl.c (ccl_driver): Likewise.
21545
215462007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21547
21548 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21549 Call mac_wakeup_from_rne on window size change.
21550
215512007-05-25 Chong Yidong <cyd@stupidchicken.com>
21552
21553 * image.c (uncache_image): Fix typo.
21554
215552007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21556
21557 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21558
215592007-05-22 Richard Stallman <rms@gnu.org>
21560
21561 * xterm.c (x_connection_closed): Remove NO_RETURN.
21562
215632007-05-22 Martin Rudalics <rudalics@gmx.at>
21564
21565 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21566
215672007-05-21 Chong Yidong <cyd@stupidchicken.com>
21568
21569 * image.c (uncache_image): New function.
21570 (Fimage_refresh): New function.
21571
215722007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21573
21574 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21575
215762007-05-20 Nick Roberts <nickrob@snap.net.nz>
21577
21578 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21579 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21580
215812007-05-20 Nick Roberts <nickrob@snap.net.nz>
21582
21583 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21584 conditional on [HAVE_GPM_H].
21585
215862007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21587
21588 * syntax.c (skip_chars): Update syntax-table only after we checked that
21589 the new location is valid.
21590
215912007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21592
21593 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21594 mac_get_window_bounds.
21595
215962007-05-20 Nick Roberts <nickrob@snap.net.nz>
21597
21598 * Makefile.in (LIBGPM): Allow it to be set from configure.
21599 If set then link Emacs with it.
21600
21601 * config.in: Regenerate.
21602
21603 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21604 New externs.
21605
21606 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21607 Include gpm.h.
21608 (handle_one_term_event, term_gpm): New externs.
21609
21610 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21611 and allow it to be interrupted by SIGIO.
21612
21613 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21614 (wait_reading_process_output): Wait on gpm_fd too.
21615 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21616 (add_gpm_wait_descriptor_called_flag): New variable.
21617 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21618
21619 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21620 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21621 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21622 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21623 (make_lispy_event): Add case GPM_CLICK_EVENT.
21624 (read_avail_input): Handle mouse input.
21625
21626 * term.c (write_glyphs_with_face): New function.
21627 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21628 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21629 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21630 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21631 (last_mouse_x, last_mouse_y): New variables.
21632 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21633 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21634 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21635 (Fterm_close_connection): New functions.
21636 (term_init): Initialise mouse_face_window.
21637
216382007-05-19 Chong Yidong <cyd@stupidchicken.com>
21639
21640 * xdisp.c (redisplay_window): If first window line is a
21641 continuation line, recompute the new window start instead of
21642 recentering.
21643
216442007-05-18 Glenn Morris <rgm@gnu.org>
21645
21646 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21647 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21648
216492007-05-17 Glenn Morris <rgm@gnu.org>
21650
21651 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21652
216532007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21654
21655 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21656 dead key repeat and up events.
21657
216582007-05-14 Chong Yidong <cyd@stupidchicken.com>
21659
21660 * image.c (pbm_load): Check image size for monochrome pbm.
21661
216622007-05-13 Chong Yidong <cyd@stupidchicken.com>
21663
21664 * xterm.c (XTread_socket): Revert last change.
21665
216662007-05-12 Chong Yidong <cyd@stupidchicken.com>
21667
21668 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21669
21670 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21671
216722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21673
21674 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21675 mixup (YAILOM).
21676
216772007-05-07 Andreas Schwab <schwab@suse.de>
21678
21679 * keymap.c (Flookup_key): Fix typo in last change.
21680
216812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21682
21683 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21684 mapping for unibyte strings.
21685
216862007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21687
21688 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21689 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21690
216912007-04-29 Richard Stallman <rms@gnu.org>
21692
21693 * insdel.c (replace_range): For undo, record insertion first.
21694
216952007-04-29 Andreas Schwab <schwab@suse.de>
21696
21697 * lisp.h (VECSIZE): Use OFFSETOF.
21698
216992007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21700
21701 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21702 disabled lines.
21703
217042007-04-28 Richard Stallman <rms@gnu.org>
21705
21706 * lread.c (read_escape): In a string, \s is always space.
21707
217082007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21709
21710 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21711
21712 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21713 submenu for menu bar items.
21714
21715See ChangeLog.10 for earlier changes.
21716
21717;; Local Variables:
21718;; coding: utf-8
21719;; add-log-time-zone-rule: t
aac0c6e3
MR
21720;; End:
21721
e3eb1dae 21722 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21723
21724 This file is part of GNU Emacs.
21725
21726 GNU Emacs is free software: you can redistribute it and/or modify
21727 it under the terms of the GNU General Public License as published by
21728 the Free Software Foundation, either version 3 of the License, or
21729 (at your option) any later version.
21730
21731 GNU Emacs is distributed in the hope that it will be useful,
21732 but WITHOUT ANY WARRANTY; without even the implied warranty of
21733 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21734 GNU General Public License for more details.
21735
21736 You should have received a copy of the GNU General Public License
21737 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21738
21739;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40