Fix orgcard.tex pdf landscape format.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
233f0c9f
CY
12010-03-03 Chong Yidong <cyd@stupidchicken.com>
2
3 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4 definitions, so that keyboard macros are correctly handled
5 (Bug#5481).
6
75f80e63
EZ
72010-03-02 Eli Zaretskii <eliz@gnu.org>
8
9 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10 text that could be relocated inside the call to emacs_mule_char.
11 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
12 (CODING_DECODE_CHAR): Add a comment describing its purpose.
13
dcfb9bc4
KH
142010-03-02 Kenichi Handa <handa@m17n.org>
15
fc9a17bc
KH
16 * character.c (parse_str_as_multibyte): Fix handling of the
17 multibyte form of raw-bytes.
18 (str_as_multibyte): Likewise.
19
dcfb9bc4
KH
20 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
21 form of raw-bytes.
22
412c01b6
CY
232010-02-28 Chong Yidong <cyd@stupidchicken.com>
24
25 * charset.c (load_charset_map_from_file)
26 (load_charset_map_from_vector): Zero out allocated
27 charset_map_entries before using them.
28
df7e1ea0
AS
292010-02-27 Andreas Schwab <schwab@linux-m68k.org>
30
31 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
32
fe69a722
CY
332010-02-27 Chong Yidong <cyd@stupidchicken.com>
34
4ed28cf4
CY
35 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
36 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 37
7379cfce
KH
382010-02-26 Kenichi Handa <handa@m17n.org>
39
f88cc4d6
KH
40 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
41
7379cfce
KH
42 * xdisp.c (reseat_to_string): Fix previous change.
43
cf2fdcfb
CY
442010-02-26 David Reitter <david.reitter@gmail.com>
45
46 * nsfont.m (nsfont_draw): ns_antialias_text should be a
47 Lisp_Object (Bug#4736).
48
cc6c7c75
KH
492010-02-25 Kenichi Handa <handa@m17n.org>
50
51 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
52
32e737d7
JD
532010-02-24 Jan Djärv <jan.h.d@swipnet.se>
54
55 * xterm.c (XTflash): Move declarations before statements.
56
57 * gtkutil.c (xg_get_gdk_display): Remove (unused).
58 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
59 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
60 (xg_create_tool_bar): Remove unused variables.
61 (x_wm_set_size_hint): Move declarations before statements.
62 (xg_create_frame_widgets): Remove variable grav,
63
676cae9f
CY
642010-02-21 Chong Yidong <cyd@stupidchicken.com>
65
66 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
67
886cc2b8
SM
682010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
69
70 * term.c (fatal): Add a final \n if needed (bug#5596).
71
ddb2d8e2
CY
722010-02-18 Chong Yidong <cyd@stupidchicken.com>
73
74 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
75
2a4f8d3d
GM
762010-02-18 Glenn Morris <rgm@gnu.org>
77
78 * callint.c (Finteractive): Doc fix.
79
ebaf11b6
KH
802010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
81
886cc2b8
SM
82 * coding.c (record_conversion_result):
83 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
84 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
85 memory allocation error.
86
d0396581
KH
872010-02-17 Kenichi Handa <handa@m17n.org>
88
886cc2b8
SM
89 * coding.c (decode_coding_ccl): Don't setup ccl program here.
90 Fix for the case that the output buffer is fullfilled.
d0396581
KH
91 (decode_coding): Setup ccl program here. Keep looping when the
92 decoder stopped because the output buffer is
93 fullfilled (bug#5534).
94
95 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
96
98599f74
JD
972010-02-13 Jan Djärv <jan.h.d@swipnet.se>
98
471e4f04 99 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 100 bug #5571.
886cc2b8 101 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 102 overdrawn.
98599f74 103
182659ae
JD
1042010-02-10 Jan Djärv <jan.h.d@swipnet.se>
105
106 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
107 doing_interact here.
108 (ice_connection_closed): New function.
109 (x_session_check_input, smc_die_CB, ice_io_error_handler)
110 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
111 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
112 returns I/O error.
113 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
114 bug #5512.
115
9be32c4e 1162010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
117
118 * nsfont.m (nsfont_open): The system's value for the font descent
119 is negative, so round it down to avoid clipping.
120
a2f3eb19
CY
1212010-02-06 Chong Yidong <cyd@stupidchicken.com>
122
123 * charset.c (load_charset_map_from_file)
124 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 125 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 126
3088147c
CY
1272010-02-05 Chong Yidong <cyd@stupidchicken.com>
128
129 * charset.c (load_charset_map_from_file): Allocate large
130 charset_map_entries structure on the heap rather than the stack.
131 (Bug#5526).
132
b57d9029
KH
1332010-01-31 Kenichi Handa <handa@m17n.org>
134
135 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 136 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 137
c67d885b
CY
1382010-01-31 Chong Yidong <cyd@stupidchicken.com>
139
140 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
141 <deactivated@gmail.com> (Bug#3605).
142
8fab2362
CY
1432010-01-31 David De La Harpe Golden <david@harpegolden.net>
144
145 * fileio.c (Frename_file): Correctly rename symlinks to
146 directories (Bug#5496).
147
cb2a62f2
CY
1482010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
149
150 * nsterm.m (ns_ring_bell): Handle visible bell like X.
151
944c7a26
AS
1522010-01-30 Andreas Schwab <schwab@linux-m68k.org>
153
154 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
155
c024ac08
CY
1562010-01-29 Chong Yidong <cyd@stupidchicken.com>
157
158 * frame.c (DEFAULT_ROWS): Change default to 35.
159
160 * xfns.c (x_default_font_parameter): Change default XFT font to
161 monospace-10 (Bug#3643).
162
af93af83
EZ
1632010-01-29 Eli Zaretskii <eliz@gnu.org>
164
165 * w32inevt.c (key_event): Remove unnecessary comparison of
166 event->uChar.AsciiChar with 128.
167
ca0eb708
CY
1682010-01-28 Chong Yidong <cyd@stupidchicken.com>
169
b242dbfc
CY
170 * fileio.c (Frename_file): Fix last change (Bug#5487).
171
ca0eb708
CY
172 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
173
174 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
175
45d45af5
JD
1762010-01-28 Jan Djärv <jan.h.d@swipnet.se>
177
178 * xfns.c (Fx_create_frame): Remove window size matching code from
179 2010-01-15.
180 (x_get_current_desktop, x_get_desktop_workarea): Remove
181
7e233730
JR
1822010-01-27 Jason Rumney <jasonr@gnu.org>
183
184 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 185 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 186
86e893e3
KH
1872010-01-27 Kenichi Handa <handa@m17n.org>
188
189 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 190 pattern string (Bug#4209).
86e893e3 191
8719abec
CY
1922010-01-27 David De La Harpe Golden <david@harpegolden.net>
193
194 * fileio.c (Frename_file): Call copy-directory and
195 delete-directory for directories, in order to handle cross-device
196 renaming (Bug#3353).
197
844794c8
JD
1982010-01-25 Jan Djärv <jan.h.d@swipnet.se>
199
aa3e13b5 200 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 201 sizes 24 and 10. Bug #3643.
844794c8 202
bd4b5750
SM
2032010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
204
8dc1adf6 205 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
206 * keymap.c (shadow_lookup): Add `remap' arg.
207 (describe_map, describe_vector): Update calls to shadow_lookup.
208 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
209 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
210 perform remapping during shadow_lookup check of remapped_sequences.
211
285d07e2
CY
2122010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
213
214 * image.c (png_load): Use png_sig_cmp instead of the obsolete
215 png_check_sig, which has been removed in libpng 1.4.
216
c6d09b8d
CY
2172010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
218
219 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
220 lacks this header file).
221
3d782998
YM
2222010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223
224 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
225 as in Emacs 22.
226
2aff7c53
YM
2272010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
228
229 * lisp.h (make_pure_string): String pointer arg now points to const.
230
231 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
232 args now point to const.
233
74327f7a
EZ
2342010-01-22 Eli Zaretskii <eliz@gnu.org>
235
236 * lread.c (Fload): Don't treat files without .elc extension as
237 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
238 them. (bug#5303)
239
4d1e6632
KH
2402010-01-20 Kenichi Handa <handa@m17n.org>
241
242 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
243 treat the source as actual byte sequence.
244
1fdede8f
AM
2452010-01-19 Alan Mackenzie <acm@muc.de>
246
247 Fix spurious before-change-functions invocation from (insert ?\n).
248 * textprop.c (set_text_properties): rename parameter
249 `signal_after_change_p' to `coherent_change_p', and make the
250 invocation of `modify_region' conditional on it.
251
67477f30
JD
2522010-01-19 Jan Djärv <jan.h.d@swipnet.se>
253
254 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
255 for debug purpose.
256 (syms_of_xsettings): Declare xft-settings.
257
244b023e
CY
2582010-01-18 Chong Yidong <cyd@stupidchicken.com>
259
260 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
261
617364fe
CY
2622010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
263
264 * xterm.c (event_handler_gdk): Block input (Bug#5037).
265
4fe22cdf
CY
2662010-01-16 Chong Yidong <cyd@stupidchicken.com>
267
268 * emacs.c (standard_args): Adjust arg priorities to reflect how
269 they are processed in startup.el.
270
e118d2be
AS
2712010-01-16 Andreas Schwab <schwab@linux-m68k.org>
272
273 * Makefile.in (lisp, shortlisp): Update.
274
523ae620
SM
2752010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
276
277 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
278 code, link the new kboard into all_kboard before running Lisp code,
279 and protect the new terminal with GCPRO (Bug#5365).
280 (x_term_init): Remove unused var `atom'.
281 (x_delete_display, x_delete_terminal): Remove unused var `i'.
282
f0d13888
JD
2832010-01-15 Jan Djärv <jan.h.d@swipnet.se>
284
285 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
286 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
287 to find out usable size of the desktop. Don't make frames larger than
ac146f82 288 this. Bug #3643.
f0d13888 289
cc320f07
KH
2902010-01-15 Kenichi Handa <handa@m17n.org>
291
292 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
293
7ffdf101
CY
2942010-01-15 Chong Yidong <cyd@stupidchicken.com>
295
296 * nsterm.m (Qnone): Define.
297
298 * nsfns.m (Qnone): Move definition to nsterm.m.
299
d12bd917
KH
3002010-01-14 Kenichi Handa <handa@m17n.org>
301
302 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
303 systems.
304
d9a7c140
KH
3052010-01-14 Kenichi Handa <handa@m17n.org>
306
307 Make auto-composition work on all buffers even if they are
308 fundamental mode.
309
310 * composite.c (Vauto_composition_mode): New variable.
311 (composition_compute_stop_pos): Check Vauto_composition_mode
312 instead of Vauto_composition_function.
313 (composition_adjust_point, Ffind_composition_internal): Likewise.
314 (syms_of_composite): Declare Lisp variable
315 "auto-composition-mode" here.
316
63286bb2
CY
3172010-01-13 Chong Yidong <cyd@stupidchicken.com>
318
319 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
320 during call to vendor-specific-keysyms (Bug#5365).
321
c2623ee7
YM
3222010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
323
324 * keyboard.c (input_available_signal) [SYNC_INPUT]:
325 Call SIGNAL_THREAD_CHECK (Bug#5333).
326
327 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
328 Call SIGNAL_THREAD_CHECK.
329
0b5397c2
SM
3302010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
331
332 Try to fix bug#5314. This is probably not the final word, tho.
333 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
334 recent-auto-save-p as a side-effect.
335 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
336 * buffer.c (Fkill_buffer, reset_buffer):
337 * editfns.c (Fsubst_char_in_region):
338 * fileio.c (Finsert_file_contents, Fdo_auto_save)
339 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
340
dc954cb2
KH
3412010-01-13 Kenichi Handa <handa@m17n.org>
342
343 Display buffer name, etc. in mode line by composing correctly.
344
345 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
346 STRING is not nil.
0b5397c2 347 (display_mode_element): Adjust for the change of
dc954cb2
KH
348 decode_mode_spec and display_line.
349 (decode_mode_spec): Change arg MULTIBYTE to STRING.
350 (display_string): Handle the case that STRING is non-null and
351 LISP_STRING is not nil.
352
0b5397c2
SM
353 * xterm.c (x_draw_composite_glyph_string_foreground):
354 Pay attention to s->face->overstrike.
dc954cb2
KH
355
356 * composite.c (composition_reseat_it): Don't check PT if STRING is
357 non nil.
358
4a00eaca
YM
3592010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
360
361 * keyboard.c (read_char): Don't apply previous change when current
362 buffer is unchanged by command execution.
363
60abb287
JD
3642010-01-12 Jan Djärv <jan.h.d@swipnet.se>
365
366 * keyboard.c (read_char): Return after executing from special map.
367
893db5bc
GM
3682010-01-12 Glenn Morris <rgm@gnu.org>
369
370 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
371 bug-gnu-emacs rather than emacs-pretest-bug.
372
4d03ece0
CY
3732010-01-11 Chong Yidong <cyd@stupidchicken.com>
374
375 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
376 initializing the Lisp variables that depend on them.
377
1df47e38
YM
3782010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
379
380 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
381 Clear areas that will not be updated after change of menu bar lines.
382 Clear the menu bar window's current matrix when the window gets empty.
383
2f1c6384
CY
3842010-01-09 Chong Yidong <cyd@stupidchicken.com>
385
e398c61c
CY
386 * intervals.h, textprop.c (extend_property_ranges): Return value
387 and args changed. Discard properties that begin at or after the
388 new end (Bug#5306).
389
390 * editfns.c (Fformat): Caller changed.
391
e5a29a10
CY
392 * nsterm.m (ns_set_default_prefs): Delete function.
393 (syms_of_nsterm): Initialize ns_command_modifier,
394 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
395 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
396
2f1c6384
CY
397 * xdisp.c (pos_visible_p): Check for invisible text at the correct
398 position (Bug#4040).
399
d427a9fa
EZ
4002010-01-09 Eli Zaretskii <eliz@gnu.org>
401
402 * editfns.c (Ffloat_time): Doc fix.
403
21b9df2f
JD
4042010-01-09 Jan Djärv <jan.h.d@swipnet.se>
405
406 * xfns.c (Fx_create_frame): Don't create frame larger than display
407 by default bug#3643.
408
4b00d3b1
YM
4092010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
410
411 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
412 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
413 windows above internal border.
414
415 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
416 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
417 windows above internal border.
418
419 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
420 tool bar windows specially.
421
422 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
423
424 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
425 specially.
426 (XTflash): Take account of menu bar height.
427
428 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
429 specially.
430
5075d853
JD
4312010-01-08 Jan Djärv <jan.h.d@swipnet.se>
432
ac146f82 433 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
434 also be true before we can return early (bug #5339).
435
474217c8
CY
4362010-01-06 David Reitter <david.reitter@gmail.com>
437
438 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
439 (Fns_display_usable_bounds): Rewrite, computing bounds properly
440 (Bug#3233).
441
c0e6d47d
JD
4422010-01-06 Jan Djärv <jan.h.d@swipnet.se>
443
d0cf45b7
JD
444 * font.c (font_open_entity): Enable chache and call cached_font_ok
445 for the driver if defined.
446 (QCuser_spec): New symbol.
447 (font_spec_from_name): Save name as user-spec.
448 (font_load_for_lface): Keep user-spec instead of name.
449 (font_open_by_name): Save name as user-spec.
450 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 451 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
452
453 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
454 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
455 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
456
457 * font.h (struct font_driver): Add cached_font_ok.
458
c0e6d47d
JD
459 * xterm.c (x_clear_frame): Queue draw for scroll bars.
460
7c583cd8
JD
4612010-01-05 Jan Djärv <jan.h.d@swipnet.se>
462
463 * xterm.c (x_new_font): Move code for setting rows/cols before
464 resizing ...
ac146f82 465 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
466
467 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
468 (xg_frame_resized, xg_frame_set_char_size):
469 Call xg_clear_under_internal_border.
7c583cd8 470 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 471
03f77f0a
CY
4722010-01-05 Chong Yidong <cyd@stupidchicken.com>
473
474 * keyboard.c (read_key_sequence): Catch keyboard switch after
475 making a new tty frame (Bug#5095).
476
2a1ef5be
KH
4772010-01-05 Kenichi Handa <handa@m17n.org>
478
479 * fontset.c (fontset_find_font): Fix getting the frame pointer.
480
e3eb1dae
SM
4812010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
482
483 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
484 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
485 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
486
777013f2
MA
4872010-01-03 Michael Albinus <michael.albinus@gmx.de>
488
489 * dbusbind.c (xd_add_watch): Improve debug message.
490 (xd_remove_watch): Improve debug message. If DATA is the session
491 bus, unset D-Bus session environment.
492 (Fdbus_init_bus): Pass the bus as argument to
493 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 494
8932b1c2
CY
4952010-01-01 Chong Yidong <cyd@stupidchicken.com>
496
87231e2c
CY
497 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
498
4801c5fa
CY
499 * lread.c (syms_of_lread): Make it clearer that these are the
500 names of loaded files (Bug#5068).
501
8932b1c2
CY
502 * eval.c (run_hook_with_args): Handle the case where the global
503 value has the obsolete single-function form (Bug#5026).
504
11e3c684
CY
5052009-12-27 Chong Yidong <cyd@stupidchicken.com>
506
507 * minibuf.c (Fall_completions): Minor optimization.
508
5b28ce35
EZ
5092009-12-26 Eli Zaretskii <eliz@gnu.org>
510
5ce6e4f4
JB
511 * .gdbinit (pgx): Fix display of composite glyphs.
512 Display cmp.from and cmp.to as well.
513 (pitx): Fix last change.
5b28ce35 514
bcffff46
KH
5152009-12-25 Kenichi Handa <handa@m17n.org>
516
517 * composite.h (composition_adjust_point): Update prototype.
518
519 * composite.c (composition_reseat_it): Don't make a composition
520 spanning over point.
521 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
522 composable characters.
523 (composition_adjust_point): New arg NEW_PT. Callers changed.
524
525 * keyboard.c (command_loop_1): Force redisplay if the last point
526 was within a composition.
527 (adjust_point_for_property): Don't adjust point for automatic
528 composition when called after buffer modification.
529
3f670e9a
EZ
5302009-12-19 Eli Zaretskii <eliz@gnu.org>
531
5ce6e4f4
JB
532 * .gdbinit (pitx): Don't use enum names, use their values.
533 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
534 (pgx): Don't use enum names, use their values.
535 (pitmethod): New helper command.
536 (pitx): Use it to display iteration method.
537 (pgrowit): New command.
538
ad903955
EZ
539 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
540
3f670e9a
EZ
541 Update dependencies in Makefile.in.
542
543 * Makefile.in (alloc.o): Depend on termhooks.h.
544 (atimer.o): Depend on blockinput.h.
545 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
546 and frame.h.
547 (callint.o): Depend on systime.h, coding.h, and composite.h.
548 (callproc.o): Depend on buffer.h.
549 (casefiddle.o): Don't depend on charset.h.
550 (casetab.o): Depend on character.h.
551 (ccl.o): Depend on composite.h.
552 (chartab.o): Depend on ccl.h.
553 (cm.o): Depend on dispextern.h.
554 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
555 (coding.o): Don't depend on $(INTERVALS_H).
556 (composite.o): Don't depend on dispextern.h explicitly (it's in
557 $(INTERVALS_H)). Depend on ccl.h.
558 (data.o): Depend on systime.h, coding.h, composite.h,
559 dispextern.h, font.h, and ccl.h.
560 (dired.o): Depend on composite.h.
561 (dispnew.o): Depend on coding.h. Don't depend explicitly on
562 composite.h (it's in $(INTERVALS_H)).
563 (doc.o): Depend on systime.h, coding.h, and composite.h.
564 (editfns.o): Don't depend explicitly on dispextern.h.
565 (emacs.o): Depend on frame.h and coding.h.
566 (eval.o): Depend on coding.h, composite.h, and xterm.h.
567 (fileio.o): Depend on frame.h and commands.h. Don't depend
568 explicitly on dispextern.h.
569 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
570 composite.h.
571 (fns.o): Don't depend on termhooks.h.
572 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
573 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
574 coding.h, $(INTERVALS_H), window.h, xterm.h.
575 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
576 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
577 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
578 fontset.h, ccl.h, and ftfont.h.
579 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
580 (gtkutil.o): Depend on dispextern.h and composite.h.
581 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
582 termhooks.h, and ccl.h.
583 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
584 (intervals.o): Depend on systime.h and coding.h.
585 (keyboard.o): Depend on composite.h and coding.h.
586 (keymap.o): Depend on coding.h and frame.h.
587 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
588 (macros.o): Depend on systime.h, coding.h, and composite.h.
589 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
590 and atimer.h.
591 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
592 dispextern.h explicitly.
0b5397c2
SM
593 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
594 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
595 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
596 (regex.o): Don't depend on charset.h.
597 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
598 (search.o): Don't depend explicitly on composite.h.
599 (sound.o): Depend on atimer.h and systime.h.
600 (syntax.o): Don't depend explicitly on composite.h.
601 (sysdep.o): Depend on coding.h and composite.h.
602 (term.o): Depend on xterm.h and buffer.h.
603 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
604 (textprop.o): Don't depend on dispextern.h explicitly.
605 (undo.o): Depend on dispextern.h.
606 (window.o): Depend on coding.h and termhooks.h. Don't depend on
607 dispextern.h and composite.h explicitly.
608 (xdisp.o): Depend on ccl.h.
609 (xfaces.o): Depend on coding.h and ccl.h.
610 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
611 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
612 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
613 ftfont.h.
614 (xgselect.o): New dependency.
615 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
616 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
617 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
618 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
619 (xsmfns.o): Depend on frame.h and dispextern.h.
620 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
621 sysselect.h.
622
7a6f7fea
AS
6232009-12-19 Andreas Schwab <schwab@linux-m68k.org>
624
625 * font.c (Fclear_font_cache): Pass correct cache argument to
626 font_clear_cache.
627
f4c21026
AS
6282009-12-16 Andreas Schwab <schwab@linux-m68k.org>
629
630 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
631 twice.
632
f7ab0997
CY
6332009-12-15 Chong Yidong <cyd@stupidchicken.com>
634
635 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
636 calling file-remote-p. Reported by Jim Meyering.
637
fa8e045a
MA
6382009-12-15 Michael Albinus <michael.albinus@gmx.de>
639
640 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 641 avoid compiler warnings. (Bug #5217)
fa8e045a 642
a63dba42
KH
6432009-12-14 Kenichi Handa <handa@m17n.org>
644
645 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
646 in 8-bit encoding.
647
5ce6e4f4 6482009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
649
650 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
651 tooltip windows.
652
223e5fc6
JD
6532009-12-13 Jan Djärv <jan.h.d@swipnet.se>
654
36acb2a7
JD
655 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
656 Xatom_net_window_type.
657
658 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
659 Xatom_net_window_type.
660
b8f00677
JD
661 * xterm.c (my_log_handler): New function.
662 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 663 so we can filter out buggy messages. (Bug #5120).
b8f00677 664
e5f0bc9a
JD
665 * xterm.c (xg_scroll_callback): Parameter list changed,
666 use parameter GtkScrollType to determine scroll/line/page.
667 Only allow dragging if a button < 4 is grabbed (bug #5177).
668 (xg_end_scroll_callback): New function.
669 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
670 xg_create_scroll_bar.
671
672 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
673 (scroll_end_callback): Remove.
674 (xg_create_scroll_bar): Add parameter end_callback, bind it to
675 button-release-event. Replace value-changed event with change-value,
676 bug #5177,
677 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
678 bug #5177.
679
680 * gtkutil.h (XG_LAST_SB_DATA): Remove.
681 (xg_create_scroll_bar): Add GCallback end_callback.
682
223e5fc6
JD
683 * xftfont.c (QClcdfilter): New variable.
684 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
685 (syms_of_xftfont): Initialize QClcdfilter.
686
3c055b77
JD
6872009-12-12 Jan Djärv <jan.h.d@swipnet.se>
688
689 * xsettings.c (struct xsettings): Add member seen.
690 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 691 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
692 (apply_xft_settings): Only update Xft settings with what member seen
693 indicates as new.
694
05fe33ff
EZ
6952009-12-12 Eli Zaretskii <eliz@gnu.org>
696
697 * dispextern.h (struct text_pos): Use EMACS_INT;
698 (struct glyph): Use EMACS_INT for charpos.
699 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
700 region_beg_charpos, region_end_charpos,
701 redisplay_end_trigger_charpos, and also for
702 iterator_stack_entry.end_charpos and
703 iterator_stack_entry.stop_charpos.
704
e8d7886a
JD
7052009-12-12 Jan Djärv <jan.h.d@swipnet.se>
706
5ce6e4f4 707 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
708 (xg_create_scroll_bar): Call scroll_end_callback on button release
709 event (bug #5177).
710 (xg_event_is_for_scrollbar): != replaced with ==.
711
d0db2ec8
KH
7122009-12-12 Kenichi Handa <handa@m17n.org>
713
714 * ftfont.c (struct ftfont_info): New member matrix.
715 (ftfont_open): Setup xftfont_info->matrix.
716 (MFLTFontFT): New member matrix.
717 (FLOOR, CEIL, ROUND): New macros.
718 (ftfont_get_metrics): Handle matrix transformation.
719 (ftfont_shape_by_flt): New arg matrix. Callers changed.
720
721 * xftfont.c (struct xftfont_info): New member matrix.
722 (xftfont_open): Setup xftfont_info->matrix.
723
7242009-12-10 Kenichi Handa <handa@m17n.org>
725
726 * xdisp.c (append_space_for_newline): Consider face-remapping.
727
2cc7b62f
AS
7282009-12-09 Andreas Schwab <schwab@linux-m68k.org>
729
b87dd913
AS
730 * xsettings.c: Include "keyboard.h".
731
eba5eb94
AS
732 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
733
2cc7b62f
AS
734 Fix implicit function declarations.
735 * cmds.c: Include "frame.h".
736 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
737 * frame.h: Move declaration of delete_frame outside of
738 HAVE_WINDOW_SYSTEM.
739
a4ef73c8
CY
7402009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
741
742 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
743
744 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
745 GTK builds.
746
944a300c
AS
7472009-12-07 Andreas Schwab <schwab@linux-m68k.org>
748
749 * unexelf.c (unexec): Don't search for .data twice.
750
022eef62
CY
7512009-12-05 Chong Yidong <cyd@stupidchicken.com>
752
426ac949
CY
753 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
754 if push failed.
755 (handle_line_prefix): Set avoid_cursor_p here. Check return value
756 of push_display_prop (Bug#5000).
757
022eef62
CY
758 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
759 value of font_list_entities (Bug#5085).
760
be95bee9
JB
7612009-12-04 Juanma Barranquero <lekktu@gmail.com>
762
763 Fix `string-to-number' to deal consistently with integers and floats.
764 * lread.c (isfloat_string): New argument ignore_trailing to accept all
765 trailing characters, not just whitespace.
766 (read1): Pass new arg 0 to keep old behavior.
767 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
768 trailing chars, as it is already done for integers. Doc fixes.
769 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
770
24c2d7ce
EZ
7712009-12-04 Eli Zaretskii <eliz@gnu.org>
772
0b5397c2
SM
773 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
774 Delete unused enumeration value.
24c2d7ce 775
7e694795
EZ
7762009-12-03 Eli Zaretskii <eliz@gnu.org>
777
778 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
779
84b31826
SM
7802009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
781
782 * process.c (Fmake_network_process): Fix up the tests for
783 "connectionless socket", so they DTRT for seqpacket sockets as well.
784
f00c449b
SM
7852009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
786
787 * process.c (Qseqpacket): New symbol.
788 (HAVE_SEQPACKET): New macro.
789 (Fmake_network_process): Accept new :type `seqpacket'.
790 (init_process): Add `seqpacket' feature when applicable.
791 (syms_of_process): Initialize Qseqpacket.
792
8096a0ff
YM
7932009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
794
795 * font.c (font_load_for_lface, font_open_by_name): Don't store name
796 if entity is Qnil.
797
3e0de07f
SM
7982009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
799
800 * print.c (print_preprocess): Preprocess the key_and_value table of
801 hashtables, even tho they're "hidden" (bug#5082).
802
abeafb2a
JD
8032009-11-29 Jan Djärv <jan.h.d@swipnet.se>
804
805 * frame.c (frame_make_pointer_invisible)
806 (frame_make_pointer_visible): Declare f before statements.
807
4bf47195
EZ
8082009-11-28 Eli Zaretskii <eliz@gnu.org>
809
810 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
811 omitted dependencies on lisp.h.
812
c525b3f2
JD
8132009-11-27 Jan Djärv <jan.h.d@swipnet.se>
814
ece2d4ed
JD
815 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
816 is NULL.
817
818 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
819
820 * frame.c (frame_make_pointer_invisible)
3e0de07f 821 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
822 frame.
823
c525b3f2
JD
824 * search.c (simple_search): Remove warning by making *p const.
825
2f00e299
DN
8262009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
827
828 * xdisp.c (power_letter): Remove duplicate const.
829
084b049b
JD
8302009-11-25 Jan Djärv <jan.h.d@swipnet.se>
831
a1fadc6f
JD
832 * term.c (delete_tty): Remove check for last terminal (bug#4970).
833
5ce6e4f4 834 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
835 defaults (bug #5025).
836
28259cac
SM
8372009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
838
839 * insdel.c (adjust_markers_for_delete): Move it in the
840 right direction! (bug#4803)
841
e8e14166
YM
8422009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
843
844 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
845
846 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
847
86677b58
GM
8482009-11-24 Glenn Morris <rgm@gnu.org>
849
850 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
851
581e51e8
JD
8522009-11-23 Jan Djärv <jan.h.d@swipnet.se>
853
cfc86c7a
JD
854 * Makefile.in: Must create deps for ecrt0.o in its rule.
855
581e51e8
JD
856 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
857 because that is what Gtk+ font dialog understands.
858
859 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
860 of Fcopy_sequence.
861 (font_open_by_name): Put name given into QCname for font-object returned.
862
863 * frame.c (x_set_font): Save original font name as frame parameter
864 font-parameter.
865
866 * xsettings.c (set_default_xft_settings): New function.
867 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
868 is found.
869
8b264ecb
AS
8702009-11-22 Andreas Schwab <schwab@linux-m68k.org>
871
872 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
873 searching backwards through multibyte buffer.
874
872870b2
JD
8752009-11-21 Jan Djärv <jan.h.d@swipnet.se>
876
877 * xterm.c: #include xgselect.h.
878 (x_initialize): Call xgselect_initialize.
879
880 * xsettings.c (something_changedCB): C++ comments => C comments.
881 (init_gconf): Do not deal with any GLib file descriptors, xg_select
882 does that now.
883
884 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
885 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
886 (scroll_bar_button_cb): Remove.
5ce6e4f4 887 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
888 event.
889 (xg_create_scroll_bar): Don't bind button-press-event and
890 button-release-event.
891
892 * process.c: Include xgselect.h if defined (USE_GTK) ||
893 defined (HAVE_GCONF).
894 (wait_reading_process_output): Call xg_select for the same condition.
895
896 * xgselect.c (xg_select): New function to better integrate with
897 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
898
899 * xgselect.h: New file, declare xg_select, xgselect_initialize.
900
901 * Makefile.in (XOBJ): Add xgselect.o.
902
62a6e103
AS
9032009-11-21 Andreas Schwab <schwab@linux-m68k.org>
904
0b5397c2
SM
905 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
906 Remove ignored second argument. All callers changed.
62a6e103
AS
907 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
908 (RE_STRING_CHAR_AND_LENGTH): Likewise.
909 * xdisp.c (string_char_and_length): Likewise.
910
b0ca0f33
DN
9112009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
912
913 * xterm.c (x_new_font):
914 * print.c (print_object):
915 * cmds.c (Fself_insert_command): Move declarations before statements.
916
dd5a6279
CY
9172009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
918
919 * s/cygwin.h: Remove unneeded linker flags.
920
4a8e097d
JD
9212009-11-20 Jan Djärv <jan.h.d@swipnet.se>
922
0d1d0d26
JD
923 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
924
925 * xsettings.h: Declare xsettings_get_system_font.
926
927 * xsettings.c (xsettings_get_system_font): New function.
928 (init_gconf): No use initiating gconf unless we have Xft also.
929 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
930 HAVE_GCONF.
931
4a8e097d
JD
932 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
933 add a blank entry so it doesn't collapse into nothing.
934
8ab1650e
SM
9352009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
936
937 * lread.c (Funintern): Comment out last change.
938
82c602f0
RS
9392009-11-19 Richard Stallman <rms@gnu.org>
940
941 * lread.c (Funintern): Error if symbol is t or nil.
942
87e32266
SM
9432009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
944
945 * insdel.c (make_gap_larger): Don't make as many assumptions about the
946 representation of Lisp integers.
947 Reported by MJ Chan <mjchan.inbox@gmail.com>.
948
1b9ac145
AS
9492009-11-17 Andreas Schwab <schwab@linux-m68k.org>
950
951 * lisp.h: Remove declaration of Ffont_get_system_font.
952 * xfns.c: Move include of "xsettings.h".
953 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
954
dfb3c4c6
JD
9552009-11-17 Jan Djärv <jan.h.d@swipnet.se>
956
87e32266
SM
957 * xsettings.c (something_changedCB, Ffont_get_system_font):
958 Check use_system_font.
dfb3c4c6
JD
959 (syms_of_xsettings): DEFVAR font-use-system-font.
960
9370c1d8
AS
9612009-11-17 Andreas Schwab <schwab@linux-m68k.org>
962
25fe851a
AS
963 * xfns.c (x_default_font_parameter): Remove dead assignment.
964
9370c1d8
AS
965 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
966
637fa988
JD
9672009-11-17 Jan Djärv <jan.h.d@swipnet.se>
968
87e32266 969 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 970 not have FC_LCD_*. #define them if not there.
a6eb20d8 971
87e32266 972 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 973
637fa988
JD
974 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
975
976 * xterm.c (handle_one_xevent): Call xft_settings_event for
977 ClientMessage, PropertyNotify and DestroyNotify.
978 (x_term_init): If we have XFT, get DPI from Xft.dpi.
979 Call xsettings_initialize.
980
981 * xftfont.c (xftfont_fix_match): New function.
982 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
983 Call xftfont_fix_match after XftFontMatch.
984
985 * xfont.c (xfont_driver): Initialize all members.
986
87e32266
SM
987 * xfns.c (x_default_font_parameter):
988 Try font from Ffont_get_system_font.
637fa988
JD
989 Do not get font from x_default_parameter if we got one from
990 Ffont_get_system_font.
87e32266 991 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
992
993 * w32font.c (w32font_driver): Initialize all members.
994
995 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
996
997 * lisp.h: Declare syms_of_xsettings.
998
87e32266
SM
999 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1000 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1001
1002 * ftfont.c (ftfont_filter_properties): New function.
1003
1004 * frame.c (x_set_font): Remove unused variable lval.
1005
87e32266 1006 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1007
1008 * font.c (font_put_extra): Don't return if val is nil, it means
1009 boolean option is off.
1010 (font_parse_fcname): Collect all extra properties in extra_props
1011 and call filter_properties for all drivers with extra_props and
1012 font as parameter.
87e32266
SM
1013 (font_open_entity): Do not use cache, it does not pick up new
1014 fontconfig settings like hinting.
637fa988
JD
1015 (font_load_for_lface): If spec had a name in it, store it in entity.
1016
1017 * emacs.c (main): Call syms_of_xsettings
1018
1019 * config.in: HAVE_GCONF is new.
1020
1021 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1022 xsettings.o is new.
1023
5a942932
KH
10242009-11-17 Kenichi Handa <handa@m17n.org>
1025
1026 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1027 back to the default font in case that no suitable font is found.
1028
b7c7a4d1
SM
10292009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1030
1031 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1032 Suggested by Chad Brown <yandros@mit.edu>.
1033 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1034
072f1e39
JD
10352009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1036
1037 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1038
5d1e70a2
AS
10392009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1040
87e32266 1041 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1042
a53cfbe5
JD
10432009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1044
473a99b7
JD
1045 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1046 has a parent.
1047
a53cfbe5 1048 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1049 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1050
1051 * config.in: Generated (AUTO_DEPEND).
1052
f04bb9b2
MA
10532009-11-13 Michael Albinus <michael.albinus@gmx.de>
1054
b7c7a4d1 1055 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1056 Vdbus_registered_functions_table, because it contains also
1057 properties. Fix docstring.
b7c7a4d1 1058 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1059
8f11f7ec
SM
10602009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1061
1062 * alloc.c (mark_object): Don't reprocess marked strings.
1063 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1064 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1065
8a605fe8
KH
10662009-11-13 Kenichi Handa <handa@m17n.org>
1067
8f11f7ec 1068 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1069 semantics of Vword_combining_categories.
1070 (Vword_combining_categories): Describe the slight change of the
1071 semantics.
1072
241c4680
EZ
10732009-11-13 Eli Zaretskii <eliz@gnu.org>
1074
1075 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1076
1077 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1078
5d58e44c
SM
10792009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1080
1081 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1082
5e13f9d3
JB
10832009-11-12 Juanma Barranquero <lekktu@gmail.com>
1084
1085 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1086
cf54c754
DR
10872009-11-11 David Reitter <david.reitter@gmail.com>
1088
1089 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1090 variables to fix 2009-11-09 change.
1091
a4ada374
DN
10922009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1093
91433552
DN
1094 * process.c (ifflag_def): Make flag_sym constant.
1095 (Fnetwork_interface_info): Use a constant pointer.
1096 (ifflag_table):
1097 * xfns.c (cursor_bits):
1098 * xdisp.c (power_letter):
1099 * termcap.c (speeds, esctab):
1100 * sysdep.c (baud_convert):
1101 * keyboard.c (lispy_accent_codes, modifier_names):
1102 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1103 (jpeg_format, tiff_format, gif_format, svg_format)
1104 (interlace_start, interlace_increment, gs_format):
1105 * gtkutil.c (separator_names):
1106 * fringe.c (swap_nibble):
1107 * fns.c (base64_value_to_char, base64_char_to_value):
1108 * fileio.c (make_temp_name_tbl):
1109 * coding.c (suffixes): Make constant.
1110
f4265f6c
DN
1111 * frame.c (make_initial_frame):
1112 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1113 build_string.
1114 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1115
04420943
DN
1116 * s/freebsd.h:
1117 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1118
0a5d24ae
DN
1119 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1120 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1121
a4ada374
DN
1122 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1123 * xterm.c (syms_of_xterm):
1124 * xfaces.c (syms_of_xfaces):
1125 * xdisp.c (syms_of_xdisp):
1126 * lread.c (syms_of_lread):
1127 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1128 build_string.
91433552 1129
a4ada374
DN
1130 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1131
af98fc7f
SM
11322009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1133
8ab1650e 1134 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1135
e90292a9
JD
11362009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1137
1138 * keyboard.h: Declare timer_check.
1139
1140 * keyboard.c (timer_check_2): New function that does what the old
1141 timer_check did.
1142 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1143 returned, i.e. don't return -1 with timers pending.
1144
1145 * process.c: Remove extern declaration of timer_check.
1146
1147 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1148 even if timer_check returned -1.
1149
af98fc7f
SM
1150 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1151 xg_dialog_data.
e90292a9
JD
1152 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1153 the event loop.
1154 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1155 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1156 Destroy the dialog after xg_dialog_run.
1157
045b83c0
SM
11582009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1159
1160 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1161
1fb99a3a
JD
11622009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1163
1164 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1165
04e452cb
JB
11662009-11-09 Juanma Barranquero <lekktu@gmail.com>
1167
1168 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1169
ef7417fd
SM
11702009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1171
1172 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1173 w32menu.c, and nsmenu.m.
1174 Simplify the obsolete case where position is nil.
1175 (cleanup_popup_menu): New function, moved from nsmenu.m.
1176 (struct skp): Remove slot `notreal'.
1177 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1178 adjust callers.
1179 (single_menu_item): Adjust call to parse_menu_item.
1180 (syms_of_menu): Defsubr x-popup-menu.
1181 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1182 (keymap_panes): Don't export any more.
1183 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1184 (xmenu_show): Declare.
1185 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1186 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1187 * keyboard.h (parse_menu_item): Update declaration.
1188 * xmenu.c (Fx_popup_menu): Remove.
1189 (syms_of_xmenu): Don't defsubr x-popup-menu.
1190 * w32menu.c (Fx_popup_menu): Remove.
1191 (syms_of_w32menu): Don't defsubr x-popup-menu.
1192 * nsmenu.m (cleanup_popup_menu): Remove.
1193 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1194 moved to menu.c's Fx_popup_menu.
1195 (Fx_popup_menu): Remove.
1196 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1197 menu_items (it's done in menu.c already).
1198
424d6179
SM
11992009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1200
1201 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1202 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1203
c0df13a6 12042009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1205
1206 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1207 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1208 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1209 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1210
2de9f71c
SM
12112009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1212
1213 Let integers use up 2 tags to give them one extra bit and thus double
1214 their range.
1215 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1216 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1217 New macros.
1218 (enum Lisp_Type): Use them. Give explicit values.
1219 (Lisp_Type_Limit): Remove.
1220 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1221 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1222 Pay attention to USE_2_TAGS_FOR_INTS.
1223 (INTEGERP): Use LISP_INT_TAG_P.
1224 * fns.c (internal_equal): Simplify the default case.
1225 (sxhash): Use case_Lisp_Int.
1226 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1227 any more.
1228 (Ftype_of): Use case_Lisp_Int.
1229 (store_symval_forwarding): Take into account the fact that Ints can
1230 now have more than one tag.
1231 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1232 buffer_slot_type_mismatch):
1233 * xfaces.c (face_attr_equal_p):
1234 * print.c (print_object):
1235 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1236 Use case_Lisp_Int.
1237
323637a2
EZ
12382009-11-06 Eli Zaretskii <eliz@gnu.org>
1239
7ac65b38
EZ
1240 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1241
323637a2
EZ
1242 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1243 warning.
1244
e511451f
JD
12452009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1246
1247 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1248
1249 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1250
1251 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1252 ButtonPressRelease and MotionNotify (bug#4870).
1253
5e2327cf
DN
12542009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1255
5adc433e
DN
1256 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1257
d67b4f80
DN
1258 * xterm.c (syms_of_xterm):
1259 * xselect.c (syms_of_xselect):
1260 * xmenu.c (syms_of_xmenu):
1261 * xfns.c (syms_of_xfns):
1262 * xfaces.c (syms_of_xfaces):
1263 * xdisp.c (syms_of_xdisp):
1264 * window.c (syms_of_window):
1265 * w32fns.c (syms_of_w32fns):
1266 * undo.c (syms_of_undo):
1267 * textprop.c (syms_of_textprop):
1268 * terminal.c (syms_of_terminal):
1269 * syntax.c (syms_of_syntax):
1270 * sound.c (syms_of_sound):
1271 * search.c (syms_of_search):
1272 * print.c (syms_of_print):
1273 * minibuf.c (syms_of_minibuf):
1274 * macros.c (syms_of_macros):
1275 * keymap.c (syms_of_keymap, initial_define_key)
1276 (initial_define_lispy_key):
1277 * keyboard.c (syms_of_keyboard):
1278 * insdel.c (syms_of_insdel):
1279 * image.c (syms_of_image):
1280 * fringe.c (syms_of_fringe):
1281 * frame.c (syms_of_frame):
1282 * fontset.c (syms_of_fontset):
1283 * fns.c (syms_of_fns):
1284 * fns.c (syms_of_fns):
1285 * fileio.c (syms_of_fileio):
1286 * fileio.c (syms_of_fileio):
1287 * eval.c (syms_of_eval):
1288 * doc.c (syms_of_doc):
1289 * dispnew.c (syms_of_display):
1290 * dired.c (syms_of_dired):
1291 * dbusbind.c (syms_of_dbusbind):
1292 * data.c (syms_of_data):
1293 * composite.c (syms_of_composite):
1294 * coding.c (syms_of_coding):
1295 * cmds.c (syms_of_cmds):
1296 * charset.c (define_charset_internal, syms_of_character):
1297 * ccl.c (syms_of_ccl):
1298 * category.c (syms_of_category, init_category_once):
1299 * casetab.c (syms_of_casetab):
1300 * casefiddle.c (syms_of_casefiddle):
1301 * callint.c (syms_of_callint):
1302 * bytecode.c (syms_of_bytecode):
1303 * buffer.c (keys_of_buffer, syms_of_buffer):
1304 * alloc.c (syms_of_alloc):
1305 * process.c (syms_of_process, init_process):
1306 * lread.c (syms_of_lread, init_obarray):
1307 * font.c (build_style_table):
1308 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1309 intern_c_string, calls to make_pure_string with
1310 make_pure_c_string. Use pure_cons instead of Fcons.
1311
5e2327cf
DN
1312 * process.c (socket_options): Make it const.
1313 (set_socket_option, init_process): Use a const pointer.
1314
1315 * lread.c (intern_c_string): New function.
1316 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1317 (defvar_int): Uset it. Make the name const char*.
1318
1319 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1320 (defvar_int): Update prototypes.
1321 (DEFUN, EXFUN): Support for prototypes is now required.
1322 (intern_c_string): New prototype.
1323 (struct Lisp_Subr): Make symbol_name constant.
1324
1325 * font.c (struct table_entry): Remove unused member. Make NAMES
1326 constant.
1327 (weight_table, slant_table, width_table): Make constant.
1328
1329 * emacs.c (struct standard_args): Make name and longname constant.
1330
1331 * character.h (DEFSYM): Use intern_c_string.
1332
a56eaaef
DN
13332009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1334
1335 * alloc.c (make_pure_c_string): New function.
1336
1337 * eval.c (Fautoload): Purecopy all arguments.
1338
f6a07420
KH
13392009-11-05 Kenichi Handa <handa@m17n.org>
1340
1341 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1342 the buffer in case of replace.
1343
5d28d4b1
DN
13442009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1345
1346 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1347
b349d111
SM
13482009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1349
d528b1ce
SM
1350 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1351 when applicable (bug#4851).
1352
b349d111
SM
1353 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1354 (P_): Support for prototypes is now required.
1355
c38eb027
CY
13562009-10-31 Chong Yidong <cyd@stupidchicken.com>
1357
1358 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1359 (Bug#4827).
1360
0405f8d9
EZ
13612009-10-30 Eli Zaretskii <eliz@gnu.org>
1362
d528b1ce 1363 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1364
ca0a881a
DN
13652009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1366
1367 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1368
d528b1ce
SM
1369 * lread.c (Fload): Purecopy the file name when building
1370 Vpreloaded_file_list.
ca0a881a 1371
47e0e0e4
JR
13722009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1373
1374 * w32fns.c (syms_of_w32fns): Change default value of
1375 w32-scroll-lock-modifier to nil. (Bug#2827)
1376
057bce6f
JB
13772009-10-26 Juanma Barranquero <lekktu@gmail.com>
1378
782a943e 1379 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1380
242bc74c
AS
13812009-10-26 Andreas Schwab <schwab@redhat.com>
1382
1383 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1384
522d013a
JB
13852009-10-26 Juanma Barranquero <lekktu@gmail.com>
1386
1387 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1388 For delta < 0, skip check that only makes sense when the mini-window
1389 is going to be enlarged. (Bug#4534)
1390
18060980
CY
13912009-10-25 Chong Yidong <cyd@stupidchicken.com>
1392
1393 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1394 string in menu maps (Bug#4471).
1395
fec8f0fe
CY
13962009-10-24 Chong Yidong <cyd@stupidchicken.com>
1397
1398 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1399 FRAME_NS_VIEW on terminal frames (Bug#4765).
1400
10d66ec0
AS
14012009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1402
1cae01f7
AS
1403 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1404 DBUS_TYPE_UINTnn separately to get proper sign extension.
1405
58a12889
AS
1406 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1407 can properly handle unsigned types.
d528b1ce 1408 (make_uid, make_gid): Remove.
58a12889 1409
987c9327
AS
1410 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1411 types again.
1412
522d013a 1413 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1414 (system_process_attributes): Likewise.
1415
905a9ed3
DN
14162009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1417
1418 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1419
1420 * eval.c (Fautoload): Purecopy the filename. Simplify.
1421
1422 * category.c (Fdefine_category): Purecopy docstring.
1423
a599b3e8
AS
14242009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1425
7b792fc9
AS
1426 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1427
a599b3e8
AS
1428 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1429
b35ac83e
CY
14302009-10-23 Chong Yidong <cyd@stupidchicken.com>
1431
1432 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1433 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1434 (Bug#4775).
1435
e8903e00
SM
14362009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1437
1438 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1439 (init_fileio_once):
1440 * lisp.h (init_fileio_once): Remove.
1441 * emacs.c (main): Don't call init_fileio_once.
1442
8f43cbf3
DN
14432009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1444
1445 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1446
26898943
AS
14472009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1448
1449 * doprnt.c (doprnt): Fix overflow check.
1450
5c646d5a
JD
14512009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1452
3132a7ea
JD
1453 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1454
5c646d5a
JD
1455 * xterm.h (x_wait_for_event): Declare it.
1456
1457 * xterm.c (pending_event_wait): New variable.
1458 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1459 see pending_event_wait.eventtype.
1460 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1461 (x_new_font): Call change_frame_size with new rows/columns before we
1462 try to resize the frame.
5c646d5a 1463 (x_wait_for_event): New function.
d528b1ce
SM
1464 (x_set_window_size_1): Don't change gravity unless change_gravity
1465 is set.
5c646d5a
JD
1466 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1467 don't change frame size, instead wait for the ConfigureNotify.
1468 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1469 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1470 (x_initialize): Initialize pending_event_wait.
1471
1472 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1473 size.
1474
1475 * widget.c (EmacsFrameSetValues): Add comment.
1476 (EmacsFrameSetCharSize): Just call x_set_window_size.
1477
1478 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1479 x_wait_for_event.
d528b1ce 1480 (flush_and_sync): Remove again.
5c646d5a
JD
1481 (xg_get_font_name): Suggest monospace if no previous font is known.
1482
e9c1637d
SM
14832009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1484
1485 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1486 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1487
5a72cccb
YM
14882009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1489
1490 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1491 processing pending events when event is filtered for input method.
ab04798f 1492 (Bug#3681)
5a72cccb 1493
2629aa37
JB
14942009-10-20 Juanma Barranquero <lekktu@gmail.com>
1495
1496 * fns.c: Add #endif accidentally removed in previous change.
1497
c3417a74
DN
14982009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1499
1500 * fns.c: Remove code for unsupported system: MAC_OS.
1501 * image.c: Likewise. Include setjmp.h.
1502
9685cef2
JD
15032009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1504
1505 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1506 pixel -1 (bug #4742).
1507
d7306fe6
DN
15082009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1509
019d2c4c
DN
1510 * process.c (create_pty): Remove conditionals for no longer
1511 supported systems: UNIPLUS and RTU.
1512
ee6bacd4
DN
1513 * xterm.c:
1514 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1515
d7306fe6
DN
1516 * alloc.c: Do not define struct catchtag.
1517 * eval.c: Move struct catchtag definition ...
1518 * lisp.h: ... here.
1519
1520 * image.c: Move png.h #include earlier to avoid warnings.
1521
1522 * xterm.c:
1523 * xsmfns.c:
1524 * xselect.c:
1525 * xrdb.c:
1526 * xmenu.c:
1527 * xftfont.c:
1528 * xfont.c:
1529 * xfns.c:
1530 * xfaces.c:
1531 * xdisp.c:
1532 * window.c:
1533 * widget.c:
1534 * w32xfns.c:
1535 * w32uniscribe.c:
1536 * w32term.c:
1537 * w32select.c:
1538 * w32reg.c:
1539 * w32proc.c:
1540 * w32menu.c:
1541 * w32inevt.c:
1542 * w32heap.c:
1543 * w32font.c:
1544 * w32fns.c:
1545 * w32console.c:
1546 * w32.c:
1547 * w16select.c:
1548 * vm-limit.c:
1549 * unexsol.c:
1550 * unexec.c:
1551 * unexcw.c:
1552 * unexaix.c:
1553 * undo.c:
1554 * tparam.c:
1555 * textprop.c:
1556 * terminfo.c:
1557 * terminal.c:
1558 * termcap.c:
1559 * term.c:
1560 * syntax.c:
1561 * sound.c:
1562 * sheap.c:
1563 * search.c:
1564 * scroll.c:
1565 * region-cache.c:
1566 * regex.c:
1567 * ralloc.c:
1568 * process.c:
1569 * print.c:
b024548b
DN
1570 * nsterm.m:
1571 * nsselect.m:
1572 * nsmenu.m:
1573 * nsimage.m:
1574 * nsfont.m:
1575 * nsfns.m:
d7306fe6
DN
1576 * msdos.c:
1577 * minibuf.c:
1578 * menu.c:
1579 * marker.c:
1580 * macros.c:
1581 * keymap.c:
1582 * keyboard.c:
1583 * intervals.c:
1584 * insdel.c:
1585 * indent.c:
1586 * gtkutil.c:
1587 * ftxfont.c:
1588 * ftfont.c:
1589 * fringe.c:
1590 * frame.c:
1591 * fontset.c:
1592 * font.c:
1593 * fns.c:
1594 * floatfns.c:
1595 * filelock.c:
1596 * fileio.c:
1597 * emacs.c:
1598 * editfns.c:
1599 * dosfns.c:
1600 * doprnt.c:
1601 * doc.c:
1602 * dispnew.c:
1603 * dired.c:
1604 * dbusbind.c:
1605 * data.c:
1606 * composite.c:
1607 * coding.c:
1608 * cmds.c:
1609 * cm.c:
1610 * chartab.c:
1611 * charset.c:
1612 * character.c:
1613 * ccl.c:
1614 * category.c:
1615 * casetab.c:
1616 * casefiddle.c:
1617 * callproc.c:
1618 * callint.c:
1619 * bytecode.c:
1620 * buffer.c:
1621 * atimer.c: Include setjmp.h. (Bug#4643)
1622
fd5f21e6
SM
16232009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1624
4c0354d7
SM
1625 Remove leftover table unibyte_to_multibyte_table.
1626 * character.c (unibyte_to_multibyte_table): Remove.
1627 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1628 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1629 * character.h (UNIBYTE_TO_CHAR): New macro.
1630 (MAKE_CHAR_MULTIBYTE): Use it.
1631 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1632 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1633 (message_dolog, set_message_1):
1634 * search.c (Freplace_match):
1635 * editfns.c (Fcompare_buffer_substrings):
1636 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1637 (concat):
1638 * insdel.c (copy_text, count_size_as_multibyte):
1639 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1640 * term.c (produce_glyphs):
1641 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1642 * regex.c (RE_CHAR_TO_MULTIBYTE):
1643 * cmds.c (internal_self_insert):
1644 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1645
fd5f21e6
SM
1646 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1647
4418646e
DN
16482009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1649
1650 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1651
35f5c1d2
JB
16522009-10-16 Juanma Barranquero <lekktu@gmail.com>
1653
1654 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1655
a0cd8f6b
AR
16562009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1657
1658 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1659 still needed under Tiger.
1660
1661 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1662
1663 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1664 __Apple__.
1665
1666 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1667
01a8d3fa
KH
16682009-10-15 Kenichi Handa <handa@m17n.org>
1669
1670 * print.c (print_object): Escape a symbol like "2E10" too.
1671
bf6c75c9 16722009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1673
1674 Cleanups and changes for 64-bit compile under Snow Leopard.
1675 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1676
1677 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1678
c5959062 1679 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1680 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1681 cast argument.
1682 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1683 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1684
1685 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1686
1687 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1688 where appropriate.
1689
1690 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1691 where appropriate.
6e4780c5
JB
1692 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1693 Use stringWithUTF8String.
bf6c75c9
AR
1694 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1695
6e4780c5
JB
1696 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1697 Add formal protocol mention to inheritance.
bf6c75c9
AR
1698 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1699
6e4780c5
JB
1700 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1701 Fix printf format.
bf6c75c9
AR
1702 (ns_query_color): Use CGFloat where appropriate.
1703 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1704 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1705 argument.
1706
3d87f118
AR
1707 * config.in (NS_HAVE_NSINTEGER): Drop.
1708
a95c8102
AR
1709 * dbusbind.c (dbus-method-return-internal)
1710 (dbus-method-error-internal): Use long format in printf, and cast
1711 argument.
1712
1713 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1714 in printf, and cast argument.
1715
6873acca 1716 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1717 cast argument.
1718
9ec6f100
GM
17192009-10-11 Glenn Morris <rgm@gnu.org>
1720
1721 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1722
5be883cd
JD
17232009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1724
1725 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1726 menu bar with a small width so it doesn't enlarge the frame.
1727
d7a39b51
JB
17282009-10-08 Juanma Barranquero <lekktu@gmail.com>
1729
1730 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1731
0c2b6f8e
GM
17322009-10-06 Glenn Morris <rgm@gnu.org>
1733
1734 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1735 SOME_MACHINE_LISP (this enters indirectly via DOC).
1736
e02131a2
EZ
17372009-10-05 Eli Zaretskii <eliz@gnu.org>
1738
1739 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1740
b4744254
EZ
17412009-10-04 Eli Zaretskii <eliz@gnu.org>
1742
1743 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1744 Doc fix.
1745
dbf64827
JB
17462009-10-03 Martin Rudalics <rudalics@gmx.at>
1747
1748 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1749
e9a0aef8
MA
17502009-10-02 Michael Albinus <michael.albinus@gmx.de>
1751
d528b1ce 1752 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1753 used anymore outside fileio.c.
1754
1755 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1756
64eb2b56
JB
17572009-10-01 Juanma Barranquero <lekktu@gmail.com>
1758
1759 * lisp.h (Qdelete_directory_internal):
1760 Declare, instead of Qdelete_directory.
1761
1762 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1763
9d28c33e
SM
17642009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1765
1766 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1767
9d8f3bd9
MA
17682009-10-01 Michael Albinus <michael.albinus@gmx.de>
1769
9d28c33e 1770 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1771 Fdelete_directory. It is not a command anymore. It has no file
1772 name handler.
1773
9694740b
SM
17742009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1775
1776 * xdisp.c (get_next_display_element): Use an enum in last change.
1777
748e162f
KH
17782009-09-28 Kenichi Handa <handa@m17n.org>
1779
9694740b 1780 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1781 unibyte_display_via_language_environment in handling
1782 Vnobreak_char_display.
1783
17efd58d
AR
17842009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1785
1786 * nsterm.h (ns_app_name): New extern variable.
1787
1788 * nsterm.m (ns_app_name): New variable.
1789 (ns_term_init): Set and use it.
1790 (ns_term_shutdown): Use it.
1791
1792 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1793 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1794
1795 * nsfns.m (ns_set_name_iconic, ns_set_name)
1796 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1797 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1798
9694740b
SM
1799 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1800 Remove double-casting in client_data comparison.
31c2d412 1801
3208cb35
YM
18022009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1803
1804 * keyboard.c (make_lispy_event): Remember last wheel direction.
1805 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1806
b7d552d6
GM
18072009-09-26 Glenn Morris <rgm@gnu.org>
1808
1809 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1810 internal.elc. Add term/pc-win.elc.
1811 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1812 term/x-win.elc.
1813 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1814 term/w32-win.elc.
1815 (NS_SUPPORT): New.
1816 (lisp): Add NS_SUPPORT.
1817 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1818
4ff670a8
DR
18192009-09-25 David Reitter <david.reitter@gmail.com>
1820
1821 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1822 on Mac OS X 10.6+ (bug#4513).
1823
feabfb6c
JB
18242009-09-24 Juanma Barranquero <lekktu@gmail.com>
1825
1826 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1827 some parts of Emacs code (like font selection) don't grok them.
1828 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1829
de59072a
AS
18302009-09-24 Andreas Schwab <schwab@redhat.com>
1831
1832 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1833
a489517b
JB
18342009-09-24 Juanma Barranquero <lekktu@gmail.com>
1835
1836 * dired.c (Fdirectory_files): Fix typo in docstring.
1837
0592970c
AR
18382009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1839
1840 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1841 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1842 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1843 under GNUstep.
1844 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1845
1846 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1847 glyph advancement.
1848
48e8a88b
AR
18492009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1850
1851 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1852 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1853
1854 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1855 deleted (bug #4492).
1856
e14f0a78
AR
1857 * nsfont.m (Vns_reg_to_script): New lisp variable.
1858 (syms_of_nsfont): Declare it.
1859 (ns_registry_to_script): New function.
1860 (ns_get_req_script): Call it.
1861 (ns_findfonts): Don't give up on non-unicode registry.
1862
1863 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1864
5b650faa
SM
18652009-09-20 Tom Tromey <tromey@redhat.com>
1866
1867 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1868 batch mode (bug#4228).
1869
a489517b 18702009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1871
1872 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1873 carefully. (Bug #4339)
0bae4e09 1874
fcfe06f3
CY
18752009-09-18 Chong Yidong <cyd@stupidchicken.com>
1876
d798ba87 1877 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1878
31642728
AR
18792009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1880
1881 * emacs.c (inhibit_x_resources): Update doc string for NS.
1882 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1883 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1884
1885 * nsterm.h (ns_no_defaults): Remove.
1886
1887 * nsterm.m (ns_no_defaults): Remove.
1888 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1889 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1890 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1891 don't update the NSWindow itself.
1892 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1893 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1894
1895 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1896 ns_use_qd_smoothing.
1897
1898 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1899 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1900 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1901 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1902
8686ac71
JB
19032009-09-17 Juanma Barranquero <lekktu@gmail.com>
1904
1905 * emacs.c (inhibit_x_resources): New variable.
1906 (main) [HAVE_NS]: Don't process --quick command line option.
1907 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1908
1909 * lisp.h (inhibit_x_resources): Declare it extern.
1910
1911 * w32reg.c (x_get_string_resource):
1912 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1913
e227ba05
EZ
19142009-09-17 Eli Zaretskii <eliz@gnu.org>
1915
362654a6
JB
1916 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1917 Add lisp/term/internal.elc.
e227ba05 1918
742d40e8
SM
19192009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1920
1921 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1922 (bug#4461).
1923
005bd5a2
DN
19242009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1925
1926 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1927
1928 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1929 (OBJECTS_MACHINE): Remove, unused.
1930
f9af9719
SM
19312009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1932
1933 * frame.c (x_get_resource_string): Remove unused.
1934
0307c7d2
JD
19352009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1936
1937 * xterm.c (x_new_font): Call change_frame_size before calling
1938 x_set_window_size, in case frame size won't change.
1939
1940 * frame.c (x_set_font): Remove dead code.
1941
428b13d6
SM
19422009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1943
1944 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1945
5766c380
SM
19462009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1947
1948 * lread.c (Fload): Don't output a message after loading an obsolete
1949 package any more (done in Lisp now).
1950
2fd0161b
CY
19512009-09-12 Chong Yidong <cyd@stupidchicken.com>
1952
1953 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1954
bc5e75b6
SM
19552009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1956
1957 * keymap.c (Fwhere_is_internal): Use nconc2.
1958
c31c985e
AM
19592009-09-11 Alan Mackenzie <acm@muc.de>
1960
1961 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1962 batch mode.
1963
78012bd2
AS
19642009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1965
1966 * xdisp.c (display_mode_element): Detect cycles.
1967
9d889332
SM
19682009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1969
1970 * keymap.c (where_is_internal): Don't erroneously return nil right after
1971 filling the cache.
1972 (where_is_internal_1): Fix up typo.
1973
7ab5d780
GM
19742009-09-11 Glenn Morris <rgm@gnu.org>
1975
1976 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1977 share a common doc-string.
1978
5238a749
SM
19792009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1980
66d77eda
SM
1981 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1982 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1983
5238a749
SM
1984 * keymap.c (QCadvertised_binding): New constant.
1985 (syms_of_keymap): Initialize it.
1986 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1987 if applicable.
1988
19f48442
SM
19892009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1990
50d4ba39
SM
1991 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1992 (parse_menu_item): Streamline since bindings are recomputed all the
1993 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1994 more and don't support lmenu's menu-alias any more either.
1995
a88a5372
SM
1996 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1997 (where_is_internal): Strip it down to only traverse the keymaps.
1998 Move the cache handling from Fwhere_is_internal to here.
1999 (Fwhere_is_internal): Move the handling of remapping and the choice of
2000 the best binding from where_is_internal to here.
2001 Unify the cached/noncached paths, so remapping is also handled
2002 correctly when the cache is used, and so the cache can be used to
2003 speed up remap-handling when applicable.
2004 Give preference to non-remapped bindings.
2005 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2006 non-remapped bindings.
2007 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2008 command remapping.
2009
19f48442
SM
2010 * xdisp.c (display_mode_element): Move list length limit from 50 to
2011 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2012
599498c3 20132009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2014
2015 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2016
f9b7b5ac
SM
20172009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2018
a53af587
JB
2019 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2020 (Bug#4334)
2021
f9b7b5ac
SM
2022 * keymap.c (where_is_internal): Filter out shadowed remappings.
2023 Assume that where_is_internal returns unshadowed bindings to simplify
2024 the code and get rid of the gotos. Use ASIZE.
2025
04f4b72d
JD
20262009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2027
4da146f2
JD
2028 * xterm.c (x_focus_changed): If we get a focusout and pointer
2029 is invisible, make it visible.
2030
04f4b72d
JD
2031 * xterm.h: Remove condition for declaration of
2032 x_*_window_to_frame.
2033
7cef7ce3
SM
20342009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2035
2036 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2037 initial terminal as well.
2038
a54fa5b7
JD
20392009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2040
2041 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2042 x_menubar_window_to_frame.
a54fa5b7
JD
2043
2044 * xterm.c: Remove declarations also in xterm.h
2045 (XTmouse_position): Do not return valid positions
2046 for clicks in the menubar and the toolbar for Gtk+.
2047
2048 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2049 if the widget for the event has the same top level as a frame,
2050 return the frame.
2051 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2052 internal windows, bug #4122.
2053 (x_non_menubar_window_to_frame): Remove.
2054
5a021dd0
GM
20552009-09-02 Glenn Morris <rgm@gnu.org>
2056
2057 * buffer.c (default-major-mode): Move most of the doc from here...
2058 (major-mode): ... to here.
2059
548fe2f3
NR
20602009-08-30 Nick Roberts <nickrob@snap.net.nz>
2061
2062 * process.c (wait_reading_process_output): Keep the descriptor
2063 when pty is used by a non-child process, e.g., in I/O buffer of
2064 GDB this allows inferior to be restarted.
2065
e0840eef
EZ
20662009-08-29 Eli Zaretskii <eliz@gnu.org>
2067
2068 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2069 both branches into one.
2070
82e98df4
SM
20712009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2072
2073 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2074 (main): Use enable-multibyte-characters rather than
2075 default-enable-multibyte-characters. Output a warning message when
2076 running a unibyte session.
2077
890617cb
YM
20782009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2079
2080 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2081 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2082 (copy_data_segment): Also copy __program_vars section.
2083 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2084 (dump_it) [LC_DYLD_INFO]: Use it.
2085
2086 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2087
e7adeadc
EZ
20882009-08-28 Eli Zaretskii <eliz@gnu.org>
2089
2090 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2091 $(SRC)/buildobj.h.
2092 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2093 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2094 $(SRC)/buildobj.h.
2095 (clean): Add buildobj.h.
2096
3ed8bbdc
TZ
20972009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2098
2099 * print.c (print_object): Set escapeflag to 1 when printing
2100 hashtable keys and values.
2101
155a6764
SM
21022009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * lread.c (read_integer): Use doubles (and potentially return a float
2105 number) as we do in string-to-number.
2106 (read1): Use strtol to read integers, signal errors on strtol's
2107 overflow and use floats if strtol's output is too large for
2108 Elisp integers.
2109
877610de
EZ
21102009-08-27 Eli Zaretskii <eliz@gnu.org>
2111
2112 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2113 (make-buildobj-SH): Fix last change.
2114 (SRC): Move to before where it's first used.
2115
ef73e7be
KH
21162009-08-27 Kenichi Handa <handa@m17n.org>
2117
550c8289
KH
2118 * process.c (send_process): Use encode_coding_object instead of
2119 encode_coding_string to perform eol-conversion even if the string
2120 is unibyte.
2121
60afa08d
KH
2122 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2123 character.
2124
ef73e7be 2125 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2126 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2127
7b3a82d7
DN
21282009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2129
5654bf63
DN
2130 * callproc.c (Fcall_process): Remove always true #if.
2131
7b3a82d7
DN
2132 * lisp.h: Replace #if 0 code for checking with text pointing to
2133 the --enable-checking configure flag.
2134
2135 * emacs.c (main): Mention the --enable-profiling configure flag
2136 instead of using CFLAGS.
2137
878bde49
KR
21382009-08-26 Ken Raeburn <raeburn@raeburn.org>
2139
2140 * Makefile.in (buildobj.h): New target.
2141 (doc.o): Depend on it.
2142 (temacs${EXEEXT}): Don't generate buildobj.lst.
2143 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2144 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2145 ($(BLD)/doc.$(O)): Depend on it.
2146 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2147 provided by Eli Zaretskii.)
2148 ($(TEMACS)): Don't generate buildobj.lst.
2149 * doc.c: Include buildobj.h.
2150 (buildobj): New static variable.
2151 (Fsnarf_documentation): Use it, instead of opening and reading
2152 buildobj.lst.
2153
1574224c
MA
21542009-08-25 Michael Albinus <michael.albinus@gmx.de>
2155
2156 * dbusbind.c (Fdbus_call_method)
2157 (Fdbus_call_method_asynchronously): Use English numeric format for
2158 timeout values in doc string.
2159
d9da2f45
KH
21602009-08-25 Kenichi Handa <handa@m17n.org>
2161
ef73e7be
KH
2162 * alloc.c (mark_char_table): New function.
2163 (mark_object): Use mark_char_table for a char-table.
2164
d9da2f45
KH
2165 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2166 (CHAR_TABLE_REF): Use it.
2167
c8edcc01
KR
21682009-08-23 Ken Raeburn <raeburn@raeburn.org>
2169
2170 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2171 before invoking the newly build emacs to check for load-path
2172 shadowing.
2173
7763401b
GM
21742009-08-22 Glenn Morris <rgm@gnu.org>
2175
2176 * Makefile.in (bootstrap_exe): New variable.
2177 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2178 Use ${bootstrap_exe}.
2179
729eadda
EZ
21802009-08-22 Eli Zaretskii <eliz@gnu.org>
2181
2182 * coding.h (encode_coding_string): Don't encode unibyte strings.
2183 (Bug#4047)
2184
eb4c6ace
MA
21852009-08-22 Michael Albinus <michael.albinus@gmx.de>
2186
2187 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2188
2189 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2190 intended as hotfix only.
2191 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2192
36e34d1b
AR
21932009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2194
2195 * nsterm.m (ns_get_color): Update documentation properly for last
2196 change, and clean up loose ends in the code left by it. Fix
2197 longstanding bug with 16-bit hex parsing, and add support for
2198 yet another X11 format (rgb:r/g/b) for compatibility.
2199 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2200 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2201
f983eb8a
SM
22022009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2203
2204 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2205
3f56d3c6
MA
22062009-08-20 Michael Albinus <michael.albinus@gmx.de>
2207
2208 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2209 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2210 (xd_initialize, xd_pending_messages): Check, whether
2211 $DBUS_SESSION_BUS_ADDRESS is set.
2212
fb641d68
YM
22132009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2214
2215 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2216
2217 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2218
cf59a374
GM
22192009-08-20 Glenn Morris <rgm@gnu.org>
2220
2221 * emacs.c (system-type): Doc fix.
2222
1373f3be
SM
22232009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2224
2225 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2226 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2227
058ed861
MA
22282009-08-18 Michael Albinus <michael.albinus@gmx.de>
2229
1373f3be
SM
2230 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2231 New functions.
058ed861
MA
2232 (xd_initialize): Revert change from 2009-08-16.
2233
563a866e 22342009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2235
2236 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2237 font-group vector, return nil.
5fc05db0 2238
e42bdf01
CY
22392009-08-17 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * process.c (status_notify): Don't perform redisplay.
2242 (Fdelete_process, list_processes_1, process_send_signal):
2243 Expliticly perform redisplay.
2244 (wait_reading_process_output): Always check process status, but
2245 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2246
4230ab74
KR
22472009-08-17 Ken Raeburn <raeburn@raeburn.org>
2248
1373f3be 2249 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2250 (XFLOAT_INIT): New macro for storing a float value.
2251 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2252 * fns.c (sxhash): Copy out the value of a float in order to
2253 examine its bytes.
2254 * dbusbind.c (xd_append_arg): Likewise.
2255
4230ab74
KR
2256 * emacs.c (main): Don't call syms_of_data twice.
2257
a0645cdd
MA
22582009-08-16 Michael Albinus <michael.albinus@gmx.de>
2259
2260 * dbusbind.c (xd_initialize): Add connection file descriptor to
2261 input_wait_mask, in order to let select() detect, whether a new
2262 message has been arrived.
ca4f31ea 2263 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2264
485db0ba
MA
22652009-08-15 Michael Albinus <michael.albinus@gmx.de>
2266
1373f3be
SM
2267 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2268 New functions.
485db0ba
MA
2269
2270 * lisp.h (xd_pending_messages): Declare.
2271
2272 * keyboard.c (readable_events): Call xd_pending_messages.
2273
b5b98ff4
CY
22742009-08-15 Chong Yidong <cyd@stupidchicken.com>
2275
1373f3be 2276 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2277
f8354c6e
CY
2278 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2279
b5b98ff4
CY
2280 * buffer.c (set_buffer_internal_1)
2281 (swap_out_buffer_local_variables): Check for unbound local
2282 variables (Bug#4138).
2283
8b9fc636
EZ
22842009-08-14 Eli Zaretskii <eliz@gnu.org>
2285
2286 * process.c (create_pty): Fix last change.
2287
ce959360
CY
22882009-08-13 Chong Yidong <cyd@stupidchicken.com>
2289
2290 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2291 (xbm_load_image): Caller changed.
64b807c9 2292 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2293
c7baf7e9
NR
22942009-08-13 Nick Roberts <nickrob@snap.net.nz>
2295
2296 * process.c (create_pty): New function.
2297 (Fstart_process): Use it to allow Emacs to just associate a pty
2298 with the buffer. See associated change in gdb-mi.el.
2299 (list_processes_1): Deal with no program name.
2300 (start_process_unwind): Use pid == -2 to mean no process.
2301
1ac9108a
SM
23022009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2303
2304 * cmds.c (nonundocount): New global variable.
2305 (keys_of_cmds): Initialize it.
2306 (Fself_insert_command): Use it to combine upto 20 sequential chars
2307 into a single undo entry, just like the Qself_insert_command code in
2308 keyboard.c does.
2309 Call frame_make_pointer_invisible, also like the Qself_insert_command
2310 code in keyboard.c does.
2311 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2312 than its own local replacement for it.
2313
e267324c
KR
23142009-08-10 Ken Raeburn <raeburn@raeburn.org>
2315
1ac9108a 2316 * fns.c (concat): Don't re-set string length to its current value.
77437343 2317
1ac9108a
SM
2318 * coding.h (decode_coding_string, encode_coding_string):
2319 Use SBYTES macro.
f0bed503 2320
1ac9108a 2321 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2322 (doprnt): Merge with doprnt1, discarding lispstrings code.
2323 * lisp.h (doprnt_lisp): Don't declare.
2324
416e006d
JL
23252009-08-07 Juri Linkov <juri@jurta.org>
2326
2327 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2328
6f7d5780
DN
23292009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2330
2331 * print.c (syms_of_print): Undo previous change.
2332
f19a0f5b
TZ
23332009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2334
2335 * lread.c (read1, syms_of_lread): Read hashtables back from the
2336 readable format.
2337
2338 * print.c (print_preprocess, print_object): Print hashtables fully
2339 and readably.
2340 (syms_of_print): Provide 'hashtable-print-readable.
2341
b9173dc2
AR
23422009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2343
2344 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2345 no family set.
2346 (nsfont_open): Handle case when entity has no family.
2347
1586503c
AR
23482009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2349
2350 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2351 element, not a list, for match case.
2352
087048cd
KH
23532009-07-28 Kenichi Handa <handa@m17n.org>
2354
2355 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2356 rigidly.
2357
2358 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2359 font_parse_xlfd. Check font properties more rigidly.
2360
780c2506
DN
23612009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2362
31fd7c5c
JB
2363 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2364 bsd-common.h.
780c2506 2365
a8c0cc18
KH
23662009-07-27 Kenichi Handa <handa@m17n.org>
2367
2368 * xfaces.c (face_with_height): Call font_clear_prop.
2369
4fbe2306
CY
23702009-07-26 Chong Yidong <cyd@stupidchicken.com>
2371
111d9af3
CY
2372 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2373
2374 * xterm.c (x_term_init): Use Qx.
2375
4fbe2306
CY
2376 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2377
1ac9108a 2378 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2379 (ns_get_color): Revert 2009-07-16 change.
2380
beb0b7f9
EZ
23812009-07-25 Eli Zaretskii <eliz@gnu.org>
2382
2383 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2384 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2385
2baf5e76
KR
23862009-07-25 Ken Raeburn <raeburn@raeburn.org>
2387
1ac9108a
SM
2388 * coding.h (decode_coding_string, encode_coding_string):
2389 Use SCHARS macro.
8890e5f5 2390
2baf5e76 2391 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2392 (load_depth): Delete.
2baf5e76
KR
2393 (Qload_in_progress): New variable.
2394 (load_unwind): Don't reference load_depth or load_in_progress.
2395 (Fload): Likewise; specbind Qload_in_progress instead.
2396 (init_lread): Don't initialize load_depth.
2397 (syms_of_lread): Initialize and protect Qload_in_progress.
2398
1395c6f5
AR
23992009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2400
2401 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2402
4e2f36cf
AR
24032009-07-23 Yavor Doganov <yavor@gnu.org>
2404
2405 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2406
5dd9a6f7
AR
24072009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2408
2409 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2410 Bugs 3792, 3720, 2402.
2411 (ns_lookup_indexed_color): Check for bad index.
2412 (ns_index_color): Init unused slot to 0.
2413 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2414 Bug 3714, possibly 3082.
5dd9a6f7 2415
c902b920
JR
24162009-07-22 Jason Rumney <jasonr@gnu.org>
2417
1ac9108a
SM
2418 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2419 Position IME window at cursor (Bug#2570).
c902b920
JR
2420 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2421 (globals_of_w32fns): Dynamically load functions required above.
2422
2423 * w32term.c (w32_draw_window_cursor): Send message to reposition
2424 any IME window.
2425
090101cf
CY
24262009-07-21 Chong Yidong <cyd@stupidchicken.com>
2427
2428 * fileio.c: Revert 2009-07-16 changes.
2429 (Vauto_save_include_big_deletions): New variable.
2430 (Fdo_auto_save): Disable auto-save only if
2431 auto-save-include-big-deletions is nil.
2432
e6583e3d
CY
24332009-07-21 Chong Yidong <cyd@stupidchicken.com>
2434
2435 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2436 the overflowed pixels into account (Bug#3879).
2437
ece435a5
KR
24382009-07-21 Ken Raeburn <raeburn@raeburn.org>
2439
2440 * lread.c (load_depth): New variable.
2441 (Fload, load_unwind, init_lread): Set it to the load recursion
2442 depth; set load_in_progress as a simple boolean based on the
2443 current load_depth. (Bug#3892)
2444
40b2d973
AR
24452009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2446
2447 * nsfont.m (ns_has_attribute): Remove.
2448 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2449
10be7e0d
JL
24502009-07-18 Juri Linkov <juri@jurta.org>
2451
2452 * process.c (Fset_process_query_on_exit_flag): Mention killing
2453 a buffer in docstring.
2454
fa055055
KH
24552009-07-17 Kenichi Handa <handa@m17n.org>
2456
2457 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2458
042f7b69
YM
24592009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2460
2461 * nsfns.m (Fns_set_alpha): Remove function.
2462 (syms_of_nsfns): Don't defsubr it.
2463
2464 * nsterm.m (ns_get_color): Remove incompatible color formats.
2465 (ns_color_to_lisp): Generate #rrggbb color format string.
2466
4be941e3
RS
24672009-07-16 Richard Stallman <rms@gnu.org>
2468
2469 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2470 (Fset_buffer_auto_saved): Handle save_length = -2.
2471
4e6b227d
CY
24722009-07-16 Chong Yidong <cyd@stupidchicken.com>
2473
2474 * xterm.c (Qx_gtk_map_stock): New var.
2475
2476 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2477 of calling intern each time.
2478
a1856973
YM
24792009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2480
2481 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2482 does tiling.
2483
2484 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2485
497e54d8
KH
24862009-07-14 Kenichi Handa <handa@m17n.org>
2487
72d36834
KH
2488 * font.c (font_vconcat_entity_vectors): New function.
2489 (struct font_sort_data): New member font_driver_preference.
2490 (font_compare): Check font_driver_preference.
2491 (font_sort_entities): The format of the first argument changed.
2492 (font_delete_unmatched): Likewise.
2493 (font_list_entities): The return type changed.
2494 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2495 (font_find_for_lface): Adjuste for the above changes.
2496 Don't suppress the checking of C even if the repertory supports it.
2497 (Flist_fonts): Adjust for the above changes.
72d36834 2498
1ac9108a
SM
2499 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2500 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2501 Reject a font who has adstyle property that is different from a
2502 langname derived from registry property.
1ac9108a 2503 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2504
b6046155
EZ
25052009-07-13 Eli Zaretskii <eliz@gnu.org>
2506
2507 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2508 local copy of dirfilename.
2509
fb6b6049
KH
25102009-07-13 Kenichi Handa <handa@m17n.org>
2511
e2402a5e
KH
2512 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2513 against max_char.
2514
fb6b6049
KH
2515 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2516 calling XSYMBOL (sym).
2517
65156807
EZ
25182009-07-11 Eli Zaretskii <eliz@gnu.org>
2519
1ac9108a
SM
2520 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2521 New function.
2522 (directory_files_internal) [WINDOWSNT]:
2523 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2524 the filesystem of the directory is fast or slow.
2525
2526 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2527 file name.
2528 (is_slow_fs): New function.
2529 (stat): Use it to determine whether to issue more system calls to
2530 get accurate file attributes, when w32-get-true-file-attributes is
2531 `local'.
2532
e0ab5fcf
JD
25332009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2534
2535 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2536 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2537 parameter font-parameter as default to the font dialog.
2538
784ceded
KH
25392009-07-10 Kenichi Handa <handa@m17n.org>
2540
2541 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2542
fb8edc0b
EZ
25432009-07-09 Eli Zaretskii <eliz@gnu.org>
2544
1ac9108a 2545 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2546
fb8edc0b
EZ
2547 * w32.c (stat): Treat UNC file names as residing on remote
2548 drives. (Bug#3542)
2549
635c75b1
KH
25502009-07-09 Kenichi Handa <handa@m17n.org>
2551
2552 * fontset.c (fontset_find_font): Fix previous change.
2553
c1d5ce94
MA
25542009-07-08 Michael Albinus <michael.albinus@gmx.de>
2555
2556 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2557 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2558 error flag.
2559
edb61b39
KH
25602009-07-08 Kenichi Handa <handa@m17n.org>
2561
374bf7e4
KH
2562 * fontset.c (fontset_find_font): Fix the logic of handling
2563 charset_matched.
2564 (font_for_char): Delete unused var.
2565 (generate_ascii_font_name): Delete it.
2566
edb61b39
KH
2567 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2568
2569 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2570 (encode_coding_sjis): Fix the code range check.
2571
0f3f018c
CY
25722009-07-07 Chong Yidong <cyd@stupidchicken.com>
2573
2574 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2575 (Fexpand_file_name): Copy string data properly (Bug#3772).
2576
fcaf6f3a
JD
25772009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2578
2579 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2580 first MapNotify.
2581
6809ca75
KH
25822009-07-07 Kenichi Handa <handa@m17n.org>
2583
2584 * character.h (unibyte_has_multibyte_table): Delete extern.
2585 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2586
2587 * charset.c (Fset_charset_priority): Update charset_unibyte.
2588 (syms_of_charset): Initialize charset_unibyte.
2589
2590 * character.c (unibyte_has_multibyte_table): Delete it.
2591 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2592 charset_unibyte.
2593 (multibyte_char_to_unibyte_safe): Likewise.
2594 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2595
1ac9108a 2596 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2597 (x_produce_glyphs): Likewise.
2598
2599 * .gdbinit (xcharset): Fix the treating $arg0.
2600
ad9e2d54
EZ
26012009-07-04 Eli Zaretskii <eliz@gnu.org>
2602
2603 Emulation of `getloadavg' on MS-Windows.
2604 * w32.c: Include float.h
2605 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2606 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2607 (get_native_system_info, get_system_times): New functions.
2608 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2609 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2610 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2611 g_b_init_get_system_times, and num_of_processors.
2612
0a3472c7
JR
26132009-07-03 Jason Rumney <jasonr@gnu.org>
2614
2615 * w32term.c (w32_initialize): Use standard types.
2616
80904120
EZ
26172009-07-03 Eli Zaretskii <eliz@gnu.org>
2618
2619 * dired.c (Ffile_attributes): Decode user and group names by the
2620 locale's encoding. (Bug#3443)
2621
6978862d
DN
26222009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2623
f8d23104
DN
2624 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2625 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2626
2627 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2628
2629 * term.c (init_tty): Remove spurious #ifdef.
2630
6978862d
DN
2631 * m/mips.h: Mention this file is also used for netbsd.
2632 * m/pmax.h: Remove file.
2633
e044e4fc
JD
26342009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2635
2636 * xterm.h (struct x_display_info): Add invisible_cursor.
2637 (struct x_output): Add current_cursor.
2638
2639 * xterm.c (XTtoggle_invisible_pointer): New function.
2640 (x_define_frame_cursor): Don't define cursor if invisible or the
2641 same as before. Set current_cursor.
2642 (x_create_terminal): Set toggle_invisible_pointer_hook.
2643
2644 * xfns.c (make_invisible_cursor): New function.
2645 (x_set_mouse_color): Call make_invisible_cursor.
2646 Set current_cursor.
2647 (x_window): Set current_cursor.
2648
2649 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2650
2651 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2652 inserting a character.
2653 (read_avail_input): Call frame_make_pointer_visible.
2654
2655 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2656 (frame_make_pointer_invisible, frame_make_pointer_visible):
2657 New functions.
e044e4fc
JD
2658 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2659
2660 * frame.h: Declare frame_make_pointer_invisible and
2661 frame_make_pointer_visible.
2662 (struct frame): Add pointer_invisible.
2663
574c8efa
JD
26642009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2665
7b507248
JD
2666 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2667 frame isn't visible.
2668 (xg_frame_resized): If width/height is -1, get size of window
2669 from X server.
2670
2671 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2672 for MapNotify.
2673
835bdaa7 2674 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2675 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2676 (flush_and_sync): Reintroduce.
574c8efa 2677
3f1c6666 26782009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2679
31fd7c5c 2680 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2681
2682 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2683 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2684
2685 * frame.h: Declare Qsticky.
2686
cad9ef74
JD
2687 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2688
2689 * nsfns.m (ns_frame_parm_handlers): Ditto.
2690
2691 * frame.c: Declare Qsticky.
2692 (frame_parms): Add sticky.
2693
2694 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2695
2696 * xterm.h: Declare x_set_sticky.
2697
2698 * xterm.c (x_set_sticky): New function.
2699
69b16610
JD
2700 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2701 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2702 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2703
2704 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2705
2706 * frame.c: Qmaximized is new.
2707 (x_set_frame_parameters): Do not handle fullscreen specially.
2708 Only set width and height if explicitly set.
2709 (x_set_fullscreen): Handle Qmaximized.
2710 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2711 (syms_of_frame): Initialize Qmaximized.
2712
1ac9108a
SM
2713 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2714 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2715
2716 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2717 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2718 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2719 set gravity to NorthWestGravity when USE_GTK.
2720 (set_wm_state): New function.
31fd7c5c 2721 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2722 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2723 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2724 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2725 to x_real_positions and x_fullscreen_adjust.
2726
2727 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2728 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2729 flush_and_sync.
2730 (xg_height_changed): New function.
2731 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2732 and gtk_window_set_policy. Set frame gravity after parsing the
2733 geometry string.
3f1c6666
JD
2734 (xg_update_frame_menubar, free_frame_menubar)
2735 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2736 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2737 Remove calls to xg_frame_set_char_size.
2738
fd503d99
KH
27392009-07-01 Kenichi Handa <handa@m17n.org>
2740
2741 * keyboard.c (decode_keyboard_code): New function.
2742 (tty_read_avail_input): Decode the input bytes if necessary.
2743
1ac9108a
SM
2744 * coding.c (setup_coding_system):
2745 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2746 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2747 use Qno_conversion.
2748
24ed93fb
YM
27492009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2750
2751 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2752
99061dfc
CY
27532009-06-30 Chong Yidong <cyd@stupidchicken.com>
2754
1ac9108a 2755 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2756
ff90fbde
JR
27572009-06-30 Jason Rumney <jasonr@gnu.org>
2758
2759 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2760 is already loaded.
2761 Set user model ID if supported (bug#1849).
2762
5f445726
JM
27632009-06-29 Jim Meyering <meyering@redhat.com>
2764
2765 Remove useless if-before-xfree test.
2766 * nsfont.m (nsfont_close): Remove useless test.
2767 * term.c (delete_tty): Likewise.
2768 * w32.c (system_process_attributes): Likewise.
2769 * w32font.c (w32font_close): Likewise.
2770 * xfaces.c (x_free_gc): Likewise.
2771 * xselect.c (buffer): Likewise.
2772
b9607587
AS
27732009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2774
2775 * process.c (send_process): Keep decoded string in a local
2776 variable and protect it from GC. (Bug#3521)
2777
89ba96f4
EZ
27782009-06-28 Eli Zaretskii <eliz@gnu.org>
2779
2780 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2781 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2782
098a1589
CY
27832009-06-28 Chong Yidong <cyd@stupidchicken.com>
2784
485422be
CY
2785 * xdisp.c (start_display, handle_face_prop)
2786 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2787 (redisplay_window, try_window_id, produce_image_glyph):
2788 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2789
098a1589
CY
2790 * xterm.c (x_update_window_begin, x_new_focus_frame)
2791 (x_scroll_bar_handle_click, handle_one_xevent)
2792 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2793 (x_make_frame_visible, x_make_frame_invisible)
2794 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2795 code chunks that are now obsolete.
2796
78c38319
MA
27972009-06-28 Michael Albinus <michael.albinus@gmx.de>
2798
2799 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2800 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2801 for hours, when optimzation is enabled.
2802 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2803 (xd_read_message): Make them static.
2804
4189ed40
CY
28052009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2806
2807 * term.c (turn_on_face): Allow simultaneously bold and dim
2808 terminal faces (Bug#3530).
2809
cd9b5e16
CY
28102009-06-27 Chong Yidong <cyd@stupidchicken.com>
2811
4e23bedb
CY
2812 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2813
cd9b5e16
CY
2814 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2815 truncation glyphs (Bug#3686).
2816
07cc3c35
GM
28172009-06-27 Glenn Morris <rgm@gnu.org>
2818
2819 * m/pmax.h: Restore file, with only netbsd portions.
2820
31fd7c5c 28212009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2822
cd9b5e16 2823 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2824
42d4a64f
KH
28252009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2826
2827 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2828 the arg FORCE_SYMBOL.
2829
930fe55b 28302009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2831
2832 * fontset.c (fontset_find_font): When a usable rfont_def is found
2833 in a fallback font-group, make it the first element of the group.
2834
57ebc3fd
CY
28352009-06-24 Chong Yidong <cyd@stupidchicken.com>
2836
2837 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2838
f084f942
KH
28392009-06-24 Kenichi Handa <handa@m17n.org>
2840
2841 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2842 set for C.
2843 (fontset_font): Record the availability of a font for C both in
2844 the realized fontsets of the current one and the default one.
2845
2f686c87
DN
28462009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2847
2848 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2849 conditional, it is always defined on AIX.
2850
666e158e
MB
28512009-06-23 Miles Bader <miles@gnu.org>
2852
2853 * window.c (Vrecenter_redisplay): New variable.
2854 (syms_of_window): Initialize it.
2855 (Qtty): New extern declaration.
2856 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2857
c6da7cd2
JM
28582009-06-23 Jim Meyering <meyering@redhat.com>
2859
1ac9108a
SM
2860 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2861 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2862 pointer dereferences are guaranteed to be valid.
c6da7cd2 2863
678dca3d
KH
28642009-06-23 Kenichi Handa <handa@m17n.org>
2865
74d75424
KH
2866 * emacs.c (main): Call init_font ().
2867
2868 * font.h (Vfont_log): Extern it.
2869 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2870
2871 * font.c (font_sort_entities, font_list_entities)
2872 (font_matching_entity, font_open_entity)
2873 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2874 (Vfont_log): Delete static.
2875 (font_log_env_checked): Delete this variable.
2876 (font_add_log): Don't check font_log_env_checked.
2877 (font_deferred_log): Check Vfont_log.
2878 (init_font): New function.
2879
678dca3d
KH
2880 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2881
2882 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2883
2884 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2885
2886 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2887
2888 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2889 (face_for_char): Don't call font_deferred_log here.
2890 (font_for_char): Likewise.
2891
8a668709
CY
28922009-06-22 Chong Yidong <cyd@stupidchicken.com>
2893
9a01ee33
CY
2894 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2895 rather than its background_width for drawing the overline and
2896 underline (Bug#489).
2897
2898 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2899 rather than its background_width for drawing the overline and
2900 underline (Bug#489).
ec7c9926
CY
2901 (xg_default_icon_file): New variable.
2902 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2903 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2904
8a668709
CY
2905 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2906 (load_overlay_strings): Remove externs.
2907 (fast_find_position): Function deleted.
2908 (mouse_face_from_buffer_pos): New function, based on
2909 fast_find_position. Correctly handle before-strings,
2910 display-strings, and after-strings (Bug#1220).
2911 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2912
4d4c02d8
CY
29132009-06-21 Chong Yidong <cyd@stupidchicken.com>
2914
1ac9108a 2915 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2916 (move_it_in_display_line_to, move_it_in_display_line_to)
2917 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2918
70243478
CY
29192009-06-21 Chong Yidong <cyd@stupidchicken.com>
2920
2921 * Branch for 23.1.
2922
13087e59
JR
29232009-06-21 Jason Rumney <jasonr@gnu.org>
2924
2925 * w32term.c (keyboard_codepage): New static variable.
2926 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2927 (w32_read_socket) [WM_CHAR]: Use it to decode character
2928 input (bug#3237).
2929 (w32_initialize): Initialize it.
2930 (codepage_for_locale): New function.
2931
4735b74e
KR
29322009-06-20 Ken Raeburn <raeburn@raeburn.org>
2933
2934 * process.c (status_message): Pass Faset index argument as a lisp
2935 object, so as to work with USE_LISP_UNION_TYPE.
2936
0e727afa
YM
29372009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2938
2939 * coding.c (Ffind_coding_systems_region_internal):
2940 Cache checked characters.
2941
cf299835
KH
29422009-06-18 Kenichi Handa <handa@m17n.org>
2943
1ac9108a 2944 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2945
90f20d94
AS
29462009-06-18 Andreas Schwab <aschwab@redhat.com>
2947
2948 * xdisp.c (redisplay_internal): Check that the frame is still
2949 live after redisplay of its windows.
2950 (redisplay_windows): Check that the window is still live.
2951
7f1faf1c
KH
29522009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2953
2954 * coding.c (detect_coding_utf_16): Fix previous change.
2955
cc13543e
KH
29562009-06-16 Kenichi Handa <handa@m17n.org>
2957
2958 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2959 UTF-16 by checking the dispersion of Eth and Oth bytes.
2960
977b85f4
AS
29612009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2962
2963 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2964
66bd43d1
KH
29652009-06-15 Kenichi Handa <handa@m17n.org>
2966
2967 * process.c (status_message): Fix previous change. Be sure to
2968 decode a localized string.
2969
cb5ca9c5
YM
29702009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2971
2972 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2973 add comment explaining why.
2974
ec7709ba 29752009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2976
ec7709ba 2977 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2978
4b7f335c
AR
29792009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2980
2981 * nsfont.m (ns_attribute_value): Remove.
2982 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2983 (ns_has_attribute): Shrink the normal range.
2984 (ns_findfonts): Don't worry about requested spec in determining
2985 need for synthItal.
e41820ee 2986 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2987
73b26103
SZ
29882009-06-14 Seiji Zenitani <zenitani@mac.com>
2989
2990 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2991
5753e4da
KH
29922009-06-11 Kenichi Handa <handa@m17n.org>
2993
2994 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2995 overhang for the static composition case.
2996
3561b671
KH
29972009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2998
5753e4da
KH
2999 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3000 overhang for the automatic composition case.
3001
3561b671
KH
3002 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3003 composition case.
3004
852bbd41
CY
30052009-06-10 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * xdisp.c (get_next_display_element): When handling wrap-prefix
3008 and line-prefix, treat \n as a control character (bug#3502).
3009
9903d1e6
KH
30102009-06-10 Kenichi Handa <handa@m17n.org>
3011
3012 * font.c (font_parse_family_registry): Fix for one-char foundry.
3013 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3014
0bcbaaaa
CY
30152009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3016
3017 * process.c (status_message): Fix handling of multibyte signal
3018 string (Bug#3499).
3019
40aa3f13
JM
30202009-06-09 Jim Meyering <meyering@redhat.com>
3021
1f80c7e2
CY
3022 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3023 color name is missing.
40aa3f13 3024
72d51285
KH
30252009-06-09 Kenichi Handa <handa@m17n.org>
3026
3027 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3028 FROM-CODE and TO-CODE are codepoints of CHARSET.
3029
c1d04d84
AR
30302009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3031
3032 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3033
30342009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3035
3036 Changes to support :script/:lang/:otf in NS font driver.
3037 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3038 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3039 indicate not part of font driver interface, and change callers.
3040 (ns_get_family): Remove pointless null check.
3041 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3042 ns_spec_to_descriptor, ns_descriptor_to_entity.
3043 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3044 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3045 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3046 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3047 (ns_get_req_script, ns_accumulate_script_ranges)
3048 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3049 New functions.
3050 (nsfont_list, nsfont_match): Use ns_findfonts.
3051 (nsfont_open): Use font descriptor instead of traits.
3052 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3053 (dump_glyphstring): Rename to ns_dump_glyphstring.
3054
c7eb9816
AR
3055 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3056
c1d04d84
AR
3057 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3058
3059 * fontset.c (fontset_from_font): Remove NS-specific code.
3060
ec7709ba 30612009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3062
3063 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3064 nonactive windows.
3065
31fd7c5c 30662009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3067
1ac9108a 3068 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3069
68852c13 30702009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3071
3072 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3073
6756cd1d
CY
30742009-06-07 Chong Yidong <cyd@stupidchicken.com>
3075
3076 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3077 account for the overflowing of newlines into the last glyph on the
3078 display line (Bug#3482).
3079
28bf482a
DR
30802009-06-05 David Reitter <david.reitter@gmail.com>
3081
ec7709ba
JB
3082 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3083 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3084 Fns_selection_exists_p, Fns_selection_owner_p.
3085
fdb55376
JR
30862009-06-03 Jason Rumney <jasonr@gnu.org>
3087
3088 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3089 available. (Bug#3379)
3090
05129fbe
KH
30912009-05-29 Kenichi Handa <handa@m17n.org>
3092
1ac9108a
SM
3093 * coding.c (get_translation_table):
3094 Check Venable_character_translation.
05129fbe 3095
ec7709ba 30962009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3097
ec7709ba
JB
3098 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3099 (x_make_frame_visible): Move frame to front rather than calling
15891144 3100 ns_raise_frame().
ec7709ba 3101 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3102 isn't key window.
ec7709ba 3103 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3104 drawRect may be called by NSView even if the frame is hidden.
3105
ec7709ba
JB
3106 * nsfns.m (Fx_create_frame): Follow other ports in
3107 determining visibility; default to t. Ensure async_visible is set.
15891144 3108
21f73755
EZ
31092009-05-23 Eli Zaretskii <eliz@gnu.org>
3110
3111 * dired.c (Ffile_attributes): Doc fix.
3112
34001e41
CY
31132009-05-22 Chong Yidong <cyd@stupidchicken.com>
3114
3115 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3116
46306a17
SM
31172009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3118
3119 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3120 and xfont_scratch_props.
3121 (syms_of_xfont): Do it here instead.
3122 (xfont_find_ccl_program): Delete, unused.
3123 (xfont_open): Delete unused var `i'.
3124
ef6e0694
KH
31252009-05-21 Kenichi Handa <handa@m17n.org>
3126
3127 * fontset.c (Qlatin): Don't make it static.
3128
46306a17
SM
3129 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3130 New functions.
ef6e0694
KH
3131 (xfont_scripts_cache, xfont_scratch_props): New variables.
3132 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3133 (xfont_list_pattern): Argument changed. Callers changed.
3134 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3135 (xfont_list): Don't reject a font spec with :script property.
3136 (xfont_has_char): Fix setting of encoding.
3137 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3138 xfont_scratch_props.
3139
31402009-05-19 Kenichi Handa <handa@m17n.org>
3141
46306a17 3142 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3143 Callers changed.
3144
31452009-05-18 Kenichi Handa <handa@m17n.org>
3146
3147 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3148
ac71ced7
SM
31492009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3150
3151 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3152 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3153
1c6d1051
YM
31542009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3155
3156 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3157 (x_delete_terminal): Dissociate resource database from display and
3158 then call XrmDestroyDatabase before closing display.
3159
9b9b779c
AR
31602009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3161
3162 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3163 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3164 whether selected frame is viable before raising it (based on patch
3165 by David Reitter), and improve commentary.
3166 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3167
cccd42d5
KH
31682009-05-15 Kenichi Handa <handa@m17n.org>
3169
3170 * font.c (Ffont_spec): Check arguments.
3171
337fbd17
CY
31722009-05-14 Chong Yidong <cyd@stupidchicken.com>
3173
3174 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3175 weight when testing attributes (Bug#3282).
3176
47a6002f
JD
31772009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3178
3179 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3180 what we expect to get in the next ConfigureNotify event.
3181
9cb363db
YM
3182 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3183 before Xft one (Bug#1696).
3184
b9126609
CY
31852009-05-07 David Reitter <david.reitter@gmail.com>
3186
3187 * nsfns.m (Fx_display_planes): Compute bitplanes using
3188 NSBitsPerPixelFromDepth (Bug#3207).
3189
27a69fd9
CY
31902009-05-10 Chong Yidong <cyd@stupidchicken.com>
3191
3192 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3193
00f37552
TTN
31942009-05-10 Ulrich Mueller <ulm@gentoo.org>
3195
3196 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3197
2d82a920
DR
31982009-05-07 David Reitter <david.reitter@gmail.com>
3199
ec7709ba
JB
3200 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3201 Respect mouse face background.
2d82a920 3202
46b0d52d
DR
32032009-05-07 David Reitter <david.reitter@gmail.com>
3204
ec7709ba
JB
3205 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3206 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3207 in ns_update_begin and ns_update_end.
3208
ce1b23bb
SM
32092009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3210
5996e1b7
SM
3211 * nsfns.m (ns_get_screen): Rewrite.
3212 Don't presume selected-frame is of type `ns'.
3213
ba98e3a0
SM
3214 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3215 all drivers.
3216
ce1b23bb
SM
3217 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3218
bcda200f
YM
32192009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3220
3221 * keyboard.h (add_user_signal): Fix typo in extern.
3222
3223 * lisp.h (add_user_signal): Remove extern.
3224
3225 * unexelf.c (unexec): Consider a section to precede the .bss section
3226 if its addresses overlap that of .bss.
3227 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3228 instead of dumping process.
3229
864660a2
SM
32302009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3231
3232 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3233
50da4e56
SM
32342009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3235
3236 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3237
51520a1a
DN
32382009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3239
3240 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3241 any statements.
3242
409ea3a1
AS
32432009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3244
59c4c60f
AS
3245 * process.c (read_process_output): Make sure the current buffer is
3246 always restored.
3247
409ea3a1
AS
3248 * coding.c (record_conversion_result): Don't modify
3249 Vlast_code_conversion_error for successful result.
3250 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3251
56f00ed2
KH
32522009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3253
3254 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3255 (load_charset_map): Remove unnecessary code.
56f00ed2 3256
4491c9d2
DR
32572009-04-30 David Reitter <david.reitter@gmail.com>
3258
35f5b128 3259 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3260 through f24.
3261
6970f632
CY
32622009-04-30 Chong Yidong <cyd@stupidchicken.com>
3263
3264 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3265
3266 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3267 face_at_buffer_position.
3268 (face_before_or_after_it_pos, get_next_display_element)
3269 (note_mouse_highlight): Update face_at_buffer_position call.
3270
3271 * term.c (term_mouse_highlight):
3272 * msdos.c (IT_note_mouse_highlight):
3273 * fontset.c (Finternal_char_font):
35f5b128 3274 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3275
3276 * dispextern.h (face_at_buffer_position): Update prototype.
3277
0c616f63
KH
32782009-04-30 Kenichi Handa <handa@m17n.org>
3279
35f5b128 3280 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3281
ad3aaf33
AS
32822009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3283
3284 * callproc.c (Fcall_process): Fix GC protection. Make sure
3285 current buffer is always restored.
3286
c3c963a0
YM
32872009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3288
3289 * atimer.c (init_atimer): Also clear stopped_atimers.
3290
3291 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3292
7e3386cb
YM
3293 * process.c (create_process): Clean up merger residues of
3294 2008-07-17 change.
3295
91f68422
CY
32962009-04-29 Ulrich Mueller <ulm@gentoo.org>
3297
3298 * lread.c (Vread_circle): New variable.
3299 (read1): Disable recursive read if Vread_circle is nil.
3300
24b34550
KH
33012009-04-29 Kenichi Handa <handa@m17n.org>
3302
3303 * fontset.h (set_default_ascii_font): Delete extern.
3304
3305 * fontset.c (set_default_ascii_font): Delete this unused function.
3306
3307 * frame.c (x_set_font): When ARG is a font-object, check if the
3308 font-object matches with the ASCII font-spec of the frame's
9c358bda 3309 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3310
77bf07e1
AS
33112009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3312
3313 * fns.c (Flocale_info): Protect vector from GC during decoding.
3314
3315 * process.c (Fstart_process): Protect argv strings from GC during
3316 encoding.
3317
2c55aacf
AS
33182009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3319
3320 * sysdep.c: Include <ctype.h>.
3321
b892d3c9
DR
33222009-04-27 David Reitter <david.reitter@gmail.com>
3323
35f5b128 3324 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3325 Remove commented-out code.
3326
9d0644c4
JB
33272009-04-26 Johan Bockgård <bojohan@gnu.org>
3328
3329 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3330
b7053016
JR
33312009-04-25 Jason Rumney <jasonr@gnu.org>
3332
3333 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3334
4e8231f3
YM
33352009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3336
3337 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3338 Swap bytes in short integer if fringe bitmap width > 8.
3339
493dcf2c
KH
33402009-04-23 Kenichi Handa <handa@m17n.org>
3341
3342 * xfaces.c (Fx_list_fonts): If a font size is specified in
3343 PATTERN, set it in returned scalable fonts.
3344
401e9e57
CY
33452009-04-22 Chong Yidong <cyd@stupidchicken.com>
3346
708e05dc
CY
3347 * keyboard.c (Fset_input_meta_mode): Doc fix.
3348
3349 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3350
1ac9108a 3351 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3352
3353 * coding.c (Fterminal_coding_system): Doc fix.
3354
3355 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3356 (Fx_display_pixel_height, Fx_display_planes)
3357 (Fx_display_color_cells, Fx_server_max_request_size)
3358 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3359 (Fx_display_mm_height, Fx_display_mm_width)
3360 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3361 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3362 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3363 (check_x_display_info): Handle terminal objects instead of
3364 terminal ids.
3365
401e9e57
CY
3366 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3367 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3368 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3369 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3370
df80c7f0
KH
33712009-04-21 Kenichi Handa <handa@m17n.org>
3372
5a8f12af 3373 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3374 (font_score): Check AVGWIDTH too.
908567ef 3375
df80c7f0
KH
3376 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3377 worst case.
1ac9108a
SM
3378 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3379 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3380
705af33f
JR
33812009-04-19 Jason Rumney <jasonr@gnu.org>
3382
3383 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3384 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3385
3386 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3387 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3388 get_phys_cursor_geometry.
3389
b71ac3dd 3390 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3391 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3392 using get_phys_cursor_geometry.
3393
3394 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3395 correctly calculated.
3396
dc2933eb
JD
33972009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3398
1ac9108a
SM
3399 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3400 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3401 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3402 is deprecated.
3403
973e7849
AS
34042009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3405
3406 * font.c (font_put_frame_data): Use xfree instead of free.
3407
314d66f4
JB
34082009-04-17 Juanma Barranquero <lekktu@gmail.com>
3409
3410 * w32font.c (Qja, Qko): Remove declarations.
3411 (syms_of_w32font): Don't DEFSYM them.
3412
cf702558
CY
34132009-04-17 Chong Yidong <cyd@stupidchicken.com>
3414
3415 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3416
3417 * font.h (Qja, Qko): Extern them.
3418
3419 * ftfont.c (Qja, Qko): Remove declarations.
3420
3421 * xfont.c (Qja, Qko): Remove declarations.
3422
b50504f5
KH
34232009-04-17 Kenichi Handa <handa@m17n.org>
3424
bde25748
KH
3425 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3426 string from a vector to handle Latin-1 characters correctly.
3427
b50504f5
KH
3428 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3429 entity even if the cache hits.
3430
f4646fff
AS
34312009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3432
3433 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3434 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3435
e7deaab0
AS
3436 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3437 * lisp.h: Adjust prototypes.
3438
0a0e7d49
CY
34392009-04-16 Chong Yidong <cyd@stupidchicken.com>
3440
3441 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3442 change (Bug#3003).
3443
3c908a57
KH
34442009-04-16 Kenichi Handa <handa@m17n.org>
3445
1ac9108a 3446 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3447
3448 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3449 adstyle.
3450
3451 * ftfont.c (Qja, Qko): Don't make them static.
3452 (enum ftfont_cache_for): New enum.
3453 (fc_charset_table): Undo the previous change.
3454 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3455 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3456 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3457 non-scarable font, try to get AVERAGE_WIDTH.
3458 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3459 Change ft_face_cache from a list of a hash-table. Don't check
3460 `ja' and `ko' adstyle here.
3461 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3462 FTFONT_CACHE_FOR_CHARET.
3463 (ftfont_get_charset): Undo the previous change.
1ac9108a 3464 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3465 (ftfont_close): Likewise.
3466 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3467
3468 * font.c (font_sort_entites): Change the meaning of the arg
3469 BEST-ONLY. Don't optimize for VEC of lenght 1.
3470 (font_select_entity): Just return the value of font_sort_entites.
3471
3472 * xfaces.c (merge_face_vectors): Reflect font properties in
3473 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3474 font_clear_prop if a face attribute doesn't change.
3475
3c908a57
KH
3476 * charset.h (charset_ksc5601): Extern it.
3477
3478 * charset.c (charset_ksc5601): New variable.
3479 (Fdefine_charset_internal): Set charset_ksc5601.
3480 (init_charset_once): Initialize charset_ksc5601 to -1.
3481
d65859c3
DN
34822009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3483
3484 * fileio.c (history_delete_duplicates): Remove unused declaration.
3485
3486 * callint.c (history_delete_duplicates): New declaration.
3487 (Fcall_interactively): Remove command history duplicates when
3488 history_delete_duplicates is true.
3489
3ba010e5
EZ
34902009-04-14 Eli Zaretskii <eliz@gnu.org>
3491
3492 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3493
06f19b91
KH
34942009-04-14 Kenichi Handa <handa@m17n.org>
3495
3496 * font.c (Ffont_info): Fix docstring. Fix the second element of
3497 the returned value (bug#2949).
3498
2cce8bfc
CY
34992009-04-14 Chong Yidong <cyd@stupidchicken.com>
3500
3501 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3502
d156542d
KH
35032009-04-14 Kenichi Handa <handa@m17n.org>
3504
3505 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3506 encoding charset is ascii_compatible.
3507
3508 * charset.c (Fdefine_charset_internal): Make charset
3509 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3510 code_offset is 0, and covers all ASCII characters.
3511
86fa089e
SM
35122009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3513
3514 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3515 (ns_string_to_pasteboard_internal):
3516 * nsmenu.m (process_dialog):
3517 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3518 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3519 * lisp.h (Fx_load_color_file): Declare.
3520
a8a3728b
KH
35212009-04-13 Kenichi Handa <handa@m17n.org>
3522
1ac9108a 3523 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3524 (font_select_entity): Suppress the code to optimize for the same
3525 kind of fonts.
3526 (font_load_for_lface): Get a font that supports at least ASCII
3527 characters.
3528
3529 * ftfont.c (Qja, Qko): New variables.
3530 (fc_charset_table): Delete uniquifier data for iso8859-1.
3531 (ftfont_get_latin1_charset): New function.
3532 (get_adstyle_property): New function.
3533 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3534 bitmap fonts.
3535 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3536 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3537 `ko' or `ja'.
3538 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3539 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3540 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3541 property.
3542 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3543 (syms_of_ftfont): DEFSYM Qja and Qko.
3544
483670b5
KH
35452009-04-09 Kenichi Handa <handa@m17n.org>
3546
12b55765
KH
3547 * charset.c (map_charset_chars): For a charset of `superset'
3548 method, fix calculation of code range.
3549
483670b5
KH
3550 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3551 from the list of extra properties.
3552 (font_clear_prop): Be sure to delete `:name' font property.
3553
57d3b93b
KH
35542009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3555
b4b2c2ca
YM
3556 * dispnew.c (redraw_overlapping_rows): Fix detection of
3557 overlapping for topmost and bottommost rows.
3558
1ac9108a 3559 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3560
472c3609
JR
35612009-04-06 Jason Rumney <jasonr@gnu.org>
3562
3563 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3564
ab193662
KH
35652009-04-06 Kenichi Handa <handa@m17n.org>
3566
3567 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3568
3569 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3570
0c26f026
KH
35712009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3572
3573 * ftfont.c (ftfont_open): Fix checking of the return value of
3574 FT_Load_Char. Fix setting font->underline_thickness.
3575
e173bbce
CY
35762009-04-04 Chong Yidong <cyd@stupidchicken.com>
3577
3578 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3579 (Fterminal_parameters, Fterminal_parameter)
3580 (Fset_terminal_parameter): In doc string, refer to terminal
3581 objects rather than terminal ids.
3582
693a2698
EZ
35832009-04-04 Eli Zaretskii <eliz@gnu.org>
3584
3585 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3586 ret_lim_data. (Bug#2867)
3587
d5221487
CY
35882009-04-03 Chong Yidong <cyd@stupidchicken.com>
3589
3590 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3591 so they don't get wider than the window, matching 2006-01-23
3592 change to the partner function in xdisp.c (Bug#2800).
3593
223509a3
KH
35942009-04-03 Kenichi Handa <handa@m17n.org>
3595
3596 * print.c (print_object): Make each lowest sub_char_table start a
3597 new line (Bug#2866).
3598
74fcd0b1
KH
35992009-04-02 Kenichi Handa <handa@m17n.org>
3600
3601 * fontset.c (fontset_font): Record no-font when a fontset
3602 explicitly tells not to try another font-specs.
3603
c542407d
SM
36042009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3605
3606 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3607
e3869731
KH
36082009-03-30 Kenichi Handa <handa@m17n.org>
3609
d8d2f142
KH
3610 * fontset.c (fontset_from_font): Specify only registry in a
3611 font-spec for all characters supported by that registry.
3612
e3869731
KH
3613 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3614 even if HAVE_M17N_FLT is not defined.
3615
5da5f805
CY
36162009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3617
3618 * ftfont.c: Conditionalize prototyping and use of
3619 ftfont_variation_glyphs.
3620
ab226c50
SM
36212009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3622
9628fed7
SM
3623 * frame.c (delete_frame): Work around compiler bug.
3624
3625 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3626 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3627 Some more EMACS_INT.
3628 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3629
3630 * xdisp.c (dump_glyph): Fix typo.
3631
ae19ba7c
SM
3632 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3633 (adjust_markers_gap_motion, adjust_markers_for_delete)
3634 (adjust_markers_for_insert, adjust_point)
3635 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3636 (make_gap, copy_text, count_size_as_multibyte, insert)
3637 (insert_and_inherit, insert_before_markers)
3638 (insert_before_markers_and_inherit, insert_1)
3639 (count_combining_before, count_combining_after, insert_1_both)
3640 (insert_from_string, insert_from_string_before_markers)
3641 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3642 (insert_from_buffer_1, adjust_after_replace)
3643 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3644 (replace_range_2, del_range, del_range_1, del_range_byte)
3645 (del_range_both, del_range_2, modify_region)
3646 (prepare_to_modify_buffer, signal_before_change)
3647 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3648 for buffer positions and sizes.
3649 * lisp.h: Adjust prototypes accordingly.
3650
3651 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3652 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3653 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3654
ab226c50
SM
3655 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3656
46dfb8fb
JD
36572009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3658
3659 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3660 lines and columns so we keep the same pixel height and width.
3661
3662 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3663 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3664 (x_handle_net_wm_state): New function to update frame parameter
3665 fullscreen.
3666 (x_term_init): Initialize atoms for _NET_WM_STATE.
3667
3668 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3669
d347e494
SM
36702009-03-27 Kevin Ryde <user42@zip.com.au>
3671
3672 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3673 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3674 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3675 (Fgpm_mouse_stop): Pass that new parameter.
3676 * termhooks.h (close_gpm): Adjust prototype.
3677
84db11d6
SM
36782009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3679
c95a5008
SM
3680 * lisp.h (Fx_focus_frame): Declare.
3681
84db11d6
SM
3682 * callint.c (Fcall_interactively): For '^' just delegate the work to
3683 handle-shift-selection.
3684 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3685
0a1958d6
CY
36862009-03-24 Chong Yidong <cyd@stupidchicken.com>
3687
0bfdff23
CY
3688 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3689
0a1958d6
CY
3690 * data.c (Qinteractive_form): New variable.
3691 (Finteractive_form): Use it.
3692
3693 * eval.c (Fcommandp): Use Qinteractive_form.
3694
58aec0d6
JR
36952009-03-24 Jason Rumney <jasonr@gnu.org>
3696
3697 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3698 Calculate total size precisely. Decode environment variables
3699 before substituting. (Bug#38)
3700
553dd618
KH
37012009-03-24 Kenichi Handa <handa@m17n.org>
3702
3703 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3704 encoding (Bug#2722).
553dd618 3705
c39ea606
JD
37062009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3707
3708 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3709 that gdpy is set.
3710
bc9b2b5e
AM
37112009-03-22 Alan Mackenzie <acm@muc.de>
3712
3713 * callint.c (Finteractive): Clarify the doc string - even
3714 promptless elements need \n separators.
3715
9f995a76
JR
37162009-03-22 Jason Rumney <jasonr@gnu.org>
3717
3718 * w32term.c (syms_of_w32term): Doc fix for
3719 x-use-underline-position-properties.
3720
22749e9a
EZ
37212009-03-21 Eli Zaretskii <eliz@gnu.org>
3722
3723 * w32.c (getpwuid): Change argument type to unsigned.
3724 (struct w32_id): Change type of `rid' member to unsigned.
3725 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3726 argument ID to unsigned. All callers changed.
3727 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3728
e00553bf
EZ
37292009-03-20 Eli Zaretskii <eliz@gnu.org>
3730
3731 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3732 negative, produce a float value.
3733
3734 * dired.c (make_uid, make_gid): New functions.
3735 (Ffile_attributes): Use them to avoid negative UID and GID.
3736
f761d6b6
JB
37372009-03-20 Juanma Barranquero <lekktu@gmail.com>
3738
3739 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3740 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3741 Fix typos in docstrings.
3742
d507f8d7
KH
37432009-03-19 Kenichi Handa <handa@m17n.org>
3744
3745 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3746 changed, use font_load_for_lface to get a new font object.
3747 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3748
3749 * frame.c (x_set_font): Handle the case that ARG is a cons.
3750
c68845e0
GM
37512009-03-19 Glenn Morris <rgm@gnu.org>
3752
3753 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3754
bfa49dd1
CY
37552009-03-19 Chong Yidong <cyd@stupidchicken.com>
3756
3757 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3758
8458d4c1
KH
37592009-03-19 Kenichi Handa <handa@m17n.org>
3760
3761 * charset.c (load_charset_map_from_file): When a mapfile can't be
3762 loaded, signal an error.
3763
78e7d1fe
EZ
37642009-03-18 Eli Zaretskii <eliz@gnu.org>
3765
3766 * dired.c (Ffile_attributes): Make sure UID and GID are always
3767 positive, even if the value is too large for a positive EMACS_INT.
3768 Doc fix.
3769
3770 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3771
5da9fdfa
YM
37722009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3773
3774 * xmenu.c (xdialog_show): Move Fredisplay call ...
3775 (Fx_popup_dialog): ... here.
3776
7519c40d
SM
37772009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3778
3779 * dired.c (file_name_completion): Disable the first optimization just
3780 installed, since it is not implemented correctly.
3781
2cd298e2
SM
37822009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3783
3784 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3785 only if the entry can affect bestmatch.
2cd298e2
SM
3786 Stop the search early, as Ftry_completion already does.
3787
48d37adf
CY
37882009-03-17 Chong Yidong <cyd@stupidchicken.com>
3789
e10c9c93 3790 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3791
9286b16a
CY
37922009-03-15 Chong Yidong <cyd@stupidchicken.com>
3793
3794 * keyboard.c (parse_menu_item): Don't display remappings as menu
3795 equivalent bindings (Bug#788).
3796
f7b146dc
JR
37972009-03-15 Jason Rumney <jasonr@gnu.org>
3798
3799 * w32term.h (WM_EMACS_PAINT): New message.
3800 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3801 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3802 before passing to lisp thread. (Bug#950)
3803
f761d6b6 38042009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3805
d93f9575
CY
3806 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3807 variable as it was never reset.
3808 (ns_term_init): Remove initialization of Lisp-settable defaults
3809 and ns_expand_space.
3810 (-setPanelFromDefaultValues): Remove ns_expand_space.
3811 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3812 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3813 i.e. no additional spacing, similar to Carbon port.
3814
d93f9575
CY
3815 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3816 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3817
305018ec
JD
38182009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3819
3820 * sound.c (alsa_configure): Remove call to deprecated
3821 snd_pcm_sw_params_set_xfer_align.
3822
f761d6b6 38232009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3824
3825 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3826 after clicking in a detached tool bar.
3827 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3828
46e722a9
SM
38292009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3830
348db3dd
SM
3831 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3832 int/Lisp_Object mixup).
46e722a9 3833
a3d16f39
KH
38342009-03-13 Kenichi Handa <handa@m17n.org>
3835
3836 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3837 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3838 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3839 (set_fontset_font): Change ARG to a vector. Handle range_list in
3840 ARG correctly.
3841 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3842 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3843 the above change.
3844 (fontset_from_font): Fix previous change.
fe24f56a 3845 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3846 entry. If FONTSET is the default fontset, don't set the extra
3847 slot of the returning char-table.
3848
b066e6b6
JB
38492009-03-12 Juanma Barranquero <lekktu@gmail.com>
3850
3851 * nsfns.m (Fx_close_connection): Doc fix.
3852 (Fns_do_applescript): Reflow docstring.
3853 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3854 (Fx_display_pixel_width, Fx_display_pixel_height)
3855 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3856 Fix typos in docstrings.
3857 (Fns_set_alpha): Fix typos in error messages.
3858
d472514e 38592009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3860
d472514e 3861 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3862 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3863 were used for such events.
3864
d472514e
JB
3865 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3866 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3867
d472514e 3868 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3869 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3870
fb930676
KH
38712009-03-11 Kenichi Handa <handa@m17n.org>
3872
ff85581a
KH
3873 * font.h (font_open_by_spec): Extern it.
3874
c50b7e98
KH
3875 * font.c (font_open_by_spec): New function.
3876 (font_open_by_name): Use font_open_by_spec.
3877
fb930676
KH
3878 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3879 fontset of the frame.
3880
3881 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3882 modify the default font of frames that use this fontset.
3883 (num_auto_fontsets): New variable.
3884 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3885 name. Be sure to set FONTSET_ASCII to the correct font name.
3886 (update_auto_fontset_alist): New function.
3887
df4e8455
JB
38882009-03-11 Juanma Barranquero <lekktu@gmail.com>
3889
3890 * makefile.w32-in: Update dependencies.
3891
0a375797
AR
38922009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3893
3894 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3895
61313fa3
SM
38962009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3897
3898 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3899
b55103fb
CY
39002009-03-10 Chong Yidong <cyd@stupidchicken.com>
3901
3902 * lread.c (Feval_buffer): Doc fix.
3903
dde2559c
KH
39042009-03-09 Kenichi Handa <handa@m17n.org>
3905
3906 * charset.c (Qfile_name_handler_alist): Extern it.
3907 (load_charset_map_from_file): Temporarily bind
3908 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3909
df4e8455 39102009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3911
47f588bb
GM
3912 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3913 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3914
4ddf94bd
AR
39152009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3916
4c9bdfc2
AR
3917 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3918 (x_set_window_size): Change back to calculated method of setting
3919 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3920 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3921 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3922
fe41ae9e
AR
3923 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3924
4c9bdfc2
AR
3925 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3926 accelerator in parens under GNUstep.
3927
825d0875
KH
39282009-03-06 Kenichi Handa <handa@m17n.org>
3929
3930 These changes are to detect incorrect composition sequence without
f3b3be74 3931 looking ahead the source. (Bug#2370)
825d0875
KH
3932
3933 * coding.h: Include "composite.h".
3934 (enum compisition_state): New enum.
3935 (struct compisition_status): New struct.
3936 (struct iso_2022_spec): New member cmp_status.
3937 (struct emacs_mule_spec): New struct.
3938 (struct coding_system): New members ctext_extended_segment_len and
3939 embedded_utf_8. Change the union member
3940 spec.emacs_mule_full_support to spec.emacs_mule.
3941
3942 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3943 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3944 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3945 (ADD_COMPOSITION_DATA): New arg nbytes.
3946 (emacs_mule_char): New arg cmp_status.
3947 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3948 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3949 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3950 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3951 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3952 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3953 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3954 (EMACS_MULE_COMPOSITION_END): New macro.
3955 (emacs_mule_finish_composition): New function.
3956 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3957 (decode_coding_emacs_mule): Avoid long looking ahead while
3958 handling composition.
3959 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3960 (ENCODE_COMPOSITION_RULE): New macro.
3961 (finish_composition): New function.
3962 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3963 (DECODE_COMPOSITION_START): New implementation.
3964 (DECODE_COMPOSITION_END): Likewise.
3965 (STORE_COMPOSITION_RULE): New macro.
3966 (decode_coding_iso_2022): Avoid long looking ahead while handling
3967 composition, CTEXT extended segment, and embedded UTF-8.
3968 (setup_coding_system): For a coding of type iso-2022, reset
3969 CODING_ISO_EXTSEGMENT_LEN (coding) and
3970 CODING_ISO_EMBEDDED_UTF_8 (coding).
3971 (get_translation): Delete arguments last_block, from_nchars,
3972 to_nchars. Callers changed.
3973 (produce_chars): Don't modify charbuf. Adjusted for the change of
3974 get_translation.
98a326f7 3975 (produce_composition): Adjust for the new annotation sequence.
825d0875 3976 (handle_composition_annotation): Likewise.
98a326f7 3977 (consume_chars): Adjust for the change of get_translation.
825d0875 3978
ccbc4452
AR
39792009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3980
4ddf94bd 3981 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3982
988a7ddb
KH
39832009-03-05 Kenichi Handa <handa@m17n.org>
3984
3985 * font.c (font_select_entity): New function.
3986 (font_find_for_lface): Use font_select_entity to select a font.
3987
3988 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3989 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3990 font with C restriction.
3991
98a326f7 39922009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3993
be1bce46 3994 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3995
10ea2b82
JR
39962009-03-04 Jason Rumney <jasonr@gnu.org>
3997
2c93b248 3998 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3999 characters that have already been read. (Bug#2569)
2c93b248 4000
10ea2b82
JR
4001 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4002 Log an error message if check_image_size failed.
4003 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4004 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4005
71a0c011
EZ
40062009-03-02 Eli Zaretskii <eliz@gnu.org>
4007
4008 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4009 when decoding process output.
4010
2f63bba8
RS
40112009-03-01 Richard M Stallman <rms@gnu.org>
4012
4013 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4014
4015 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4016
0a9564cb
EZ
40172009-02-28 Eli Zaretskii <eliz@gnu.org>
4018
4019 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4020 (decode_coding_emacs_mule, decode_coding_iso_2022)
4021 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4022 (decode_coding_raw_text, decode_coding_charset)
4023 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4024 Honor inhibit-eol-conversion. (Bug #2186)
4025
449148b3
JR
40262009-02-28 Jason Rumney <jasonr@gnu.org>
4027
4028 * coding.c (detect_coding_charset): If not checking latin extra,
4029 fail on characters between 0x80 and 0xA0. (Bug#2354)
4030
a4aee864
EZ
40312009-02-28 Eli Zaretskii <eliz@gnu.org>
4032
4033 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4034 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4035
d88bee5a
GM
40362009-02-27 Glenn Morris <rgm@gnu.org>
4037
4038 * callint.c (Finteractive): Doc fix.
4039
a808f22d
KH
40402009-02-27 Kenichi Handa <handa@m17n.org>
4041
4042 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4043
caf8d60c
CY
40442009-02-27 Chong Yidong <cyd@stupidchicken.com>
4045
4046 * font.c (font_style_to_value): Set value for unknown symbols to
4047 100 instead of 255.
b61137ea
CY
4048 (weight_table, slant_table, width_table): Treat "unspecified" as
4049 the default value.
caf8d60c 4050
1a0de25c
JB
40512009-02-26 Juanma Barranquero <lekktu@gmail.com>
4052
4053 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4054
8fc45744
JB
40552009-02-25 Juanma Barranquero <lekktu@gmail.com>
4056
107bd7d1
JB
4057 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4058 error as soon as a recursive load is detected.
8fc45744 4059
f097e223
AR
40602009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4061
4062 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4063 before caching.
4064
8810a12f
KH
40652009-02-24 Kenichi Handa <handa@m17n.org>
4066
4067 * fontset.c (fontset_find_font): Fix the condition for checking
4068 unavailable font.
4069
2c7d1565
GM
40702009-02-24 Glenn Morris <rgm@gnu.org>
4071
4072 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4073 whitespace that confuses documentation.
4074
a20878b6
MB
40752009-02-23 Miles Bader <miles@gnu.org>
4076
4077 * process.c (Flist_system_processes, Fprocess_attributes)
4078 (syms_of_process): Rename `system-process-attributes' to
4079 `process-attributes'.
4080
b3b58c01
AS
40812009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4082
1b3b981b
AS
4083 * coding.h (struct coding_system): Make safe_charsets a pointer to
4084 unsigned char.
4085 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4086 being 255.
4087 (SAFE_CHARSET_P): Likewise.
4088 (setup_iso_safe_charsets): Properly setup safe_charsets.
4089 (Fdefine_coding_system_internal): Likewise.
4090 (setup_coding_system): Likewise. Remove unneeded casts.
4091 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4092 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4093 unneeded casts.
4094
b3b58c01
AS
4095 * insdel.c (del_range_2): Don't modify gap contents when called
4096 from decode_coding_object. (Bug#1809)
4097
0b6f228c
CY
40982009-02-21 Chong Yidong <cyd@stupidchicken.com>
4099
4100 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4101 Qfont_object.
4102 (Ftype_of): Recognize font objects.
4103
4104 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4105
4106 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4107 moved to data.c.
4108
52f8870b
AR
41092009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4110
4111 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4112 async_iconified. Based on a patch by Christian Lynbech
4113 <christian.lynbech@tieto.com>.
4114 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4115
7087d5e9
GM
41162009-02-20 Glenn Morris <rgm@gnu.org>
4117
4118 * syntax.c (Fskip_chars_forward): Fix doc typo.
4119
41d2ceef
CY
41202009-02-20 Chong Yidong <cyd@stupidchicken.com>
4121
4122 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4123
1a3b7ca6
CY
41242009-02-19 Chong Yidong <cyd@stupidchicken.com>
4125
4126 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4127
73cce38d
KH
41282009-02-19 Kenichi Handa <handa@m17n.org>
4129
4130 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4131 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4132
a51092ee
DN
41332009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4134
4135 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4136
c423ecca
KH
41372009-02-18 Kenichi Handa <handa@m17n.org>
4138
4139 * font.c (font_check_otf_features): Fix handling of `nil' element.
4140 (Ffont_spec): Describe :lang and :otf in the docstring.
4141
4c1958f4
AS
41422009-02-16 Andreas Schwab <schwab@suse.de>
4143
4144 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4145 string.
4146
5704f39a
KH
41472009-02-16 Kenichi Handa <handa@m17n.org>
4148
4149 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4150 (Bug#1723)
5704f39a 4151
8f0085aa
CY
41522009-02-14 Chong Yidong <cyd@stupidchicken.com>
4153
a057d86a 4154 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4155
4156 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4157 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4158
aff01dd9
EZ
41592009-02-14 Eli Zaretskii <eliz@gnu.org>
4160
4161 * msdos.c (MAX_SCREEN_BUF): New macro.
4162 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4163 Encode the entire run of glyphs sharing the same face, instead of
4164 doing that one glyph at a time (fixes a bug with displaying
4165 double-size characters).
4166
ba301db3
AR
41672009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4168
4169 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4170
4171 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4172 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4173 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4174
4175 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4176 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4177
51d861de
SM
41782009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4179
ac146f82 4180 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4181 invisible areas.
4182
7fed8996
JR
41832009-02-12 Jason Rumney <jasonr@gnu.org>
4184
631ea4fb
JR
4185 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4186 (add_font_entity_to_list): Call check_face_name even when family
4187 is unspecified.
4188
cb4a3e42
JR
4189 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4190 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4191 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4192
7fed8996 4193 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4194 raster fonts. (Bug#2219)
7fed8996 4195
895416e3
KH
41962009-02-12 Kenichi Handa <handa@m17n.org>
4197
4198 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4199 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4200 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4201 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4202 (find_automatic_composition): While looking forward and backward,
4203 check static composition. Fix where to stop looking forward.
4204 (composition_adjust_point): Fix checking of static composition.
4205 (Fcomposition_get_gstring): Pay attention to
1dacf998 4206 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4207
4208 * lisp.h (fast_looking_at): Extern it.
4209
4210 * search.c (fast_looking_at): New function.
4211
51d861de 4212 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4213 <struct glyph>.u.cmp.to.
4214 (append_composite_glyph): Likewise.
4215
51d861de 4216 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4217 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4218 composition.
51d861de 4219 (append_composite_glyph): Adjust for the change of
895416e3
KH
4220 <strcut glyph>.u.cmp.to.
4221
8510724d
JB
42222009-02-11 Juanma Barranquero <lekktu@gmail.com>
4223
4224 * casetab.c (init_casetab_once):
4225 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4226 * font.c (font_update_lface):
4227 * fontset.c (Fnew_fontset):
4228 * ftfont.c (ftfont_drive_otf):
4229 * xfont.c (xfont_open):
4230 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4231
294fa707
SM
42322009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4233
4234 * fileio.c (Fwrite_region): !NILP -> CONSP.
4235
b5bfebec
AS
42362009-02-10 Andreas Schwab <schwab@suse.de>
4237
4238 * process.c (send_process): Properly relocate pointer into data
adab88bd 4239 when using encoded data. (Bug#2272)
b5bfebec 4240
cb84a2be
KH
42412009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4242
4243 * coding.c (detect_coding_charset): Fix previous change.
4244
89e09428
JR
42452009-02-08 Jason Rumney <jasonr@gnu.org>
4246
4247 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4248 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4249
4470a277
AS
42502009-02-07 Andreas Schwab <schwab@suse.de>
4251
4252 * unexelf.c (unexec): Fix error message.
4253
3175b12a
AR
42542009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4255
4256 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4257 when modal window is active. (Bug #2152)
3175b12a
AR
4258 (applicationShouldTerminate:): Remove now-unneeded while loop
4259 around NSRunAlertPanel.
4260
4261 * nsmenu.m (popupSession): New file-global variable.
4262 (pop_down_menu): End the popupSession before closing dialog.
4263 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4264 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4265 don't query NSApp for events (just sleep instead).
4266
8434d0b8
EZ
42672009-02-07 Eli Zaretskii <eliz@gnu.org>
4268
51d861de
SM
4269 * coding.c (syms_of_coding) <translation-table-for-input>:
4270 Modify doc string to discourage use for character code unification.
8434d0b8 4271
aa82edfd
CY
42722009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4273
4274 * atimer.c (run_timers): Update pending_atimers.
4275
2d283c7c
CY
42762009-02-06 Chong Yidong <cyd@stupidchicken.com>
4277
eb306cab
CY
4278 * image.c (svg_load_image): Fix last change.
4279
2d283c7c
CY
4280 * xfns.c (Fx_create_frame): Signal an error if no font is
4281 found (Bug#2147).
4282
4d8e170e
JB
42832009-02-05 Juanma Barranquero <lekktu@gmail.com>
4284
4285 * character.c (syms_of_character) <script-representative-chars>:
4286 Fix typo in docstring.
4287
c96169a0
AR
42882009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4289
4290 * nsmenu.m (pop_down_menu): New function.
4291 (ns_popup_dialog): Call it on unwind.
4292 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4293 call timer_check() (Bug#2154).
4294 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4295 handling_signal is set.
4296 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4297
31fd7c5c 4298 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4299
4300 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4301
4302 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4303
51d861de
SM
4304 * keyboard.c (poll_for_input_1, handle_async_input):
4305 Set handling_signal under HAVE_NS.
c96169a0 4306
aacd8ba1
GM
43072009-02-04 Glenn Morris <rgm@gnu.org>
4308
4309 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4310
4cb75c4b
KH
43112009-02-04 Kenichi Handa <handa@m17n.org>
4312
4313 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4314
4315 * charset.c (Fchar_charset): New optional arg restriction.
4316
4317 * coding.h (coding_system_charset_list): Extern it.
4318
4319 * coding.c (coding_system_charset_list): New function.
4320
4321 * composite.c: Include coding.h and termhooks.h.
4322 (composition_gstring_p): Fix for the terminal case.
4323 (composition_gstring_width): Likewise.
4324 (fill_gstring_body): Likewise.
4325 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4326 the frame.
4327 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4328 is within a composition.
867d4bb3 4329 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4330
4331 * term.c (encode_terminal_code): Fix handling of composition.
4332 (produce_composite_glyph): For static composition, get pixel_width
4333 from struct composition.
4334
826ba17e
AS
43352009-02-02 Andreas Schwab <schwab@suse.de>
4336
4337 * unexelf.c (unexec): Handle unaligned bss offset.
4338
8ad093db
AR
43392009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4340
4341 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4342 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4343
8ad093db
AR
4344 * keyboard.c (handle_interrupt): Don't call
4345 quit_throw_to_read_char() under NS.
d0a76a6e 4346
8ad093db
AR
4347 * blockinput.h: Remove NS-specific code.
4348
4d18a7a2
DN
43492009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4350
db878925
DN
4351 * dispnew.c (window_change_signal): Don't try to get the size of a
4352 suspended tty frame.
4353 * term.c (Fresume_tty): Resize if the size has changed while the
4354 tty was suspended.
4355
4d18a7a2
DN
4356 * alloc.c (mark_stack): Properly conditionalize previous change.
4357
8984df7c
JB
43582009-01-30 Juanma Barranquero <lekktu@gmail.com>
4359
4360 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4361 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4362 Remove; this code is not used on Windows.
4363
75f4f1ac
EZ
43642009-01-30 Eli Zaretskii <eliz@gnu.org>
4365
4366 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4367 EOLs that also has stray ^M characters.
4368
07a1e794
JB
43692009-01-30 Juanma Barranquero <lekktu@gmail.com>
4370
4371 * atimer.c (run_timers, alarm_signal_handler):
4372 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4373 * w32inevt.c (w32_console_read_socket):
4374 * w32term.c (w32_read_socket):
4375 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4376
a8b11cc9
CY
43772009-01-30 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4380 Initialize it as a relative filename pattern.
4381 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4382 (Fcall_process_region): Simplify temp file creation using
4383 temporary-file-directory.
4384
c279587b
EZ
43852009-01-29 Eli Zaretskii <eliz@gnu.org>
4386
4387 * msdos.c: Rename pending_signals to msdos_pending_signals.
4388 (sig_suspender, sigprocmask): Adjust.
4389
a8fe3242
CY
43902009-01-29 Chong Yidong <cyd@stupidchicken.com>
4391
4392 * keyboard.c (pending_signals): New var.
4393 (poll_for_input, input_available_signal, init_keyboard): Set it.
4394 (process_pending_signals): New function.
4395
4396 * lisp.h (QUIT): Check pending_signals instead of
4397 interrupt_input_pending. Use process_pending_signals.
4398
51d861de 4399 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4400
51d861de 4401 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4402
4403 * sysdep.c (emacs_write): Use process_pending_signals.
4404
4405 * xterm.c (XTread_socket): Update pending_signals.
4406
4407 * w32term.c (w32_read_socket): Update pending_signals.
4408
4409 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4410
6570a1c4
KH
44112009-01-29 Kenichi Handa <handa@m17n.org>
4412
4413 * xftfont.c (xftfont_has_char): New function.
4414 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4415
d72a4afa
AR
44162009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4417
4418 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4419 under GNUstep.
4420 (ns_query_color): New declaration.
4421
4422 * nsterm.m (ns_confirm_quit): New variable.
4423 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4424 (EmacsApp-applicationShouldTerminate:): Use it.
4425 (EmacsPrefsController): Let user set it.
4426 (ns_query_color): New function.
4427 (ns_defined_color): Use it.
4428 (ns_initialize): Drop.
4429 (ns_term_init): Add two lines from ns_initialize(), and set
4430 input_interrupt_mode to nil.
4431
4432 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4433 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4434
9fe78804
KH
44352009-01-28 Kenichi Handa <handa@m17n.org>
4436
4437 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4438 (fontset_get_font_group): Remember that no font-group is specified
4439 for C.
9fe78804 4440
fa57de36
CY
44412009-01-27 Chong Yidong <cyd@stupidchicken.com>
4442
930600e9
CY
4443 * fns.c (concat): Check for string overflow (bug#1787).
4444
fa57de36
CY
4445 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4446 Quadruple undo limits (bug#1501).
4447
7179ce7b
KH
44482009-01-27 Kenichi Handa <handa@m17n.org>
4449
4450 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4451 directly use GT_Get_Char_index.
4452
4453 * xftfont.c (struct xftfont_info): New member `index'.
4454
4455 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4456 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4457
5be8fcc0
CY
44582009-01-26 Kenichi Handa <handa@m17n.org>
4459
4460 * fontset.c (fontset_find_font): Fix handling of non-cons return
4461 value of fontset_get_font_group.
4462 (fontset_font): Revert last change.
4463
19ae3e61
JR
44642009-01-26 Jason Rumney <jasonr@gnu.org>
4465
4466 * w32font.c (w32font_list_internal): Return quickly if registry is
4467 unknown. Simplify final return.
4468 (add_font_entity_to_list): Break complex logic down into more
4469 manageable chunks. Move unknown registry check to
4470 w32font_list_internal.
4471
8612b71a
AR
44722009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4473
4474 Changes to remove Feval calls from GUI under NS.
4475
d8038940
JB
4476 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4477 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4478 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4479
4480 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4481 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4482 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4483 instead of NON_ASCII_KEYSTROKE_EVENT.
4484 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4485 (EmacsApp-applicationShouldTerminate:): Query user.
4486 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4487 instead of Feval.
4488
4489 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4490
4491 * keyboard.c (kbd_buffer_get_event): Check for it.
4492 (keys_of_keyboard): Define lispy keys for
4493 ns-put/unput-working-text.
4494
4495 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4496 versions.
4497 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4498
6288ae55
CY
44992009-01-25 Chong Yidong <cyd@stupidchicken.com>
4500
4501 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4502 setting current_buffer directly. (Bug#2044)
6288ae55 4503
289e7f8f
CY
45042009-01-24 Chong Yidong <cyd@stupidchicken.com>
4505
5ce87308 4506 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4507 any work. (Bug#1952, bug#1990).
5ce87308 4508
64cc3cf6 4509 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4510
b3243e6f
AR
45112009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4512
4513 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4514 (ns_no_defaults): New declaration.
4515 (main): Use it.
e0d2e69a 4516
d900b2af 4517 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4518
d900b2af 4519 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4520
d900b2af
AR
4521 * nsterm.m (ns_no_defaults): New variable.
4522 (ns_initialize): Don't read defaults when ns_no_defaults.
4523 (EmacsView-readSelectionFromPasteboard:)
4524 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4525 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4526 (ns_dumpglyphs_stretch): New function.
4527 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4528 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4529
e0d2e69a
AR
4530 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4531
3ac71f5d
CY
45322009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4533
4534 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4535 call for Sparc64.
4536
3fe53a83
AR
45372009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4538
4539 * nsfns.m:
4540 * nsgui.h:
4541 * nsmenu.m:
4542 * nsselect.m:
4543 * nsterm.h:
4544 * nsterm.m: Remove '23' comments that indicated code added during
4545 update from emacs-20 -> emacs-23.
4546
10f87c6f 45472009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4548
4549 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4550 ns_alternate_modifier. (Bug#1217)
a3b53a85 4551
c7cef62d
AR
4552 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4553 Display all shortcuts, including those w/o super modifier.
4554
575fb8bd
AR
4555 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4556
918b848b
CY
45572009-01-22 Chong Yidong <cyd@stupidchicken.com>
4558
4559 * fileio.c (Vwrite_region_post_annotation_function)
4560 (Vwrite_region_annotation_buffers): New vars.
4561 (build_annotations_unwind): Just reset
4562 Vwrite_region_annotation_buffers.
4563 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4564 Call write-region-post-annotation-function.
4565 (build_annotations): Add to Vwrite_region_annotation_buffers if
4566 buffer changes.
4567
a39e2539
AR
45682009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4569
4570 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4571 Tiger.
51d861de
SM
4572 * nsfns.m (ns_do_applescript):
4573 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4574
35ed44db
AR
45752009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4576
4577 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4578
cbe0b5bf
AR
45792009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4580
4581 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4582
6049d3a0
AR
4583 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4584
4585 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4586 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4587 handle Ctrl-tab. (Bug#1841)
4588 (ns_get_color): Use unsigned long long for scanned hex string value.
4589 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4590 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4591 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4592 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4593 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4594 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4595 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4596
d3810c21 4597 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4598 DPI. (Bug#1316)
d3810c21
AR
4599 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4600 values in onTiger section.
4c7077c3 4601
e301e634
CY
46022009-01-19 Chong Yidong <cyd@stupidchicken.com>
4603
7f82490b
CY
4604 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4605 Check return value of font_spec_from_name.
64cc3cf6 4606 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4607
4608 * font.c (font_spec_from_name): Return Qnil if font name could not
4609 be parsed.
4610 (font_parse_name): Treat a `?' character as part of an XLFD.
4611
e301e634
CY
4612 * fns.c (Fsubstring): Doc fix.
4613
1c0db158
KH
46142009-01-19 Kenichi Handa <handa@m17n.org>
4615
51d861de 4616 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4617 (ftfont_list): Likewise.
4618
acf20901
JB
46192009-01-18 Juanma Barranquero <lekktu@gmail.com>
4620
fff4e459
JB
4621 * dbusbind.c (Fdbus_register_signal):
4622 * process.c (conv_sockaddr_to_lisp):
4623 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4624
acf20901
JB
4625 * callproc.c (Fgetenv_internal): Doc fix.
4626
e7abcdfb
CY
46272009-01-16 Chong Yidong <cyd@stupidchicken.com>
4628
4629 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4630 it is not even used.
4631
b60861e6
GM
46322009-01-16 Glenn Morris <rgm@gnu.org>
4633
4634 * font.c (Ffont_variation_glyphs): Silence compiler.
4635
8db52afe
JB
46362009-01-15 Juanma Barranquero <lekktu@gmail.com>
4637
4638 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4639 Reported by David Robinow <drobinow@gmail.com>.
4640
4cddb209
KH
46412009-01-15 Kenichi Handa <handa@m17n.org>
4642
51d861de 4643 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4644
f247f67b
JR
46452009-01-14 Jason Rumney <jasonr@gnu.org>
4646
4647 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4648 never a fontset. (Bug#1562)
f247f67b 4649
f56a4450
KH
46502009-01-14 Kenichi Handa <handa@m17n.org>
4651
4652 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4653 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4654
4e99855e
CY
46552009-01-13 Chong Yidong <cyd@stupidchicken.com>
4656
4657 * font.c (font_clear_prop): If clearing the family, clear the font
4658 width index too.
4659
fff4e459 4660 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4661
24f01470
JB
46622009-01-12 Juanma Barranquero <lekktu@gmail.com>
4663
4664 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4665 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4666 functions, use sizeof.
4667
a41240a3
MR
46682009-01-12 Martin Rudalics <rudalics@gmx.at>
4669
4670 * keyboard.c (read_char): Fix case where last_nonmenu_event
4671 returned a bad value with submenus. (Bug#447)
4672
944636b8
CY
46732009-01-12 Chong Yidong <cyd@stupidchicken.com>
4674
4675 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4676 family, clear the font width index too.
4677
0dad7c6f
JR
46782009-01-11 Jason Rumney <jasonr@gnu.org>
4679
4680 * keyboard.c (cmd_error_internal): Exit when errors occur before
4681 frame creation and not in daemon mode. (Bug#1836)
4682
7c2363af
CY
46832009-01-10 Chong Yidong <cyd@stupidchicken.com>
4684
4685 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4686 of a display vector, backtrack.
4687 (try_window_reusing_current_matrix): Check glyph type before
4688 referencing charpos member.
4689
97b1b294
EZ
46902009-01-10 Eli Zaretskii <eliz@gnu.org>
4691
4692 Fix Bug #876:
4693
4694 * coding.c (inhibit_null_byte_detection): New variable.
4695 (detect_coding, detect_coding_system): Don't pay attention to null
4696 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4697 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4698 <inhibit-iso-escape-detection>: Doc fix.
4699
4624b6e3
JR
47002009-01-09 Jason Rumney <jasonr@gnu.org>
4701
4702 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4703 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4704 Only report Unicode Plane 2 fonts as unicode-sip.
4705
323b840c
CY
47062009-01-09 Chong Yidong <cyd@stupidchicken.com>
4707
51d861de
SM
4708 * xfaces.c (Fx_font_family_list): Delete function.
4709 Move compatibility version to faces.el.
323b840c 4710
51d861de 4711 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4712
eba7400d
MR
47132009-01-09 Martin Rudalics <rudalics@gmx.at>
4714
4715 * frame.c (x_set_frame_parameters): Remember requested value for
4716 fullscreen before it's reset by the parameter handler.
4717
4b09796d
GM
47182009-01-09 Glenn Morris <rgm@gnu.org>
4719
4720 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4721 (last_command_event): ... and update all users.
4b09796d
GM
4722 (last_input_char): For clarity, rename to...
4723 (last_input_event): ... and update all users.
4724 (last-command-char, last-input-char): Move to subr.el as aliases.
4725 * cmds.c, commands.h: Update for last_command_char rename.
4726
14ccea62
CY
47272009-01-08 Chong Yidong <cyd@stupidchicken.com>
4728
51d861de 4729 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4730
5f004711
JR
47312009-01-08 Jason Rumney <jasonr@gnu.org>
4732
4733 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4734 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4735 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4736 Don't declare.
fff4e459 4737 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4738 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4739
b71f6f73
KH
47402009-01-07 Kenichi Handa <handa@m17n.org>
4741
50b06221 4742 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4743 remember the coding system used for decoding in
50b06221
KH
4744 coding_system (Bug#1039).
4745
b71f6f73 4746 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4747 breaking the loop. (Bug#870)
b71f6f73
KH
4748 (decode_coding_utf_16, decode_coding_emacs_mule)
4749 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4750 (decode_coding_charset): Likewise.
4751
56f668f7
MR
47522009-01-05 Martin Rudalics <rudalics@gmx.at>
4753
4754 * frame.c (x_set_frame_parameters): Make sure height (width) get
4755 applied when fullwidth (fullheight) is set. (Bug#1522)
4756
5da9424d
JB
47572009-01-04 Juanma Barranquero <lekktu@gmail.com>
4758
4759 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4760 (utc_base): Declare as ULONGLONG, not long double.
4761 (convert_time_raw): Delete.
4762 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4763 (initialize_utc_base): New function.
4764 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4765 (convert_from_time_t): Use initialize_utc_base; compute result with
4766 64-bit arithmetic.
4767 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4768
c4605e09
EZ
47692009-01-03 Eli Zaretskii <eliz@gnu.org>
4770
9acef61c 4771 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4772 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4773 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4774 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4775 [!subprocesses]: Define.
4776 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4777 (Flist_system_processes, Fsystem_process_attributes)
4778 [!subprocesses]: Call list_system_processes and
4779 system_process_attributes instead of returning Qnil.
4780
9acef61c
JB
4781 * dosfns.c (system_process_attributes, list_system_processes):
4782 New functions.
c4605e09
EZ
4783
4784 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4785
4786 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4787 Don't use the default (no-op) implementation.
4788
8b7d0a16
JR
47892009-01-03 Jason Rumney <jasonr@gnu.org>
4790
a6d46bc1
JR
4791 * keyboard.c (parse_modifiers_uncached): Wheel events are
4792 clicks (bug#687).
4793
8b7d0a16
JR
4794 * w32term.c (x_query_colors, x_query_color): New functions.
4795
4796 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4797 (svg_load_image): Cast returned pointers from dynamically loaded
4798 functions. Eliminate W32 specific code.
4799
bfe11752
DN
48002009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4801
89e2438a
DN
4802 * nsfns.m (x_set_foreground_color, x_set_background_color)
4803 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4804 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4805 x_ prefix instead of ns_. Update references.
4806 (syms_of_nsfns): Add a FIXME comment.
4807
4808 * nsterm.m (x_set_cursor_type): New prototype.
4809 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4810
bfe11752
DN
4811 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4812 for Solaris instead of incorrectly providing Qutime and Qcutime.
4813
031da700
EZ
48142009-01-02 Eli Zaretskii <eliz@gnu.org>
4815
4816 * w32.c (process_times): Compute sum of utime and stime.
4817 (system_process_attributes): Add Qtime to the alist.
4818
4819 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4820 and add them to the alist.
4821
4822 * process.c (top level) <Qtime, Qctime>: New variables.
4823 (syms_of_process): staticpro them.
4824 (Fsystem_process_attributes): Add their documentation to the doc
4825 string.
4826
4827 * process.h: Declare Qtime and Qctime.
4828
df23bf08
JR
48292009-01-02 Jason Rumney <jasonr@gnu.org>
4830
9acef61c 4831 * image.c (Qgobject): New symbol.
df23bf08
JR
4832 (syms_of_image): Initialize it.
4833 (init_svg_functions): Load some functions from gobject library.
4834
5bbdf7aa
DN
48352009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4836
4837 * frame.c (make_terminal_frame): Remove redundant code and useless
4838 block.
4839
63136da6
AS
48402009-01-01 Andreas Schwab <schwab@suse.de>
4841
4842 * process.c (conv_sockaddr_to_lisp): Add workaround for
4843 getsockname bug on BSD.
4844
9ef69046
CY
48452009-01-01 Chong Yidong <cyd@stupidchicken.com>
4846
d6fafbe0
CY
4847 * xfns.c (x_create_tip_frame): Set border width of the X window.
4848
51d861de 4849 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4850
f9c34147
JR
48512009-01-01 Jason Rumney <jasonr@gnu.org>
4852
9acef61c 4853 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4854 Don't block input, as per earlier xterm.c changes.
4855
f5497e45
AR
48562008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4857
4858 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4859 (ns_appkit_version_int): New function.
4860 (x-server-version): Use ns_appkit_version_int and follow 21+
4861 convention of returning 3 integers.
4862
c19cab20
KH
48632008-12-30 Kenichi Handa <handa@m17n.org>
4864
4865 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4866 (CHAR_SURROGATE_PAIR_P): New macro.
4867
4868 * font.h (struct font_driver): New member get_variation_glyphs.
4869
9acef61c 4870 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4871 (Ffont_variation_glyphs): New function.
4872 (syms_of_font): Defsubr it.
4873
4874 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4875 ftfont_variation_glyphs.
4876 (setup_otf_gstring): New function.
4877 (ftfont_drive_otf): Use it.
4878 (ftfont_shape_by_flt): Handle variation selector.
4879 (ftfont_variation_glyphs): New function.
4880
28cd591f
MR
48812008-12-30 Martin Rudalics <rudalics@gmx.at>
4882
4883 * frame.c (Vemacs_iconified): Remove.
4884
7f714baf
JR
48852008-12-30 Jason Rumney <jasonr@gnu.org>
4886
4887 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4888 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4889
9d2d22ab
CY
48902008-12-30 Chong Yidong <cyd@stupidchicken.com>
4891
4892 * indent.c (Fvertical_motion): Don't advance iterator if we have
4893 reseated to the desired position.
4894
4895 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4896 checking for pos match.
4897
545312c2
KH
48982008-12-30 Kenichi Handa <handa@m17n.org>
4899
1ede3eb6
KH
4900 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4901 just get the low 8-bit of the code.
4902
545312c2
KH
4903 * font.c (font_intern_prop): Validate str as multibyte.
4904
bd7bbf29
DN
49052008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4906
31e0750e
DN
4907 * dispextern.h (struct face): Move lface and hash from the middle
4908 of bitfields.
4909
bd7bbf29
DN
4910 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4911
b5672e7c
DN
49122008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4913
4914 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4915 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4916 instead of intervals.h.
4917
d704470f
AS
49182008-12-26 Andreas Schwab <schwab@suse.de>
4919
4920 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4921 cons.
4922
54b33868
MR
49232008-12-26 Martin Rudalics <rudalics@gmx.at>
4924
4925 * textprop.c (Qminibuffer_prompt): New variable.
4926 (syms_of_textprop): Initialize it.
4927 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4928 in minibuffer-prompt face. (Bug#1662)
4929
40b615d6
JR
49302008-12-25 Jason Rumney <jasonr@gnu.org>
4931
4932 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4933
baae5c2d
JR
49342008-12-24 Jason Rumney <jasonr@gnu.org>
4935
4936 * ralloc.c (r_alloc_reset_variable): New function.
4937
4938 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4939 record of what points where. (Bug#716)
baae5c2d 4940
a9051c88
DN
49412008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4942
4943 * minibuf.c (read_minibuf): Follow the non-interactive case when
4944 running as a daemon, before detaching.
4945
8b146312
AS
49462008-12-22 Andreas Schwab <schwab@suse.de>
4947
4948 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4949 * gtkutil.c (free_widget_value): Use xfree instead of free.
4950
56f2de10
MR
49512008-12-22 Martin Rudalics <rudalics@gmx.at>
4952
4953 * frame.c (delete_frame): New function derived from
4954 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4955 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4956 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4957 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4958 * frame.h: Extern delete_frame.
4959 * window.c (window_loop):
4960 * terminal.c (delete_terminal):
4961 * xterm.c (x_connection_closed):
4962 * xfns.c (Fx_hide_tip):
9acef61c 4963 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4964
1fc200d6
JR
49652008-12-21 Jason Rumney <jasonr@gnu.org>
4966
4967 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4968 when character maps to .notdef character.
4969
5e252df2
SM
49702008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4971
4972 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4973
99b72cc4
JR
49742008-12-20 Jason Rumney <jasonr@gnu.org>
4975
4976 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4977 a graphical frame on Windows. (Bug#1325)
99b72cc4 4978
acc49a52
JD
49792008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4980
4981 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4982
6ea15123
CY
49832008-12-20 Chong Yidong <cyd@stupidchicken.com>
4984
4985 * minibuf.c (Fread_buffer): Doc fix.
4986
b2dab6c8
JR
49872008-12-20 Jason Rumney <jasonr@gnu.org>
4988
54ea0c87 4989 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4990 server name in UNC paths. (Bug#719)
54ea0c87 4991
b2dab6c8 4992 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4993 charbuf. (Bug#1035)
b2dab6c8 4994
6d1921be
DN
49952008-12-19 Daniel Engeler <engeler@gmail.com>
4996
4997 * sysdep.c (serial_configure): Fix typo.
4998
53934c98
DN
49992008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5000
5001 * sysdep.c: Include alloca.h.
f4f634e8
DN
5002 (system_process_attributes): Add implementation for Solaris.
5003
5004 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5005
06e111a6
DN
50062008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5007
5008 Reorganize implementation of Flist_system_processes and
5009 Fsystem_process_attributes. No functional changes.
5010 * process.c: Don't #include pwd.h, grp.h and limits.h.
5011 (Flist_system_processes): Just call list_system_processes.
5012 (Fsystem_process_attributes): Just call system_process_attributes.
5013 (procfs_list_system_processes, time_from_jiffies)
5014 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5015 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5016
5017 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5018 (list_system_processes): Rename from
5019 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5020 Provide a do nothing implementation.
5021 (system_process_attributes): Rename from
5022 procfs_list_system_processes.
5023 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5024 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5025
5026 * w32.c (list_system_processes): Rename from
5027 w32_list_system_processes.
5028 (system_process_attributes): Rename from
5029 w32_system_process_attributes.
5030
5031 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5032
5033 * process.h (w32_list_system_processes)
5034 (w32_system_process_attributes): Remove.
362654a6
JB
5035 (list_system_processes, system_process_attributes):
5036 New prototypes.
06e111a6 5037
6a705b23
KH
50382008-12-19 Kenichi Handa <handa@m17n.org>
5039
5040 * xfont.c (xfont_decode_coding_xlfd): New function.
5041 (xfont_encode_coding_xlfd): New function.
5042 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5043 (xfont_list): Decode and encode XLFD by iso-8859-1.
5044 (xfont_match): Likewise.
5045 (xfont_list_family): Likewise.
5046 (xfont_open): Likewise.
5047
d66c0241 5048 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5049 names are utf-8.
5050
d66c0241 5051 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5052 names are utf-8.
5053
5a130941
JD
50542008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5055
5056 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5057 changed.
bfd20325
JD
5058 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5059 clicked on a detached tool bar button.
5a130941 5060
fd95644b
DN
50612008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5062
5063 * emacs.c (main): Print and error and exit when no data is read
5064 from the pipe.
5065
e6eee6ae
JR
50662008-12-17 Jason Rumney <jasonr@gnu.org>
5067
5068 * w32font.c (w32font_has_char): Always return -1.
5069
a35dd56b
KH
50702008-12-16 Kenichi Handa <handa@m17n.org>
5071
5072 * font.c (font_open_entity): Fix previous change.
5073
0e3635c2
DN
50742008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5075
5076 * process.c: Include <limits.h>.
5077
d4835507 50782008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5079
5080 * font.c (font_update_drivers): Fix mistake in reconstructing the
5081 driver list.
5082
50832008-12-16 Chong Yidong <cyd@stupidchicken.com>
5084
5085 * font.c (font_clear_cache): Fix format of font cache data.
5086
e2cbc401
CY
50872008-12-15 Chong Yidong <cyd@stupidchicken.com>
5088
5089 * xftfont.c (xftfont_open): Free Xft font pattern if
5090 XftFontOpenPattern fails.
5091
5092 * xterm.c (x_free_frame_resources): Remove extraneous call to
5093 free_frame_faces.
5094
b131d535
CY
50952008-12-13 Chong Yidong <cyd@stupidchicken.com>
5096
5097 * xterm.c (x_delete_display): Move xim_close_dpy call to
5098 x_delete_terminal.
5099 (x_delete_terminal): Call xim_close_dpy.
5100
e6df5336
JR
51012008-12-13 Jason Rumney <jasonr@gnu.org>
5102
5103 * w32font.c (intern_font_name): New function.
5104 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5105 (w32font_open_internal, Fx_select_font): Decode font name.
5106 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5107
5108 * w32font.h (intern_font_name): Declare new function.
5109
5110 * w32uniscribe.c (add_opentype_font_name_to_list):
5111 Use intern_font_name.
5112
20d68145
CY
51132008-12-13 Chong Yidong <cyd@stupidchicken.com>
5114
9f2554de
CY
5115 * frame.c (Fdelete_frame): Call free_font_driver_list.
5116
3d9bec9a
CY
5117 * font.c (free_font_driver_list): Implement missing function.
5118
20d68145
CY
5119 * w32term.c (w32_term_init): Don't initialize the image cache
5120 here; it will be done in init_frame_faces.
5121
5122 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5123 (struct x_display_info): Remove unused member null_pixel. New
5124 member xim_callback_data.
5125
5126 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5127 (xim_initialize): Save pointer to callback function data.
5128 (xim_close_dpy): Free callback function data. Call XCloseIM,
5129 reverting 2008-11-04 change by David Smith.
5130 (x_term_init): Don't initialize the image cache here; it will be
5131 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5132 (x_delete_display): Free x_dnd_atoms member.
5133
96f9306b
KH
51342008-12-13 Kenichi Handa <handa@m17n.org>
5135
6dec9044
JB
5136 * font.c (font_rescale_ratio): Moved from xfaces.c.
5137 Argument type changed. Handle a font-spec too.
96f9306b 5138 (font_score): Check Vface_font_rescale_alist.
6dec9044 5139 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5140
5141 * xfaces.c (font_rescale_ratio): Moved to font.c.
5142
8d5b4964
CY
51432008-12-13 Chong Yidong <cyd@stupidchicken.com>
5144
5145 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5146
e6df5336
JR
51472008-12-12 Jason Rumney <jasonr@gnu.org>
5148
5149 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5150 Vwindow_system_version to the real w32 major version.
5151
97c6058a
DN
51522008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5153
5154 * term.c (init_tty): Move setting the terminal name before the
5155 potential user: maybe_fatal.
5156
ec4e88d7
CY
51572008-12-11 Chong Yidong <cyd@stupidchicken.com>
5158
d4835507
JB
5159 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5160 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5161
b4233ec9
JR
51622008-12-11 Jason Rumney <jasonr@gnu.org>
5163
8ec71e23 5164 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5165 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5166
b4233ec9 5167 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5168 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5169
011a0143
JB
51702008-12-11 Juanma Barranquero <lekktu@gmail.com>
5171
5172 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5173
3c309f34
JB
51742008-12-11 Juanma Barranquero <lekktu@gmail.com>
5175
5176 * process.c (Fsystem_process_attributes, syms_of_process):
5177 Fix typo in name of Ssystem_process_attributes.
5178 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5179
fedc6ab5
JB
51802008-12-11 Juanma Barranquero <lekktu@gmail.com>
5181
5182 * syntax.c (Fmodify_syntax_entry): Doc fix.
5183
ba3de0e8
JB
51842008-12-10 Juanma Barranquero <lekktu@gmail.com>
5185
5186 * font.c (Ffont_spec): Move usage to end of docstring.
5187
174f1c74
JR
51882008-12-10 Jason Rumney <jasonr@gnu.org>
5189
5190 * w32font.c (Qcham): New symbol.
5191 (font_supported_scripts): Add cham, and comments for other new
5192 scripts in bitfield from OpenType spec.
9d32f818
JR
5193 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5194 contain characters beyond the bmp.
174f1c74 5195
7b649478
KH
51962008-12-10 Kenichi Handa <handa@m17n.org>
5197
5198 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5199 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5200 Qunicode_sip.
5201
2133e2d1
JB
52022008-12-10 Juanma Barranquero <lekktu@gmail.com>
5203
5204 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5205 (Fcoding_system_put): Use QCdefault_char.
5206 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5207
9af886ee
CY
52082008-12-09 Chong Yidong <cyd@stupidchicken.com>
5209
74d819eb
CY
5210 * xftfont.c (syms_of_xftfont): Fix typo.
5211
4ccfa1c0 5212 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5213
7c19d3ae
DN
52142008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5215
5216 * emacs.c (main): Close daemon_pipe on exec.
5217
567826bb
CY
52182008-12-08 Chong Yidong <cyd@stupidchicken.com>
5219
5220 * termchar.h (struct tty): New members termcap_term_buffer and
5221 termcap_strings_buffer.
5222
5223 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5224 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5225 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5226 All callers changed.
5227 (init_tty): Store termcap data and string buffers in new struct
5228 tty members termcap_term_buffer and termcap_strings_buffer.
5229 (delete_tty): Free them.
4ccfa1c0 5230 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5231
aa96c42b
SZ
52322008-12-07 Seiji Zenitani <zenitani@mac.com>
5233
5234 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5235 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5236
b7e1d896
CY
52372008-12-06 Chong Yidong <cyd@stupidchicken.com>
5238
5239 * coding.c (make_conversion_work_buffer): Disable buffer
5240 modification hooks in the work buffer.
5241
b5ec91a5
EZ
52422008-12-05 Eli Zaretskii <eliz@gnu.org>
5243
5244 * process.c (procfs_system_process_attributes): If `nread' has a
5245 negative value, assign zero to it.
5246
a5d2a52b
CY
52472008-12-05 Chong Yidong <cyd@stupidchicken.com>
5248
68c5540b 5249 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5250
7bf1bb21
KH
52512008-12-05 Kenichi Handa <handa@m17n.org>
5252
5253 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5254 second character is a combining character.
5255
2fdc7d00
EZ
52562008-12-05 Eli Zaretskii <eliz@gnu.org>
5257
5258 * process.c (procfs_system_process_attributes): Don't use cmd,
5259 cmdsize, and q without initializing them first.
5260
bf6bfba8
JR
52612008-12-04 Jason Rumney <jasonr@gnu.org>
5262
5263 * w32font.c (w32font_draw): Initialize orig_clip before getting
5264 it, and delete it when finished.
5265
a3b1a468
DN
52662008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5267
5268 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5269 case when running as a daemon before detaching.
5270
8b8be8eb
JB
52712008-12-03 Juanma Barranquero <lekktu@gmail.com>
5272
805f2638 5273 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5274
b1bde622
KH
52752008-12-03 Kenichi Handa <handa@m17n.org>
5276
e500c47d
KH
5277 * font.c (font_at): Set `multibyte' at first.
5278
ca516334
KH
5279 * coding.c (decode_coding_charset): Check type of an element of
5280 vector VALIDS.
7bf1bb21 5281 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5282
4ccfa1c0 5283 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5284 (font_for_char): Likewise.
5285
1e5ecd37
CY
52862008-12-03 Chong Yidong <cyd@stupidchicken.com>
5287
d5b01609 5288 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5289 (font_update_lface): Handle fonts with corrupted size specs,
5290 i.e. non-int and non-float.
d5b01609 5291
11e3a6e4 5292 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5293 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5294 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5295
ab06788b
CY
5296 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5297
1e5ecd37 5298 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5299 underline_minimum_offset for underline position.
1e5ecd37 5300
63c125ab
DN
53012008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5302
5303 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5304
5305 * character.c (c_string_width): Specify the type for LEN.
5306
3a8406e1
KH
53072008-12-03 Kenichi Handa <handa@m17n.org>
5308
4ccfa1c0 5309 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5310 (decode_coding_utf_8): Likewise.
4ccfa1c0 5311 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5312 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5313
651df7d9
CY
53142008-12-02 Chong Yidong <cyd@stupidchicken.com>
5315
5316 * keyboard.c (make_lispy_position): Only use PT if the selected
5317 window is current.
5318
1f625c6c
AS
53192008-12-02 Andreas Schwab <schwab@suse.de>
5320
f7741ce9
AS
5321 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5322
1f625c6c
AS
5323 * doprnt.c (doprnt1): Fix size of charbuf.
5324
92bc2678
CY
53252008-12-02 Chong Yidong <cyd@stupidchicken.com>
5326
5327 * keyboard.c (timer_check): Revert last change.
5328
93b9e8cc
JB
53292008-12-02 Juanma Barranquero <lekktu@gmail.com>
5330
5331 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5332
fd7a37d5
JB
53332008-12-01 Juanma Barranquero <lekktu@gmail.com>
5334
5335 * makefile.w32-in: Update dependencies.
5336 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5337
c115043b
AS
53382008-12-01 Andreas Schwab <schwab@suse.de>
5339
5340 * font.c (register_font_driver): Use xmalloc.
5341 (font_put_frame_data): Likewise.
5342
f5668d2a
CY
53432008-12-01 Chong Yidong <cyd@stupidchicken.com>
5344
860d96be
CY
5345 * xfaces.c (realize_x_face): Make abort condition clearer.
5346
f5668d2a
CY
5347 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5348
379c17e7
CY
53492008-11-30 Chong Yidong <cyd@stupidchicken.com>
5350
5351 * keyboard.c (timer_check): After a timer runs, ensure that the
5352 selected window's buffer is current.
5353
35f36d65
JB
53542008-11-30 Juanma Barranquero <lekktu@gmail.com>
5355
f952c61c
JB
5356 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5357 It was accidentally restored by the Unicode merge.
5358
35f36d65
JB
5359 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5360
b23077df
JB
53612008-11-29 Juanma Barranquero <lekktu@gmail.com>
5362
5363 * w32proc.c: Include "coding.h".
5364 (Fw32_short_file_name): Encode filename passed to Windows API.
5365 (Fw32_long_file_name): Encode filename passed to Windows API and
5366 decode back the result. (Bug#1433)
5367
b8ebe9dd
KH
53682008-11-29 Kenichi Handa <handa@m17n.org>
5369
8cc53f96
KH
5370 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5371 not before accessing it.
5372
b8ebe9dd
KH
5373 * charset.c (Fdefine_charset_internal): After calculating
5374 min_char, max_char, and fastmap, copy the charset structure again.
5375 (encode_char): Fix the previous change.
5376
59bc82c0
SZ
53772008-11-28 Seiji Zenitani <zenitani@mac.com>
5378
5379 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5380
5381 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5382
5383 * nsterm.m (x_set_frame_alpha): New function.
5384
32247e3d
EZ
53852008-11-27 Eli Zaretskii <eliz@gnu.org>
5386
5387 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5388
b003e5ff
JB
53892008-11-27 Juanma Barranquero <lekktu@gmail.com>
5390
5391 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5392 pointer to check_face_name.
5393
708550f5
KH
53942008-11-27 Kenichi Handa <handa@m17n.org>
5395
5396 * category.h (SET_CATEGORY_SET): Call set_category_set.
5397 (set_category_set): Extern it.
5398
5399 * category.c (hash_get_category_set): New function.
5400 (Fmodify_category_entry): Adjusted for the change of
5401 char_table_ref_and_range. Call hash_get_category_set to get a
5402 category set to store in the table.
5403
5404 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5405 Funify_charset.
5406
2ae37cf0 5407 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5408 (DECODE_CHAR): Check if the decoder vector is ready.
5409 (ENCODE_CHAR): Check if the encoder char-table is ready.
5410 (maybe_unify_char): Extern it.
5411
5412 * charset.c (Vchar_unified_charset_table): Delete it.
5413 (inhibit_load_charset_map): New variable.
5414 (temp_charset_work): New variable.
5415 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5416 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5417 New macros.
5418 (load_charset_map): Meaning of control_flag changed. If
5419 inhibit_load_charset_map is nonzero, setup a table in
5420 temp_charset_work.
5421 (load_charset): New argument control_flag.
5422 (map_charset_for_dump): New function.
5423 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5424 map_charset_for_dump.
5425 (Fdefine_charset_internal): If the charset method is MAP, load
5426 mapping tables by calling load_charset.
5427 (Funify_charset): Don't load a mapping table but directly set
5428 Vchar_unify_table.
5429 (maybe_unify_char): New function.
5430 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5431 Handle the case of inhibit_load_charset_map being nonzero.
5432 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5433 Handle the case of inhibit_load_charset_map being nonzero.
5434 (Fclear_charset_maps): Just free temp_charset_work.
5435 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5436 variable.
5437
5438 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5439 change of char_table_ref_and_range.
5440 (char_table_ref_and_range): Change the meaning of argument FROM
5441 and TO. Now the caller must provide initial values for *FROM
5442 and *TO.
5443
5444 * fontset.c (fontset_add): Adjusted for the change of
5445 char_table_ref_and_range.
5446 (fontset_get_font_group): Likewise.
5447 (Ffontset_info): Likewise.
5448
5449 * keymap.c (describe_vector): Adjusted for the change of
5450 char_table_ref_and_range. For char-table, put boundary between
5451 non-ASCII and 8-bit characters.
5452
5453 * print.c (print_object): For bool-vector, delete unnecessary
5454 check of ASCII_BYTE_P.
5455
9196133b
JR
54562008-11-26 Jason Rumney <jasonr@gnu.org>
5457
5458 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5459 leading in font height. (Bug#879)
9196133b 5460
9f688acf
GM
54612008-11-26 Glenn Morris <rgm@gnu.org>
5462
5463 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5464 redefinition with ifdef. (Bug#1383)
5465
90d19aff
AR
54662008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5467
5468 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5469
4ccfa1c0 54702008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5471
5472 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5473 New EmacsView methods.
5474 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5475 Fixes bug #1048,1357,1414.
5476
54772008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5478
5479 Fix bug #1362.
5480 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5481 is not an indexed color.
5482 * nsterm.m (free_indexed_color): Add argument checking.
5483 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5484
e7d5ecb3
CY
54852008-11-24 Chong Yidong <cyd@stupidchicken.com>
5486
5487 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5488 Document confirm-after-completion value for
5489 minibuffer-completion-confirm.
5490
c285743c
JR
54912008-11-24 Jason Rumney <jasonr@gnu.org>
5492
5493 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5494 warning.
5495
b0857706
JR
54962008-11-23 Jason Rumney <jasonr@gnu.org>
5497
5498 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5499 restored before returning.
5500
5501 * w32font.c (check_face_name): New function.
5502 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5503 fonts. (Bug#642)
b0857706 5504
ee50ff07
MR
55052008-11-22 Martin Rudalics <rudalics@gmx.at>
5506
5507 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5508 confirm-nonexistent-file-or-buffer in doc-string.
5509
b8ff72fa
SM
55102008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5511
5512 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5513 Fix copy/paste typo. Add checks.
5514
cee53ed4
KH
55152008-11-21 Kenichi Handa <handa@m17n.org>
5516
5517 * coding.c (detect_coding_iso_2022): Reject invalid composition
5518 sequence.
5519 (DECODE_COMPOSITION_START): If the current source is the last
5520 block, and the current composition doesn't end, regard this
5521 sequence as invalid.
5522 (decode_coding_iso_2022): Handle invalid composition sequence.
5523
f6ef1e65
MR
55242008-11-20 Martin Rudalics <rudalics@gmx.at>
5525
5526 * window.c (coordinates_in_window): Don't return
5527 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5528 line when the window is not the rightmost one. (Bug#1372)
5529
e08b1705
MR
55302008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5531
5532 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5533
ad98e89f
EZ
55342008-11-15 Eli Zaretskii <eliz@gnu.org>
5535
5536 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5537 and bright_bg if noninteractive is non-zero.
5538
fb098a4b
CY
55392008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5540
5541 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5542 x_draw_glyph_string_background.
5543
5544 * w32term.c (x_draw_glyph_string): Likewise.
5545
ce952b6e
CY
55462008-11-15 Chong Yidong <cyd@stupidchicken.com>
5547
5548 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5549 the next glyph string once past the overhang width.
5550
5551 * nsterm.m (ns_draw_glyph_string): Likewise.
5552
5553 * w32term.c (x_draw_glyph_string): Likewise.
5554
26ea7079
CY
55552008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5556
5557 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5558 double file close.
5559
1c33c906
MR
55602008-11-14 Martin Rudalics <rudalics@gmx.at>
5561
5562 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5563 dedicated status of window before attempting to display another
5564 buffer in it.
5565
8fc29035
JB
55662008-11-14 Juanma Barranquero <lekktu@gmail.com>
5567
5568 * msdos.c (Fmsdos_long_file_names):
5569 (syms_of_msdos) <dos-unsupported-char-glyph>:
5570 * dosfns.c (Fint86): Fix typos in docstrings.
5571
55fb4286
EZ
55722008-11-14 Eli Zaretskii <eliz@gnu.org>
5573
5574 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5575
3fda0315
KY
55762008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5577
5578 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5579
7e849c17
CY
55802008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5581
5582 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5583
5584 * frame.h: Negative alpha means "don't touch".
5585
5586 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5587
5588 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5589
b9fd67bd
DN
55902008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5591
5592 * hftctl.c:
5593 * chpdef.h:
5594 * acldef.h: Remove files used only for systems no longer supported.
5595
5596 * Makefile.in: Fix .o alphabetical ordering.
5597 (hftctl.o): Remove dependency, file removed.
5598 (keymap.o, print.o): Depend on charset.h.
5599
d5998e03
KH
56002008-11-10 Kenichi Handa <handa@m17n.org>
5601
2ae37cf0 5602 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5603
be70e183
CY
56042008-11-08 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * dired.c (file_name_completion): If completion_ignore_case is
5607 enabled, ignore case when checking completion-regexp-list.
5608
7cf94eac
EZ
56092008-11-08 Eli Zaretskii <eliz@gnu.org>
5610
5611 * vm-limit.c (get_lim_data): Fix last change.
5612
ee107a89
KH
56132008-11-08 Kenichi Handa <handa@m17n.org>
5614
5615 * character.c (Fget_byte): New function.
5616 (syms_of_character): Defsubr Fget_byte.
5617
5fd15622
CY
56182008-11-07 Chong Yidong <cyd@stupidchicken.com>
5619
5620 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5621 cursor position is valid after scrolling.
5622
13d62fad
JB
56232008-11-06 Juanma Barranquero <lekktu@gmail.com>
5624
5625 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5626
a1dd2936
GM
56272008-11-06 Glenn Morris <rgm@gnu.org>
5628
5629 * xterm.c (handle_one_xevent): Don't let popup menus cause
5630 mouse-autoselect-window related window switching. (Bug#1261)
5631
860cd236
CY
56322008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5633
5634 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5635
653a3150
AS
56362008-11-04 Andreas Schwab <schwab@suse.de>
5637
5638 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5639
870f5cac
CY
56402008-11-03 Chong Yidong <cyd@stupidchicken.com>
5641
5642 * xfns.c (Fx_wm_set_size_hint): New function.
5643
1e02f3cb
MR
56442008-11-03 Martin Rudalics <rudalics@gmx.at>
5645
5646 * textprop.c (Fprevious_single_char_property_change): Return 0
5647 when there's no change in a string. (Bug#1301)
5648
e630dfc6
MR
56492008-11-02 Martin Rudalics <rudalics@gmx.at>
5650
5651 * frame.c (do_switch_frame): New argument NORECORD passed to
5652 Fselect_window.
5653 (Fselect_frame): New argument NORECORD passed to
5654 do_switch_frame.
5655 (Fset_frame_selected_window): New argument NORECORD passed to
5656 Fselect_frame.
5657 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5658 in call of do_switch_frame.
5659 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5660 Handle NORECORD argument in call of Fselect_frame.
5661 * lisp.h (do_switch_frame, Fselect_frame)
5662 (Fset_frame_selected_window): Adjust declarations.
5663 * window.c (select_frame_norecord): New function.
5664 (run_window_configuration_change_hook): Use it and call
5665 Fselect_frame with NORECORD set.
5666 (Fselect_window): Pass NORECORD to Fselect_frame.
5667 (Fset_window_configuration): Handle NORECORD argument in call of
5668 do_switch_frame.
5669 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5670 Fset_frame_selected_window.
5671 * keyboard.c (command_loop_1): Handle NORECORD in call of
5672 Fselect_frame (currently ifdefd).
5673
9020b223
GM
56742008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5675
5676 * emacs.c (USAGE2): Untabify.
5677
793ffee8
SM
56782008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5679
5680 * composite.c (fill_gstring_header): Fix copy/paste typo.
5681
ab6d1131
MR
56822008-10-31 Martin Rudalics <rudalics@gmx.at>
5683
5684 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5685 (Fother_window): Rename argument and rewrite doc-string.
5686 (select_window_norecord): Fix return value. (Bug#1276)
5687
601a9cf1
JB
56882008-10-30 Juanma Barranquero <lekktu@gmail.com>
5689
5690 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5691 new frames overriding foreground for tooltips. Based on similar patch
5692 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5693
813b0652
CY
56942008-10-29 Chong Yidong <cyd@stupidchicken.com>
5695
5696 * emacs.c (Fdaemon_initialized): Initialize nfd.
5697
4414f58f
MR
56982008-10-29 Martin Rudalics <rudalics@gmx.at>
5699
5700 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5701 (Fwindow_text_height): Clarify doc-strings.
5702 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5703 doc-string of window-scroll-functions.
5704
ecdcaa09
RS
57052008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5706
5707 * category.c (syms_of_category): Fix typo in docstring.
5708
23fe745a
JB
57092008-10-28 Juanma Barranquero <lekktu@gmail.com>
5710
5711 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5712 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5713 Fix typos in docstrings.
5714
ff808935
DN
57152008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5716
5717 * emacs.c (daemon_pipe): Make non-static.
5718 (IS_DAEMON): Move definition ...
5719 * lisp.h (IS_DAEMON): ... here.
5720 (daemon_pipe): Declare.
5721 (is_daemon): Remove.
5722 * dispnew.c (init_display): Use IS_DAEMON.
5723
fc012771
SM
57242008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5725
5726 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5727 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5728
5729 * emacs.c (is_daemon): Remove.
5730 (main): Don't set is_daemon.
5731 (IS_DAEMON): New macro.
5732 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5733 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5734 parent exits.
5735 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5736
d8bdbe6f
CY
57372008-10-27 Chong Yidong <cyd@stupidchicken.com>
5738
d1a072bf
CY
5739 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5740 over-sized glyph, draw it with the default glyph width.
5741
e2e325aa
CY
5742 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5743 glyph, draw it with the default glyph width.
5744
5745 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5746 glyph, draw it with the default glyph width.
5747
d8bdbe6f
CY
5748 * xdisp.c (try_scrolling): When computing the distance from the
5749 scroll margin to PT, try moving some distance past the window
5750 bottom before giving up.
5751
7bfac547
MR
57522008-10-27 Martin Rudalics <rudalics@gmx.at>
5753
5754 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5755 (Fset_window_buffer): Explain in doc-string that a window can be
5756 "strongly" dedicated to its buffer.
5757
4ff029f6
DN
57582008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5759
5760 * emacs.c (daemon_name): New variable.
5761 (main): Deal with --daemon=SERVER_NAME.
5762 (Fdaemonp): Return a name if one was passed to --daemon.
5763
5790ef40
DN
57642008-10-26 Romain Francoise <romain@orebokech.com>
5765
f9bd0df9 5766 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5767 (main): Create a pipe before forking, make the parent exit only after
5768 the child has closed its end of the pipe. Move closing the
5769 descriptors ...
5770 (Fdaemon_initialized): ... here. New function.
5771
f5385255
SM
57722008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5773
4d632321
SM
5774 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5775 the previous unoptimized table.
5776
f5385255
SM
5777 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5778 the distinction between non-nil and non-t value of `dedicated'.
5779
6c56a0f3
CY
57802008-10-25 Chong Yidong <cyd@stupidchicken.com>
5781
5782 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5783 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5784
fec89261
MR
57852008-10-25 Martin Rudalics <rudalics@gmx.at>
5786
5787 * window.c (Fget_buffer_window, Fdelete_windows_on)
5788 (Freplace_buffer_in_windows): Make buffer argument optional and
5789 rename to buffer_or_name.
5790
34fcddd0
CY
57912008-10-24 Chong Yidong <cyd@stupidchicken.com>
5792
f5385255
SM
5793 * xdisp.c (handle_single_display_spec, handle_display_prop):
5794 Undo 2005-05-16 change.
34fcddd0
CY
5795 (handle_stop): Pop iterator if it's loaded with an empty string.
5796 (get_overlay_strings_1): Don't save iterator if it's loaded with
5797 an empty string (bug#1201).
5798
064766f2
KH
57992008-10-24 Kenichi Handa <handa@m17n.org>
5800
5801 * ftfont.c (ftfont_otf_features): Fix previous change.
5802 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5803 calling ftfont_otf_features.
5804
f9bd0df9 58052008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5806
5807 * font.c (font_match_p): Fix for the case that a vector of
5808 characters is in script-representative-chars.
5809
1dae9197
MA
58102008-10-24 Michael Albinus <michael.albinus@gmx.de>
5811
5812 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5813 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5814 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5815 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5816 macro. (Bug#1186)
1dae9197 5817
f9bd0df9 58182008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5819
5820 * s/sol2-10.h: New file.
5821
878a4584
JB
58222008-10-23 Juanma Barranquero <lekktu@gmail.com>
5823
5824 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5825 poor beast has survived 9+ years and the jump from xterm.c!).
5826
cd265ca6
MR
58272008-10-23 Martin Rudalics <rudalics@gmx.at>
5828
5829 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5830 Reword doc-string.
f5385255 5831 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5832
472a4dc9
JB
58332008-10-23 Juanma Barranquero <lekktu@gmail.com>
5834
5835 * character.c (syms_of_character) <script-representative-chars>:
5836 <unicode-category-table>: Doc fixes.
5837
159bd5a2
NF
58382008-10-23 Noah Friedman <friedman@splode.com>
5839
5840 * coding.c (make_conversion_work_buffer): Check that
5841 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5842 Fget_buffer_create.
5843
49f9c344
KH
58442008-10-23 Kenichi Handa <handa@m17n.org>
5845
5846 * font.c (font_add_log): Check the values of extra properties.
5847
12bb3111
MR
58482008-10-22 Martin Rudalics <rudalics@gmx.at>
5849
5850 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5851 Reword doc-string.
5852 (Fset_window_parameter): Use NILP.
5853 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5854 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5855
bbeb4e99
JB
58562008-10-22 Juanma Barranquero <lekktu@gmail.com>
5857
5858 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5859
58602008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5861
5862 * nsfns.m (ns_appkit_version): New function.
5863 (x-server-version): Use it.
5864 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5865 (x-server-vendor): Don't check_ns().
5866
5867 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5868
a9b555d3
JB
58692008-10-22 Juanma Barranquero <lekktu@gmail.com>
5870
5871 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5872 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5873
4626499f
KH
58742008-10-22 Kenichi Handa <handa@m17n.org>
5875
e3681952
KH
5876 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5877 scripts.
5878
4626499f
KH
5879 * category.c (word_boundary_p): Check scripts instead of charset.
5880 Handle nil value in word-separating-categories and
5881 word-combining-categories.
5882 (syms_of_category): Fix docstrings of word-separating-categories
5883 and word-combining-categories.
5884
1560f91a
EZ
58852008-10-21 Eli Zaretskii <eliz@gnu.org>
5886
5887 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5888 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5889
f4668441
MR
58902008-10-21 Martin Rudalics <rudalics@gmx.at>
5891
5892 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5893 Rename arg "buffer" to "buffer_or_name".
5894 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5895 it optional.
5896 (no_switch_window): Remove since the return value is not used.
a9b555d3 5897 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5898 Consider window as dedicated when Fwindow_dedicated_p returns a
5899 non-nil value.
5900 * lisp.h: Remove prototype for no_switch_window.
5901
fd75ddb2
JD
59022008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5903
5904 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5905 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5906
07295713
KH
59072008-10-21 Kenichi Handa <handa@m17n.org>
5908
5909 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5910 check Vlatin_extra_code_table.
5911
712adc82
EZ
59122008-10-20 Eli Zaretskii <eliz@gnu.org>
5913
5914 * fileio.c (Fset_file_modes): Doc fix.
5915
f549eb0b
MA
59162008-10-19 Michael Albinus <michael.albinus@gmx.de>
5917
5918 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5919 in arrays.
5920
aac0c6e3
MR
59212008-10-19 Martin Rudalics <rudalics@gmx.at>
5922
5923 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5924 Mention kill-buffer in doc-string.
5925 (Fset_window_buffer): Reinsert tem check removed in last commit.
5926 (Fenlarge_window, Fshrink_window): Have argument names and
5927 doc-string follow Elisp manual more closely.
5928
59292008-10-18 Eli Zaretskii <eliz@gnu.org>
5930
5931 * fileio.c (Fset_file_modes): Doc fix.
5932
59332008-10-18 Martin Rudalics <rudalics@gmx.at>
5934
5935 * window.c (Fwindow_width, Fset_window_start)
5936 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5937 (Fdelete_windows_on, Freplace_buffer_in_windows):
5938 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5939 (Fwindow_dedicated_p): Make window argument optional.
5940 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5941 (Fset_window_buffer): Respect any non-nil dedicated value for
5942 window. Rename "buffer" argument to "buffer_or_name".
5943
59442008-10-18 Ulrich Mueller <ulm@gentoo.org>
5945
5946 * m/sh3.h: New file, machine description for SuperH.
5947
59482008-10-17 Martin Rudalics <rudalics@gmx.at>
5949
5950 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5951
59522008-10-17 Kenichi Handa <handa@m17n.org>
5953
5954 * ftfont.c (ftfont_otf_features): Fix indexing
5955 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5956
59572008-10-16 Magnus Henoch <mange@freemail.hu>
5958
5959 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5960 (Fdbus_call_method_asynchronously): Ditto.
5961 This change makes C-h f display the argument list.
5962
59632008-10-16 Chong Yidong <cyd@stupidchicken.com>
5964
5965 * fileio.c (Fexpand_file_name): Doc fix.
5966
5967 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5968 of :foreground and :background equivalent to unspecified (20.x
5969 compatibility).
5970
59712008-10-15 Eli Zaretskii <eliz@gnu.org>
5972
5973 * buffer.c (syms_of_buffer): Doc fix.
5974
59752008-10-14 Kenichi Handa <handa@m17n.org>
5976
5977 * font.c (font_clear_prop): When clearing font width, clear the
5978 average width field too.
5979
59802008-10-12 Andreas Schwab <schwab@suse.de>
5981
5982 * ftfont.c (ftfont_shape_by_flt): Make static.
5983 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5984
5985 * font.c: Don't include <m17n-flt.h>.
5986
59872008-10-10 Eli Zaretskii <eliz@gnu.org>
5988
5989 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5990
59912008-10-09 Eli Zaretskii <eliz@gnu.org>
5992
5993 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5994 away code.
5995
59962008-10-09 Chong Yidong <cyd@stupidchicken.com>
5997
5998 * dispnew.c (update_text_area): Avoid looping due to large glyph
5999 overhangs (bug#1070).
6000
60012008-10-09 Kenichi Handa <handa@m17n.org>
6002
6003 * fontset.c (face_for_char): If face->fontset is negative, just
6004 return ascii_face.
6005
f5385255
SM
6006 * font.c (font_delete_unmatched): Fix previous change.
6007 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6008
60092008-10-09 Martin Rudalics <rudalics@gmx.at>
6010
6011 * frame.c (Fraise_frame): On text-only terminals select frame in
6012 order to make it visible. (Bug#1061)
6013
60142008-10-08 Chong Yidong <cyd@stupidchicken.com>
6015
6016 * fontset.c (fontset_find_font): Check frame validity.
6017
60182008-10-07 Chong Yidong <cyd@stupidchicken.com>
6019
a9b555d3 6020 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6021 (xg_display_close): Allow Emacs to close all displays (bug#985).
6022
60232008-10-06 Andreas Schwab <schwab@suse.de>
6024
f5385255 6025 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6026
60272008-10-06 Chong Yidong <cyd@stupidchicken.com>
6028
f5385255 6029 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6030
a9b555d3 6031 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6032
6033 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6034 during initialization.
6035
60362008-10-04 Eli Zaretskii <eliz@gnu.org>
6037
6038 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6039 whole thing on MSDOS frames as well as on a TTY.
6040
6041 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6042 well as for TTY.
6043 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6044 well as on a TTY.
6045
6046 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6047 as well as for TTY.
6048
6049 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6050
6051 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6052 MSDOS frames as well.
6053
60542008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6055
6056 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6057 correct arguments.
b71ac3dd 6058 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6059
60602008-10-03 Glenn Morris <rgm@gnu.org>
6061
6062 * emacs.c (USAGE1): Add --daemon.
6063
60642008-10-02 Eli Zaretskii <eliz@gnu.org>
6065
6066 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6067 100, so it's in percents as advertised.
6068
60692008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6070
6071 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6072 (ns_output.current_cursor, ns_output.desired_cursor)
6073 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6074 (FRAME_NEW_CURSOR_COLOR): Remove.
6075
6076 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6077 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6078 enumeration (HOLLOW_BOX_CURSOR, etc.).
6079
6080 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6081 (draw_window_cursor): Simplify code.
f5385255
SM
6082 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6083 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6084 updates manually.
a9b555d3
JB
6085 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6086 Use core Emacs cursor types.
aac0c6e3 6087
b8ff72fa 6088 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6089
60902008-10-02 Martin Rudalics <rudalics@gmx.at>
6091
6092 * process.c (Faccept_process_output): Fix doc-string.
6093
60942008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6095
6096 * gmalloc.c (__sbrk): Also define for uClibc.
6097
6098 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6099 for uClibc.
6100
61012008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6102
6103 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6104 styles.
6105 (nsfont_open): Reenable the cache.
6106
61072008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6108
6109 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6110 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6111
61122008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6113
6114 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6115 a suspended terminal.
6116
61172008-09-30 Michael Albinus <michael.albinus@gmx.de>
6118
6119 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6120
61212008-09-30 Eli Zaretskii <eliz@gnu.org>
6122
6123 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6124
61252008-09-30 Chong Yidong <cyd@stupidchicken.com>
6126
6127 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6128 in a continued line coincides with a line beginning.
6129
61302008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6131
6132 * nsfont.m (nsfont_trait_distance): Fix bug.
6133 (nsfont_list): Return a list rather than a vector (syncs with Handa
6134 changes of 2008-05-14).
6135 (nsfont_open): Improve logging.
6136
61372008-09-29 Andreas Schwab <schwab@suse.de>
6138
6139 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6140
61412008-09-28 Martin Rudalics <rudalics@gmx.at>
6142
6143 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6144 name as char-resolve-modifiers.
6145 Reported by: Markus Triska <markus.triska@gmx.at>
6146
61472008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6148
6149 * dispnew.c (init_display): Return earlier when running as a daemon.
6150
61512008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6152
6153 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6154
61552008-09-27 Eli Zaretskii <eliz@gnu.org>
6156
6157 * composite.c (Fcomposition_get_gstring)
6158 (Fcompose_region_internal, Fcompose_string_internal)
6159 (Ffind_composition_internal): Doc fix.
6160 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6161 (syms_of_composite) <auto-composition-function>: Doc fix.
6162 (syms_of_composite) <composition-function-table>: Doc fix.
6163
61642008-09-25 Chong Yidong <cyd@stupidchicken.com>
6165
6166 * search.c (wordify): New argument for lax word-ends.
6167 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6168
61692008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6170
6171 * lisp.h (is_daemon): Declare.
6172 * dispnew.c (init_display): Do not try to initialize the terminal
6173 when running as a daemon.
6174
61752008-09-22 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6178 x_display_pixel_height.
6179
61802008-09-22 Martin Rudalics <rudalics@gmx.at>
6181
6182 * undo.c (record_point): Don't call Fundo_boundary for first
6183 change. (Bug#731)
6184
61852008-09-22 Juanma Barranquero <lekktu@gmail.com>
6186
6187 * emacs.c (Fdaemonp): Doc fix.
6188
61892008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6190
6191 * emacs.c (main): Place #ifdef in the proper place.
6192
61932008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6194
6195 * emacs.c (standard_args): Add --daemon.
6196 (main): Disconnect from the terminal when --daemon is passed.
6197 (is_daemon): New variable.
6198 (Fdaemonp): New function.
6199 (syms_of_emacs): Defsubr it.
6200
62012008-09-20 Chong Yidong <cyd@stupidchicken.com>
6202
6203 * xdisp.c (get_next_display_element): Handle string display
6204 correctly when checking for the end of a box run.
6205
62062008-09-20 Glenn Morris <rgm@gnu.org>
6207
6208 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6209 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6210 (Frename_file): Avoid copying to trash if a rename involves
6211 a delete. (Bug#964).
6212
62132008-09-20 Eli Zaretskii <eliz@gnu.org>
6214
6215 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6216 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6217 frames as well as termcap frames.
6218 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6219 get_named_tty.
6220
62212008-09-19 Eli Zaretskii <eliz@gnu.org>
6222
6223 * process.c (procfs_system_process_attributes): Fix cmdline in
6224 case /proc/PID/cmdline is empty.
6225
6226 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6227 x_display_pixel_height.
6228
62292008-09-19 Juanma Barranquero <lekktu@gmail.com>
6230
6231 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6232
6233 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6234 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6235
62362008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6237
6238 * dispextern.h (struct it): Move line_wrap away from the middle of
6239 bitfields. Move voffset in struct iterator_stack_entry after the
6240 bitfields. Move tab_width near after another short.
6241
62422008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6243
6244 * frame.h (struct frame): Move alpha from the middle of bitfields.
6245
6246 * window.h (struct window): Move frozen_window_start_p after the
6247 rest of the bitfields to reduce padding.
6248
62492008-09-18 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * xterm.h (x_display_info): Remove `height' and `width' members.
6252
6253 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6254
6255 * w32term.h (w32_display_info): Remove `height', `width',
6256 `height_in', and `width_in' members.
6257
b8ff72fa
SM
6258 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6259 New functions.
aac0c6e3
MR
6260 (x_calc_absolute_position): Use them.
6261 (x_term_init): Omit removed `height' and `width' members.
6262
b8ff72fa
SM
6263 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6264 New functions.
aac0c6e3
MR
6265 (w32_read_socket, x_calc_absolute_position): Use them.
6266 (w32_initialize_display_info, w32_term_init): Omit removed members
6267 of w32_display_info.
6268
b8ff72fa
SM
6269 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6270 New functions.
6271 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6272
b8ff72fa
SM
6273 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6274 New functions.
aac0c6e3
MR
6275 (x_calc_absolute_position): Use them.
6276 (x_term_init): Omit removed `height' and `width' members.
6277
6278 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6279 (compute_tip_xy):
6280 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6281 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6282 x_display_pixel_width.
6283
62842008-09-18 Kenichi Handa <handa@m17n.org>
6285
6286 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6287 (composition_compute_stop_pos): Fix handling of static composition.
6288 (Fcomposition_get_gstring): Check FROM and TO at first.
6289
62902008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6291
46e722a9 6292 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6293 mixup (YAILOM).
6294
62952008-09-17 Chong Yidong <cyd@stupidchicken.com>
6296
6297 * indent.c (Fvertical_motion): Use position reported by iterator
6298 instead of PT for determining screen motion (bug#943).
6299
63002008-09-17 Romain Francoise <romain@orebokech.com>
6301
6302 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6303
63042008-09-17 Kenichi Handa <handa@m17n.org>
6305
6306 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6307
6308 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6309 if necessary.
6310
63112008-09-16 Kenichi Handa <handa@m17n.org>
6312
6313 * coding.c (make_conversion_work_buffer): Avoid calling
6314 Fget_buffer_create if it is not necessary.
6315
63162008-09-15 Martin Rudalics <rudalics@gmx.at>
6317
6318 * window.c (Fselect_window): Don't update window_select_count and
6319 use_time when norecord is not nil.
6320
63212008-09-14 Kenichi Handa <handa@m17n.org>
6322
6323 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6324 specpdl_ptr.
6325
63262008-09-12 Kenichi Handa <handa@m17n.org>
6327
6328 * indent.c (scan_for_column): Don't handle automatic composition
6329 if the current buffer is not associated with a window.
6330
6331 * composite.c (composition_reseat_it): If the current buffer is
6332 not associated with a window, ignore the automatic composition.
6333 (find_automatic_composition): Likewise.
6334
63352008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6336
6337 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6338 (Fgpm_mouse_stop): Use it.
6339 * termhooks.h (close_gpm): Declare.
6340 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6341 connection if Gpm_GetEvent fails.
6342
6343 * window.c (set_window_buffer): Always preserve current-buffer.
6344
63452008-09-12 Glenn Morris <rgm@gnu.org>
6346
6347 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6348
63492008-09-11 Glenn Morris <rgm@gnu.org>
6350
6351 * charset.c (charset-map-path): Doc fix.
6352
63532008-09-10 Kenichi Handa <handa@m17n.org>
6354
6355 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6356
6357 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6358 compose a grapheme cluster with the preceding base glyph.
6359
6360 * composite.c (composition_compute_stop_pos): Fix previous change.
6361 Reset cmp_it->id to -1 at first.
6362
63632008-09-10 Glenn Morris <rgm@gnu.org>
6364
6365 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6366
63672008-09-09 Chong Yidong <cyd@stupidchicken.com>
6368
6369 * keyboard.c (read_key_sequence): Reapply translation maps when
6370 switching keyboards.
6371
63722008-09-09 Kenichi Handa <handa@m17n.org>
6373
6374 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6375 characters.
6376
6377 * composite.c (FORWARD_CHAR): Fix calculation
6378 of (POSITION).pos_byte.
6379 (composition_compute_stop_pos): Limit the search of composition to
6380 at most 500 characters ahead. If we reach the limit or find a
6381 newline, set cmp_it->ch to -2 and return 0.
6382 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6383
63842008-09-08 Kenichi Handa <handa@m17n.org>
6385
6386 * indent.c (Fvertical_motion): Be sure to set
6387 it_overshoot_expected if it.cmp_it.id is non-negative.
6388
63892008-09-07 Andreas Schwab <schwab@suse.de>
6390
6391 * callproc.c (Fcall_process): Don't hold references to string data
6392 across garbage collection. Move initialisation of new_argv down
6393 to avoid compiler bug.
6394
63952008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6396
6397 * process.c (Fsystem_process_attributes): Doc fix.
6398
63992008-09-07 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * callproc.c (Fcall_process): Canonicalize current directory name.
6402
6403 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6404 iterator advances to the next line if the current line ends in a
6405 continued tab.
6406
64072008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6408
6409 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6410 member to point to cmp_from.
6411
6412 * xdisp.c: Doc fix for references to gidx data member.
6413
64142008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6415
6416 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6417
64182008-09-07 Kenichi Handa <handa@m17n.org>
6419
6420 * composite.c (FORWARD_CHAR): Check STOP after
6421 incrementing (POSITION).pos.
6422
64232008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6424
6425 * process.c (Fsystem_process_attributes): Doc fix.
6426
64272008-09-06 Chong Yidong <cyd@stupidchicken.com>
6428
6429 * keyboard.c (Ftop_level): Doc fix.
6430
64312008-09-06 Eli Zaretskii <eliz@gnu.org>
6432
6433 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6434 minibuffer, don't let lower part of menu invade the echo area.
6435
6436 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6437 "char *q" to access menu text and advance through it. Revert the
6438 change that displayed ">" instead of ASCII character 0x10.
6439
64402008-09-05 Eli Zaretskii <eliz@gnu.org>
6441
6442 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6443 toggle boxes and radio buttons on MS-DOS as well.
6444
64452008-09-05 Kenichi Handa <handa@m17n.org>
6446
6447 * composite.c (autocmp_chars): Check lookback count.
6448 (composition_compute_stop_pos): Set cmp_it->lookback.
6449 (composition_reseat_it): Check lookback count.
6450 (struct position_record): New struct.
6451 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6452 (find_automatic_composition): New function.
6453 (composition_adjust_point): Use find_automatic_composition.
6454
6455 * dispextern.h (struct composition_it): New member lookback.
6456
64572008-09-02 Chong Yidong <cyd@stupidchicken.com>
6458
6459 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6460 if moving by a single line.
6461
64622008-09-02 Andreas Schwab <schwab@suse.de>
6463
6464 * xterm.c (x_delete_display): Fix merge error.
6465
6466 * fileio.c (Fexpand_file_name): Remove unused variables.
6467
64682008-09-02 Eli Zaretskii <eliz@gnu.org>
6469
6470 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6471 storage on all platforms, not just on DOS_NT.
6472
64732008-09-02 Jason Rumney <jasonr@gnu.org>
6474
b8ff72fa
SM
6475 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6476 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6477
64782008-09-01 Chong Yidong <cyd@stupidchicken.com>
6479
6480 * xfaces.c (Finternal_set_alternative_font_family_alist)
6481 (Finternal_set_alternative_font_registry_alist): Properly copy
6482 entire alist structure.
6483
64842008-09-01 Kenichi Handa <handa@m17n.org>
6485
d66c0241 6486 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6487 representative chars of the script is a vector.
d66c0241
JB
6488 (ftfont_list): Handle the case where the representative chars of
6489 the script is a vector.
aac0c6e3
MR
6490
6491 * character.c (syms_of_character): Docstring of
6492 script-representative-chars fixed.
6493
64942008-08-31 Eli Zaretskii <eliz@gnu.org>
6495
6496 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6497 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6498 the menu. Allocate larger buffer for `text', to account for
6499 possible ^C characters.
6500
65012008-08-31 Martin Rudalics <rudalics@gmx.at>
6502
6503 * xdisp.c (prepare_menu_bars): Don't call
6504 Vwindow_size_change_functions with arg Qt.
6505
65062008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * font.h (font_range):
6509 * fileio.c (report_file_error):
46e722a9
SM
6510 * composite.c (composition_update_it): Yet another int/Lisp_Object
6511 mixup (YAILOM).
aac0c6e3
MR
6512
65132008-08-30 Glenn Morris <rgm@gnu.org>
6514
6515 * data.c (Fmake_variable_frame_local): Doc fix.
6516
6517 * frame.c (Fmodify_frame_parameters): Doc fix.
6518
65192008-08-30 Eli Zaretskii <eliz@gnu.org>
6520
6521 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6522 needed by GetTokenInformation.
6523 (w32_system_process_attributes): Check return values of all system
6524 APIs.
6525
6526 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6527 only when the state changes.
6528 (IT_update_begin, IT_update_end): Add termscript trace.
6529
6530 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6531 clipboard is unavailable. Set dst to NULL if it doesn't point to
6532 malloc'ed data.
6533 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6534 passing random values to xfree.
6535
6536 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6537 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6538
65392008-08-29 Jason Rumney <jasonr@gnu.org>
6540
6541 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6542
65432008-08-29 Eli Zaretskii <eliz@gnu.org>
6544
6545 * composite.c (fill_gstring_body): Avoid compiler warnings.
6546
6547 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6548 LGLYPH_SET_CODE to avoid compiler warnings.
6549
2ae37cf0 6550 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6551
6552 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6553
6554 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6555 LGLYPH_SET_CODE.
6556
65572008-08-29 Kenichi Handa <handa@m17n.org>
6558
6559 * fileio.c (report_file_error): Don't downcase the first character
6560 of errstring if it is still unibyte.
6561
65622008-08-29 Kenichi Handa <handa@m17n.org>
6563
6564 These changes are to re-implement the automatic composition so
6565 that it doesn't use text properties.
6566
6567 * Makefile.in (ftfont.o): Depend on composite.h.
6568 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6569
6570 * character.h (Vunicode_category_table): Extern it.
6571
6572 * character.c (Vunicode_category_table): New variable.
6573 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6574
6575 * chartab.c (optimize_sub_char_table): Perform more greedy
6576 optimization.
6577
b8ff72fa
SM
6578 * composite.h (enum composition_method):
6579 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6580 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6581 (Vcomposition_function_table): Extern it.
6582 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6583 (composition_gstring_put_cache, composition_gstring_from_id)
6584 (composition_gstring_p, composition_gstring_width)
6585 (composition_compute_stop_pos, composition_reseat_it)
6586 (composition_update_it, composition_adjust_point): Extern them.
6587 (Fcomposition_get_gstring): EXFUN it.
6588
d66c0241 6589 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6590 (Vcomposition_function_table)
6591 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6592 (gstring_hash_table, gstring_work, gstring_work_headers):
6593 New variables.
aac0c6e3
MR
6594 (gstring_lookup_cache, composition_gstring_put_cache)
6595 (composition_gstring_from_id, composition_gstring_p)
6596 (composition_gstring_width, fill_gstring_header)
6597 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6598 (composition_reseat_it, composition_update_it)
b8ff72fa 6599 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6600 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6601 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6602 Defsubr compostion_get_gstring.
6603
6604 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6605 cmp_id.
6606 (struct glyph_string): Delete the member gidx. New members
6607 cmp_id, cmp_from, and cmp_to.
6608 (enum it_method): Delete GET_FROM_COMPOSITION.
6609 (struct composition_it): New struct.
6610 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6611 Delete c, len, cmp_id, cmp_len in u.comp.
6612
6613 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6614 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6615 (enum lglyph_indices): Likewise.
b8ff72fa 6616 (font_range): Adjust extern.
aac0c6e3
MR
6617 (font_fill_lglyph_metrics): Extern it.
6618
6619 * font.c (QCf): New variable.
6620 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6621 (font_prepare_composition): Delete this function.
6622 (font_range): Type and arguments changed.
6623 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6624 (font_fill_lglyph_metrics): New function.
b8ff72fa 6625 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6626 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6627 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6628 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6629
6630 * fontset.h (font_for_char): Extern it.
6631
6632 * fontset.c (font_for_char): New function.
6633
6634 * ftfont.c: Include composite.h.
6635 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6636 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6637
6638 * indent.c: Include composite.h and dispextern.h.
6639 (check_composition): Delete this function.
6640 (scan_for_column): Handle composition by
6641 composition_compute_stop_pos, composition_reseat_it, and
6642 composition_update_it.
6643 (compute_motion): Likewise.
6644 (Fvertical_motion): Fix checking of composition.
6645
6646 * keyboard.c (adjust_point_for_property): Check composition by
6647 composition_adjust_point.
6648
b8ff72fa 6649 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6650 struct glyph_string.
6651
b8ff72fa
SM
6652 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6653 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6654 struct glyph.
6655 (produce_composite_glyph): Likewise.
6656
b8ff72fa
SM
6657 * w32term.c (x_draw_composite_glyph_string_foreground):
6658 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6659 (x_draw_glyph_string): Likewise.
6660
6661 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6662 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6663
6664 * xdisp.c: Include font.h.
6665 (it_props): Delete the entry for Qauto_composed.
6666 (init_iterator): Initialize it->cmp_it.id to -1.
6667 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6668 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6669 (handle_auto_composed_prop): Delete it.
6670 (handle_composition_prop): Handle only static composition.
6671 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6672 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6673 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6674 (pop_it): Likewise.
6675 (get_next_element): Delete next_element_from_composition.
6676 (CHAR_COMPOSED_P): New macro.
6677 (get_next_display_element): For automatic composition, get a face
6678 from the font in the glyph-string.
6679 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6680 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6681 (next_element_from_string): Check if the character at the current
6682 position is composed by CHAR_COMPOSED_P.
6683 (next_element_from_buffer): Likewise.
d66c0241
JB
6684 (next_element_from_composition): Adjust for the change of struct it.
6685 Update it->cmp_it.
b8ff72fa
SM
6686 (dump_glyph): Adjust for the change of struct glyph.
6687 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6688 it and struct glyph. Don't handle automatic composition here.
6689 (fill_gstring_glyph_string): New function.
6690 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6691 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6692 (BUILD_GSTRING_GLYPH_STRING): New macro.
6693 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6694 automatic composition.
b8ff72fa 6695 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6696 struct glyph.
b8ff72fa 6697 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6698
b8ff72fa 6699 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6700 the change of struct glyph_string.
6701 (x_draw_glyph_string): Likewise.
6702
67032008-08-29 Glenn Morris <rgm@gnu.org>
6704
6705 * buffer.c (word-wrap): Doc fix.
6706 * xdisp.c (truncate-partial-width-windows): Doc fix.
6707 Increase default to 50.
6708
67092008-08-29 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * xdisp.c (update_tool_bar_unwind): New function.
6712 (update_tool_bar): Temporarily set selected frame before building
6713 tool-bar items.
6714
67152008-08-28 Michael Albinus <michael.albinus@gmx.de>
6716
6717 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6718 snprintf, respectively.
6719 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6720
67212008-08-28 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6724 LDFLAGS to GNUstep CC invocation.
6725
67262008-08-27 Chong Yidong <cyd@stupidchicken.com>
6727
6728 * indent.c (Fvertical_motion): Revert last change. Handle the
6729 general case where we are moving forward, and PT spans multiple
6730 screen lines.
6731
6732 * eval.c (find_handler_clause): Temporarily increase
6733 max-lisp-eval-depth while printing the backtrace buffer, to
6734 guarantee that help-mode code can run.
6735
67362008-08-27 Eli Zaretskii <eliz@gnu.org>
6737
6738 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6739 colors under -rv.
6740 (IT_set_frame_parameters): Don't swap foreground and background
6741 colors if `(reverse . t)' is present in the frame properties.
6742 (internal_terminal_init): Call init_frame_faces only for the
6743 initial frame.
6744
67452008-08-27 Andreas Schwab <schwab@suse.de>
6746
6747 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6748
67492008-08-27 Andreas Schwab <schwab@suse.de>
6750
6751 * search.c (search_buffer): Set char_base to zero only at the end.
6752
67532008-08-27 Kenichi Handa <handa@m17n.org>
6754
b8ff72fa 6755 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6756
67572008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6758
6759 * xterm.c (x_term_init): Temporarily hide the partially
6760 initialized terminal while calling vendor-specific-keysyms.
6761
67622008-08-26 Eli Zaretskii <eliz@gnu.org>
6763
6764 * msdos.c (internal_terminal_init): Most initializations done only
6765 once, especially initial_screen_colors[] and termscript open.
6766
67672008-08-26 Chong Yidong <cyd@stupidchicken.com>
6768
6769 * eval.c (Fcondition_case): Doc fix.
6770
6771 * widgetprv.h (EmacsFramePart): Change font member to the new font
6772 struct.
6773
6774 * widget.c: Include character.h and font.h for XSETFONT.
6775 (setup_frame_gcs): Compute X font id from font struct, just once.
6776
67772008-08-26 Eli Zaretskii <eliz@gnu.org>
6778
6779 * term.c (get_named_tty): Fix last change.
6780
67812008-08-26 Chong Yidong <cyd@stupidchicken.com>
6782
6783 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6784 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6785
67862008-08-25 Eli Zaretskii <eliz@gnu.org>
6787
6788 * frame.c (do_switch_frame): Mark previously displayed frame as
6789 obscured for FRAME_MSDOS_P frames as well.
6790
67912008-08-24 Eli Zaretskii <eliz@gnu.org>
6792
6793 * frame.c (make_terminal_frame): Initialize f->terminal,
6794 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6795 Set the top frame to newly created frame.
6796 (Fmake_terminal_frame): Reuse the_only_display_info.
6797
6798 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6799 estimating available memory.
6800
b97439ce 68012008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6802
6803 * nsterm.m (ns_draw_window_cursor): Don't call
6804 NSDisableScreenUpdates and NSEnableScreenUpdates on
6805 non-NS_IMPL_COCOA systems.
6806
68072008-08-23 Andreas Schwab <schwab@suse.de>
6808
6809 * process.c (procfs_system_process_attributes): Fix use of
6810 uninitialized variables.
6811
68122008-08-23 Eli Zaretskii <eliz@gnu.org>
6813
6814 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6815
6816 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6817 calling tty-set-up-initial-frame-faces.
6818
b8ff72fa
SM
6819 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6820 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6821
6822 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6823 addition to output_termcap.
6824
6825 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6826
6827 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6828 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6829 highlight.
6830
6831 * process.c [!subprocesses]: Define QCname.
6832 (syms_of_process): Intern and staticpro it.
6833
6834 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6835 Adjust for changes in encoding/decoding routines.
6836 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6837 encode_coding and decode_coding.
6838
b8ff72fa 6839 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6840
6841 * dosfns.c: Include frame.h before termhooks.h.
6842 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6843 variable termscript.
6844
6845 * s/msdos.h (USER_FULL_NAME): Define.
6846 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6847
6848 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6849 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6850 pw->pw_gecos.
6851
6852 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6853 SELECTED_FRAME as additional (1st) argument.
6854 (tty_read_avail_input): Handle output_msdos_raw in
6855 addition to output_termcap.
6856
6857 * msdos.c: Include frame.h before termhooks.h.
6858 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6859 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6860 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6861 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6862 (IT_set_terminal_modes, IT_reset_terminal_modes)
6863 (IT_set_frame_parameters): Use tty->termscript instead of a global
6864 variable termscript.
6865 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6866 global variable terminal_coding. Don't refer to
6867 Vnonascii_translation_table.
6868 (internal_terminal_init): Set Vwindow_system in current_kboard.
6869 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6870 Announce date and time of session start, if termscript is open.
6871 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6872 term.c:init_tty). Open termscript only of not already open.
6873 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6874 here instead of dos_ttraw. Don't initialize display if this is an
6875 initial tty. Don't set FRAME_FONT.
6876 (Vwindow_system_version): Bump to 23.
6877 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6878 is available, set up mouse_position_hook.
6879 (dos_ttraw, IT_set_terminal_modes): If called with initial
6880 terminal, do nothing.
6881 (IT_set_frame_parameters): Handle the Qtty_type frame
6882 parameter by calling internal_terminal_init.
6883 (dos_set_window_size, show_mouse_face)
6884 (clear_mouse_face, IT_note_mode_line_highlight)
6885 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6886 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6887 (initialize_msdos_display): New function.
6888 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6889 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6890 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6891 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6892 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6893 (request_sigio, unrequest_sigio): Don't define, now defined on
6894 sysdep.c.
6895 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6896
6897 * term.c [MSDOS]: Include msdos.h.
6898 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6899 conditional to DOS_NT. Allow only one call to this function in a
6900 session. Don't allocate a new struct tty_display_info; instead,
6901 reuse the_only_display_info. Call get_tty_size to get screen
6902 dimensions. Call init_baud_rate to set bad_rate.
6903 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6904 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6905 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6906 (get_tty_terminal, get_named_tty, Ftty_type)
6907 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6908 output_termcap.
b8ff72fa
SM
6909 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6910 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6911 only when subprocesses are supported.
aac0c6e3
MR
6912
6913 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6914 f->output_data.x.
6915 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6916 terminal devices.
6917
5582fbc7 6918 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6919 x_output.
6920 (FRAME_FONT): Use output_data.tty.
6921 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6922 (struct x_display_info): Rename from display_info. Update all users in
6923 msdos.c.
aac0c6e3 6924 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6925 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6926 (dos_ttraw): Update prototype.
6927
6928 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6929 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6930
69312008-08-23 Jason Rumney <jasonr@gnu.org>
6932
6933 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6934 (fn_TIFFSetDirectory): New library function used.
6935 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6936 (tiff_load): Use :index to select among multiple images. Set count
6937 property when multiple images exist.
6938 (gif_format): Use :index, not :image.
6939
69402008-08-23 Chong Yidong <cyd@stupidchicken.com>
6941
6942 * xdisp.c (try_scrolling): Check INT_MAX instead of
6943 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6944 to obtain INT_MAX.
6945
69462008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6947
6948 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6949
69502008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6951
6952 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6953 GNUstep library location.
6954
69552008-08-21 Chong Yidong <cyd@stupidchicken.com>
6956
6957 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6958 before using it.
6959
6960 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6961
69622008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6963
6964 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6965 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6966 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6967 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6968 (EmacsApp-cursor_blink_handler): Remove declaration.
6969 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6970 match 01 Feb 2008 changes in xterm.c.
6971 (ns_read_socket): Add cast to avoid warning.
6972 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6973 GNUstep.
6974
69752008-08-20 Chong Yidong <cyd@stupidchicken.com>
6976
6977 * xselect.c (x_get_foreign_selection): Return nil if desired
6978 selection could not be obtained, instead of signalling an error.
6979
69802008-08-20 David Reitter <david.reitter@gmail.com>
6981
6982 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6983 * nsterm.m: Remove ns-specific code for cursor blinking.
6984 (ns_draw_window_cursor): Clear cursor properly rather than
6985 redrawing the area. Respect width of bar cursors.
6986 These changes enable the use of generic blink-cursor-mode and
6987 generic cursor types in NS and support smooth cursor movements (do
6988 not blink off after command).
6989 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6990 Nextstep, too.
6991
69922008-08-19 Kenichi Handa <handa@m17n.org>
6993
6994 * font.c (Vfont_log_deferred): New variable.
6995 (font_add_log): Check Vfont_log_deferred.
6996 (font_deferred_log): New function.
6997
6998 * font.h (font_deferred_log): Extern it.
6999
7000 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7001 for sorting.
7002 (face_for_char): Use deferred log.
7003
70042008-08-18 Kenichi Handa <handa@m17n.org>
7005
7006 * fontset.c (face_for_char): Add font log.
7007
7008 * font.c (font_add_log): Add the font properties :script, :lang,
7009 and :otf in the log.
7010
70112008-08-17 Chong Yidong <cyd@stupidchicken.com>
7012
7013 * xdisp.c: Remove dead code.
7014 (handle_invisible_prop, next_overlay_string): Defer call to
7015 setup_for_ellipsis.
7016 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7017
70182008-08-15 Chong Yidong <cyd@stupidchicken.com>
7019
7020 * xfaces.c (lookup_derived_face): Properly handle possible zero
7021 return value of get_lface_attributes.
7022 (merge_faces): Don't tell lookup_derived_face to signal an error
7023 if face is not found.
7024
7025 * dired.c (Fdirectory_files): Doc fix.
7026
7027 * process.c (make_process): Initialize kill_without_query struct
7028 member.
7029
70302008-08-15 Eli Zaretskii <eliz@gnu.org>
7031
7032 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7033 Alternative calculation of totphys for Visual Studio 6.
7034
7035 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7036
7037 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7038 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7039 All users changed.
7040 (stat): Only root directory passed to GetDriveType. Allow RAM
7041 disk as well as local fixed disk when w32-get-true-file-attributes
7042 is set to `local'.
7043 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7044 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7045 (w32_cached_id, w32_add_to_cache): New functions.
7046 (get_name_and_id): Look account names in the cache before calling
7047 lookup_account_sid.
7048 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7049 New initialization flags.
7050 (globals_of_w32): Initialize them to zero.
7051 (w32_system_process_attributes): Use w32_cached_id and
7052 w32_add_to_cache.
7053
70542008-08-14 Lawrence Mitchell <wence@gmx.li>
7055
7056 * lread.c (Fread_char, Fread_char_exclusive): If no character
7057 event is read before timeout is reached, return nil, rather than
7058 converting to a number.
7059
70602008-08-14 Chong Yidong <cyd@stupidchicken.com>
7061
7062 * fns.c (use_dialog_box): Doc fix.
7063
7064 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7065 on OS X.
7066
70672008-08-13 Chong Yidong <cyd@stupidchicken.com>
7068
7069 * frame.c (Qns_parse_geometry): New var.
7070 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7071
70722008-08-11 Chong Yidong <cyd@stupidchicken.com>
7073
7074 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7075 space character in calculating tabs.
7076
70772008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7078
7079 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7080
70812008-08-10 Glenn Morris <rgm@gnu.org>
7082
7083 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7084 silence gcc "limited range of data type" warnings in some
7085 make_fixnum_or_float calls.
7086
70872008-08-09 Eli Zaretskii <eliz@gnu.org>
7088
7089 * w32.c (w32_system_process_attributes): If the process does not
7090 exist, return nil.
7091
7092 * w32.c: Include thelp32.h, psapi.h and coding.h.
7093 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7094 declarations.
7095 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7096 (Process32Next_Proc): New typedefs.
7097 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7098 (g_b_init_process32_next, g_b_init_open_thread_token)
7099 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7100 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7101 (g_b_init_get_process_working_set_size)
7102 (g_b_init_global_memory_status_ex): New static variables.
7103 (globals_of_w32): Initialize them.
7104 (create_toolhelp32_snapshot, process32_first, process32_next)
7105 (open_thread_token, impersonate_self, revert_to_self)
7106 (get_process_memory_info, get_process_working_set_size)
7107 (global_memory_status, global_memory_status_ex): New wrapper
7108 functions.
7109 (w32_list_system_processes, w32_system_process_attributes)
7110 (enable_privilege, restore_privilege, ltime, process_times):
7111 New functions.
7112 (convert_time_raw): New function.
7113 (convert_time): Remove conversion of FILETIME into time in 100
7114 nsec units, call convert_time_raw instead.
7115
7116 * process.h (w32_list_system_processes, w32_system_process_attributes):
7117 Add prototypes.
7118 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7119 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7120 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7121 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7122
7123 * process.c (Fsystem_process_attributes): Doc fix.
7124
71252008-08-08 Chong Yidong <cyd@stupidchicken.com>
7126
7127 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7128 a continued multi-char glyph; if so, advance to the actual glyph.
7129
71302008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7131
7132 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7133
7134 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7135 (.m.o): Use it.
7136 * config.in: Regenerate.
7137
71382008-08-07 Chong Yidong <cyd@stupidchicken.com>
7139
7140 * xdisp.c (redisplay_window): Revert last change.
7141 (try_window): Check bottom scroll margin too.
7142
71432008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7144
7145 * config.in: Regenerate.
7146
7147 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7148 -list-load-path-shadows'.
7149 (nsgui.h): Reduce number of things depending on it.
7150
71512008-08-06 Chong Yidong <cyd@stupidchicken.com>
7152
7153 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7154 instead of window-end which does the wrong thing at eob.
7155 (try_cursor_movement): Minor optimization.
7156 (redisplay_window): If scroll margin is defined, don't assume
7157 window doesn't need scrolling.
7158
71592008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7160
7161 * config.in: Regenerate.
7162
7163 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7164 (mostlyclean): Don't delete *.d under NS.
7165
7166 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7167
71682008-08-06 Kenichi Handa <handa@m17n.org>
7169
7170 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7171
71722008-08-06 Andreas Schwab <schwab@suse.de>
7173
7174 * config.in: Regenerate.
7175
71762008-08-05 Chong Yidong <cyd@stupidchicken.com>
7177
7178 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7179 forcing a window start.
7180
7181 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7182 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7183
71842008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7185
7186 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7187 argument.
7188
71892008-08-05 Juanma Barranquero <lekktu@gmail.com>
7190
7191 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7192 <scroll-down-aggressively, before-change-functions>:
7193 <after-change-functions>: Reflow docstrings.
7194
71952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7196 Ken Raeburn <raeburn@gnu.org>
7197
7198 Dock menu customization, based on a patch by Ken Raeburn, plus some
7199 other fixes.
7200 * nsmenu.m (dockMenu): New variable.
7201 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7202
7203 * nsterm.h (dockMenu): Declare.
7204
7205 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7206 (ns_term_init): Initialize dockMenu.
7207 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7208 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7209 left.
7210
7211 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7212
72132008-08-04 Chong Yidong <cyd@stupidchicken.com>
7214
7215 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7216
7217 * config.in: Regenerate.
7218
72192008-08-04 Seiji Zenitani <zenitani@mac.com>
7220
7221 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7222
72232008-08-04 Chong Yidong <cyd@stupidchicken.com>
7224
7225 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7226
72272008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7228
7229 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7230
7231 * keyboard.h: Comment an #endif.
7232
7233 * lisp.h (have_menus_p): Adjust comment.
7234
7235 * menu.c (find_and_return_menu_selection): Fix comparison with
7236 client_data.
7237
7238 * nsmenu.m (popup_activated_flag): New variable.
7239 (popup_activated): New function.
7240 (menu-or-popup-active-p): New exported lisp definition.
7241 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7242 when popup done.
7243 (ns_popup_dialog): Set popup_activated_flag.
7244
7245 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7246 version for GNUstep (handled by conditional typedef in nsterm.m).
7247 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7248 in rgb.txt).
7249
7250 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7251
7252 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7253
7254 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7255
7256 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7257 shortcircuit if popup_activated like GTK and X toolkit.
7258
7259 * m/inter386.h: Change DARWIN to DARWIN_OS.
7260
7261 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7262 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7263 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7264 comment on NO_SOCK_SIGIO.
7265
72662008-08-03 Chong Yidong <cyd@stupidchicken.com>
7267
7268 * nsterm.m (windowDidResize): Remove stopModal call.
7269
72702008-08-03 Andreas Schwab <schwab@suse.de>
7271
7272 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7273 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7274
72752008-08-02 Chong Yidong <cyd@stupidchicken.com>
7276
7277 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7278 Don't use uninitialized pointer variable when using getrlimit.
7279
72802008-08-02 Jason Rumney <jasonr@gnu.org>
7281
7282 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7283
72842008-08-02 Eli Zaretskii <eliz@gnu.org>
7285
7286 * alloc.c (NSTATICS): Bump to 0x640.
7287
7288 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7289
7290 * lisp.h: Add prototype for directory_files_internal.
7291
7292 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7293 New functions.
7294 (syms_of_process): Defsubr them. Add initializations for various
7295 Q* symbols used in procfs_system_process_attributes.
7296 (procfs_list_system_processes, procfs_system_process_attributes)
7297 [HAVE_PROCFS]: New functions.
7298 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7299 (procfs_get_total_memory): New functions.
7300
73012008-08-01 Juanma Barranquero <lekktu@gmail.com>
7302
7303 * xfaces.c (Fx_load_color_file): Fix previous change;
7304 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7305
73062008-08-01 Michael Albinus <michael.albinus@gmx.de>
7307
7308 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7309
73102008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7311
7312 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7313
73142008-08-01 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7317
7318 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7319 define NSApplicationDelegateReplySuccess.
7320 (EmacsView -converstationIdentifier): Use long instead of
7321 NSInteger for GNUstep, since it doesn't have NSInteger.
7322
7323 * xmenu.c: Revert last change.
7324
7325 * keyboard.h: Fix last change.
7326
73272008-08-01 Juanma Barranquero <lekktu@gmail.com>
7328
7329 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7330 on Windows.
7331
73322008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7333
7334 Warning clearing and clean-up in NS port.
7335 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7336 Add prototypes.
7337 * nsgui.h (FACE_DEFAULT): Remove, unused.
7338 (XGCValues): Change colors to unsigned long.
7339 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7340 nsterm.m.
7341 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7342 (ns_list_fonts): Remove, unused.
7343 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7344 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7345 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7346 (nsfont_draw): Compare face colors to 0, not nil.
7347 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7348 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7349 (-addSubmenuWithTitle:): Use NSMenuItem class.
7350 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7351 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7352 (ns_clip_to_row): Make gc arg a BOOL.
7353 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7354 ns_clip_to_row() call.
7355 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7356 used). Cast FRAME_FONT assignments.
7357 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7358 (ns_string_to_lispmod): Change arg to const char.
7359 (ns_term_init): Use NSMenuItem class.
7360 (EmacsApp -openFile:): Move to different section of file.
7361 (EmacsApp -application:openFiles:): Don't return a value, call
7362 -replyToOpenOrPrint:.
7363 (EmacsView -keyDown:): Fix up cast.
7364 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7365 (EmacsView -menuDown:): Cast tag in call to
7366 find_and_call_menu_selection().
7367 (ns_list_fonts): Remove, unused.
7368 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7369 (ns_fontname_to_xlfd): Make static.
7370 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7371 Remove prototypes (now in keyboard.h).
7372 (next_menubar_widget_id): Remove, unused.
7373 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7374 Remove prototypes (now in keyboard.h).
7375 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7376
73772008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7378
7379 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7380 (floatfns.o): Depend on syssignal.h.
7381 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7382
7383 * systty.h: Fix previous change that removed BSD_TERMIOS.
7384 Add comments to #ifdefs.
7385
73862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7387
7388 * w32fns.c (w32-load-color-file): Remove.
7389 (x-open-connection): Use renamed Fx_load_color_file.
7390 * xfaces.c (x-load-color-file): Add.
7391 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7392 Emacs.clr.
7393 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7394
73952008-07-31 Michael Albinus <michael.albinus@gmx.de>
7396
7397 * dbusbind.c (Fdbus_call_method_asynchronously)
7398 (Fdbus_method_error_internal): New defuns.
7399 (xd_read_message): Handle also reply messages.
7400 (Vdbus_registered_functions_table): Extend docstring.
7401
74022008-07-31 Juanma Barranquero <lekktu@gmail.com>
7403
7404 * keyboard.c (gobble_input): Fix previous change.
7405
74062008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7407
7408 * bitmaps/README:
7409 * xfns.c:
7410 * termcap.c:
7411 * term.c:
7412 * syswait.h:
7413 * systty.h:
7414 * systime.h:
7415 * syssignal.h:
7416 * sysdep.c:
7417 * process.h:
7418 * process.c:
7419 * print.c:
7420 * ndir.h:
7421 * lread.c:
7422 * keyboard.c:
7423 * getpagesize.h:
7424 * floatfns.c:
7425 * fileio.c:
7426 * emacs.c:
7427 * doc.c:
7428 * dispnew.c:
7429 * dired.c:
7430 * data.c:
7431 * callproc.c:
7432 * buffer.c:
7433 * README:
7434 * Makefile.in:
7435 * s/template.h:
7436 * s/msdos.h:
7437 * m/vax.h: Remove VMS support.
7438 * s/vms.h:
7439 * vlimit.h:
7440 * uaf.h:
7441 * temacs.opt:
7442 * param.h:
7443 * ioctl.h: Remove file.
7444
74452008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7446
7447 * s/ms-w32.h (MULTI_KBOARD): Remove.
7448 * xterm.c:
7449 * xselect.c:
7450 * xfns.c:
7451 * window.c:
7452 * w32term.c:
7453 * w32fns.c:
7454 * terminal.c:
7455 * termhooks.h:
7456 * term.c:
7457 * sysdep.c:
7458 * keyboard.h:
7459 * keyboard.c:
7460 * frame.h:
7461 * frame.c:
7462 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7463 * config.in: Regenerate.
7464
74652008-07-30 Jason Rumney <jasonr@gnu.org>
7466
7467 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7468
7469 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7470 (w32font_open_internal): Get unicode version of textmetrics.
7471 Don't enable or disable glyph indices here.
7472 (w32font_open): Disable use of glyph indices.
7473
7474 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7475
74762008-07-30 Chong Yidong <cyd@stupidchicken.com>
7477
7478 * minibuf.c (Vread_buffer_function): Doc fix.
7479
74802008-07-30 John Paul Wallington <jpw@pobox.com>
7481
7482 * minibuf.c (read_buffer_completion_ignore_case): New var.
7483 (Fread_buffer): Use it.
7484
74852008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7486
7487 * systty.h (sensemode): Remove empty #if. Remove reference to
7488 BSD_TERMIOS, unused.
7489
7490 * sysdep.c: Remove reference to DGUX.
7491 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7492
7493 * config.in: Regenerate.
7494
74952008-07-30 Jason Rumney <jasonr@gnu.org>
7496
7497 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7498
74992008-07-29 Jason Rumney <jasonr@gnu.org>
7500
7501 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7502 is populated.
7503 (uniscribe_encode_char): Always use uniscribe.
7504 Avoid using context if cache is populated.
7505
75062008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7507
7508 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7509 open menu.
7510
7511 * gtkutil.c (menu_nav_ended): Remove.
7512 (create_menus): Remove signal connect for menu_nav_ended.
7513
75142008-07-28 Chong Yidong <cyd@stupidchicken.com>
7515
7516 * xdisp.c (redisplay_window): Check return value of
7517 compute_window_start_on_continuation_line before forcing a window
7518 start.
7519
75202008-07-28 Jason Rumney <jasonr@gnu.org>
7521
7522 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7523
7524 * w32term.c (w32_enable_unicode_output, cleartype_active):
7525 Remove obsolete display options.
7526 (x_draw_glyph_string_background): Don't use old cleartype_active
7527 workaround.
7528 (w32_initialize): Remove cleartype_active initialization.
7529 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7530
75312008-07-28 Andreas Schwab <schwab@suse.de>
7532
7533 * lisp.h (init_weak_hash_tables, syms_of_font)
7534 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7535 (remove_hash_entry): Don't declare.
7536 * eval.c (maybe_call_debugger): Make static and move before use.
7537 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7538 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7539 * xterm.h (x_set_frame_alpha): Declare.
7540
75412008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7542
7543 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7544 (create_menus): Connect selection-done to menu_nav_ended.
7545
75462008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7547
7548 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7549 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7550 parameter with read of 'alpha' one.
7551 (Qns_frame_parameter): Remove.
5582fbc7 7552 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7553 (next-selection-coding-system, Vselection_coding_system)
7554 (Vnext_selection_coding_system): Drop.
7555
75562008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7557
7558 * nsfns.m (do-applescript, do_applescript): Rename to
7559 ns-do-applescript, ns_do_applescript, and move within file.
7560
75612008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7562
7563 Remove support for Mac Carbon.
7564 * mactoolbox.c:
7565 * macterm.h:
7566 * macterm.c:
7567 * macselect.c:
7568 * macmenu.c:
7569 * macgui.h:
7570 * macfns.c:
7571 * mac.c: Remove file.
7572 * s/darwin.h:
7573 * m/intel386.h:
7574 * xfaces.c:
7575 * xdisp.c:
7576 * window.c:
7577 * tparam.c:
7578 * termhooks.h:
7579 * termcap.c:
7580 * term.c:
7581 * syssignal.h:
7582 * sysselect.h:
7583 * sysdep.c:
7584 * process.c:
7585 * lread.c:
7586 * lisp.h:
7587 * keyboard.c:
7588 * image.c:
7589 * fringe.c:
7590 * frame.h:
7591 * frame.c:
7592 * fontset.c:
7593 * font.h:
7594 * font.c:
7595 * fns.c:
7596 * fileio.c:
7597 * emacs.c:
7598 * dispnew.c:
7599 * dispextern.h:
7600 * config.in:
7601 * atimer.c:
2ae37cf0 7602 * Makefile.in: Remove code for Carbon.
aac0c6e3 7603
f0131492 76042008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7605
7606 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7607
76082008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7609
7610 * macterm.h (kCGBitmapByteOrder32Host): New define for
7611 non-universal SDKs.
7612
7613 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7614 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7615
7616 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7617 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7618
76192008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7620
7621 * w32inevt.c: Include dispextern.h.
7622
76232008-07-26 Andreas Schwab <schwab@suse.de>
7624
7625 * print.c (print_object): Fix off-by-one in last change.
7626
76272008-07-25 Juanma Barranquero <lekktu@gmail.com>
7628
7629 * term.c (syms_of_term): Don't initialize default_orig_pair,
7630 default_set_foreground and default_set_background on Windows.
7631
76322008-07-25 Jason Rumney <jasonr@gnu.org>
7633
7634 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7635 ScriptItemize. Clean up return value checking. Remove unused
7636 variables.
7637 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7638 shaping engine.
7639
7640 * w32font.c (w32font_has_char): Handle the case where we can't
7641 determine the script for a character.
7642
76432008-07-25 Chong Yidong <cyd@stupidchicken.com>
7644
7645 * term.c (syms_of_term): Initialize default_orig_pair,
7646 default_set_foreground, and default_set_background.
7647
7648 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7649 clash (bug#86).
7650 (getloadavg): Callers changed.
7651
7652 * image.c (svg_load_image): Fix last change.
7653 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7654 image size is valid. Use g_object_unref instead of deprecated
7655 rsvg_handle_free to free rsvg handle.
7656 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7657
76582008-07-25 Jason Rumney <jasonr@gnu.org>
7659
7660 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7661 surrogates before looking up glyph index.
7662 (w32font_text_extents): Encode as surrogates if falling back to
7663 functions that need UTF-16 wide chars.
7664
7665 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7666 BMP as surrogates before looking up glyph index.
7667
76682008-07-25 Chong Yidong <cyd@stupidchicken.com>
7669
7670 * image.c (svg_load_image): Check for failure in return value of
7671 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7672
76732008-07-25 Jason Rumney <jasonr@gnu.org>
7674
7675 * w32font.c (Fx_select_font): Reverse sense of second arg.
7676
76772008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7678
7679 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7680 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7681
7682 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7683 (PURESIZE): Use it.
7684
76852008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7686
7687 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7688 * m/alpha.h (TEXT_END):
7689 * m/ibmrs6000.h (TEXT_END):
7690 * m/macppc.h (TEXT_END):
7691 * s/darwin.h (TEXT_END):
7692 * s/msdos.h (TEXT_END): Remove, unused.
7693 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7694 * s/cygwin.h: Remove comment.
7695
7696 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7697 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7698 * m/intel386.h (DOT_GLOBAL_START):
7699 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7700 (USG): Remove, file not used on USG platforms.
7701
7702 * Makefile.in (HAVE_X11): Remove empty #else.
7703
77042008-07-24 Andreas Schwab <schwab@suse.de>
7705
7706 * fileio.c (Finsert_file_contents): Properly adjust undo list
7707 after format conversion.
7708
77092008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7710
7711 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7712 (menu_nav_ended): Remove.
7713 (create_menus): Remove signal connect for menu_nav_ended.
7714 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7715 create_menus.
7716 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7717
77182008-07-23 Jason Rumney <jasonr@gnu.org>
7719
7720 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7721 with opened font.
7722 (w32font_open): Set font type to gdi.
7723
7724 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7725
77262008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7727
7728 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7729 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7730 defines it.
7731 * unexec.c (ADDR_CORRECT): Define unconditionally.
7732
7733 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7734
7735 * unexec.c: Remove code depending on !COFF and USG, the file is
7736 not used for such systems.
7737
7738 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7739 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7740 (LD_SWITCH_SYSTEM_1): Remove, update users.
7741
7742 * s/darwin.h (DATA_END):
7743 * m/intel386.h (DATA_END):
7744 * m/ibmrs6000.h (DATA_END):
7745 * m/alpha.h (DATA_END): Remove, unused.
7746
7747 * config.in: Regenerate.
7748 * s/ms-w32.h (subprocesses): Define unconditionally.
7749 * s/template.h (subprocesses): Update comment.
7750 * s/vms.h (subprocesses):
7751 * s/usg5-4.h (subprocesses):
7752 * s/hpux10-20.h (subprocesses):
7753 * s/gnu-linux.h (subprocesses):
7754 * s/cygwin.h (subprocesses):
7755 * s/bsd-common.h (subprocesses):
7756 * s/aix4-2.h (subprocesses):
7757 * s/darwin.h (subprocesses): Do not define, defined by default now.
7758
7759 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7760 Remove all references.
7761 (temacs): Add GNUstep specific ld flags.
7762
7763 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7764 similarly to what X does.
7765
77662008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7767
7768 * nsfns.m (x-list-fonts): Remove.
7769 (syms_of_nsfns): Drop the x-list-fonts declaration.
7770 * nsterm.m: Get rid of remaining "//" comments.
7771
77722008-07-22 Chong Yidong <cyd@stupidchicken.com>
7773
7774 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7775
7776 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7777 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7778 (Fns_own_selection_internal, Fx_disown_selection_internal)
7779 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7780
7781 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7782 ... */' style of docstrings. Doc fixes.
7783
77842008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7785
7786 * terminfo.c (UP, BC, PC): Undo previous change.
7787
7788 * nsfns.m: Rename ns prefixed functions/variables to the
7789 corresponding x versions. Update references.
7790
77912008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7792
7793 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7794
77952008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7798 Remove forwarding functions.
7799 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7800 non-static.
7801 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7802 non-static.
7803 (ns_frame_parm_handlers): Use the new names.
7804 (syms_of_nsfns): Move to the end of file.
7805
7806 * nsterm.m (syms_of_nsterm): Move to the end of file.
7807
7808 * dispnew.c (init_display): Remove code for X10.
7809
78102008-07-22 Jason Rumney <jasonr@gnu.org>
7811
7812 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7813 bare drive.
7814
78152008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7816
7817 * nsterm.m (syms_of_nsterm): Remove debugging println.
7818
78192008-07-22 David Reitter <david.reitter@gmail.com>
7820
7821 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7822 Carbon implementation of the same functionality: execute arbitrary
7823 AppleScript code.
7824
78252008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7826
7827 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7828 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7829 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7830 (Fx_display_mm_height, Fx_display_mm_width)
7831 (Fx_display_backing_store, Fx_display_visual_class)
7832 (Fx_display_save_under, Fx_open_connection)
7833 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7834 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7835 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7836 (Fx_display_pixel_width, Fx_display_pixel_height)
7837 (Fx_display_usable_bounds, Fx_display_planes)
7838 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7839 ... */' style of docstrings.
7840
78412008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7842
7843 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7844 on this platform.
7845 (mips):
7846 * m/iris4d.h (mips): Do not define.
7847 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7848
7849 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7850
7851 * image.c:
7852 * nsfns.m:
7853 * nsselect.m:
7854 * nsterm.h:
7855 * nsterm.m: Rename ns prefixed functions/variables to the
7856 corresponding x versions. Update references.
7857
7858 * m/ibms390x.h (NO_REMAP): Do not undefine.
7859
7860 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7861
78622008-07-21 Chong Yidong <cyd@stupidchicken.com>
7863
7864 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7865 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7866 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7867 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7868 (Fns_display_mm_height, Fns_display_mm_width)
7869 (Fns_display_backing_store, Fns_display_visual_class)
7870 (Fns_display_save_under, Fns_open_connection)
7871 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7872 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7873 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7874 (Fns_display_pixel_width, Fns_display_pixel_height)
7875 (Fns_display_usable_bounds, Fx_display_planes)
7876 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7877
78782008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7879
7880 * print.c (print_object): Check print_depth before searching for
7881 circularities.
7882
78832008-07-21 Michael Albinus <michael.albinus@gmx.de>
7884
7885 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7886 only sprintf.
7887
78882008-07-21 Kenichi Handa <handa@m17n.org>
7889
7890 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7891
78922008-07-20 Andreas Schwab <schwab@suse.de>
7893
7894 * syntax.c (find_start_pos, find_start_value)
7895 (find_start_value_byte, find_start_begv, find_defun_start)
7896 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7897
78982008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7899
7900 * s/sol2-3.h: Insert contents of s/sol2.h.
7901 (LD_SWITCH_SYSTEM): Remove redundant definition.
7902 * s/sol2.h: Remove, unused.
7903
79042008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7905
7906 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7907
79082008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7909
7910 * Makefile.in (ns_appdir): Fix typo in find command.
7911
79122008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7913
7914 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7915
7916 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7917 added not supported anymore.
7918
7919 * s/usg5-4-2.h (LIBS_SYSTEM):
7920 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7921
7922 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7923 * s/lynxos.h (GETPGRP_NO_ARG):
7924 * s/hpux10-20.h (NO_SIOCTL_H):
7925 * s/gnu.h (GETPGRP_NO_ARG):
7926 * s/gnu-linux.h (NO_SIOCTL_H):
7927 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7928 * s/cygwin.h (GETPGRP_NO_ARG):
7929 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7930 (C_DEBUG_SWITCH): Remove duplicate definition.
7931
7932 * m/ibms390.h: Remove boilerplate comments.
7933
7934 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7935
7936 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7937 (wait_reading_process_output): Remove code for SunOS, platform not
7938 supported anymore. Use SOLARIS2 instead of sun.
7939
79402008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7941
7942 * font.c (font_open_by_name): Under NS, default lface height to zero.
7943 (font_open_for_lface): Under NS, set size based on frame fontsize.
7944 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7945 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7946
79472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7948
7949 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7950 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7951 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7952 YES/NO.
7953 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7954 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7955 * Makefile.in (clean): Clear out build destination dir.
7956
79572008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7958
7959 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7960 xterm, xselect.
7961 * lisp.h: Remove declaration of hash_remove.
7962 * nsgui.h: Remove redefinitions of hash_remove.
7963 * fns.c (hash_remove): Rename to hash_remove_from_table.
7964
79652008-07-19 Seiji Zenitani <zenitani@mac.com>
7966
7967 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7968 strdup() the family UTF8String before modifying it.
7969
79702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7971
7972 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7973 NS_FACE_BACKGROUND with 0 instead of nil.
7974 * nsfont.m (nsfont_draw): Same.
7975
79762008-07-19 Chong Yidong <cyd@stupidchicken.com>
7977
7978 * nsfns.m (ns_set_background_color): Fix crash.
7979
79802008-07-18 Chong Yidong <cyd@stupidchicken.com>
7981
7982 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7983
79842008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7985
7986 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7987
79882008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7989
7990 * gtkutil.c: Include <config.h> instead of "config.h".
7991
7992 * lisp.h (Foverlay_buffer): Add EXFUN.
7993
7994 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7995 child process to complete child_setup. Undo 2005-09-21 change.
7996
7997 * s/darwin.h: Mention setsid after vfork.
7998
79992008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8000
8001 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8002 Depend on macgui.h.
8003
8004 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8005 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8006
8007 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8008 and f19.
8009 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8010
8011 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8012 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8013 Remove enumerators.
8014
8015 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8016 Check if FACE_FROM_ID returns NULL.
8017
80182008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8019
8020 * w32inevt.c (change_frame_size): Remove extern declaration.
8021 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8022 change_frame_size.
8023
80242008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8025
8026 * getloadavg.c: Revert last change (2008-07-15).
8027
80282008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8029
8030 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8031 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8032 from configure.
8033
80342008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8035
8036 * s/sol2.h:
8037 * s/sol2-4.h: Reorganize conditionals.
8038
8039 * ecrt0.c: Remove code depending on m68000, not used anymore.
8040
8041 * fns.c (hash_remove): Make static.
8042 * lisp.h (hash_remove): Don't prototype.
8043
8044 * m/ibmrs6000.h:
8045 * m/ibms390x.h:
8046 * m/macppc.h: Remove boilerplate comments.
8047
8048 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8049 Solaris, which does not need them.
8050
8051 * m/vax.h: Remove comments about unsupported systems.
8052
8053 * s/darwin.h: Reorganize ifdefs.
8054
80552008-07-17 Andreas Schwab <schwab@suse.de>
8056
8057 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8058
80592008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8060
8061 Use SDATA. Follow coding convention of placing operators at
8062 beginning of next line rather than end of previous line, and placing
8063 spaces around infix operators.
8064
8065 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8066 in case it was defined already.
8067 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8068 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8069 ns_default.
8070 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8071 Lisp_Objects.
8072 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8073 (ns_defined_color, ns_color_to_lisp): Declare.
8074 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8075 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8076 it's accepted even with USE_LISP_UNION_TYPE.
8077 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8078 (update_frame_tool_bar): Remove apparently obsolete tests for
8079 non-integerness of f->tool_bar_lines.
8080 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8081 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8082 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8083 (nsfont_open): Don't confuse NULL for Qnil.
8084 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8085 * menu.h (find_and_call_menu_selection):
8086 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8087 (find_and_return_menu_selection): Always return something.
8088 * frame.h: Include dispextern.h for Display_Info.
8089 (display_x_get_resource): Declare.
8090
80912008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8092
8093 * syntax.c: Remove stdio.h include accidentally introduced in
8094 Emacs.app commit.
8095 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8096 NS_IMPL_COCOA.
8097 * keyboard.c (handle_async_input, input_available_signal): Remove
8098 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8099
81002008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8101
8102 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8103 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8104 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8105 Use SDATA.
8106
8107 * keymap.c: Remove all NS-specific code.
8108 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8109 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8110 where_is_preferred_modifier, return a different value depending on how
8111 preferred is the binding.
8112 (where_is_internal): Adjust accordingly.
8113 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8114 Adjust to new preferred_sequence_p.
8115 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8116 * keyboard.c (parse_solitary_modifier): Not static any more.
8117 * keyboard.h (parse_solitary_modifier): Declare.
8118
81192008-07-16 Andreas Schwab <schwab@suse.de>
8120
8121 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8122 of easymenu.
8123
81242008-07-16 Chong Yidong <cyd@stupidchicken.com>
8125
8126 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8127 that we don't move off the line.
8128
81292008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8130
8131 * keyboard.c (Qsuper): Remove.
8132 (parse_menu_item): Don't call where_is_internal specially for NS.
8133
81342008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8135
8136 * s/gnu-linux.h: Remove boilerplate comments.
8137
8138 * m/alpha.h (__ELF__): Consolidate conditions.
8139
8140 * m/m68k.h (linux): Use GNU_LINUX instead.
8141 Remove boilerplate comments.
8142
8143 * m/intel386.h: Undo refactoring from previous change.
8144 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8145 too, remove dead code.
8146 (linux): Use GNU_LINUX instead.
8147
81482008-07-16 Jason Rumney <jasonr@gnu.org>
8149
8150 * w32gui.h: Repeat 26 June changes lost by last change.
8151
81522008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8153
8154 * systty.h: Remove code for Aix on 386, unsupported platform.
8155
8156 * s/ms-w32.h: Remove boilerplate comments.
8157 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8158
8159 * s/gnu-linux.h (TERM): Remove support.
8160 (HAVE_SYSVIPC): Remove, unused.
8161 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8162 for this system.
8163
8164 * process.c: Remove support for IRIS, unused.
8165 Remove support for TERM, not relevant anymore.
8166
8167 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8168 used with the definition.
8169
8170 * s/aix4-2.h (static): Do not undef.
8171
8172 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8173 only used on Aix.
8174 (HAVE_SYSVIPC): Remove, unused.
8175
8176 * m/hp800.h (CANNOT_DUMP): Do not undef.
8177
8178 * m/alpha.h: Fix comment.
8179
8180 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8181 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8182 used by this configuration.
8183 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8184 * unexec.c: Remove code depending on HPUX and
8185 USG_SHARED_LIBRARIES, not used with this file. Remove code
8186 depending on IRIS, unused. Remove if 0-ed code.
8187
8188 * s/template.h: Remove comments about static.
8189
8190 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8191 Remove if 0-ed code.
8192 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8193 were the same as the default.
8194 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8195 Remove boilerplate comments.
8196 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8197 (HAVE_SYSVIPC): Remove, unused.
8198 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8199
8200 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8201 Remove boilerplate comments.
8202 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8203 Remove boilerplate comments.
8204 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8205 Remove boilerplate comments.
8206 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8207
8208 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8209 USG systems which do not use DATA_SEG_BITS.
8210 Refactor code. Remove boilerplate comments.
8211
8212 * m/ibms390.h:
8213 * m/m68k.h:
8214 * s/bsd-common.h:
8215 * s/cygwin.h:
8216 * s/darwin.h:
8217 * s/freebsd.h:
8218 * s/gnu.h:
8219 * s/msdos.h: Remove boilerplate comments.
8220
8221 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8222 do not use this file.
aac0c6e3
MR
8223 (IRIS_4D): Remove, unused.
8224
8225 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8226 do not use this file.
aac0c6e3
MR
8227 (SIGN_EXTEND_CHAR):
8228 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8229 * unexmips.c: Remove file, unused.
8230
8231 * editfns.c (Fuser_full_name): Replace the only use of
8232 USER_FULL_NAME with its value.
8233 * config.in: Regenerate.
8234
82352008-07-16 David Reitter <david.reitter@gmail.com>
8236
8237 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8238 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8239
82402008-07-16 Glenn Morris <rgm@gnu.org>
8241
8242 * emacs.c (system-type): Doc fix.
8243
82442008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8245
8246 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8247 If the cache doesn't work, let's fix it, rather than work around it.
8248
82492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8250
8251 * Makefile.in: Correct additions for nsfont.o in last commit.
8252 * nsfont.m: New file (forgot last commit).
8253
82542008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8255
8256 * callproc.c (set_initial_environment): Initialize
8257 Vprocess_environment under CANNOT_DUMP (fixes crash when
8258 batch-compiling for bootstrap).
8259
82602008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8261 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8262
8263 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8264 fix crash due to different init order.
8265
82662008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8267
8268 Changes and additions for NeXTstep windowing system (Cocoa and
8269 GNUstep) support.
8270
8271 * Makefile.in:
8272 * config.in: Support defines and build commands for NS port.
8273 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8274 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8275 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8276 windowing.
8277 (struct face): Add synth_ital field.
8278 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8279 (init_display): Initialize Vinitial_window_system to "ns" when so
8280 compiled.
8281 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8282 (display_arg): Use under NS.
8283 (main): Under NS, allocate autorelease pool and handle command line
8284 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8285 (standard_args): Add NS-specific args.
8286 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8287 * font.c (DEFAULT_ENCODING): New variable.
8288 (font_find_for_lface): Use it.
8289 (syms_of_font): Load syms_of_nsfont under NS.
8290 * font.h: Declare nsfont_driver when compiled under NS.
8291 * fontset.c: When compiling under NS, include nsterm.h.
8292 (fontset_from_font): Autoconstruct fontset under NS.
8293 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8294 symbol, document and use it.
8295 (do_switch_frame): When for_deletion under Cocoa, add
8296 Fraise_frame(Qnil).
8297 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8298 (x_get_arg): Allow "yes" and "no" as boolean values.
8299 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8300 Qright under Cocoa.
8301 (focus-follows-mouse): Default to 0 under NS.
8302 * frame.h (enum output_method): Add output_ns.
8303 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8304 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8305 (FRAME_WINDOW_P): NS-specific definition.
8306 * fringe.c (max_used_fringe_bitmap): Make public.
8307 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8308 (getloadavg): Use NeXT code under descendant OS's.
8309 * image.c (includes and header section, x_create_bitmap_from_data)
8310 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8311 (image_background_transparent, x_clear_image_1)
8312 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8313 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8314 (x_to_xcolors, x_from_xcolors, x_disable_image)
8315 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8316 other GUIs, including XPM support using code originally written for
8317 Carbon GUI.
8318 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8319 using NS API.
8320 (image_ascent): Use font metrics macros instead of direct struct field
8321 access.
8322 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8323 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8324 Also, handle NS as GTK for menu bar purposes.
8325 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8326 toolkit where they differ.
8327 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8328 use cachelist, still needed under NS.
8329 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8330 (struct widget_value): Define it here for menu.c.
8331 * keymap.c (includes): Include modifier internals.
8332 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8333 NS.
8334 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8335 support for preferring sequences using certain modifiers, specified by
8336 the FIRSTONLY argument.
8337 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8338 under NS GNUstep implementation.
8339 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8340 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8341 * menu.c: Include nsterm.h under NS.
8342 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8343 (free_menubar_widget_tree_value, update_submenu_strings)
8344 (find_and_call_menu_selection): Treat NS as X and NT.
8345 (find_and_return_menu_selection): New function, used for popup menus.
8346 * nsgui.h:
8347 * nsterm.h:
8348 * nsfns.m:
8349 * nsimage.m:
8350 * nsmenu.m:
8351 * nsselect.m:
8352 * nsterm.m: New files.
8353 * process.c (wait_reading_process_output): Under NS, call ns_select()
8354 instead of plain select().
8355 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8356 beginning of buffer.
8357 * sysselect.h (init_process): Rename when compiling under Cocoa to
8358 avoid name conflict.
8359 * termhooks.h (display_info): Add ns_display_info to union.
8360 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8361 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8362 COCOA environment.
8363 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8364 unexec() signature. (Note, this will dump, but the resulting file
8365 crashes; unexosx is used instead; keeping around for reference and
8366 possible aid in getting dump working under GNUstep.)
8367 * w32gui.h (button_type, widget_value): Remove definitions (now in
8368 keyboard.h).
8369 * window.c: Include nsterm.h when compiling under NS.
8370 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8371 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8372 other GUI windowing systems.
8373 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8374 GTK.
8375 (x_consider_frame_title): Under NS, set icon type and frame
8376 modified-state indicator; use ns_set_name_as_filename() when using
8377 formatted title.
8378 (update_window_cursor): Make public when compiling under NS.
8379 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8380 (hourglass_atimer, Vhourglass_delay
8381 * xfaces.c (header section, init_frame_faces, clear_font_table)
8382 (defined_color, unload_color, x_face_list_fonts)
8383 (prepare_face_for_display): Add NS support parallel to other GUIs.
8384 Emulate GCs like other non-X GUIs.
8385 (split_font_name): Don't lowercase font name under NS.
8386 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8387 under NS.
8388 * s/darwin.h: Add support for compilation under NS.
8389
83902008-07-15 Jason Rumney <jasonr@gnu.org>
8391
8392 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8393 (w32_show_hourglass): Rename from show_hourglass.
8394 (w32_hide_hourglass): Rename from hide_hourglass.
8395 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8396 (Vhourglass_delay): Declare extern.
8397 (hourglass_started): Remove.
8398
8399 * xdisp.c (Vhourglass_delay): Remove static.
8400 (hourglass_started, start_hourglass, cancel_hourglass):
8401 Don't include these versions on WINDOWSNT.
8402
84032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8404
8405 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8406 variables (formerly in xfns.c).
8407 (show_hourglass, hide_hourglass): New prototypes (same).
8408 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8409 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8410 in xfns.c).
8411 (syms_of_xdisp): Declare/initialize display-hourglass,
8412 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8413 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8414 formerly in xfns.c.
8415 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8416 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8417 (start_hourglass, cancel_hourglass): Remove.
8418 (show_hourglass, hide_hourglass): Remove prototypes and static
8419 modifiers.
8420 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8421 hourglass_atimer, hourglass_shown_p declaration/initialization.
8422 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8423 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8424 (start_hourglass, cancel_hourglass): Remove.
8425 (show_hourglass, hide_hourglass): Remove prototypes and static
8426 modifiers.
8427 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8428 hourglass_atimer, hourglass_shown_p declaration/initialization.
8429 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8430 (DEFAULT_HOURGLASS_DELAY): Remove.
8431 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8432 hourglass_shown_p declaration/initialization.
8433
84342008-07-14 Jason Rumney <jasonr@gnu.org>
8435
8436 * w32fns.c (w32_get_arg): Remove wrapper function.
8437 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8438 directly.
8439 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8440
84412008-07-14 Kenichi Handa <handa@m17n.org>
8442
8443 * xfont.c (xfont_open): Add workaround for X's bug.
8444
84452008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8446
8447 * fontset.c: Include <stdio.h> unconditionally.
8448
84492008-07-13 Michael Albinus <michael.albinus@gmx.de>
8450
8451 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8452 for filtering.
8453
84542008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8455
8456 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8457
8458 * m/macppc.h:
8459 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8460
8461 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8462 (SPECIAL_EMACS_INT):
8463 * m/ia64.h (SPECIAL_EMACS_INT):
8464 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8465 * s/gnu.h (NLIST_STRUCT):
8466 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8467 * s/gnu-linux.h (LINUX):
8468 * s/msdos.h (HAVE_FACES):
8469 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8470
8471 * systty.h:
8472 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8473 anymore.
8474
84752008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8476
8477 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8478 always defined as int.
8479
8480 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8481 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8482 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8483 * s/freebsd.h (HAVE_WAIT_HEADER):
8484 * s/bsd-common.h (HAVE_UNION_WAIT):
8485 * s/aix4-2.h (HAVE_WAIT_HEADER):
8486 * m/mips.h (HAVE_UNION_WAIT):
8487 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8488 (COFF, static): Do not define, they are undefined later in the file.
8489
8490 * process.c (update_status): Don't use a union.
8491 (status_convert):
8492 (sigchld_handler): Use int instead of WAITTYPE.
8493
84942008-07-12 Chong Yidong <cyd@stupidchicken.com>
8495
8496 * indent.c (Fvertical_motion): Restore hscroll before moving to
8497 goal column.
8498
84992008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8500
8501 * lisp.h: Remove left over code.
8502
85032008-07-11 Andreas Schwab <schwab@suse.de>
8504
8505 * lisp.h: Fix logic in last change.
8506
8507 * menu.h: New file.
8508 * menu.c: Include it.
8509 * xmenu.c: Likewise.
8510 * Makefile.in: Update dependencies.
8511
85122008-07-11 Kenichi Handa <handa@m17n.org>
8513
8514 * fontset.c (fontset_from_font): Cancel the previous change.
8515
85162008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8517
8518 * lisp.h:
8519 * w32heap.c:
8520 * emacs.c:
8521 * alloc.c: Replace all references of NO_UNION_TYPE with
8522 USE_LISP_UNION_TYPE.
8523
8524 * m/xtensa.h (NO_UNION_TYPE):
8525 * m/vax.h (NO_UNION_TYPE):
8526 * m/template.h (NO_UNION_TYPE):
8527 * m/sparc.h (NO_UNION_TYPE):
8528 * m/mips.h (NO_UNION_TYPE):
8529 * m/macppc.h (NO_UNION_TYPE):
8530 * m/m68k.h (NO_UNION_TYPE):
8531 * m/iris4d.h (NO_UNION_TYPE):
8532 * m/intel386.h (NO_UNION_TYPE):
8533 * m/ibms390x.h (NO_UNION_TYPE):
8534 * m/ibms390.h (NO_UNION_TYPE):
8535 * m/ibmrs6000.h (NO_UNION_TYPE):
8536 * m/ia64.h (NO_UNION_TYPE):
8537 * m/hp800.h (NO_UNION_TYPE):
8538 * m/arm.h (NO_UNION_TYPE):
8539 * m/amdx86-64.h (NO_UNION_TYPE):
8540 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8541 defining it the same.
8542
85432008-07-10 Chong Yidong <cyd@stupidchicken.com>
8544
8545 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8546
85472008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8548
8549 * fileio.c:
8550 * sysdep.c
8551 * systty.h:
8552 * m/ibmrs6000.h:
8553 * m/iris4d.h:
8554 * s/aix4-2.h:
8555 * s/freebsd.h:
8556 * s/gnu-linux.h:
8557 * s/hpux10-20.h:
8558 * s/hpux11.h:
8559 * s/netbsd.h:
8560 * s/sol2-3.h:
8561 * s/sol2-4.h:
8562 * s/sol2.h:
8563 * s/usg5-4.h:
8564 * s/vms.h: Remove references to unused variables.
8565
85662008-07-10 Andreas Schwab <schwab@suse.de>
8567
8568 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8569 pattern before matching the generic family.
8570
85712008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8572
8573 * unexec.c:
8574 * s/vms.h:
8575 * s/usg5-4-2.h:
8576 * s/sol2-5.h:
8577 * s/freebsd.h:
8578 * s/darwin.h: Remove dead code.
8579
8580 * m/template.h:
8581 * m/sparc.h:
8582 * m/mips.h:
8583 * m/m68k.h:
8584 * m/iris4d.h:
8585 * m/intel386.h:
8586 * m/ibms390x.h:
8587 * m/ibms390.h:
8588 * m/ia64.h:
8589 * m/hp800.h:
8590 * m/arm.h:
8591 * m/amdx86-64.h: Remove dead code and references to unused
8592 and compiler defined symbols.
8593
8594 * unexmips.c:
8595 * unexelf.c: Remove references to desupported systems.
8596
8597 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8598
8599 * m/powermac.h: Remove boilerplate comments.
8600 (NO_REMAP): Remove unused definition.
8601
8602 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8603 define them.
8604
86052008-07-10 Kenichi Handa <handa@m17n.org>
8606
8607 * xfont.c (xfont_open): Log the reason of failure.
8608
86092008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8610
8611 * fontset.c (fontset_get_font_group):
8612 * font.c (font_check_otf): Specify argument types.
8613
86142008-07-09 Kenichi Handa <handa@m17n.org>
8615
8616 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8617 non-ASCII char is found.
8618
8619 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8620 (reorder_font_vector): Change the arg preferred_family to font.
8621 Prefer the spec matching with font.
8622 (fontset_get_font_group): New function.
8623 (fontset_find_font): Change the format of an element of a realized
8624 fontset. Use fontset_get_font_group.
8625 (fontset_font): Try the current fontset, the default fontset, the
8626 fallbacks of the current fontset, and the fallbacks of the default
8627 fontset in this order.
8628 (face_for_char): Delete the shortcut to use the current font.
8629 (fontset_from_font): Don't set fonts for Latin in the fontset.
8630
8631 * font.h (font_make_object, font_match_p): Adjust prototypes.
8632
8633 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8634
8635 * font.c (font_make_object): New arg entity and pixelsize.
8636 (font_check_otf_features, font_check_otf): New functions.
8637 (font_match_p): Check :lang, :script, and :otf properties.
8638
8639 * xfont.c (xfont_open): Adjust it for the change of
8640 font_make_object.
8641 (xfont_text_extents): Fix initial setting of metrics.
8642
8643 * ftfont.c (struct ftfont_info): New member index, delete member
8644 fc_charset_idx. Make the member order compatible with struct
8645 xftfont_info.
8646 (fc_charset_table): Change charset names to registry names.
8647 (ftfont_pattern_entity): Delete the args registry and
8648 fc_charset_idx. Change the value of :font-entity property
8649 to (FONTNAME . INDEX). Always set :registry property to
8650 `iso10646-1'.
8651 (struct ftfont_cache_data): New struct.
8652 (ftfont_lookup_cache): New arg for_face.
8653 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8654 (ftfont_driver): Set the member otf_capability.
8655 (ftfont_get_charset): Adjust it for the change of
8656 fc_charset_table.
8657 (OTF_TAG_SYM): New macro.
8658 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8659 for the change of fc_charset_table.
8660 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8661 ftfont_pattern_entity. Add FC_INDEX to objset.
8662 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8663 and ftfont_pattern_entity.
8664 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8665 font_make_object, struct ftfont_info.
8666 (ftfont_has_char): Use ftfont_get_fc_charset.
8667 (ftfont_otf_features, ftfont_otf_capability): New functions.
8668 (ftfont_shape): Use ftfont_get_otf.
8669 (ftfont_text_extents): Fix initial setting of metrics.
8670
8671 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8672 member order compatible with struct ftfont_info.
8673 (xftfont_open): Add FC_CHARSET to the pattern. Set
8674 xftfont_info->ft_size. Don't unlock the face. Check BDF
8675 properties if appropriate.
8676 (xftfont_close): Unlock the face.
8677 (xftfont_anchor_point, xftfont_shape): Deleted.
8678 (syms_of_xftfont): Don't set members anchor_point and shape of
8679 xftfont_driver.
8680
8681 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8682 font_make_object.
8683
8684 * w32font.c (w32font_open): Adjust it for the change of
8685 font_make_object.
8686 (w32font_open_internal): Don't set properties of font_object here.
8687
86882008-07-08 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * macfns.c (x_create_tip_frame):
8691 * w32fns.c (x_create_tip_frame):
8692 * xfns.c (x_create_tip_frame): Pass parameter argument to
8693 face-set-after-frame-default.
8694
8695 * xfaces.c (Finternal_merge_in_global_face): Save merged
8696 attributes for the default face back into the face vector.
8697
86982008-07-08 Andreas Schwab <schwab@suse.de>
8699
8700 * fontset.h: Declare fontset_from_font. Don't declare
8701 new_fontset_from_font and fontset_from_font_name.
8702 * xterm.c: Include "fontset.h".
8703 * Makefile.in (xterm.o): Update dependencies.
8704
87052008-07-08 Glenn Morris <rgm@gnu.org>
8706
8707 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8708 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8709
87102008-07-07 Chong Yidong <cyd@stupidchicken.com>
8711
8712 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8713 (x_set_frame_parameters): Don't bind it.
8714
87152008-07-07 Juanma Barranquero <lekktu@gmail.com>
8716
8717 * w32fns.c (map_w32_filename): Declare extern.
8718
87192008-07-07 Jason Rumney <jasonr@gnu.org>
8720
8721 * w32term.c (WS_EX_LAYERED): Define if not already.
8722
87232008-07-06 Chong Yidong <cyd@stupidchicken.com>
8724
8725 * xfaces.c (set_font_frame_param): Don't try to set the font
8726 parameter if it is still unspecified in the lface.
8727
87282008-07-05 Chong Yidong <cyd@stupidchicken.com>
8729
8730 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8731 face if it didn't already exist.
8732
8733 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8734
87352008-07-05 Andreas Schwab <schwab@suse.de>
8736
8737 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8738
87392008-07-05 Chong Yidong <cyd@stupidchicken.com>
8740
8741 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8742 word-wrapping.
8743 (IT_DISPLAYING_WHITESPACE): New macro.
8744 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8745 when word-wrapping. Simplify word-wrapping logic. Use correct
8746 pixel positions when saving copies of the iterator.
8747 (display_line): Use proper wrap point if the last character on a
8748 line was preceded by whitespace.
8749
87502008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8751
8752 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8753
87542008-07-04 Kenichi Handa <handa@m17n.org>
8755
8756 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8757
8758 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8759
87602008-07-02 Jason Rumney <jasonr@gnu.org>
8761
8762 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8763 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8764
8765 * xdisp.c (next_element_from_display_vector): Move assignment out
8766 of if statement.
8767
87682008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8769
8770 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8771
8772 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8773 (syms_of_fileio): Initialize and export them.
8774 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8775
8776 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8777 (Fsystem_move_file_to_trash): New function.
8778 (syms_of_w32fns): Export it to lisp.
8779
87802008-07-01 Jason Rumney <jasonr@gnu.org>
8781
8782 * w32font.c (w32font_text_extents): Don't count overhang as part
8783 of width.
8784
87852008-06-30 Miles Bader <miles@gnu.org>
8786
8787 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8788 Add `avoid_cursor_p' field.
8789
8790 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8791 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8792 (append_glyph, append_composite_glyph, produce_image_glyph)
8793 (append_stretch_glyph): Initialize avoid_cursor_p.
8794 (get_it_property): Rename from `get_line_height_property'.
8795 (x_produce_glyphs): Use get_it_property.
8796 (handle_line_prefix, push_display_prop): New functions.
8797 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8798 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8799 New variables.
8800 (syms_of_xdisp): Initialize them.
8801
88022008-06-30 Kenichi Handa <handa@m17n.org>
8803
8804 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8805 XftDefaultSubstitute (they are called in XftFontMatch).
8806 (xftfont_open): Fix args to ftfont_font_format.
8807
8808 * ftfont.c (fc_charset_table): New member lang.
8809 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8810 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8811 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8812 (ftfont_open): Fix args to ftfont_font_format.
8813 (ftfont_font_format): New arg filename.
8814
88152008-06-30 Chong Yidong <cyd@stupidchicken.com>
8816
8817 * xfaces.c (Finternal_merge_in_global_face): If default face was
8818 modified, realize it again. Update the font face attribute.
8819
88202008-06-29 Jason Rumney <jasonr@gnu.org>
8821
8822 * w32term.c (x_set_frame_alpha): Fix logic.
8823
88242008-06-29 Kenichi Handa <handa@m17n.org>
8825
8826 * fontset.c (Finternal_char_font): Return font-object instead of
8827 font-name.
8828
8829 * composite.c (get_composition_id): Fix the width calculation for TAB.
8830
88312008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8832
8833 * indent.c (Fvertical_motion): Properly handle float column arg.
8834
88352008-06-28 Jason Rumney <jasonr@gnu.org>
8836
8837 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8838 (pfnSetLayeredWindowAttributes): New function pointer.
8839 (w32_initialize): Initialize it when supported.
8840 (x_set_frame_alpha): New function.
8841
8842 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8843 (w32_frame_parm_handlers): Set alpha handler.
8844
8845 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8846
88472008-06-27 Jason Rumney <jasonr@gnu.org>
8848
8849 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8850 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8851 (w32_to_x_charset, x_to_w32_charset)
8852 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8853 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8854 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8855 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8856 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8857 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8858 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8859 (Qw32_charset_unicode): Remove.
8860 (syms_of_w32fns): Update for above changes.
8861
8862 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8863 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8864 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8865 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8866 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8867 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8868 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8869 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8870 (syms_of_w32font): Update for above changes.
8871
88722008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8873
8874 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8875 removed #if.
8876 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8877
88782008-06-26 Juanma Barranquero <lekktu@gmail.com>
8879 Eli Zaretskii <eliz@gnu.org>
8880
8881 * makefile.w32-in (LOCAL_FLAGS):
8882 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8883
8884 * sysdep.c (_spawnlp, _getpid):
8885 Declare with explicit _cdecl instead of _CRTAPI1.
8886
8887 * editfns.c (Fget_internal_run_time):
8888 Check for WINDOWSNT with #ifdef, not #if.
8889
88902008-06-26 Jason Rumney <jasonr@gnu.org>
8891
8892 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8893
8894 * w32term.c (x_draw_glyph_string_foreground)
8895 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8896 Use FONT_HANDLE macro.
8897 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8898
8899 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8900 (uniscribe_encode_char): Use FONT_HANDLE macro.
8901
8902 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8903 (w32font_text_extents): Use precast w32_font.
8904 (w32font_close): Free cached metrics.
8905 (w32font_open_internal): Allocate space for name on stack.
8906
89072008-06-26 Chong Yidong <cyd@stupidchicken.com>
8908
8909 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8910
89112008-06-26 Jason Rumney <jasonr@gnu.org>
8912
8913 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8914 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8915
89162008-06-26 Juanma Barranquero <lekktu@gmail.com>
8917
8918 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8919
89202008-06-26 Jason Rumney <jasonr@gnu.org>
8921
8922 * w32bdf.c, w32bdf.h: Remove obsolete files.
8923
8924 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8925
8926 * w32gui.h: Don't include w32bdf.h.
8927 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8928 Remove obsolete font support.
8929
8930 * w32font.h (struct w32font_info): Remove compat_w32_font.
8931 Add hfont member.
8932 (FONT_COMPAT): Remove obsolete macro.
8933
8934 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8935 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8936 (w32font_open_internal): Remove compat code. Set new hfont member.
8937 (Fx_select_font): Use new hfont member.
8938
8939 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8940 (uniscribe_encode_char): Use new hfont member.
8941
8942 * w32term.c (x_draw_glyph_string_foreground)
8943 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8944 (x_draw_glyph_string): Use metrics in w32font_info.
8945
89462008-06-26 Kenichi Handa <handa@m17n.org>
8947
8948 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8949
89502008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8951
8952 * unexnext.c:
8953 * m/ews4800.h:
8954 * m/hp9000s300.h:
8955 * m/ibm370aix.h:
8956 * m/mips-siemens.h:
8957 * m/ncr386.h:
8958 * m/next.h:
8959 * m/pmax.h:
8960 * m/powerpcle.h:
8961 * m/tandem-s2.h:
8962 * s/386bsd.h:
8963 * s/bsd386.h:
8964 * s/bsd4-1.h:
8965 * s/bsd4-2.h:
8966 * s/bsdos2-1.h:
8967 * s/bsdos2.h:
8968 * s/bsdos3.h:
8969 * s/bsdos4.h:
8970 * s/nextstep.h:
8971 * s/ultrix4-3.h:
8972 * s/usg5-0.h:
8973 * s/usg5-2-2.h:
8974 * s/usg5-2.h:
8975 * s/usg5-4-3.h:
8976 * s/ux4800.h:
8977 * s/uxpds.h:
8978 * s/uxpv.h: Remove support for obsolete systems.
8979 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8980 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8981 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8982 Remove, insert contents in s/aix4-2.h.
8983 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8984 * s/bsd4-3.h: Rename to ...
8985 * s/bsd-common.h: ... this.
8986 * data.c:
8987 * doc.c:
8988 * ecrt0.c:
8989 * emacs.c:
8990 * fileio.c:
8991 * floatfns.c:
8992 * keyboard.c:
8993 * mem-limits.h:
8994 * print.c:
8995 * process.c:
8996 * sysdep.c:
8997 * syssignal.h:
8998 * systty.h:
8999 * syswait.h:
9000 * term.c:
9001 * unexec.c:
9002 * unexelf.c:
9003 * unexhp9k800.c:
9004 * m/hp800.h:
9005 * m/ibmrs6000.h:
9006 * m/mips.h:
9007 * m/vax.h:
9008 * s/darwin.h:
9009 * s/freebsd.h:
9010 * s/gnu.h:
9011 * s/ms-w32.h:
9012 * s/msdos.h:
9013 * s/netbsd.h:
9014 * s/template.h: Remove references to obsolete variables.
9015
9016 * Makefile.in: Add dependencies for all unexec files.
9017 (admindir): Remove unused variable.
9018 (UNEXEC_SRC): Remove references.
9019
90202008-06-25 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * xfns.c (x_default_font_parameter): If Xft is available, first
9023 try Monospace-12 for the default font.
9024
90252008-06-25 Jason Rumney <jasonr@gnu.org>
9026
9027 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9028
90292008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9030
9031 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9032
9033 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9034
90352008-06-25 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9038 <scroll-conservatively>: Fix typo in docstring.
9039
9040 * xselect.c (Fx_send_client_event): Doc fix.
9041
90422008-06-25 Kenichi Handa <handa@m17n.org>
9043
9044 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9045
9046 * font.c (font_parse_fcname): Remove unused variables.
9047 (font_sort_entites): Delete the arg SPEC. Caller changed.
9048 Fix for the case of ! best_only.
9049 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9050
9051 * lisp.h (Fstring_to_unibyte): EXFUN it.
9052
9053 * character.h (str_to_unibyte): Extern it.
9054
9055 * character.c (str_to_unibyte): New function.
9056
9057 * fns.c (Fstring_to_unibyte): New function.
9058 (syms_of_fns): Defsubr it.
9059
90602008-06-24 Kenichi Handa <handa@m17n.org>
9061
9062 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9063 DPI too.
9064 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9065
90662008-06-24 Andreas Schwab <schwab@suse.de>
9067
9068 * Makefile.in (${lispsource}loaddefs.el): Rename from
9069 ../lisp/loaddefs.el.
9070 (bootstrap-clean): Do what distclean does but don't remove
9071 Makefile.
9072 (distclean): Depend on bootstrap-clean and remove Makefile.
9073
90742008-06-24 Chong Yidong <cyd@stupidchicken.com>
9075
9076 * buffer.h (struct buffer): New member word_wrap.
9077
9078 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9079 word-wrap.
9080 (init_buffer_once): Initialize them.
9081
9082 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9083 line_wrap enum possessing three possible values.
9084
9085 * termopts.h: Replace truncate_partial_width_windows with
9086 Vtruncate_partial_width_windows.
9087
9088 * dispnew.c (direct_output_for_insert): Avoid direct output when
9089 inserting a space with word wrap on.
9090
9091 * indent.c (compute_motion): Obey integer values of
9092 truncate-partial-width-windows.
9093
9094 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9095 replacing truncate_partial_width_windows.
9096 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9097 truncate only if the window width is below that integer.
9098 (start_display, resize_mini_window, produce_stretch_glyph)
9099 (display_string, move_it_in_display_line_to): Use line_wrap.
9100 (back_to_previous_visible_line_start, reseat_1): Reset
9101 string_from_display_prop_p.
9102 (display_line): Extend default face to end of line when wrapping.
9103
91042008-06-24 Kim F. Storm <storm@cua.dk>
9105
9106 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9107 to wrap continued lines at word boundaries.
9108
91092008-06-24 Jason Rumney <jasonr@gnu.org>
9110
9111 * font.c (Ffont_face_attributes): Multiply pixel size before point
9112 conversion to avoid multiplying rounding error.
9113
91142008-06-23 Jason Rumney <jasonr@gnu.org>
9115
9116 * w32term.c (x_draw_glyph_string_background)
9117 (x_draw_glyph_string): Remove old bdf font code.
9118
9119 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9120
91212008-06-22 Kenichi Handa <handa@m17n.org>
9122
9123 * font.c (font_find_for_lface): Try the adstyle specified in
9124 the property of LFACE_FONT of LFACE (if any).
9125
91262008-06-21 Seiji Zenitani <zenitani@mac.com>
9127 Ryo Yoshitake <ryo@shiftmode.net>
9128
9129 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9130
91312008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9132
9133 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9134 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9135 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9136 (witness-emacs): Remove.
9137 (lisp, shortlisp): Move loaddefs.el earlier.
9138 (mostlyclean): Forget about witness-emacs.
9139
91402008-06-22 Glenn Morris <rgm@gnu.org>
9141
9142 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9143 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9144
91452008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9146
9147 * Makefile.in (PRECOMP): Remove.
9148 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9149 (witness-emacs): Run `compile-first'.
9150 (.el.elc): Use the new compile-onefile target.
9151
91522008-06-21 Kenichi Handa <handa@m17n.org>
9153
9154 * xftfont.c (xftfont_open): Handle QCembolden only when
9155 FC_EMBOLDEN is defined.
9156
91572008-06-21 Andreas Schwab <schwab@suse.de>
9158
9159 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9160 (.el.elc): Likewise.
9161
91622008-06-21 Miles Bader <miles@gnu.org>
9163
9164 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9165 build dir, not the lisp source dir.
9166
91672008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9168
9169 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9170 (bootstrapclean): Remove.
9171 (.el.elc): New rule.
9172 (PRECOMP): New var.
9173 (../lisp/subdirs.el): Remove.
9174 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9175 (witness-emacs): New target.
9176 (mostlyclean): Remove witness-emacs as well.
9177 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9178 Add witness-emacs dependency.
9179
91802008-06-20 Chong Yidong <cyd@stupidchicken.com>
9181
9182 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9183 defined by the font.
9184
91852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9186
9187 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9188 (bootstrap-clean): New target that keeps TAGS around.
9189 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9190 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9191
91922008-06-20 Jason Rumney <jasonr@gnu.org>
9193
9194 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9195 Remove obsolete font code.
9196
9197 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9198 to determine language support.
9199
92002008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9201
9202 * sysdep.c (cfsetspeed): New fun extracted from the code.
9203 (cfmakeraw): Move before first use.
9204
92052008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9206
9207 * sysdep.c (cfmakeraw): Provide fallback implementation.
9208 (serial_configure): Provide fallback implementation of cfsetspeed.
9209
92102008-06-20 Kenichi Handa <handa@m17n.org>
9211
9212 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9213 the pattern.
9214
9215 * fontset.c (fontset_from_font): Copy font_spec before changing
9216 the elements.
9217
9218 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9219
92202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9221
9222 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9223 for explicit `font' parameters.
9224
9225 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9226
92272008-06-19 Kenichi Handa <handa@m17n.org>
9228
9229 * frame.c: Include <ctype.h>.
9230 (x_set_font_backend): Allow spacing characters in the X resource
9231 for FontBackend.
9232
92332008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9234
9235 * w32fns.c, xfns.c (Qfont_param): New var.
9236 (syms_of_w32fns): Initialize it.
9237 (x_default_font_parameter): Record explicit `font' into
9238 `font-parameter'.
9239
92402008-06-18 Kenichi Handa <handa@m17n.org>
9241
9242 * font.c (font_parse_xlfd): Fix previous change.
9243 (font_parse_fcname): Don't use :fc-unknown-spec.
9244 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9245 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9246 (font_add_log): Prepend the driver name to the resulting fonts.
9247
9248 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9249 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9250 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9251
9252 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9253 (QCembolden): New variables.
9254 (syms_of_xftfont): DEFSYM them.
9255 (xftfont_open): Call XftFontMatch. Don't trust the result of
9256 XftTextExtents8 if the pixel_size is less than 5.
9257
92582008-06-18 Andreas Schwab <schwab@suse.de>
9259
9260 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9261 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9262
92632008-06-18 Jason Rumney <jasonr@gnu.org>
9264
9265 * w32font.c (w32font_list, w32font_match): Add logging.
9266
9267 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9268
92692008-06-17 Chong Yidong <cyd@stupidchicken.com>
9270
9271 * font.c (font_parse_fcname): Store divider characters for
9272 unknown-spec list. For known key symbols, intern using correct
9273 symbol name.
9274
92752008-06-17 Kenichi Handa <handa@m17n.org>
9276
9277 * xfaces.c (realize_default_face): If the frame is not on window
9278 system, set the fontset of face to nil.
9279
92802008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9281
9282 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9283
92842008-06-16 Juanma Barranquero <lekktu@gmail.com>
9285
9286 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9287 (build_font_name_from_vector): Delete externs.
9288
9289 * xfaces.c (struct font_name): Don't declare.
9290
92912008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9292
9293 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9294
92952008-06-16 Chong Yidong <cyd@stupidchicken.com>
9296
9297 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9298
92992008-06-16 Juanma Barranquero <lekktu@gmail.com>
9300
9301 * font.c (Ffont_spec): Fix usage in docstring.
9302 (Ffont_face_attributes): Doc fix.
9303
93042008-06-16 Andreas Schwab <schwab@suse.de>
9305
9306 * font.c (Ffont_face_attributes): Fix definition.
9307
93082008-06-16 Jason Rumney <jasonr@gnu.org>
9309
9310 * font.h (font_style_symbolic_from_value): Remove.
9311
9312 * font.c (font_style_symbolic_from_value): Remove.
9313 (font_style_symbolic): Revert to pre 2008-06-13 version.
9314
9315 * w32font.c (w32_to_fc_weight): New function.
9316 (w32font_full_name, logfont_to_fcname): Use it.
9317
93182008-06-16 Kenichi Handa <handa@m17n.org>
9319
9320 * font.c (font_check_object): Delete it.
9321 (font_clear_cache): Check if a font-object is alive.
9322 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9323 font-object to nil.
9324 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9325 (font_at): Don't call font_check_object.
9326 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9327
93282008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9329
9330 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9331
93322008-06-16 Chong Yidong <cyd@stupidchicken.com>
9333
9334 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9335
93362008-06-15 Chong Yidong <cyd@stupidchicken.com>
9337
9338 * font.c (font_parse_fcname): Only one decimal point.
9339 (font_unparse_fcname): Handle data in family and foundry indices
9340 as symbols, not strings.
9341 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9342
9343 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9344
9345 * font.h (font_unparse_gtkname): Add prototype.
9346
93472008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9348
9349 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9350
93512008-06-15 Andreas Schwab <schwab@suse.de>
9352
9353 * font.c (font_update_drivers): Fix crash when no drivers match.
9354
93552008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9356
9357 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9358 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9359
93602008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9361
9362 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9363
93642008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9365
9366 * process.c (Fserial_process_configure, Fprocess_send_eof):
9367 Use EQ to compare Lisp_Objects.
9368
93692008-06-13 Jason Rumney <jasonr@gnu.org>
9370
9371 * w32fns.c (Fw32_select_font): Remove old font API function.
9372
9373 * w32font.c (logfont_to_fcname): New function.
9374 (Fx_select_font): New font dialog function compatible with
9375 GTK/fontconfig version.
9376
9377 * font.c (font_style_symbolic_from_value): New function.
9378 (font_style_symbolic): Use it.
9379
9380 * font.h (font_style_symbolic_from_value): Declare new function.
9381
93822008-06-13 Juanma Barranquero <lekktu@gmail.com>
9383
9384 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9385 <font-width-table>: Fix typos in docstrings.
9386
93872008-06-13 Daniel Engeler <engeler@gmail.com>
9388
9389 These changes add serial port access.
9390 * process.c: Add HAVE_SERIAL.
9391 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9392 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9393 (list_processes_1, select_wrapper, Fstop_process)
9394 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9395 (status_notify): Modify to handle serial processes.
9396 [HAVE_SERIAL] (Fserial_process_configure)
9397 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9398 New functions.
9399 * process.h (struct Lisp_Process): Add `type'.
9400 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9401 New functions.
9402 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9403 serial ports.
b71ac3dd 9404 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9405 * w32.h: Add FILE_SERIAL.
9406 (struct _child_process): Add ovl_read, ovl_write.
9407
94082008-06-13 Kenichi Handa <handa@m17n.org>
9409
9410 * dispextern.h (enum lface_attribute_index): New member
9411 LFACE_FOUNDRY_INDEX.
9412
9413 * font.c (font_score): Delete arg alternate_families. Check only
9414 weight, slant, width, and size. Ignore the difference of alias
9415 style symbols.
9416 (font_sort_entites): Adjust for the above change. Reflect the
9417 order of font-driver to scores.
9418 (font_list_entities): Don't check alternate_familes here.
9419 (font_clear_prop): Handle foundry.
9420 (font_update_lface): Don't parse "foundry-family" form here.
9421 Handle FONT_FOUNDRY_INDEX.
9422 (font_find_for_lface): Likewise. Handle alternate families here.
9423 If registry is nil, try iso8859-1 and ascii-0.
9424 (font_open_for_lface): Pay attention to size in ENTITY.
9425 (font_open_by_name): Simplify by calling font_load_for_lface.
9426 (free_font_driver_list): Delete it.
9427 (font_update_drivers): Preserve the order of backends.
9428 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9429 of font_score and font_sort_entites.
9430 (font_update_sort_order): Likewise.
9431
9432 * xfaces.c (LFACE_FOUNDRY): New macro.
9433 (check_lface_attrs): Check foundry.
9434 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9435 (merge_face_vectors): Check foundry.
9436 (merge_face_ref): Likewise.
9437 (Finternal_set_lisp_face_attribute): Likewise.
9438 (x_update_menu_appearance): Likewise.
9439 (Finternal_get_lisp_face_attribute): Likewise.
9440 (lface_hash): Likewise.
9441 (lface_same_font_attributes_p): Likewise.
9442 (x_supports_face_attributes_p): Likewise.
9443 (tty_supports_face_attributes_p): Likewise.
9444 (Finternal_set_alternative_font_family_alist): Intern strings.
9445 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9446 (realize_default_face): Set LFACE_FOUNDRY (lface).
9447
9448 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9449 font-driver at first.
9450
9451 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9452
94532008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9454
9455 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9456
94572008-06-12 Jim Meyering <meyering@redhat.com>
9458
9459 Make unexec_free handle NULL the same way free does.
9460 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9461
94622008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9463
9464 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9465 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9466 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9467 (WEAK_ALIAS): Simplify.
9468 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9469 when searching a unibyte buffer.
9470
94712008-06-12 Chong Yidong <cyd@stupidchicken.com>
9472
9473 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9474
94752008-06-12 Juanma Barranquero <lekktu@gmail.com>
9476
9477 * w32font.c: Include ctype.h.
9478
94792008-06-11 Jason Rumney <jasonr@gnu.org>
9480
9481 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9482 misreported as space.
9483 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9484 as aliases for registry iso10646-1.
9485
94862008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9487
9488 * buffer.c (clone_per_buffer_values): Skip `name'.
9489
94902008-06-11 Chong Yidong <cyd@stupidchicken.com>
9491
9492 * font.c (font_parse_fcname): Fix last change; accept decimal
9493 points in font size.
9494
94952008-06-10 Jason Rumney <jasonr@gnu.org>
9496
9497 * w32uniscribe.c (add_opentype_font_name_to_list):
9498 Skip non unicode fonts.
9499
95002008-06-10 Chong Yidong <cyd@stupidchicken.com>
9501
9502 * xfns.c (Fx_font_dialog): New function.
9503
9504 * gtkutil.c (xg_dialog_response_cb): Rename from
9505 xg_file_response_callback.
9506 (pop_down_dialog): Rename from pop_down_file_dialog.
9507 (xg_get_file_name): Callers changed.
9508 (xg_get_font_name): New function.
9509
9510 * gtkutil.h (xg_get_font_name): Insert prototype.
9511
95122008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9515 x_underline_minimum_display_offset.
9516 (syms_of_xdisp): Declare it here rather than in xterm.c.
9517 * dispextern.h (underline_minimum_offset): Declare it.
9518 * w32term.c (x_draw_glyph_string): Use it.
9519 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9520 (syms_of_xterm): Don't declare it any more.
9521 (x_draw_glyph_string): Adjust to the new name.
9522
8719abec 95232008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9524
9525 * xterm.c (x_underline_minimum_display_offset): New var.
9526 (x_draw_glyph_string): Use it.
9527 (syms_of_xterm): Declare it.
9528
95292008-06-10 Chong Yidong <cyd@stupidchicken.com>
9530
9531 * font.c (font_parse_fcname): Accept GTK-style font names too.
9532
95332008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9534
9535 * dired.c (file_name_completion): Don't return t if the match is exact
9536 but with different capitalization.
9537 * minibuf.c (Ftry_completion): Simplify.
9538
9539 * window.c (Vwindow_point_insertion_type): New var.
9540 (set_window_buffer): Use it.
9541 (syms_of_window): Init and export it to Lisp.
9542
95432008-06-10 Kenichi Handa <handa@m17n.org>
9544
9545 * font.h (font_intern_prop): Prototype adjusted.
9546
9547 * font.c (font_intern_prop): New arg force_symbol.
9548 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9549 Adjust for the change of font_intern_prop.
9550
9551 * ftfont.c (ftfont_pattern_entity):
9552 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9553 (w32_registry):
9554 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9555 the change of font_intern_prop.
9556
95572008-06-09 Juanma Barranquero <lekktu@gmail.com>
9558
9559 * w32menu.c (digest_single_submenu): Declare extern.
9560
95612008-06-09 Jason Rumney <jasonr@gnu.org>
9562
9563 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9564
9565 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9566 (parse_single_submenu): Remove.
9567 (digest_single_submenu): Remove.
9568 (syms_of_w32menu): Don't initialise variables that have moved
9569 to menu.c.
9570 (set_frame_menubar): Sync with version in xmenu.c.
9571 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9572
9573 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9574 Make static again.
9575
95762008-06-09 Jason Rumney <jasonr@gnu.org>
9577
9578 Changes to w32 files related to the move of common menu code
9579 to menu.c on 2008-06-08 by Chong Yidong.
9580
9581 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9582 defs to w32gui.h.
9583 (single_keymap_panes, push_menu_item, push_menu_pane):
9584 Make globally visible.
9585
9586 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9587 (local_free, malloc_widget_value, free_widget_value)
9588 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9589 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9590 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9591 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9592 (menu_items, menu_items_allocated, menu_items_used)
9593 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9594 (init_menu_items, finish_menu_items, discard_menu_items)
9595 (grow_menu_items, push_submenu_start, push_submenu_end)
9596 (push_left_right_boundary, push_menu_pane, push_menu_item)
9597 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9598 (free_menubar_widget_tree_value, parse_single_submenu)
9599 (update_submenu_strings): Remove functions.
9600 (xmalloc_widget_value): Remove and declare extern.
9601
9602 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9603 (OBJ1): Build it.
9604
9605 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9606 (local_heap, local_alloc, local_free, malloc_widget_value)
9607 (free_widget_value): Define here.
9608
96092008-06-09 Kenichi Handa <handa@m17n.org>
9610
9611 * font.h (Qascii_0): Extern it.
9612
9613 * font.c (Qascii_0): New variable.
9614 (syms_of_font): DEFSYM it.
9615 (font_open_by_name): If the registry "iso8859-1" fails, try also
9616 "ascii-0".
9617
9618 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9619
96202008-06-08 Kenichi Handa <handa@m17n.org>
9621
9622 * .gdbinit (xfont): New command.
9623
96242008-06-08 Andreas Schwab <schwab@suse.de>
9625
9626 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9627 * Makefile.in (menu.o): Update dependencies.
9628
9629 * Makefile.in (obj): Always add menu.o.
9630 * emacs.c (main): Always call syms_of_menu.
9631 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9632
96332008-06-08 Chong Yidong <cyd@stupidchicken.com>
9634
9635 * Makefile.in: Compile menu.c.
9636
9637 * lisp.h: Declare syms_of_menu.
9638
9639 * emacs.c (main): Call syms_of_menu.
9640
9641 * keyboard.h: Relocate platform-independent menu definitions from
9642 xmenu.c.
9643
9644 * menu.c: New file. Relocate platform-independent menu
9645 definitions from xmenu.c. Suggested by Adrian Robert.
9646
9647 * xmenu.c: Remove platform-independent menu definitions.
9648 (menu_items menu_items_inuse, menu_items_allocated)
9649 (menu_items_used, menu_items_n_panes)
9650 (menu_items_submenu_depth): Move to keyboard.h.
9651 (init_menu_items, finish_menu_items, unuse_menu_items)
9652 (discard_menu_items, restore_menu_items, save_menu_items)
9653 (grow_menu_items, push_submenu_start, push_submenu_end)
9654 (push_left_right_boundary, push_menu_pane, push_menu_item)
9655 (keymap_panes, single_keymap_panes, single_menu_item)
9656 (list_of_panes, list_of_items, find_and_call_menu_selection)
9657 (xmalloc_widget_value, free_menubar_widget_value_tree)
9658 (parse_single_submenu, digest_single_submenu)
9659 (update_submenu_strings): Move to menu.c.
9660
96612008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9662
9663 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9664
96652008-06-06 Miles Bader <miles@gnu.org>
9666
9667 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9668 face, not frame default.
9669
96702008-06-05 Martin Rudalics <rudalics@gmx.at>
9671
9672 * window.c (pop_up_windows, pop_up_frames)
9673 (display_buffer_reuse_frames, Vpop_up_frame_function)
9674 (Vdisplay_buffer_function, Veven_window_heights)
9675 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9676 (Vspecial_display_function, Vsame_window_buffer_names)
9677 (Vsame_window_regexps, split_height_threshold)
9678 (Vsplit_window_preferred_function): Move those vars to window.el.
9679 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9680 (Fdisplay_buffer): Move those functions to window.el.
9681 (syms_of_window): Remove corresponding declarations.
9682 (display_buffer): New function.
9683 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9684 * dispnew.c (Flast_nonminibuf_frame): New function.
9685 * buffer.c (Fpop_to_buffer): Move to window.el.
9686
96872008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9688
9689 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9690
96912008-06-05 Kenichi Handa <handa@m17n.org>
9692
9693 * coding.c (detect_coding): Fix previous change.
9694 (detect_coding_system): Likewise.
9695
96962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9699
9700 * keymap.c (Vminibuffer_local_filename_must_match_map):
9701 Rename from Vminibuffer_local_must_match_filename_map.
9702 (syms_of_keymap):
9703 * minibuf.c (Fcompleting_read): Adjust accordingly.
9704 * commands.h: Rename declaration as well.
9705
97062008-06-05 Kenichi Handa <handa@m17n.org>
9707
9708 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9709 family name.
9710 (Ffont_put): Likewise.
9711
9712 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9713 current font-spec.
9714
9715 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9716 is unspecified.
9717
9718 * xfaces.c (realize_x_face): If the font-related face attributes
9719 are the same as those of default face, realize a new fontset from
9720 default->fontset.
9721 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9722
97232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9724
9725 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9726 (move_it_in_display_line): New wrapper.
9727
9728 * window.c (window_scroll_pixel_based_preserve_x)
9729 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9730 (window_scroll_pixel_based, window_scroll_line_based):
9731 Use them to preserve column positions.
9732 (syms_of_window): Initialize them.
9733
9734 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9735 (HPOS . VPOS) pair.
9736
9737 * dispextern.h (move_it_in_display_line): Declare.
9738
97392008-06-05 Juanma Barranquero <lekktu@gmail.com>
9740
9741 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9742 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9743 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9744
97452008-06-04 Juanma Barranquero <lekktu@gmail.com>
9746
9747 * window.c (Fset_window_parameter): Doc fix.
9748 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9749
97502008-06-04 Joakim Verona <joakim@verona.se>
9751
9752 * window.h (struct window): Add new member window_parameters.
9753
9754 * window.c (Fwindow_parameters, Fwindow_parameter)
9755 (Fset_window_parameter): New defuns.
9756 (syms_of_window): Defsubr the new defuns.
9757 (make_window): Initialize window_parameters to nil.
9758
97592008-06-04 John Paul Wallington <jpw@pobox.com>
9760
9761 * eval.c (Fdefmacro): Doc fix.
9762
97632008-06-04 Kenichi Handa <handa@m17n.org>
9764
9765 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9766 Be sure to call setup_coding_system when we find a proper coding system.
9767 (detect_coding_system): Fix handling of coding->head_ascii.
9768
97692008-06-03 Andreas Schwab <schwab@suse.de>
9770
9771 * font.c (font_prop_validate_spacing): Fix last change.
9772
97732008-06-03 Kenichi Handa <handa@m17n.org>
9774
9775 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9776 (font_parse_fcname): Fix handling of unknown key.
9777
9778 * xfont.c (xfont_list): Try an alias.
9779
9780 * charset.c (char_charset): Return NULL if the arg charset_list is
9781 specified and C doesn't belong to any of them.
9782
97832008-06-02 Chip Coldwell <coldwell@redhat.com>
9784
9785 * font.c (font_pixel_size): Don't take cdr of an integer.
9786
97872008-06-02 Jim Meyering <meyering@redhat.com>
9788
9789 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9790 * alloc.c (xfree): Return right away for a NULL arg.
9791 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9792 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9793 * mac.c (create_apple_event_from_event_ref): Likewise.
9794 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9795 Likewise.
9796 * doprnt.c (doprnt1): Likewise.
9797 * frame.c (frame): Likewise.
9798 * keyboard.c (wipe_kboard): Likewise.
9799 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9800 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9801 * term.c (tty_default_color_capabilities, maybe_fatal)
9802 (delete_tty): Likewise.
9803 * w16select.c (string): Likewise.
9804 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9805 * w32bdf.c (w32_free_bdf_font): Likewise.
9806 * w32fns.c (w32_unload_font): Likewise.
9807 * w32font.c (w32font_close): Likewise.
9808 * window.c (size_window): Likewise.
9809 * xselect.c (receive_incremental_selection): Likewise.
9810 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9811 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9812 * w32.c (stat): Likewise.
9813
9814 Remove useless if-before-free tests.
9815 * editfns.c (Fset_time_zone_rule): Likewise.
9816 * lread.c (nosuffix): Likewise.
9817 * ralloc.c (get_bloc): Likewise.
9818 * regex.c (reg_free): Likewise.
9819 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9820 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9821 * xsmfns.c (smc_save_yourself_CB): Likewise.
9822
98232008-06-02 Kenichi Handa <handa@m17n.org>
9824
9825 * font.c (font_find_for_lface): Handle float font size.
9826 (font_open_for_lface): Likewise.
9827
9828 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9829 comparing the properties.
9830
98312008-06-01 Jason Rumney <jasonr@gnu.org>
9832
9833 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9834 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9835 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9836 Don't add empty script list.
9837 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9838
98392008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9840
9841 * Makefile.in (dot, dotdot): Remove, update users.
9842 ".." has been used elsewhere in the file for a long time.
9843 (LIBXT_STATIC): Remove conditional based on unused variable.
9844
98452008-06-01 Miles Bader <miles@gnu.org>
9846
9847 * xfaces.c (Vface_remapping_alist): New variable.
9848 (syms_of_xfaces): Initialize it.
9849 (enum named_merge_point_kind): New type.
9850 (struct named_merge_point): Add `named_merge_point_kind' field.
9851 (push_named_merge_point): Make cycle detection respect different
9852 named-merge-point kinds.
9853 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9854 Remove face-name alias resolution.
9855 (lface_from_face_name): New definition using
9856 `lface_from_face_name_no_resolve'.
9857 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9858 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9859 (get_lface_attributes): New definition that layers face-remapping on
9860 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9861 (lookup_basic_face): New function.
9862 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9863 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9864 `get_lface_attributes'.
9865 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9866 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9867 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9868
9869 * xdisp.c (init_iterator): Pass base_face_id through
9870 `lookup_basic_face' when we actually use it as a face-id.
9871 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9872 DEFAULT_FACE_ID.
9873
9874 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9875 lookup the initial face-id.
9876
9877 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9878
98792008-06-01 Juanma Barranquero <lekktu@gmail.com>
9880
9881 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9882 (Fremove_text_properties): Fix typos in docstrings.
9883
98842008-05-31 Kenichi Handa <handa@m17n.org>
9885
9886 * font.c (font_list_entities): Fix the car part of data to be
9887 stored in the cache.
9888
9889 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9890
98912008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9892
9893 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9894 Add a `test' argument so another predicate than `equal' can be used.
9895 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9896 (map_char_table): Remove unused vars `c' and `i'.
9897 * lisp.h (Foptimize_char_table): Adjust declaration.
9898 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9899
99002008-05-30 Kenichi Handa <handa@m17n.org>
9901
9902 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9903 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9904 defined.
9905
99062008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9907
9908 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9909 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9910 frame-local settings for the same variable.
9911
99122008-05-30 Kenichi Handa <handa@m17n.org>
9913
9914 * fontset.c (Ffont_info): Move to font.c.
9915 (syms_of_fontset): Delete defsubr of Sfont_info.
9916
9917 * font.c (font_style_to_value, font_score): Delete casting of the
9918 args to xstcasecmp.
9919 (register_font_driver): Increment num_font_drivers only when
9920 registering the driver globally.
9921 (Ffont_info): Move from fontset.c. Handle a font object too.
9922 (syms_of_font): Defsubr Sfont_info.
9923
99242008-05-29 Kenichi Handa <handa@m17n.org>
9925
9926 * coding.h (enum define_coding_utf8_arg_index): New enum.
9927 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9928 coding_attr_utf_bom.
9929 (enum utf_bom_type): Rename from utf_16_bom_type.
9930 (struct utf_16_spec): Adjust for the above change.
9931 (struct coding_system): Add utf_8_bom in `spec' union.
9932
9933 * coding.c (CODING_UTF_8_BOM): New macro.
9934 (enum coding_category): Delete coding_category_utf_8, add
9935 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9936 coding_category_utf_8_sig.
9937 (CATEGORY_MASK_UTF_8): Delete it.
9938 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9939 (CATEGORY_MASK_UTF_8_SIG): New macros.
9940 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9941 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9942 CATEGORY_MASK_UTF_8_SIG.
9943 (CATEGORY_MASK_UTF_8): New macro.
9944 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9945 (detect_coding_utf_8): Check BOM.
9946 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9947 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9948 (encode_coding_utf_16): Likewise.
9949 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9950 (detect_coding, detect_coding_system): Handle utf-8-auto.
9951 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9952 (syms_of_coding): Fix setting up of Vcoding_category_table.
9953
99542008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9955
9956 * process.c (Faccept_process_output): If `millisec' is non-nil,
9957 `seconds' default to 0.
9958 (wait_reading_process_output): Also return non-nil if we read output
9959 from a non-running process.
9960
99612008-05-29 Jason Rumney <jasonr@gnu.org>
9962
9963 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9964 `raster' specified.
9965 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9966 in the uniscribe backend, but disallow any font that has no
9967 unicode subrange support.
9968
99692008-05-29 Juanma Barranquero <lekktu@gmail.com>
9970
9971 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9972 Fix typos in docstrings.
9973
99742008-05-29 Kenichi Handa <handa@m17n.org>
9975
9976 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9977 (Fx_family_fonts): Set frame correctly.
9978
99792008-05-28 Jason Rumney <jasonr@gnu.org>
9980
9981 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9982
99832008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9984
9985 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9986 calling build_annotations.
9987
99882008-05-28 Juanma Barranquero <lekktu@gmail.com>
9989
9990 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9991 (Fencode_coding_string):
9992 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9993 <latin-extra-code-table>: Fix typos in docstrings.
9994 (syms_of_coding) <coding-system-alist>: Doc fix.
9995 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9996
99972008-05-28 Kenichi Handa <handa@m17n.org>
9998
9999 * fontset.c (Ffont_info): Don't call font_close_object.
10000
10001 * font.c (font_parse_family_registry): Use Ffont_put to validate
10002 foundry and family.
10003 (font_delete_unmatched): Don't check spacing.
10004 (font_list_entities): Add spacing to the spec to list fonts.
10005
10006 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10007 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10008
10009 * coding.c (encode_coding_raw_text): Fix previous change.
10010 (encode_coding_object): When the dst_object is a buffer and is
10011 different from src_object, move gap to PT.
10012
100132008-05-27 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10016
100172008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10018
10019 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10020 all branches. Compute it differently.
10021
10022 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10023
100242008-05-27 Juanma Barranquero <lekktu@gmail.com>
10025
10026 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10027 into "else if () ... else ...".
10028
100292008-05-27 Jason Rumney <jasonr@gnu.org>
10030
10031 * w32font.c (w32font_open_internal): Determine if glyph indices
10032 are likely to work here.
10033
100342008-05-27 Chong Yidong <cyd@stupidchicken.com>
10035
10036 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10037 draw overlap glyphs with appropriate highlighting.
10038
100392008-05-27 Kenichi Handa <handa@m17n.org>
10040
10041 * xfont.c (xfont_open): Fix calculation of font->average_width.
10042
100432008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10044
10045 * casefiddle.c (casify_object): Try to guess better whether the
10046 argument is a byte or a char.
10047
100482008-05-26 Andreas Schwab <schwab@suse.de>
10049
10050 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10051 Always send multiples of format size.
10052
10053 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10054
100552008-05-26 Jason Rumney <jasonr@gnu.org>
10056
10057 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10058 (compute_metrics): Don't set failure if we just cleared the cache.
10059 (w32_weight_table): Remove unused variable.
10060 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10061 backwards compatibility.
10062
100632008-05-25 Kenichi Handa <handa@m17n.org>
10064
10065 * w32term.c (x_draw_glyph_string):
10066 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10067
10068 * xfaces.c: Delete unused function prototypes.
10069 (xstrlwr, font_frame): Delete them.
10070 (clear_face_cache): Delete unused variable.
10071
10072 * xftfont.c (xftfont_open): Delete unused variable.
10073 If underline_thickness is not 1, adjust underline_position.
10074
10075 * ftxfont.c (ftxfont_open): Delete unused variable.
10076
10077 * fontset.c (face_for_char): Optimize for the case of no charset
10078 property.
10079
10080 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10081 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10082 (otf_open, font_otf_capability, generate_otf_features)
10083 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10084 Comment out by surrounding "#if 0" and "#endif" for the moment.
10085 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10086 (syms_of_font): Codes for accessing above commented out.
10087
100882008-05-24 Eli Zaretskii <eliz@gnu.org>
10089
10090 * w32proc.c: Include dispextern.h.
10091
10092 * w32.c: Include dispextern.h.
10093
100942008-05-23 Juanma Barranquero <lekktu@gmail.com>
10095
10096 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10097 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10098 Fix typos in docstrings.
10099
101002008-05-23 Jason Rumney <jasonr@gnu.org>
10101
10102 * xsmfns.c: Remove includes that are already included by config.h.
10103
101042008-05-23 Kenichi Handa <handa@m17n.org>
10105
10106 * charset.c (Qemacs, charset_emacs): New variables.
10107 (char_charset): Fix for non-Unicode characters.
10108 (syms_of_charset): Define charset_emacs.
10109
10110 * w32term.c (x_draw_glyph_string): Be sure to update
10111 s->underline_thickness and s->underline_position. Be sure to draw
10112 underline within the current line area.
10113
10114 * xterm.c (x_draw_glyph_string): Be sure to update
10115 s->underline_thickness and s->underline_position. Be sure to draw
10116 underline within the current line area.
10117
10118 * fontset.c: Delete unused variables and add casting for char *
10119 throughout the file.
10120 (fontset_font): Try the fallback fonts of the current fontset
10121 before consulting the default fontset.
10122
10123 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10124
10125 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10126
101272008-05-22 Jason Rumney <jasonr@gnu.org>
10128
10129 * font.c: Don't include strings.h.
10130
10131 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10132
10133 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10134 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10135 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10136 to call xstrcasecmp.
10137
10138 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10139
10140 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10141
10142 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10143
10144 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10145
101462008-05-22 Kenichi Handa <handa@m17n.org>
10147
10148 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10149
10150 * font.c (font_prop_validate_style): Adjust for the format
10151 change of font_style_table.
10152
10153 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10154 two args.
10155
10156 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10157 two args.
10158
101592008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10160
10161 * minibuf.c (keys_of_minibuf): Delete.
10162 * lisp.h (keys_of_minibuf): Delete.
10163 * emacs.c (main): Don't call keys_of_minibuf.
10164
101652008-05-22 Kenichi Handa <handa@m17n.org>
10166
10167 * ftfont.c (ftfont_resolve_generic_family): Rename from
10168 ftfont_list_generic_family. Return a single family for each
10169 generic family.
10170 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10171 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10172 Call font_add_log.
10173 (ftfont_match): Call font_add_log.
10174
10175 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10176 (FONT_DEBUG): Define it.
10177 (font_add_log): Extern it.
10178 (font_assert): Rename from xassert.
10179
10180 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10181 (xfont_list_family): Call font_add_log.
10182 (xfont_match): Likewise.
10183 (memq_no_quit): Delete.
10184
10185 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10186 call of Ffont_xlfd_name.
10187
10188 * xfaces.c (struct table_entry, slant_table, weight_table)
10189 (swidth_table): Move to font.c.
10190
10191 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10192 xassert are changed to font_assert. Delete many unused variables.
10193 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10194 New variables.
10195 (struct table_entry): Move from xfaces.c and modified.
10196 (weight_table, slant_table, width_table): Move from xfaces.c and
10197 contents adjusted for the change of struct table_entry.
10198 (font_style_to_value, font_style_symbolic): Adjust for the
10199 format change of font_style_table.
10200 (font_parse_family_registry): Don't overwrite existing foundry and
10201 family of font_spec.
10202 (font_score): Fix calculation of diff for sizes.
10203 (font_sort_entites): Call font_add_log.
10204 (font_delete_unmatched): Return a newly created list.
10205 (font_list_entities): Fix previous change. Call font_add_log.
10206 (font_matching_entity, font_open_entity, font_close_entity):
10207 Call font_add_log.
10208 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10209 (Finternal_set_font_style_table): Delete.
10210 (BUILD_STYLE_TABLE): New macro.
10211 (build_style_table): New function.
10212 (Vfont_log, font_log_env_checked): New variables.
10213 (font_add_log): New function.
10214 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10215 Declare Lisp variables "font-weight-table", "font-slant-table",
10216 "font-width-table", and "font-log". Initialize font_style_table.
10217
102182008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10219
10220 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10221
102222008-05-21 Seiji Zenitani <zenitani@mac.com>
10223 Ryo Yoshitake <ryo@shiftmode.net>
10224
10225 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10226 (Vframe_alpha_lower_limit): New variable.
10227 (x_set_alpha): New function.
10228
10229 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10230
10231 * xfns.c (x-create-frame, Qalpha):
10232 Initialize the frame parameter `alpha'.
10233 * xterm.c (OPAQUE, OPACITY): New.
10234 (x_set_frame_alpha): New function.
10235 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10236
10237 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10238 * w32fns.c (w32_frame_parm_handlers): Likewise.
10239
102402008-05-20 Jason Rumney <jasonr@gnu.org>
10241
10242 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10243 truetype fonts to opentype list.
10244
102452008-05-20 Juanma Barranquero <lekktu@gmail.com>
10246
10247 * fontset.c (Ffontset_info): Doc fix.
10248 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10249 <ignore-relative-composition>: Fix typos in docstrings.
10250
10251 * font.c (syms-of-font) <font-encoding-alist>:
10252 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10253 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10254 (Ffont_otf_alternates): Doc fixes.
10255
102562008-05-20 Kenichi Handa <handa@m17n.org>
10257
10258 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10259 font.h through out the file.
10260 (FONT_DRIVERS): Rename from FONTOBJ.
10261 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10262 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10263
10264 * emacs.c (main): Call syms_of_font unconditionally.
10265
10266 * font.h (find_font_encoding): Extern it.
10267
10268 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10269 fontset.c.
10270 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10271 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10272 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10273 only when HAVE_WINDOW_SYSTEM is defined.
10274 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10275 when HAVE_WINDOW_SYSTEM is defined.
10276
10277 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10278 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10279
10280 * xfaces.c: Include font.h unconditionally.
10281 (merge_face_ref, merge_face_vectors)
10282 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10283
102842008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10285
10286 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10287 indirect_variable.
10288 * eval.c (lisp_indirect_variable): New fun.
10289 (Fuser_variable_p): Use it.
10290
102912008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10292
10293 * lisp.h (indirect_variable):
10294 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10295 Use Lisp_Symbol pointers rather than Lisp_Object.
10296 Adjust callers.
10297 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10298 To this end, change calling-convention.
10299
10300 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10301 if some non-hidden buffers are selected by string&pred.
10302
103032008-05-19 Chong Yidong <cyd@stupidchicken.com>
10304
10305 * process.c (wait_reading_process_output): Always check status
10306 when in batch mode.
10307
103082008-05-19 Kenichi Handa <handa@m17n.org>
10309
10310 * font.c (font_list_entities): Fix handling of cache.
10311 (font_matching_entity): Likewise.
10312
10313 * ftfont.c (cs_iso8859_1): Delete.
10314 (ft_face_cache): New variable.
10315 (struct ftfont_info): New member fc_charset_idx.
10316 (ftfont_build_basic_charsets): Delete.
10317 (fc_charset_table): New variable.
10318 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10319 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10320 Callers changed.
10321 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10322 (ftfont_spec_pattern): New argument fc_charset_idx.
10323 Check registry more rigidly. Change callers.
10324 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10325 change of :font-entity property of the font.
10326
10327 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10328 property of the font.
10329
103302008-05-18 Juanma Barranquero <lekktu@gmail.com>
10331
10332 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10333 (Funencodable_char_position, Fcheck_coding_systems_region)
10334 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10335 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10336 (Ffind_operation_coding_system, Fset_coding_system_priority)
10337 (Fcoding_system_eol_type): Doc fixes.
10338
103392008-05-17 Glenn Morris <rgm@gnu.org>
10340
10341 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10342
103432008-05-16 Eli Zaretskii <eliz@gnu.org>
10344
10345 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10346 and st_gid.
10347
10348 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10349 HAVE_WINDOW_SYSTEM is not defined.
10350
10351 * xfaces.c (merge_face_ref, merge_face_vectors)
10352 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10353 HAVE_WINDOW_SYSTEM is defined.
10354 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10355
103562008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10357
10358 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10359
103602008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10361
10362 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10363
103642008-05-15 Kenichi Handa <handa@m17n.org>
10365
10366 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10367 preference.
10368
103692008-05-15 Glenn Morris <rgm@gnu.org>
10370
10371 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10372
103732008-05-15 Chong Yidong <cyd@stupidchicken.com>
10374
10375 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10376 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10377
10378 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10379
103802008-05-15 Kenichi Handa <handa@m17n.org>
10381
10382 * ftfont.c (ftfont_list): Downcase family name to check generic
10383 families.
10384
10385 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10386 font-spec for QCfont value.
10387
10388 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10389 buffer. Check the return value of it.
10390
103912008-05-14 Jason Rumney <jasonr@gnu.org>
10392
10393 * w32term.c (w32_get_glyph_overhangs): Remove.
10394 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10395
103962008-05-14 Kenichi Handa <handa@m17n.org>
10397
10398 * font.c (font_prop_validate): Make nil a valid value.
10399 (font_clear_cache): Check if the cached vector of entities is nil
10400 or not.
10401
104022008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10403
10404 * emacs.c (main_thread): Conditionalize on
10405 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10406 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10407
10408 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10409 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10410 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10411
104122008-05-14 Kenichi Handa <handa@m17n.org>
10413
10414 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10415 has no corresponding coding system.
10416
104172008-05-14 Jason Rumney <jasonr@gnu.org>
10418
10419 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10420
10421 * w32font.h (w32font_open_internal): Update declaration.
10422
10423 * w32font.c (w32font_open_internal): Change last argument from
10424 w32font_info struct to font object. Fill in font object from
10425 font_entity. Get Outline metrics if possible. Use them to
10426 calculate underline position and thickness. Use xlfd name as name
10427 property. Don't set codepage.
10428 (w32font_open): Pass font_object to w32font_open_internal. Don't
10429 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10430 (w32font_draw): Use s->font.
10431 (clear_cached_metrics): Don't clear non-existent blocks.
10432
10433 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10434 font was not found.
10435 (x_draw_glyph_string): Use underline position and thickness from font.
10436
10437 * w32uniscribe.c (uniscribe_open): Pass font_object to
10438 w32font_open_internal.
10439
104402008-05-14 Kenichi Handa <handa@m17n.org>
10441
10442 These changes are to delete all legacy font-handling codes, and
10443 make Emacs use only font-backends.
10444
10445 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10446 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10447
10448 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10449
10450 * charset.h (Vcharset_non_preferred_head)
10451 (Vcurrent_iso639_language): Extern them.
10452
10453 * charset.c (Vcharset_non_preferred_head): New variable.
10454 (Vcurrent_iso639_language): New variable.
10455 (syms_of_charset): Declare it as a Lisp variable.
10456 (char_charset): Don't check non preferred charsets. As a last
10457 resort, return charset_unicode.
10458 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10459
10460 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10461 conditionals. Don't check enable_font_backend. Delete all codes
10462 used only when USE_FONT_BACKEND is not defined.
10463
10464 * dispextern.h (struct glyph_string): Change type of `font' to
10465 `struct font *'.
10466 (struct glyph_string): New member underline_position and
10467 underline_thickness.
10468 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10469 (struct face): Change type of `font' to `struct font *'. Remove
10470 members `font_name', `font_info_id'.
10471 (per_char_metric, encode_char): Delete externs.
10472 (calc_pixel_width_or_height): Adjust the prototype.
10473
10474 * emacs.c (enable_font_backend): Delete extern.
10475 (main): Don't set enable_font_backend. Don't check the command
10476 line argument "-disable-font-backend".
10477
10478 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10479 (enum font_property_index): New members FONT_DPI_INDEX,
10480 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10481 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10482 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10483 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10484 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10485 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10486 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10487 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10488 (struct font_spec, struct font_entity): New structs.
10489 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10490 (struct font): Many members from old "struct font_info" moved to
10491 here. Members font and entity deleted.
10492 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10493 the new font-related objects.
10494 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10495 (CHECK_FONT_GET_OBJECT): Likewise.
10496 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10497 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10498 (struct font_driver): New members case_sensitive anc check. Type
10499 of the member list and open changed.
10500 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10501 (font_symbolic_width, font_find_object, font_get_spec)
10502 (font_set_lface_from_name): Delete extern.
10503 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10504
10505 * font.c: Include <strings.h>.
10506 (enable_font_backend): Delete it.
10507 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10508 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10509 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10510 (null_string): Delete it.
10511 (null_vector): Make it static.
10512 (font_family_alist): Delete it.
10513 (Qnormal): Extern it.
10514 (QCextra, QClanguage): Delete it.
10515 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10516 (font_make_spec, font_make_entity, font_make_object)
10517 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10518 the string. Callers changed.
10519 (font_pixel_size): Adjusted for the format change of font-related
10520 objects.
10521 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10522 (font_style_to_value, font_style_symbolic): New function.
10523 (build_font_family_alist): Delete it.
10524 (font_registry_charsets): Use Fassoc_string instead of
10525 assq_no_quit.
10526 (font_prop_validate_symbol): Don't return null_string.
10527 (font_prop_validate_style): Adjusted for the change of
10528 style-related values in a font vector.
10529 (font_property_table): Delete entries for QClanguage and
10530 QCantialias, add entries for QCavgwidth.
10531 (get_font_prop_index): Delete the 2nd argument FROM.
10532 (font_prop_validate): Arguments changed.
10533 (font_put_extra): Adjusted for the change of font-related objects.
10534 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10535 (font_parse_fcname, font_unparse_fcname)
10536 (font_prepare_composition): Likewise.
10537 (font_parse_family_registry): Renamed from font_merge_old_spec.
10538 (otf_open): Delete the 1st arg entity.
10539 (font_otf_capability): Adjusted for the above change.
10540 (font_score): New arg alternate_families. Adjusted for the change
10541 of font-related objects.
10542 (font_sort_entites): New arg best_only.
10543 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10544 Delete them.
10545 (font_match_p): Check alternate families.
10546 (font_find_object): Delete it.
10547 (font_check_object): New function.
10548 (font_clear_cache): Adjusted for the change of font-related objects.
10549 (font_delete_unmatched): New arg.
10550 (font_list_entities): Call font_driver->list with a spec that
10551 doesn't specify style-related properties.
10552 (font_matching_entity): Arguments changed. Caller changed.
10553 (font_open_entity): Adjusted for the change of font-related objects.
10554 (font_close_object, font_has_char, font_encode_char)
10555 (font_get_name, font_get_spec): Likewise.
10556 (font_spec_from_name, font_clear_prop, font_update_lface):
10557 New functions.
10558 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10559 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10560 (font_at): Adjusted for the change of font-related objects.
10561 (font_range): New function.
10562 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10563 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10564 (Fcopy_font_spec, Fmerge_font_spec): New function.
10565 (Ffont_family_list): Renamed from list-families.
10566 (Finternal_set_font_style_table): Arguments changed.
10567 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10568 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10569 change of font-related objects.
10570 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10571
10572 * fontset.h (struct font_info): Delete it. Most members go to
10573 struct font.
10574 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10575 (enum FONT_SPEC_INDEX): Delete it.
10576 (font_info, list_fonts_func, load_font_func, query_font_func)
10577 (set_frame_fontset_func, find_ccl_program_func)
10578 (get_font_repertory_func, new_fontset_from_font_name): Delete
10579 externs.
10580 (fontset_from_font_name): Extern it.
10581 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10582 (FONT_INFO_FROM_FACE): Deleted.
10583 (face_for_font): Adjust prototype.
10584
10585 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10586 conditionals. Don't check enable_font_backend. Delete all codes
10587 used only when USE_FONT_BACKEND is not defined.
10588 (get_font_info_func, list_font_func, load_font_func)
10589 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10590 (get_font_repertory_func): Delete them.
10591 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10592 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10593 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10594 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10595 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10596 (fontset_compare_rfontdef): New function.
10597 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10598 rfont-defs by qsort. Adjusted for the change of font-group vector.
10599 (load_font_get_repertory): Deleted.
10600 (fontset_find_font): Use new macros to ref/set elements of
10601 font-def and rfont-def.
10602 (fontset_font): Fix the timing of remembering that no font for C.
10603 (free_face_fontset): Do nothing if the face has no fontset.
10604 (face_suitable_for_char_p): Use new macros to ref/set elements of
10605 rfont-def.
10606 (face_for_char): Likewise. Call face_for_char with font_object.
10607 (fs_load_font): Delete. Delete #pragma surrounding it.
10608 (fs_query_fontset): Use strcasecmp instead of strcmp.
10609 (generate_ascii_font_name): Adjusted for the format change of
10610 font-spec.
10611 (Fset_fontset_font): Likewise. Use new macros to set elements of
10612 font-def.
10613 (Fnew_fontset): Use font_unparse_xlfd to generate
10614 FONTSET_ASCII (fontset).
10615 (new_fontset_from_font_name): Deleted.
10616 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10617 a fontset is already created for the font. FIx updating of
10618 Vfontset_alias_alist.
10619 (fontset_ascii_font): Deleted.
10620 (Ffont_info): Adjusted for the format change of font-spec.
10621 (Finternal_char_font): Likewise.
10622 (Ffontset_info): Likewise.
10623 (syms_of_fontset): Don't check load_font_func.
10624
10625 * fns.c (internal_equal): Handle PREV_FONT.
10626
10627 * frame.h: Delete USE_FONT_BACKEND conditional.
10628
10629 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10630 conditionals. Don't check enable_font_backend. Delete all codes
10631 used only when USE_FONT_BACKEND is not defined.
10632 (x_set_font): Call x_new_font, not x_new_fontset2.
10633 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10634 already set for the frame.
10635
10636 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10637 a font-entity by font_make_entity. Use font_intern_prop instead
10638 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10639 font property. If a font is scalable, set avgwidth property to 0.
10640 Set font-entity property by font_put_extra.
10641 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10642 (ffont_driver): Adjusted for the change of struct font_driver.
10643 (ftfont_spec_pattern): New function.
10644 (ftfont_list): Return a list, not vector.
10645 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10646 (ftfont_list_family): Don't downcase names.
10647 (ftfont_free_entity): Deleted.
10648 (ftfont_open): Return a font-object. Adjusted for the change of
10649 struct font. Get underline_thickness and underline_position from
10650 font property. Don't update dpyinfo->smallest_font_height and
10651 dpyinfo->smallest_char_width.
10652 (ftfont_close): Don't free `struct font'.
10653 (ftfont_has_char): Adjusted for the format change of font-entity.
10654 (ftfont_encode_char, ftfont_text_extents): Likewise.
10655
10656 * ftxfont.c (ftxfont_list): Return a list, not vector.
10657 (ftxfont_open): Return a font-object. Adjusted for the change of
10658 struct font. Get underline_thickness and underline_position from
10659 font property. Don't update dpyinfo->smallest_font_height and
10660 dpyinfo->smallest_char_width.
10661 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10662 (ftxfont_draw): Adjusted for the change of struct font.
10663
10664 * image.c (image_ascent): Don't include "charset.h". Include
10665 "character.h" and "font.h".
10666
10667 * lisp.h (enum pvec_type): New member PREV_FONT.
10668 (Fassoc_string): EXFUN it.
10669
10670 * print.c: Include font.h.
10671 (print_object): Handle font-related objects.
10672
10673 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10674 conditionals. Don't check enable_font_backend. Delete all codes
10675 used only when USE_FONT_BACKEND is not defined.
10676 (handle_auto_composed_prop): Do nothing if it->f is not on a
10677 window system. Check how many following characters can be
10678 displayed by the same font.
10679 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10680 'struct font *'.
10681 (get_char_face_and_encoding): Assign the whole encoding task to
10682 the `encode-char' method of a font driver.
10683 (fill_composite_glyph_string): Adjusted for the change of `struct
10684 face' and `struct glyph_string'.
10685 (fill_glyph_string): Likewise.
10686 (get_per_char_metric): Arguments changed.
10687 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10688 and `struct glyph_string'.
10689 (produce_stretch_glyph, calc_line_height_property)
10690 (x_produce_glyphs): Likewise.
10691
10692 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10693 conditionals. Don't check enable_font_backend. Delete all codes
10694 used only when USE_FONT_BACKEND is not defined. Use
10695 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10696 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10697 (Qp): Extern them.
10698 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10699 Deleted.
10700 (struct font_name): Deleted.
10701 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10702 (compare_fonts_by_sort_order): New function.
10703 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10704 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10705 Deleted.
10706 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10707 compare_fonts_by_sort_order.
10708 (Fx_font_family_list): Call Ffont_family_list.
10709 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10710 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10711 (face_symbolic_slant, face_symbolic_swidth)
10712 (split_font_name_into_vector, build_font_name_from_vector)
10713 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10714 (font_rescale_ratio, split_font_name, build_font_name)
10715 (free_font_names, sort_fonts, x_face_list_fonts)
10716 (face_font_available_p, sorted_font_list, cmp_font_names)
10717 (font_list_1, concat_font_list, font_list, remove_duplicates):
10718 Deleted.
10719 (Fx_list_fonts): Use Ffont_list.
10720 (LFACE_AVGWIDTH): Deleted.
10721 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10722 by FONTP.
10723 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10724 (set_lface_from_font_name): Delete it.
10725 (set_lface_from_font): Renamed from
10726 set_lface_from_font_and_fontset. Caller changed. Don't set
10727 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10728 for face.
10729 (merge_face_vectors): Copy font-spec if necessary.
10730 Clear properties of the font-spec if necessary.
10731 (merge_face_ref): Clear properties of the font-spec if necessary.
10732 (Finternal_set_lisp_face_attribute): Likewise.
10733 (set_font_frame_param): Use font_load_for_lface to load a
10734 font-object, and call Fmodify_frame_parameters with it.
10735 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10736 font name by Ffont_xlfd_name.
10737 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10738 QCslant, and QCwidth.
10739 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10740 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10741 Compare fonts by EQ.
10742 (lookup_non_ascii_face): Deleted.
10743 (face_for_font): The 2nd argument changed.
10744 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10745 Check atomic font properties by case insensitive.
10746 (realize_non_ascii_face): Set face->overstrike correctly.
10747 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10748 (dump_realized_face): Get font name from
10749 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10750
10751 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10752 conditionals. Don't check enable_font_backend. Delete all codes
10753 used only when USE_FONT_BACKEND is not defined.
10754 (xic_create_xfontset): Original code deleted and renamed from
10755 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10756 (x_make_gc): Don't set GCFont in GCs.
10757 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10758 opened by "fixed".
10759 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10760 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10761 get_font_repertory_func.
10762
10763 * xfont.c: Include <stdlib.h> and "ccl.h".
10764 (struct xfont_info): New structure.
10765 (xfont_query_font): Deleted.
10766 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10767 moved from xterm.c.
10768 (xfont_driver): Adjusted for the change of struct font_driver.
10769 (compare_font_names): New function.
10770 (xfont_list_pattern): Sort font names case insensitively. Make
10771 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10772 (xfont_list): Return a list, not vector.
10773 (xfont_match): If the font doesn't have QCname property, generate
10774 a name from the other font properties.
10775 (xfont_open): Return a font-object. Adjusted for the change of
10776 struct font. Get underline_thickness and underline_position from
10777 font property. Don't update dpyinfo->smallest_font_height and
10778 dpyinfo->smallest_char_width.
10779 (xfont_close): Don't free struct font.
10780 (xfont_prepare_face): Adjusted for the change of struct font.
10781 (xfont_done_face): Deleted.
10782 (xfont_has_char): Adjusted for the change of struct font.
10783 (xfont_encode_char, xfont_draw): Likewise.
10784 (xfont_check): New function.
10785
10786 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10787 callback function.
10788 (xftfont_match): Adjusted for the format change of font-entity.
10789 (xftfont_open): Adjusted for the format change of font-entity and
10790 font-object. Adjusted for the change of struct font. Return a
10791 font-object. Don't update dpyinfo->smallest_font_height and
10792 dpyinfo->smallest_char_width.
10793 (xftfont_close): Block input while calling XftFontClose.
10794 (xftfont_prepare_face): Don't block input while calling
10795 xftfont_get_colors. Adjusted for the change of struct font.
10796 (xftfont_shape): Return value of error case fixed.
10797
10798 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10799
10800 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10801 conditionals.
10802 (FONT_WIDTH): Return (f)->max_width.
10803 (struct x_display_info): Delete member `font'.
10804 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10805 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10806 (struct x_output): Change type of `font' to `struct font *'.
10807
10808 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10809 conditionals. Don't check enable_font_backend. Delete all codes
10810 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10811 (x_per_char_metric, x_encode_char): Deleted.
10812 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10813 (x_compute_glyph_string_overhangs): Adjusted for the change of
10814 `struct face'.
10815 (x_draw_glyph_string_foreground)
10816 (x_draw_composite_glyph_string_foreground): Likewise.
10817 (x_draw_glyph_string): Likewise. Use font->underline_position and
10818 font->underline_thickness.
10819 (x_new_font): Renamed from x_new_fontset2.
10820 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10821 (x_check_font): Call `check' method of a font driver.
10822 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10823 (x_query_font, x_get_font_repertory): Deleted.
10824 (x_find_ccl_program): Renamed and moved to xfont.c.
10825 (x_redisplay_interface): Adjusted for the change of `struct
10826 redisplay_interface'.
10827
10828 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10829 conditionals. Don't check enable_font_backend. Delete all codes
10830 used only when USE_FONT_BACKEND is not defined. Surround non-used
10831 code by "#ifdef OLD_FONT" and "endif".
10832 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10833
10834 * w32font.h (struct w32font_info): New member.
10835 (FONT_COMPAT): New macro.
10836 (w32font_open_internal): Prototype adjusted.
10837
10838 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10839 OLD_FONT" and "endif".
10840
10841 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10842 conditionals. Don't check enable_font_backend. Delete all codes
10843 used only when USE_FONT_BACKEND is not defined.
10844 (w32font_open): Return a font-object. Make a font-object by
10845 font_make_object. Adjusted for the change of struct w32font_info.
10846 (w32font_close): Don't free struct font. Adjusted for the change
10847 of struct w32font_info.
10848 (w32font_encode_char, w32font_text_extents, w32font_draw):
10849 Adjusted for the change of struct w32font_info.
10850 (w32font_draw): Likewise.
10851 (w32font_list_internal): Return a list, not vector.
10852 (w32font_open_internal): Change the 4th arg to font-object.
10853 Adjusted for the change of struct w32font_info and font-object format.
10854 (add_font_name_to_list): Don't downcase names.
10855 (w32_enumfont_pattern_entity): Make a font-entity by
10856 font_make_entity. Adjusted for the format change of font-entity.
10857 Use FONT_SET_STYLE to set a style-related font property. If a
10858 font is scalable, set avgwidth property to 0. Set font-entity
10859 property by font_put_extra.
10860 (font_matches_spec): Adjusted for the format change of font-entity.
10861 (w32_weight_table, w32_decode_weight): New variables.
10862 (w32_encode_weight): New function.
10863 (fill_in_logfont): Adjusted for the format change of font-spec.
10864 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10865 weight value.
10866 (w32font_driver): Adjusted for the change of struct font_driver.
10867
10868 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10869 conditionals. Don't check enable_font_backend. Surround non-used
10870 code by "#ifdef OLD_FONT" and "endif".
10871 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10872 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10873
10874 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10875 conditionals. Don't check enable_font_backend. Delete all codes
10876 used only when USE_FONT_BACKEND is not defined. Surround non-used
10877 code by "#ifdef OLD_FONT" and "endif".
10878
10879 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10880 (uniscribe_open): Return value changed to font-object.
10881 Adjusted for the format change of font-object.
10882 (uniscribe_otf_capability): Adjusted for the change of struct font.
10883 (add_opentype_font_name_to_list): Don't downcase names.
10884 (uniscribe_font_driver): Adjusted for the change of struct
10885 font_driver.
10886
108872008-05-13 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * dispnew.c (update_frame_1): Check if tty output is still valid
10890 before flushing it.
10891
108922008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10893
10894 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10895 to Gtk+ menus.
10896
108972008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10898
10899 * dired.c (file_name_completion): Tweak the code so as to always do it
10900 in a single pass. Tighten the scope of some variables.
10901
10902 * dired.c (Qdefault_directory): New var.
10903 (file_name_completion): Use it instead of Fexpand_file_name.
10904 (syms_of_dired): Initialize it.
10905
109062008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10907
10908 * fileio.c (double_dollars): Remove dead code.
10909
109102008-05-10 Eli Zaretskii <eliz@gnu.org>
10911
10912 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10913 Mention w32-get-true-file-attributes in doc string.
10914
10915 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10916
109172008-05-09 Glenn Morris <rgm@gnu.org>
10918
10919 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10920 2008-04-23.
10921
109222008-05-09 Eli Zaretskii <eliz@gnu.org>
10923
10924 Support for reporting owner and group of each file on MS-Windows:
10925 * dired.c (stat_uname, stat_gname): New functions, with special
10926 implementation for w32.
10927 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10928
10929 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10930 (dflt_group_name): New static variable.
10931 (dflt_group): Rename from the_group.
10932 (init_user_info): Init dflt_group fields. Get user's group name
10933 from LookupAccountSid.
10934 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10935 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10936 New initialization states.
10937 (globals_of_w32): Initialize them to zero. Initialize the default
10938 group name to "None".
10939 (GetFileSecurity_Name): New global var, the name of the function
10940 to call for GetFileSecurity.
10941 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10942 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10943 (get_file_security, get_security_descriptor_owner)
10944 (get_security_descriptor_group, is_valid_sid)
10945 (get_file_security_desc, get_rid, get_name_and_id)
10946 (get_file_owner_and_group): New functions.
10947 (stat): Use get_file_security_desc and get_file_owner_and_group to
10948 report the owner and primary group of each file. Don't ignore the
10949 high 32 bits of file's size, now that st_size is 64-bit wide.
10950 Fix test when to get true file attributes.
10951 (init_user_info): Use get_rid instead of equivalent inline code.
10952 (fstat): Don't ignore the high 32 bits of file's size.
10953
109542008-05-09 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * image.c (png_load): Use correct bit-depth for setting background
10957 color.
10958
109592008-05-08 Eli Zaretskii <eliz@gnu.org>
10960
10961 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10962 epa-hook.elc.
10963
109642008-05-08 Juanma Barranquero <lekktu@gmail.com>
10965
10966 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10967
109682008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10969
10970 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10971 because the original parameters are in pure storage now.
10972 (mac_window): Remove unused params. Update callers.
10973
109742008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10975
10976 * lread.c (substitute_object_recurse): Use lower-level primitives.
10977 Don't signal errors when traversing sub-char-tables.
10978 Don't loop over all the possible characters when traversing char-tables.
10979
10980 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10981 just like we do in print.c.
10982
109832008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10984
10985 * minibuf.c (Ftry_completion): Remove code left over from when we used
10986 scmp instead of Fcompare_strings.
10987
109882008-05-04 Juanma Barranquero <lekktu@gmail.com>
10989
10990 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10991
109922008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10993
10994 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10995 Create bitmap context in native byte order.
10996
10997 * macterm.c (XDrawLine)
10998 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10999 context in native byte order.
11000
110012008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11002
11003 * config.in: Regenerate.
11004
11005 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11006 New definitions for Image I/O support.
11007 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11008 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11009 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11010 (mac_data_provider_release_data, image_load_image_io)
11011 [USE_MAC_IMAGE_IO]: New functions.
11012 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11013 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11014 (init_image_func_pointer) [MAC_OSX]: Remove function.
11015 (image_load_quartz2d) [MAC_OSX]: Check availability of
11016 CGImageCreateWithPNGDataProvider at compile time.
11017 Use lowercase `false' for boolean constant.
11018 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11019 Use image_load_image_io.
11020 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11021 Don't check MyCGImageCreateWithPNGDataProvider.
11022 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11023 Don't call init_image_func_pointer.
11024
11025 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11026
11027 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11028 Make variable non-static.
11029 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11030 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11031
11032 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11033 (RED_FROM_ULONG): Mask off higher bits.
11034 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11035
11036 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11037 Include AvailabilityMacros.h.
11038 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11039 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11040
110412008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11042
11043 * chartab.c (Fset_char_table_range): If range is t, really set all
11044 chars to that value.
11045
110462008-05-03 Eli Zaretskii <eliz@gnu.org>
11047
11048 * dired.c (Ffile_attributes): Don't allow the device number become
11049 negative.
11050
110512008-05-02 Daiki Ueno <ueno@unixuser.org>
11052
11053 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11054
110552008-05-02 Juri Linkov <juri@jurta.org>
11056
11057 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11058 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11059 DEFAULT argument as a list of default values in docstrings.
11060
110612008-05-01 Chong Yidong <cyd@stupidchicken.com>
11062
11063 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11064
110652008-05-01 Martin Rudalics <rudalics@gmx.at>
11066
11067 * dispnew.c (change_frame_size_1): Preserve small windows when
11068 shrinking frames by calling set_window_height|width with third
11069 arg 2.
11070
11071 * window.h (struct window): Replace field too_small_ok by field
11072 resize_proportionally.
11073
11074 * window.c (make_window): Initialize resize_proportionally.
11075 (enlarge_window): Temporarily set resize_proportionally to make
11076 sure that shrink_windows does scale the window proportionally.
11077 (shrink_windows): When window has resize_proportionally set try
11078 to shrink it proportionally by stealing from other windows.
11079 (struct saved_window, Fset_window_configuration)
11080 (compare_window_configurations): Handle resize_proportionally.
11081 (WINDOW_TOTAL_SIZE): New macro.
11082 (window_min_size, shrink_windows, size_window): Use it.
11083 (check_min_window_sizes): Remove. Invalid values of
11084 window-min-height|width are handled by window_min_size_2 now.
11085 (size_window, Fsplit_window, enlarge_window)
11086 (adjust_window_trailing_edge, grow_mini_window): Don't call
11087 check_min_window_sizes.
11088 (window_min_size_2, window_min_size_1, window_min_size):
11089 New argument safe_p for retrieving "safe" minimum sizes.
11090 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11091 (adjust_window_trailing_edge, grow_mini_window):
11092 Adjust arguments of window_min_size... functions.
11093 (shrink_windows): Argument min_size removed. New argument
11094 safe_p allows shrinking windows to their safe minimum sizes.
11095 Calculate minimum size and decide whether a window shall be
11096 deleted for each window individually.
11097 (size_window): When nodelete_p equals 2, tell shrink_windows to
11098 delete windows only if their new minimum size is no more safe.
11099 (shrink_window_lowest_first): Call window_min_size_1 to make
11100 sure to preserve modeline of bottom-most window when resizing
11101 the minibuffer.
11102 (Fset_window_configuration, Fcurrent_window_configuration)
11103 (compare_window_configurations): Do not handle
11104 window-min-height|width any more.
11105 (syms_of_window): Clarify window-min-height|width doc-strings.
11106
111072008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11108
11109 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11110 some more. Copy some of the code from Ftry_completions.
11111 Remove special case code that dates back to initial revision when the
11112 slash was only added when necessary and that can't trigger nowadays.
11113
111142008-04-27 Kenichi Handa <handa@m17n.org>
11115
11116 * font.c (font_prop_validate): Signal `error' instead of `font'.
11117
111182008-04-29 Jason Rumney <jasonr@gnu.org>
11119
11120 * w32fns.c (Fw32_battery_status): New defun.
11121 (syms_of_w32fns): Defsubr it.
11122
111232008-04-28 Andreas Schwab <schwab@suse.de>
11124
11125 * dired.c (file_name_completion): Fix another mixing of encoded
11126 and decoded names.
11127
111282008-04-28 Juanma Barranquero <lekktu@gmail.com>
11129
11130 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11131
111322008-04-27 Juanma Barranquero <lekktu@gmail.com>
11133
11134 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11135
111362008-04-27 Andreas Schwab <schwab@suse.de>
11137
11138 * dired.c (file_name_completion): Fix inappropriate mixing of
11139 encoded and decoded names.
11140
11141 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11142
11143 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11144
111452008-04-26 Eli Zaretskii <eliz@gnu.org>
11146
11147 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11148 2008-03-31, it's not needed anymore with `struct stat' definition
11149 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11150 for the same reasons.
11151
111522008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11153
11154 * m/sparc.h: Additional redefinitions for GNU/Linux.
11155
111562008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11157
11158 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11159 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11160 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11161 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11162 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11163 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11164 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11165 Likewise.
11166
11167 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11168 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11169 (mac_ax_number_of_characters): Add externs.
11170 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11171 [USE_MAC_TSM]: Likewise.
11172 (mac_handle_text_input_event) [MAC_OSX]:
11173 Handle kEventTextInputOffsetToPos for no active input area case.
11174 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11175 (mac_handle_document_access_event)
11176 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11177 (install_application_handler) [MAC_OSX]: Register handlers for
11178 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11179 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11180 Register mac_handle_document_access_event.
11181
11182 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11183 Make functions non-static.
11184
111852008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11186
11187 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11188 (read_file_name_completion_ignore_case, insert_default_directory)
11189 (Qdefault_directory): Move to minibuffer.el.
11190 (Fread_file_name): Call the new `read-file-name' instead.
11191
111922008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11193
11194 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11195 Make function non-static.
11196 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11197 Remove function.
11198 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11199 Move to mactoolbox.c.
11200 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11201
11202 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11203 (mac_rect_make): New macro.
11204
11205 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11206 instead of float.
11207 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11208 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11209 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11210 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11211 CGRectMake.
11212 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11213 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11214 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11215 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11216 instead of WindowRef in argument type.
11217 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11218 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11219 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11220 instead of DISPLAY. All uses changed.
11221 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11222 (x_calc_absolute_position): Simplify so as not to use
11223 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11224
11225 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11226 instead of WindowRef in argument type.
11227 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11228 [TARGET_API_MAC_CARBON]: Remove externs.
11229 (create_apple_event, mac_event_parameters_to_lisp)
11230 [TARGET_API_MAC_CARBON]: Add externs.
11231
11232 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11233 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11234 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11235 is clicked.
11236 (x_activate_menubar): Remove extern for saved_menu_event_location.
11237 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11238 Move from mac.c.
11239
112402008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11241
11242 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11243 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11244
112452008-04-23 Jason Rumney <jasonr@gnu.org>
11246
11247 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11248 attributes only for local files.
11249
11250 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11251 default to Qlocal.
11252
112532008-04-22 Juri Linkov <juri@jurta.org>
11254
11255 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11256 read-buffer-to-switch instead of using the letter "B".
11257
112582008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11259
11260 * fileio.c (Qdefault_directory): New variable.
11261 (Fread_file_name): Use it to pass `dir' to the completion functions.
11262
112632008-04-20 Chong Yidong <cyd@stupidchicken.com>
11264
11265 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11266
112672008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * keyboard.c (Vpre_help_message): Remove.
11270 (show_help_echo): Remove default C code.
11271
11272 * dired.c (directory_files_internal, file_name_completion):
11273 Only call ENCODE_FILE if the string is indeed decoded.
11274
112752008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11276
11277 * Makefile.in (TOOLKIT_DEFINES): Remove.
11278 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11279
112802008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11281
11282 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11283 (mactoolbox.o): New target.
11284
11285 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11286 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11287
11288 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11289 Use mac_set_frame_window_background instead of XSetWindowBackground.
11290 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11291 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11292 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11293 instead of SetWindowTitleWithCFString.
11294 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11295 Move function to mactoolbox.c.
11296 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11297 Use mac_set_window_modified instead of SetWindowModified.
11298 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11299 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11300 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11301 FrontNonFloatingWindow. Use mac_activate_window instead of
11302 ActivateWindow. Use mac_active_non_floating_window instead of
11303 ActiveNonFloatingWindow.
11304 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11305 Use mac_show_hourglass and mac_hide_hourglass.
11306 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11307 instead of GetGlobalMouse.
11308 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11309 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11310 Use mac_bring_window_to_front instead of BringToFront.
11311 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11312 mactoolbox.c.
11313 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11314 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11315 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11316 mactoolbox.c.
11317
11318 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11319 (XtPointer): Move typedef from macmenu.c.
11320 (enum button_type): Move enum from macmenu.c.
11321 (widget_value): Move typedef from macmenu.c.
11322 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11323 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11324 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11325 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11326 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11327 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11328 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11329 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11330 (Selection): Move typedef from macselect.c.
11331 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11332 macterm.c.
11333 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11334 (mac_is_window_collapsed, mac_bring_window_to_front)
11335 (mac_send_window_behind, mac_hide_window, mac_show_window)
11336 (mac_collapse_window, mac_front_non_floating_window)
11337 (mac_active_non_floating_window, mac_activate_window)
11338 (mac_move_window_structure, mac_move_window, mac_size_window)
11339 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11340
11341 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11342 (enum mac_menu_kind): Move enum to mactoolbox.c.
11343 (min_menu_id): Move variable to mactoolbox.c.
11344 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11345 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11346 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11347 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11348 [TARGET_API_MAC_CARBON]: Likewise.
11349 (XtPointer): Move typedef to macgui.h.
11350 (enum button_type): Move enum to macgui.h.
11351 (widget_value): Move typedef to macgui.h.
11352 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11353 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11354 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11355 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11356 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11357 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11358 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11359 (popup_activated_flag): Make variable non-static.
11360 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11361 (add_menu_item, fill_menu, dispose_menus):
11362 Move functions to mactoolbox.c.
11363 (restore_show_help_function, menu_target_item_handler)
11364 (install_menu_target_item_handler, mac_handle_dialog_event)
11365 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11366 [TARGET_API_MAC_CARBON]: Likewise.
11367 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11368 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11369 (find_and_call_menu_selection, name_is_separator): Make function
11370 non-static.
11371 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11372 to mactoolbox.c.
11373 (set_frame_menubar): Don't call install_menu_quit_handler.
11374 (menu_item_selection): New variable.
11375 (mac_menu_show): Use create_and_show_popup_menu.
11376 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11377 selection but set variable menu_item_selection. All uses changed.
11378 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11379 Call install_menu_quit_handler. Move to mactoolbox.c.
11380
11381 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11382 (Selection): Move typedef to macgui.h.
11383 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11384 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11385 Make variables non-static.
11386 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11387 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11388 Make functions non-static.
11389 (Vmac_service_selection) [MAC_OSX]: Likewise.
11390 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11391 (mac_valid_selection_target_p, mac_clear_selection)
11392 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11393 (mac_put_selection_value, mac_selection_has_target_p)
11394 (mac_get_selection_value, mac_get_selection_target_list)
11395 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11396 Move functions to mactoolbox.c.
11397 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11398 Likewise.
11399 (copy_scrap_flavor_data, mac_handle_service_event)
11400 (install_service_handler) [MAC_OSX]: Likewise.
11401 (syms_of_macselect) <Vmac_dnd_known_types>:
11402 Use mac_dnd_default_known_types.
11403
11404 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11405 Move to mactoolbox.c.
11406 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11407 (Fx_selection_owner_p): Add EXFUN.
11408 (install_window_handler, remove_window_handler, XSetWindowBackground):
11409 Remove externs.
11410 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11411 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11412 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11413 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11414 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11415 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11416 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11417 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11418 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11419 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11420 (mac_valid_selection_target_p, mac_clear_selection)
11421 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11422 (mac_put_selection_value, mac_selection_has_target_p)
11423 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11424 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11425 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11426 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11427 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11428 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11429 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11430 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11431 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11432
11433 * mactoolbox.c: New file.
11434
114352008-04-18 Jason Rumney <jasonr@gnu.org>
11436
11437 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11438
114392008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11440
11441 * character.c (Fmultibyte_char_to_unibyte):
11442 Return latin1 chars unchanged.
11443
11444 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11445 relocated if it points to `name'.
11446
114472008-04-17 Kenichi Handa <handa@m17n.org>
11448
11449 * data.c (Faset): Allow setting a multibyte character in an
11450 ASCII-only unibyte string.
11451
11452 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11453
114542008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11455
11456 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11457 done in config.h.
11458
114592008-04-16 Juanma Barranquero <lekktu@gmail.com>
11460
11461 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11462 (Fchar_direction): Add usage in the docstring.
11463
114642008-04-15 Chong Yidong <cyd@stupidchicken.com>
11465
11466 * keyboard.c (read_key_sequence): Remove always-true checks.
11467
114682008-04-14 Jason Rumney <jasonr@gnu.org>
11469
11470 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11471 compatibility struct, for better underline positioning.
11472
114732008-04-13 David Hansen <david.hansen@gmx.net>
11474
11475 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11476 string.
11477
114782008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11479
11480 * m/hp800.h (XUINT, XSET): Remove.
11481
114822008-04-12 Juanma Barranquero <lekktu@gmail.com>
11483
11484 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11485 previous change.
11486
114872008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11490 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11491
114922008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11493
11494 * keymap.h (map_keymap_canonical): Declare.
11495 * xmenu.c (single_keymap_panes): Use it.
11496
114972008-04-11 Glenn Morris <rgm@gnu.org>
11498
11499 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11500 set the target's value to that of the alias.
11501
115022008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11503
11504 * term.c (set_tty_color_mode): Left over typo.
11505
115062008-04-10 Michael Albinus <michael.albinus@gmx.de>
11507
11508 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11509 only after check for file name handler functions. Signal, when
11510 native functionality is not supported.
11511 (syms_of_fileio): Declare it unconditionally.
11512
115132008-04-10 Jason Rumney <jasonr@gnu.org>
11514
11515 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11516 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11517
11518 * w32.c (logon_network_drive): Also logon to remote drives that
11519 are mapped to drive letters.
11520
115212008-04-10 Glenn Morris <rgm@gnu.org>
11522
11523 * xdisp.c (truncate-partial-width-windows): Doc fix.
11524
115252008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11526
11527 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11528 Move functions to minibuffer.el.
11529 (syms_of_fileio): Don't declare them.
11530
115312008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11532
11533 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11534 (syms_of_minibuf): Remove its initialization.
11535
11536 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11537
115382008-04-09 Juanma Barranquero <lekktu@gmail.com>
11539
11540 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11541
115422008-04-09 Jason Rumney <jasonr@gnu.org>
11543
11544 * makefile.w32-in (distclean): Delete makefile too.
11545 (maintainer-clean): New target.
11546
11547 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11548
11549 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11550 for new font backend and composite cases.
11551
115522008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11553
11554 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11555 Most of the code moved to run_timers.
11556 (do_pending_atimers): Call run_timers.
11557 (run_timers): New function.
11558
11559 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11560 run atimers.
11561
11562 * process.c (wait_reading_process_output): The same as above.
11563
115642008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11565
11566 * minibuf.c (last_exact_completion): Remove variable.
11567 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11568 (complete_and_exit_1, complete_and_exit_2)
11569 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11570 (Fdisplay_completion_list, display_completion_list_1)
11571 (Fminibuffer_completion_help, Fself_insert_and_exit)
11572 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11573 minibuffer.el.
11574 (syms_of_minibuf): Remove corresponding initializations.
11575
11576 * keyboard.c (Qdeactivate_mark): New var.
11577 (command_loop_1): Use it to call `deactivate-mark'.
11578 (syms_of_keyboard): Initialize it.
11579
11580 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11581 to another frame.
11582 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11583 Don't call set_tty_color_mode.
11584 (store_frame_param): Reset previous_frame rather than call
11585 set_tty_color_mode.
11586 * term.c (set_tty_color_mode): Rewrite.
11587 * dispextern.h (set_tty_color_mode): New type.
11588 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11589
115902008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11591
11592 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11593 for generic chars, which do not exist any more in emacs-unicode.
11594
115952008-04-08 Michael Albinus <michael.albinus@gmx.de>
11596
11597 * coding.c (detect_coding_emacs_mule)
11598 (Ffind_operation_coding_system): Fix typo.
11599
116002008-04-08 Jason Rumney <jasonr@gnu.org>
11601
11602 * w32uniscribe.c (SNAME): Extract only symbol name.
11603
11604 * w32font.h (struct w32_metric_cache): New struct.
11605 (w32font_info): Use it.
11606 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11607 (CACHE_BLOCKSIZE): New constants.
11608
11609 * w32font.c (Qja, Qko, Qzh): New symbols.
11610 (syms_of_w32font): Initialise them.
11611 (font_matches_spec): Use them to filter by language.
11612 (recompute_cached_metrics): Remove function.
11613 (compute_metrics, clear_cached_metrics): New functions.
11614 (w32font_encode_char): Use them to manage metric cache.
11615 (w32font_text_extents): Cache metrics for all glyphs on demand.
11616 Delay converting glyph indices to WORD until needed.
11617 (w32font_open_internal): Initialize metric cache to empty.
11618 (registry_to_w32_charset): Charset should always be a symbol.
11619 (fill_in_logfont, list_all_matching_fonts): Family should
11620 always be a symbol.
11621
116222008-04-06 Jason Rumney <jasonr@gnu.org>
11623
11624 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11625 Give up if glyph indices not supported. Use uniscribe obtained
11626 ABC widths for individual metrics. Map glyph clusters back to
11627 characters using fClusterStart flag. Return number of glyphs
11628 produced, not chars processed.
11629 (uniscribe_shape): Map char at FROM to current glyph.
11630
116312008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11632
11633 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11634 Use SetMenuItemHierarchicalMenu.
11635
116362008-04-05 Jason Rumney <jasonr@gnu.org>
11637
11638 * image.c (pbm_load): Allow color values up to 65535.
11639 Throw an error if max_color_idx is outside the supported range.
11640 Report an error when image size is invalid.
11641 Read two bytes at a time when raw images have max_color_idx above 255.
11642
116432008-04-05 Eli Zaretskii <eliz@gnu.org>
11644
11645 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11646 cFileName a file name that includes `?' characters, use the 8+3
11647 alias in cAlternateFileName instead.
11648
116492008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11650
11651 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11652 append "CCL: Quitted" when the CCL program is quitted.
11653 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11654
11655 * ccl.h (struct ccl_program): New member quit_silently.
11656
116572008-04-05 Chong Yidong <cyd@stupidchicken.com>
11658
11659 * search.c (compile_pattern_1): Treat non-nil and non-string of
11660 search-spaces-regexp as nil.
11661
11662 * minibuf.c (Fassoc_string): Tweak docstring.
11663
116642008-04-05 Eli Zaretskii <eliz@gnu.org>
11665
11666 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11667 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11668 2008-03-14 to force inode be positive.
11669
11670 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11671 _S_* ones, since we now use our own sys/stat.h.
11672 (stat, fstat): Don't mangle the inode number.
11673 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11674
116752008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11676
11677 * frame.h (struct frame): Give one more bit to `visible' since we use
11678 values larger than 1 to indicate obscured frames on ttys.
11679
11680 * keymap.c (Qkeymap_canonicalize): New var.
11681 (Fmap_keymap_internal): New fun.
11682 (describe_map): Use keymap-canonicalize.
11683
11684 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11685 (Fundo_boundary): Set them.
11686 (syms_of_undo): Initialize them.
11687 (record_point): Use them instead of last_point_position*.
11688 (last_undo_buffer): Change type.
11689
116902008-04-04 Jason Rumney <jasonr@gnu.org>
11691
11692 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11693 (recompute_cached_metrics): Don't set ascent and descent per char.
11694
11695 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11696 (uniscribe_check_otf): Add GC protection before consing.
11697 Rearrange loop for counting features.
11698
116992008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11700
11701 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11702 buffer with byte-size of source buffer.
11703
117042008-04-03 Chong Yidong <cyd@stupidchicken.com>
11705
11706 * callint.c (Fcall_interactively): Handle temporary region even
11707 when shift-select-mode is off.
11708
117092008-04-03 Jason Rumney <jasonr@gnu.org>
11710
11711 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11712
117132008-04-03 Kenichi Handa <handa@m17n.org>
11714
11715 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11716 (CATEGORY_MASK_UTF_16): Likewise.
11717 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11718 binary file.
11719 (detect_coding): Add null-byte detection for a binary file.
11720 (detect_coding_system): Likewise.
11721
117222008-04-03 Jason Rumney <jasonr@gnu.org>
11723
11724 * w32uniscribe.c: New file.
11725
11726 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11727
11728 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11729
11730 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11731 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11732 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11733 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11734 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11735 (Qphonetic): New symbols.
11736 (syms_of_w32font): Initialize them.
11737 (font_supported_scripts): Use them.
11738 (w32font_list_family): List all charsets.
11739 (w32font_text_extents, recompute_cached_metrics): Fix metric
11740 calculations.
11741 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11742 Give opentype fonts their own format.
11743 (font_matches_spec): New arguments backend and logfont.
11744 Handle :otf spec for uniscribe backend.
11745 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11746 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11747
11748 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11749 font backend.
11750 (globals_of_w32fns): Initialize uniscribe font backend.
11751
11752 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11753 dependencies.
11754 (w32uniscribe.$(O)): New file to build.
11755 (FONT_OBJ): Include w32uniscribe.$(O).
11756 (LIBS): Add uniscribe libraries.
11757
11758 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11759
117602008-04-02 Chong Yidong <cyd@stupidchicken.com>
11761
11762 * callint.c (Vshift_select_mode): New var.
11763 (Finteractive): Document new ^ spec.
11764 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11765 is present.
11766
11767 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11768 (command_loop_1): Avoid running the direct display versions of
11769 forward-char and backward-char if shift-selection may occur.
11770 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11771 shift-translation takes place.
11772
11773 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11774 avoid clobbering by define-minor-mode.
11775
11776 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11777 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11778
11779 * syntax.c (Fforward_word): Add ^ interactive spec.
11780
11781 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11782 (Fscroll_right): Add ^ interactive spec.
11783
117842008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11785
11786 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11787
11788 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11789
11790 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11791
117922008-03-31 Juri Linkov <juri@jurta.org>
11793
11794 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11795
117962008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11797
11798 * gtkutil.c (xg_set_geometry): Fix indentation.
11799 (xg_resize_outer_widget): Remove.
11800 (x_wm_size_hint_off): Fix indentation.
11801 (xg_frame_set_char_size): Call flush_and_sync after
11802 gtk_window_resize.
11803 (x_wm_set_size_hint): Pass NULL as geometry window to
11804 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11805 Add menu bar and tool bar height to base height.
11806 (xg_update_frame_menubar, free_frame_menubar)
11807 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11808 (update_frame_tool_bar, free_frame_tool_bar):
11809 Change xg_resize_outer_widget to xg_frame_set_char_size.
11810
118112008-03-30 Michael Albinus <michael.albinus@gmx.de>
11812
11813 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11814 (Fdbus_call_method): New parameter TIMEOUT.
11815 (dbus-send-signal): Optimize UNGCPRO call.
11816
118172008-03-29 Juri Linkov <juri@jurta.org>
11818
11819 * window.c (Fdisplay_buffer): Move call to
11820 Vsplit_window_preferred_function out of conditions that check
11821 if window is eligible for vertical splitting.
11822 When Vsplit_window_preferred_function is non-nil, call it and use
11823 its non-nil return value as window. Otherwise, continue doing
11824 vertical splitting using Fsplit_window with arg horflag=nil.
11825 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11826 default value from `split-window' to nil.
11827
118282008-03-29 Juri Linkov <juri@jurta.org>
11829
11830 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11831 for interactive code letters 'b' and 'B'.
11832
118332008-03-29 Eli Zaretskii <eliz@gnu.org>
11834
11835 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11836 multibyte string.
11837
118382008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11839
11840 * keyboard.c (pending_funcalls): New var.
11841 (timer_check): Run it.
11842 (syms_of_keyboard): Initialize it.
11843 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11844 (Vdelete_terminal_functions): New vars.
11845 (syms_of_terminal): Initialize them.
11846 (Fdelete_terminal): Run delete-terminal-functions.
11847 * xdisp.c (safe_eval): Rewrite.
11848 (safe_call2): New fun.
11849 * frame.c (Qdelete_frame_functions): New var.
11850 (syms_of_frame): Initialize it.
11851 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11852 * lisp.h (safe_call2, pending_funcalls): Declare.
11853
118542008-03-28 Andreas Schwab <schwab@suse.de>
11855
11856 * indent.c (Fmove_to_column): Move declaration before statements.
11857
118582008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11859
11860 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11861 (struct frame): Use bit fields for boolean vars.
11862
11863 * process.c (server_accept_connection): Simplify naming.
11864 (emacs_get_tty_pgrp): Use SDATA.
11865
11866 * coding.c (decode_coding_object): Fix last change.
11867
118682008-03-27 Jason Rumney <jasonr@gnu.org>
11869
11870 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11871
118722008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11873
11874 * charset.c (Fdefine_charset_internal): Change the way of
11875 registering charsets in Vcharset_order_list.
11876 (syms_of_charset): Make the charset `eight-bit' supplementary.
11877
118782008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11879
11880 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11881 operations, to avoid having the difference between pointers
11882 overflow.
11883
118842008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11885
11886 * indent.c (check_display_width): New fun.
11887 (scan_for_column): Use it.
11888
11889 * data.c (syms_of_data): Mark most-positive-fixnum and
11890 most-negative-fixnum as constants.
11891
11892 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11893
11894 * indent.c (scan_for_column): Extract from current_column_1.
11895 Merge with the same code from Fmove_to_column.
11896 (current_column_1, Fmove_to_column): Use it.
11897
118982008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11899
11900 * keymap.c (map_keymap_internal): New fun.
11901 (map_keymap): Use it.
11902 (Fmap_keymap_internal): New fun.
11903 (Fmap_keymap): Remove left-out test from before make_save_value.
11904
11905 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11906
11907 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11908 Use XCAR/XCDR.
11909
11910 * process.h (struct Lisp_Process): Remove filter_multibyte.
11911 * process.c (QCfilter_multibyte): Remove.
11912 (setup_process_coding_systems): Don't use filter_multibyte.
11913 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11914 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11915 (Fset_process_filter_multibyte): Change the coding-system to
11916 approximate the previous behavior.
11917 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11918 coding-system.
11919
11920 * coding.c (decode_coding_object): When not decoding into a buffer,
11921 obey the coding system's preference of (uni|multi)byte.
11922
119232008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11924
11925 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11926 every char is changed and has a different byte-length.
11927 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11928 Fix int -> EMACS_INT.
11929
119302008-03-23 David Hansen <david.hansen@gmx.net>
11931
11932 * dbusbind.c (xd_read_message): Remove extra copying of message
11933 strings. Check for NULL `interface' or `member'.
11934
119352008-03-22 Eli Zaretskii <eliz@gnu.org>
11936
11937 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11938 cFileName a file name that includes `?' characters, use the 8+3
11939 alias in cAlternateFileName instead.
11940
119412008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11942
11943 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11944
119452008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11946
11947 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11948 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11949 work on current_buffer only instead (that was already the case
11950 for some of the code anyway).
11951 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11952 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11953 (SET_PT, SET_PT_BOTH): Adjust.
11954 * intervals.h (set_point, temp_set_point, set_point_both)
11955 (temp_set_point_both): Remove redundant declarations.
11956
119572008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * fileio.c (Finsert_file_contents):
11960 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11961 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11962 when buffer != current_buffer anyway.
11963
119642008-03-20 Andreas Schwab <schwab@suse.de>
11965
11966 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11967 as default.
11968
119692008-03-19 Jason Rumney <jasonr@gnu.org>
11970
11971 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11972 (syms_of_w32fns): Initialize them.
11973 (HOURGLASS_ID): New constant.
11974 (x_window_to_frame): Don't check hourglass_window.
11975 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11976 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11977 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11978 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11979 Only change the cursor if hourglass is not active.
11980 (Fx_create_frame): Initialize frame's current_cursor.
11981 (hourglass_atimer): Remove.
11982 (hourglass_started): New function.
11983 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11984 (show_hourglass): Adapt to w32, changing argument to frame.
11985
11986 * w32term.h (struct w32_output): Remove hourglass_window.
11987 Add current_cursor.
11988
11989 * eval.c (call_debugger, Fsignal):
11990 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11991 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11992 (Fexecute_extended_command, cancel_hourglass_unwind):
11993 * minibuf.c (read_minibuf):
11994 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11995
119962008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * window.c (run_funs): New fun.
11999 (run_window_configuration_change_hook): Use it to run the buffer-local
12000 and the global part of the hook.
12001
12002 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12003 (unwind_format_mode_line): Restore selected window.
12004 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12005
120062008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * editfns.c (Fchar_equal): Check they are valid characters.
12009
12010 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12011
120122008-03-17 Andreas Schwab <schwab@suse.de>
12013
12014 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12015 against a charset.
12016
12017 * lisp.h (Fbuffer_list): Declare.
12018
120192008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12020
aac0c6e3
MR
12021 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12022 handlebox_widget is != 0.
12023
120242008-03-16 Juri Linkov <juri@jurta.org>
12025
12026 * callint.c (Fcall_interactively): For interactive code letters
12027 'b' and 'B' put the buffer list into the list of default "future"
12028 values of the minibuffer.
12029
120302008-03-16 Andreas Schwab <schwab@suse.de>
12031
12032 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12033 modifiers.
12034
12035 * regex.c (re_match_2_internal): Correct matching of a charset
12036 against latin-1 characters.
12037
120382008-03-16 Kenichi Handa <handa@m17n.org>
12039
12040 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12041 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12042 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12043 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12044 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12045 CHAR_STRING_ADVANCE.
12046 (produce_chars): Fix for the case that the source and the
12047 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12048 instead of CHAR_STRING_ADVANCE.
12049 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12050 STRING_CHAR_ADVANCE.
12051
120522008-03-15 Andreas Schwab <schwab@suse.de>
12053
12054 * regex.c (re_match_2_internal): Correct matching of eight bit
12055 characters in unibyte strings.
12056
120572008-03-15 Martin Rudalics <rudalics@gmx.at>
12058
12059 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12060 at end of range when it coincides with the end of the buffer.
12061
120622008-03-14 Eli Zaretskii <eliz@gnu.org>
12063
12064 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12065
12066 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12067
120682008-03-14 Jason Rumney <jasonr@gnu.org>
12069
12070 * editfns.c (initial_tz): New variable.
12071 (syms_of_editfns): Initialize it.
12072 (Fset_time_zone_rule): Set it when first called.
12073 Use it when TZSTRING is nil.
12074
12075 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12076 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12077 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12078 (globals_of_w32fns): Initialize them.
12079 (compute_tip_xy): Use them to position tooltips.
12080
120812008-03-14 Glenn Morris <rgm@gnu.org>
12082
12083 * emacs.c (main): Revert previous change.
12084 (standard_args): Revert -internal-script back to -scriptload,
12085 and remove the long-option form.
12086
120872008-03-13 Glenn Morris <rgm@gnu.org>
12088
12089 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12090 Remove option -enable-font-backend.
12091
120922008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12093
12094 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12095
120962008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12097
12098 * xterm.c (x_connection_closed): For GTK: If this is the last
12099 terminal just exit without closing the display.
12100
121012008-03-11 Jason Rumney <jasonr@gnu.org>
12102
12103 * w32font.c (w32font_full_name): Use floor to round.
12104
f0131492 121052008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12106
12107 * sound.c (alsa_configure): Declare vol at beginning of block.
12108
12109 * fontset.c (Ffontset_info): Remove extra semicolon.
12110
121112008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12112
12113 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12114 size of resulting string.
12115
121162008-03-10 Jason Rumney <jasonr@gnu.org>
12117
12118 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12119
121202008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12121
12122 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12123 Don't pretend as if characters with display property haven't been
12124 consumed for string-replacing-string case.
12125
121262008-03-08 Kim F. Storm <storm@cua.dk>
12127
12128 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12129 (get_next_display_element, next_element_from_string)
12130 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12131
121322008-03-08 Andreas Schwab <schwab@suse.de>
12133
12134 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12135
121362008-03-06 Jason Rumney <jasonr@gnu.org>
12137
12138 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12139 when charset not specified. Only translate ANSI to unicode when
12140 font_type is truetype.
12141 (w32font_coverage_ok): New function.
12142 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12143
121442008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12145
12146 * lread.c (Fread_char): Resolve modifiers.
12147 (Fread_char_exclusive): Likewise.
12148
12149 * character.c (char_resolve_modifier_mask): New function.
12150 (char_string): Use char_resolve_modifier_mask.
12151 (Fchar_resolve_modifiers): New function.
12152 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12153 function.
12154
121552008-03-04 Jason Rumney <jasonr@gnu.org>
12156
12157 * makefile.w32-in: Always include w32font.c in the build.
12158 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12159
121602008-03-04 Andreas Schwab <schwab@suse.de>
12161
12162 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12163 (versionclean): Likewise.
12164
121652008-03-04 Juanma Barranquero <lekktu@gmail.com>
12166
12167 * .cvsignore: Add oo.
12168
121692008-03-03 Andreas Schwab <schwab@suse.de>
12170
12171 * coding.c (decode_coding_object): Inhibit gap shrinking while
12172 decoding in place.
12173
121742008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12175
12176 * w32term.c: Remove unused include "gnu.h".
12177 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12178
12179 * gnu.h: Rename to ...
12180 * emacs-icon.h: ... this.
12181 * xterm.c: Use emacs-icon.h instead of gnu.h.
12182 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12183
121842008-03-03 Juanma Barranquero <lekktu@gmail.com>
12185
12186 * w32font.c: Include math.h.
12187
121882008-03-03 Jason Rumney <jasonr@gnu.org>
12189
12190 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12191 Compute options separately.
12192 (w32font_open_internal): Set glyph_idx before caching metrics.
12193
12194 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12195 Define if system headers don't.
12196 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12197 (w32font_encode_char): Don't declare here.
12198
12199 * w32font.c (Quniscribe, QCformat): New symbols.
12200 (syms_of_w32font): Define them.
12201 (w32font_has_char): Indicate uncertainty.
12202 (w32font_encode_char): Encode as glyph point. Make static.
12203 (recompute_cached_metrics): New function.
12204 (w32font_open_internal): Use it. Set font to use glyph points
12205 initially. Set format based on type of font.
12206 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12207 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12208 on it. Set format based on information available here.
12209 (add_font_entity_to_list): Identify backend based on opentype_only.
12210
122112008-03-02 Andreas Schwab <schwab@suse.de>
12212
12213 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12214
12215 * coding.c (decode_coding_big5, produce_chars):
12216 Fix typos in last change.
12217
122182008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12219
12220 * gnu.h: New icon.
12221
122222008-03-02 Kenichi Handa <handa@m17n.org>
12223
12224 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12225 `dos', don't decode '\r' if that is the last in the source.
12226 (decode_coding_utf_16, decode_coding_emacs_mule)
12227 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12228 (decode_coding_raw_text, decode_coding_charset): Likewise.
12229 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12230
122312008-03-01 Jason Rumney <jasonr@gnu.org>
12232
12233 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12234
122352008-03-01 Kim F. Storm <storm@cua.dk>
12236
12237 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12238
122392008-03-01 Jason Rumney <jasonr@gnu.org>
12240
12241 * w32font.c (w32font_full_name): New function.
12242 (w32font_open_internal): Use it.
12243
122442008-03-01 Kim F. Storm <storm@cua.dk>
12245
12246 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12247
122482008-03-01 Jason Rumney <jasonr@gnu.org>
12249
12250 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12251
122522008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12253
12254 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12255 xg_frame_resized when the event is for the edit widget.
12256
12257 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12258
12259 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12260 set_char_size.
12261 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12262 operations on widgets here. Just set frame size if needed.
12263 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12264 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12265 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12266 the whole frame.
12267 (xg_create_tool_bar): Move attachment of the tool bar to
12268 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12269 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12270
122712008-03-01 Jason Rumney <jasonr@gnu.org>
12272
12273 * w32fns.c (w32_msg_pump): Disable debug code.
12274
122752008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12276
12277 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12278
122792008-02-29 Chong Yidong <cyd@stupidchicken.com>
12280
12281 * xdisp.c (next_overlay_string): Don't set
12282 overlay_strings_at_end_processed_p if we're currently reading from
12283 a display string.
12284
122852008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12286
12287 * xdisp.c (get_overlay_strings_1): Fix typo.
12288
122892008-02-29 Chong Yidong <cyd@stupidchicken.com>
12290
12291 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12292
122932008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12294
12295 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12296
12297 * xdisp.c (display_mode_element): Cancel the previous change.
12298 (decode_mode_spec): Likewise.
12299 (handle_auto_composed_prop): Don't make composition if it->string
12300 is a string.
12301
123022008-02-27 Kim F. Storm <storm@cua.dk>
12303
12304 * lisp.h (GLYPH): Change type from int to struct with separate char
12305 and face_id members.
12306 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12307 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12308 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12309 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12310 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12311 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12312 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12313 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12314 handle new Lisp glyph code encoding, either an integer or a cons.
12315
12316 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12317 (GLYPH_ALIAS): Delete.
12318 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12319 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12320 (GLYPH_FROM_CHAR): Replace macro by ...
12321 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12322
12323 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12324 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12325 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12326 (GLYPH_INVALID_P): New macro.
12327 (spec_glyph_lookup_face): Update prototype.
12328
12329 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12330 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12331 new glyph code encoding.
12332 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12333 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12334
12335 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12336 Adapt to new glyph type and new glyph code encoding.
12337
12338 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12339
12340 * indent.c (current_column, current_column_1, Fmove_to_column)
12341 (compute_motion): Adapt to new glyph code encoding.
12342
12343 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12344
123452008-02-27 Chong Yidong <cyd@stupidchicken.com>
12346
12347 * process.c (wait_reading_process_output): Check for window
12348 changes caused by timers.
12349 Suggested by Johan Bockgård.
12350
123512008-02-27 Glenn Morris <rgm@gnu.org>
12352
12353 * emacs.c (USAGE1): Add `--disable-font-backend'.
12354
123552008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12356
12357 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12358 is made to the buffer.
12359
123602008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12361
12362 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12363 (face_at_string_position):
12364 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12365 (face_at_string_position):
12366 * xdisp.c (display_string, next_overlay_change):
12367 * buffer.h (overlays_at):
12368 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12369 Update callers.
12370
123712008-02-26 Chong Yidong <cyd@stupidchicken.com>
12372
12373 * editfns.c (Fformat): Doc fix.
12374
123752008-02-26 Juanma Barranquero <lekktu@gmail.com>
12376
12377 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12378 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12379 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12380
123812008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12382
12383 * buffer.c (Fbuffer_swap_text): New function.
12384 (syms_of_buffer): Defsubr it.
12385
123862008-02-25 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12389
123902008-02-25 Jason Rumney <jasonr@gnu.org>
12391
12392 * w32font.c (w32font_draw): Draw one character at a time when padding.
12393
123942008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12395
12396 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12397 Handle a nil arg. Use run_window_configuration_change_hook.
12398 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12399 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12400 Use run_window_configuration_change_hook.
12401
124022008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12403
12404 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12405 1-pixel width.
12406
124072008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12408
12409 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12410 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12411 if the glyph in the font is zero pixel with.
12412
12413 * dispextern.h (struct glyph_string): New member padding_p.
12414
12415 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12416
12417 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12418
12419 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12420
12421 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12422
12423 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12424
124252008-02-25 Jason Rumney <jasonr@gnu.org>
12426
12427 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12428
124292008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12430
12431 Allow fine-grained image-cache flushing.
12432 * dispextern.h (struct image): Add `dependencies' field.
12433 (clear_image_caches): Change arg to Lisp_Object.
12434 * image.c (make_image): Initialize `dependencies' field.
12435 (clear_image_cache): Change arg to allow fine-grained flushing.
12436 Perform the flush even if image-cache-eviction-delay is nil.
12437 (clear_image_caches): Change arg to Lisp_Object.
12438 (Fclear_image_cache): Expand meaning of the argument.
12439 (mark_image): Mark `dependencies' field.
12440 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12441 (lface_hash): Use XHASH rather than XFASTINT.
12442 (face_at_buffer_position): Fix int -> EMACS_INT position.
12443 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12444 (select_frame_for_redisplay): Remove code duplication.
12445 (redisplay_internal): Adapt arg to call to clear_image_caches.
12446
124472008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12448
12449 * s/vms4-0.h:
12450 * s/vms4-2.h:
12451 * s/vms4-4.h:
12452 * s/vms5-5.h: Remove, unused.
12453
12454 * s/irix5-2.h:
12455 * s/irix6-0.h:
12456 * s/riscos5.h:
12457 * s/mach-bsd4-3.h:
12458 * m/mips4.h: Remove files for obsolete systems.
12459
12460 * Makefile.in:
12461 * filelock.c:
12462 * unexmips.c:
12463 * m/hp9000s300.h:
12464 * m/iris4d.h:
12465 * s/aix3-1.h:
12466 * s/hpux.h:
12467 * s/msdos.h:
12468 * s/usg5-0.h:
12469 * s/usg5-2-2.h:
12470 * s/usg5-2.h:
12471 * s/usg5-3.h: Remove references to obsolete variables.
12472
12473 * s/irix5-0.h: Remove, move all the contents ...
12474 * s/irix6-5.h: ... here. Simplify.
12475 * config.in: Regenerate.
12476
124772008-02-24 Jason Rumney <jasonr@gnu.org>
12478
12479 * w32term.c (x_draw_glyph_string_background): Clear the background
12480 manually when cleartype is in use.
12481 (x_draw_glyph_string_foreground): Draw text transparently when
12482 cleartype is in use.
12483
12484 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12485 a font into it unless we have to.
12486
124872008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12488
12489 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12490 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12491
aac0c6e3
MR
124922008-02-18 Jason Rumney <jasonr@gnu.org>
12493
12494 * w32fns.c (Fw32_shell_execute): Encode parameters.
12495
124962008-02-09 Eli Zaretskii <eliz@gnu.org>
12497
12498 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12499
125002008-02-05 Juanma Barranquero <lekktu@gmail.com>
12501
12502 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12503
125042008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12505
12506 * xterm.c (x_set_offset): Don't change the gravity if
12507 CHANGE_GRAVITY is -1.
12508
125092008-02-23 Chong Yidong <cyd@stupidchicken.com>
12510
12511 * fileio.c (auto_save_error_occurred): New var.
12512 (auto_save_error): Set it.
12513 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12514 error occurred.
12515
125162008-02-23 Eli Zaretskii <eliz@gnu.org>
12517
12518 * w32.c (globals_of_w32): Add initializations for
12519 g_b_init_get_sid_sub_authority and
12520 g_b_init_get_sid_sub_authority_count.
12521
125222008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12525 (font_parse_xlfd): Use them for sanity check.
12526 (Finternal_set_font_style_table): Make sure the table is bijective.
12527
12528 Consolidate the image_cache to the terminal struct.
12529 * termhooks.h (P_): Remove redundant def.
12530 (struct terminal): New field `image_cache'.
12531 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12532 of FRAME_X_IMAGE_CACHE.
12533 * xterm.h (struct x_display_info): Remove image_cache field.
12534 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12535 * w32term.h (struct w32_display_info): Remove image_cache field.
12536 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12537 * macterm.h (struct mac_display_info): Remove image_cache field.
12538 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12539 * xterm.c (x_term_init):
12540 * w32term.c (w32_term_init):
12541 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12542 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12543 Remove declarations.
12544 (clear_image_caches, mark_image_cache): New declarations.
12545 * xfaces.c (clear_face_cache):
12546 * xdisp.c (redisplay_internal): Use clear_image_caches.
12547 * image.c (clear_image_cache): Don't check that a frame is on
12548 a window-system before checking if it shares the same cache.
12549 (clear_image_caches): New function.
12550 (Fclear_image_cache): Use it.
12551 (mark_image): Move from allo.c.
12552 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12553 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12554 (mark_object): Don't call mark_image_cache for frames.
12555 (mark_terminals): Call mark_image_cache.
12556
12557 * lisp.h (Fdelete_terminal): Declare.
12558
12559 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12560 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12561 wrong_type_argument.
12562
125632008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12564
12565 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12566 malayalam.el, and tamil.el. Add sinhala.el.
12567
125682008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12569
12570 * xterm.c (x_connection_closed): Consolidate identical tests.
12571 (x_delete_terminal): Don't crash if called via x_connection_closed.
12572
125732008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12574
12575 * xdisp.c (decode_mode_spec): New arg string.
12576 (display_mode_element): Adjust for the above change.
12577
125782008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12579
12580 * callint.c (Fcall_interactively): Use AREF.
12581
125822008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12583
12584 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12585
125862008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12587
12588 * xfns.c (Fx_show_tip): Set string to " " if empty.
12589
125902008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12591
12592 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12593 with Qt.
12594
125952008-02-17 Kenichi Handa <handa@m17n.org>
12596
12597 * ftfont.c (ftfont_shape): Return Lispy number.
12598
12599 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12600 for GCs.
12601 (Finternal_set_font_selection_order): Call font_update_sort_order
12602 only when enable_font_backend is set.
12603 (realize_x_face): Set face->font_info to that of default face only
12604 when enable_font_backend is set.
12605
12606 * xdisp.c (handle_composition_prop): Set it->c to the fist
12607 character of the composed region.
12608 (fill_composite_glyph_string): Set base_face->font_info to
12609 s->font_info. Get a face for ascii from base_face->ascii_face.
12610 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12611 with a face already decided.
12612 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12613 non-negative.
12614 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12615 call font_prepare_composition unconditionally.
12616
12617 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12618
12619 * xterm.h (struct x_display_info): New member font.
12620
12621 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12622 (x_set_mouse_face_gc, x_new_font): Likewise.
12623 (x_term_init): Setup display_info->font.
12624 (x_delete_terminal): Free display_info->font.
12625
12626 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12627
12628 * ftxfont.c (ftxfont_default_fid): Delete it.
12629 (ftxfont_open): Set xfont->fid to 0.
12630 (ftxfont_end_for_frame): Clear data specific to the frame and the
12631 font-driver.
12632
12633 * xftfont.c (xftfont_default_fid): Delete it.
12634 (xftfont_open): Set xfont->fid to 0.
12635
12636 * fontset.c (FONTSET_OBJLIST): New macro.
12637 (fontset_find_font): Update font-object list of the fontset.
12638 (free_realized_fontset): New function.
12639 (free_face_fontset): Call free_realized_fontset.
12640 (Ffont_info): Call font_close_object only when enable_font_backend
12641 is set.
12642
12643 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12644 [HAVE_NTGUI]: Include w32term.h.
12645 [MAC_OS]: Include macterm.ch.
12646 (font_otf_ValueRecord): Use make_number.
12647 (font_finish_cache): Fix handling of reference count.
12648 (font_clear_cache): Update num_fonts.
12649 (font_open_entity): Update smallest_char_width and
12650 smallest_font_height of the frame.
12651 (font_close_object): Update num_fonts.
12652 (Fclear_font_cache): Fix finding the target cache data.
12653
126542008-02-16 Glenn Morris <rgm@gnu.org>
12655
12656 * fontset.c (Finternal_char_font): Fix compilation warning.
12657
126582008-02-16 Eli Zaretskii <eliz@gnu.org>
12659
12660 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12661 instead of char arrays. Enlarge the size of array passed to
12662 get_token_information.
12663
12664 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12665 warnings.
12666
126672008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12668
12669 * .gdbinit: Don't set `args', it breaks gdb --args.
12670
126712008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12672
12673 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12674 within a narrowed buffer.
12675
126762008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12677
12678 * coding.c (decode_coding_object, encode_coding_object):
12679 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12680
126812008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12684 hardcoding 1.
12685 (detect_coding_system):
12686 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12687 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12688 * insdel.c (insert_from_gap):
12689 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12690 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12691 (string_to_multibyte):
12692 * character.c (chars_in_text, multibyte_chars_in_text):
12693 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12694
12695 * character.h (FETCH_STRING_CHAR_ADVANCE)
12696 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12697 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12698 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12699
12700 * casefiddle.c (casify_region): Only call after-change and composition
12701 functions on the part of the region that was changed.
12702
12703 * keyboard.c (read_avail_input):
12704 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12705
127062008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12707
12708 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12709 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12710
127112008-02-11 Juanma Barranquero <lekktu@gmail.com>
12712
12713 * w32menu.c (push_submenu_start, push_submenu_end)
12714 (push_left_right_boundary, push_menu_pane, push_menu_item):
12715 * keyboard.c (read_key_sequence): Don't pass args with side effects
12716 to AREF, it fails when compiling with -DENABLE_CHECKING.
12717
127182008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12719
12720 * Makefile.in (${lispsource}international/charprop.el):
12721 Delete this target.
12722
12723 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12724 emacs-unicode-2.
12725
127262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12729
127302008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12731
12732 * frame.c (Qnoelisp): New symbol.
12733 (syms_of_frame): Initialize it.
12734 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12735 harmless Elisp code, from a strong `force' from x_connection_closed.
12736 * frame.h (Qnoelisp): Declare.
12737 * xterm.c (x_connection_closed): Pass `noelisp'.
12738
12739 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12740 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12741 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12742 rather than `int' for the type of `type'.
12743
127442008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12745
12746 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12747
12748 * Makefile.in (GNUC): Remove support for gcc-1.x.
12749
127502008-02-10 Richard Stallman <rms@gnu.org>
12751
12752 * lisp.h (ASET): Use AREF, not ASLOT.
12753
127542008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12755
12756 * lisp.h (ASET): Check bounds.
12757
127582008-02-10 Glenn Morris <rgm@gnu.org>
12759
12760 * buffer.c (mode-name): Doc fix.
12761
127622008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12763
12764 * Makefile.in:
12765 * emacs.c:
12766 * gmalloc.c:
12767 * keyboard.c:
12768 * lisp.h:
12769 * m/ibm370aix.h:
12770 * process.c:
12771 * regex.c:
12772 * s/hpux.h:
12773 * sysdep.c:
12774 * sysselect.h:
12775 * systty.h:
12776 * unexec.c:
12777 * w32term.c:
12778 * xsmfns.c:
12779 * xterm.c: Remove code that deals with obsolete variables.
12780
12781 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12782
12783 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12784 nothing else needs it anymore.
12785
127862008-02-09 Eli Zaretskii <eliz@gnu.org>
12787
12788 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12789 instead of unibyte_char_to_multibyte.
12790
127912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12792
12793 * s/gnu-linux.h: Remove commented out code.
12794
12795 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12796
12797 * Makefile.in: Update what RMS says about using autoconf.
12798 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12799 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12800 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12801 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12802
128032008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12804
12805 * keymap.c (Fkey_description): Move side effect outside of macro call.
12806
12807 * xfaces.c (Finternal_make_lisp_face):
12808 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12809
12810 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12811 (syms_of_fontset): Use ASET.
12812
12813 * fns.c (concat): Move side effect outside of macro call.
12814 (hash_clear): Use ASET.
12815
128162008-02-08 Richard Stallman <rms@gnu.org>
12817
12818 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12819 If FORCE, and frame has a surrogate minibuffer for another frame,
12820 delete the other frame first.
12821
128222008-02-07 Timo Savola <timo.savola@iki.fi>
12823
12824 * xterm.c (x_detect_focus_change): Handle embed client message.
12825 (handle_one_xevent): Ditto.
12826 (handle_one_xevent): If embedded and we get a button press/release,
12827 request focus.
12828 (xembed_set_info, xembed_send_message): New functions.
12829 (x_make_frame_visible): Call xembed_set_info if embedded.
12830 (x_make_frame_invisible): Call xembed_set_info if embedded.
12831 (x_term_init): Initialize Xatom_XEMBED.
12832 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12833 (x_iconify_frame): Ditto.
12834
12835 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12836 (enum xembed_info, enum xembed_message, enum xembed_focus)
12837 (enum xembed_modifier, enum xembed_accelerator): New.
12838 (xembed_set_info, xembed_send_message): Declare.
12839 (FRAME_X_EMBEDDED_P): New.
12840
12841 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12842 gtk_plug_new.
12843
12844 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12845 window ID of a frame.
12846 (x_window): Reparent frame if embedded.
12847 (Fx_create_frame): Don't set border width if embedded.
12848
12849 * emacs.c (USAGE3): Add --parent-id.
12850 (standard_args): Ditto.
12851
128522008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12853
12854 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12855
128562008-02-07 Jim Meyering <meyering@redhat.com>
12857
12858 Use "do...while (0)", not "if (1)...else" in macro definitions.
12859 The latter provokes a warning from gcc about the empty else, when
12860 followed by ";". Also, without that trailing semicolon, it would
12861 silently swallow up any following statement.
12862 * syntax.h (SETUP_SYNTAX_TABLE)
12863 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12864 * buffer.h (DECODE_POSITION): Likewise.
12865 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12866 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12867 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12868 (FETCH_CHAR_ADVANCE): Likewise.
12869 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12870
128712008-02-07 Jim Meyering <meyering@redhat.com>
12872
12873 * lread.c [lint]: Don't include <sys/inode.h>.
12874
128752008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12876
12877 * xselect.c (x_handle_dnd_message):
12878 * xmenu.c (digest_single_submenu, xmenu_show):
12879 * xdisp.c (with_echo_area_buffer_unwind_data)
12880 (format_mode_line_unwind_data, unwind_format_mode_line)
12881 (display_menu_bar):
12882 * eval.c (Ffetch_bytecode):
12883 * doc.c (store_function_docstring):
12884 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12885 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12886 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12887
128882008-02-07 Kenichi Handa <handa@m17n.org>
12889
12890 * ftxfont.c (ftxfont_open): Don't set
12891 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12892
12893 * ftfont.c (ftfont_open): Fix previous change.
12894
128952008-02-06 Jason Rumney <jasonr@gnu.org>
12896
12897 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12898 Use cached metrics for ASCII characters.
12899 (w32font_open_internal): Don't set font's owning_frame.
12900 Cache metrics for ASCII characters.
12901
12902 * w32font.h (struct w32font_info): Add ascii_metrics.
12903 Remove owning_frame.
12904
129052008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12906
12907 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12908 to negative value.
12909
12910 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12911
12912 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12913
12914 * charset.c (syms_of_charset): Set QCtest and Qeq.
12915
129162008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12917
12918 * process.c (Fstart_process):
12919 * callproc.c (Fcall_process): Handle the case where
12920 Funhandled_file_name_directory returns nil.
12921
12922 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12923 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12924 * font.c (check_gstring): Use them and AREF to access the vector before
12925 we know it's really a gstring.
12926 (Ffont_shape_text): Fix typo.
46e722a9 12927 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12928
12929 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12930 Declare.
12931
12932 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12933
129342008-02-05 Jason Rumney <jasonr@gnu.org>
12935
12936 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12937 Set smallest_font_height and smallest_char_width in display info.
12938
129392008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12940
12941 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12942
129432008-02-05 Miles Bader <miles@gnu.org>
12944
12945 * xfaces.c (get_lface_attributes, merge_named_face)
12946 (lookup_named_face, lookup_derived_face, realize_named_face):
12947 Revert 2008-02-01 change by cyd@stupidchicken.com.
12948
129492008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12950
12951 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12952 fallback fonts.
12953 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12954
129552008-02-04 Jason Rumney <jasonr@gnu.org>
12956
12957 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12958 set full_name.
12959 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12960
129612008-02-03 Jason Rumney <jasonr@gnu.org>
12962
12963 * makefile.w32-in (OBJ1): Include font.o here.
12964 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12965
129662008-02-02 Jason Rumney <jasonr@gnu.org>
12967
12968 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12969
129702008-02-01 Jason Rumney <jasonr@gnu.org>
12971
12972 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12973
12974 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12975
129762008-02-01 Andreas Schwab <schwab@suse.de>
12977
12978 * Makefile.in (shortlisp, lisp): Update for rename of
12979 ../lisp/language/myanmar.el.
12980
129812008-02-01 Chong Yidong <cyd@stupidchicken.com>
12982
12983 * xfaces.c (get_lface_attributes): Delete function.
12984 (merge_named_face, lookup_named_face, lookup_derived_face)
12985 (realize_named_face): Call lface_from_face_name directly, and use
12986 the fact that merge_face_vectors does not alter its FROM argument.
12987
129882008-02-01 Jason Rumney <jasonr@gnu.org>
12989
12990 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12991 input in the default locale. Handle non-Unicode multibyte input.
12992
129932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12994
12995 * fontset.c (reorder_font_vector): Exclude nil elements from the
12996 font group. Don't try multiple fonts.
12997 (fontset_font): Adjust for the above change.
12998 (Finternal_char_font): Return nil if the found font doesn't
12999 contain the character ch.
13000
13001 * Makefile.in (lisp, shortlisp): Add cham.el.
13002
130032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13004
13005 * font.h (FONTP): Make it return 1 also for a font-object.
13006
13007 * .gdbinit (xfontset): New function.
13008
13009 * font.c (font_find_for_lface): Check if the character C is
13010 supported or not only for the first font.
13011
13012 * fontset.c (reorder_font_vector): Fix typo.
13013 (fontset_find_font): Don't add a font-spec specifying a script.
13014 Use 0 (not Qt) for the indication of empty font-group. Change the
13015 format of RFONT-DEF. Return Qt if no font in the font-group
13016 support the character.
13017 (fontset_font): Adjust for the above change. If no font was
13018 found the character, remember that.
13019 (face_for_char): Adjust for the change of RFONT-DEF.
13020 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13021 no font for the target.
13022 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13023
130242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13025
13026 * font.c (font_load_for_face): Handle the case that the font in
13027 face->lface is a string.
13028
130292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13030
13031 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13032
130332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13034
13035 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13036 Fix previous change. If the frame is not on a window system,
13037 signal an error.
13038
130392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13040
13041 * coding.c (decode_coding_object, encode_coding_object): Adjust
13042 marker positions after conversion.
13043
13044 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13045
130462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13047
13048 * font.c (font_find_for_lface): Fix the handling of the return
13049 value of font_has_char.
13050 (Ffont_shape_text): Fix previous change.
13051
13052 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13053 (fontset_ref_and_range): Delete it.
13054 (fontset_find_font): Call char_table_ref_and_range instead of
13055 FONTSET_REF_AND_RANGE.
13056 (make_fontset): Don't setup font groups of Latin here.
13057 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13058 (new_fontset_from_font): Make the specified font the default for
13059 all Latin characters.
13060
130612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13062
13063 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13064 is on a window system before accessing the fontset of the frame.
13065
130662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13067
13068 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13069
13070 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13071 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13072
13073 * font.c (Ffont_shape_text): If the font driver doesn't have a
13074 shaper function, make zero-width glyphs to have at least one-pixel
13075 width. Fix setting of `to' field of glyphs.
13076
130772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13078
13079 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13080 glyphs.
13081
13082 * font.h (struct font_driver): Improve docstring of member `shape'.
13083
130842008-02-01 Kenichi Handa <handa@m17n.org>
13085
13086 * composite.c (syms_of_composite): Fix docstring of
13087 auto-composition-function.
13088
13089 * font.h (LGLYPH_SIZE): New macro.
13090
13091 * font.c (Ffont_fill_gstring): Stop filling when a character not
13092 supported by the font is found.
13093 (Ffont_shape_text): When a shape callback function returns nil,
13094 try at most two more times with larger gstring.
13095 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13096
13097 * xdisp.c (handle_auto_composed_prop): Change the argument to
13098 auto-composition-function.
13099
13100 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13101 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13102 Lispy glyph and store it in the lgstring.
13103
13104 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13105
13106 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13107
131082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13109
13110 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13111
13112 * fontset.c (Vfont_encoding_charset_alist): New variable.
13113 (syms_of_fontset): DEFVAR it.
13114 (reorder_font_vector, fontset_find_font): Optimize for the case of
13115 no need of reordering.
13116 (face_for_char): Map the charset property by
13117 Vfont_encoding_charset_alist.
13118
131192008-02-01 Jason Rumney <jasonr@gnu.org>
13120
13121 * w32font.c (logfonts_match): Don't check adstyle here.
13122 (font_matches_spec): Check here against physical font instead.
13123 (add_font_entity_to_list): Avoid some substitutions.
13124
13125 * font.c (font_parse_fcname): Default weight and slant to normal.
13126 (font_score): Prefer normal fonts if weight or slant unspecified.
13127 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13128 match freetype scores.
13129
131302008-02-01 Jason Rumney <jasonr@gnu.org>
13131
13132 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13133 font, as it may have been deleted.
13134 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13135 most common hyphenless variation.
13136 (logfonts_match): Check generic family.
13137 (font_matches_spec): Don't check generic family here.
13138 (fill_in_logfont): Set generic family based on adstyle.
13139
13140 * w32font.h (w32font_get_cache): Update declaration.
13141
131422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13143
13144 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13145
13146 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13147 If none of the new drivers are available, call font_update_drivers
13148 with the old drivers.
13149
13150 * w32font.c (w32font_get_cache): Adjust the argument type.
13151
13152 * xfont.c (xfont_get_cache): Adjust the argument type.
13153
13154 * font.h (struct font_driver): Change argument type of get_cache.
13155
13156 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13157
13158 * font.c (Ffont_get): Fix arguments to Fassoc.
13159 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13160 (font_clear_cache): New function.
13161 (font_list_entities, font_matching_entity): Use font_get_cache.
13162 (font_update_drivers): Call font_clear_cache when finishing a driver.
13163
13164 * fontset.c (fontset_find_font): Fix previous change.
13165
131662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13167
13168 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13169 dpyinfo->font_table.
13170 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13171 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13172
13173 * font.c (font_at): Handle the case that the arg C is negative.
13174 Handle the unibyte case.
13175 (Ffont_at): Call font_at with the arg C -1.
13176
13177 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13178 the position here, and call font_at with the arg C -1.
13179 Don't check the range of the existing composition at the point.
13180
131812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13182
13183 * fontset.c (fontset_add): New args charset_id and family.
13184 Change caller.
13185 (load_font_get_repertory, fontset_find_font): Assume that
13186 font_spec is always a font-spec object.
13187 (Fset_fontset_font): Always store a font-spec object in a fontset.
13188
13189 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13190 instead of get_property_and_range.
13191
131922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13193
13194 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13195 (xftfont_open): Don't keep locking face.
13196 (xftfont_close): Don't unlock face.
13197 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13198
13199 * fontset.c (fontset_find_font): Don't prefer a font of
13200 supplementary charset.
13201
132022008-02-01 Kenichi Handa <handa@m17n.org>
13203
13204 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13205 script, langsys_tag to langsys, new member script.
13206 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13207 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13208 listing to the script specified in that property. Fix arg to
13209 OTF_check_features.
13210
132112008-02-01 Jason Rumney <jasonr@gnu.org>
13212
13213 * w32font.h: New file.
13214
13215 * w32font.c: Include it.
13216 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13217 (w32font_open): Set owning_frame.
13218 (w32font_text_extents): Use owning_frame.
13219 (struct font_callback_data): Add opentype_only field.
13220 (add_font_entity_to_list): Use it to filter fonts.
13221 Don't check against full name.
13222 (w32font_list_internal): New function.
13223 (w32font_list): Use it.
13224 (w32font_match_internal): New function.
13225 (w32font_match): Use it.
13226 (w32font_open_internal): New function.
13227 (w32font_open): Use it.
13228 (w32font_get_cache, w32font_close, w32font_has_char)
13229 (w32font_encode_char, w32font_text_extents, w32font_draw):
13230 Make non-static.
13231
13232 * makefile.w32-in (w32font.o): Depend on w32font.h.
13233
132342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13235
13236 * charset.c (Fdefine_charset_internal): Record a supplementary
13237 charset at the tail of Vcharset_order_list.
13238
13239 * font.c (Ffont_shape_text): Fix the return value.
13240
13241 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13242
13243 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13244
132452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13246
13247 * ftfont.c (struct OpenTypeSpec): New struct.
13248 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13249 (ftfont_get_open_type_spec): New function.
13250 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13251
13252 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13253
132542008-02-01 Jason Rumney <jasonr@gnu.org>
13255
13256 * w32font.c (add_font_entity_to_list): Compare only the beginning
13257 of full name.
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13262 Never return HANDLED_RECOMPUTE_PROPS.
13263
132642008-02-01 Kenichi Handa <handa@m17n.org>
13265
13266 * font.c (font_gstring_produce): Delete it.
13267
13268 * composite.h (COMPOSITION_METHOD):
13269 Handle COMPOSITION_WITH_GLYPH_STRING.
13270
132712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13272
13273 * xfont.c (Qx): Delete.
13274 (syms_of_xfont): Don't initialize Qx.
13275
13276 * composite.h (enum composition_method):
13277 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13278
132792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13280
13281 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13282 (choose_face_font): Accept new form of font-spec.
13283
13284 * frame.h (font_driver_list): Declare it unconditionally.
13285 (struct frame): Define members font_driver_list and font_data_list
13286 unconditionally.
13287
13288 * fontset.c: Include "font.h" unconditionally.
13289 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13290 (Fset_fontset_font): Accept a font-spec object.
13291
13292 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13293 PIXEL_SIZE part a wild card.
13294
13295 * dispextern.h (struct glyph_string): Define members clip and
13296 num_clips unconditionally.
13297 (struct face): Define members font_info and extra unconditionally.
13298
13299 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13300 ftfont_info only when HAVE_LIBOTF is defined.
13301
133022008-02-01 Andreas Schwab <schwab@suse.de>
13303
13304 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13305 and end.
13306
133072008-02-01 Jason Rumney <jasonr@gnu.org>
13308
13309 * w32font.c (w32font_driver): Add new fields.
13310
133112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13312
13313 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13314 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13315 (LIBES): Add @M17N_FLT_CFLAGS@.
13316
13317 * composite.c (compose_text): Don't treat the new style
13318 composition specially.
13319
13320 * emacs.c (main): Call syms_of_font unconditionally.
13321
13322 * font.h (FONT_ENTITY_NOT_LOADABLE)
13323 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13324 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13325 (struct font_driver): New member shape.
13326 (font_registry_charsets): Extern it.
13327 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13328 (font_otf_capability, font_drive_otf): Delete their externs.
13329
13330 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13331 (font_charset_alist, font_registry_charsets): Move from xfont.c
13332 and rename.
13333 (font_prop_validate_otf): New function.
13334 (font_property_table): Register it for QCotf.
13335 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13336 (font_drive_otf): Delete.
13337 (font_prepare_composition): New arg F. Adjust for the change of
13338 lispy gstring.
13339 (font_find_for_lface): New arg C.
13340 (font_load_for_face): Adjust for the change of font_find_for_lface.
13341 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13342 lispy gstring.
13343 (Ffont_shape_text): New function.
13344 (Fopen_font): If the font size is not given, use 12-pixel.
13345 (Ffont_at): New arg STRING.
13346 (syms_of_font): Initalize font_charset_alist.
13347 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13348 conditionally.
13349
13350 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13351 fonts of the same font-spec. Change the format of RFONT-DEF.
13352 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13353 Adjust for the change of RFONT-DEF.
13354 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13355
13356 * ftfont.h: New file.
13357
13358 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13359 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13360 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13361 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13362 font_otf_capability and font_drive_otf, set ftfont_shape.
13363 (ftfont_list): Adjust for the change of :otf property value.
13364 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13365 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13366 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13367 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13368 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13369 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13370
13371 * w32term.c (x_draw_composite_glyph_string_foreground):
13372 Adjust for the change of lispy gstring.
13373
13374 * xdisp.c (handle_composition_prop): Adjust for the change of
13375 lispy gstring. Call a function for auto-composition with the
13376 third arg it->window.
13377 (fill_composite_glyph_string): Adjust for the change of lispy string.
13378 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13379
13380 * xfaces.c (set_font_frame_param): Adjust for the change of
13381 font_find_for_lface.
13382
13383 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13384 (xfont_registry_charsets): Likewise. Change caller.
13385 (syms_of_xfont): Don't handle x_font_charset_alist.
13386
13387 * xftfont.c: Include "ftfont.h".
13388 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13389 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13390 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13391 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13392 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13393 Set xftfont_driver.shape to xftfont_shape.
13394
13395 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13396 the change of lispy gstring.
13397
133982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13399
13400 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13401
134022008-02-01 Jason Rumney <jasonr@gnu.org>
13403
13404 * w32font.c (w32font_draw): Fill background manually.
13405
134062008-02-01 Jason Rumney <jasonr@gnu.org>
13407
13408 * font.c (Qfontp): Remove unused symbol.
13409 (QCantialias): New symbol.
13410 (syms_of_font): Define it.
13411 (font_property_table): Set a validator for QCantialias.
13412
13413 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13414 Define if not already.
13415 (QCfamily): Share with xfaces.c.
13416 (Qstandard, Qsubpixel, Qnatural): New symbols.
13417 (syms_of_w32font): Define them. Don't define QCfamily here.
13418 (w32_antialias_type, lispy_antialias_type): New functions.
13419 (w32_enumfont_pattern_entity): New arg requested_font.
13420 Set antialias parameter if non-default was requested.
13421 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13422
134232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13424
13425 * lread.c (read1): Undo the previous change.
13426
134272008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13428
13429 * frame.c (Fdelete_frame): Call font_update_drivers only when
13430 USE_FONT_BACKEND is defined.
13431
134322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13433
13434 * font.h (struct font_bitmap): New member bits_per_pixel.
13435 (struct font_driver): New members start_for_frame and end_for_frame.
13436 (struct font_data_list): New struct.
13437 (font_put_frame_data, font_get_frame_data): Extern them.
13438
13439 * frame.h (struct frame): New member font_data_list.
13440
13441 * font.c (font_update_drivers): Call driver->start_for_frame and
13442 driver->end_for_frame at proper timings.
13443 (font_put_frame_data, font_get_frame_data): New functions.
13444 (Ffont_spec): Add usage in the docstring.
13445
13446 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13447 (Fdelete_frame): Call font_update_drivers.
13448
13449 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13450 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13451 (xftfont_get_xft_draw): New function.
13452 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13453 (xftfont_end_for_frame): New function.
13454 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13455
13456 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13457 Change argument. Cache GCs in the per-frame data.
13458 (struct ftxfont_frame_data): New struct.
13459 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13460 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13461 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13462 (ftxfont_end_for_frame): New function.
13463 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13464
13465 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13466
134672008-02-01 Kenichi Handa <handa@m17n.org>
13468
13469 * xselect.c (Vselection_coding_system)
13470 (Vnext_selection_coding_system): Delete them.
13471 (syms_of_xselect): Don't declare selection-coding-system and
13472 next-selection-coding-system. They are declared in select.el.
13473
134742008-02-01 Jason Rumney <jasonr@gnu.org>
13475
13476 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13477
13478 * w32fns.c: Include imm.h.
13479 (get_composition_string_fn, get_ime_context_fn): New optional
13480 system functions.
13481 (globals_of_w32fns): Load them from imm32.dll.
13482 (ignore_ime_char): New flag.
13483 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13484 WM_IME_ENDCOMPOSITION messages.
13485
13486 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13487 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13488
134892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13490
13491 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13492 (READCHAR_REPORT_MULTIBYTE): New macro.
13493 (readchar): New 2nd arg MULTIBYTE.
13494 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13495 Make symbol's name multibyte according to the multibyteness of the
13496 source.
13497
134982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13499
13500 * xfaces.c (face_for_overlay_string): Call lookup_face with
13501 correct arguments (fix of synching with the trunk).
13502
135032008-02-01 Kenichi Handa <handa@m17n.org>
13504
13505 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13506 (font_prop_validate_non_neg, font_prop_validate_spacing):
13507 Delete argument prop_index.
13508 (font_property_table): Change arguments to validater. Change Callers.
13509 (font_lispy_object): Delete.
13510 (font_at): Use font_find_object instead fo font_lispy_object.
13511
135122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13513
13514 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13515 and file names.
13516
135172008-02-01 Jason Rumney <jasonr@gnu.org>
13518
13519 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13520 (font_matches_spec): Remove debug output.
13521 (add_font_entity_to_list): Avoid using substituted fonts.
13522
135232008-02-01 Jason Rumney <jasonr@gnu.org>
13524
13525 * doc.c (Fsnarf_documentation):
13526 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13527
135282008-02-01 Miles Bader <miles@gnu.org>
13529
13530 * dispextern.h (struct glyph_row): Only define "clip" field if
13531 HAVE_WINDOW_SYSTEM is defined.
13532
135332008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13534
13535 Fix up multi-tty merge.
13536
13537 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13538 and indentation.
13539
13540 * xfaces.c (free_realized_face, clear_face_gcs):
13541 Include font_done_for_face in the input_blocked section, just in case.
13542
13543 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13544 (get_char_face_and_encoding): Undo last change and remove the *other*
13545 duplicate definition (i.e. keep the one that's better scoped and that
13546 includes code for the font-backend).
13547
13548 * terminal.c (create_terminal): Default keyboard_coding to
13549 `no-conversion' and terminal_coding to `undecided'.
13550
13551 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13552
13553 * fontset.c (free_realized_fontsets): Check that the table entry does
13554 contain a fontset before trying to compare it to `base'.
13555
13556 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13557 syms_of_charset, and syms_of_coding earlier because init_window_once
13558 now needs Vcoding_system_hash_table to be setup.
13559
13560 * coding.h (default_buffer_file_coding): Remove.
13561
13562 * coding.c (default_buffer_file_coding): Remove.
13563 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13564 than ->symbol, and use the terminal-local coding system.
13565 (syms_of_coding): Don't setup the coding-systems that are not
13566 terminal-local.
13567 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13568
13569 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13570 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13571
13572 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13573 in chartab.c and were re-added here by mistake.
13574 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13575
13576 * doc.c (Fsnarf_documentation):
13577 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13578 src to etc.
13579
13580 * ChangeLog.10: Add mistakenly removed entry.
13581
135822008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13583
13584 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13585
135862008-02-01 Miles Bader <miles@gnu.org>
13587
13588 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13589 Add extra args to FACE_FOR_CHAR.
13590
135912008-02-01 Kenichi Handa <handa@m17n.org>
13592
13593 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13594 in sequence.
13595
13596 * chartab.c (map_sub_char_table, map_char_table): If the range
13597 contains just one character, call the function with that character
13598 even if the depth is not 3.
13599
136002008-02-01 Jason Rumney <jasonr@gnu.org>
13601
13602 * w32font.c (w32font_text_extents): Calculate metrics for the
13603 whole string.
13604
136052008-02-01 Jason Rumney <jasonr@gnu.org>
13606
13607 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13608
136092008-02-01 Jason Rumney <jasonr@gnu.org>
13610
13611 * w32term.c (x_set_glyph_string_clipping): Use
13612 get_glyph_string_clip_rects.
13613 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13614 Adjust for the change of struct glyph_string.
13615
13616 * w32font.c (w32font_draw): Do clipping here.
13617
136182008-02-01 Kenichi Handa <handa@m17n.org>
13619
13620 * xftfont.c (xftfont_draw): Adjust for the change of struct
13621 glyph_string.
13622
13623 * xterm.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 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13629 the resulting clip(s}.
13630 (expose_overlaps): Add arg r. Change callers. Set it to
13631 row->clip temporarily.
13632 (expose_window): Redraw rows overlapping the exposed area.
13633
13634 * dispextern.h (struct glyph_row): New member clip.
13635 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13636 clip_height, new member clip, and num_clips.
13637
136382008-02-01 Kenichi Handa <handa@m17n.org>
13639
13640 * data.c (Fchar_or_string_p): Fix docstring.
13641
136422008-02-01 Kenichi Handa <handa@m17n.org>
13643
13644 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13645 create a temporary XftDraw object.
13646
136472008-02-01 Kenichi Handa <handa@m17n.org>
13648
13649 * font.c (Ffontp): Fix docstring.
13650
13651 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13652 strong evidence of ISO-2022.
13653
136542008-02-01 Kenichi Handa <handa@m17n.org>
13655
13656 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13657 SYNTAX_ENTRY_FOLLOW_PARENT.
13658
136592008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13660
13661 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13662 its type.
13663 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13664 Update to the new type of weak_hash_tables and next_weak.
13665
13666 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13667 a plain C pointer to Lisp_Hash_Table.
13668
13669 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13670 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13671 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13672 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13673 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13674 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13675 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13676 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13677 (GC_EQ): Remove since they've been identical to their non-GC_
13678 alter-egos ever since the markbit was eradicated.
13679
13680 * alloc.c:
13681 * buffer.c:
13682 * buffer.h:
13683 * data.c:
13684 * fileio.c:
13685 * filelock.c:
13686 * fns.c:
13687 * frame.h:
13688 * lisp.h:
13689 * macterm.c:
13690 * print.c:
13691 * process.c:
13692 * w32fns.c:
13693 * w32menu.c:
13694 * w32term.c:
13695 * xfns.c:
13696 * xmenu.c:
13697 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13698
136992008-02-01 Kenichi Handa <handa@m17n.org>
13700
13701 * chartab.c (map_sub_char_table): Make it work for the top-level
13702 char-table. Fix handling of parent char-table.
13703 (map_char_table): Adjust for the above change.
13704
137052008-02-01 Jason Rumney <jasonr@gnu.org>
13706
13707 * w32font.c (Qgdi): Rename from Qw32.
13708
137092008-02-01 Jason Rumney <jasonr@gnu.org>
13710
13711 * w32bdf.c (get_quoted_string): Make function static.
13712
137132008-02-01 Kenichi Handa <handa@m17n.org>
13714
13715 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13716 bigger ascent and descent than those of the font, use them as
13717 font's ascent and descent.
13718
137192008-02-01 Kenichi Handa <handa@m17n.org>
13720
13721 * Makefile.in (${lispsource}international/charprop.el): Move this
13722 target within "#ifdef HAVE_UNIDATA" and "#endif".
13723
137242008-02-01 Kenichi Handa <handa@m17n.org>
13725
13726 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13727 (shortlisp): Add ../lisp/language/tai-viet.el.
13728
137292008-02-01 Ulrich Mueller <ulm@gentoo.org>
13730
13731 * Makefile.in (${lispsource}international/charprop.el): Depend on
13732 temacs${EXEEXT}.
13733
137342008-02-01 Jason Rumney <jasonr@gnu.org>
13735
13736 * w32font.c (w32font_close): Delete the GDI font object.
13737
13738 * w32menu.c: Include character.h.
13739
13740 * w32proc.c: Likewise.
13741
13742 * w32select.c: Likewise.
13743
13744 * makefile.w32-in (w32proc.o): Depend on character.h.
13745
137462008-02-01 Jason Rumney <jasonr@gnu.org>
13747
13748 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13749
13750 * w32menu.c (syms_of_w32menu): Likewise.
13751
13752 * w32proc.c (syms_of_ntproc): Likewise.
13753
13754 * w32select.c (syms_of_w32select): Likewise.
13755
13756 * w32term.c (syms_of_w32term): Likewise.
13757
137582008-02-01 Jason Rumney <jasonr@gnu.org>
13759
13760 * w32font.c (w32font_draw): Delete brush after using it.
13761
137622008-02-01 Jason Rumney <jasonr@gnu.org>
13763
13764 * w32font.c (w32font_open): Don't set font_idx.
13765 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13766 to font settings.
13767 (w32font_draw): Fill background explicitly.
13768
137692008-02-01 Jason Rumney <jasonr@gnu.org>
13770
13771 * w32term.c (w32_initialize): Don't call w32font_initialize.
13772
13773 * w32font.c (w32font_info): Remove subranges.
13774 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13775 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13776 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13777 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13778 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13779 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13780 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13781 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13782 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13783 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13784 New symbols.
13785 (font_callback_data): New struct.
13786 (w32font_list, w32font_match): Use it.
13787 (w32font_open): Don't populate subranges.
13788 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13789 (w32font_encode_char): Always return unicode code-point as-is.
13790 (w32font_text_extents): Supply a transformation matrix to
13791 GetGlyphOutline. Never look up by glyph index. Avoid looping
13792 twice. Use unicode version of GetTexExtentPoint32 instead of
13793 glyph index version.
13794 (set_fonts_frame): Remove.
13795 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13796 set frame parameter. Use backward compatible fake foundries.
13797 Save generic family in extra slot under QCfamily. Make width slot
13798 constant. Save QCspacing value. Save list of scripts instead of
13799 binary subranges.
13800 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13801 (add_font_entity_to_list): Use font_callback_data struct. Filter
13802 unwanted fonts.
13803 (add_one_font_entity_to_list): Use font_callback_data struct.
13804 (w32_registry): Default to iso10646_1.
13805 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13806 string font registries. Don't fill in font name if it is a generic
13807 family name, fill family instead. Use spacing, family and script
13808 extra info to fill pitch, family and charset fields.
13809 (list_all_matching_fonts): Use font_callback_data struct.
13810 (unicode_range_for_char): Remove.
13811 (font_supported_scripts): New function.
13812 (w32font_initialize): Remove.
13813 (syms_of_w32font): Update which symbols are defined.
13814
138152008-02-01 Jason Rumney <jasonr@gnu.org>
13816
13817 * font.c (font_pixel_size): Reverse assq_no_quit args.
13818
13819 * w32term.h (FONT_WIDTH): Report max width, not average.
13820 (FONT_MAX_WIDTH): Remove.
13821 (FONT_AVG_WIDTH): New macro.
13822
13823 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13824 redefinition of FONT_WIDTH.
13825
13826 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13827 (w32_cache_char_metrics): Use FONT_WIDTH.
13828
13829 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13830
138312008-02-01 Jason Rumney <jasonr@gnu.org>
13832
13833 * w32font.c (w32font_open): Make lfHeight negative.
13834
13835 * w32fns.c (x_default_font_parameter): Use new style font name.
13836 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13837
138382008-02-01 Jason Rumney <jasonr@gnu.org>
13839
13840 * w32font.c (QCsubranges): New symbol.
13841 (w32font_open, w32font_has_char): Get subranges from subproperty
13842 of extra.
13843 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13844 (syms_of_w32font): Define :subranges symbol.
13845
13846 * font.c (font_put_extra): Expose externally.
13847
13848 * font.h (font_put_extra): Move declaration from font.c.
13849
13850 * font.c (Ffont_get): Use font driver to determine otf capability.
13851 (adjust_anchor): Check if driver defines anchor_point before using.
13852
13853 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13854 (w32font_draw): Use options.
13855 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13856 Fix detection of truetype fonts.
13857 (registry_to_w32_charset): Handle charsets other than iso8859-1
13858 expressed as lisp symbols.
13859 (w32_registry): Express charset as lisp symbol.
13860 (fill_in_logfont): Reverse pixel and point height logic.
13861 Don't set width here. Set quality to default.
13862
13863 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13864 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13865
13866 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13867 Remove redundant loop and allocation.
13868
13869 * makefile.w32-in (font.o, w32font.o): New objects.
13870 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13871 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13872
13873 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13874 STORE_XCHARB a valid l-value.
13875
13876 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13877 calculations for non-Truetype fonts.
13878 (x_draw_glyph_string): Sync with xterm.c.
13879 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13880 Remove redundant code.
13881 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13882
13883 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13884 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13885
13886 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13887 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13888
13889 * w32font.c: New file for w32 font backend.
13890
138912008-02-01 Kenichi Handa <handa@m17n.org>
13892
13893 * term.c: Don't include "buffer.h" twice.
13894
138952008-02-01 Kenichi Handa <handa@m17n.org>
13896
13897 * character.c (Funibyte_string): New function.
13898 (syms_of_character): Defsubr it.
13899
139002008-02-01 Jason Rumney <jasonr@gnu.org>
13901
13902 * w32term.c [USE_FONT_BACKEND]:
13903 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13904 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13905 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13906 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13907 (x_free_frame_resources): Sync with xterm.c.
13908
139092008-02-01 Andreas Schwab <schwab@suse.de>
13910
13911 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13912 char-table size.
13913
139142008-02-01 Kenichi Handa <handa@m17n.org>
13915
13916 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13917
139182008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13921 font_otf_gpos, add font_drive_otf.
13922
13923 * fontset.c (fontset_find_font): Pay attention to font size
13924 specified for a font.
13925 (reorder_font_vector): Check contents of font_def.
13926
13927 * font.c (struct otf_list): Delete it.
13928 (otf_list): Make it a lisp variable.
13929 (otf_open): Use lispy otf_list.
13930 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13931 (check_otf_features): New function.
13932 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13933 New functions.
13934 (font_drive_otf): New function merging font_otf_gsub and
13935 font_otf_gpos.
13936 (font_open_for_lface): New arg spec. Change argument order.
13937 (font_load_for_face): Adjust for the change of font_open_for_lface.
13938 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13939 Ffont_otf_gpos.
13940 (syms_of_font): Staticpro otf_list. Delete defsubr of
13941 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13942
13943 * xfaces.c (set_font_frame_param): Adjust for the change of
13944 font_open_for_lface.
13945
13946 * font.h (font_open_for_lface): Adjust prototype.
13947 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13948 member otf_drive.
13949 (font_otf_gsub, font_otf_gpos): Delete externs.
13950 (font_drive_otf): Extern it.
13951
139522008-02-01 Kenichi Handa <handa@m17n.org>
13953
13954 * font.c (font_at): If the window W is not on a window system,
13955 return Qnil.
13956
13957 * coding.c (produce_chars, encode_coding): Don't call
13958 insert_from_gap if no characters to produce.
13959
139602008-02-01 Kenichi Handa <handa@m17n.org>
13961
13962 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13963 Fclear_face_cache.
13964
13965 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13966
139672008-02-01 Miles Bader <miles@gnu.org>
13968
13969 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13970 Parse "--disable-font-backend" option.
13971 (standard_args): Add "--disable-font-backend" option.
13972
139732008-02-01 Kenichi Handa <handa@m17n.org>
13974
13975 * fontset.c (fontset_find_font): New function.
13976 (fontset_font): Use fontset_find_font.
13977 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13978 Register the specified font for all Latin characters.
13979 (new_fontset_from_font): Register the specified font for all Latin
13980 characters.
13981 (dump_fontset): For a realized fontset, include the base fontset
13982 name in the returned vector.
13983
139842008-02-01 Kenichi Handa <handa@m17n.org>
13985
13986 * character.h (CHAR_STRING): Cast C to unsigned on calling
13987 char_string.
13988
13989 * character.c (char_string): Type of arg C changed to unsigned.
13990 Signal an error if C is an invalid character code.
13991
13992 * editfns.c (general_insert_function, Fchar_to_string):
13993 Use CHARACTERP, not INTEGERP.
13994
139952008-02-01 Kenichi Handa <handa@m17n.org>
13996
13997 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13998 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13999
14000 * regex.c (analyse_first): Fix for multibyte characters in "case
14001 charset:" and "case categoryspec:".
14002
140032008-02-01 Andreas Schwab <schwab@suse.de>
14004
14005 * Makefile.in (LIBES): Move standard libraries to the end.
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14010 nonzero, don't shrink the buffer nextb.
14011
14012 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14013
14014 * coding.c (coding_alloc_by_making_gap): New arg offset.
14015 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14016 offset.
14017 (decode_coding_iso_2022): Update coding->safe_charsets.
14018 (decode_coding_gap): Temporarily set
14019 current_buffer->text->inhibit_shrinking to 1.
14020
140212008-02-01 Kenichi Handa <handa@m17n.org>
14022
14023 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14024 indexing into elements of s->cmp and s->char2b.
14025
140262008-02-01 Juanma Barranquero <lekktu@gmail.com>
14027
14028 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14029
140302008-02-01 Kenichi Handa <handa@m17n.org>
14031
14032 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14033 target_multibyte instead of multibyte.
14034 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14035 (bcmp_translate): Change the argument name from multibyte to
14036 target_multibyte.
14037
140382008-02-01 Kenichi Handa <handa@m17n.org>
14039
14040 These changes are to compile a regexp into a pattern that can be
14041 used both for multibyte and unibyte targets.
14042
14043 * Makefile.in (search.o): Depend on charset.h.
14044
14045 * character.c (multibyte_char_to_unibyte_safe): New function.
14046
14047 * search.c: Include "charset.h".
14048 (compile_pattern_1): Delete argument multibyte. Don't set
14049 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14050 (compile_pattern): Don't compare cp->buf.target_multibyte.
14051 Compare cp->buf.charset_unibyte.
14052 (compile_pattern): Set cp->buf.target_multibyte.
14053
14054 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14055
14056 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14057
14058 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14059 multibyte. Change callers.
14060 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14061 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14062 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14063 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14064 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14065 (regex_compile): Make the compiled pattern usable both for
14066 multibyte and unibyte targets.
14067 (analyse_first): Make the fastmap usable both for multibyte and
14068 unibyte targets.
14069 (TRANSLATE_VIA_MULTIBYTE): Delete.
14070 (re_match_2_internal): Pay attention to the case that the
14071 multibyteness of bufp and target may be different.
14072
140732008-02-01 Kenichi Handa <handa@m17n.org>
14074
14075 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14076 empty box occupy at least one column width.
14077
140782008-02-01 Miles Bader <miles@gnu.org>
14079
14080 * Makefile.in: Remove redundant HAVE_XFT clause.
14081
140822008-02-01 Kenichi Handa <handa@m17n.org>
14083
14084 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14085
140862008-02-01 Kenichi Handa <handa@m17n.org>
14087
14088 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14089 being nil.
14090
140912008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14094
140952008-02-01 Kenichi Handa <handa@m17n.org>
14096
14097 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14098
140992008-02-01 Kenichi Handa <handa@m17n.org>
14100
14101 * search.c (simple_search): Fix previous change.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * xftfont.c (ftfont_font_format): Extern declaration.
14106
14107 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14108
14109 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14110 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14111
14112 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14113 (ftfont_font_format): Fix previous change.
14114
14115 * font.h (Ffont_xlfd_name): EXFUN it.
14116
14117 * font.c (font_parse_xlfd): Fix the array size of `f'.
14118 (register_font_driver): Use EQ to compare driver->type.
14119
14120 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14121 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14122 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14127 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14128
141292008-02-01 Kenichi Handa <handa@m17n.org>
14130
14131 * xfont.c (xfont_open): Set font->format.
14132
14133 * xftfont.c (xftfont_open): Set font->format.
14134
14135 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14136 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14137 (ftfont_open): Set font->format.
14138 (ftfont_font_format): New function.
14139
14140 * font.h (struct font): New member format.
14141
14142 * font.c (Qopentype): New variable.
14143 (syms_of_font): Defsym it.
14144 (Fquery_font): Change the format of the last element of the return
14145 value.
14146
141472008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14150 last resort.
14151
141522008-02-01 Kenichi Handa <handa@m17n.org>
14153
14154 * coding.c (detect_coding_charset): Fix detection of multi-byte
14155 charset.
14156
141572008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14158
14159 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14160
141612008-02-01 Kenichi Handa <handa@m17n.org>
14162
14163 * xdisp.c (get_next_display_element): Set it->face_id for the
14164 first component of a composition.
14165 (x_produce_glyphs): Check if the font is changed or not for composition.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * fontset.c (Qlatin): New variable.
14170 (syms_of_fontset): Define it as a lisp symbol.
14171 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14172
141732008-02-01 Kenichi Handa <handa@m17n.org>
14174
14175 * font.c (font_unparse_fcname): Pay attention to the case that
14176 some of font property is a null string.
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * term.c: Include "composite.h".
14181 (encode_terminal_code): Output all components of composition.
14182 Check the size of encode_terminal_src.
14183 (produce_glyphs): For composition, call produce_composite_glyph.
14184 (append_composite_glyph, produce_composite_glyph): New functions.
14185
14186 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14187 is not found, get font_info from the current ascii face.
14188
141892008-02-01 Kenichi Handa <handa@m17n.org>
14190
14191 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14192 buffer-file-name to Qnil before calling insert_from_buffer.
14193
14194 * font.c (font_unparse_fcname): Pay attention to the case that
14195 foundry is a null string.
14196
141972008-02-01 Kenichi Handa <handa@m17n.org>
14198
14199 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14200
14201 * font.c (Qunicode_sip): New variable.
14202 (syms_of_font): Declare it as a Lisp symbol.
14203
14204 * font.h (Qunicode_sip): Extern it.
14205
142062008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * composite.c (get_composition_id): Pay attention to TAB component.
14209
14210 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14211 TAB. Adjust for the change of s->char2b which always points to
14212 the first element of allocated memory.
14213
14214 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14215
14216 * xdisp.c (handle_composition_prop): Set it->c to the first
14217 non-TAB component.
14218 (fill_composite_glyph_string): Change argument.
14219 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14220 (x_produce_glyphs): Fix handling of left/right padding.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * coding.c (detect_coding_system): Fix for handling off
14225 inhibit_iso_escape_detection. Fix for the case that no coding
14226 system is defined for a specific coding category.
14227
142282008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * font.c (font_matching_entity): Delete unused local var.
14231
14232 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14233 opening a font.
14234
14235 * fileio.c (Finsert_file_contents): On recovering a file, assume
14236 Unix-like eol.
14237 (choose_write_coding_system): On auto-saving a file, force
14238 Unix-like eol.
14239
14240 * coding.c (setup_coding_system): Fix setting of
14241 coding->common_flags based on eol_type.
14242 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14243 inherit from it.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * alloc.c (NSTATICS): Increas to 0x600.
14248
142492008-02-01 Kenichi Handa <handa@m17n.org>
14250
14251 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14252 (ftfont_list): Don't check :name property.
14253 (ftfont_match): New function.
14254 (ftfont_pattern_entity): If the pattern doesn't contain
14255 FC_SPACING, don't assume FC_MONO.
14256
14257 * font.h (struct font_driver): New member `match'.
14258 (font_update_drivers): Adjust prototype.
14259
14260 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14261 property of FONT.
14262 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14263 them unconditionally.
14264 (font_matching_entity): New function.
14265 (font_open_by_name): Try font_matching_entity if exact match is
14266 not found.
14267 (font_update_drivers): Delete the arg FONT. Return a list of
14268 actually used backends. Don't free faces, font caches here.
14269 Don't store data in frame parameters. Don't call x_set_font.
14270 (Ffont_spec): Store :name property as is.
14271 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14272 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14273 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14274 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14275 Call font->driver->otf_gsub instead of font_otf_gsub.
14276
14277 * frame.c (x_set_font_backend): Do more works that were done in
14278 font_update_drivers before.
14279
14280 * xfont.c (xfont_match): New function.
14281 (xfont_driver): Set xfont_driver.match to xfont_match.
14282 (xfont_draw): Set font in GC if necessary.
14283
14284 * ftxfont.c (ftxfont_match): New function.
14285 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14286
14287 * xftfont.c (xftfont_match): New function.
14288 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14289
142902008-02-01 Kenichi Handa <handa@m17n.org>
14291
14292 * font.h (struct font): New member scalable.
14293 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14294 (font_otf_gsub): Adjust prototype.
14295
14296 * font.c (font_otf_capability): Fix handling of the default langsys.
14297 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14298 Check the contents of SPEC.
14299 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14300 (check_gstring): New function.
14301 (REPLACEMENT_CHARACTER): New macro.
14302 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14303 glyph codes of GSTRING.
14304 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14305 (font_prepare_composition): Set cmp->glyph_len.
14306 (font_open_entity): Set font->scalable.
14307 (Ffont_get): Handle :otf property.
14308 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14309 functions.
14310 (Fquery_font): Use font->font.full_name.
14311 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14312 Sfont_otf_alternates.
14313
14314 * ftfont.c (ftfont_open): Set font->font.full_name and
14315 font->font.name properly. Fix calculation of font->font.height
14316 and font->min_width.
14317
14318 * ftxfont.c (ftxfont_create_gcs): New function.
14319 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14320 (ftxfont_draw_backgrond): Fix filling region.
14321 (ftxfont_default_fid): New function.
14322 (ftxfont_open): Set xfont->fid to the return value of
14323 ftxfont_default_fid.
14324 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14325 (ftxfont_done_face): Free only GCs that are created by
14326 ftxfont_create_gcs.
14327 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14328
14329 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14330 Clip to src->width, etc (not src->clip_XXX).
14331
14332 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14333 FontBackend frame parameter.
14334
143352008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * font.h (struct font_driver_list): New member `on'.
14338 (Fclear_font_cache): EXFUN it.
14339 (font_update_drivers): Extern it.
14340
14341 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14342 (font_list_entities): Check driver_list->on.
14343 (register_font_driver): Initalize `on' member to 0.
14344 (font_update_drivers): New function.
14345 (Fclear_font_cache): Check driver_list->on.
14346
14347 * frame.h (Qfont_backend): Extern it.
14348 (x_set_font_backend): Extern it.
14349
14350 * frame.c (Qfont_backend): New variable.
14351 (frame_parms): New element for font-backend.
14352 (x_set_font_backend): New function.
14353
14354 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14355 FontBackend frame parameter.
14356 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14357 x_set_font_backend.
14358
14359 * xfont.c (xfont_list): Don't try listing by :name property if the
14360 name is not for XLFD.
14361
143622008-02-01 Kenichi Handa <handa@m17n.org>
14363
14364 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14365 (LGLYPH_SET_TO): New macros.
14366 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14367 element of G is vector or not.
14368 (font_at): Extern it.
14369
14370 * font.c: Include window.h.
14371 (font_lispy_object): New function.
14372 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14373 end of valid glyph.
14374 (font_close_object): Fix getting (struct font *).
14375 (font_at): New function.
14376 (Ffont_get): If FONT is a font-object, get entity from it.
14377 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14378 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14379 range check.
14380 (Ffont_at): New function.
14381 (syms_of_font): Defsubr Sfont_at.
14382
14383 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14384 before the entry for Qcomposition.
14385 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14386 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14387 the font in gstring.
14388 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14389 LGLYPH_FORM (g) to detect the end of valid glyph.
14390 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14391 we are composing with gstring.
14392
14393 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14394 Check if adjustment is vector or not.
14395
14396 * Makefile.in (font.o): Make it depends on window.h.
14397
143982008-02-01 Kenichi Handa <handa@m17n.org>
14399
14400 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14401 adjustment is vector or not.
14402
144032008-02-01 Miles Bader <miles@gnu.org>
14404
14405 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14406
144072008-02-01 Kenichi Handa <handa@m17n.org>
14408
14409 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14410 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14411 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14412
14413 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14414 (DEVICE_DELTA): Fix typo.
14415 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14416 LGLYPH format.
14417
14418 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14419 the change of LGLYPH format.
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * ftfont.c (ftfont_list): Fix typo.
14424 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14425
144262008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14427
14428 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14429
14430 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14431 xftface_info is non-NULL.
14432
144332008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14434
14435 * ftfont.c (ftfont_list): Move misplaced #endif.
14436
144372008-02-01 Kenichi Handa <handa@m17n.org>
14438
14439 * ftfont.c (ftfont_list): Pay attention to the case that
14440 FC_CAPABILITY is not defined.
14441
144422008-02-01 Kenichi Handa <handa@m17n.org>
14443
14444 * xftfont.c (xftfont_open): Set charset related members to -1.
14445
14446 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14447 QCname.
14448 (ftfont_open): Set charset related members to -1.
14449
14450 * fontset.c (Votf_script_alist): New variable.
14451 (syms_of_fontset): Initialize it.
14452 (fontset_font): Delete unused variable.
14453
14454 * fontset.h (Votf_script_alist): Extern it.
14455
14456 * font.c (font_find_for_lface): Optimize code.
14457
14458 * font.h (font_close_object, font_merge_old_spec): Extern them.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14463 (syms_of_font): Initialize them.
14464 (font_pixel_size): Allow float value in dpi.
14465 (font_prop_validate_type): Delete.
14466 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14467 Change caller.
14468 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14469 (font_prop_validate_extra): Delete.
14470 (font_prop_validate_spacing): New function.
14471 (font_property_table): Add elements for all known properties.
14472 (get_font_prop_index): Rename from check_font_prop_name. New
14473 argument FROM. Change caller.
14474 (font_prop_validate): Validate all known properties.
14475 (font_put_extra): Delete argument force. Change caller.
14476 (font_expand_wildcards): Make it static. Fix the way of shrinking
14477 the possible range.
14478 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14479 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14480 Change caller.
14481 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14482 (font_parse_fcname): Delete argument merge. Fix parsing of point
14483 size. Don't validate properties values here. Change caller.
14484 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14485 (font_open_by_name): Delete unused variable.
14486 (Ffont_spec): Likewise. Validate property values.
14487 (Ffont_match_p): New function.
14488
14489 * font.h (QCscalable): Extern it.
14490 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14491
14492 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14493
14494 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14495 (xfont_list_pattern): New function.
14496 (xfont_list): Use xfont_list_pattern.
14497
144982008-02-01 Kenichi Handa <handa@m17n.org>
14499
14500 * font.h (Flist_fonts): EXFUN it.
14501
145022008-02-01 Jason Rumney <jasonr@gnu.org>
14503
14504 * w32term.c (w32_initialize): Add back smoothing_type and
14505 smoothing_enabled definitions.
14506
145072008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14510 s->face->font on determining underline position.
14511
145122008-02-01 Kenichi Handa <handa@m17n.org>
14513
14514 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14515 (font_has_char): Accept font-object too.
14516 (font_find_for_lface): Try at first with a size specified in face.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14521 font_open_by_name.
14522
145232008-02-01 Kenichi Handa <handa@m17n.org>
14524
14525 * font.h (QCspacing, QCdpi): Extern them.
14526 (enum font_spacing): New enum.
14527 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14528
14529 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14530 (QCspacing, QCdpi): New variables.
14531 (syms_of_font): Initialize them.
14532 (font_pixel_size): New function.
14533 (font_put_extra): New function.
14534 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14535 in FONT_EXTRA.
14536 (font_parse_fcname): Handle enumerated values (e.g. bold).
14537 Fix handling font size. Add QCname property that contains only
14538 unknown properties.
14539 (font_score): Change argument. Change caller. Pay attention to
14540 FONT_PIXEL_SIZE_QUANTUM.
14541 (font_sort_entites, font_list_entities, font_find_for_lface)
14542 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14543 (Ffont_spec): Add QCname property that contains only unknown properties.
14544
14545 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14546 include weight in listing pattern, instead check weight of each
14547 listed font. Don't include scalable in pattern. Pay attention to
14548 FONT_PIXEL_SIZE_QUANTUM.
14549
145502008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * font.c (font_parse_fcname): Fix parsing of point-size.
14553 (font_unparse_fcname): Produce symbolic names for style properties.
14554 (font_list_entities): Handle float size correctly.
14555 (font_open_by_name): Prefer `normal' property values if the name
14556 doesn't specify them.
14557
14558 * fontset.c (Finternal_char_font): Use font_get_name, not
14559 Ffont_xlfd_name.
14560
14561 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14562 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14563 pattern. Don't force scalable.
14564
14565 * xftfont.c (xftfont_open): For generating a name, start from
14566 96-byte buffer.
14567
145682008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14569
14570 * frame.h (x_new_fontset2): Fix prototype.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * font.h (struct font_driver): Delete member parse_name.
14575 (font_match_p, font_get_spec, font_parse_fcname)
14576 (font_unparse_fcname): Extern them.
14577 (font_get_name): Adjust prototype.
14578
14579 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14580 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14581 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14582 unnecessary checks for weight, slant, and swidth.
14583 (font_parse_fcname): New function.
14584 (font_unparse_fcname): New function.
14585 (font_parse_name): New function.
14586 (font_match_p): New function.
14587 (font_get_name): Change return value to Lisp string.
14588 (font_get_spec): New function.
14589 (Qunspecified, Qignore_defface): Don't extern them.
14590 (font_find_for_lface): Assume that LFACE is fully specified.
14591 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14592 object, use it for FACE.
14593 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14594 driver->parse_name.
14595 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14596
14597 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14598 prototype.
14599
14600 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14601 argument F. Don't call Fnew_fontset. Instead, directly call
14602 make_fontset.
14603
14604 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14605
14606 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14607 of x_new_fontset2.
14608
14609 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14610 (Qsans__serif): New variables.
14611 (ftfont_generic_family_list): New variable.
14612 (syms_of_ftfont): Initialize the above variables.
14613 (ftfont_pattern_entity): Delete argument NAME.
14614 (ftfont_list_generic_family): New function.
14615 (ftfont_parse_name): Delete this function.
14616 (ftfont_list): Try generic family only when FcFontList found no font.
14617 (ftfont_list_family): Fix args to FcObjectSetBuild.
14618
14619 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14620 object in attrs[LFACE_FONT_INDEX].
14621 (set_lface_from_font_name): Cancel all changes for font-backend.
14622 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14623 function.
14624 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14625 font object in QCfont attribute.
14626 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14627 (realize_default_face) [USE_FONT_BACKEND]: Call
14628 set_lface_from_font_and_fontset.
14629
14630 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14631 "fixed", and signal error here if no suitable font was found.
14632
14633 * xfont.c (xfont_parse_name): Delete this function.
14634
14635 * xftfont.c (xftfont_open): Change coding style of error
14636 handling. Generate fontconfig's fontname pattern.
14637
14638 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14639 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14640
14641 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14642 Both args FONTSET and FONT_OBJECT must be existing ones.
14643
146442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14645
14646 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14647
146482008-02-01 Kenichi Handa <handa@m17n.org>
14649
14650 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14651
14652 * font.h (struct font): Fix typo.
14653
14654 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14655 XLFD_XXX_INDEX.
14656 (enum xlfd_field_mask): New enum.
14657 (intern_font_field): Changed argument. Change caller. If digits
14658 are followed by non-digits, return a symbol.
14659 (font_expand_wildcards): New function.
14660 (font_parse_xlfd): Fix wildcard handling.
14661 (Ffont_spec): If :name is specified, reflect the info in the other
14662 properties.
14663
14664 * ftfont.c (ftfont_pattern_entity): Fix typo.
14665 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14666 locale.
14667
146682008-02-01 Kenichi Handa <handa@m17n.org>
14669
14670 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14671
14672 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14673 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14674 registry doesn't specify encoding part.
14675 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14676 (font_open_by_name): At first try parsing the name.
14677 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14678 as Lisp symbols.
14679
14680 * fontset.c (reorder_font_vector): Pay attention to the case that
14681 the 3rd element of font_def is nil.
14682 (fontset_font): For the default fontset, append one more fontset
14683 elements for a script-based font specification. Don't add script
14684 attribute on finding a font.
14685 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14686 font name.
14687 (fontset_ascii_font): If a font can't be opened, return nil.
14688
14689 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14690 (ftfont_pattern_entity): New function.
14691 (ftfont_get_cache): Assume that freetype_font_cache is already
14692 initialized.
14693 (ftfont_list): Handle the case that a file is specified in font
14694 name. Use ftfont_pattern_entity to generate entities.
14695 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14696 (syms_of_ftfont): Initialize freetype_font_cache.
14697
14698 * xftfont.c (xftfont_open): Make the font name fontconfig's
14699 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14700 (xftfont_close): Free font->font.name if not NULL.
14701
14702 * xfont.c (xfont_list): If script is specified for a font, return
14703 null_vector.
14704 (xfont_list_family): Declare argument type.
14705
14706 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14707 name, set LFACE_FONT (lface) to nil.
14708
14709 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14710 return Qnil.
14711
147122008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14715 (standard_args): Add "-enable-font-backend".
14716
147172008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14720 (struct xftdraw_list, xftdraw_list): Delete them.
14721 (register_xftdraw, check_xftdraw): Delete them.
14722 (xftfont_prepare_face): Don't call register_xftdraw.
14723 (xftfont_done_face): Don't call check_xftdraw.
14724 (xftfont_draw): Get background color only when with_background is
14725 nonzero.
14726
14727 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14728
147292008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 These changes are for the new font handling codes.
14732
14733 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14734 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14735 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14736 (FONTSRC, FONTOBJ): New variables.
14737 (obj): Add $(FONTOBJ).
14738 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14739 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14740 @LIBOTF_LIBS@.
14741 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14742 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14743
14744 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14745
14746 * character.h (Vscript_representative_chars): Extern it.
14747
14748 * character.c (Vscript_representative_chars): New variable.
14749 (syms_of_character): Declare it as a Lisp variable.
14750
14751 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14752 enable_font_backend is nonzero, accept the composition method
14753 COMPOSITION_WITH_GLYPH_STRING.
14754
14755 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14756 enumeration COMPOSITION_WITH_GLYPH_STRING.
14757
14758 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14759 members clip_x, clip_y, clip_width, and clip_height.
14760 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14761
14762 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14763 --enable-font-backend. Call syms_of_font.
14764
14765 * fns.c (assoc_no_quit): New function.
14766
14767 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14768 (face_for_font, new_fontset_from_font)
14769 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14770
14771 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14772 (fontset_font, fontset_ascii, face_for_char)
14773 (make_fontset_for_ascii_face, Ffont_info)
14774 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14775 is nonzero, use font-backend mechanism.
14776 (find_font_encoding): Make it non-static.
14777 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14778 New functions.
14779
14780 * frame.h (struct frame): New members resx and resy.
14781 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14782 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14783
14784 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14785 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14786
14787 * lisp.h (assoc_no_quit): Extern it.
14788
14789 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14790 Through out the file, use FONT_INFO_FROM_FACE instead of
14791 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14792 rif->per_char_metric.
14793 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14794 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14795 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14796 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14797 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14798 nonzero, use font-backend mechanism.
14799 (get_per_char_metric): New function.
14800
14801 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14802 (set_lface_from_font_name)
14803 (set_font_frame_param, free_realized_face)
14804 (prepare_face_for_display, clear_face_gcs)
14805 (Finternal_set_font_selection_order, realize_x_face)
14806 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14807 font-backend mechanism.
14808 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14809 (load_face_font) [USE_FONT_BACKEND]: Abort.
14810 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14811 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14812
14813 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14814 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14815 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14816 nonzero, register all available font drivers. Call
14817 x_default_font_parameter for deciding a font.
14818 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14819
14820 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14821 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14822 (x_set_glyph_string_clipping_exactly)
14823 (x_compute_glyph_string_overhangs)
14824 (x_draw_glyph_string_foreground)
14825 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14826 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14827 enable_font_backend is nonzero, use font-backend mechanism.
14828 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14829
148302008-02-01 Kenichi Handa <handa@m17n.org>
14831
14832 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14833 system_eol_type.
14834 (syms_of_coding): Initialize system_eol_type.
14835
14836 * process.c (Fset_process_coding_system): Inherit system's eol
14837 format if necessary.
14838
148392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14840
14841 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14842
148432008-02-01 Kenichi Handa <handa@m17n.org>
14844
14845 * coding.c (decode_eol): Pay attention to buffer relocation in
14846 del_range_2.
14847 (decode_coding): Call decode_eol before restoring undo_list.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * charset.c (Fdefine_charset_internal): Fix setting of
14852 emacs_mule_bytes.
14853
148542008-02-01 Kenichi Handa <handa@m17n.org>
14855
14856 * keyboard.c (read_char): Check if C is a character or not before
14857 looking up Vkeyboard_translate_table.
14858
148592008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14862 condition to terminate the loop.
14863
148642008-02-01 Kenichi Handa <handa@m17n.org>
14865
14866 * coding.c (produce_composition): Compare charbuf[i] instead of
14867 args[i] against 0.
14868 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14869
148702008-02-01 Kenichi Handa <handa@m17n.org>
14871
14872 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14873 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14874 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14875 detect_coding.
14876 (emacs_mule_char): Handle old style (Emacs 20) component character
14877 of a composition.
14878 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14879 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14880 composition rule.
14881 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14882
148832008-02-01 Kenichi Handa <handa@m17n.org>
14884
14885 * coding.c (encode_coding_ccl): Allocate destination dynamically
14886 when necessary.
14887
148882008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14891 the loop. When quitted, show a proper error message.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14896 src->clip_head and src->clip_tail temporarily instead of src->hl.
14897
14898 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14899 character sequence.
14900 (Fccl_execute_on_string): Use ASET, not XSET.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * coding.c (decode_coding): Fix the condition of terminating the
14909 decoding loop.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * data.c (Faset): On setting a character bigger than 255 in a
14914 unibyte string, signal an error instead of make the string multibyte.
14915
149162008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14919 made by a mapping table.
14920
149212008-02-01 Kenichi Handa <handa@m17n.org>
14922
14923 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14924 not.
14925 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14926 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14927
14928 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14929 s->face is NULL or not.
14930
149312008-02-01 Kenichi Handa <handa@m17n.org>
14932
14933 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14934 (x_draw_glyph_string): Fix drawing of right_overhang and
14935 left_overhang around/on cursor.
14936
14937 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14938
149392008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * coding.c (Fdefine_coding_system_internal)
14946 (Fdefine_coding_system_alias): Avoid a duplicated element in
14947 Vcoding_system_alist.
14948
149492008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14952
14953 * coding.c (Qcoding_system_define_form): New variable.
14954 (syms_of_coding): Intern and staticpro it.
14955 (Fcoding_system_p): Check Qcoding_system_define_form.
14956 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14957
14958 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14959 Fcoding_system_p.
14960 (CHECK_CODING_SYSTEM): If ID is not available, call
14961 Fcheck_coding_system.
14962 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14963 Try also Fcheck_coding_system.
14964
149652008-02-01 Kenichi Handa <handa@m17n.org>
14966
14967 * coding.c (code_conversion_restore): GCPRO arg.
14968
149692008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * character.c (lisp_string_width): Check multibyteness of STRING.
14972
149732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14974
14975 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14976 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14977 (decode_mac_font_name): Use decode_coding_c_string instead of
14978 decode_coding.
14979 (x_load_font): Initialize fontp->fontset to -1. Set
14980 fontp->encoding_type.
14981
149822008-02-01 Kenichi Handa <handa@m17n.org>
14983
14984 * search.c (search_buffer): Give up BM search on case-fold-search
14985 if one of a target character has a case-equivalence of different
14986 byte length even if that target charcter is an ASCII.
14987 (simple_search): Fix calculation of byte length of matched text.
14988 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14989
149902008-02-01 Kenichi Handa <handa@m17n.org>
14991
14992 * coding.c (decode_coding): Fix handling of invalid bytes.
14993
149942008-02-01 Kenichi Handa <handa@m17n.org>
14995
14996 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14997 Unicode characters.
14998
149992008-02-01 Kenichi Handa <handa@m17n.org>
15000
15001 * coding.c (encode_coding_object): If a pre-write-conversion
15002 function makes a new buffer, kill it.
15003
150042008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * coding.c (QCascii_compatible_p): New variable.
15007 (syms_of_coding): Initialize it.
15008 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15009 calling string_char.
15010 (record_conversion_result): Add `default:' case.
15011 (coding_charset_list): Delete unused variable `coding_type'.
15012 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15013 property in the plist of the coding system.
15014 (Fcoding_system_put): Check QCascii_compatible_p.
15015
150162008-02-01 Miles Bader <miles@gnu.org>
15017
15018 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15019 removed calculation of frame `f', as it's now used.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15024 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15025 (UNIDATA): New variable.
15026 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15027 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15028 $(RUN_TEMACS) unconditionally.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15033 (admindir): New variable.
15034 ($(lispsource)international/charprop.el): New target.
15035
150362008-02-01 Miles Bader <miles@gnu.org>
15037
15038 * character.c (chars-in-region): Remove obsolete function.
15039 (syms_of_character): Remove its initialization.
15040
150412008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15042
15043 * w32select.c (validate_coding_system)
15044 (setup_windows_coding_system): New functions.
15045 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15046 setup_windows_coding_system.
15047 (setup_config, Fw32_get_clipboard_data): Use
15048 validate_coding_system.
15049 (Fx_selection_exists): Move call to setup_config to a place
15050 where signals are allowed.
15051
15052 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15053 (Fcheck_coding_system): Add declarations.
15054
150552008-02-01 Kenichi Handa <handa@m17n.org>
15056
15057 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15058
150592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15060
15061 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15062 string as the second argument for x_new_fontset.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15067 (encode_coding_object): Use safe_call instead of call2.
15068
150692008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15072
15073 * Makefile.in (lisp): Include charprop.el.
15074
150752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15076
15077 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15078 Not sure if it's unnecessary.
15079
150802008-02-01 Steven Tamm <steventamm@mac.com>
15081
15082 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15083 some possibly unnecessary fontset checking code that crashed
15084 when creating a new frame.
15085
150862008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15089 lookup_face.
15090
15091 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15092
15093 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15094
150952008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15098 (coding_charset_list): New function.
15099
15100 * coding.h (coding_charset_list): Extern it.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15105 concatenation of family and registry.
15106
151072008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * character.h (BYTE8_STRING): Fix typo.
15110
15111 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15112 string to multibyte (sync to HEAD).
15113
15114 * casefiddle.c (casify_region): Handle changes in byte-length
15115 using replace_range_2 (sync to HEAD).
15116
151172008-02-01 Andreas Schwab <schwab@suse.de>
15118
15119 * chartab.c (map_char_table): GCPRO table and arg.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15124 already at limit.
15125
151262008-02-01 Kenichi Handa <handa@m17n.org>
15127
15128 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15129 instead of fast_c_string_match_ignore_case.
15130 (find_font_encoding): Change argument to Lisp_Object. Use
15131 fast_string_match_ignore_case instead of
15132 fast_c_string_match_ignore_case. Change caller.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * xdisp.c (get_next_display_element): In unibyte case, decide to
15137 display in octal form by checking a character by
15138 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15139
15140 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15141
15142 * character.c (unibyte_has_multibyte_table): New variable.
15143
15144 * character.h (unibyte_has_multibyte_table): Extern it.
15145 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * coding.c (encode_coding_iso_2022): Fix handling of charset
15150 annotation.
15151
151522008-02-01 Kenichi Handa <handa@m17n.org>
15153
15154 * coding.c (setup_coding_system): If coding_system is nil, use
15155 Qundecided.
15156 (Fterminal_coding_system): Return nil if terminal coding system is
15157 `undecided'.
15158 (syms_of_coding): Define coding-system `undecided' here. Setup
15159 terminal_coding as `undecided'.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * xdisp.c (message_dolog, set_message_1): Call
15164 unibyte_char_to_multibyte with arg type int.
15165
15166 * lread.c (read1): Fix reading of a char-table.
15167
15168 * print.c (print_object): Include sub char-table in circularities
15169 detection.
15170
151712008-02-01 Kenichi Handa <handa@m17n.org>
15172
15173 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15174 Append the found sequences in car of ARGS instead of prepending.
15175
151762008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * fileio.c (report_file_error): Make a unibyte string from
15179 strerror (errorno).
15180 (Fsubstitute_in_file_name): Fix the arg to
15181 unibyte_char_to_multibyte. It is evaluated twice.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15186
151872008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15190 BOM is not found.
15191 (detect_coding, detect_coding_system): Optimization for ISO-2022
15192 when no 8-bit data is found.
15193
151942008-02-01 Jason Rumney <jasonr@gnu.org>
15195
15196 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15201 CHARS.
15202
152032008-02-01 Steven Tamm <steventamm@mac.com>
15204
15205 * macterm.c (mac_encode_char): Add charset argument and update
15206 to use encoding_type.
15207 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15208 switch to pure fontset.
15209 (decode_mac_font_name): Temporarily remove decoding.
15210 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15211 (x_load_font): Temporarily remove encoding.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * xfaces.c (Fface_font): If frame is not on a window system,
15216 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15217 refer to face->font.
15218 (split_font_name_into_vector, build_font_name_from_vector)
15219 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15220 when HAVE_WINDOW_SYSTEM is defined.
15221
152222008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15225 (x_produce_glyphs): Fix setting of members of cmp in case
15226 cmp->glyph_len is zero.
15227
15228 * fontset.c (Fset_fontset_font): Fix docstring.
15229 (Ffontset_info): Make it backward compatible. New arg ALL.
15230
152312008-02-01 Kim F. Storm <storm@cua.dk>
15232
15233 * process.c (read_process_output): Grow decoding_buf when needed;
15234 this could cause a crash in allocate_string and compact_small_strings.
15235
152362008-02-01 Kenichi Handa <handa@m17n.org>
15237
15238 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15239
152402008-02-01 Kenichi Handa <handa@m17n.org>
15241
15242 * coding.c (setup_coding_system): Set coding->common_flags
15243 correctly for raw-text.
15244 (consume_chars): On encoding unibyte text by raw-text, don't check
15245 multibyte form.
15246 (encode_coding): On encoding by raw-text, never use translation tables.
15247
15248 * fileio.c (e_write): Short cut for the case of no encoding.
15249
152502008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * coding.c (detect_coding, detect_coding_system): Delete unused
15253 variables.
15254
152552008-02-01 Kenichi Handa <handa@m17n.org>
15256
15257 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15258 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15259
152602008-02-01 Kenichi Handa <handa@m17n.org>
15261
15262 * coding.c (Ffind_coding_systems_region_internal): Include
15263 raw-text and no-conversion in the result.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15268 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15269 FONT_DEF.
15270 (font_def_arg, add_arg, from_arg, to_arg): New args.
15271 (set_fontset_font): Change argument.
15272 (Fset_fontset_font): Fix for the case that TARGET is a script
15273 name and charset name.
15274 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15275
152762008-02-01 Kenichi Handa <handa@m17n.org>
15277
15278 * fontset.c (fontset_font): Rename from fontset_face. Change return
15279 value.
15280 (face_suitable_for_char_p, face_for_char): Adjust for the change
15281 of fontset_font.
15282 (make_fontset_for_ascii_face): Fix setting of the fontset element
15283 for ASCII.
15284 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15285 to get a font name.
15286 (Ffontset_info): Adjust for the change of fontset_font.
15287
15288 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15289
15290 * character.h (LEADING_CODE_LATIN_1_MIN)
15291 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15292
152932008-02-01 Kenichi Handa <handa@m17n.org>
15294
15295 * editfns.c (check_translation): New function.
15296 (Ftranslate_region_internal): Handle M:N mapping.
15297
152982008-02-01 Kenichi Handa <handa@m17n.org>
15299
15300 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15301
153022008-02-01 Kenichi Handa <handa@m17n.org>
15303
15304 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15305 goto invalid_code.
15306 (decode_coding_iso_2022): Fix handling of invalid designation.
15307
15308 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15309 after calling code_conversion_save.
15310
153112008-02-01 Kenichi Handa <handa@m17n.org>
15312
15313 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15314
15315 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15316
15317 * fontset.c: Include "intervals.h".
15318 (fontset_face): Fix comparing of Lisp_Objects.
15319 (free_face_fontset, new_fontset_from_font_name): Fix
15320 Lisp_Object/int mixup.
15321
15322 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15323
15324 * coding.c: Add many prototypes for static functions.
15325 (get_translation_table): Allow max_lookup to be NULL.
15326 (decode_coding, Ffind_coding_systems_region_internal)
15327 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15328 get_translation_table with max_lookup NULL.
15329
153302008-02-01 Kenichi Handa <handa@m17n.org>
15331
15332 * coding.c (get_translation_table): Declare it as Lisp_Object.
15333 (LOOKUP_TRANSLATION_TABLE): New macro.
15334 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15335 instead of CHAR_TABLE_REF.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15340 annotation data format.
15341 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15342 Change arguments FROM and TO to single argument NCHARS. Change caller.
15343 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15344 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15345 (decode_coding_ccl, decode_coding_charset): Pay attention to
15346 coding->charbuf_used.
15347 (get_translation): New function.
15348 (produce_chars): New arguments translation_table and last_block.
15349 Translate characters here. Return number of carryover chars.
15350 Change caller.
15351 (produce_composition): New argument pos. Change caller.
15352 Adjust for the change of annotation data format.
15353 (produce_charset, produce_annotation): Likewise.
15354 (decode_coding, encode_coding): Don't call translate_chars.
15355 (consume_chars): New arg translation_table. Change caller.
15356 (translate_chars): Delete.
15357 (syms_of_coding): Make translation-table's number of extra slots 2.
15358
153592008-02-01 Kenichi Handa <handa@m17n.org>
15360
15361 * search.c (simple_search): Fix setting this_pos_byte in backward
15362 search.
15363
15364 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15365 byte sequence.
15366 (detect_coding_ccl): Fix setting of the variable valids.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15371
15372 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15373
15374 * editfns.c (Ftranslate_region_internal): Rename from
15375 Ftranslate_region. Accept a char-table in TABLE.
15376 (syms_of_editfns): Defsubr Stranslate_region_internal.
15377
15378 * xfaces.c (set_lface_from_font_name): If a font is specified for
15379 a frame, generate a fontset from the font.
15380 (build_scalable_font_name): If the scalable font is requested for
15381 a specific size, don't change that size.
15382 (try_font_list): Try a scalable font also in the case that a
15383 pattern string is specified.
15384
153852008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * xfaces.c (Fface_font): New optional arg CHARACTER.
15388
153892008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * charset.h (CHARSET_OFFSET): New macro.
15392
153932008-02-01 Kenichi Handa <handa@m17n.org>
15394
15395 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15396
15397 * fontset.c (fontset_face): Handle the case that repertory is a
15398 char-table.
15399 (find_font_encoding): Return nil for unknown encoding.
15400 (Fset_fontset_font): Ignore a font of unknown encoding.
15401
154022008-02-01 Kenichi Handa <handa@m17n.org>
15403
15404 * keymap.c (describe_vector): Handle default value of a char table.
15405
15406 * fontset.c (fontset_face): Handle fallback fonts correctly.
15407 (Ffontset_info): Return infomation about fallback fonts.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * fontset.c (FONTSET_DEFAULT): New macro.
15412 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15413 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15414 the case that it is nil.
15415 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15416 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15417
15418 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15419 subset or superset.
15420
154212008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * emacs.c (main): Call init_charset after syms_of_XXX.
15424
15425 * charset.c (Vcharset_map_directory): Delete.
15426 (Vcharset_map_path): New variable.
15427 (load_charset_map_from_file): Use Vcharset_map_path instead.
15428 (init_charset): Initialize Vcharset_map_path.
15429 (syms_of_charset): Delete declaration of "charset-map-directory",
15430 add declaration of "charset-map-path".
15431
154322008-02-01 Kenichi Handa <handa@m17n.org>
15433
15434 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15435 ASCII only string.
15436
15437 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15438
15439 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15440 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15441
154422008-02-01 Kenichi Handa <handa@m17n.org>
15443
15444 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15445
15446 * coding.c (QCmnemonic, QCdefalut_char)
15447 (QCdecode_translation_table, QCencode_translation_table)
15448 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15449 (get_translation_table): Return a list of translation tables if
15450 necessary.
15451 (decode_coding): Call get_translation_table with ENCODEP 0.
15452 (char_encodable_p): If translation_table is non-nil, always call
15453 translate_char.
15454 (Fdefine_coding_system_internal): Accept list of translation
15455 tables as :encode-translation-table and :decode-translation-table.
15456 (Fcoding_system_put): New function.
15457 (syms_of_coding): Declare new symbols. Defsubr
15458 Scoding_system_put.
15459 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15460 typically JISX0212.
15461
15462 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15463 when the charset is superset type.
15464
15465 * character.c (translate_char): Accept list of translation tables.
15466
154672008-02-01 Kenichi Handa <handa@m17n.org>
15468
15469 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15470 (CODING_ATTR_TRANS_TBL): New macro.
15471
15472 * coding.c (get_translation_table): New function.
15473 (translate_chars): Fix the bug of skipping annotation data.
15474 (decode_coding, encode_coding): Utilize get_translation_table.
15475 (char_encodable_p, Funencodable_char_position): Translate char if
15476 necessary.
15477 (Ffind_coding_systems_region_internal)
15478 (Fcheck_coding_systems_region): Setup translation table for encode
15479 in a coding system attribute vector in advance.
15480 (Fdefine_coding_system_internal): Allow a symbol as translation
15481 table. For shift-jis type coding system, allow 4th charset.
15482
154832008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15486
15487 * xdisp.c (get_next_display_element): Pass -1 as POS to
15488 FACE_FOR_CHAR if displaying a C-string.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * composite.c (get_composition_id): Handle xoff and yoff in a
15493 composition rule.
15494
15495 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15496 (struct composition): New member lbearing and rbearing.
15497
15498 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15499 (x_get_glyph_overhangs): Handle a composition glyph.
15500 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15501
15502 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15503 composition glyph.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * print.c: Include charset.h.
15508 (Vprint_charset_text_property): New variable.
15509 (Qdefault): Extern it.
15510 (PRINT_STRING_NON_CHARSET_FOUND)
15511 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15512 (print_check_string_result): New variable.
15513 (print_check_string_charset_prop): New function.
15514 (print_prune_charset_plist): New variable.
15515 (print_prune_string_charset): New function.
15516 (print_object): Call print_prune_string_charset if
15517 Vprint_charset_text_property is not t.
15518 (print_interval): Print nothing if interval->plist is nil.
15519 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15520 variable. Init and staticpro print_prune_charset_plist.
15521
155222008-02-01 Kenichi Handa <handa@m17n.org>
15523
15524 * fontset.c (new_fontset_from_font_name): Use the specified font
15525 for all characters in the new fontset.
15526
15527 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15528 OBJECT args.
15529
15530 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15531 OBJECT args for composition too.
15532
15533 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15534 OBJECT args.
15535
155362008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15539
15540 * fontset.c (reorder_font_vector): Adjust for the change of
15541 FONT_DEF format.
15542 (fontset_face): New arg id. Change caller.
15543 (face_for_char): New args pos and object.
15544 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15545 (fs_query_fontset): Check NAME by Fassoc too.
15546 (Fset_fontset_font): Allow non-XLFD font name.
15547 (Ffontset_info): Adjust for the change of FONT_DEF format.
15548
15549 * fontset.h (face_for_char): Adjust prototype.
15550
15551 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15552 (append_space, extend_face_to_end_of_line)
15553 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15554 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15555
15556 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15557 POS and OBJECT args.
15558
15559 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15560 POS and OBJECT args.
15561
155622008-02-01 Jason Rumney <jasonr@gnu.org>
15563
15564 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15565 of GlobalAlloc'ed memory.
15566
155672008-02-01 Kenichi Handa <handa@m17n.org>
15568
15569 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15570
15571 * charset.h (charset_table_used): Delete extern.
15572
15573 * charset.c (charset_table_used): Make it static.
15574 (map_charset_chars): Fix args to c_function with.
15575
15576 * chartab.c (map_sub_char_table_for_charset): Fix args to
15577 c_function with.
15578
15579 * coding.h (enum coding_result_code): Delete
15580 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15581
15582 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15583 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15584 (Vlast_code_conversion_error): New variables.
15585 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15586 (ONE_MORE_BYTE): Record error if any instead of signaling an
15587 error. If non-ASCII multibyte char is found, return the negative
15588 value of the code. All callers changed to check it.
15589 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15590 (record_conversion_result): New function. Change all codes setting
15591 coding->result to call this function.
15592 (detect_coding_utf_8, decode_coding_utf_8)
15593 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15594 Don't use the local variable incomplete.
15595 (emacs_mule_char): Change the second arg to `const'.
15596 (decode_coding): Fix of flushing out unprocessed data.
15597 (make_conversion_work_buffer): Fix making of a work buffer.
15598 (decode_coding_object): Return coding->dst_object.
15599
15600 * fontset.c (set_fontset_font): Fix args.
15601
15602 * lisp.h (CHARACTERBITS): Define as 22.
15603
15604 * process.c (send_process): Be sure to set coding->src_multibyte.
15605
15606 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * xdisp.c (handle_auto_composed_prop): Give limit to
15611 Fnext_single_char_property_change.
15612
156132008-02-01 Kenichi Handa <handa@m17n.org>
15614
15615 * composite.c (syms_of_composite): Don't make the composition hash
15616 table weak.
15617
15618 * fontset.c (Fset_fontset_font): Fix docstring.
15619
15620 * lisp.h (detect_coding_system): Adjust prototype.
15621
15622 * fileio.c (kill_workbuf_unwind): Delete this function.
15623 (Finsert_file_contents): Adjust the call of detect_coding_system.
15624 Get conversion_buffer by code_conversion_save. Use the macro
15625 CODING_MAY_REQUIRE_DECODING. After decoding, update
15626 coding_system.
15627
15628 * coding.h (make_conversion_work_buffer): Delete extern.
15629 (code_conversion_save): Extern it.
15630
15631 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15632 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15633 (decode_coding_utf_8): Don't do eol converion.
15634 (detect_coding_utf_16): Check coding->src_chars, not
15635 coding->src_bytes. Add heuristics for those that have no signature.
15636 (decode_coding_emacs_mule, decode_coding_iso_2022)
15637 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15638 Don't do eol converion.
15639 (adjust_coding_eol_type): Return a new coding system.
15640 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15641 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15642 each change.
15643 (decode_coding): Pay attention to undo_list. Do eol conversion for
15644 all types of coding-systems (if necessary).
15645 (Vcode_conversion_work_buf_list): Delete it.
15646 (Vcode_conversion_reused_workbuf): Rename from
15647 Vcode_conversion_reused_work_buf.
15648 (Vcode_conversion_workbuf_name): New variable.
15649 (reused_workbuf_in_use): New variable.
15650 (make_conversion_work_buffer): Delete the arg DEPTH.
15651 (code_conversion_restore): Change argument to cons.
15652 (code_conversion_save): Delete the argument BUFFER. Change callers.
15653 (detect_coding_system): New argument src_chars. Change callers.
15654 Fix for utf-16 detection.
15655 (init_coding_once): Don't use ISO_carriage_return.
15656 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15657 reused_workbuf_in_use.
15658
156592008-02-01 Kenichi Handa <handa@m17n.org>
15660
15661 * keymap.c (store_in_keymap): Pay attention to the case that idx
15662 is a cons specifying a character range.
15663
156642008-02-01 Kenichi Handa <handa@m17n.org>
15665
15666 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15667 HANDLED_RECOMPUTE_PROPS.
15668
15669 * coding.c (Fdefine_coding_system_internal): Fix checking of
15670 ascii compatibility.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * charset.c (find_charsets_in_text): Delete unused locale variable.
15675 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15676
15677 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15678 Resync charset_list to Vemacs_mule_charset_list.
15679
15680 * keymap.c (store_in_keymap): Pay attention to the case that idx
15681 is a cons specifying a character range.
15682
156832008-02-01 Kenichi Handa <handa@m17n.org>
15684
15685 * composite.c (update_compositions): Bind inhibit-read-only, etc
15686 to t before calling remove-list-of-text-properties.
15687
15688 * print.c (print_object): Always print ASCII chars as is.
15689
156902008-02-01 Kenichi Handa <handa@m17n.org>
15691
15692 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15693
15694 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15695 is a char table.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15700
157012008-02-01 Kenichi Handa <handa@m17n.org>
15702
15703 * xfaces.c (set_lface_from_font_name): Fix for the case that
15704 FONTNAME is not fontset name.
15705
157062008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 * fns.c (base64_encode_1): Fix previous change.
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * fontset.c (set_fontset_font): New function.
15713 (Fset_fontset_font): If a font is specified for a charset, use
15714 map_charset_chars to store the font spec in a fontset.
15715
157162008-02-01 Kenichi Handa <handa@m17n.org>
15717
15718 * fontset.c (fontset_face): Create a fallback fontset on demand.
15719 (make_fontset): Don't create a fallback fontset here.
15720 (free_face_fontset): Free a fallback fontset (if any) too.
15721 (n_auto_fontsets): Delete this variable.
15722 (auto_fontset_alist): New variable.
15723 (new_fontset_from_font_name): Check auto_fontset_alist.
15724 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15725 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15726 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15727 Defsubr Sfontset_list_all.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15732
157332008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * editfns.c (Fgoto_char): Fix docstring.
15740
157412008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * insdel.c (insert_from_gap): Adjust intervals correctly.
15744
157452008-02-01 Jason Rumney <jasonr@gnu.org>
15746
15747 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15748 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15749 (w32_initialize): Try to load it.
15750 (x_get_font_repertory): Use it if available.
15751 (w32_encode_char): Add shortcut for unicode output.
15752
15753 * w32fns.c (w32_load_system_font): Default charset to -1.
15754 (x_to_w32_charset): Match all fonts for unicode.
15755 (w32_to_x_charset): New parameter matching. Don't return partial
15756 or wildcard charsets.
15757 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15758 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15759 (w32_to_x_font): Match charset to real charset.
15760 (enum_font_cb2): Always list unicode versions.
15761
15762 * makefile.w32-in (temacs): Increase EMHEAP.
15763
157642008-02-01 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32term.c (w32_encode_char): New charset parameter.
15767 font_info.encoding becomes encoding_type.
15768 (x_get_font_repertory): New function. Warning: stub only!
15769 (x_new_font): Return quickly if font already set.
15770 (x_new_fontset): fontsetname parameter is Lisp_Object.
15771 Use new fs_query_fontset. Try new_fontset_from_font_name.
15772 Use fontset_name for return value.
15773
15774 * w32term.h: Declare x_get_font_repertory.
15775
15776 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15777 place of find_charset_in_text. Use encode_coding_object in place
15778 of encode_coding.
15779 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15780 decode_coding.
15781
15782 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15783 of x_new_fontset.
15784 (w32_load_system_font): Initialize charset as unicode.
15785 font_info.encoding becomes encoding_type.
15786 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15787 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15788 (syms_of_w32fns): Set get_font_repertory_func.
15789
15790 * w32console.c: Include character.h. Use terminal_encode_buffer
15791 from term.c.
15792 (write_glyphs): Use new version of encode_terminal_code. Use
15793 encode_coding_object in place of encode_coding.
15794
15795 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15796 encoding becomes encoding_type.
15797
15798 * term.c (terminal_encode_buffer): Make externally visible.
15799
15800 * makefile.w32-in: Add character.h dependancies.
15801 (character.o, chartab.o): New targets.
15802
158032008-02-01 Kenichi Handa <handa@m17n.org>
15804
15805 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15806 CODING_ID_EOL_TYPE.
15807
158082008-02-01 Andreas Schwab <schwab@suse.de>
15809
15810 * coding.c (produce_chars): Revert last change.
15811
158122008-02-01 Kenichi Handa <handa@m17n.org>
15813
15814 * charset.h (charset_unicode): Extern it.
15815
15816 * charset.c (string_xstring_p): Check by (C >= 0x100).
15817 (find_charsets_in_text): Change format of the arc CHARSETS. New
15818 arg MULTIBYTE.
15819 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15820 change of find_charsets_in_text.
15821 (Fsplit_char): Fix doc. Never return unknown.
15822
15823 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15824
15825 * coding.c (Fdefine_coding_system_alias): Update
15826 Vcoding_system_list.
15827
15828 * fontset.c (load_font_get_repertory): Pay attention to the case
15829 that ENCODING of a font is specified by a char-table.
15830
15831 * xterm.c (x_get_font_repertory): Handle the case that the
15832 encoding of font is other than Unicode.
15833
158342008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15837 if a character is encodable by the terminal coding system. If
15838 not, produces proper number of `?'s. Update
15839 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15840 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15841
158422008-02-01 Kenichi Handa <handa@m17n.org>
15843
15844 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15845 variables.
15846 (encode_terminal_code): Change argument. Encode multiple
15847 characters at once. Store the result of encoding in
15848 terminal_encode_buffer.
15849 (write_glyphs, insert_glyphs): Adjust for the change of
15850 encode_terminal_code.
15851 (term_init): Initialize terminal_encode_buffer and
15852 terminal_encode_buf_size.
15853
15854 * coding.c (consume_chars): If coding->src_object is nil, don't
15855 check annotation.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * character.c (char_string): Use ASCII_CHAR_P instead of
15860 SINGLE_BYTE_CHAR_P.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * xdisp.c (handle_auto_composed_prop): Check if the last
15865 characters of auto-composed region is newly composed with the
15866 following characters.
15867 (handle_composition_prop): Fix checking of point being inside
15868 composition.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * fns.c (concat): Don't change multibyteness of the result by
15873 concatenating an 8-bit character.
15874
15875 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15876 multibyteness of the result when newelt is an 8-bit character.
15877
158782008-02-01 Dave Love <fx@gnu.org>
15879
15880 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15881 EMACS_INT.
15882
15883 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15884
15885 * xfaces.c (face_numeric_value): Declare dim size_t.
15886 (Finternal_lisp_face_equal_p): Remove unused f.
15887
15888 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15889 (MATRIX_ROW): Remove unused vars.
15890 (draw_glyphs, x_insert_glyphs, fast_find_position)
15891 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15892 byte/char counts.
15893
15894 * regex.c (regex_compile): Remove unused var.
15895
15896 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15897
15898 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15899 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15900
15901 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15902
15903 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15904
15905 * fileio.c (Fwrite_region): Remove unused var.
15906
15907 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15908 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15909
15910 * composite.c (Fremove_list_of_text_properties): Declare.
15911
15912 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15913 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15914 (coding_inherit_eol_type): Remove unused attrs.
15915 (detect_coding): Cast arg of detect_eol.
15916
15917 * charset.c (syms_of_charset): Remove unused var p.
15918 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15919 byte/char counts.
15920
15921 * casetab.c (set_case_table): Remove unused var.
15922
15923 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15924 unused vars.
15925
159262008-02-01 Dave Love <fx@gnu.org>
15927
15928 * xterm.c (x_bitmap_mask): Declare.
15929
159302008-02-01 Dave Love <fx@gnu.org>
15931
15932 * xterm.c (x_term_init): Fix type error.
15933
15934 * lisp.h: Add Funibyte_char_to_multibyte.
15935
15936 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15937 (Fset_coding_system_priority): Doc fix.
15938
15939 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15940
15941 * indent.c (check_composition): Make start and end EMACS_INT.
15942
15943 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15944
15945 * xdisp.c (handle_composition_prop, check_point_in_composition):
15946 Make buffer positions EMACS_INT.
15947
15948 * composite.c (find_composition, run_composition_function)
15949 (update_compositions, Ffind_composition_internal): Make buffer
15950 positions EMACS_INT.
15951
15952 * composite.h (find_composition, update_compositions): Make
15953 position args EMACS_INT.
15954
15955 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15956
15957 * intervals.c (get_property_and_range):
15958 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15959
15960 * unexalpha.c: Don't include varargs.h.
15961
159622008-02-01 Dave Love <fx@gnu.org>
15963
15964 * coding.h (ENCODE_UTF_8): New.
15965
15966 * Makefile.in (gtkutil.o): Depend on coding.h.
15967
15968 * coding.c (Fset_coding_system_priority): Doc fix.
15969
159702008-02-01 Kenichi Handa <handa@m17n.org>
15971
15972 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15973 the case of auto saving.
15974
159752008-02-01 Andreas Schwab <schwab@suse.de>
15976
15977 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15978 `range' from GC.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15983
159842008-02-01 Kenichi Handa <handa@m17n.org>
15985
15986 * fileio.c (choose_write_coding_system): Return a decided coding system.
15987 (Fwrite_region): Set Vlast_coding_system_used to the return value
15988 of choose_write_coding_system.
15989
159902008-02-01 Kenichi Handa <handa@m17n.org>
15991
15992 * charset.c (Fset_charset_priority): Pay attention to duplicated
15993 arguments.
15994
15995 * coding.c (QCcategory): New variable.
15996 (syms_of_coding): Defsym it. Set all elements of
15997 Vcoding_category_table and their symbol values.
15998 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15999 coding-category-XXX, and coding-category-list.
16000 (Fdefine_coding_system_internal): Add category in the plist.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * callproc.c (Fcall_process): Handle carryover correctly.
16005
16006 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16007 (raw_text_coding_system): Check NILP (coding_system).
16008 (coding_inherit_eol_type): Check NILP (coding_system) and
16009 NILP (parent).
16010 (consume_chars): Fix for the case of raw-text.
16011
16012 * process.c (read_process_output): Handle carryover correctly.
16013
160142008-02-01 Dave Love <fx@gnu.org>
16015
16016 * regex.c (re_search_2): Fix last change.
16017
160182008-02-01 Kenichi Handa <handa@m17n.org>
16019
16020 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16021 target_multibyte. Even in a unibyte case, return a converted
16022 multibyte char.
16023 (GET_CHAR_AFTER): New macro.
16024 (PATFETCH): Translate via multibyte char.
16025 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16026 (SETUP_MULTIBYTE_RANGE): New macro.
16027 (regex_compile): Setup compiled code so that its multibyteness
16028 matches that of a target. Fix the handling of "[X-YZ]" using
16029 SETUP_MULTIBYTE_RANGE.
16030 (analyse_first) <charset>: For filling fastmap for all multibyte
16031 characters, don't check by BASE_LEADING_CODE_P.
16032 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16033 the same as RE_MULTIBYTE_P (bufp) now.
16034 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16035 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16036 (TRANSLATE_VIA_MULTIBYTE): New macro.
16037 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16038 It is the same as RE_MULTIBYTE_P (bufp) now.
16039 <exactn>: Translate via multibyte.
16040 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16041 translate it.
16042 <charset, charset_not>: Fetch a character by
16043 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16044 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16045 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16046 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16047 by GET_CHAR_AFTER.
16048 (bcmp_translate): Likewise.
16049
16050 * search.c (compile_pattern): Check the member target_multibyte,
16051 not the member multibyte of buf.
16052
16053 * lread.c (read1): While reading a string, set force_singlebyte
16054 and force_multibyte correctly.
16055
16056 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16057 up of unibyte_to_multibyte_table.
16058
160592008-02-01 Kenichi Handa <handa@m17n.org>
16060
16061 * coding.c (setup_coding_system): If coding has
16062 post-read-conversion or pre-write-conversion, set
16063 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16064 respectively.
16065 (decode_coding_gap): Run post-read-conversion if any.
16066
16067 * fileio.c (Finsert_file_contents): Even if we read into a
16068 unibyte buffer, check if we must decode the result or not.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * coding.c (make_conversion_work_buffer): Change the work buffer
16073 name to the same one as that of Emacs 21.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * coding.h (make_conversion_work_buffer): Adjust prototype.
16078 (code_conversion_restore): Don't extern it.
16079
16080 * coding.c (detected_mask): Delete unused variable.
16081 (decode_coding_iso_2022): Pay attention to the byte sequence of
16082 CTEXT extended segment, and retain those bytes as is.
16083 (decode_coding_ccl): Delete unused variable `valids'.
16084 (setup_coding_system): Delete unused variable `category'.
16085 (consume_chars): Delete unused variable `category'. Make it work
16086 for non-multibyte case.
16087 (make_conversion_work_buffer): Change argument.
16088 (saved_coding): Delete unused variable.
16089 (code_conversion_restore): Don't check saved_coding->destination.
16090 (code_conversion_save): New function.
16091 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16092 instead of record_unwind_protect.
16093 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16094 (detect_coding_system): Delete unused variable `mask'.
16095 (Fdefine_coding_system_internal): Delete unused variable id.
16096
16097 * fileio.c (kill_workbuf_unwind): New function.
16098 (Finsert_file_contents): On replacing, call
16099 make_conversion_work_buffer with correct args, and call
16100 record_unwind_protect with the first arg kill_workbuf_unwind.
16101
16102 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16103
161042008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16107 (fontset_add): Fix for the case that TO is less than TO1.
16108 (Ffontset_info): Don't use fallback fontset on checking the
16109 default fontset.
16110 (dump_fontset): New function for debugging.
16111
16112 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16113 coding_type is Qcharset.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16118 (map_char_table): Don't inherit the value from the parent on
16119 initializing VAL. Adjust for the above change.
16120
161212008-02-01 Kenichi Handa <handa@m17n.org>
16122
16123 * coding.c (Qsignature, Qendian): Delete these variables.
16124 (syms_of_coding): Don't initialize them.
16125 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16126 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16127 detect_info->found.
16128 (decode_coding_utf_16): Don't detect BOM here.
16129 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16130 is NOT utf_16_without_bom.
16131 (setup_coding_system): For a coding system of type utf-16, check
16132 if the attribute :endian is Qbig or not (not nil or not), and set
16133 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16134 (detect_coding): If coding type is utf-16 and BOM detection is
16135 required, detect it.
16136 (Fdefine_coding_system_internal): For a coding system of type
16137 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16138
161392008-02-01 Kenichi Handa <handa@m17n.org>
16140
16141 * coding.c (coding_set_source): Fix for the case that the current
16142 buffer is different from coding->src_object.
16143 (decode_coding_object): Don't use the conversion work buffer if
16144 DST_OBJECT is a buffer.
16145
161462008-02-01 Dave Love <fx@gnu.org>
16147
16148 * lread.c (read_emacs_mule_char) [len==2]: Index
16149 emacs_mule_charset correctly.
16150
161512008-02-01 Dave Love <fx@gnu.org>
16152
16153 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16154 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16155 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16156 treated specially.)
16157 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16158 (detected_mask): Remove Big5 bits.
16159
161602008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 The following changes are to make the font rescaling facility
16163 compatible with Emacs 21.
16164
16165 * xfaces.c (Vface_font_rescale_alist): Rename from
16166 Vface_resizing_fonts.
16167 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16168 (font_rescale_ratio): Rename from font_resizing_ratio.
16169 (split_font_name): Set font->rescale_ratio.
16170 (better_font_p): Pay attention to font->rescale_ratio.
16171 (build_scalable_font_name): Likewise. Change RESX, and RESY
16172 fields.
16173 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16174
161752008-02-01 Kenichi Handa <handa@m17n.org>
16176
16177 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16178 (Qutf_16_le): Remove these variables.
16179 (syms_of_coding): Don't DEFSYM them.
16180 (decode_coding_utf_16): Fix handling of BOM.
16181 (encode_coding_utf_16): Fix handling of BOM.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * fileio.c (Finsert_file_contents): On replacing, before decoding
16186 the file into the work buffer, set point of the work buffer to the end.
16187
161882008-02-01 Dave Love <fx@gnu.org>
16189
16190 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16191
161922008-02-01 Dave Love <fx@gnu.org>
16193
16194 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16195 and fix C types.
16196
161972008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * xdisp.c (SKIP_GLYPHS): New macro.
16200 (set_cursor_from_row): Pay attention to string display properties.
16201
16202 * category.c (copy_category_entry): Fix for the case that RANGE
16203 is an integer.
16204
16205 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16206
16207 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * charset.c (Fcharset_id_internal): New function.
16212 (syms_of_charset): Defsubr it.
16213
16214 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16215 with the last arg charset_list acquired from coding.
16216 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16217 the attribute coding_attr_ccl_valids.
16218
16219 * coding.h (enum define_coding_ccl_arg_index): Set the first
16220 member coding_arg_ccl_decoder to coding_arg_max.
16221
16222 * ccl.h (ccl_driver): Adjust prototype.
16223
16224 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16225 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16226 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16227 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16228 last arg Qnil.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16233 call encode_char.
16234
16235 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16236
162372008-02-01 Dave Love <fx@gnu.org>
16238
16239 * composite.c (syms_of_composite): Make composition_hash_table weak.
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16244 (font_name_registry): Don't extern them.
16245 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16246
16247 * fontset.h (Qfontset): Don't extern it.
16248 (new_fontset_from_font_name): Extern it.
16249
16250 * fontset.c: Give 8 extra slots to fontset objects.
16251 (Qfontset_info): New variable.
16252 (syms_of_fontset): Defsym it.
16253 (FONTSET_FALLBACK): New macro.
16254 (fontset_face): Try also the default fontset.
16255 (make_fontset): Realize a fallback fontset from the default fontset.
16256 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16257 using split_font_name_into_vector and build_font_name_from_vector.
16258 (Fset_fontset_font): Access the elements of font_spec by enum
16259 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16260 name by using split_font_name_into_vector.
16261 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16262 generate a proper font name from the fontset name. Update
16263 Vfontset_alias_alist.
16264 (n_auto_fontsets): New variable.
16265 (new_fontset_from_font_name): New function.
16266 (Ffont_info): Store the information about fonts generated from the
16267 default fontset in the first extra slot of the returned char-table.
16268
16269 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16270 (font_name_registry): Delete function.
16271 (split_font_name_into_vector): New function.
16272 (build_font_name_from_vector): New function.
16273 (font_list): The argument REGISTRY is now a list of registry names.
16274 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16275 specifies an explicit font name, return the name as is. Make a
16276 list of registy names.
16277
16278 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16279 of x_new_fontset.
16280 (Fx_create_frame): Don't call x_new_fontset here. Just use
16281 x_list_fonts to check the existence of fonts.
16282
16283 * xterm.h (x_new_fontset): Adjust prototype.
16284
16285 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16286 string. Use new_fontset_from_font_name to create a fontset from a
16287 font name.
16288
162892008-02-01 Kenichi Handa <handa@m17n.org>
16290
16291 * syntax.c (Vfind_word_boundary_function_table): New name for
16292 Vnext_word_boundary_function_table.
16293 (find-word-boundary-function-table): New name for
16294 next-word-boundary-function-table.
16295
162962008-02-01 Dave Love <fx@gnu.org>
16297
16298 * Makefile.in: Fix some dependencies.
16299
16300 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16301 set it to nil before returning.
16302
16303 * composite.c (update_compositions): Fix type error.
16304
16305 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16306
163072008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * xterm.c (x_new_font): Optimize for the case that the font is
16310 already set for the frame.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * chartab.c (char_table_ascii): Check if the char table contents
16315 is sub-char-table or not.
16316 (char_table_set, char_table_set_range): Fix argument to
16317 char_table_ascii.
16318
16319 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16320 (detect_coding_utf_8, detect_coding_utf_16)
16321 (detect_coding_emacs_mule, detect_coding_iso_2022)
16322 (detect_coding_sjis, detect_coding_big5)
16323 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16324 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16325 sequence is valid in this coding system. Change callers.
16326 (MAX_ANNOTATION_LENGTH): New macro.
16327 (ADD_ANNOTATION_DATA): New macro.
16328 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16329 ADD_ANNOTATION_DATA. Change the format of annotation data.
16330 (ADD_CHARSET_DATA): New macro.
16331 (emacs_mule_char): New argument ID. Change callers.
16332 (decode_coding_emacs_mule, decode_coding_iso_2022)
16333 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16334 Produce charset annotation data in coding->charbuf.
16335 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16336 to charset annotation data in coding->charbuf.
16337 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16338 coding->common_flags if the coding system is iso-2022 based and
16339 uses designation.
16340 (produce_composition): Adjust for the new annotation data format.
16341 (produce_charset): New function.
16342 (produce_annotation): Handle charset annotation.
16343 (handle_composition_annotation, handle_charset_annotation): New
16344 functions.
16345 (consume_chars): Handle charset annotation. Utilize the above two
16346 functions.
16347 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16348 buffer, get the deleted text as a string and set
16349 coding->src_object to that string.
16350 (detect_coding, detect_coding_system): Use the new struct
16351 coding_detection_info.
16352
16353 * coding.h (struct coding_detection_info): New structure.
16354 (struct coding_system): Adjust prototype of the member `detector'.
16355 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16360
163612008-02-01 Dave Love <fx@gnu.org>
16362
16363 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16364 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16365 to new local and nullify apropos_accumulate before returning.
16366 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16367
163682008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16371 correctly.
e3eea1fc 16372
aac0c6e3
MR
163732008-02-01 Dave Love <fx@gnu.org>
16374
16375 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16376
163772008-02-01 Kenichi Handa <handa@m17n.org>
16378
16379 The following changes are to make character composition happen
16380 automatically on displaying.
16381
16382 * Makefile.in (lisp, shortlisp): Add composite.elc.
16383
16384 * composite.h (Qauto_composed, Vauto_composition_function)
16385 (Qauto_composition_function): Extern them.
16386
16387 * composite.c (Vcomposition_function_table)
16388 (Qcomposition_function_table): Delete variables.
16389 (Qauto_composed, Vauto_composition_function)
16390 (Qauto_composition_function): New variables.
16391 (run_composition_function): Don't call
16392 compose-chars-after-function.
16393 (update_compositions): Clear `auto-composed' text property.
16394 (compose_chars_in_text): Delete this function.
16395 (syms_of_composite): Staticpro Qauto_composed and
16396 Qauto_composition_function. Declare Vauto_composition_function as
16397 a Lisp variable.
16398
16399 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16400
16401 * xdisp.c (it_props): Add an entry for Qauto_composed.
16402 (handle_auto_composed_prop): New function.
16403
16404 * xselect.c (selection_data_to_lisp_data): Don't call
16405 compose_chars_in_text.
16406
164072008-02-01 Dave Love <fx@gnu.org>
16408
16409 * keyboard.c (read_char): Modify checking around use of
16410 Vkeyboard_translate_table.
16411
16412 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16413 and fix C types.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16418 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16419 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16420 the case that the last byte is '\r' correctly.
16421 (decode_coding): Flush out the unprocessed data correctly.
16422 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16423
164242008-02-01 Dave Love <fx@gnu.org>
16425
16426 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16427 Add XK_ISO... case.
16428 (xaw_scroll_callback): Revert last change.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16433
164342008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * xfaces.c (Vface_resizing_fonts): New variable.
16437 (struct font_name): New member `resizing_ratio'.
16438 (font_resizing_ratio): New function.
16439 (split_font_name): Set font->resizing_ratio.
16440 (better_font_p): Pay attention to font->resizing_ratio.
16441 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16442 RESX, and RESY fields.
16443 (try_alternative_families): Try scalable fonts if
16444 Vscalable_fonts_allowed is not Qt.
16445 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16446
164472008-02-01 Dave Love <fx@gnu.org>
16448
16449 * xterm.c (xaw_scroll_callback): Cast correctly.
16450
164512008-02-01 Dave Love <fx@gnu.org>
16452
16453 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16454 (lispy_kana_keys): Comment out.
16455 (make_lispy_event) [XK_kana_A]: Comment out.
16456
16457 * xterm.c (xaw_scroll_callback): Cast call_data.
16458 (XTread_socket): Deal with ASCII keysyms.
16459 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16460
164612008-02-01 Dave Love <fx@gnu.org>
16462
16463 * xterm.c (Vx_keysym_table): New.
16464 (syms_of_xterm): Initialize it.
16465 (XTread_socket): Use it.
16466 From head: Eliminate incorrect optimization that tried to avoid
16467 decoding the output of X*LookupString.
16468 (x_get_font_repertory): Delete charset declaration.
16469
164702008-02-01 Kenichi Handa <handa@m17n.org>
16471
16472 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16473 return 0.
16474 (Fdefine_coding_system_internal): Setup
16475 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16476
164772008-02-01 Dave Love <fx@gnu.org>
16478
16479 * coding.c (Fcheck_coding_system): Doc fix.
16480
16481 * editfns.c (Finsert_byte): Return a proper value.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * coding.c (decode_coding): Fix args to translate_chars. Pay
16486 attention to Vstandard_translation_table_for_decode.
16487 (encode_coding): Fix args to translate_chars. Pay attention to
16488 Vstandard_translation_table_for_encode.
16489
16490 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16491 SINGLE_BYTE_CHAR_P.
16492
16493 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16494 not by SINGLE_BYTE_CHAR_P.
16495
16496 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16497 SINGLE_BYTE_CHAR_P.
16498
16499 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16500 SINGLE_BYTE_CHAR_P.
16501
16502 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16503 by SINGLE_BYTE_CHAR_P.
16504
16505 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16506 SINGLE_BYTE_CHAR_P.
16507
165082008-02-01 Dave Love <fx@gnu.org>
16509
16510 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16511
165122008-02-01 Dave Love <fx@gnu.org>
16513
16514 * fns.c (Flanginfo): Fix typo.
16515
16516 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16517
165182008-02-01 Kenichi Handa <handa@m17n.org>
16519
16520 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16521 (detect_coding_emacs_mule, detect_coding_iso_2022)
16522 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16523 incomplete byte sequence. Don't update *mask when correctly detected.
16524 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16525 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16526 (detect_coding, detect_coding_system): Adjust for the changes above.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * character.c (char_string): Rename from
16531 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16532 (string_char): Rename from string_char.
16533
16534 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16535 if C is greater than MAX_3_BYTE_CHAR.
16536 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16537 string_char instead of string_char_with_unification.
16538
165392008-02-01 Dave Love <fx@gnu.org>
16540
16541 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16542
165432008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * keymap.c (push_key_description): Pay attention to force_multibyte.
16546
16547 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16548
165492008-02-01 Dave Love <fx@gnu.org>
16550
16551 * charset.c (define_charset_internal): Rename `supprementary'.
16552
16553 * Makefile.in (lisp, shortlisp): Remove latin-N.
16554
165552008-02-01 Dave Love <fx@gnu.org>
16556
16557 * xfns.c (x_window, x_window): Use use_xim.
16558
16559 * xterm.c (use_xim): Initialize.
16560 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16561 (x_term_init): Maybe set use_xim.
16562
16563 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16564
165652008-02-01 Kenichi Handa <handa@m17n.org>
16566
16567 * search.c (search_buffer): Fix case-fold-search of multibyte
16568 characters.
16569 (boyer_moore): Rename the last argument to char_high_bits.
16570
165712008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * xdisp.c (display_string): Fix for the case of zero width glyph.
16574
16575 * xfns.c (x_set_font): Change the error message of the case that
16576 x_new_fontset returns Qt.
16577
16578 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16579 (Finternal_set_lisp_face_attribute): Use signal_error for the
16580 error of invalid fontset.
16581
16582 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16583 fontset, return Qt.
16584
165852008-02-01 Dave Love <fx@gnu.org>
16586
16587 * unexelf.c (unexec): Make .got handling not SGI-specific.
16588
16589 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16590
16591 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16592
16593 * keyboard.c (read_key_sequence): Fix type error.
16594
16595 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16596 type error.
16597
16598 * fontset.c (fontset_add): Return Lisp_Object.
16599
166002008-02-01 Dave Love <fx@gnu.org>
16601
16602 * charset.h (charset_ordered_list_tick): Declare extern.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 The following changes (and some of 2008-02-01 changes of mine) are
16607 for handling syntax, category, and case conversion for unibyte
16608 characters by converting them to multibyte on the fly. With these
16609 changes, we don't have to setup syntax and case tables for unibyte
16610 characters in each language environment.
16611
16612 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16613 multibyte if necessary.
16614
16615 * bytecode.c (Fbyte_code): Likewise.
16616
16617 * character.h (LEADING_CODE_LATIN_1_MIN)
16618 (LEADING_CODE_LATIN_1_MAX): New macros.
16619 (unibyte_to_multibyte_table): Extern it.
16620 (unibyte_char_to_multibyte): New macro.
16621 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16622 (CHAR_LEADING_CODE): New macro.
16623 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16624
16625 * character.c (unibyte_to_multibyte_table): New variable.
16626 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16627 (multibyte_char_to_unibyte): If C is an eight-bit character,
16628 convert it to the corresponding byte value.
16629
16630 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16631 not 1, signals an error. Update the elements of
16632 unibyte_to_multibyte_table.
16633 (init_charset_once): Initialize unibyte_to_multibyte_table.
16634 (syms_of_charset): Define the charset `iso-8859-1'.
16635
16636 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16637 as is without converting it to unibyte. In a unibyte buffer,
16638 convert C to multibyte before checking the syntax.
16639
16640 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16641
16642 * minibuf.c (Fminibuffer_complete_word): Use the macro
16643 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16644
16645 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16646
16647 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16648 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16649 that is zero, convert an eight-bit char to multibyte.
16650 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16651 non-emacs case.
16652 (PATFETCH): Convert an eight-bit char to multibyte.
16653 (HANDLE_UNIBYTE_RANGE): New macro.
16654 (regex_compile): Setup the compiled pattern for multibyte chars
16655 even if the given regex string is unibyte. Use PATFETCH_RAW
16656 instead of PATFETCH in many places. To handle `charset'
16657 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16658 only for ASCII chars.
16659 (analyse_first) <exactn>: Simplify because the compiled pattern
16660 is multibyte.
16661 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16662 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16663 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16664 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16665 multibyte always 1.
16666 (re_search_2): In emacs, set the locale variable multibyte to 1,
16667 otherwise to 0. New local variable target_multibyte. Check it
16668 to decide the multibyteness of STR1 and STR2. If
16669 target_multibyte is zero, convert unibyte chars to multibyte
16670 before translating and checking fastmap.
16671 (TARGET_CHAR_AND_LENGTH): New macro.
16672 (re_match_2_internal): In emacs, set the locale variable multibyte
16673 to 1, otherwise to 0. New local variable target_multibyte. Check
16674 it to decide the multibyteness of STR1 and STR2. Use
16675 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16676 <charset, charset_not>: If multibyte is nonzero, check fastmap
16677 only for ASCII chars. Call bcmp_translate with
16678 target_multibyte, not with multibyte.
16679 <begline>: Declare the local variable C as `unsigned'.
16680 (bcmp_translate): Change the last arg name to target_multibyte.
16681
16682 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16683 the regexp pattern and the matching target. Set cp->buf.multibyte
16684 to the multibyteness of the regexp pattern. Set
16685 cp->but.target_multibyte to the multibyteness of the matching target.
16686 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16687 FETCH_STRING_CHAR_ADVANCE.
16688 (Freplace_match): Convert unibyte chars to multibyte.
16689
16690 * syntax.c (char_quoted, back_comment, scan_words)
16691 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16692 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16693 unibyte chars to multibyte.
16694 (skip_chars): Delete the arg syntaxp, and move the code for
16695 handling syntaxes to skip_syntaxes. Change callers.
16696 Fix the case that the multibyteness of STRING and the current
16697 buffer doesn't match.
16698 (skip_syntaxes): New function.
16699 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16700 SINGLE_BYTE_CHAR_P.
16701
167022008-02-01 Kenichi Handa <handa@m17n.org>
16703
16704 * xfaces.c (QCfontset): New variable.
16705 (LFACE_FONTSET): New macro.
16706 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16707 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16708 (Finternal_set_lisp_face_attribute)
16709 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16710 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16711 check also LFACE_FONTSET_INDEX.
16712 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16713 attrs[LFACE_FONT_INDEX].
16714 (syms_of_xfaces): Intern and staticpro QCfontset.
16715
16716 * dispextern.h (enum lface_attribute_index): New member
16717 LFACE_FONTSET_INDEX.
16718
16719 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * coding.c (coding_set_destination): Fix coding->destination for
16724 the case converting a region.
16725 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16726 (encode_coding_object): Fix coding->dst_pos and
16727 coding->dst_pos_byte for the case converting a region.
16728
16729 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16730
16731 * character.h (BYTE8_STRING): New macro.
16732
16733 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16734
167352008-02-01 Kenichi Handa <handa@m17n.org>
16736
16737 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16738 characters by octal form.
16739
16740 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16741
16742 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16743 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16744 _fetch_multibyte_char_len.
16745 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16746
16747 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16748
16749 * casefiddle.c (casify_object): Simplify. Handle the case that
16750 the case conversion change the byte length.
16751 (casify_region): Likewise.
16752
16753 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16754
16755 * character.c (_fetch_multibyte_char_len): Delete this variable.
16756 (syms_of_character): Setup Vprintable_chars.
16757
16758 * editfns.c (Fchar_equal): Fix for the unibyte case.
16759 (Finsert_byte): New function.
16760 (syms_of_editfns): Defsubr it.
16761
16762 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16763 of direct code 0x3ffff.
16764
16765 * search.c (Freplace_match): Fix for the unibyte case.
16766
167672008-02-01 Kenichi Handa <handa@m17n.org>
16768
16769 * lread.c (safe_to_load_p): Fix the logic.
16770
16771 * syntax.c (scan_words): Don't treat characters belonging to
16772 different scripts as constituting a word.
16773
16774 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16775
16776 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16777
16778 * emacs.c (main): In the case of --unibyte, instead of aborting on
16779 finding non-empty buffer, make it unibyte.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16784 to create a fontset.
16785
167862008-02-01 Dave Love <fx@gnu.org>
16787
16788 * character.c (Funibyte_char_to_multibyte): Doc fix.
16789
16790 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * fontset.c (fontset_add): Make the type `int'.
16795 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16796
16797 * character.c (unibyte_char_to_multibyte)
16798 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16799 charset_unibyte, not charset_primary.
16800
16801 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16802
16803 * charset.c (charset_unibyte): Rename from charset_primary.
16804 (Funibyte_charset): Rename from Fprimary_charset.
16805 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16806 (syms_of_charset): Adjust for the above changes.
16807
16808 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16809 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16810 it->multibyte_p is zero.
16811
16812 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16813 Delete extern.
16814
168152008-02-01 Kenichi Handa <handa@m17n.org>
16816
16817 * coding.c (Fdefine_coding_system_internal): Fix category setting
16818 for a coding system of type iso-2022.
16819
168202008-02-01 Kenichi Handa <handa@m17n.org>
16821
16822 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * syntax.c (Vnext_word_boundary_function_table): New variable.
16827 (next-word-boundary-function-table): Declare it as a Lisp variable
16828 in syms_of_syntax.
16829 (scan_words): Call functions in Vnext_word_boundary_function_table
16830 if any.
16831
16832 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16833
16834 * fontset.c (fs_load_font): If fontp->charset is not negative,
16835 return fontp without setting its members.
16836
168372008-02-01 Dave Love <fx@gnu.org>
16838
16839 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16840
16841 * m/sparc.h (HAVE_ALLOCA): Delete.
16842
16843 * s/irix6-5.h: Don't include strings.h.
16844 (bcopy, bzero, bcmp): Don't undef.
16845
16846 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16847
16848 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16849 (TIOCSIGSEND): Don't test IRIX6.
16850 (bcopy, bzero, bcmp): Define conditionally.
16851
168522008-02-01 Kenichi Handa <handa@m17n.org>
16853
16854 * buffer.c (Qas, Qmake, Qto): New variables.
16855 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16856 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16857
16858 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16859 we are inserting a process output into a multibyte buffer.
16860
16861 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16862 multibyte_char_to_unibyte.
16863
16864 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16865 by the primary charset, make it eight-bit char.
16866 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16867
16868 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16869 (charset_8_bit__control, charset_8_bit_graphic)
16870 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16871 (define_charset_internal): New function.
16872 (syms_of_charset): Call define_charset_internal for pre-defined
16873 charsets.
16874
16875 * charset.h (charset_8_bit): Extern it.
16876
16877 * coding.c (make_conversion_work_buffer): Adjust for the change
16878 of Fset_buffer_multibyte.
16879 (encode_coding_raw_text): Increment p0 in the loop.
16880
16881 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16882
16883 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16884 for the change of Fset_buffer_multibyte.
16885
16886 * fns.c (Fstring_to_multibyte): New function.
16887 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16888
168892008-02-01 Dave Love <fx@gnu.org>
16890
16891 * xfns.c (x_put_x_image): Declare args.
16892
16893 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16894 (try_font_list): Declare an arg.
16895
16896 * xdisp.c (message2_nolog, set_message): Declare an arg.
16897
16898 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16899
16900 * syntax.c (scan_sexps_forward): Declare an arg.
16901
16902 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16903 Declare an arg.
16904
16905 * lisp.h (Fnew_fontset): Declare.
16906
16907 * keymap.c (push_key_description): Call CHARACTERP correctly.
16908
16909 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16910 (face_for_char): Delete unused vars.
16911 (Fset_fontset_font): Doc fix. Delete unused vars.
16912
16913 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16914
16915 * composite.c (update_compositions): Declare arg.
16916
16917 * cm.c (calccost, cmgoto): Declare args.
16918
16919 * charset.c: Remove `emacs' conditional. Doc fixes.
16920 (map_char_table_for_charset): Declare.
16921
16922 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16923
16924 * ccl.c: Remove `emacs' conditional.
16925
169262008-02-01 Kenichi Handa <handa@m17n.org>
16927
16928 The following changes are to allow specifying multiple font
16929 patterns for a character range (specified by script or charset).
16930
16931 * Makefile.in (abbrev.o): Depend on syntax.h.
16932 (xfaces.o): Depend on charset.h.
16933
16934 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16935 SINGLE_BYTE_CHAR_P.
16936
16937 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16938
16939 * character.h (Vchar_script_table): Extern it.
16940
16941 * character.c (Vscript_alist): Delete.
16942 (Vchar_script_table, Qchar_script_table): New variable.
16943 (syms_of_character): Declare Vchar_script_table as a lisp variable
16944 and initialize it.
16945
16946 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16947 have property char-table-extra-slots, make no extra slot.
16948
16949 * dispextern.h (struct face): Delete member `charset'.
16950 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16951 SINGLE_BYTE_CHAR_P.
16952 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16953 Add prototypes.
16954 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16955 (generate_ascii_font_name): Rename from generate_ascii_font.
16956
16957 * fontset.h (get_font_repertory_func): New prototype.
16958 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16959 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16960
16961 * fontset.c (Qprepend, Qappend): New variables.
16962 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16963 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16964 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16965 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16966 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16967 (load_font_get_repertory): New functions.
16968 (fontset_set): Delete.
16969 (fontset_face): New arg FACE. Return face ID, not face.
16970 Complete re-write to handle new fontset structure. Change caller.
16971 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16972 (face_for_char): Don't call lookup_face.
16973 (make_fontset_for_ascii_face): New arg FACE.
16974 (fs_load_font): New arg CHARSET_ID. Don't check
16975 Vfont_encoding_alist here.
16976 (find_font_encoding): New function.
16977 (list_fontsets): Use STRINGP, not ! NILP.
16978 (accumulate_script_ranges): New function.
16979 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16980 re-written to handle new fontset structure.
16981 (Ffontset_font): Return a copy of element.
16982 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16983 docstring of font-encoding-alist.
16984
16985 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16986 (Fset_fotset_font): Fix arguments to 5.
16987
16988 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16989
16990 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16991 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16992 (highlight_trailing_whitespace): Adjust for the change of
16993 lookup_named_face.
16994
16995 * xfaces.c: Include charset.h.
16996 (load_face_font): Delete argument C. Change caller.
16997 (generate_ascii_font_name): Rename from generate_ascii_font.
16998 (font_name_registry): New function.
16999 (cache_face): Store ascii faces before non-ascii faces in buckets.
17000 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17001 Lookup only ascii faces.
17002 (lookup_non_ascii_face): New function.
17003 (lookup_named_face): Delete argument C. Change caller.
17004 (lookup_derived_face): Delete argument C. Change caller.
17005 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17006 a string, just call font_list with it.
17007 (choose_face_font): Delete arguments FACE and C. New arg
17008 FONT_SPEC. Change caller.
17009 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17010 Change caller.
17011 (realize_non_ascii_face): New function.
17012 (realize_x_face): Call load_face_font here.
17013 (realize_tty_face): Delete argument C. Change caller.
17014 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17015 get a face ID.
17016 (dump_realized_face): Don't print charset of FACE.
17017
17018 * xfns.c (x_set_font): Always call x_new_fontset and
17019 store_frame_parameter.
17020 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17021 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17022
17023 * xterm.h (x_get_font_repertory): Extern it.
17024
17025 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17026 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17027 it->multibyte_p is zero.
17028 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17029 (x_new_fontset): If FONTSETNAME doesn't match any existing
17030 fontsets, create a new one.
17031 (x_get_font_repertory): New function.
17032
170332008-02-01 Kenichi Handa <handa@m17n.org>
17034
17035 * coding.c (Ffind_coding_systems_region_internal): Detect an
17036 ASCII only string correctly.
17037
17038 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17039 version is 0.
17040
170412008-02-01 Kenichi Handa <handa@m17n.org>
17042
17043 * lread.c: Include "coding.h".
17044 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17045 (load_each_byte, unread_char): New variables.
17046 (readchar_backlog): Delete.
17047 (readchar): Return a character unless load_each_byte is nonzero.
17048 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17049 cons. If unread_char is not -1, simply return it.
17050 (unreadchar): Handle the case that readcharfun is
17051 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17052 (read_multibyte): Delete.
17053 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17054 (read_emacs_mule_char): New functions.
17055 (Fload): Even if the file doesn't have the extension ".elc", if
17056 safe_to_load_p returns a positive version number, assume that the
17057 file contains bytecompiled code. If the version is less than 22,
17058 load the file while decoding multibyte sequences by emacs-mule.
17059 (readevalloop): Don't use readchar_backlog.
17060 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17061 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17062 (read_escape): Delete the arg BYTEREP.
17063 (read1): Set load_each_byte to 1 temporarily while handling
17064 #@NUMBER. Don't call read_multibyte.
17065 (read_vector): Call Fread with a cons. If readcharfun is
17066 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17067 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17068 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17069 and Qload_force_doc_strings.
17070
170712008-02-01 Kenichi Handa <handa@m17n.org>
17072
17073 * xdisp.c (face_before_or_after_it_pos): Call
17074 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17075
170762008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * character.h (TRAILING_CODE_P): New macro.
17079 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17080 (string_char_with_unification): Fix prototype.
17081 (Vscript_alist): Extern it.
17082
17083 * character.c (Vscript_alist): New variable.
17084 (string_char_with_unification, str_as_unibyte)
17085 (string_escape_byte8): Add `const' to local variables.
17086 (syms_of_character): Declare script-alist as a Lisp variable.
17087
17088 * charset.h (Vcharset_ordered_list): Extern it.
17089 (charset_ordered_list_tick): Extern it.
17090 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17091 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17092 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17093 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17094 (Funify_charset): Adjust for the change of Funify_charset.
17095
17096 * charset.c (charset_ordered_list_tick): New variable.
17097 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17098 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17099 deunify intead of unify a charset.
17100 (string_xstring_p): Add `const' to local variables.
17101 (find_charsets_in_text): Add `const' to arguments and local variables.
17102 (encode_char): Adjust for the change of Funify_charset. Fix
17103 detecting of invalid code.
17104 (Fset_charset_priority): Increment charset_ordered_list_tick.
17105 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17106 and TO_CODE.
17107
17108 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17109 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17110 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17111 (decode_coding_ccl, consume_chars)
17112 (Ffind_coding_systems_region_internal)
17113 (Fcheck_coding_systems_region): Add `const' to local variables.
17114
17115 * print.c (print_object): Use octal form for printing the
17116 contents of a bool vector.
17117
171182008-02-01 Dave Love <fx@gnu.org>
17119
17120 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17121 <version == 20>: Refuse to load.
17122
171232008-02-01 Dave Love <fx@gnu.org>
17124
17125 * fns.c: Move coding.h.
17126 (Qcodeset, Qdays, Qmonths): New.
17127 (concat): Use CHARACTERP instead of INTEGERP.
17128 (Flocale_codeset): Delete.
17129 (Flanginfo): New function.
17130 (syms_of_fns): Change accordingly.
17131
17132 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17133
171342008-02-01 Dave Love <fx@gnu.org>
17135
17136 * casetab.c (init_casetab_once, init_casetab_once): Fix
17137 CHAR_TABLE_SET call.
17138
17139 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17140
17141 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17142
17143 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17144 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17145 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17146
17147 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17148
17149 * coding.c (ENCODE_DESIGNATION, decode_eol)
17150 (make_conversion_work_buffer, code_conversion_restore)
17151 (Fdefine_coding_system_internal): Convert Lisp types.
17152 (code_conversion_restore): Use EQ, not ==.
17153 (Fencode_coding_string): Fix code_convert_string call.
17154
17155 * coding.h (code_convert_region): Fix prototype.
17156
17157 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17158
17159 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17160 (Ffontset_info): Convert Lisp types.
17161
17162 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17163
17164 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17165
17166 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17167
17168 * chartab.c: Include "...h", not <...h> in some cases.
17169
17170 * callproc.c (Fcall_process): Remove unused variables.
17171
171722008-02-01 Dave Love <fx@gnu.org>
17173
17174 * coding.c (Fset_coding_system_priority): Allow null arg list.
17175
171762008-02-01 Dave Love <fx@gnu.org>
17177
17178 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17179 (Fself_insert_and_exit): Use CHARACTERP.
17180
17181 * callproc.c (Fcall_process): Remove unused vars.
17182
17183 * xterm.c (XTread_socket): Add extra dead keysyms.
17184
17185 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17186
17187 * dispextern.h: Remove prototypes for redraw_frame,
17188 redraw_garbaged_frames.
17189
17190 * cmds.c (Fself_insert_command): Use CHARACTERP.
17191
17192 * chartab.c (make_sub_char_table): Remove unused var.
17193 (Fset_char_table_default, Fmap_char_table): Doc fix.
17194
17195 * keymap.c (access_keymap): Remove generic char code.
17196 (push_key_description): Use CHARACTERP.
17197
171982008-02-01 Dave Love <fx@gnu.org>
17199
17200 * charset.c: Doc fixes.
17201 (Funify_charset): Extra checking.
17202
172032008-02-01 Dave Love <fx@gnu.org>
17204
17205 * lread.c: Remove some unused variables.
17206 (safe_to_load_p): If safe, return the magic number version byte.
17207 (Fload): Maybe use load-with-code-conversion.
17208
172092008-02-01 Kenichi Handa <handa@m17n.org>
17210
17211 * category.c (Fmodify_category_entry): Don't modify the contents
17212 of category_set for characters out of the range. Avoid
17213 unnecessary modification.
17214
17215 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17216 Vchar_unify_table. The default value of the table is now nil.
17217
17218 * character.c (syms_of_character): Setup Vchar_width_table for
17219 eight-bit-control and raw-byte chars.
17220
17221 * charset.h (enum define_charset_arg_index): Delete
17222 charset_arg_parents and add charset_arg_subset and
17223 charset_arg_superset.
17224 (enum charset_attr_index): Delete charset_parents and add
17225 charset_subset and charset_superset.
17226 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17227 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17228 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17229 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17230 (CHARSET_SUPERSET): New macros.
17231 (charset_work): Extern it.
17232 (ENCODE_CHAR): Use charset_work.
17233 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17234 (map_charset_chars): Extern it.
17235
17236 * charset.c (load_charset_map): Set the default value of encoder
17237 and deunifier char-tables to nil.
17238 (map_charset_chars): Change argument. Change callers. Use
17239 map_char_table_for_charset instead of map_char_table.
17240 (Fmap_charset_chars): New optional args from_code and to_code.
17241 (Fdefine_charset_internal): Adjust for the change of
17242 `define-charset' (:parents -> :subset or :superset).
17243 (charset_work): New variable.
17244 (encode_char, syms_of_charset): Adjust for the change of
17245 Fdefine_charset_internal.
17246 (Ffind_charset_string): Setup the vector `charsets' correctly.
17247
17248 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17249 the previous change.
17250 (char_table_ref_and_range): Adjust for the above change.
17251 (map_sub_char_table_for_charset): New function.
17252 (map_char_table_for_charset): New function.
17253
17254 * keymap.c (describe_vector): Handle a char-table directly here.
17255 (describe_char_table): Delete.
17256
17257 * lisp.h (map_charset_chars): Delete.
17258
172592008-02-01 Dave Love <fx@gnu.org>
17260
17261 * fns.c (count_combining): Comment out (unused).
17262 (Flocale_codeset): New.
17263 (syms_of_fns): Defsubr it.
17264
17265 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17266 (size_t): Remove.
17267
172682008-02-01 Dave Love <fx@gnu.org>
17269
17270 * Makefile.in (chartab.o): Depend on charset.h.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * character.c (syms_of_character): Set the default value of
17275 Vprintable_chars to Qnil.
17276
172772008-02-01 Dave Love <fx@gnu.org>
17278
17279 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17280
172812008-02-01 Kenichi Handa <handa@m17n.org>
17282
17283 * charset.c (load_charset_map): Handle the case that from < to
17284 correctly.
17285
17286 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17287 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17288 Pay attention to raw-8-bit chars.
17289
172902008-02-01 Kenichi Handa <handa@m17n.org>
17291
17292 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17293 It is not bytecompiled now.
17294
17295 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17296 (charset_jisx0208): New variables.
17297 (Fdefine_charset_internal): Setup them if appropriate.
17298 (init_charset_once): Initialize them to -1.
17299
17300 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17301 (charset_jisx0208): Extern them.
17302
17303 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17304 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17305 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17306 (setup_iso_safe_charsets): Fix arguments to Fassq.
17307 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17308 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17309 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17310 (encode_coding_iso_2022): Change the 1st arg to
17311 ENCODE_ISO_CHARACTER to a variable.
17312
173132008-02-01 Kenichi Handa <handa@m17n.org>
17314
17315 * charset.h (enum define_charset_arg_index): New enums
17316 charset_arg_min_code and charset_arg_max_code.
17317 (struct charset): New member char_index_offset.
17318
17319 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17320 Take charset->char_index_offset into account.
17321 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17322 args[charset_arg_max_code]. Setup charset.char_index_offset.
17323 (syms_of_charset): Fix args to Fdefine_charset_internal.
17324
173252008-02-01 Dave Love <fx@gnu.org>
17326
17327 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17328
173292008-02-01 Dave Love <fx@gnu.org>
17330
17331 * coding.c: Doc fixes.
17332 (Fcoding_system_aliases): Fix return value.
17333 (Qmac): Remove (duplicated) definition.
17334
173352008-02-01 Dave Love <fx@gnu.org>
17336
362654a6
JB
17337 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17338 New functions.
aac0c6e3
MR
17339
17340 * character.c (Fstring): Doc fix.
17341
17342 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17343
362654a6 17344 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17345 (font-encoding-alist): Doc fix.
17346
173472008-02-01 Dave Love <fx@gnu.org>
17348
17349 * term.c (costs_set): Declare static, non-initialized for pcc.
17350 (encode_terminal_code): Remove unused var.
17351
17352 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17353 for K&R.
17354
17355 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17356
17357 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17358 (suffixes): Move out of make_subsidiaries for K&R.
17359
17360 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17361
17362 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17363
173642008-02-01 Dave Love <fx@gnu.org>
17365
17366 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17367
17368 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17369
173702008-02-01 Yong Lu <lyongu@asia-infonet.com>
17371
17372 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17373
17374 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17379 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17380
173812008-02-01 Kenichi Handa <handa@m17n.org>
17382
17383 * coding.c (decode_coding_charset): Adjust for the change of
17384 Fdefine_coding_system_internal.
17385 (Fdefine_coding_system_internal): For a coding system of
17386 `charset' type, store a list of charset IDs in
17387 `charset_attr_charset_valids' element of coding attributes.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17392 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17393 caller. Handle 2-byte and 3-byte charsets correctly.
17394 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17395 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17396 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17397 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17398 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17399 sequence.
17400 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17401 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17402 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17403 and alt&rule composition.
17404 (decode_coding_iso_2022): Handle composition correctly.
17405 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17406
17407 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17408 re-defining a charset. If the charset has :emacs-mule-id, setup
17409 emacs_mule_bytes.
17410 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17415 (encode_coding_big5, encode_coding_charset): If coding requires safe
17416 encoding, produce a character specified by
17417 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17418
174192008-02-01 Dave Love <fx@gnu.org>
17420
17421 * xterm.c (XSetIMValues): Declare.
17422
17423 * process.c: Conditionally include sys/wait.h, pty.h.
17424
17425 * print.c (print_object): Fix print format for 64-bit systems.
17426
17427 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17428
17429 * buffer.c (emacs_strerror): Declare.
17430
17431 * fontset.c (Fclear_face_cache): Declare.
17432 (accumulate_font_info): Comment-out (unused).
17433 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17434 variables.
17435
17436 * character.h (string_escape_byte8): Declare.
17437
17438 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17439 unused vars.
17440 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17441 (Fmap_charset_chars): Doc fix.
17442
17443 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17444 (Fset_coding_system_priority, Fset_coding_system_priority)
17445 (Fdefine_coding_system_internal): Doc fix.
17446
174472008-02-01 Dave Love <fx@gnu.org>
17448
17449 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17450
174512008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 * character.c (string_escape_byte8): Make multibyte string with
17454 correct size.
17455
17456 * charset.c (Fmake_char): Delete unnecessary code.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * xfns.c (x_encode_text): Allocate coding.destination here, and
17461 call encode_coding_object with dst_object Qnil.
17462
17463 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17464 multibyte form correctly.
17465
17466 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17467 against Vfont_encoding_alist.
17468
17469 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17470 handling of charset list.
17471 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17472 (decode_coding_object): Move point to coding->dst_pos before
17473 calling post-read-conversion function.
17474 (encode_coding_object): Give correct arguments to
17475 pre-write-conversion. Ignore the return value of
17476 pre-write-conversion function. Pay attention to the case that
17477 pre-write-conversion changes the current buffer. If dst_object is
17478 Qt, even if coding->src_bytes is zero, allocate at least one byte
17479 to coding->destination.
17480
17481 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17482
17483 * charset.c (Fmake_char): Make it more backward compatible.
17484 (Fmap_charset_chars): Fix docstring.
17485
174862008-02-01 Dave Love <fx@gnu.org>
17487
17488 * coding.c: Doc fixes.
17489 (Fdefine_coding_system_alias): Use names, not symbols, in
17490 coding-system-alist.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17495 of calling free_realized_face.
17496
174972008-02-01 Yong Lu <lyongu@asia-infonet.com>
17498
17499 * charset.c (read_hex): Don't treat SPC as a comment starter.
17500 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17501 (Fdecode_char): Fix typo.
17502
175032008-02-01 Kenichi Handa <handa@m17n.org>
17504
17505 * charset.h (struct charset): New member `code_space_mask'.
17506
17507 * coding.c (coding_set_source): Delete the local variable beg_byte.
17508 (encode_coding_charset, Fdefine_coding_system_internal):
17509 Delete the local variable charset.
17510 (Fdefine_coding_system_internal): Setup
17511 attrs[coding_attr_charset_valids] correctly.
17512
17513 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17514 member to check if CODE is valid or not.
17515 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17516 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17517 is within the range of charset->min_code and carset->max_code.
17518
175192008-02-01 Dave Love <fx@gnu.org>
17520
17521 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17522
17523 * dispextern.h (generate_ascii_font): Fix return type.
17524
17525 * xfaces.c (generate_ascii_font): Fix arg declaration.
17526
17527 * coding.c (coding_inherit_eol_type)
17528 (Fset_terminal_coding_system_internal)
17529 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17530
175312008-02-01 Kenichi Handa <handa@m17n.org>
17532
17533 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17534 multiple charsets correctly.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * search.c (boyer_moore): Fix handling of multibyte character
17539 translation.
17540
17541 * xdisp.c (display_mode_element): When the variable `elt' is
17542 changed, update `this' and `lisp_string'.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17547
17548 * callproc.c (Fcall_process): Be sure to give the current buffer
17549 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17550
17551 * charset.c (struct charset_map_entries): New struct.
17552 (load_charset_map): Rename from parse_charset_map. New args
17553 entries and n_entries. Change caller.
17554 (load_charset_map_from_file): Rename from load_charset_map.
17555 Change caller. New arg control_flag. Call load_charset_map at
17556 the tail.
17557 (load_charset_map_from_vector): New function.
17558 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17559 (encode_char): If the charset is compact, change a character index
17560 to a code point.
17561
17562 * coding.c (coding_alloc_by_making_gap): Check the case that the
17563 source and destination are the same correctly.
17564 (decode_coding_raw_text): Set coding->consumed_char and
17565 coding->consumed to 0.
17566 (produce_chars): If coding->chars_at_source is nonzero, update
17567 coding->consumed_char and coding->consumed before calling
17568 alloc_destination.
17569 (Fdefine_coding_system_alias): Register ALIAS in
17570 Vcoding_system_alist.
17571 (syms_of_coding): Define `no-conversion' coding system at the tail.
17572
17573 * fileio.c (Finsert_file_contents): Set coding_system instead of
17574 val. If the current buffer is multibyte, always call
17575 decode_coding_gap.
17576
17577 * xfaces.c (try_font_list): Give higher priority to fontset's
17578 family than face's family.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * callproc.c (Fcall_process): Be sure to give the current buffer
17583 to decode_coding_c_string.
17584
17585 * xfaces.c (try_font_list): Give a family specified in a fontset
17586 higher priority than a family specified in a face.
17587
175882008-02-01 Kenichi Handa <handa@m17n.org>
17589
17590 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17591 Fix arguments to insert_from_buffer.
17592
17593 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17594
175952008-02-01 Kenichi Handa <handa@m17n.org>
17596
17597 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17598 (decode_coding_gap): Set coding->dst_multibyte correctly.
17599
176002008-02-01 Kenichi Handa <handa@m17n.org>
17601
17602 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17603 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17604 (encode_coding_utf_16): Substitute coding->default_char for
17605 non-Unicode characters.
17606 (decode_coding): Don't call record_insert here.
17607 (setup_coding_system): Initialize `surrogate' of
17608 coding->spec.utf_16 to 0.
17609 (EMIT_ONE_BYTE): Fix for multibyte case.
17610
17611 * insdel.c (insert_from_gap): Call record_insert.
17612
176132008-02-01 Kenichi Handa <handa@m17n.org>
17614
17615 * casefiddle.c (casify_region): Fix multibyte case.
17616
17617 * character.c (c_string_width): Add return type `int'.
17618 (char_string_with_unification): Delete arg ADVANCED.
17619
17620 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17621 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17622 (CHAR_STRING_ADVANCE): Make it do-while statement.
17623
17624 * chartab.c (sub_char_table_set_range): Optimize for the case
17625 DEPTH == 3. Add workaround code for a GCC optimization bug.
17626
17627 * charset.c (parse_charset_map): Remove an unused variable.
17628
17629 * coding.c: Delete unused variables.
17630
17631 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17632 earlier. If inserted is zero and the coding system doesn't
17633 require flushing, don't call decode_coding_gap.
17634
17635 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17636
176372008-02-01 Kenichi Handa <handa@m17n.org>
17638
17639 The following changes are for using Unicode as an internal
17640 character model, and use UTF-8 format for buffer/string
17641 representation.
17642
17643 * .gdbinit (xchartable): Adjust for the change of char table structure.
17644 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17645
17646 * Makefile.in (obj): Add character.o and chartab.o.
17647 (lisp, shortlisp): Remove utf-8.elc.
17648 (*.o): For many files, change dependency on charset.h to
17649 character.h, and add dependency on character.h.
17650 (character.o, chartab.o): New targets.
17651
17652 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17653 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17654 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17655 of "charset.h".
17656
17657 * dired.c, filelock.c: Include "character.h".
17658
17659 * alloc.c: Include "character.h" instead of "charset.h".
17660 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17661 (syms_of_alloc): Remove defsubr for Smake_char_table.
17662
17663 * buffer.c: Include "character.h" instead of "charset.h", don't
17664 include "coding.h".
17665 (Fset_buffer_multibyte): Adjust for UTF-8.
17666
17667 * buffer.h: EXFUN Fbuffer_live_p.
17668
17669 * callproc.c: Include "character.h" instead of "charset.h".
17670 (Fcall_process): Big change for the new code-conversion APIs.
17671
17672 * casetab.c: Include "character.h" instead of "charset.h".
17673 (set_canon, set_identity, shuffle): Adjust for the new
17674 map_char_table spec.
17675 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17676 accessing the char table structure.
17677
17678 * chartab.c: New file that implements char table.
17679
17680 * category.c: Include "character.h".
17681 (copy_category_entry): New function.
17682 (copy_category_table): Call map_char_table and copy_category_entry.
17683 (Fmake_category_table): Initialize all top-level slots.
17684 (char_category_set): New function.
17685 (modify_lower_category_set): Delete.
17686 (Fmodify_category_entry): Call char_table_ref_and_range.
17687
17688 * category.h (CATEGORY_SET): Just call char_category_set.
17689
17690 * ccl.c: Include "character.h".
17691 (Qccl, Qcclp): New variables.
17692 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17693 it's less than 256.
17694 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17695 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17696 and DST type.
17697 (ccl_driver): Change types of argument, adjust code accordingly.
17698 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17699 ccl_driver.
17700 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17701
17702 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17703 New members src_multibyte, dst_multibyte, consumed, and produced.
17704 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17705 (CODING_SPEC_CCL_PROGRAM): New macro.
17706 (ccl_driver): Update prototype.
17707 (Qccl, Qcclp, Fccl_program_p): Extern them.
17708 (CHECK_CCL_PROGRAM): New macro.
17709
17710 * character.c, character.h, chartab.c: New files.
17711
17712 * charset.c: Mostly re-written. Move character and multibyte sequence
17713 handling codes to character.c.
17714
17715 * charset.h: Mostly re-written. Move character and multibyte sequence
17716 handling codes to character.h.
17717
17718 * coding.c, coding.h: Mostly re-written.
17719
17720 * composite.c: Include "character.h" instead of "charset.h".
17721 (CHAR_WIDTH): Move to character.h.
17722 (HASH_KEY, HASH_VALUE): Delete.
17723
17724 * composite.h (enum composition_method): Change order of enumeration
17725 symbols.
17726
17727 * data.c: Include "character.h" instead of "charset.h".
17728 (Faref): Call CHAR_TABLE_REF for a char table.
17729 (Faset): Call CHAR_TABLE_SET for a char table.
17730
17731 * dispextern.h (free_realized_face, check_face_attribytes)
17732 (generate_ascii_font): Extern them.
17733 (free_realized_multibyte_face): Delete extern.
17734
17735 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17736 table structure.
17737
17738 * editfns.c: Include "character.h" instead of "charset.h".
17739 (Fchar_to_string): Always call CHAR_STRING.
17740
17741 * emacs.c (main): Call init_charset_once, init_charset,
17742 syms_of_chartab, and syms_of_character.
17743
17744 * fileio.c: Include "character.h" instead of "charset.h".
17745 (Finsert_file_contents): Big change for the new code-conversion API.
17746 (choose_write_coding_system, Fwrite_region): Likewise.
17747 (build_annotations_2): Delete.
17748 (e_write): Big change for the new code-conversion API.
17749
17750 * fns.c: Include "character.h" instead of "charset.h".
17751 (copy_sub_char_table): Move to chartab.c.
17752 (Fcopy_sequence): Call copy_char_table for a char table.
17753 (concat): Delete codes calling count_multibyte.
17754 (string_char_to_byte, string_byte_to_char): Adjust for the new
17755 multibyte form.
17756 (internal_equal): Adjust for the change of char table structure.
17757 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17758 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17759 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17760 (char_table_translate, optimize_sub_char_table)
17761 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17762 chartab.c.
17763 (char_table_ref_and_index): Delete.
17764 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17765 (Fmd5): Call preferred_coding_system instead of accessing
17766 Vcoding_category_list. Adjust for the new code-conversion API.
17767 (syms_of_fns): Move defsubr for char table related functions to
17768 chartab.c.
17769
17770 * fontset.c: Mostly re-written.
17771
17772 * fontset.h (struct font_info): Change type of the member encoding_type.
17773 (enum FONT_SPEC_INDEX): New enum.
17774 (fontset_font_pattern, fs_load_font): Update prototype.
17775 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17776
17777 * indent.c: Include "character.h" instead of "charset.h".
17778 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17779
17780 * insdel.c: Include "character.h" instead of "charset.h".
17781 (copy_text): Don't refer to Vnonascii_translation_table.
17782 (insert_from_gap): New function.
17783
17784 * keyboard.c: Include "character.h" instead of "charset.h".
17785 (command_loop_1): Never call direct_output_forward_char before
17786 a non-ASCII character.
17787 (read_char): If Vkeyboard_translate_table is a char table, always
17788 translate a character.
17789
17790 * keymap.c: Include "character.h".
17791 (store_in_keymap): Handle the case that IDX is a cons.
17792 (Fdefine_key): Handle the case that KEY is a cons and the car part
17793 is also a cons (range).
17794 (push_key_description): Adjust for the new character code.
17795 (describe_vector): Call describe_char_table for a char table.
17796 (describe_char_table): New function.
17797
17798 * keymap.h (describe_char_table): Extern it.
17799
17800 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17801 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17802 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17803 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17804 Delete.
17805 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17806 structure.
17807 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17808 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17809 (CHARTAB_SIZE_BITS_3): New macros.
17810 (chartab_size): Extern it.
17811 (struct Lisp_Char_Table): Re-design.
17812 (struct Lisp_Sub_Char_Table): New structure.
17813 (HASH_KEY, HASH_VALUE): Move from fns.c.
17814 (CHARACTERBITS): Define as 22.
17815 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17816 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17817 (GC_SUB_CHAR_TABLE_P): New macro.
17818 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17819 (code_convert_string_norecord): Deleted extern.
17820 (init_character_once, syms_of_character, init_charset)
17821 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17822
17823 * lread.c: Include "character.h".
17824 (read_multibyte): New arg NBYTES.
17825 (read_escape): Change the meaning of returned *BYTEREP.
17826 (to_multibyte): Delete.
17827 (read1): Adjust the handling of char table and string.
17828
17829 * print.c: Include "character.h" instead of "charset.h".
17830 (print_string): Convert 8-bit raw bytes to octal form by
17831 string_escape_byte8.
17832 (print_object): Adjust for the new multibyte form. Print 8-bit
17833 raw bytes always in octal form. Handle sub char table correctly.
17834
17835 * process.c: Include "character.h" instead of "charset.h".
17836 (read_process_output, send_process): Adjust for the new
17837 code-conversion API.
17838
17839 * puresize.h (BASE_PURESIZE): Increase.
17840
17841 * regex.c: Include "character.h" instead of "charset.h".
17842 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17843 (regex_compile): Accept a range whose starting and ending
17844 character have different leading bytes.
17845 (analyse_first): Adjust for the above change.
17846
17847 * search.c: Include "character.h" instead of "charset.h".
17848 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17849 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17850
17851 * syntax.c: Include "character.h" instead of "charset.h".
17852 (syntax_parent_lookup): Delete.
17853 (Fmodify_syntax_entry): Accept a cons as CHAR.
17854 (skip_chars): Adjust for the new multibyte form.
17855 (init_syntax_once): Call char_table_set_range instead of directly
17856 accessing the structure of a char table.
17857
17858 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17859 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17860 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17861 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17862
17863 * term.c: Include "buffer.h" and "character.h".
17864 (encode_terminal_code, write_glyphs): Adjust for the new
17865 code-conversion API.
17866 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17867
17868 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17869
17870 * xdisp.c: Include "character.h".
17871 (get_next_display_element): Adjust for the new multibyte form.
17872 (disp_char_vector): Adjust for the new char table structure.
17873 (decode_mode_spec_coding): Adjust for the new structure of
17874 coding system.
17875 (decode_mode_spec): Adjust for the new code-conversion API.
17876
17877 * xfaces.c: Include "character.h" instead of "charset.h".
17878 (load_face_font): Adjust for the change of choose_face_font and
17879 FS_LOAD_FONT.
17880 (generate_ascii_font): New function.
17881 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17882 (set_font_frame_param): Adjust for the change of choose_face_font.
17883 (free_realized_face): Make it public.
17884 (free_realized_faces_for_fontset): Rename from
17885 free_realized_multibyte_face. Free also faces realized for ASCII.
17886 (choose_face_font): Change arguments. Adjust for the change of
17887 fontset_font_pattern and FS_LOAD_FONT.
17888
17889 * xfns.c: Include "character.h".
17890 (x_encode_text): Adjust for the new code-conversion API.
17891
17892 * xselect.c: Don't include "charset.h".
17893 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17894
17895 * xterm.c: Include "character.h".
17896 (x_encode_char): New argument CHARSET. Change caller.
17897 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17898 Call ENCODE_CHAR instead of SPLIT_CHAR.
17899 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17900 CHAR_WIDTH instead of CHARSET_WIDTH.
17901 (XTread_socket): Adjust for the new code-conversion API.
17902 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17903 (x_load_font): Adjust for the change of struct font.
17904
179052008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17906
17907 * xfaces.c (face_at_buffer_position): Remove unused vars.
17908
179092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17910
17911 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17912 Fix overflow checking.
17913
179142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17915
17916 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17917 Cancel previous change.
17918
179192008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17920
17921 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17922 ccl->eight_bit_control. Fix check for buffer overflow.
17923 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17924 (ccl_driver): Initialize extra_bytes to 0.
17925
179262008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17927
17928 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17929 return it ORed with ctrl_modifier.
17930
179312008-01-29 Miles Bader <miles@gnu.org>
17932
17933 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17934
179352008-01-28 Jason Rumney <jasonr@gnu.org>
17936
17937 * w32.c (stat): Don't double check for networked drive.
17938
179392008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17940
17941 * window.c (run_window_configuration_change_hook): New function.
17942 Code extracted from set_window_buffer. Set the selected frame.
17943 (set_window_buffer): Use it.
17944 * window.h (run_window_configuration_change_hook): Declare.
17945 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17946
17947 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17948
179492008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17950
17951 * Makefile.in: Remove references to unused macros.
17952
179532008-01-26 Eli Zaretskii <eliz@gnu.org>
17954
17955 * w32.c (g_b_init_get_sid_sub_authority)
17956 (g_b_init_get_sid_sub_authority_count): New static variables.
17957 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17958 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17959 (init_user_info): Use them to retrieve uid and gid.
17960 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17961 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17962 st_uid and st_gid of the file.
17963
179642008-01-26 Jason Rumney <jasonr@gnu.org>
17965
17966 * w32.c (logon_network_drive): New function.
17967 (stat): Use it.
17968
179692008-01-26 Chong Yidong <cyd@stupidchicken.com>
17970
17971 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17972 invisible text covered with an ellipsis.
17973
179742008-01-25 Richard Stallman <rms@gnu.org>
17975
17976 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17977 jump back to beginning. Move some other initializations after that.
17978 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17979 New variables.
17980 (syms_of_xdisp): Init them.
17981
17982 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17983
17984 * buffer.c (reset_buffer_local_variables):
17985 Implement `permanent-local-hook'.
17986 (Qpermanent_local_hook): New variable.
17987 (syms_of_buffer): Init and staticpro it.
17988
179892008-01-25 Michael Albinus <michael.albinus@gmx.de>
17990
17991 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17992
179932008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17994
17995 * fns.c (Fclrhash): Return TABLE.
17996
179972008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17998
17999 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18000 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18001 is set even without positional changes.
18002 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18003
18004 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18005
180062008-01-23 Jason Rumney <jasonr@gnu.org>
18007
18008 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18009
18010 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18011 the unicode range available in MULE by locale-coding-system.
18012 Improve dbcs lead byte detection. Set event timestamp and modifiers
18013 earlier.
18014
180152008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18016
18017 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18018 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18019 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18020 when used on child processes.
18021
180222008-01-21 Michael Albinus <michael.albinus@gmx.de>
18023
18024 * dbusbind.c (Fdbus_method_return_internal): Rename from
18025 Fdbus_method_return.
18026 (Fdbus_unregister_object): Move to dbus.el.
18027 (Fdbus_call_method, Fdbus_method_return_internal)
18028 (Fdbus_send_signal): Improve debug messages.
18029
180302008-01-20 Martin Rudalics <rudalics@gmx.at>
18031
18032 * undo.c (undo_inhibit_record_point): New variable.
18033 (syms_of_undo): Initialize it.
18034 (record_point): Don't record point when undo_inhibit_record_point
18035 is set.
18036
180372008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18038
18039 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18040
18041 * xdisp.c (Qauto_hscroll_mode): New var.
18042 (syms_of_xdisp): Initialize it.
18043 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18044 window's buffer.
18045 (hscroll_windows): Don't check automatic_hscrolling_p here.
18046
18047 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18048 vscroll if we're setting window-buffer to the value it already has.
18049
180502008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18051
18052 * m/intel386.h: Remove references to XENIX.
18053
180542008-01-17 Andreas Schwab <schwab@suse.de>
18055
18056 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18057 instead of HAVE_X86_64_LIB64_DIR.
18058 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18059
180602008-01-17 Glenn Morris <rgm@gnu.org>
18061
18062 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18063 to HAVE_X86_64_LIB64_DIR.
18064
180652008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18066
18067 * s/irix3-3.h:
18068 * s/irix4-0.h:
18069 * s/386-ix.h:
18070 * s/domain.h:
18071 * s/hpux9-x11r4.h:
18072 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18073
18074 * sysdep.c: Remove code containing references to symbols defined
18075 by unsupported systems.
18076
180772008-01-16 Glenn Morris <rgm@gnu.org>
18078
18079 * coding.c (select-safe-coding-system-function): Doc fix.
18080
180812008-01-15 Glenn Morris <rgm@gnu.org>
18082
18083 * config.in: Revert 2008-01-13 change: this is a generated file.
18084
180852008-01-13 Tom Tromey <tromey@redhat.com>
18086
18087 * lisp.h: Fix typo.
18088
180892008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18090
18091 * m/sequent-ptx.h:
18092 * m/sequent.h:
18093 * s/ptx.h:
18094 * s/ptx4-2.h:
18095 * s/ptx4.h: Remove files for systems no longer supported.
18096
18097 * callproc.c (Fcall_process): Fix previous change.
18098
180992008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18100
18101 * unexsunos4.c: Remove file, system not supported anymore.
18102
18103 * m/mips.h:
18104 * m/intel386.h:
18105 * callproc.c:
18106 * config.in:
18107 * ecrt0.c:
18108 * emacs.c:
18109 * fileio.c:
18110 * frame.c:
18111 * getpagesize.h:
18112 * keyboard.c:
18113 * lread.c:
18114 * process.c:
18115 * puresize.h:
18116 * sysdep.c:
18117 * systty.h:
18118 * syswait.h:
18119 * unexec.c:
18120 * xdisp.c:
18121 * alloc.c: Remove code containing references to symbols defined by
18122 unsupported systems.
18123
181242008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18125
18126 * coding.c (detect_coding_mask): Fix previous change.
18127
181282008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18129
18130 * coding.c (detect_coding_iso2022): New arg
18131 latin_extra_code_state. Allow Latin extra codes only
18132 when *latin_extra_code_state is nonzero.
18133 (detect_coding_mask): If there is a NULL byte, detect the encoding
18134 as UTF-16 or binary. If Latin extra codes exist, detect the
18135 encoding as ISO-2022 only when there's no other proper encoding is
18136 found.
18137
181382008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18139
18140 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18141 #ifdef MAC_OS.
18142
181432008-01-08 Richard Stallman <rms@gnu.org>
18144
18145 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18146
181472008-01-06 Nick Roberts <nickrob@snap.net.nz>
18148
18149 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18150 menu bar in parentheses.
18151
181522008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18153
18154 * m/7300.h:
18155 * m/acorn.h:
18156 * m/alliant-2800.h:
18157 * m/alliant.h:
18158 * m/alliant1.h:
18159 * m/alliant4.h:
18160 * m/altos.h:
18161 * m/amdahl.h:
18162 * m/apollo.h:
18163 * m/att3b.h:
18164 * m/aviion-intel.h:
18165 * m/aviion.h:
18166 * m/celerity.h:
18167 * m/clipper.h:
18168 * m/cnvrgnt.h:
18169 * m/convex.h:
18170 * m/cydra5.h:
18171 * m/delta88k.h:
18172 * m/dpx2.h:
18173 * m/dual.h:
18174 * m/elxsi.h:
18175 * m/f301.h:
18176 * m/gould-np1.h:
18177 * m/gould.h:
18178 * m/i860.h:
18179 * m/ibmps2-aix.h:
18180 * m/ibmrt-aix.h:
18181 * m/ibmrt.h:
18182 * m/irist.h:
18183 * m/is386.h:
18184 * m/isi-ov.h:
18185 * m/mega68.h:
18186 * m/mg1.h:
18187 * m/news-r6.h:
18188 * m/news-risc.h:
18189 * m/news.h:
18190 * m/nh3000.h:
18191 * m/nh4000.h:
18192 * m/ns16000.h:
18193 * m/ns32000.h:
18194 * m/nu.h:
18195 * m/orion.h:
18196 * m/orion105.h:
18197 * m/paragon.h:
18198 * m/pfa50.h:
18199 * m/plexus.h:
18200 * m/pyramid.h:
18201 * m/pyrmips.h:
18202 * m/sh3el.h:
18203 * m/sps7.h:
18204 * m/sr2k.h:
18205 * m/stride.h:
18206 * m/sun1.h:
18207 * m/sun2.h:
18208 * m/sun3-68881.h:
18209 * m/sun3-fpa.h:
18210 * m/sun3-soft.h:
18211 * m/sun3.h:
18212 * m/sun386.h:
18213 * m/symmetry.h:
18214 * m/tad68k.h:
18215 * m/tahoe.h:
18216 * m/targon31.h:
18217 * m/tek4300.h:
18218 * m/tekxd88.h:
18219 * m/tower32.h:
18220 * m/tower32v3.h:
18221 * m/ustation.h:
18222 * m/wicat.h:
18223 * m/xps100.h:
18224 * s/cxux.h:
18225 * s/cxux7.h:
18226 * s/dgux.h:
18227 * s/dgux4.h:
18228 * s/dgux5-4-3.h:
18229 * s/dgux5-4r2.h:
18230 * s/esix.h:
18231 * s/esix5r4.h:
18232 * s/hiuxmpp.h:
18233 * s/hiuxwe2.h:
18234 * s/iris3-5.h:
18235 * s/iris3-6.h:
18236 * s/isc2-2.h:
18237 * s/isc3-0.h:
18238 * s/isc4-0.h:
18239 * s/isc4-1.h:
18240 * s/newsos5.h:
18241 * s/newsos6.h:
18242 * s/osf1.h:
18243 * s/osf5-0.h:
18244 * s/riscix1-1.h:
18245 * s/riscix12.h:
18246 * s/sco4.h:
18247 * s/sco5.h:
18248 * s/sunos4-0.h:
18249 * s/sunos4-1.h:
18250 * s/sunos413.h:
18251 * s/sunos4shr.h:
18252 * s/umax.h:
18253 * s/unipl5-2.h:
18254 * s/xenix.h:
18255 * cxux-crt0.s:
18256 * unexapollo.c:
18257 * unexconvex.c:
18258 * unexenix.c:
18259 * unexsni.c: Remove files for systems no longer supported.
18260
18261 * m/intel386.h: Remove references to unsupported systems.
18262
18263 * w32.c (get_emacs_configuration): Remove reference to i860.
18264
18265 * sysdep.c: Remove dead code.
18266
182672008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18268
18269 * s/rtu.h:
18270 * m/masscomp.h: Remove files. Platform is obsolete.
18271
182722008-01-04 Michael Albinus <michael.albinus@gmx.de>
18273
18274 * dbusbind.c (Fdbus_method_return): New function.
18275 (xd_read_message): Add the serial number to the event.
18276 (Fdbus_register_method): Activate the function.
18277
182782008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18279
18280 * keyboard.c (read_key_sequence): Fix typo.
18281
182822008-01-03 Michael Albinus <michael.albinus@gmx.de>
18283
18284 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18285 (xd_signature, xd_append_arg): Handle element type detection for
18286 empty arrays.
18287 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18288 SDATA () calls; this must be solved more general.
18289 (Fdbus_register_signal): Use SBYTES instead of strlen.
18290
182912008-01-03 Magnus Henoch <magnus@zemdatav>
18292
18293 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18294 unsigned int for byte values (necessary for big-endian platform).
18295 (Fdbus_call_method): Handle the case of no returned arguments.
18296
182972007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18298
18299 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18300
183012007-12-31 Magnus Henoch <mange@freemail.hu>
18302
18303 * dbusbind.c (xd_signature): Signature of variant is just "v".
18304
183052007-12-30 Michael Albinus <michael.albinus@gmx.de>
18306
18307 * dbusbind.c: Fix several errors and compiler warnings.
18308 Reported by Tom Tromey <tromey@redhat.com>.
18309 (XD_ERROR, XD_DEBUG_MESSAGE)
18310 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18311 (xd_append_arg): Part for basic D-Bus types rewritten.
18312 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18313 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18314 appropriate.
18315 (xd_read_message): Return Qnil. Don't signal an error; it is not
18316 useful during event reading.
18317 (Fdbus_register_signal): Signal an error if the check for
18318 FUNCTIONP fails.
18319 (Fdbus_register_method): New function. The implementation is not
18320 complete, the call of the function signals an error therefore.
18321 (Fdbus_unregister_object): New function, renamed from
18322 Fdbus_unregister_signal. The initial check signals an error, if
18323 the object is not well formed.
18324
183252007-12-30 Richard Stallman <rms@gnu.org>
18326
18327 * textprop.c (get_char_property_and_overlay):
18328 Signal error if POSITION is out of range in a buffer.
18329
183302007-12-29 Martin Rudalics <rudalics@gmx.at>
18331
18332 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18333 because the original parameters are in pure storage now.
18334
183352007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18336
18337 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18338
183392007-12-22 Eli Zaretskii <eliz@gnu.org>
18340
18341 * callint.c (syms_of_callint) <command-history>: Add reference to
18342 history-length in the doc string.
18343
183442007-12-17 Jason Rumney <jasonr@gnu.org>
18345
18346 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18347 before passing as wParam.
18348
183492007-12-22 Michael Albinus <michael.albinus@gmx.de>
18350
18351 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18352 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18353 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18354 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18355 as number.
18356 (Fdbus_call_method): Fix docstring.
18357
183582007-12-21 Michael Albinus <michael.albinus@gmx.de>
18359
18360 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18361 New macros.
18362 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18363 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18364 Simplify.
18365 (xd_signature): New function.
18366 (xd_append_arg): Compute also signatures. Major rewrite.
18367 (xd_retrieve_arg): Make debug messages friendly.
18368 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18369 Check for signatures of arguments.
18370
183712007-12-19 Michael Albinus <michael.albinus@gmx.de>
18372
18373 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18374 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18375 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18376 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18377 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18378 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18379 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18380 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18381 (xd_retrieve_value): Remove. Functionality included in ...
18382 (xd_append_arg): New function.
18383 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18384
183852007-12-16 Michael Albinus <michael.albinus@gmx.de>
18386
18387 * dbusbind.c (top): Include <stdio.h>.
18388 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18389 dbus_message_new_method_call and dbus_message_new_signal.
18390 (Fdbus_register_signal): Rename unique_name to uname.
18391 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18392 non-existing unique name. Fix typos in matching rule. Return an
18393 object which is useful in Fdbus_unregister_signal.
18394 (Fdbus_unregister_signal): Reimplementation, in order to remove
18395 only the corresponding entry.
18396 (Vdbus_registered_functions_table): Change the order of entries.
18397 Apply these changes in xd_read_message and Fdbus_register_signal.
18398
183992007-12-16 Andreas Schwab <schwab@suse.de>
18400
18401 * fileio.c (Finsert_file_contents): Fix overflow check to not
18402 depend on undefined integer overflow.
18403
184042007-12-14 Jason Rumney <jasonr@gnu.org>
18405
18406 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18407 for characters above 127.
18408
184092007-12-13 Jason Rumney <jasonr@gnu.org>
18410
18411 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18412 before dereferencing array.
18413 (lookup_vk_code): Remove zero comparison.
18414
184152007-12-14 Michael Albinus <michael.albinus@gmx.de>
18416
18417 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18418 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18419 Use `unsigned int' instead of `uint'.
18420 (xd_read_message, Fdbus_register_signal): Split expressions into
18421 multiple lines before operators "&&" and "||", according to the
18422 GNU Coding Standards.
18423
184242007-12-14 Eli Zaretskii <eliz@gnu.org>
18425
18426 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18427
184282007-12-12 Juri Linkov <juri@jurta.org>
18429
18430 * buffer.c (Frename_buffer): In interactive spec replace
18431 `read-buffer' with `read-string' that uses `buffer-name-history'
18432 as history, and the current buffer's name as default.
18433
184342007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18435
18436 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18437 manipulating the backtrace manually.
18438 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18439 (struct backtrace, backtrace_list): Remove.
18440 (command_loop_1): Remove dead var `no_direct'.
18441
18442 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18443 preserve non-built-in buffer-local variables.
18444 (Fkill_all_local_variables): Don't re-create&re-set permanent
18445 buffer-local variables.
18446
184472007-12-09 Juri Linkov <juri@jurta.org>
18448
18449 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18450 Lisp code that uses `read-buffer' with current buffer as default.
18451
184522007-12-08 Michael Albinus <michael.albinus@gmx.de>
18453
18454 * dbusbind.c (xd_read_message): Generate an event for every
18455 registered handler. There might be several handlers registered
18456 for the same signal.
18457 (Fdbus_register_signal): Don't overwrite a registration for the
18458 same signal. Add a new registration if handlers are different.
18459 (Vdbus_registered_functions_table): Rework doc string.
18460
184612007-12-07 Michael Albinus <michael.albinus@gmx.de>
18462
18463 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18464 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18465 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18466 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18467 Unify argument lists.
18468 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18469 arguments and hash table keys. Use unique name for service.
18470 (Fdbus_unregister_signal): Remove checks.
18471 (Vdbus_registered_functions_table): Fix doc string.
18472
184732007-12-05 Magnus Henoch <mange@freemail.hu>
18474
18475 * process.c (make_process): Initialize pty_flag to 0.
18476
184772007-12-05 Jason Rumney <jasonr@gnu.org>
18478
18479 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18480 specified XBMs.
18481
184822007-12-05 Richard Stallman <rms@gnu.org>
18483
18484 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18485
184862007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18487
18488 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18489 New variable.
18490 (mac_try_close_socket) [MAC_OSX]: New function.
18491 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18492 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18493
18494 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18495 Use mac_try_close_socket.
18496
184972007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18498
18499 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18500 reloc_base.
18501 (copy_dysymtab): Compute relocation base here.
18502 (rebase_reloc_address) [__ppc64__]: New function.
18503 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18504 changed.
18505
185062007-12-05 Jason Rumney <jasonr@gnu.org>
18507
18508 * w32proc.c (sys_spawnve): Quote args with wildcards.
18509
185102007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18511
18512 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18513 __objc_* sections.
18514 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18515
185162007-12-05 Michael Albinus <michael.albinus@gmx.de>
18517
18518 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18519 Move check for Vdbus_registered_functions_table to
18520 xd_read_queued_messages.
18521 (xd_read_queued_messages): Protect xd_read_message calls by
18522 internal_condition_case_1.
18523
185242007-12-04 Michael Albinus <michael.albinus@gmx.de>
18525
18526 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18527 Qdbus_system_bus and Qdbus_session_bus, respectively.
18528 (Vdbus_intern_symbols): Remove.
18529 (Vdbus_registered_functions_table): New hash table.
18530 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18531 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18532 Rewrite in order to manage registered functions by hash table
18533 Vdbus_registered_functions_table.
18534
185352007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18536
18537 * xterm.c: Update URL to Window Manager Specification in comment.
18538
185392007-12-02 Michael Albinus <michael.albinus@gmx.de>
18540
18541 * config.in (HAVE_DBUS): Add.
18542
18543 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18544 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18545 (obj): Add $(DBUS_OBJ).
18546 (LIBES): Add $(DBUS_LIBS).
18547 (dbusbind.o): New target.
18548
18549 * dbusbind.c: New file.
18550
18551 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18552
18553 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18554 (Qdbus_event): New Lisp symbol.
18555 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18556 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18557 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18558
18559 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18560
185612007-12-01 Richard Stallman <rms@gnu.org>
18562
18563 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18564
185652007-11-30 Jason Rumney <jasonr@gnu.org>
18566
18567 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18568 (w32con_reset_terminal_modes): Clear screen buffer.
18569 (w32_face_attributes): Don't use color indexes that are out of range.
18570 Only reverse the default colors.
18571
18572 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18573 WINDOWSNT.
18574
18575 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18576
185772007-11-29 Jason Rumney <jasonr@gnu.org>
18578
18579 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18580 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18581 if the terminal colors are initialized.
18582 (unspecified_fg, unspecified_bg): Remove unused declarations.
18583
185842007-11-29 Andreas Schwab <schwab@suse.de>
18585
18586 * keyboard.c (apply_modifiers): Fix typo.
18587
185882007-11-29 Richard Stallman <rms@gnu.org>
18589
18590 * keymap.c (Fcurrent_local_map): Doc fix.
18591
185922007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18593
18594 * s/gnu-kfreebsd.h: New file.
18595
185962007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18597
18598 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18599 Don't cast redundantly.
18600
18601 * keyboard.c (KEY_TO_CHAR): New macro.
18602 (parse_modifiers, apply_modifiers): Accept integer arguments.
18603 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18604 for chars and symbol keys.
18605 After doing such remapping, apply function-key-map again.
18606
186072007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18608
18609 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18610 compiled anymore.
18611
186122007-11-26 Andreas Schwab <schwab@suse.de>
18613
18614 * process.c (list_processes_1): Fix indentation level of the
18615 command column.
18616
186172007-11-23 Andreas Schwab <schwab@suse.de>
18618
18619 * editfns.c (Fformat): Handle %c specially since it requires the
18620 argument to be of type int.
18621
186222007-11-23 Markus Triska <markus.triska@gmx.at>
18623
18624 * emacs.c (main): Call init_editfns before init_process, since
18625 init_process sets Vprocess_connection_type depending on OS release.
18626
186272007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18628
18629 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18630 (find_symbol_value): Use do_symval_forwarding.
18631
18632 * data.c (set_internal): Set the value in the `cons-cell' (for
18633 Buffer_Local_values) not only for frame-local variables.
18634
186352007-11-22 Andreas Schwab <schwab@suse.de>
18636
18637 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18638 values to sprintf.
18639 * keymap.c (Fsingle_key_description): Likewise.
18640 * print.c (print_object): Likewise.
18641
186422007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18643
18644 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18645 file for image is nil.
18646
186472007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18648
18649 * term.c: Include stdarg.h.
18650 (fatal): Implement using varargs.
18651 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18652
186532007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18654
18655 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18656 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18657 Update call to buffer_slot_type_mismatch.
18658 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18659 (buffer_slot_type_mismatch): Update.
18660 * buffer.c (buffer_local_types): Remove.
18661 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18662 (defvar_per_buffer): Set the type in the buffer_objfwd.
18663
186642007-11-21 Jason Rumney <jasonr@gnu.org>
18665
18666 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18667 CreateFileMapping returns NULL on failure.
18668
186692007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18670
18671 * search.c (Fset_match_data): Remove the `evaporate' feature.
18672 (unwind_set_match_data): Don't use the `evaporate' feature.
18673
186742007-11-21 Jason Rumney <jasonr@gnu.org>
18675
18676 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18677
18678 * w32console.c (w32con_write_glyphs): Remove unused variables.
18679
186802007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18681
18682 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18683
18684 * s/darwin.h (MULTI_KBOARD): Remove.
18685
18686 * macfns.c (x_create_tip_frame, Fx_create_frame)
18687 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18688
186892007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18690
18691 * buffer.c (Fbuffer_local_value): Remove redundant test.
18692 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18693 than in `current-buffer' to match the comment.
18694 Do the swap using swap_in_global_binding.
18695
18696 * data.c (store_symval_forwarding, set_internal):
18697 * eval.c (specbind): Remove dead code.
18698
18699 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18700 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18701 Since we do not want to see internal Lisp_*fwd objects here.
18702
187032007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18704
18705 * sysdep.c (init_system_name): Use getaddrinfo if available.
18706
18707 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18708 (x_scroll_bar_note_movement): start, end, with, height in struct
18709 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18710
187112007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18712
18713 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18714
187152007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18716
18717 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18718 This undoes Richard's change of 14-Oct-2002.
18719
18720 * alloc.c (allocate_other_vector):
18721 * lisp.h (allocate_other_vector): Remove.
18722
18723 * window.c (struct save_window_data): Move non-lisp data to the end
18724 and make it `int' rather than Lisp_Object.
18725 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18726 Done wrap/unwrap integer values.
18727 (Fset_window_configuration, compare_window_configurations):
18728 Update use of fields to their new types.
18729
18730 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18731 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18732 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18733 (SET_SCROLL_BAR_X_WINDOW): Remove.
18734 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18735 Access the new x_window field directly.
18736 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18737 Don't wrap/unwrap integers into Lisp_Objects.
18738 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18739 (x_scroll_bar_report_motion):
18740 Don't wrap/unwrap integers into Lisp_Objects.
18741 (x_term_init): Use SDATA.
18742 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18743 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18744 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18745 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18746 * xfns.c (x_set_background_color):
18747 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18748 Access the new x_window field directly.
18749
18750 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18751 (allocate_pseudovector): Make non-static.
18752
18753 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18754 (allocate_pseudovector): Declare.
18755 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18756
187572007-11-15 Andreas Schwab <schwab@suse.de>
18758
18759 * editfns.c (Fformat): Correctly format EMACS_INT values.
18760 Also take precision into account when formatting an integer.
18761
18762 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18763
187642007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18765
18766 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18767 (syms_of_keyboard): Defsubr it.
18768
18769 * data.c (swap_in_global_binding): Fix longstanding bug where
18770 store_symval_forwarding was not called with the right second argument,
18771 thus causing objfwd-ing from being dropped.
18772
187732007-11-14 Juanma Barranquero <lekktu@gmail.com>
18774
18775 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18776 (Fx_display_pixel_height, Fx_display_planes)
18777 (Fx_display_color_cells, Fx_server_max_request_size)
18778 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18779 (Fx_display_visual_class, Fx_display_save_under):
18780 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18781 (Fx_display_pixel_height, Fx_display_planes)
18782 (Fx_display_color_cells, Fx_server_max_request_size)
18783 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18784 (Fx_display_mm_height, Fx_display_mm_width)
18785 (Fx_display_backing_store, Fx_display_visual_class)
18786 (Fw32_select_font, Fx_display_save_under):
18787 * xfns.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_save_under): Fix typos in docstrings.
18792
187932007-11-14 Juanma Barranquero <lekktu@gmail.com>
18794
18795 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18796 corresponding to deleted entries; they are an implementation detail.
18797 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18798 Remove variables.
18799 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18800 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18801 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18802 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18803 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18804 (Fw32_define_rgb_color, Fw32_load_color_file)
18805 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18806 Fix typos in docstrings.
18807 (Fx_server_version): Reflow docstring.
18808 (Fw32_shell_execute): Doc fixes.
18809
188102007-11-13 Juanma Barranquero <lekktu@gmail.com>
18811
18812 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18813 if w32_parse_hot_key returned nil.
18814
188152007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18816
18817 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18818
188192007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18820
aac0c6e3
MR
18821 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18822
18823 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18824
18825 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18826 Remove W32_SCROLL_BAR_CLICK_EVENT.
18827
18828 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18829 Add MULTIMEDIA_KEY_EVENT.
18830
18831 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18832 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18833 (make_lispy_event) [WINDOWSNT]: Use it to translate
18834 MULTIMEDIA_KEY_EVENT.
18835
18836 * w32term.h (WM_APPCOMMAND): Define if not already.
18837 (GET_APPCOMMAND_LPARAM): Likewise.
18838
18839 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18840 WM_APPCOMMAND.
18841
18842 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18843 (syms_of_w32fns): Export and initialize it.
18844 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18845
188462007-11-09 Chong Yidong <cyd@stupidchicken.com>
18847
18848 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18849 twice.
18850
18851 * xdisp.c (handle_face_prop): Fix last change.
18852
188532007-11-09 Richard Stallman <rms@gnu.org>
18854
18855 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18856 not just for after-strings and before-strings.
18857 Call face_for_overlay_string and pass the overlay to it.
18858 (handle_display_prop): Determine whether property came from an overlay.
18859 Pass OVERLAY arg to handle_single_display_spec.
18860 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18861 (load_overlay_strings): Fill in it->string_overlays.
18862 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18863
18864 * xfaces.c (face_for_overlay_string): Function renamed from
18865 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18866
18867 * dispextern.h (struct it): New elt string_overlays.
18868 New elt from_overlay, also in stack.
18869 Rearrange a few elements.
18870 (face_for_overlay_string): Decl renamed from
18871 face_at_buffer_position_no_overlays, and add argument.
18872
188732007-11-09 Richard Stallman <rms@gnu.org>
18874
18875 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18876 to get the base face for an overlay string.
18877
18878 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18879
18880 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18881
18882 * xdisp.c (handle_stop): Move some code out of loop.
18883
188842007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18885
18886 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18887 Fix conversion from Lisp object to ATSUFontID.
18888
188892007-11-09 Jason Rumney <jasonr@gnu.org>
18890
18891 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18892
188932007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18894
18895 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18896 Don't assume regions are aligned to page boundary.
18897 (print_load_command_name): Add LC_UUID if defined.
18898
188992007-11-09 Richard Stallman <rms@gnu.org>
18900
18901 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18902
189032007-11-07 Jason Rumney <jasonr@gnu.org>
18904
18905 * s/windows95.h: Remove.
18906
189072007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18908
18909 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18910 abort with a message on unhandled store_type values.
18911
189122007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18913
18914 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18915 Remove HAVE_X11R5 and HAVE_X11R4.
18916
189172007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18918
18919 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18920
189212007-11-01 Johan Bockgård <bojohan@gnu.org>
18922
18923 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18924 Don't set s->stippled_p here, since it has already been set by
18925 x_set_glyph_string_gc from x_draw_glyph_string.
18926
189272007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18928
18929 * sunfns.c: Remove file.
18930
18931 * m/sun386.h:
18932 * m/sun2.h:
18933 * m/sparc.h: Remove Sun windows code.
18934
189352007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18936
18937 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18938 (init_keyboard): Set current_kboard's window-system to nil.
18939 (tty_read_avail_input): Typo.
18940 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18941
189422007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18943
18944 * s/usg5-4.h:
18945 * s/usg5-3.h:
18946 * s/ptx.h:
18947 * m/is386.h:
18948 * m/ibmps2-aix.h:
18949 * Makefile.in: Remove all mentions of X10.
18950
18951 * dispnew.c (syms_of_display): Don't mention version 10.
18952
189532007-10-28 Juanma Barranquero <lekktu@gmail.com>
18954
18955 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18956 ($(BLD)/abbrev.$(O)): Remove.
18957
189582007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18959
18960 Rewrite abbrev.c in Elisp.
18961 * image.c (Qcount): Don't declare as extern.
18962 (syms_of_image): Initialize and staticpro `Qcount'.
18963 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18964 * emacs.c (main): Don't call syms_of_abbrev.
18965 * Makefile.in (obj): Remove abbrev.o.
18966 (abbrev.o): Remove.
18967 * abbrev.c: Remove.
18968
189692007-10-26 Martin Rudalics <rudalics@gmx.at>
18970
18971 * window.c (window_min_size_2): Don't count header-line.
18972
189732007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18974
18975 * frame.h (struct frame): Move all bit fields after the first bit
18976 field to take advantage of the available space. Group all the
18977 chars together to reduce wasted space due to padding.
18978
189792007-10-26 Juanma Barranquero <lekktu@gmail.com>
18980
18981 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18982
18983 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18984 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18985 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18986 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18987 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18988 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18989 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18990 (last_marked, mark_object_loop_halt): Make static.
18991
18992 * frame.c (syms_of_frame) <delete-frame-functions>:
18993 Fix typo in docstring.
18994
189952007-10-25 Juanma Barranquero <lekktu@gmail.com>
18996
18997 * w32.c (init_environment): Fix tiny memory leak.
18998 (w32_get_resource): Remove unused variable `ok'.
18999
190002007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19001
19002 Make `window-system' into a keyboard-local variable (rather than
19003 frame-local as done originally by multi-tty).
19004
19005 * keyboard.h (struct kboard): Add Vwindow_system.
19006 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19007 (mark_kboards): Mark Vwindow_system.
19008
19009 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19010 (init_display): Don't set the obsolete `window-system' frame-param.
19011
19012 * xterm.c (x_term_init):
19013 * w32term.c (w32_create_terminal):
19014 * term.c (init_tty): Set Vwindow_system.
19015 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19016 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19017
19018 * xfns.c (Fx_create_frame, x_create_tip_frame):
19019 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19020 * macfns.c (Fx_create_frame):
19021 Don't set the obsolete `window-system' frame-param.
19022
19023 * frame.h (Qwindow_system): Remove.
19024 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19025 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19026
190272007-10-24 Richard Stallman <rms@gnu.org>
19028
19029 * frame.c (x_figure_window_size): For fullscreen case,
19030 set USPosition | PPosition without clobbering rest of window_prompting.
19031
19032 * keyboard.c (Fcurrent_idle_time): Doc fix.
19033
19034 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19035
190362007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19037
19038 * process.c (unwind_request_sigio): Only define if __ultrix__.
19039
19040 * callproc.c (child_setup): Remove spurious *.
19041
19042 * lisp.h (Fget_text_property): Declare.
19043 (have_menus_p): Declare it here rather than in sys-dep header files.
19044 * macterm.h (have_menus_p):
19045 * msdos.h (have_menus_p):
19046 * xterm.h (have_menus_p): Remove.
19047
19048 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19049 (Fmake_variable_frame_local): Just check the variable's const-ness
19050 rather than checking nil or t.
19051
190522007-10-22 Jason Rumney <jasonr@gnu.org>
19053
19054 * w32fns.c: Include math.h.
19055 (w32_abort): Declaration moved to nt/config.nt.
19056
19057 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19058 (abort): Redefinition moved to nt/config.nt.
19059
19060 * m/windowsnt.h: Remove.
19061
190622007-10-22 Juanma Barranquero <lekktu@gmail.com>
19063
19064 * emacs.c (Fdump_emacs): Fix typo in message.
19065 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19066 <installation-directory>: Reflow docstring.
19067
190682007-10-22 Juri Linkov <juri@jurta.org>
19069
19070 * minibuf.c: Allow minibuffer default to be a list of default values.
19071 With empty input use the first element of this list as returned default.
19072 (string_to_object)
19073 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19074 (read_minibuf): If defalt is cons, set histstring to its car.
19075 (Fread_string): If default_value is cons, set val to its car.
19076 (Fread_buffer): If def is cons, use its car.
19077 (Fcompleting_read): If defalt is cons, set val to its car.
19078
190792007-10-21 Michael Albinus <michael.albinus@gmx.de>
19080
19081 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19082
190832007-10-20 Juanma Barranquero <lekktu@gmail.com>
19084
19085 * doc.c (Fdocumentation): Check for advice in all cases.
19086
190872007-10-19 Chong Yidong <cyd@stupidchicken.com>
19088
19089 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19090
190912007-10-19 Richard Stallman <rms@gnu.org>
19092
19093 * doc.c (Fdocumentation): Check for and handle an advised function.
19094
190952007-10-19 Juanma Barranquero <lekktu@gmail.com>
19096
19097 * process.c (Fset_process_filter): Doc fix.
19098
190992007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19100
19101 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19102 which caused key-translation-map to applied repeatedly (thus breaking
19103 double-mode).
19104
191052007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19106
19107 * xselect.c (x_own_selection, x_handle_selection_clear)
19108 (x_clear_frame_selections):
19109 * w32menu.c (list_of_panes, list_of_items):
19110 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19111 * textprop.c (validate_plist, interval_has_all_properties)
19112 (interval_has_some_properties, interval_has_some_properties_list)
19113 (add_properties, text_property_list):
19114 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19115 * minibuf.c (Fassoc_string):
19116 * macselect.c (x_own_selection, x_clear_frame_selections)
19117 (Fx_disown_selection_internal):
19118 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19119 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19120
191212007-10-17 Chong Yidong <cyd@stupidchicken.com>
19122
19123 * process.c: Link to libs for calling res_init() if available.
19124 (Fmake_network_process): Call res_init() before getaddrinfo or
19125 gethostbyname, if possible.
19126
191272007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19128
19129 * lread.c (read1): Set pvectype for char_tables.
19130
19131 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19132 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19133 Add type checks.
19134 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19135
19136 * alloc.c (free_misc): Use XMISCTYPE.
19137 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19138
191392007-10-17 Glenn Morris <rgm@gnu.org>
19140
19141 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19142 (syms_of_minibuf): Add Qcompletion_ignore_case.
19143 * dired.c (Qcompletion_ignore_case): Change to external.
19144 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19145 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19146 (Fread_file_name): Use it rather than intern'ing.
19147
19148 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19149 (Fread_coding_system): Ignore case of user input.
19150
191512007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19152
19153 * xdisp.c (handle_display_prop): Ignore display specs after
19154 replacing one when string text is being replaced.
19155 (handle_single_display_spec): Pretend as if characters with display
19156 property haven't been consumed only when buffer text is being replaced.
19157
191582007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19159
19160 * xfns.c (Fx_create_frame, Fx_display_list):
19161 * window.c (window_fixed_size_p, enlarge_window)
19162 (shrink_window_lowest_first):
19163 * macterm.c (init_font_name_table):
19164 * macfns.c (Fx_create_frame, Fx_display_list):
19165 * lread.c (close_load_descs):
19166 * keyboard.c (read_char_x_menu_prompt):
19167 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19168 * coding.c (code_convert_region_unwind): Test the type of an object
19169 rather than just !NILP before extracting data from it.
19170
19171 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19172
19173 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19174 (XMISCANY): New macro.
19175 (XMISCTYPE): Use it.
19176 (struct Lisp_Misc_Any): New type.
19177 (union Lisp_Misc): Use it.
19178 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19179 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19180 (find_symbol_value, set_internal, default_value, Fset_default)
19181 (Fmake_variable_buffer_local, Fmake_local_variable)
19182 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19183 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19184 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19185 * alloc.c (allocate_buffer): Set the size and tag.
19186 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19187 Use XMISCANY.
19188 (die): Follow the GNU convention for error messages.
19189 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19190 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19191 tag any more.
19192 (set_buffer_internal_1):
19193 * frame.c (store_frame_param):
19194 * eval.c (specbind):
19195 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19196
19197 * doc.c (Fsnarf_documentation): Simplify.
19198
191992007-10-14 Juanma Barranquero <lekktu@gmail.com>
19200
19201 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19202 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19203
192042007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19205
19206 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19207
192082007-10-14 Juanma Barranquero <lekktu@gmail.com>
19209
19210 * eval.c (do_autoload): Don't save autoloads.
19211
19212 * data.c (Ffset): Save autoload of the function being set.
19213
192142007-10-07 John Paul Wallington <jpw@pobox.com>
19215
19216 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19217 parameter before setting up faces.
19218
192192007-10-13 Eli Zaretskii <eliz@gnu.org>
19220
19221 * ccl.c (Fregister_code_conversion_map):
19222 * keyboard.c (append_tool_bar_item): Reformat last change.
19223
19224 * lisp.h (eabs): Rename from `abs'. All callers changed.
19225
192262007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19227
19228 * buffer.c (add_overlay_mod_hooklist):
19229 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19230 * fontset.c (make_fontset):
19231 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19232 (append_tool_bar_item):
19233 * macmenu.c (grow_menu_items):
19234 * w32menu.c (grow_menu_items):
19235 * xmenu.c (grow_menu_items): Use larger_vector.
19236
192372007-10-13 Eli Zaretskii <eliz@gnu.org>
19238
19239 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19240 selected frame'' on MSDOS).
19241
192422007-10-12 Martin Rudalics <rudalics@gmx.at>
19243
19244 * frame.c (Qexplicit_name): New variable.
19245 (x_report_frame_params): Report it in parameter alist.
19246 (syms_of_frame): Intern and staticpro it.
19247
192482007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19249
19250 * macfns.c (x_create_tip_frame): Set terminal for frame.
19251
192522007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19253
19254 * frame.c (Qenvironment): Remove.
19255 (syms_of_frame) <Qenvironment>: Don't initialize.
19256 (Fdelete_frame): Don't treat the `environment' param specially.
19257 * frame.h (Qenvironment): Don't declare.
19258 * callproc.c (set_initial_environment): Don't set unused frame param.
19259
19260 * frame.c (Fframe_with_environment): Remove.
19261 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19262
19263 * lisp.h (Fframe_with_environment): Don't declare.
19264
192652007-10-10 Juanma Barranquero <lekktu@gmail.com>
19266
19267 * indent.c (indent_tabs_mode, last_known_column)
19268 (last_known_column_modified): Make static.
19269 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19270
192712007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19272
19273 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19274
192752007-10-09 Jason Rumney <jasonr@gnu.org>
19276
19277 * w32term.c (x_set_window_size): Disable code that attempts to tell
19278 Lisp code about a size change before it actually happens.
19279
192802007-10-09 Richard Stallman <rms@gnu.org>
19281
19282 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19283 return HANDLED_RETURN.
19284
192852007-10-08 Martin Rudalics <rudalics@gmx.at>
19286
19287 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19288 when there's an unread command event.
19289
19290 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19291 window autoselection act appropriately when leaving selected frame.
19292 (syms_of_frame): Initialize focus_follows_mouse.
19293 * frame.h (focus_follows_mouse): Extern it.
19294 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19295 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19296 * msdos.c (dos_rawgetc): Likewise.
19297 * w32term.c (w32_read_socket): Likewise.
19298 * xterm.c (handle_one_xevent): Likewise.
19299 * xdisp.c (syms_of_xdisp): In doc-string of
19300 mouse-autoselect-window mention focus-follows-mouse.
19301
193022007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19303
19304 * macterm.c (mac_load_query_font): Fix missing return value.
19305 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19306 Add BLOCK_INPUT.
19307
193082007-10-08 Richard Stallman <rms@gnu.org>
19309
19310 * xdisp.c (get_window_cursor_type): Implement documented behavior
19311 for cursor-in-non-selected-windows = t.
19312
193132007-10-08 Jason Rumney <jasonr@gnu.org>
19314
19315 * w32.c (w32_get_resource): Always close registry keys.
19316
193172007-10-08 Jason Rumney <jasonr@gnu.org>
19318
19319 * makefile.w32-in (LIBS): Add COMCTL32.
19320
19321 * w32fns.c (globals_of_w32fns): Init common controls.
19322
193232007-10-08 Richard Stallman <rms@gnu.org>
19324
19325 * image.c (our_memory_buffer): Rename from omfib_buffer.
19326
193272007-10-08 Richard Stallman <rms@gnu.org>
19328
19329 * buffer.c (Foverlays_at): Doc fix.
19330
193312007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19332
19333 * fns.c (Fplist_put): Preserve uneven tail data.
19334
193352007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19336
19337 * termhooks.h (enum event_kind): Remove trailing comma.
19338
19339 * frame.h (enum): Remove trailing comma.
19340
193412007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19342
19343 * w32proc.c (delete_child): Don't terminate threads of zombies.
19344
193452007-10-08 Martin Rudalics <rudalics@gmx.at>
19346
19347 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19348
19349 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19350 last-repeatable-command.
19351 (init_kboard): Initialize Vlast_repeatable_command.
19352 (command_loop_1): Set it to real_this_command unless that was
19353 bound to an input event.
19354 (mark_kboards): Mark it.
19355
193562007-10-08 Richard Stallman <rms@gnu.org>
19357
19358 * eval.c (condition-case): Doc fix.
19359
193602007-10-08 Masatake YAMATO <jet@gyve.org>
19361
19362 * xfaces.c (tty_supports_face_attributes_p): Fix code
19363 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19364 was copied and not edited.
19365
193662007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19367
19368 Add new `input-decode-map' keymap and use it for terminal
19369 escape sequences.
19370 * keyboard.h (struct kboard): Add Vinput_decode_map.
19371 Remove Vlocal_key_translation_map.
19372 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19373 (init_kboard): Init input-decode-map.
19374 Replace local-key-translation-map back with key-translation-map.
19375 (syms_of_keyboard): Declare input-decode-map.
19376 Remove local-key-translation-map. Update docstrings.
19377 (mark_kboards): Mark Vinput_decode_map.
19378 Don't mark Vlocal_key_translation_map.
19379 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19380 Replace local-key-translation-map back with key-translation-map.
19381 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19382 Bind in input-decode-map rather than function-key-map.
19383
19384 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19385 This was made redundant by the previous introduction of XSETPVECTYPE.
19386
193872007-10-09 Richard Stallman <rms@gnu.org>
19388
19389 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19390
193912007-09-29 Richard Stallman <rms@gnu.org>
19392
19393 * eval.c (internal_condition_case_2, internal_condition_case_1)
19394 (internal_condition_case): Reenable abort if x_catching_errors ()
19395 to see if that really happens and why.
19396
193972007-10-06 Andreas Schwab <schwab@suse.de>
19398
19399 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19400
194012007-10-04 Juanma Barranquero <lekktu@gmail.com>
19402
19403 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19404
194052007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19406
19407 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19408
194092007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19410
19411 * window.h (struct window):
19412 * window.c (struct save_window_data, struct saved_window):
19413 * termhooks.h (struct terminal):
19414 * process.h (struct Lisp_Process):
19415 * frame.h (struct frame):
19416 * buffer.h (struct buffer):
19417 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19418 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19419 The size field of (pseudo)vectors is now unsigned.
19420 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19421
19422 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19423 Turn `count' into an integer.
19424
19425 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19426 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19427 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19428 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19429 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19430
19431 * alloc.c (allocate_pseudovector): New fun.
19432 (ALLOCATE_PSEUDOVECTOR): New macro.
19433 (allocate_window, allocate_terminal, allocate_frame)
19434 (allocate_process): Use it.
19435 (mark_vectorlike): New function.
19436 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19437 (mark_terminals): Use it.
19438 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19439 (Fmake_byte_code): Use XSETPVECTYPE.
19440
19441 * frame.c (Fframe_parameters): Minor simplification.
19442
19443 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19444
19445 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19446
19447 * buffer.c (Fget_buffer_create, init_buffer_once):
19448 * lread.c (defsubr):
19449 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19450
19451 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19452 defined differently in the m/*.h files.
19453 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19454 (XSETPVECTYPE): New macro.
19455 (XSETPSEUDOVECTOR): Use it.
19456
19457 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19458 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19459
19460 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19461 * lread.c (defvar_per_buffer):
19462 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19463
19464 * window.c (candidate_window_p): Only consider as visible frames that
19465 are on the same terminal.
19466
19467 * m/ibms390x.h (MARKBIT): Remove unused macro.
19468
194692007-10-01 Juanma Barranquero <lekktu@gmail.com>
19470
19471 * lread.c (Fload): Fix typo in docstring.
19472
194732007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19474
19475 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19476 of a non-zero value can't yield zero.
19477
194782007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19479
19480 * term.c (term_clear_mouse_face, term_mouse_highlight)
19481 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19482
19483 * print.c (safe_debug_print): Use XHASH.
19484
19485 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19486 Lisp elements such as tags.
19487 (XHASH): New macro.
19488 (EQ): Use it.
19489 (SREF, SSET, STRING_COPYIN): Use SDATA.
19490 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19491
19492 * alloc.c (mark_terminal): Remove left-over declaration.
19493 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19494 (allocate_vectorlike): Remove type argument. Adjust callers.
19495 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19496 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19497
19498 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19499 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19500 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19501 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19502 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19503 Use them.
19504
19505 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19506 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19507 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19508
195092007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19510
19511 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19512 loaded by default.
19513
195142007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19515
19516 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19517 on this tty.
19518 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19519
19520 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19521 Update all users.
19522 (handle_one_term_event): Use Gpm_DrawPointer.
19523 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19524 Signal errors instead of returning nil. Always return nil.
19525 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19526 Make it a noop if gpm-mouse was not activated.
19527 (syms_of_term): Update names.
19528
195292007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19530
19531 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19532 (init_sys_modes): Check that gpm_tty is the current tty.
19533
19534 * alloc.c (allocate_terminal): Set the vector size to only count the
19535 lisp fields. Initialize those to nil.
19536 (mark_object): Don't treat terminals specially.
19537 (mark_terminal): Remove.
19538 (mark_terminals): Use mark_object instead.
19539
19540 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19541 the GC to the beginning.
19542
19543 * indent.h:
19544 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19545
19546 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19547
195482007-09-25 Jason Rumney <jasonr@gnu.org>
19549
19550 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19551
19552 * w32console.c (create_w32cons_output): Remove.
19553
19554 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19555
19556 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19557 (reset_sys_modes): Use reset_terminal_modes_hook.
19558
195592007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19560
19561 * eval.c (do_autoload): Don't output any message.
19562
195632007-09-24 Juri Linkov <juri@jurta.org>
19564
19565 * emacs.c (standard_args): Change priority of "--no-splash"
19566 from 40 to 3. Add "--no-desktop" with the same priority.
19567
195682007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19569
19570 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19571 and optimize the case where they are all 1.
19572
195732007-09-23 Johannes Weiner <hannes@saeurebad.de>
19574
19575 * lisp.h (abs): Define if not defined.
19576 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19577 Don't define `abs', since it's defined in lisp.h.
19578
195792007-09-22 Eli Zaretskii <eliz@gnu.org>
19580
19581 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19582 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19583 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19584 (init_tty): Use DEV_TTY instead of "/dev/tty".
19585 [WINDOWSNT]: No need to protect from NAME arg being null.
19586
195872007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19588
19589 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19590 up the tty state.
19591
195922007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19593
19594 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19595 (gpm_tty): Change its type.
19596 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19597 (gpm_tty): Change its type and initialize it.
19598 (Fterm_open_connection): Check the frame is indeed a tty.
19599 Use the new gpm_tty.
19600 (Fterm_close_connection): Use the new gpm_tty.
19601 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19602 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19603
196042007-09-21 Juanma Barranquero <lekktu@gmail.com>
19605
19606 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19607 underline_color, to draw strike-through.
19608
196092007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19610
19611 * lisp.h (allocate_terminal): Declare.
19612
19613 * window.c (candidate_window_p): Consider frames that are being placed
19614 by the user as somewhere between visible and iconified.
19615 (window_loop): Prefer windows on the current frame.
19616 (Fselect_window): Move the use of select-frame to the beginning so we
19617 can just delegate all the work (it'll call us back anyway).
19618
19619 * frame.c (Qdisplay_environment_variable):
19620 * frame.h (Qdisplay_environment_variable): Delete.
19621
19622 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19623 of the first arg, since that value may be a union.
19624
19625 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19626 parameter rather than Qdisplay_environment_variable. If all else
19627 fails, look for DISPLAY in initial-environment.
19628
196292007-09-21 Glenn Morris <rgm@gnu.org>
19630
19631 * Makefile.in (emacstool): Remove target.
19632 (lisp, shortlisp): Remove termdev.elc.
19633
196342007-09-21 Markus Triska <markus.triska@gmx.at>
19635
19636 * xterm.c (x_delete_display): Compile session management conditionally.
19637
196382007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19639
19640 * callproc.c (getenv_internal_1): New function.
19641 (getenv_internal): Use it.
19642 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19643
19644 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19645 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19646 (Fset_terminal_parameter): Work with dead terminals as well.
19647 (Fmodify_terminal_parameters): Remove.
19648
19649 * terminal.c (get_terminal): Handle terminals.
19650 Make sure the terminal returned is live.
19651 (create_terminal): Use allocate_terminal.
19652 (mark_terminals): Move to alloc.c.
19653 (delete_terminal): Use terminal->name as liveness status.
19654 NULL out fields after freeing their contents.
19655 Don't deallocate the object.
19656 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19657 rather than an int.
19658 (Fterminal_live_p): Accept non-integer arguments.
19659 (Fterminal_list): Return terminal objects rather than an ints.
19660
19661 * alloc.c (enum mem_type): New member for `terminal' objects.
19662 (allocate_terminal): New function.
19663 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19664 Handle terminals.
19665 (mark_terminal): New fun.
19666 (mark_terminals): Move from terminal.c.
19667
19668 * term.c (get_tty_terminal): Don't treat output_initial specially.
19669 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19670 (delete_tty): Use terminal->name as liveness status.
19671
19672 * termhooks.h (struct terminal): Make it into a pseudovector.
19673 Remove `deleted' replaced by checking `name's nullness.
19674
19675 * print.c (print_object): Handle terminals.
19676
19677 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19678 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19679
19680 * frame.c (make_terminal_frame):
19681 * keyboard.c (tty_read_avail_input):
19682 * w32term.c (x_delete_terminal):
19683 * xfns.c (Fx_create_frame, x_create_tip_frame):
19684 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19685
196862007-09-20 Glenn Morris <rgm@gnu.org>
19687
19688 * process.c (Fmake_network_process): Doc fix.
19689
196902007-09-19 Jason Rumney <jasonr@gnu.org>
19691
19692 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19693
196942007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19695
19696 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19697 Fix a C warning regarding variable constness.
19698
19699 * xterm.c (handle_one_xevent): Fix a C warning.
19700
197012007-09-18 Jason Rumney <jasonr@gnu.org>
19702
19703 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19704
197052007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19706
19707 * gtkutil.c (gdpy_def): New variable.
19708 (xg_initialize): Initialize gdpy_def.
19709 (xg_display_close): If no other display exists, set gdpy_def to a
19710 new connection.
19711
197122007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19713
19714 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19715 when we have no file name for the icon.
19716 (xg_tool_bar_expose_callback): Remove.
19717 (xg_create_tool_bar): Don't connect expose signal to
19718 xg_tool_bar_expose_callback.
19719 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19720
197212007-09-16 Andreas Schwab <schwab@suse.de>
19722
19723 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19724 values instead of zapping them.
19725
197262007-09-14 Glenn Morris <rgm@gnu.org>
19727
19728 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19729 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19730 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19731 scope and rename to omfib_buffer for clarity.
19732 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19733
197342007-09-14 Kenichi Handa <handa@m17n.org>
19735
19736 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19737
197382007-09-13 Jason Rumney <jasonr@gnu.org>
19739
19740 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19741
19742 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19743
19744 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19745 (mac_term_init): Call here instead, passing rif.
19746
197472007-09-13 Glenn Morris <rgm@gnu.org>
19748
19749 * s/hpux.h: No longer define `static' as nothing.
19750
197512007-09-13 Johan Bockgård <bojohan@gnu.org>
19752
19753 * callint.c (Fcall_interactively): Remove unused var `fun'.
19754
197552007-09-12 Romain Francoise <romain@orebokech.com>
19756
19757 * window.c (prefer_window_split_horizontally, display_buffer):
19758 Revert 2007-09-08 change.
19759
197602007-09-12 Glenn Morris <rgm@gnu.org>
19761
19762 * alloca.c: Remove file.
19763 * Makefile.in (alloca): Do not undef.
19764 (allocaobj, alloca.o): Remove.
19765 (otherobj): Remove allocaobj.
19766 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19767 * regex.c (C_ALLOCA): Remove all references and code that was only
19768 used when this was defined.
19769 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19770 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19771 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19772
19773 * Makefile.in (SOURCES, unlock, relock): Delete.
19774
19775 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19776 (menu_grab_callback): All uses changed.
19777
19778 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19779 (x_reply_selection_request): All uses changed.
19780
197812007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19782
19783 * lread.c (load_warn_old_style_backquotes): Change message to look
19784 better when it appears in the middle of byte-compiler messages.
19785
197862007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19787
19788 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19789
19790 * xterm.c (x_create_terminal): Add comment.
19791
19792 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19793
197942007-09-10 Richard Stallman <rms@gnu.org>
19795
19796 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19797
197982007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19799
19800 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19801 (DEFUN): Document `intspec', use it instead of `prompt'.
19802
19803 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19804
19805 * data.c (Finteractive_form): If the interactive specification starts
19806 with a `(', use it as a Lisp form.
19807
19808 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19809 name and file modes.
19810
19811 * callint.c (Fcall_interactively): Comment fixes.
19812
198132007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19814
19815 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19816 and compiled functions.
19817
198182007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19819
19820 * window.c (prefer_window_split_horizontally): New variable.
19821 (display_buffer): Consider splitting window horizontally depending
19822 on prefer_window_split_horizontally.
19823
198242007-09-08 Eli Zaretskii <eliz@gnu.org>
19825
19826 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19827
198282007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19829
19830 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19831
19832 * frame.c (x_set_frame_parameters): Check number is positive before
19833 using XFASTINT.
19834
19835 * window.c (freeze_window_start): Don't presume selected_window holds
19836 a window object.
19837 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19838
198392007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19840
19841 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19842
198432007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19844
19845 * window.c (Vsplit_window_preferred_function): New var.
19846 (Fdisplay_buffer): Use it.
19847 (syms_of_window): Export, and initialize it.
19848
198492007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19850
19851 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19852
198532007-09-06 Glenn Morris <rgm@gnu.org>
19854
19855 * gtkutil.c (menu_grab_callback) <cnt>:
19856 * xselect.c (x_reply_selection_request) <cnt>: Move static
19857 variable to file scope.
19858
198592007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19860
19861 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19862 consistent values of selected_frame and selected_window.
19863
198642007-09-04 Jason Rumney <jasonr@gnu.org>
19865
19866 * w32console.c (initialize_w32_display): Zero unused hooks.
19867
198682007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19869
19870 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19871 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19872
198732007-09-04 Jason Rumney <jasonr@gnu.org>
19874
19875 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19876 in w32console.c. Set up input. Remove XXX comments that have been
19877 confirmed as correct.
19878
19879 * s/ms-w32.h (MULTI_KBOARD): Define.
19880
19881 * w32console.c (one_and_only_w32cons): Remove.
19882 (initialize_w32_display): Take terminal argument.
19883
19884 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19885 initialize_w32_display.
19886 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19887
19888 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19889
19890 * keyboard.c (discard_mouse_events): Discard it.
19891 (make_lispy_event): Translate it to a lisp event.
19892 (lispy_wheel_names): Add wheel-left and right events.
19893 (syms_of_keyboard): Enlarge wheel_syms.
19894
19895 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19896 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19897
19898 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19899
19900 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19901 from WM_MOUSEHWHEEL.
19902 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19903
19904 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19905 terminal.
19906
19907 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19908 keyboard for the terminal.
19909
199102007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19911
19912 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19913 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19914 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19915 and resume-tty-function to resume-tty-hook.
19916 (Fsuspend_tty, Fresume_tty): Use new names.
19917
199182007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19919
19920 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19921 if it starts with "n:".
19922
199232007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19924
19925 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19926
199272007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19928
19929 * frame.h:
19930 * frame.c (Qterm_environment_variable): Remove.
19931 (syms_of_frame): Don't init and staticpro it.
19932
19933 * callproc.c (getenv_internal): Remove special case for $TERM.
19934
19935 * callproc.c (Vinitial_environment): New variable.
19936 (set_initial_environment): Initialize it.
19937 (syms_of_callproc): Declare it.
19938 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19939 TERM under which a process runs is never related to the TERM in which
19940 Emacs is running.
19941
199422007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19943
19944 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19945 * s/darwin.h: ... do it here.
19946
199472007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19948
19949 * lisp.h (set_initial_environment): Rename from set_global_environment.
19950
19951 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19952 removed by mistake on the multi-tty branch.
19953
19954 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19955 (Fmodify_frame_parameters): Return a value.
19956
19957 * image.c (png_load): Comment-out var only used in commented-out code.
19958
19959 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19960 before passing it to mark_object.
19961
19962 * xfaces.c (internal_resolve_face_name): Return a value.
19963 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19964
19965 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19966 (x_icon): Comment-out var only used in commented-out code.
19967
199682007-08-29 Romain Francoise <romain@orebokech.com>
19969
19970 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19971 QUIT hasn't been provided.
19972
199732007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19974
19975 * callproc.c (child_setup, getenv_internal): Use the
19976 display-environment-variable and term-environment-variable frame params.
19977 (set_initial_environment): Initialise Vprocess_environment.
19978
19979 * config.in: Disable multi-keyboard support on a mac.
19980
19981 * frame.c (Qterm_environment_variable)
19982 (Qdisplay_environment_variable): New variables.
19983 (syms_of_frame): Intern and staticpro them.
19984 (Fmake_terminal_frame): Disable output method test.
19985
19986 * frame.h: Declare them here.
19987
19988 * macfns.c (x_set_mouse_color): Get rif from the frame.
19989 (x_set_tool_bar_lines): Don't use updating_frame.
19990 (mac_window): Add 2 new parameters for consistency with other systems.
19991 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19992 frame parameters following what is done in X11 and w32. Don't use
19993 FRAME_MAC_DISPLAY_INFO.
19994 (Fx_open_connection, start_hourglass): Remove window-system check.
19995 (x_create_tip_frame): Get the keyboard from the terminal.
19996
19997 * macmenu.c: Reorder includes.
19998 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19999
20000 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20001 terminal parameter.
20002 (x_clear_frame): Add a frame parameter.
20003 (note_mouse_movement): Get rif from the frame.
20004 (mac_term_init): Initialize the terminal.
20005 (mac_initialize): Make static and move terminal initialization ...
20006 (mac_create_terminal): ... to this new function.
20007
20008 * macterm.h (struct mac_display_info): Add terminal.
20009 (mac_initialize): Delete declaration.
20010
20011 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20012
20013 * sysdep.c: Comment out text after #endif.
20014
20015 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20016 is defined. Better initialize ttys in windows. Use terminal
20017 specific mouse_position_hook.
20018
20019 * termhooks.h (union display_info): Add mac_display_info.
20020
20021 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20022 Set the default minibuffer frame, window_system and the rest of the
20023 frame parameters following what is done in X11.
20024
20025 * w32term.c (w32_initialize): Make static.
20026
20027 * xselect.c (x_handle_selection_clear): Only access
20028 terminal->kboard when MULTI_KBOARD is defined.
20029
20030 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20031 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20032
200332007-08-29 Jason Rumney <jasonr@gnu.org>
20034
20035 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20036 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20037
20038 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20039 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20040
20041 * keyboard.c (restore_kboard_configuration): Only define when
20042 MULTI_KBOARD defined.
20043
20044 * makefile.w32-in: Update dependancies from Makefile.in.
20045 (OBJ1): Add terminal.$(O)
20046
20047 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20048 Don't define function body.
20049 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20050
20051 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20052
20053 * w32.c (request_sigio, unrequest_sigio): Remove.
20054
20055 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20056 (w32con_clear_frame, w32con_clear_end_of_line)
20057 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20058 (w32con_delete_glyphs, w32con_set_terminal_window)
20059 (scroll_line, w32_sys_ring_bell): Add frame arg.
20060 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20061 Add terminal arg.
20062 (PICK_FRAME): Remove.
20063 (w32con_write_glyphs): Use frame specific terminal coding.
20064 (one_and_only_w32cons): New global variable.
20065 (initialize_w32_display): Use it for storing hooks.
20066 (create_w32cons_output): New function.
20067
20068 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20069 arg a frame.
20070
20071 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20072 Set window_system.
20073 (x_set_tool_bar_lines): Don't use updating_frame.
20074 (Fx_create_frame): Set terminal and ref count.
20075 (Fx_open_connection): Remove window-system check.
20076
20077 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20078
20079 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20080 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20081 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20082 Add frame arg.
20083 (x_delete_terminal, w32_create_terminal): New functions.
20084 (w32_term_init): Create a terminal.
20085 (w32_initialize): Move terminal specific initialization to
20086 w32_create_terminal.
20087
20088 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20089 (w32_clear_rect, w32_clear_area): Use background from frame.
20090 (w32_display_info): Add terminal.
20091 (w32_sys_ring_bell, x_delete_display): Declare here.
20092
20093 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20094
20095 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20096
200972007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20098
20099 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20100 Fix get_named_tty calls for the controlling tty.
20101
201022007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20103
20104 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20105
201062007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20107
20108 * term.c (tty_insert_glyphs): Add missing first parameter.
20109
201102007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20111
20112 * buffer.c (Fbuffer_list, Fbury_buffer):
20113 Take frame->buried_buffer_list into account.
20114
20115 * cm.c (current_tty): New variable, for cmputc().
20116 (cmputc): Use it.
20117 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20118 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20119 (cmgoto): Add tty parameter. Pass it on to calccost().
20120 Use emacs_tputs() instead of tputs().
20121
20122 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20123 tputs().
20124 (current_tty): New variable, for cmputc().
20125 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20126
20127 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20128 (internal_condition_case, internal_condition_case_1)
20129 (internal_condition_case_2): Don't abort when x_catching_errors.
20130
20131 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20132 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20133 prevent crashes caused by bogus longjmps in read_char.
20134
20135 * keymap.h (Fset_keymap_parent): Add EXFUN.
20136
20137 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20138 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20139 Remove redundant definition.
20140
20141 * macfns.c (x_set_mouse_color, x_make_gc):
20142 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20143
20144 * w32term.c (x_free_frame_resources):
20145 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20146 (w32_initialize): Use the accessor macros for terminal characteristics.
20147
20148 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20149 Use the accessor macros for terminal characteristics.
20150 * msdos.c (internal_terminal_init): Use the accessor macros for
20151 terminal characteristics.
20152 (ScreenVisualBell, internal_terminal_init):
20153 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20154
20155 * termopts.h (no_redraw_on_reenter): Declare.
20156
20157 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20158 (mark_terminals, mark_ttys): Declare.
20159 (Fgarbage_collect): Call them.
20160 (mark_object): Mark buried_buffer_list.
20161
20162 * prefix-args.c: Include stdlib.h for exit.
20163
20164 * syssignal.h: Add comment.
20165
20166 * indent.c: Include stdio.h.
20167
20168 * window.h (Vinitial_window_system): Declare.
20169 (Vwindow_system): Delete declaration.
20170
20171 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20172
20173 * image.c (lookup_image): Don't initialize `c' until the xasserts
20174 have been run.
20175
20176 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20177 FRAME_FOREGROUND_PIXEL.
20178
20179 * print.c (print_preprocess): Don't lose print_depth levels while
20180 iterating.
20181
20182 * widget.c (update_from_various_frame_slots):
20183 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20184
20185 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20186 frames.
20187 (window_internal_height): Remove bogus make_number call.
20188 (init_window_once): Call make_terminal_frame with two zero parameters.
20189
20190 * fileio.c (Fread_file_name): Update comment.
20191
20192 * callint.c (Fcall_interactively):
20193 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20194 Make sure it is correctly unwound.
20195
20196 * xsmfns.c (x_session_close): New function.
20197
20198 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20199 Delete declarations.
20200
20201 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20202 (x_output): Remove background_pixel and foreground_pixel fields.
20203 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20204 (x_delete_device, x_session_close): Declare.
20205
20206 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20207 (read_filtered_event): Call `read_char' with a local
20208 `wrong_kboard_jmpbuf'.
20209
20210 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20211 Don't call single_kboard_state. Use FRAME_RIF.
20212
20213 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20214 systems.
20215
20216 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20217 (Fframe_with_environment, Fset_input_meta_mode)
20218 (Fset_quit_char): EXFUN.
20219 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20220 (init_sys_modes, reset_sys_modes): Update prototypes.
20221 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20222
20223 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20224 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20225 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20226 Delete declarations.
20227 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20228 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20229 New declarations.
20230
20231 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20232 already does that during init_display(). Call syms_of_keymap
20233 before syms_of_keyboard. Call `syms_of_terminal'.
20234 Call set_initial_environment, not set_process_environment.
20235 (shut_down_emacs): Call reset_all_sys_modes() instead of
20236 reset_sys_modes().
20237
20238 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20239 (internal_resolve_face_name, resolve_face_name_error): New functions.
20240 (resolve_face_name): Protect against loops and errors thrown by Fget.
20241 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20242 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20243
20244 * scroll.c: Replace CURTTY() with local variables throughout the
20245 file (where applicable).
20246 (calculate_scrolling, calculate_direct_scrolling)
20247 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20248 characteristics.
20249
20250 * keymap.c (Vfunction_key_map): Remove.
20251 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20252 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20253 (Vkey_translation_map): Remove.
20254 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20255 (Fdescribe_buffer_bindings)
20256 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20257 Update for terminal-local key-translation-map.
20258
20259 * Makefile.in (callproc.o): Update dependencies.
20260 (lisp, shortlisp): Add termdev.elc.
20261 (obj): Add terminal.o.
20262 (terminal.o): Add dependencies.
20263 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20264 (data.o, fns.o): Add termhooks.h dependency.
20265 (SOME_MACHINE_LISP): Add dnd.elc.
20266 (minibuf.o): Fix typo.
20267 Update dependencies.
20268
20269 * data.c (do_symval_forwarding, store_symval_forwarding)
20270 (find_symbol_value): Use the selected frame's keyboard, not
20271 current_kboard.
20272
20273 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20274 Vwindow_system.
20275
20276 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20277 Fmenu_bar_open.
20278 (syms_of_xmenu): Update defsubr.
20279 (mouse_position_for_popup, Fx_popup_menu)
20280 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20281 (set_frame_menubar, free_frame_menubar)
b97439ce 20282 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20283 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20284 an X frame.
20285
20286 * xselect.c (x_own_selection): Abort if not an X frame.
20287 (some_frame_on_display): Check if it is an X frame.
20288 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20289
20290 * coding.c: Include frame.h and termhooks.h.
20291 (terminal_coding, keyboard_coding): Delete.
20292 (Fset_terminal_coding_system_internal)
20293 (Fset_keyboard_coding_system_internal)
20294 (Fkeyboard_coding_system)
20295 (Fterminal_coding_system): Add a terminal parameter.
20296 Get terminal_coding from the terminal.
20297 (init_coding_once): Don't call setup_coding_system here.
20298
20299 * dispextern.h (set_scroll_region, turn_off_insert)
20300 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20301 (tty_clear_end_of_line, tty_setup_colors)
20302 (delete_tty, updating_frame)
20303 (produce_special_glyphs, produce_glyphs, write_glyphs)
20304 (insert_glyphs): Remove.
20305 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20306 (tty_turn_off_highlight, get_tty_size): Add declaration.
20307 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20308
20309 * frame.h (enum output_method): Add output_initial.
20310 (struct x_output): Delete.
20311 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20312 Access foreground_pixel and background_pixel directly from the frame.
20313 (tty_display): Delete.
20314 (struct frame): Add buried_buffer_list, foreground_pixel,
20315 background_pixel and terminal. Delete kboard.
20316 (union output_data): Add tty.
20317 (FRAME_KBOARD): Get the kboard from the terminal.
20318 (FRAME_INITIAL_P): New macro.
20319 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20320 (Qterm_environment_variable, Qdisplay_environment_variable)
20321 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20322 New declarations.
20323
20324 * termchar.h (tty_output, tty_display_info): New structures.
20325 (tty_list): Declare.
20326 (FRAME_TTY, CURTTY): New macros.
20327 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20328 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20329 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20330 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20331
20332 * callproc.c: Include frame.h and termhooks.h, for terminal
20333 parameters.
20334 (add_env): New function.
20335 (child_setup): Use it.
20336 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20337 (getenv_internal): Fix get_terminal_param call.
20338 (Fgetenv_internal, egetenv): Update doc.
20339 (syms_of_callproc): Initialize Vprocess_environment to nil.
20340 Register and initialize them. Remove obsolete defvars. Update doc
20341 strings.
20342 (child_setup): Handle Vlocal_environment_variables.
20343 (getenv_internal): Add terminal parameter.
20344 Handle Vlocal_environment_variables.
20345 (Fgetenv_internal): Add terminal parameter.
20346 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20347 environment in a frame (not terminal) parameter. Update doc strings.
20348 (set_initial_environment): Rename from set_global_environment.
20349 Store Emacs environment in initial frame parameter.
20350
20351 * xdisp.c (redisplay_internal): Update references to
20352 `previous_terminal_frame'.
20353 (display_mode_line, Fformat_mode_line): Replace calls to
20354 `push_frame_kboard' with `push_kboard'.
20355 (get_glyph_string_clip_rects): Add extra parentheses and
20356 braces to prevent compiler warnings.
20357 (calc_pixel_width_or_height): Add xassert to check that the
20358 frame is alive. Don't call `lookup_image' on a termcap frame.
20359 (message2_nolog, message3_nolog, redisplay_internal)
20360 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20361 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20362 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20363 (Fx_display_pixel_width, Fx_display_pixel_height)
20364 (Fx_display_planes, Fx_display_color_cells)
20365 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20366 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20367 (Fx_display_backing_store, Fx_display_visual_class)
20368 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20369 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20370
20371 * xfns.c (x_set_foreground_color x_set_background_color)
20372 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20373 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20374 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20375 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20376 terminal that is being deleted.
20377 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20378 frame parameter, and make sure it overrides any user-supplied setting.
20379 (Fx_close_connection, Fx_synchronize): Unify argument names with
20380 the rest of the DEFUNs.
20381
20382 * dispnew.c (Fsend_string_to_terminal): Update call to
20383 `get_tty_terminal'.
20384 (Fredraw_frame, Fsend_string_to_terminal)
20385 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20386 FRAME_TERMCAP_P and FRAME_TTY.
20387 (window_change_signal): Don't believe width/height values that are
20388 impossibly small.
20389 (Vinitial_window_system): Rename from Vwindow_system.
20390 (termscript, Wcm, rif): Delete.
20391
20392 * termhooks.h (struct terminal): New struct containing the
20393 previously global text display hooks and new members NAME,
20394 DELETED and PARAM_ALIST.
20395 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20396 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20397 (FRAME_RIF): New macros.
20398 (get_terminal_param, get_device): New declarations.
20399 (termscript): Delete declaration.
20400
20401 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20402 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20403 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20404 FRAME_FOREGROUND_PIXEL.
20405 (x_fully_uncatch_errors): Disable definition.
20406 (x_scroll_bar_expose): Fix reference to foreground pixel.
20407 (XTread_socket): Disable loop on all X displays.
20408 (x_delete_terminal): Don't set terminal->deleted and let
20409 delete_terminal delete the frames on the terminal.
20410 (x_delete_display): Doc update to reflect changes in
20411 delete_terminal.
20412 (x_display_info) <terminal>: Move member earlier in the struct.
20413 (deleting_tty): Remove old variable.
20414 (Fsuspend_tty): Call clear_tty_hooks.
20415 (Fresume_tty, init_tty): Call set_tty_hooks.
20416 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20417 errors on X frames.
20418 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20419 (handle_one_xevent): Initialize `f' to NULL.
20420 (x_delete_terminal, x_create_terminal): New functions.
20421 (XTset_terminal_modes, XTreset_terminal_modes)
20422 (XTread_socket, x_connection_closed, x_term_init)
20423 (x_term_init, x_delete_display): Add terminal parameter.
20424 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20425 X connections.
20426
20427 * frame.c: Include termchar.h.
20428 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20429 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20430 (Qdisplay_environment_variable): New vars.
20431 (Fframep): Deal with output_initial.
20432 (Fframe-live-p): Doc fix.
20433 (Fwindow-system): New function.
20434 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20435 (make_terminal_frame): Don't create frames on a terminal that is
20436 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20437 (store_frame_param): Check for found_for_frame before calling XFRAME.
20438 (Fmake_terminal_frame): Handle NULL tty names correctly.
20439 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20440 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20441 frames to refer to a deleted frame in their 'environment parameter.
20442 (Fframe_with_environment): New function.
20443 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20444 (get_future_frame_param): New function.
20445 (Fmake_terminal_frame): Use it.
20446 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20447
20448 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20449 * sysdep.c (reset_sys_modes): Update for renames.
20450
20451 * keyboard.c (tty_read_avail_input): New function.
20452 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20453 (syms_of_keyboard): Defsubr them.
20454 (Fset_input_meta_mode, Fset_quit_char): New functions.
20455 (Fset_input_mode): Split to above functions.
20456 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20457 parameter. Use it in call to `read_char'.
20458 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20459 Set wrong_kboard_jmpbuf correctly in recursive calls.
20460 Use current_kboard to access Vkeyboard_translate_table.
20461 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20462 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20463 Update longjmp invocations. Remember the original current_kboard,
20464 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20465 changes it. Comment out unnecessary calls to
20466 `record_single_kboard_state' and `any_kboard_state'.
20467 Update recursive calls.
20468 (wrong_kboard_jmpbuf): Remove global variable.
20469 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20470 Handle deleted interrupted_kboards correctly; that is a legal
20471 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20472 and read_char calls. Abort if interrupted_kboard died in read_char.
20473 (any_kboard_state, single_kboard_state)
20474 (push_frame_kboard): Remove function.
20475 (pop_kboard): Switch out of single_kboard mode if the kboard has
20476 been deleted. Remove unused variable. Help debugging by not
20477 changing current_kboard unnecessarily. Set current_kboard to the
20478 kboard of the selected frame when the stored kboard object has
20479 been deleted before pop_kboard.
20480 (temporarily_switch_to_single_kboard): Change first parameter to a
20481 frame pointer. Throw an error when caller wants to change kboards
20482 while in single_kboard mode. Don't push_kboard if we weren't in
20483 single kboard state. Don't pop_kboard if we popped into any
20484 kboard state.
20485 (restore_kboard_configuration): Abort if pop_kboard changed the
20486 kboard in single_kboard mode. Call pop_kboard only after setting
20487 up single_kboard mode.
20488 (Frecursive_edit): Switch to single_kboard mode only in nested
20489 command loops.
20490 (cmd_error, command_loop, command_loop_1, timer_check):
20491 Comment out unnecessary call to `any_kboard_state' and
20492 `record_single_kboard_state'.
20493 (delete_kboard): Exit single_kboard mode if we have just deleted
20494 that kboard. Use FRAME_KBOARD.
20495 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20496 `fatal_error_signal'.
20497 (record_single_kboard_state): Don't push_kboard if we weren't in
20498 single kboard state. Don't pop_kboard if we popped into any
20499 kboard state.
20500 (push_frame_kboard): Rename to push_kboard.
20501 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20502 (read_avail_input): Read input from all terminals.
20503 (mark_kboards): Also mark Vkeyboard_translate_table.
20504 (kbd_buffer_store_event_hold): Simplify condition.
20505 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20506 (Vkeyboard_translate_table): Move to struct kboard.
20507 (init_kboard): Initialize Vkeyboard_translate_table.
20508 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20509 Vkeyboard_translate_table. Update doc strings. Update docs of
20510 local-function-key-map and function-key-map.
20511
20512 * terminal.c: New file.
20513
20514 * term.c: Include errno.h.
20515 (Vring_bell_function, device_list, initial_device)
20516 (next_device_id, ring_bell, update_begin, update_end)
20517 (set_terminal_window, cursor_to, raw_cursor_to)
20518 (clear_to_end, clear_frame, clear_end_of_line)
20519 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20520 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20521 (syms_of_term): Move their initialization to terminal.c.
20522 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20523 (Ftty_display_color_cells)
20524 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20525 (clear_tty_hooks, set_tty_hooks)
20526 (init_tty, maybe_fatal): New functions.
20527 (Ftty_type): Return nil if terminal is not on a tty instead of
20528 throwing an error. Doc update.
20529 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20530 Doc update. Initialize new subrs and variables.
20531 (delete_tty): Use terminal->deleted.
20532 (tty_set_terminal_modes): Rename from set_terminal_modes.
20533 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20534 (set_scroll_region): Rename to `tty_set_scroll_region'.
20535 (turn_on_insert): Rename to `tty_turn_on_insert'.
20536 (turn_off_insert): Rename to `tty_turn_off_insert'.
20537 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20538 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20539 (toggle_highligh): Rename to `tty_toggle_highlight'.
20540 (background_highlight): Rename to `tty_background_highlight'.
20541 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20542 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20543 (tty_set_scroll_region, tty_background_highlight)
20544 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20545 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20546 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20547 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20548 Add static modifier.
20549 (tty_reset_terminal_modes, tty_set_terminal_window)
20550 (tty_set_scroll_region, tty_background_highlight)
20551 (tty_highlight_if_desired, tty_cursor_to)
20552 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20553 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20554 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20555 renames.
20556
205572007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20558
20559 * keyboard.c: Qrtl is new.
20560 (parse_tool_bar_item): Handle :rtl keyword.
20561 (syms_of_keyboard): Intern :rtl keyword.
20562
20563 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20564
20565 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20566 so no Lisp code is executed.
20567 (file_for_image, find_rtl_image): New functions.
20568 (xg_get_image_for_pixmap): Use file_for_image.
20569 (update_frame_tool_bar): If direction is RTL, use RTL image if
20570 defined. Use Gtk stock images if defined.
20571
205722007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20573
20574 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20575 for nonexistent or zero-width glyph in composition glyph.
20576
205772007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20578
20579 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20580
20581 * xdisp.c (Finvisible_p): New function.
20582 (syms_of_xdisp): defsubr it.
20583
205842007-08-24 Juanma Barranquero <lekktu@gmail.com>
20585
20586 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20587 Doc fixes.
20588
205892007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20590
20591 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20592
205932007-08-24 Martin Rudalics <rudalics@gmx.at>
20594
20595 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20596 whether decoding has modified buffer contents.
20597
205982007-08-24 Jason Rumney <jasonr@gnu.org>
20599
20600 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20601 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20602 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20603 (init_svg_functions) [HAVE_NTGUI]: New function.
20604 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20605 (svg_load_image): Use them.
20606 (svg_load_image) [HAVE_NTGUI]: Implement background.
20607
206082007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20609
20610 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20611 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20612 (LIBX): Remove @RSVG_LIBS@.
20613 (LIBES): Add $(RSVG_LIBS).
20614
20615 * image.c (svg_load_image): Blend with specified background if exists.
20616 Use IMAGE_BACKGROUND. Add Mac OS Support.
20617
20618 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20619 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20620 Remove macros.
20621 [MAC_OSX] (socket_callback): Do nothing.
20622 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20623 ReceiveNextEvent.
20624 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20625 socket_callback.
20626 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20627
206282007-08-22 Glenn Morris <rgm@gnu.org>
20629
20630 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20631
206322007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20633
20634 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20635
20636 * image.c: Add support for SVG images. Some additional comments
20637 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20638 (svg_image_p): New function to test for SVG image.
20639 (svg_load): New function to load SVG image.
20640 (svg_load_image): New function, helper for svg_load.
20641 (Qsvg): New Lisp_object.
20642 (svg_keyword_index): New enum.
20643 (svg_format): New static `image_keyword' struct.
20644 (svg_type): New static `image_type' struct.
20645 (librsvg/rsvg.h): Include it.
20646
206472007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20648
20649 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20650
206512007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20652
20653 * lread.c (Qold_style_backquotes): New var.
20654 (syms_of_lread): Init and staticpro it.
20655 (load_warn_old_style_backquotes): New fun.
20656 (Fload): Use them to warn about old style backquotes.
20657 (end_of_file_error, Fload): Remove unused vars.
20658
20659 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20660
20661 * lread.c (Vold_style_backquotes): New var.
20662 (syms_of_lread): Init and export it to Elisp.
20663 (read1): Set it when we find an old-style (back)quote.
20664
206652007-08-22 Jason Rumney <jasonr@gnu.org>
20666
20667 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20668
206692007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20670
20671 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20672
206732007-08-19 Richard Stallman <rms@gnu.org>
20674
20675 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20676
206772007-08-19 Andreas Schwab <schwab@suse.de>
20678
20679 * alloc.c (pure): Round PURESIZE up.
20680
206812007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20682
20683 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20684 active frame.
20685
206862007-08-16 Richard Stallman <rms@gnu.org>
20687
20688 * eval.c (Fcommandp): Add parens to clarify.
20689
20690 * minibuf.c (Fall_completions): Use enum for type of table.
20691
20692 * emacs.c (USAGE2): Improve text.
20693
206942007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20695
20696 * term.c (tty_default_color_capabilities): Declare static
20697 variables in file scope, to avoid HPUX compiler problem.
20698
206992007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20700
20701 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20702 to gtk_toolbar_insert.
20703
207042007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20705
20706 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20707
20708 * insdel.c (reset_var_on_error): New fun.
20709 (signal_before_change, signal_after_change):
20710 Use it to reset (after|before)-change-functions to nil in case of error.
20711 Bind inhibit-modification-hooks to t.
20712 Don't bind (after|before)-change-functions to nil while they run.
20713
207142007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20715
20716 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20717 filling pixmap with stippled background.
20718
207192007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20720
20721 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20722 Don't use invisible frame as parent window for repositioning.
20723
207242007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20725
20726 * print.c (new_backquote_output): Rename from old_backquote_output.
20727 (print): Inverse its logic (according to its name) so as to match the
20728 behavior of new_backquote_flag in lread.c.
20729
207302007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20731
20732 * gmalloc.c (posix_memalign): New function.
20733
20734 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20735 ActivateControl/DeactivateControl here.
20736 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20737 frame-notice-user-settings is non-nil.
20738 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20739 for kEventParamFMFontStyle.
20740 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20741 mac_pass_command_to_system and mac_pass_control_to_system here.
20742 (XTread_socket): Call ActivateControl/DeactivateControl here.
20743 (XTread_socket) [TARGET_API_MAC_CARBON]:
20744 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20745 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20746 for window repositioning.
20747
207482007-08-08 Glenn Morris <rgm@gnu.org>
20749
20750 * Replace `iff' in doc-strings and comments.
20751
207522007-08-07 Chong Yidong <cyd@stupidchicken.com>
20753
20754 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20755
207562007-08-07 Martin Rudalics <rudalics@gmx.at>
20757
20758 * fileio.c (Finsert_file_contents): Run format-decode and
20759 after_insert_file_functions on entire buffer when REPLACE is
20760 non-nil and inhibit modification_hooks and point_motion_hooks.
20761 For consistency, run after_insert_file_functions iff something
20762 got inserted. Move signal_after_change and update_compositions
20763 after code running after_insert_file_functions. Make sure that
20764 undo_list doesn't record intermediate steps of the decoding process.
20765
207662007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20767
20768 * emacs.c (main)
20769 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20770 Call malloc_enable_thread on interactive startup.
20771
20772 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20773 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20774 [USE_PTHREAD]: Conditionalize with it.
20775 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20776 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20777 New functions.
20778
207792007-08-06 Chong Yidong <cyd@stupidchicken.com>
20780
20781 * xdisp.c (redisplay_window): When restoring original buffer
20782 position, make sure it is still valid.
20783
20784 * image.c (png_load): Ignore png-supplied background color.
20785
207862007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20787
20788 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20789 Use kCFAbsoluteTimeIntervalSince1970.
20790
20791 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20792 New variable.
20793 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20794 event loop should be quit.
20795 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20796 Quit dialog event loop if quit_dialog_event_loop is set.
20797
20798 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20799 (Selection): New typedef. Use instead of ScrapRef.
20800 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20801 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20802 (mac_clear_selection): Rename from clear_scrap.
20803 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20804 scrap_has_target_type. All uses changed.
20805 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20806 (mac_selection_has_target_p): New functions.
20807 (mac_put_selection_value): Rename from put_scrap_string.
20808 (mac_get_selection_value): Rename from get_scrap_string.
20809 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20810 (put_scrap_private_timestamp, scrap_has_target_type)
20811 (get_scrap_private_timestamp): Remove functions.
20812 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20813 (x_own_selection, x_get_local_selection):
20814 Use mac_valid_selection_value_p.
20815 (x_own_selection): Don't use put_scrap_private_timestamp.
20816 Record OWNERSHIP-INFO into Vselection_alist instead.
20817 (x_get_local_selection): Don't check type if request is local.
20818 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20819 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20820
208212007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20822
20823 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20824 add comment explaining why.
20825
208262007-08-03 Richard Stallman <rms@gnu.org>
20827
20828 * fileio.c (Fvisited_file_modtime): Use make_time.
20829
208302007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20831
20832 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20833 build.
20834
208352007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20836
20837 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20838
208392007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20840
20841 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20842
208432007-07-30 Richard Stallman <rms@gnu.org>
20844
20845 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20846
208472007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20848
20849 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20850
208512007-07-28 Nick Roberts <nickrob@snap.net.nz>
20852
20853 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20854 remote default-directory.
20855
20856 * buffer.c (mode-line-format): Update doc string.
20857
208582007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20859
20860 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20861 scroll bar gap.
20862 (x_scroll_bar_create): Set bar->fringe_extended_p.
20863 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20864 on frame edge. Check fringe background extension. Don't clear
20865 extended fringe background area.
20866
20867 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20868 (w32_fill_area): Enclose multiple statements with do ... while (0).
20869
20870 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20871 Extend fringe background to scroll bar gap.
20872 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20873 Set bar->fringe_extended_p.
20874 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20875 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20876 background extension. Don't clear extended fringe background area.
20877
20878 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20879 New member fringe_extended_p.
20880
208812007-07-25 Glenn Morris <rgm@gnu.org>
20882
20883 * Relicense all FSF files to GPLv3 or later.
20884
20885 * COPYING: Switch to GPLv3.
20886
208872007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20888
20889 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20890
20891 * data.c (Finteractive_form): Check for the presence of an
20892 `interactive-form' symbol property more thoroughly.
20893
20894 * data.c (Finteractive_form): Use an `interactive-form' property if
20895 present, analogous to the function-documentation property.
20896
208972007-07-24 Jason Rumney <jasonr@gnu.org>
20898
20899 * w32fns.c (x_real_positions): Get real position from OS instead of
20900 calculating it.
20901
209022007-07-23 Jason Rumney <jasonr@gnu.org>
20903
20904 * filelock.c (current_lock_owner): Allow for @ sign in username.
20905
209062007-07-22 Nick Roberts <nickrob@snap.net.nz>
20907
20908 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20909 remote default-directory.
20910
20911 * buffer.c (mode-line-format): Describe above case in doc string.
20912
209132007-07-20 Eli Zaretskii <eliz@gnu.org>
20914
20915 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20916 Define if not defined.
20917
209182007-07-18 Jason Rumney <jasonr@gnu.org>
20919
20920 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20921
209222007-07-18 Richard Stallman <rms@gnu.org>
20923
20924 * data.c (Fsetq_default): Doc fix.
20925
20926 * eval.c (Fsetq): Doc fix.
20927
209282007-07-18 Juanma Barranquero <lekktu@gmail.com>
20929
20930 * coding.c (Ffind_operation_coding_system):
20931 * eval.c (For, Fand): Doc fixes.
20932 Reported by Johan Bockgård.
20933
209342007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20935
20936 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20937
20938 * xterm.h: Declare x_ewmh_activate_frame.
20939
20940 * xterm.c (x_ewmh_activate_frame): New function.
20941 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20942
209432007-07-17 Martin Rudalics <rudalics@gmx.at>
20944
20945 * window.c (Fdisplay_buffer): If largest or LRU window is the
20946 only window, split it even if it is not eligible for splitting.
20947 This restores the original behavior broken by the 2007-07-15
20948 change.
20949
209502007-07-17 Glenn Morris <rgm@gnu.org>
20951
20952 * abbrev.c (abbrev_check_chars): New function.
20953 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20954 Call abbrev_check_chars to check abbrev characters are word
20955 constituents. Doc fix.
20956
209572007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20958
20959 * process.c (Fstart_process, Fmake_network_process)
20960 (read_process_output): Fix up last changes.
20961
209622007-07-16 Eli Zaretskii <eliz@gnu.org>
20963
20964 * makefile.w32-in (clean): Don't delete *~.
20965
209662007-07-16 Andreas Schwab <schwab@suse.de>
20967
20968 * window.c (Fdisplay_buffer): Use NILP.
20969 (Fset_window_scroll_bars): Likewise.
20970
209712007-07-15 Martin Rudalics <rudalics@gmx.at>
20972
20973 * window.c (window_min_size_2): New function.
20974 (window_min_size_1, size_window, Fdisplay_buffer)
20975 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20976 windows without mode- or header-lines when window-min-height is
20977 too small.
20978 (size_window): Reset nodelete_p after testing it, following an
20979 earlier note by Kim F. Storm.
20980 (display_buffer): Do not set split_height_threshold to twice the
20981 value of window_min_height to avoid changing the value of a
20982 customizable variable. Rather explicitly check whether the
20983 height of the window that shall be splitted is at least as large
20984 as split_height_threshold.
20985 (Fwindow_full_width_p): New defun.
20986 (syms_of_window): Defsubr it.
20987
20988 * window.h: Add EXFUN for Fwindow_full_width_p.
20989
209902007-07-14 Jason Rumney <jasonr@gnu.org>
20991
20992 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20993
209942007-07-14 Richard Stallman <rms@gnu.org>
20995
20996 * eval.c (maybe_call_debugger): New function.
20997 (find_handler_clause): Use maybe_call_debugger.
20998 Call it when the handler says `debug'.
20999 Eliminate DEBUGGER_VALUE_PTR.
21000 (Fsignal): Eliminate debugger_value.
21001 (Qdebug): New variable.
21002 (syms_of_eval): Initialize it.
21003
210042007-07-14 Juanma Barranquero <lekktu@gmail.com>
21005
21006 * eval.c (Fprogn):
21007 * keyboard.c (Ftrack_mouse):
21008 * print.c (Fwith_output_to_temp_buffer):
21009 * window.c (Fsave_window_excursion): Doc fix.
21010
210112007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21012
21013 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21014
210152007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21016
21017 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21018 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21019 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21020 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21021 Remove unused encoding_carryover.
21022 * process.c: Adjust all functions accordingly.
21023
210242007-07-12 Richard Stallman <rms@gnu.org>
21025
21026 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21027
210282007-07-11 Jason Rumney <jasonr@gnu.org>
21029
21030 * makefile.w32-in (LIBS): Include OLE32.
21031
21032 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21033 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21034
210352007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21036
21037 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21038 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21039 from a Lisp_Object into a bare pointer.
21040 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21041 Adjust the code correspondingly.
21042
21043 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21044
21045 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21046 (term_show_mouse_face): Remove unused var `j'.
21047 (handle_one_term_event): Remove unused vars `i' and `j'.
21048 Don't cast return value of ttyname since it's not necessary.
21049
210502007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21051
21052 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21053 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21054
21055 * fns.c (map_char_table): Use an array of int for `indices' rather than
21056 an array of Lisp_Objects (which are only ever integers anyway).
21057 (Fmap_char_table): Update caller.
21058 * lisp.h: Update prototype.
21059 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21060 * fontset.c (Ffontset_info):
21061 * casetab.c (set_case_table): Update callers.
21062
21063 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21064
21065 * keymap.c (struct accessible_keymaps_data)
21066 (struct where_is_internal_data): New structures.
21067 (accessible_keymaps_1, where_is_internal_1): Use them to change
21068 interface to adhere to the one used by map_keymap.
21069 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21070 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21071
21072 * keymap.h (map_keymap_function_t): More informative prototype.
21073
210742007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21075
21076 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21077 (looking_at_1): Don't change search_regs and last_thing_searched
21078 if `inhibit-changing-match-data' is non-nil.
21079 (string_match_1, search_buffer, set_search_regs): Likewise.
21080 (syms_of_search): Add Lisp level definition for
21081 `inhibit-changing-match-data' and set it to nil.
21082 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21083 start and end of the match, instead of using values in search_regs.
21084
210852007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21086
21087 * minibuf.c (Fcompleting_read): New value `confirm-only'
21088 for `require-match'.
21089
210902007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21091
21092 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21093 part of the 2007-06-27 change to syms_of_fileio.
21094
210952007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21096
21097 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21098 Check WINDOWP before using XWINDOW. Consolidate return statements.
21099
211002007-06-27 Richard Stallman <rms@gnu.org>
21101
21102 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21103
211042007-06-27 Juanma Barranquero <lekktu@gmail.com>
21105
21106 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21107
211082007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21109
21110 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21111 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21112 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21113 (_free_internal, memalign): Use them.
21114 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21115 Initialize to PTHREAD_MUTEX_INITIALIZER.
21116 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21117 (morecore_nolock): Rename from morecore. All uses changed.
21118 Use only nolock versions of internal allocation functions.
21119 (_malloc_internal_nolock, _realloc_internal_nolock)
21120 (_free_internal_nolock): New functions created from
21121 _malloc_internal, _realloc_internal, and _free_internal.
21122 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21123 Copy hook value to automatic variable before its use.
21124 (memalign): Copy hook value to automatic variable before its use.
21125
211262007-06-26 Kenichi Handa <handa@m17n.org>
21127
21128 * coding.c (Ffind_operation_coding_system): Docstring improved.
21129 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21130
211312007-06-25 David Kastrup <dak@gnu.org>
21132
21133 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21134 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21135 cater for additional parameter.
21136
21137 * keymap.h: Adjust number of parameters to `current-active-maps'.
21138
21139 * doc.c (Fsubstitute_command_keys): Adjust call of
21140 `current-active-maps'.
21141
211422007-06-25 David Kastrup <dak@gnu.org>
21143
21144 * callint.c (Fcall_interactively): Make the parsing of interactive
21145 specs somewhat more readable.
21146
211472007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21148
21149 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21150 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21151 if extended background has already been filled.
21152
211532007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21154
21155 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21156 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21157
21158 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21159 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21160 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21161 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21162 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21163 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21164 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21165 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21166 Run timers during dialog popup.
21167 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21168
211692007-06-21 Jason Rumney <jasonr@gnu.org>
21170
21171 * image.c (convert_mono_to_color_image): Swap fore and background.
21172
211732007-06-20 Jason Rumney <jasonr@gnu.org>
21174
21175 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21176 (w32_free_bdf_font): Unmap memory not handle.
21177
211782007-06-20 Sam Steingold <sds@gnu.org>
21179
21180 * gmalloc.c (__morecore): Fix the declaration to comply with the
21181 definition.
21182
211832007-06-20 Juanma Barranquero <lekktu@gmail.com>
21184
21185 * w32term.c (w32_delete_display): Remove leftover declaration.
21186 (w32_define_cursor, w32_initialize): Make static.
21187
21188 * w32.c (_wsa_errlist): Fix typo in error message.
21189 (init_environment): Ignore any environment variable from the
21190 registry having a null value.
21191
211922007-06-20 Glenn Morris <rgm@gnu.org>
21193
21194 * Makefile.in (LIBGIF): Default to -lgif.
21195
211962007-06-17 Jason Rumney <jasonr@gnu.org>
21197
21198 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21199 unicode strings.
21200
212012007-06-16 Juanma Barranquero <lekktu@gmail.com>
21202
21203 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21204 Fix typo in docstring.
21205
212062007-06-16 Eli Zaretskii <eliz@gnu.org>
21207
21208 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21209 and their keybindings.
21210
212112007-06-15 Chong Yidong <cyd@stupidchicken.com>
21212
21213 * composite.c (update_compositions): Fix last fix.
21214
212152007-06-14 Jason Rumney <jasonr@gnu.org>
21216
21217 * w32.c (get_process_times_fn): New function pointer.
21218 (globals_of_w32): Intialize it if present in kernel32.dll.
21219 (w32_get_internal_run_time): New function.
21220
21221 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21222
212232007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21224
21225 * composite.c (update_compositions): Check the validness of
21226 compositions.
21227
212282007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21229
21230 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21231 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21232
21233 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21234 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21235
21236 * macgui.h (USE_MAC_TOOLBAR): New define.
21237
21238 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21239 Return immediately unless popup is activated.
21240
21241 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21242 background to scroll bar gap.
21243 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21244 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21245 scroll bars on frame edge. Check fringe background extension.
21246 Don't clear extended fringe background area.
21247 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21248 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21249 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21250 [USE_MAC_TOOLBAR]: New macros.
21251 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21252 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21253 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21254 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21255 [USE_MAC_TOOLBAR]: New functions.
21256 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21257 manually if previous repositioning has failed.
21258 (mac_handle_keyboard_event): Use precomputed event kind.
21259 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21260 as tool bar item click. Handle mouse movement over tool bar items.
21261
21262 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21263 toolbar_win_gravity.
21264 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21265 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21266 Add externs.
21267
21268 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21269 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21270
212712007-06-14 Chong Yidong <cyd@stupidchicken.com>
21272
21273 * image.c (search_image_cache): Remove unused variable.
21274
212752007-06-13 Chong Yidong <cyd@stupidchicken.com>
21276
21277 * xfns.c, xmenu.c: Link to xaw3d if available.
21278
212792007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21280
21281 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21282 frame_foreground and frame_background.
21283
21284 * image.c (lookup_image): Save frame foreground and background colors.
21285 (search_image_cache): Check if saved and current frame colors match.
21286
212872007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21288
21289 * regex.c (regex_compile): Remove the `regnum' counter.
21290 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21291
212922007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21293
21294 * term.c: Include intervals.h to declare Fget_text_property.
21295
212962007-06-10 Jason Rumney <jasonr@gnu.org>
21297
21298 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21299
213002007-06-08 Juanma Barranquero <lekktu@gmail.com>
21301
21302 * callint.c (Fcall_interactively):
21303 * editfns.c (Fdelete_and_extract_region):
21304 * fileio.c (Fread_file_name):
21305 * fns.c (Fmapconcat):
21306 * keyboard.c (cmd_error_internal):
21307 * keymap.c (Fkey_description):
21308 * lread.c (openp):
21309 * minibuf.c (read_minibuf):
21310 * search.c (wordify):
21311 * sunfns.c (sel_read):
21312 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21313 * xfns.c (x_default_scroll_bar_color_parameter):
21314 * xmenu.c (menu_help_callback):
21315 * xselect.c (Fx_get_atom_name):
21316 * xterm.c (x_term_init): Use empty_unibyte_string.
21317
213182007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21319
21320 * alloc.c (init_strings): Initialize canonical empty strings.
21321 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21322 canonical empty string when the requested size is 0.
21323
21324 * emacs.c (empty_unibyte_string): Rename from empty_string.
21325 (empty_multibyte_string): New canonical empty string.
21326 (syms_of_emacs): Don't initialize empty_string.
21327
21328 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21329 string, if appropriate.
21330 (empty_unibyte_string, empty_multibyte_string): New externs.
21331 (empty_string): Remove extern.
21332
21333 * lread.c (syms_of_lread): Use empty_unibyte_string.
21334
213352007-06-07 Jason Rumney <jasonr@gnu.org>
21336
21337 * s/ms-w32.h: Don't define HAVE_TZNAME.
21338
21339 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21340
213412007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21342
21343 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21344
21345 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21346 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21347
21348 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21349 Don't call next handler.
21350 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21351 Remove argument. Install handler to application.
21352 (set_frame_menubar): Don't change deep_p.
21353 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21354 FRAME_OUTER_TO_INNER_DIFF_Y.
21355 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21356 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21357 [HAVE_DIALOGS]: New macros.
21358 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21359 Use them.
21360 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21361
21362 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21363 init_service_handler. All callers changed. Return OSStatus value.
21364
21365 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21366 All callers changed so as not to call SetPortWindowPort.
21367 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21368 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21369 mac_draw_string_common.
21370 (mac_draw_image_string_qd): Likewise.
21371 (mac_draw_string_common): Use them. Add INLINE.
21372 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21373 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21374 GetGlobalMouse.
21375 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21376 and FRAME_OUTER_TO_INNER_DIFF_Y.
21377 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21378 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21379 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21380 repositioning window to mac_handle_window_event.
21381 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21382 saving window location to mac_handle_window_event
21383 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21384 (install_menu_target_item_handler): Remove argument in extern.
21385 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21386 Also accept command events.
21387 (do_keystroke): New function created from XTread_socket.
21388 (init_command_handler): Remove functions.
21389 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21390 and save window location by kEventWindowShowing and kEventWindowHiding
21391 handlers here. Don't call next handler for window state change and
21392 focus events.
21393 (mac_handle_application_event, mac_handle_keyboard_event)
21394 [TARGET_API_MAC_CARBON]: New functions.
21395 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21396 kEventWindowShowing and kEventWindowHiding events. Move installation
21397 of mouse, font, text input and menu target item handlers to
21398 install_application_handler.
21399 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21400 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21401 New function.
21402 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21403 Register it.
21404 (XTread_socket) [TARGET_API_MAC_CARBON]:
21405 Consolidate SendEventToEventTarget calls.
21406 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21407 Move application activation handler to mac_handle_application_event.
21408 Move keyboard handler to mac_handle_keyboard_event.
21409 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21410 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21411 init_command_handler. Call install_application_handler.
21412
21413 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21414 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21415
214162007-06-07 Glenn Morris <rgm@gnu.org>
21417
21418 * emacs.c (main): Use `emacs-copyright' in --version output.
21419
214202007-06-06 Chong Yidong <cyd@stupidchicken.com>
21421
21422 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21423
214242007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21425
21426 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21427
21428 * macgui.h: Replace WindowPtr with WindowRef.
21429
21430 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21431 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21432 Replace ControlHandle with ControlRef.
21433 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21434
21435 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21436 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21437 Replace ControlHandle with ControlRef.
21438 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21439 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21440
21441 * macterm.h (struct scroll_bar): Rename member control_handle_low
21442 and control_handle_high to control_ref_low and control_ref_high.
21443 All uses changed.
21444 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21445 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21446 respectively. All uses changed.
21447 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21448 (install_window_handler, remove_window_handler): Replace WindowPtr
21449 with WindowRef in externs.
21450
214512007-06-05 Juanma Barranquero <lekktu@gmail.com>
21452
21453 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21454
214552007-06-03 Nick Roberts <nickrob@snap.net.nz>
21456
21457 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21458
21459 * frame.c (Fmouse_position, Fmouse_pixel_position):
21460 Condition on HAVE_GPM too.
21461
21462 * term.c (term_mouse_highlight): Remove unused variables.
21463 (Fterm_open_connection): Set gpm_zerobased to 1.
21464 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21465 Use zero based co-ordinates.
21466 (handle_one_term_event): Report a drag as mouse movement too.
21467
21468 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21469
214702007-06-03 Chong Yidong <cyd@stupidchicken.com>
21471
21472 * image.c (search_image_cache): New function. Require background
21473 color match if background color is unspecified in the image spec.
21474 (uncache_image, lookup_image): Use it.
21475
214762007-06-01 Juanma Barranquero <lekktu@gmail.com>
21477
21478 * window.c (Fshrink_window): Reflow docstring.
21479
214802007-06-02 Chong Yidong <cyd@stupidchicken.com>
21481
21482 * Version 22.1 released.
21483
214842007-06-01 Richard Stallman <rms@gnu.org>
21485
21486 * xfns.c (x_encode_text): Add GCPRO.
21487
214882007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21489
21490 * xfns.c (x_set_name_internal): Save encoded name before
21491 x_encode_text in case string data is relocated.
21492
214932007-05-31 Richard Stallman <rms@gnu.org>
21494
21495 * buffer.c (syms_of_buffer): Doc fix.
21496
214972007-05-30 Nick Roberts <nickrob@snap.net.nz>
21498
21499 * sysdep.c (init_sys_modes): Add rather than replace with
21500 O_NONBLOCK.
21501
21502 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21503 term_mouse_moveto.
21504
21505 * termhooks.h (term_mouse_moveto): New extern.
21506
21507 * term.c (mouse_face_window): Rename...
21508 (Qmouse_face_window): ...to this.
21509 (term_show_mouse_face, term_clear_mouse_face)
21510 (term_mouse_highlight): Use Qmouse_face_window.
21511 (term_mouse_moveto): New function.
21512 (term_mouse_position): Make it work.
21513 (syms_of_term): Uncomment assignment to mouse_position_hook.
21514 Staticpro Qmouse_face_window.
21515
215162007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21517
21518 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21519 around current_column call.
21520
215212007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21522
21523 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21524 * xdisp.c (next_element_from_buffer):
21525 * window.c (delete_window):
21526 * term.c (term_mouse_highlight):
21527 * msdos.c (getdefdir):
21528 * macterm.c (mac_create_bitmap_from_bitmap_data)
21529 (init_font_name_table):
21530 * fns.c (Fsxhash):
21531 * data.c (Fmake_local_variable):
21532 * ccl.c (ccl_driver): Likewise.
21533
215342007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21535
21536 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21537 Call mac_wakeup_from_rne on window size change.
21538
215392007-05-25 Chong Yidong <cyd@stupidchicken.com>
21540
21541 * image.c (uncache_image): Fix typo.
21542
215432007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21544
21545 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21546
215472007-05-22 Richard Stallman <rms@gnu.org>
21548
21549 * xterm.c (x_connection_closed): Remove NO_RETURN.
21550
215512007-05-22 Martin Rudalics <rudalics@gmx.at>
21552
21553 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21554
215552007-05-21 Chong Yidong <cyd@stupidchicken.com>
21556
21557 * image.c (uncache_image): New function.
21558 (Fimage_refresh): New function.
21559
215602007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21561
21562 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21563
215642007-05-20 Nick Roberts <nickrob@snap.net.nz>
21565
21566 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21567 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21568
215692007-05-20 Nick Roberts <nickrob@snap.net.nz>
21570
21571 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21572 conditional on [HAVE_GPM_H].
21573
215742007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21575
21576 * syntax.c (skip_chars): Update syntax-table only after we checked that
21577 the new location is valid.
21578
215792007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21580
21581 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21582 mac_get_window_bounds.
21583
215842007-05-20 Nick Roberts <nickrob@snap.net.nz>
21585
21586 * Makefile.in (LIBGPM): Allow it to be set from configure.
21587 If set then link Emacs with it.
21588
21589 * config.in: Regenerate.
21590
21591 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21592 New externs.
21593
21594 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21595 Include gpm.h.
21596 (handle_one_term_event, term_gpm): New externs.
21597
21598 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21599 and allow it to be interrupted by SIGIO.
21600
21601 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21602 (wait_reading_process_output): Wait on gpm_fd too.
21603 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21604 (add_gpm_wait_descriptor_called_flag): New variable.
21605 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21606
21607 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21608 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21609 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21610 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21611 (make_lispy_event): Add case GPM_CLICK_EVENT.
21612 (read_avail_input): Handle mouse input.
21613
21614 * term.c (write_glyphs_with_face): New function.
21615 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21616 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21617 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21618 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21619 (last_mouse_x, last_mouse_y): New variables.
21620 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21621 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21622 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21623 (Fterm_close_connection): New functions.
21624 (term_init): Initialise mouse_face_window.
21625
216262007-05-19 Chong Yidong <cyd@stupidchicken.com>
21627
21628 * xdisp.c (redisplay_window): If first window line is a
21629 continuation line, recompute the new window start instead of
21630 recentering.
21631
216322007-05-18 Glenn Morris <rgm@gnu.org>
21633
21634 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21635 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21636
216372007-05-17 Glenn Morris <rgm@gnu.org>
21638
21639 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21640
216412007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21642
21643 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21644 dead key repeat and up events.
21645
216462007-05-14 Chong Yidong <cyd@stupidchicken.com>
21647
21648 * image.c (pbm_load): Check image size for monochrome pbm.
21649
216502007-05-13 Chong Yidong <cyd@stupidchicken.com>
21651
21652 * xterm.c (XTread_socket): Revert last change.
21653
216542007-05-12 Chong Yidong <cyd@stupidchicken.com>
21655
21656 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21657
21658 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21659
216602007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21661
21662 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21663 mixup (YAILOM).
21664
216652007-05-07 Andreas Schwab <schwab@suse.de>
21666
21667 * keymap.c (Flookup_key): Fix typo in last change.
21668
216692007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21670
21671 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21672 mapping for unibyte strings.
21673
216742007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21675
21676 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21677 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21678
216792007-04-29 Richard Stallman <rms@gnu.org>
21680
21681 * insdel.c (replace_range): For undo, record insertion first.
21682
216832007-04-29 Andreas Schwab <schwab@suse.de>
21684
21685 * lisp.h (VECSIZE): Use OFFSETOF.
21686
216872007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21688
21689 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21690 disabled lines.
21691
216922007-04-28 Richard Stallman <rms@gnu.org>
21693
21694 * lread.c (read_escape): In a string, \s is always space.
21695
216962007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21697
21698 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21699
21700 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21701 submenu for menu bar items.
21702
21703See ChangeLog.10 for earlier changes.
21704
21705;; Local Variables:
21706;; coding: utf-8
21707;; add-log-time-zone-rule: t
aac0c6e3
MR
21708;; End:
21709
e3eb1dae 21710 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21711
21712 This file is part of GNU Emacs.
21713
21714 GNU Emacs is free software: you can redistribute it and/or modify
21715 it under the terms of the GNU General Public License as published by
21716 the Free Software Foundation, either version 3 of the License, or
21717 (at your option) any later version.
21718
21719 GNU Emacs is distributed in the hope that it will be useful,
21720 but WITHOUT ANY WARRANTY; without even the implied warranty of
21721 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21722 GNU General Public License for more details.
21723
21724 You should have received a copy of the GNU General Public License
21725 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21726
21727;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40