* net/tramp.el (tramp-handle-write-region): START can be a string.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
df7e1ea0
AS
12010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2
3 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4
fe69a722
CY
52010-02-27 Chong Yidong <cyd@stupidchicken.com>
6
4ed28cf4
CY
7 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 9
7379cfce
KH
102010-02-26 Kenichi Handa <handa@m17n.org>
11
f88cc4d6
KH
12 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
13
7379cfce
KH
14 * xdisp.c (reseat_to_string): Fix previous change.
15
cf2fdcfb
CY
162010-02-26 David Reitter <david.reitter@gmail.com>
17
18 * nsfont.m (nsfont_draw): ns_antialias_text should be a
19 Lisp_Object (Bug#4736).
20
cc6c7c75
KH
212010-02-25 Kenichi Handa <handa@m17n.org>
22
23 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
24
32e737d7
JD
252010-02-24 Jan Djärv <jan.h.d@swipnet.se>
26
27 * xterm.c (XTflash): Move declarations before statements.
28
29 * gtkutil.c (xg_get_gdk_display): Remove (unused).
30 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
31 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
32 (xg_create_tool_bar): Remove unused variables.
33 (x_wm_set_size_hint): Move declarations before statements.
34 (xg_create_frame_widgets): Remove variable grav,
35
676cae9f
CY
362010-02-21 Chong Yidong <cyd@stupidchicken.com>
37
38 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
39
886cc2b8
SM
402010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
41
42 * term.c (fatal): Add a final \n if needed (bug#5596).
43
ddb2d8e2
CY
442010-02-18 Chong Yidong <cyd@stupidchicken.com>
45
46 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
47
2a4f8d3d
GM
482010-02-18 Glenn Morris <rgm@gnu.org>
49
50 * callint.c (Finteractive): Doc fix.
51
ebaf11b6
KH
522010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
53
886cc2b8
SM
54 * coding.c (record_conversion_result):
55 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
56 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
57 memory allocation error.
58
d0396581
KH
592010-02-17 Kenichi Handa <handa@m17n.org>
60
886cc2b8
SM
61 * coding.c (decode_coding_ccl): Don't setup ccl program here.
62 Fix for the case that the output buffer is fullfilled.
d0396581
KH
63 (decode_coding): Setup ccl program here. Keep looping when the
64 decoder stopped because the output buffer is
65 fullfilled (bug#5534).
66
67 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
68
98599f74
JD
692010-02-13 Jan Djärv <jan.h.d@swipnet.se>
70
471e4f04 71 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 72 bug #5571.
886cc2b8 73 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 74 overdrawn.
98599f74 75
182659ae
JD
762010-02-10 Jan Djärv <jan.h.d@swipnet.se>
77
78 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
79 doing_interact here.
80 (ice_connection_closed): New function.
81 (x_session_check_input, smc_die_CB, ice_io_error_handler)
82 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
83 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
84 returns I/O error.
85 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
86 bug #5512.
87
9be32c4e 882010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
89
90 * nsfont.m (nsfont_open): The system's value for the font descent
91 is negative, so round it down to avoid clipping.
92
a2f3eb19
CY
932010-02-06 Chong Yidong <cyd@stupidchicken.com>
94
95 * charset.c (load_charset_map_from_file)
96 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 97 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 98
3088147c
CY
992010-02-05 Chong Yidong <cyd@stupidchicken.com>
100
101 * charset.c (load_charset_map_from_file): Allocate large
102 charset_map_entries structure on the heap rather than the stack.
103 (Bug#5526).
104
b57d9029
KH
1052010-01-31 Kenichi Handa <handa@m17n.org>
106
107 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 108 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 109
c67d885b
CY
1102010-01-31 Chong Yidong <cyd@stupidchicken.com>
111
112 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
113 <deactivated@gmail.com> (Bug#3605).
114
8fab2362
CY
1152010-01-31 David De La Harpe Golden <david@harpegolden.net>
116
117 * fileio.c (Frename_file): Correctly rename symlinks to
118 directories (Bug#5496).
119
cb2a62f2
CY
1202010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
121
122 * nsterm.m (ns_ring_bell): Handle visible bell like X.
123
944c7a26
AS
1242010-01-30 Andreas Schwab <schwab@linux-m68k.org>
125
126 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
127
c024ac08
CY
1282010-01-29 Chong Yidong <cyd@stupidchicken.com>
129
130 * frame.c (DEFAULT_ROWS): Change default to 35.
131
132 * xfns.c (x_default_font_parameter): Change default XFT font to
133 monospace-10 (Bug#3643).
134
af93af83
EZ
1352010-01-29 Eli Zaretskii <eliz@gnu.org>
136
137 * w32inevt.c (key_event): Remove unnecessary comparison of
138 event->uChar.AsciiChar with 128.
139
ca0eb708
CY
1402010-01-28 Chong Yidong <cyd@stupidchicken.com>
141
b242dbfc
CY
142 * fileio.c (Frename_file): Fix last change (Bug#5487).
143
ca0eb708
CY
144 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
145
146 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
147
45d45af5
JD
1482010-01-28 Jan Djärv <jan.h.d@swipnet.se>
149
150 * xfns.c (Fx_create_frame): Remove window size matching code from
151 2010-01-15.
152 (x_get_current_desktop, x_get_desktop_workarea): Remove
153
7e233730
JR
1542010-01-27 Jason Rumney <jasonr@gnu.org>
155
156 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 157 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 158
86e893e3
KH
1592010-01-27 Kenichi Handa <handa@m17n.org>
160
161 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 162 pattern string (Bug#4209).
86e893e3 163
8719abec
CY
1642010-01-27 David De La Harpe Golden <david@harpegolden.net>
165
166 * fileio.c (Frename_file): Call copy-directory and
167 delete-directory for directories, in order to handle cross-device
168 renaming (Bug#3353).
169
844794c8
JD
1702010-01-25 Jan Djärv <jan.h.d@swipnet.se>
171
aa3e13b5 172 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 173 sizes 24 and 10. Bug #3643.
844794c8 174
bd4b5750
SM
1752010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
176
8dc1adf6 177 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
178 * keymap.c (shadow_lookup): Add `remap' arg.
179 (describe_map, describe_vector): Update calls to shadow_lookup.
180 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
181 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
182 perform remapping during shadow_lookup check of remapped_sequences.
183
285d07e2
CY
1842010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
185
186 * image.c (png_load): Use png_sig_cmp instead of the obsolete
187 png_check_sig, which has been removed in libpng 1.4.
188
c6d09b8d
CY
1892010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
190
191 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
192 lacks this header file).
193
3d782998
YM
1942010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
195
196 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
197 as in Emacs 22.
198
2aff7c53
YM
1992010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
200
201 * lisp.h (make_pure_string): String pointer arg now points to const.
202
203 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
204 args now point to const.
205
74327f7a
EZ
2062010-01-22 Eli Zaretskii <eliz@gnu.org>
207
208 * lread.c (Fload): Don't treat files without .elc extension as
209 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
210 them. (bug#5303)
211
4d1e6632
KH
2122010-01-20 Kenichi Handa <handa@m17n.org>
213
214 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
215 treat the source as actual byte sequence.
216
1fdede8f
AM
2172010-01-19 Alan Mackenzie <acm@muc.de>
218
219 Fix spurious before-change-functions invocation from (insert ?\n).
220 * textprop.c (set_text_properties): rename parameter
221 `signal_after_change_p' to `coherent_change_p', and make the
222 invocation of `modify_region' conditional on it.
223
67477f30
JD
2242010-01-19 Jan Djärv <jan.h.d@swipnet.se>
225
226 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
227 for debug purpose.
228 (syms_of_xsettings): Declare xft-settings.
229
244b023e
CY
2302010-01-18 Chong Yidong <cyd@stupidchicken.com>
231
232 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
233
617364fe
CY
2342010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
235
236 * xterm.c (event_handler_gdk): Block input (Bug#5037).
237
4fe22cdf
CY
2382010-01-16 Chong Yidong <cyd@stupidchicken.com>
239
240 * emacs.c (standard_args): Adjust arg priorities to reflect how
241 they are processed in startup.el.
242
e118d2be
AS
2432010-01-16 Andreas Schwab <schwab@linux-m68k.org>
244
245 * Makefile.in (lisp, shortlisp): Update.
246
523ae620
SM
2472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
248
249 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
250 code, link the new kboard into all_kboard before running Lisp code,
251 and protect the new terminal with GCPRO (Bug#5365).
252 (x_term_init): Remove unused var `atom'.
253 (x_delete_display, x_delete_terminal): Remove unused var `i'.
254
f0d13888
JD
2552010-01-15 Jan Djärv <jan.h.d@swipnet.se>
256
257 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
258 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
259 to find out usable size of the desktop. Don't make frames larger than
ac146f82 260 this. Bug #3643.
f0d13888 261
cc320f07
KH
2622010-01-15 Kenichi Handa <handa@m17n.org>
263
264 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
265
7ffdf101
CY
2662010-01-15 Chong Yidong <cyd@stupidchicken.com>
267
268 * nsterm.m (Qnone): Define.
269
270 * nsfns.m (Qnone): Move definition to nsterm.m.
271
d12bd917
KH
2722010-01-14 Kenichi Handa <handa@m17n.org>
273
274 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
275 systems.
276
d9a7c140
KH
2772010-01-14 Kenichi Handa <handa@m17n.org>
278
279 Make auto-composition work on all buffers even if they are
280 fundamental mode.
281
282 * composite.c (Vauto_composition_mode): New variable.
283 (composition_compute_stop_pos): Check Vauto_composition_mode
284 instead of Vauto_composition_function.
285 (composition_adjust_point, Ffind_composition_internal): Likewise.
286 (syms_of_composite): Declare Lisp variable
287 "auto-composition-mode" here.
288
63286bb2
CY
2892010-01-13 Chong Yidong <cyd@stupidchicken.com>
290
291 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
292 during call to vendor-specific-keysyms (Bug#5365).
293
c2623ee7
YM
2942010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
295
296 * keyboard.c (input_available_signal) [SYNC_INPUT]:
297 Call SIGNAL_THREAD_CHECK (Bug#5333).
298
299 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
300 Call SIGNAL_THREAD_CHECK.
301
0b5397c2
SM
3022010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
303
304 Try to fix bug#5314. This is probably not the final word, tho.
305 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
306 recent-auto-save-p as a side-effect.
307 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
308 * buffer.c (Fkill_buffer, reset_buffer):
309 * editfns.c (Fsubst_char_in_region):
310 * fileio.c (Finsert_file_contents, Fdo_auto_save)
311 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
312
dc954cb2
KH
3132010-01-13 Kenichi Handa <handa@m17n.org>
314
315 Display buffer name, etc. in mode line by composing correctly.
316
317 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
318 STRING is not nil.
0b5397c2 319 (display_mode_element): Adjust for the change of
dc954cb2
KH
320 decode_mode_spec and display_line.
321 (decode_mode_spec): Change arg MULTIBYTE to STRING.
322 (display_string): Handle the case that STRING is non-null and
323 LISP_STRING is not nil.
324
0b5397c2
SM
325 * xterm.c (x_draw_composite_glyph_string_foreground):
326 Pay attention to s->face->overstrike.
dc954cb2
KH
327
328 * composite.c (composition_reseat_it): Don't check PT if STRING is
329 non nil.
330
4a00eaca
YM
3312010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
332
333 * keyboard.c (read_char): Don't apply previous change when current
334 buffer is unchanged by command execution.
335
60abb287
JD
3362010-01-12 Jan Djärv <jan.h.d@swipnet.se>
337
338 * keyboard.c (read_char): Return after executing from special map.
339
893db5bc
GM
3402010-01-12 Glenn Morris <rgm@gnu.org>
341
342 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
343 bug-gnu-emacs rather than emacs-pretest-bug.
344
4d03ece0
CY
3452010-01-11 Chong Yidong <cyd@stupidchicken.com>
346
347 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
348 initializing the Lisp variables that depend on them.
349
1df47e38
YM
3502010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
351
352 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
353 Clear areas that will not be updated after change of menu bar lines.
354 Clear the menu bar window's current matrix when the window gets empty.
355
2f1c6384
CY
3562010-01-09 Chong Yidong <cyd@stupidchicken.com>
357
e398c61c
CY
358 * intervals.h, textprop.c (extend_property_ranges): Return value
359 and args changed. Discard properties that begin at or after the
360 new end (Bug#5306).
361
362 * editfns.c (Fformat): Caller changed.
363
e5a29a10
CY
364 * nsterm.m (ns_set_default_prefs): Delete function.
365 (syms_of_nsterm): Initialize ns_command_modifier,
366 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
367 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
368
2f1c6384
CY
369 * xdisp.c (pos_visible_p): Check for invisible text at the correct
370 position (Bug#4040).
371
d427a9fa
EZ
3722010-01-09 Eli Zaretskii <eliz@gnu.org>
373
374 * editfns.c (Ffloat_time): Doc fix.
375
21b9df2f
JD
3762010-01-09 Jan Djärv <jan.h.d@swipnet.se>
377
378 * xfns.c (Fx_create_frame): Don't create frame larger than display
379 by default bug#3643.
380
4b00d3b1
YM
3812010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
382
383 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
384 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
385 windows above internal border.
386
387 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
388 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
389 windows above internal border.
390
391 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
392 tool bar windows specially.
393
394 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
395
396 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
397 specially.
398 (XTflash): Take account of menu bar height.
399
400 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
401 specially.
402
5075d853
JD
4032010-01-08 Jan Djärv <jan.h.d@swipnet.se>
404
ac146f82 405 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
406 also be true before we can return early (bug #5339).
407
474217c8
CY
4082010-01-06 David Reitter <david.reitter@gmail.com>
409
410 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
411 (Fns_display_usable_bounds): Rewrite, computing bounds properly
412 (Bug#3233).
413
c0e6d47d
JD
4142010-01-06 Jan Djärv <jan.h.d@swipnet.se>
415
d0cf45b7
JD
416 * font.c (font_open_entity): Enable chache and call cached_font_ok
417 for the driver if defined.
418 (QCuser_spec): New symbol.
419 (font_spec_from_name): Save name as user-spec.
420 (font_load_for_lface): Keep user-spec instead of name.
421 (font_open_by_name): Save name as user-spec.
422 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 423 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
424
425 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
426 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
427 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
428
429 * font.h (struct font_driver): Add cached_font_ok.
430
c0e6d47d
JD
431 * xterm.c (x_clear_frame): Queue draw for scroll bars.
432
7c583cd8
JD
4332010-01-05 Jan Djärv <jan.h.d@swipnet.se>
434
435 * xterm.c (x_new_font): Move code for setting rows/cols before
436 resizing ...
ac146f82 437 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
438
439 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
440 (xg_frame_resized, xg_frame_set_char_size):
441 Call xg_clear_under_internal_border.
7c583cd8 442 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 443
03f77f0a
CY
4442010-01-05 Chong Yidong <cyd@stupidchicken.com>
445
446 * keyboard.c (read_key_sequence): Catch keyboard switch after
447 making a new tty frame (Bug#5095).
448
2a1ef5be
KH
4492010-01-05 Kenichi Handa <handa@m17n.org>
450
451 * fontset.c (fontset_find_font): Fix getting the frame pointer.
452
e3eb1dae
SM
4532010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
454
455 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
456 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
457 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
458
777013f2
MA
4592010-01-03 Michael Albinus <michael.albinus@gmx.de>
460
461 * dbusbind.c (xd_add_watch): Improve debug message.
462 (xd_remove_watch): Improve debug message. If DATA is the session
463 bus, unset D-Bus session environment.
464 (Fdbus_init_bus): Pass the bus as argument to
465 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 466
8932b1c2
CY
4672010-01-01 Chong Yidong <cyd@stupidchicken.com>
468
87231e2c
CY
469 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
470
4801c5fa
CY
471 * lread.c (syms_of_lread): Make it clearer that these are the
472 names of loaded files (Bug#5068).
473
8932b1c2
CY
474 * eval.c (run_hook_with_args): Handle the case where the global
475 value has the obsolete single-function form (Bug#5026).
476
11e3c684
CY
4772009-12-27 Chong Yidong <cyd@stupidchicken.com>
478
479 * minibuf.c (Fall_completions): Minor optimization.
480
5b28ce35
EZ
4812009-12-26 Eli Zaretskii <eliz@gnu.org>
482
5ce6e4f4
JB
483 * .gdbinit (pgx): Fix display of composite glyphs.
484 Display cmp.from and cmp.to as well.
485 (pitx): Fix last change.
5b28ce35 486
bcffff46
KH
4872009-12-25 Kenichi Handa <handa@m17n.org>
488
489 * composite.h (composition_adjust_point): Update prototype.
490
491 * composite.c (composition_reseat_it): Don't make a composition
492 spanning over point.
493 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
494 composable characters.
495 (composition_adjust_point): New arg NEW_PT. Callers changed.
496
497 * keyboard.c (command_loop_1): Force redisplay if the last point
498 was within a composition.
499 (adjust_point_for_property): Don't adjust point for automatic
500 composition when called after buffer modification.
501
3f670e9a
EZ
5022009-12-19 Eli Zaretskii <eliz@gnu.org>
503
5ce6e4f4
JB
504 * .gdbinit (pitx): Don't use enum names, use their values.
505 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
506 (pgx): Don't use enum names, use their values.
507 (pitmethod): New helper command.
508 (pitx): Use it to display iteration method.
509 (pgrowit): New command.
510
ad903955
EZ
511 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
512
3f670e9a
EZ
513 Update dependencies in Makefile.in.
514
515 * Makefile.in (alloc.o): Depend on termhooks.h.
516 (atimer.o): Depend on blockinput.h.
517 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
518 and frame.h.
519 (callint.o): Depend on systime.h, coding.h, and composite.h.
520 (callproc.o): Depend on buffer.h.
521 (casefiddle.o): Don't depend on charset.h.
522 (casetab.o): Depend on character.h.
523 (ccl.o): Depend on composite.h.
524 (chartab.o): Depend on ccl.h.
525 (cm.o): Depend on dispextern.h.
526 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
527 (coding.o): Don't depend on $(INTERVALS_H).
528 (composite.o): Don't depend on dispextern.h explicitly (it's in
529 $(INTERVALS_H)). Depend on ccl.h.
530 (data.o): Depend on systime.h, coding.h, composite.h,
531 dispextern.h, font.h, and ccl.h.
532 (dired.o): Depend on composite.h.
533 (dispnew.o): Depend on coding.h. Don't depend explicitly on
534 composite.h (it's in $(INTERVALS_H)).
535 (doc.o): Depend on systime.h, coding.h, and composite.h.
536 (editfns.o): Don't depend explicitly on dispextern.h.
537 (emacs.o): Depend on frame.h and coding.h.
538 (eval.o): Depend on coding.h, composite.h, and xterm.h.
539 (fileio.o): Depend on frame.h and commands.h. Don't depend
540 explicitly on dispextern.h.
541 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
542 composite.h.
543 (fns.o): Don't depend on termhooks.h.
544 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
545 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
546 coding.h, $(INTERVALS_H), window.h, xterm.h.
547 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
548 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
549 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
550 fontset.h, ccl.h, and ftfont.h.
551 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
552 (gtkutil.o): Depend on dispextern.h and composite.h.
553 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
554 termhooks.h, and ccl.h.
555 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
556 (intervals.o): Depend on systime.h and coding.h.
557 (keyboard.o): Depend on composite.h and coding.h.
558 (keymap.o): Depend on coding.h and frame.h.
559 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
560 (macros.o): Depend on systime.h, coding.h, and composite.h.
561 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
562 and atimer.h.
563 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
564 dispextern.h explicitly.
0b5397c2
SM
565 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
566 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
567 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
568 (regex.o): Don't depend on charset.h.
569 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
570 (search.o): Don't depend explicitly on composite.h.
571 (sound.o): Depend on atimer.h and systime.h.
572 (syntax.o): Don't depend explicitly on composite.h.
573 (sysdep.o): Depend on coding.h and composite.h.
574 (term.o): Depend on xterm.h and buffer.h.
575 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
576 (textprop.o): Don't depend on dispextern.h explicitly.
577 (undo.o): Depend on dispextern.h.
578 (window.o): Depend on coding.h and termhooks.h. Don't depend on
579 dispextern.h and composite.h explicitly.
580 (xdisp.o): Depend on ccl.h.
581 (xfaces.o): Depend on coding.h and ccl.h.
582 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
583 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
584 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
585 ftfont.h.
586 (xgselect.o): New dependency.
587 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
588 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
589 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
590 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
591 (xsmfns.o): Depend on frame.h and dispextern.h.
592 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
593 sysselect.h.
594
7a6f7fea
AS
5952009-12-19 Andreas Schwab <schwab@linux-m68k.org>
596
597 * font.c (Fclear_font_cache): Pass correct cache argument to
598 font_clear_cache.
599
f4c21026
AS
6002009-12-16 Andreas Schwab <schwab@linux-m68k.org>
601
602 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
603 twice.
604
f7ab0997
CY
6052009-12-15 Chong Yidong <cyd@stupidchicken.com>
606
607 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
608 calling file-remote-p. Reported by Jim Meyering.
609
fa8e045a
MA
6102009-12-15 Michael Albinus <michael.albinus@gmx.de>
611
612 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 613 avoid compiler warnings. (Bug #5217)
fa8e045a 614
a63dba42
KH
6152009-12-14 Kenichi Handa <handa@m17n.org>
616
617 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
618 in 8-bit encoding.
619
5ce6e4f4 6202009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
621
622 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
623 tooltip windows.
624
223e5fc6
JD
6252009-12-13 Jan Djärv <jan.h.d@swipnet.se>
626
36acb2a7
JD
627 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
628 Xatom_net_window_type.
629
630 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
631 Xatom_net_window_type.
632
b8f00677
JD
633 * xterm.c (my_log_handler): New function.
634 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 635 so we can filter out buggy messages. (Bug #5120).
b8f00677 636
e5f0bc9a
JD
637 * xterm.c (xg_scroll_callback): Parameter list changed,
638 use parameter GtkScrollType to determine scroll/line/page.
639 Only allow dragging if a button < 4 is grabbed (bug #5177).
640 (xg_end_scroll_callback): New function.
641 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
642 xg_create_scroll_bar.
643
644 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
645 (scroll_end_callback): Remove.
646 (xg_create_scroll_bar): Add parameter end_callback, bind it to
647 button-release-event. Replace value-changed event with change-value,
648 bug #5177,
649 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
650 bug #5177.
651
652 * gtkutil.h (XG_LAST_SB_DATA): Remove.
653 (xg_create_scroll_bar): Add GCallback end_callback.
654
223e5fc6
JD
655 * xftfont.c (QClcdfilter): New variable.
656 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
657 (syms_of_xftfont): Initialize QClcdfilter.
658
3c055b77
JD
6592009-12-12 Jan Djärv <jan.h.d@swipnet.se>
660
661 * xsettings.c (struct xsettings): Add member seen.
662 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 663 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
664 (apply_xft_settings): Only update Xft settings with what member seen
665 indicates as new.
666
05fe33ff
EZ
6672009-12-12 Eli Zaretskii <eliz@gnu.org>
668
669 * dispextern.h (struct text_pos): Use EMACS_INT;
670 (struct glyph): Use EMACS_INT for charpos.
671 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
672 region_beg_charpos, region_end_charpos,
673 redisplay_end_trigger_charpos, and also for
674 iterator_stack_entry.end_charpos and
675 iterator_stack_entry.stop_charpos.
676
e8d7886a
JD
6772009-12-12 Jan Djärv <jan.h.d@swipnet.se>
678
5ce6e4f4 679 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
680 (xg_create_scroll_bar): Call scroll_end_callback on button release
681 event (bug #5177).
682 (xg_event_is_for_scrollbar): != replaced with ==.
683
d0db2ec8
KH
6842009-12-12 Kenichi Handa <handa@m17n.org>
685
686 * ftfont.c (struct ftfont_info): New member matrix.
687 (ftfont_open): Setup xftfont_info->matrix.
688 (MFLTFontFT): New member matrix.
689 (FLOOR, CEIL, ROUND): New macros.
690 (ftfont_get_metrics): Handle matrix transformation.
691 (ftfont_shape_by_flt): New arg matrix. Callers changed.
692
693 * xftfont.c (struct xftfont_info): New member matrix.
694 (xftfont_open): Setup xftfont_info->matrix.
695
6962009-12-10 Kenichi Handa <handa@m17n.org>
697
698 * xdisp.c (append_space_for_newline): Consider face-remapping.
699
2cc7b62f
AS
7002009-12-09 Andreas Schwab <schwab@linux-m68k.org>
701
b87dd913
AS
702 * xsettings.c: Include "keyboard.h".
703
eba5eb94
AS
704 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
705
2cc7b62f
AS
706 Fix implicit function declarations.
707 * cmds.c: Include "frame.h".
708 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
709 * frame.h: Move declaration of delete_frame outside of
710 HAVE_WINDOW_SYSTEM.
711
a4ef73c8
CY
7122009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
713
714 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
715
716 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
717 GTK builds.
718
944a300c
AS
7192009-12-07 Andreas Schwab <schwab@linux-m68k.org>
720
721 * unexelf.c (unexec): Don't search for .data twice.
722
022eef62
CY
7232009-12-05 Chong Yidong <cyd@stupidchicken.com>
724
426ac949
CY
725 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
726 if push failed.
727 (handle_line_prefix): Set avoid_cursor_p here. Check return value
728 of push_display_prop (Bug#5000).
729
022eef62
CY
730 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
731 value of font_list_entities (Bug#5085).
732
be95bee9
JB
7332009-12-04 Juanma Barranquero <lekktu@gmail.com>
734
735 Fix `string-to-number' to deal consistently with integers and floats.
736 * lread.c (isfloat_string): New argument ignore_trailing to accept all
737 trailing characters, not just whitespace.
738 (read1): Pass new arg 0 to keep old behavior.
739 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
740 trailing chars, as it is already done for integers. Doc fixes.
741 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
742
24c2d7ce
EZ
7432009-12-04 Eli Zaretskii <eliz@gnu.org>
744
0b5397c2
SM
745 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
746 Delete unused enumeration value.
24c2d7ce 747
7e694795
EZ
7482009-12-03 Eli Zaretskii <eliz@gnu.org>
749
750 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
751
84b31826
SM
7522009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
753
754 * process.c (Fmake_network_process): Fix up the tests for
755 "connectionless socket", so they DTRT for seqpacket sockets as well.
756
f00c449b
SM
7572009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
758
759 * process.c (Qseqpacket): New symbol.
760 (HAVE_SEQPACKET): New macro.
761 (Fmake_network_process): Accept new :type `seqpacket'.
762 (init_process): Add `seqpacket' feature when applicable.
763 (syms_of_process): Initialize Qseqpacket.
764
8096a0ff
YM
7652009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
766
767 * font.c (font_load_for_lface, font_open_by_name): Don't store name
768 if entity is Qnil.
769
3e0de07f
SM
7702009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
771
772 * print.c (print_preprocess): Preprocess the key_and_value table of
773 hashtables, even tho they're "hidden" (bug#5082).
774
abeafb2a
JD
7752009-11-29 Jan Djärv <jan.h.d@swipnet.se>
776
777 * frame.c (frame_make_pointer_invisible)
778 (frame_make_pointer_visible): Declare f before statements.
779
4bf47195
EZ
7802009-11-28 Eli Zaretskii <eliz@gnu.org>
781
782 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
783 omitted dependencies on lisp.h.
784
c525b3f2
JD
7852009-11-27 Jan Djärv <jan.h.d@swipnet.se>
786
ece2d4ed
JD
787 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
788 is NULL.
789
790 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
791
792 * frame.c (frame_make_pointer_invisible)
3e0de07f 793 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
794 frame.
795
c525b3f2
JD
796 * search.c (simple_search): Remove warning by making *p const.
797
2f00e299
DN
7982009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
799
800 * xdisp.c (power_letter): Remove duplicate const.
801
084b049b
JD
8022009-11-25 Jan Djärv <jan.h.d@swipnet.se>
803
a1fadc6f
JD
804 * term.c (delete_tty): Remove check for last terminal (bug#4970).
805
5ce6e4f4 806 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
807 defaults (bug #5025).
808
28259cac
SM
8092009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
810
811 * insdel.c (adjust_markers_for_delete): Move it in the
812 right direction! (bug#4803)
813
e8e14166
YM
8142009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
815
816 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
817
818 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
819
86677b58
GM
8202009-11-24 Glenn Morris <rgm@gnu.org>
821
822 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
823
581e51e8
JD
8242009-11-23 Jan Djärv <jan.h.d@swipnet.se>
825
cfc86c7a
JD
826 * Makefile.in: Must create deps for ecrt0.o in its rule.
827
581e51e8
JD
828 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
829 because that is what Gtk+ font dialog understands.
830
831 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
832 of Fcopy_sequence.
833 (font_open_by_name): Put name given into QCname for font-object returned.
834
835 * frame.c (x_set_font): Save original font name as frame parameter
836 font-parameter.
837
838 * xsettings.c (set_default_xft_settings): New function.
839 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
840 is found.
841
8b264ecb
AS
8422009-11-22 Andreas Schwab <schwab@linux-m68k.org>
843
844 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
845 searching backwards through multibyte buffer.
846
872870b2
JD
8472009-11-21 Jan Djärv <jan.h.d@swipnet.se>
848
849 * xterm.c: #include xgselect.h.
850 (x_initialize): Call xgselect_initialize.
851
852 * xsettings.c (something_changedCB): C++ comments => C comments.
853 (init_gconf): Do not deal with any GLib file descriptors, xg_select
854 does that now.
855
856 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
857 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
858 (scroll_bar_button_cb): Remove.
5ce6e4f4 859 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
860 event.
861 (xg_create_scroll_bar): Don't bind button-press-event and
862 button-release-event.
863
864 * process.c: Include xgselect.h if defined (USE_GTK) ||
865 defined (HAVE_GCONF).
866 (wait_reading_process_output): Call xg_select for the same condition.
867
868 * xgselect.c (xg_select): New function to better integrate with
869 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
870
871 * xgselect.h: New file, declare xg_select, xgselect_initialize.
872
873 * Makefile.in (XOBJ): Add xgselect.o.
874
62a6e103
AS
8752009-11-21 Andreas Schwab <schwab@linux-m68k.org>
876
0b5397c2
SM
877 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
878 Remove ignored second argument. All callers changed.
62a6e103
AS
879 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
880 (RE_STRING_CHAR_AND_LENGTH): Likewise.
881 * xdisp.c (string_char_and_length): Likewise.
882
b0ca0f33
DN
8832009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
884
885 * xterm.c (x_new_font):
886 * print.c (print_object):
887 * cmds.c (Fself_insert_command): Move declarations before statements.
888
dd5a6279
CY
8892009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
890
891 * s/cygwin.h: Remove unneeded linker flags.
892
4a8e097d
JD
8932009-11-20 Jan Djärv <jan.h.d@swipnet.se>
894
0d1d0d26
JD
895 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
896
897 * xsettings.h: Declare xsettings_get_system_font.
898
899 * xsettings.c (xsettings_get_system_font): New function.
900 (init_gconf): No use initiating gconf unless we have Xft also.
901 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
902 HAVE_GCONF.
903
4a8e097d
JD
904 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
905 add a blank entry so it doesn't collapse into nothing.
906
8ab1650e
SM
9072009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
908
909 * lread.c (Funintern): Comment out last change.
910
82c602f0
RS
9112009-11-19 Richard Stallman <rms@gnu.org>
912
913 * lread.c (Funintern): Error if symbol is t or nil.
914
87e32266
SM
9152009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
916
917 * insdel.c (make_gap_larger): Don't make as many assumptions about the
918 representation of Lisp integers.
919 Reported by MJ Chan <mjchan.inbox@gmail.com>.
920
1b9ac145
AS
9212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
922
923 * lisp.h: Remove declaration of Ffont_get_system_font.
924 * xfns.c: Move include of "xsettings.h".
925 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
926
dfb3c4c6
JD
9272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
928
87e32266
SM
929 * xsettings.c (something_changedCB, Ffont_get_system_font):
930 Check use_system_font.
dfb3c4c6
JD
931 (syms_of_xsettings): DEFVAR font-use-system-font.
932
9370c1d8
AS
9332009-11-17 Andreas Schwab <schwab@linux-m68k.org>
934
25fe851a
AS
935 * xfns.c (x_default_font_parameter): Remove dead assignment.
936
9370c1d8
AS
937 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
938
637fa988
JD
9392009-11-17 Jan Djärv <jan.h.d@swipnet.se>
940
87e32266 941 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 942 not have FC_LCD_*. #define them if not there.
a6eb20d8 943
87e32266 944 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 945
637fa988
JD
946 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
947
948 * xterm.c (handle_one_xevent): Call xft_settings_event for
949 ClientMessage, PropertyNotify and DestroyNotify.
950 (x_term_init): If we have XFT, get DPI from Xft.dpi.
951 Call xsettings_initialize.
952
953 * xftfont.c (xftfont_fix_match): New function.
954 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
955 Call xftfont_fix_match after XftFontMatch.
956
957 * xfont.c (xfont_driver): Initialize all members.
958
87e32266
SM
959 * xfns.c (x_default_font_parameter):
960 Try font from Ffont_get_system_font.
637fa988
JD
961 Do not get font from x_default_parameter if we got one from
962 Ffont_get_system_font.
87e32266 963 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
964
965 * w32font.c (w32font_driver): Initialize all members.
966
967 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
968
969 * lisp.h: Declare syms_of_xsettings.
970
87e32266
SM
971 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
972 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
973
974 * ftfont.c (ftfont_filter_properties): New function.
975
976 * frame.c (x_set_font): Remove unused variable lval.
977
87e32266 978 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
979
980 * font.c (font_put_extra): Don't return if val is nil, it means
981 boolean option is off.
982 (font_parse_fcname): Collect all extra properties in extra_props
983 and call filter_properties for all drivers with extra_props and
984 font as parameter.
87e32266
SM
985 (font_open_entity): Do not use cache, it does not pick up new
986 fontconfig settings like hinting.
637fa988
JD
987 (font_load_for_lface): If spec had a name in it, store it in entity.
988
989 * emacs.c (main): Call syms_of_xsettings
990
991 * config.in: HAVE_GCONF is new.
992
993 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
994 xsettings.o is new.
995
5a942932
KH
9962009-11-17 Kenichi Handa <handa@m17n.org>
997
998 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
999 back to the default font in case that no suitable font is found.
1000
b7c7a4d1
SM
10012009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1002
1003 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1004 Suggested by Chad Brown <yandros@mit.edu>.
1005 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1006
072f1e39
JD
10072009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1008
1009 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1010
5d1e70a2
AS
10112009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1012
87e32266 1013 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1014
a53cfbe5
JD
10152009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1016
473a99b7
JD
1017 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1018 has a parent.
1019
a53cfbe5 1020 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1021 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1022
1023 * config.in: Generated (AUTO_DEPEND).
1024
f04bb9b2
MA
10252009-11-13 Michael Albinus <michael.albinus@gmx.de>
1026
b7c7a4d1 1027 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1028 Vdbus_registered_functions_table, because it contains also
1029 properties. Fix docstring.
b7c7a4d1 1030 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1031
8f11f7ec
SM
10322009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1033
1034 * alloc.c (mark_object): Don't reprocess marked strings.
1035 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1036 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1037
8a605fe8
KH
10382009-11-13 Kenichi Handa <handa@m17n.org>
1039
8f11f7ec 1040 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1041 semantics of Vword_combining_categories.
1042 (Vword_combining_categories): Describe the slight change of the
1043 semantics.
1044
241c4680
EZ
10452009-11-13 Eli Zaretskii <eliz@gnu.org>
1046
1047 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1048
1049 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1050
5d58e44c
SM
10512009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1052
1053 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1054
5e13f9d3
JB
10552009-11-12 Juanma Barranquero <lekktu@gmail.com>
1056
1057 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1058
cf54c754
DR
10592009-11-11 David Reitter <david.reitter@gmail.com>
1060
1061 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1062 variables to fix 2009-11-09 change.
1063
a4ada374
DN
10642009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1065
91433552
DN
1066 * process.c (ifflag_def): Make flag_sym constant.
1067 (Fnetwork_interface_info): Use a constant pointer.
1068 (ifflag_table):
1069 * xfns.c (cursor_bits):
1070 * xdisp.c (power_letter):
1071 * termcap.c (speeds, esctab):
1072 * sysdep.c (baud_convert):
1073 * keyboard.c (lispy_accent_codes, modifier_names):
1074 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1075 (jpeg_format, tiff_format, gif_format, svg_format)
1076 (interlace_start, interlace_increment, gs_format):
1077 * gtkutil.c (separator_names):
1078 * fringe.c (swap_nibble):
1079 * fns.c (base64_value_to_char, base64_char_to_value):
1080 * fileio.c (make_temp_name_tbl):
1081 * coding.c (suffixes): Make constant.
1082
f4265f6c
DN
1083 * frame.c (make_initial_frame):
1084 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1085 build_string.
1086 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1087
04420943
DN
1088 * s/freebsd.h:
1089 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1090
0a5d24ae
DN
1091 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1092 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1093
a4ada374
DN
1094 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1095 * xterm.c (syms_of_xterm):
1096 * xfaces.c (syms_of_xfaces):
1097 * xdisp.c (syms_of_xdisp):
1098 * lread.c (syms_of_lread):
1099 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1100 build_string.
91433552 1101
a4ada374
DN
1102 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1103
af98fc7f
SM
11042009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1105
8ab1650e 1106 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1107
e90292a9
JD
11082009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1109
1110 * keyboard.h: Declare timer_check.
1111
1112 * keyboard.c (timer_check_2): New function that does what the old
1113 timer_check did.
1114 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1115 returned, i.e. don't return -1 with timers pending.
1116
1117 * process.c: Remove extern declaration of timer_check.
1118
1119 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1120 even if timer_check returned -1.
1121
af98fc7f
SM
1122 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1123 xg_dialog_data.
e90292a9
JD
1124 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1125 the event loop.
1126 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1127 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1128 Destroy the dialog after xg_dialog_run.
1129
045b83c0
SM
11302009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1131
1132 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1133
1fb99a3a
JD
11342009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1135
1136 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1137
04e452cb
JB
11382009-11-09 Juanma Barranquero <lekktu@gmail.com>
1139
1140 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1141
ef7417fd
SM
11422009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1143
1144 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1145 w32menu.c, and nsmenu.m.
1146 Simplify the obsolete case where position is nil.
1147 (cleanup_popup_menu): New function, moved from nsmenu.m.
1148 (struct skp): Remove slot `notreal'.
1149 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1150 adjust callers.
1151 (single_menu_item): Adjust call to parse_menu_item.
1152 (syms_of_menu): Defsubr x-popup-menu.
1153 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1154 (keymap_panes): Don't export any more.
1155 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1156 (xmenu_show): Declare.
1157 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1158 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1159 * keyboard.h (parse_menu_item): Update declaration.
1160 * xmenu.c (Fx_popup_menu): Remove.
1161 (syms_of_xmenu): Don't defsubr x-popup-menu.
1162 * w32menu.c (Fx_popup_menu): Remove.
1163 (syms_of_w32menu): Don't defsubr x-popup-menu.
1164 * nsmenu.m (cleanup_popup_menu): Remove.
1165 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1166 moved to menu.c's Fx_popup_menu.
1167 (Fx_popup_menu): Remove.
1168 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1169 menu_items (it's done in menu.c already).
1170
424d6179
SM
11712009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1172
1173 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1174 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1175
c0df13a6 11762009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1177
1178 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1179 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1180 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1181 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1182
2de9f71c
SM
11832009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1184
1185 Let integers use up 2 tags to give them one extra bit and thus double
1186 their range.
1187 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1188 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1189 New macros.
1190 (enum Lisp_Type): Use them. Give explicit values.
1191 (Lisp_Type_Limit): Remove.
1192 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1193 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1194 Pay attention to USE_2_TAGS_FOR_INTS.
1195 (INTEGERP): Use LISP_INT_TAG_P.
1196 * fns.c (internal_equal): Simplify the default case.
1197 (sxhash): Use case_Lisp_Int.
1198 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1199 any more.
1200 (Ftype_of): Use case_Lisp_Int.
1201 (store_symval_forwarding): Take into account the fact that Ints can
1202 now have more than one tag.
1203 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1204 buffer_slot_type_mismatch):
1205 * xfaces.c (face_attr_equal_p):
1206 * print.c (print_object):
1207 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1208 Use case_Lisp_Int.
1209
323637a2
EZ
12102009-11-06 Eli Zaretskii <eliz@gnu.org>
1211
7ac65b38
EZ
1212 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1213
323637a2
EZ
1214 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1215 warning.
1216
e511451f
JD
12172009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1218
1219 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1220
1221 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1222
1223 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1224 ButtonPressRelease and MotionNotify (bug#4870).
1225
5e2327cf
DN
12262009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1227
5adc433e
DN
1228 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1229
d67b4f80
DN
1230 * xterm.c (syms_of_xterm):
1231 * xselect.c (syms_of_xselect):
1232 * xmenu.c (syms_of_xmenu):
1233 * xfns.c (syms_of_xfns):
1234 * xfaces.c (syms_of_xfaces):
1235 * xdisp.c (syms_of_xdisp):
1236 * window.c (syms_of_window):
1237 * w32fns.c (syms_of_w32fns):
1238 * undo.c (syms_of_undo):
1239 * textprop.c (syms_of_textprop):
1240 * terminal.c (syms_of_terminal):
1241 * syntax.c (syms_of_syntax):
1242 * sound.c (syms_of_sound):
1243 * search.c (syms_of_search):
1244 * print.c (syms_of_print):
1245 * minibuf.c (syms_of_minibuf):
1246 * macros.c (syms_of_macros):
1247 * keymap.c (syms_of_keymap, initial_define_key)
1248 (initial_define_lispy_key):
1249 * keyboard.c (syms_of_keyboard):
1250 * insdel.c (syms_of_insdel):
1251 * image.c (syms_of_image):
1252 * fringe.c (syms_of_fringe):
1253 * frame.c (syms_of_frame):
1254 * fontset.c (syms_of_fontset):
1255 * fns.c (syms_of_fns):
1256 * fns.c (syms_of_fns):
1257 * fileio.c (syms_of_fileio):
1258 * fileio.c (syms_of_fileio):
1259 * eval.c (syms_of_eval):
1260 * doc.c (syms_of_doc):
1261 * dispnew.c (syms_of_display):
1262 * dired.c (syms_of_dired):
1263 * dbusbind.c (syms_of_dbusbind):
1264 * data.c (syms_of_data):
1265 * composite.c (syms_of_composite):
1266 * coding.c (syms_of_coding):
1267 * cmds.c (syms_of_cmds):
1268 * charset.c (define_charset_internal, syms_of_character):
1269 * ccl.c (syms_of_ccl):
1270 * category.c (syms_of_category, init_category_once):
1271 * casetab.c (syms_of_casetab):
1272 * casefiddle.c (syms_of_casefiddle):
1273 * callint.c (syms_of_callint):
1274 * bytecode.c (syms_of_bytecode):
1275 * buffer.c (keys_of_buffer, syms_of_buffer):
1276 * alloc.c (syms_of_alloc):
1277 * process.c (syms_of_process, init_process):
1278 * lread.c (syms_of_lread, init_obarray):
1279 * font.c (build_style_table):
1280 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1281 intern_c_string, calls to make_pure_string with
1282 make_pure_c_string. Use pure_cons instead of Fcons.
1283
5e2327cf
DN
1284 * process.c (socket_options): Make it const.
1285 (set_socket_option, init_process): Use a const pointer.
1286
1287 * lread.c (intern_c_string): New function.
1288 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1289 (defvar_int): Uset it. Make the name const char*.
1290
1291 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1292 (defvar_int): Update prototypes.
1293 (DEFUN, EXFUN): Support for prototypes is now required.
1294 (intern_c_string): New prototype.
1295 (struct Lisp_Subr): Make symbol_name constant.
1296
1297 * font.c (struct table_entry): Remove unused member. Make NAMES
1298 constant.
1299 (weight_table, slant_table, width_table): Make constant.
1300
1301 * emacs.c (struct standard_args): Make name and longname constant.
1302
1303 * character.h (DEFSYM): Use intern_c_string.
1304
a56eaaef
DN
13052009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1306
1307 * alloc.c (make_pure_c_string): New function.
1308
1309 * eval.c (Fautoload): Purecopy all arguments.
1310
f6a07420
KH
13112009-11-05 Kenichi Handa <handa@m17n.org>
1312
1313 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1314 the buffer in case of replace.
1315
5d28d4b1
DN
13162009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1317
1318 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1319
b349d111
SM
13202009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1321
d528b1ce
SM
1322 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1323 when applicable (bug#4851).
1324
b349d111
SM
1325 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1326 (P_): Support for prototypes is now required.
1327
c38eb027
CY
13282009-10-31 Chong Yidong <cyd@stupidchicken.com>
1329
1330 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1331 (Bug#4827).
1332
0405f8d9
EZ
13332009-10-30 Eli Zaretskii <eliz@gnu.org>
1334
d528b1ce 1335 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1336
ca0a881a
DN
13372009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1338
1339 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1340
d528b1ce
SM
1341 * lread.c (Fload): Purecopy the file name when building
1342 Vpreloaded_file_list.
ca0a881a 1343
47e0e0e4
JR
13442009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1345
1346 * w32fns.c (syms_of_w32fns): Change default value of
1347 w32-scroll-lock-modifier to nil. (Bug#2827)
1348
057bce6f
JB
13492009-10-26 Juanma Barranquero <lekktu@gmail.com>
1350
782a943e 1351 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1352
242bc74c
AS
13532009-10-26 Andreas Schwab <schwab@redhat.com>
1354
1355 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1356
522d013a
JB
13572009-10-26 Juanma Barranquero <lekktu@gmail.com>
1358
1359 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1360 For delta < 0, skip check that only makes sense when the mini-window
1361 is going to be enlarged. (Bug#4534)
1362
18060980
CY
13632009-10-25 Chong Yidong <cyd@stupidchicken.com>
1364
1365 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1366 string in menu maps (Bug#4471).
1367
fec8f0fe
CY
13682009-10-24 Chong Yidong <cyd@stupidchicken.com>
1369
1370 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1371 FRAME_NS_VIEW on terminal frames (Bug#4765).
1372
10d66ec0
AS
13732009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1374
1cae01f7
AS
1375 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1376 DBUS_TYPE_UINTnn separately to get proper sign extension.
1377
58a12889
AS
1378 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1379 can properly handle unsigned types.
d528b1ce 1380 (make_uid, make_gid): Remove.
58a12889 1381
987c9327
AS
1382 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1383 types again.
1384
522d013a 1385 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1386 (system_process_attributes): Likewise.
1387
905a9ed3
DN
13882009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1389
1390 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1391
1392 * eval.c (Fautoload): Purecopy the filename. Simplify.
1393
1394 * category.c (Fdefine_category): Purecopy docstring.
1395
a599b3e8
AS
13962009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1397
7b792fc9
AS
1398 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1399
a599b3e8
AS
1400 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1401
b35ac83e
CY
14022009-10-23 Chong Yidong <cyd@stupidchicken.com>
1403
1404 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1405 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1406 (Bug#4775).
1407
e8903e00
SM
14082009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1409
1410 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1411 (init_fileio_once):
1412 * lisp.h (init_fileio_once): Remove.
1413 * emacs.c (main): Don't call init_fileio_once.
1414
8f43cbf3
DN
14152009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1416
1417 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1418
26898943
AS
14192009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1420
1421 * doprnt.c (doprnt): Fix overflow check.
1422
5c646d5a
JD
14232009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1424
3132a7ea
JD
1425 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1426
5c646d5a
JD
1427 * xterm.h (x_wait_for_event): Declare it.
1428
1429 * xterm.c (pending_event_wait): New variable.
1430 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1431 see pending_event_wait.eventtype.
1432 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1433 (x_new_font): Call change_frame_size with new rows/columns before we
1434 try to resize the frame.
5c646d5a 1435 (x_wait_for_event): New function.
d528b1ce
SM
1436 (x_set_window_size_1): Don't change gravity unless change_gravity
1437 is set.
5c646d5a
JD
1438 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1439 don't change frame size, instead wait for the ConfigureNotify.
1440 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1441 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1442 (x_initialize): Initialize pending_event_wait.
1443
1444 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1445 size.
1446
1447 * widget.c (EmacsFrameSetValues): Add comment.
1448 (EmacsFrameSetCharSize): Just call x_set_window_size.
1449
1450 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1451 x_wait_for_event.
d528b1ce 1452 (flush_and_sync): Remove again.
5c646d5a
JD
1453 (xg_get_font_name): Suggest monospace if no previous font is known.
1454
e9c1637d
SM
14552009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1456
1457 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1458 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1459
5a72cccb
YM
14602009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1461
1462 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1463 processing pending events when event is filtered for input method.
ab04798f 1464 (Bug#3681)
5a72cccb 1465
2629aa37
JB
14662009-10-20 Juanma Barranquero <lekktu@gmail.com>
1467
1468 * fns.c: Add #endif accidentally removed in previous change.
1469
c3417a74
DN
14702009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1471
1472 * fns.c: Remove code for unsupported system: MAC_OS.
1473 * image.c: Likewise. Include setjmp.h.
1474
9685cef2
JD
14752009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1476
1477 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1478 pixel -1 (bug #4742).
1479
d7306fe6
DN
14802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1481
019d2c4c
DN
1482 * process.c (create_pty): Remove conditionals for no longer
1483 supported systems: UNIPLUS and RTU.
1484
ee6bacd4
DN
1485 * xterm.c:
1486 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1487
d7306fe6
DN
1488 * alloc.c: Do not define struct catchtag.
1489 * eval.c: Move struct catchtag definition ...
1490 * lisp.h: ... here.
1491
1492 * image.c: Move png.h #include earlier to avoid warnings.
1493
1494 * xterm.c:
1495 * xsmfns.c:
1496 * xselect.c:
1497 * xrdb.c:
1498 * xmenu.c:
1499 * xftfont.c:
1500 * xfont.c:
1501 * xfns.c:
1502 * xfaces.c:
1503 * xdisp.c:
1504 * window.c:
1505 * widget.c:
1506 * w32xfns.c:
1507 * w32uniscribe.c:
1508 * w32term.c:
1509 * w32select.c:
1510 * w32reg.c:
1511 * w32proc.c:
1512 * w32menu.c:
1513 * w32inevt.c:
1514 * w32heap.c:
1515 * w32font.c:
1516 * w32fns.c:
1517 * w32console.c:
1518 * w32.c:
1519 * w16select.c:
1520 * vm-limit.c:
1521 * unexsol.c:
1522 * unexec.c:
1523 * unexcw.c:
1524 * unexaix.c:
1525 * undo.c:
1526 * tparam.c:
1527 * textprop.c:
1528 * terminfo.c:
1529 * terminal.c:
1530 * termcap.c:
1531 * term.c:
1532 * syntax.c:
1533 * sound.c:
1534 * sheap.c:
1535 * search.c:
1536 * scroll.c:
1537 * region-cache.c:
1538 * regex.c:
1539 * ralloc.c:
1540 * process.c:
1541 * print.c:
b024548b
DN
1542 * nsterm.m:
1543 * nsselect.m:
1544 * nsmenu.m:
1545 * nsimage.m:
1546 * nsfont.m:
1547 * nsfns.m:
d7306fe6
DN
1548 * msdos.c:
1549 * minibuf.c:
1550 * menu.c:
1551 * marker.c:
1552 * macros.c:
1553 * keymap.c:
1554 * keyboard.c:
1555 * intervals.c:
1556 * insdel.c:
1557 * indent.c:
1558 * gtkutil.c:
1559 * ftxfont.c:
1560 * ftfont.c:
1561 * fringe.c:
1562 * frame.c:
1563 * fontset.c:
1564 * font.c:
1565 * fns.c:
1566 * floatfns.c:
1567 * filelock.c:
1568 * fileio.c:
1569 * emacs.c:
1570 * editfns.c:
1571 * dosfns.c:
1572 * doprnt.c:
1573 * doc.c:
1574 * dispnew.c:
1575 * dired.c:
1576 * dbusbind.c:
1577 * data.c:
1578 * composite.c:
1579 * coding.c:
1580 * cmds.c:
1581 * cm.c:
1582 * chartab.c:
1583 * charset.c:
1584 * character.c:
1585 * ccl.c:
1586 * category.c:
1587 * casetab.c:
1588 * casefiddle.c:
1589 * callproc.c:
1590 * callint.c:
1591 * bytecode.c:
1592 * buffer.c:
1593 * atimer.c: Include setjmp.h. (Bug#4643)
1594
fd5f21e6
SM
15952009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1596
4c0354d7
SM
1597 Remove leftover table unibyte_to_multibyte_table.
1598 * character.c (unibyte_to_multibyte_table): Remove.
1599 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1600 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1601 * character.h (UNIBYTE_TO_CHAR): New macro.
1602 (MAKE_CHAR_MULTIBYTE): Use it.
1603 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1604 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1605 (message_dolog, set_message_1):
1606 * search.c (Freplace_match):
1607 * editfns.c (Fcompare_buffer_substrings):
1608 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1609 (concat):
1610 * insdel.c (copy_text, count_size_as_multibyte):
1611 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1612 * term.c (produce_glyphs):
1613 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1614 * regex.c (RE_CHAR_TO_MULTIBYTE):
1615 * cmds.c (internal_self_insert):
1616 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1617
fd5f21e6
SM
1618 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1619
4418646e
DN
16202009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1621
1622 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1623
35f5c1d2
JB
16242009-10-16 Juanma Barranquero <lekktu@gmail.com>
1625
1626 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1627
a0cd8f6b
AR
16282009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1629
1630 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1631 still needed under Tiger.
1632
1633 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1634
1635 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1636 __Apple__.
1637
1638 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1639
01a8d3fa
KH
16402009-10-15 Kenichi Handa <handa@m17n.org>
1641
1642 * print.c (print_object): Escape a symbol like "2E10" too.
1643
bf6c75c9 16442009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1645
1646 Cleanups and changes for 64-bit compile under Snow Leopard.
1647 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1648
1649 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1650
c5959062 1651 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1652 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1653 cast argument.
1654 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1655 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1656
1657 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1658
1659 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1660 where appropriate.
1661
1662 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1663 where appropriate.
6e4780c5
JB
1664 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1665 Use stringWithUTF8String.
bf6c75c9
AR
1666 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1667
6e4780c5
JB
1668 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1669 Add formal protocol mention to inheritance.
bf6c75c9
AR
1670 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1671
6e4780c5
JB
1672 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1673 Fix printf format.
bf6c75c9
AR
1674 (ns_query_color): Use CGFloat where appropriate.
1675 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1676 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1677 argument.
1678
3d87f118
AR
1679 * config.in (NS_HAVE_NSINTEGER): Drop.
1680
a95c8102
AR
1681 * dbusbind.c (dbus-method-return-internal)
1682 (dbus-method-error-internal): Use long format in printf, and cast
1683 argument.
1684
1685 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1686 in printf, and cast argument.
1687
6873acca 1688 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1689 cast argument.
1690
9ec6f100
GM
16912009-10-11 Glenn Morris <rgm@gnu.org>
1692
1693 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1694
5be883cd
JD
16952009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1696
1697 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1698 menu bar with a small width so it doesn't enlarge the frame.
1699
d7a39b51
JB
17002009-10-08 Juanma Barranquero <lekktu@gmail.com>
1701
1702 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1703
0c2b6f8e
GM
17042009-10-06 Glenn Morris <rgm@gnu.org>
1705
1706 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1707 SOME_MACHINE_LISP (this enters indirectly via DOC).
1708
e02131a2
EZ
17092009-10-05 Eli Zaretskii <eliz@gnu.org>
1710
1711 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1712
b4744254
EZ
17132009-10-04 Eli Zaretskii <eliz@gnu.org>
1714
1715 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1716 Doc fix.
1717
dbf64827
JB
17182009-10-03 Martin Rudalics <rudalics@gmx.at>
1719
1720 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1721
e9a0aef8
MA
17222009-10-02 Michael Albinus <michael.albinus@gmx.de>
1723
d528b1ce 1724 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1725 used anymore outside fileio.c.
1726
1727 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1728
64eb2b56
JB
17292009-10-01 Juanma Barranquero <lekktu@gmail.com>
1730
1731 * lisp.h (Qdelete_directory_internal):
1732 Declare, instead of Qdelete_directory.
1733
1734 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1735
9d28c33e
SM
17362009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1737
1738 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1739
9d8f3bd9
MA
17402009-10-01 Michael Albinus <michael.albinus@gmx.de>
1741
9d28c33e 1742 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1743 Fdelete_directory. It is not a command anymore. It has no file
1744 name handler.
1745
9694740b
SM
17462009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1747
1748 * xdisp.c (get_next_display_element): Use an enum in last change.
1749
748e162f
KH
17502009-09-28 Kenichi Handa <handa@m17n.org>
1751
9694740b 1752 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1753 unibyte_display_via_language_environment in handling
1754 Vnobreak_char_display.
1755
17efd58d
AR
17562009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1757
1758 * nsterm.h (ns_app_name): New extern variable.
1759
1760 * nsterm.m (ns_app_name): New variable.
1761 (ns_term_init): Set and use it.
1762 (ns_term_shutdown): Use it.
1763
1764 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1765 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1766
1767 * nsfns.m (ns_set_name_iconic, ns_set_name)
1768 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1769 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1770
9694740b
SM
1771 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1772 Remove double-casting in client_data comparison.
31c2d412 1773
3208cb35
YM
17742009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1775
1776 * keyboard.c (make_lispy_event): Remember last wheel direction.
1777 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1778
b7d552d6
GM
17792009-09-26 Glenn Morris <rgm@gnu.org>
1780
1781 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1782 internal.elc. Add term/pc-win.elc.
1783 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1784 term/x-win.elc.
1785 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1786 term/w32-win.elc.
1787 (NS_SUPPORT): New.
1788 (lisp): Add NS_SUPPORT.
1789 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1790
4ff670a8
DR
17912009-09-25 David Reitter <david.reitter@gmail.com>
1792
1793 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1794 on Mac OS X 10.6+ (bug#4513).
1795
feabfb6c
JB
17962009-09-24 Juanma Barranquero <lekktu@gmail.com>
1797
1798 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1799 some parts of Emacs code (like font selection) don't grok them.
1800 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1801
de59072a
AS
18022009-09-24 Andreas Schwab <schwab@redhat.com>
1803
1804 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1805
a489517b
JB
18062009-09-24 Juanma Barranquero <lekktu@gmail.com>
1807
1808 * dired.c (Fdirectory_files): Fix typo in docstring.
1809
0592970c
AR
18102009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1811
1812 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1813 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1814 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1815 under GNUstep.
1816 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1817
1818 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1819 glyph advancement.
1820
48e8a88b
AR
18212009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1822
1823 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1824 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1825
1826 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1827 deleted (bug #4492).
1828
e14f0a78
AR
1829 * nsfont.m (Vns_reg_to_script): New lisp variable.
1830 (syms_of_nsfont): Declare it.
1831 (ns_registry_to_script): New function.
1832 (ns_get_req_script): Call it.
1833 (ns_findfonts): Don't give up on non-unicode registry.
1834
1835 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1836
5b650faa
SM
18372009-09-20 Tom Tromey <tromey@redhat.com>
1838
1839 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1840 batch mode (bug#4228).
1841
a489517b 18422009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1843
1844 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1845 carefully. (Bug #4339)
0bae4e09 1846
fcfe06f3
CY
18472009-09-18 Chong Yidong <cyd@stupidchicken.com>
1848
d798ba87 1849 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1850
31642728
AR
18512009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1852
1853 * emacs.c (inhibit_x_resources): Update doc string for NS.
1854 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1855 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1856
1857 * nsterm.h (ns_no_defaults): Remove.
1858
1859 * nsterm.m (ns_no_defaults): Remove.
1860 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1861 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1862 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1863 don't update the NSWindow itself.
1864 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1865 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1866
1867 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1868 ns_use_qd_smoothing.
1869
1870 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1871 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1872 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1873 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1874
8686ac71
JB
18752009-09-17 Juanma Barranquero <lekktu@gmail.com>
1876
1877 * emacs.c (inhibit_x_resources): New variable.
1878 (main) [HAVE_NS]: Don't process --quick command line option.
1879 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1880
1881 * lisp.h (inhibit_x_resources): Declare it extern.
1882
1883 * w32reg.c (x_get_string_resource):
1884 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1885
e227ba05
EZ
18862009-09-17 Eli Zaretskii <eliz@gnu.org>
1887
362654a6
JB
1888 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1889 Add lisp/term/internal.elc.
e227ba05 1890
742d40e8
SM
18912009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1892
1893 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1894 (bug#4461).
1895
005bd5a2
DN
18962009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1897
1898 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1899
1900 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1901 (OBJECTS_MACHINE): Remove, unused.
1902
f9af9719
SM
19032009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1904
1905 * frame.c (x_get_resource_string): Remove unused.
1906
0307c7d2
JD
19072009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1908
1909 * xterm.c (x_new_font): Call change_frame_size before calling
1910 x_set_window_size, in case frame size won't change.
1911
1912 * frame.c (x_set_font): Remove dead code.
1913
428b13d6
SM
19142009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1915
1916 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1917
5766c380
SM
19182009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1919
1920 * lread.c (Fload): Don't output a message after loading an obsolete
1921 package any more (done in Lisp now).
1922
2fd0161b
CY
19232009-09-12 Chong Yidong <cyd@stupidchicken.com>
1924
1925 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1926
bc5e75b6
SM
19272009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1928
1929 * keymap.c (Fwhere_is_internal): Use nconc2.
1930
c31c985e
AM
19312009-09-11 Alan Mackenzie <acm@muc.de>
1932
1933 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1934 batch mode.
1935
78012bd2
AS
19362009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1937
1938 * xdisp.c (display_mode_element): Detect cycles.
1939
9d889332
SM
19402009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1941
1942 * keymap.c (where_is_internal): Don't erroneously return nil right after
1943 filling the cache.
1944 (where_is_internal_1): Fix up typo.
1945
7ab5d780
GM
19462009-09-11 Glenn Morris <rgm@gnu.org>
1947
1948 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1949 share a common doc-string.
1950
5238a749
SM
19512009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1952
66d77eda
SM
1953 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1954 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1955
5238a749
SM
1956 * keymap.c (QCadvertised_binding): New constant.
1957 (syms_of_keymap): Initialize it.
1958 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1959 if applicable.
1960
19f48442
SM
19612009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1962
50d4ba39
SM
1963 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1964 (parse_menu_item): Streamline since bindings are recomputed all the
1965 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1966 more and don't support lmenu's menu-alias any more either.
1967
a88a5372
SM
1968 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1969 (where_is_internal): Strip it down to only traverse the keymaps.
1970 Move the cache handling from Fwhere_is_internal to here.
1971 (Fwhere_is_internal): Move the handling of remapping and the choice of
1972 the best binding from where_is_internal to here.
1973 Unify the cached/noncached paths, so remapping is also handled
1974 correctly when the cache is used, and so the cache can be used to
1975 speed up remap-handling when applicable.
1976 Give preference to non-remapped bindings.
1977 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1978 non-remapped bindings.
1979 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1980 command remapping.
1981
19f48442
SM
1982 * xdisp.c (display_mode_element): Move list length limit from 50 to
1983 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1984
599498c3 19852009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1986
1987 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1988
f9b7b5ac
SM
19892009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1990
a53af587
JB
1991 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1992 (Bug#4334)
1993
f9b7b5ac
SM
1994 * keymap.c (where_is_internal): Filter out shadowed remappings.
1995 Assume that where_is_internal returns unshadowed bindings to simplify
1996 the code and get rid of the gotos. Use ASIZE.
1997
04f4b72d
JD
19982009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1999
4da146f2
JD
2000 * xterm.c (x_focus_changed): If we get a focusout and pointer
2001 is invisible, make it visible.
2002
04f4b72d
JD
2003 * xterm.h: Remove condition for declaration of
2004 x_*_window_to_frame.
2005
7cef7ce3
SM
20062009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2007
2008 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2009 initial terminal as well.
2010
a54fa5b7
JD
20112009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2012
2013 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2014 x_menubar_window_to_frame.
a54fa5b7
JD
2015
2016 * xterm.c: Remove declarations also in xterm.h
2017 (XTmouse_position): Do not return valid positions
2018 for clicks in the menubar and the toolbar for Gtk+.
2019
2020 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2021 if the widget for the event has the same top level as a frame,
2022 return the frame.
2023 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2024 internal windows, bug #4122.
2025 (x_non_menubar_window_to_frame): Remove.
2026
5a021dd0
GM
20272009-09-02 Glenn Morris <rgm@gnu.org>
2028
2029 * buffer.c (default-major-mode): Move most of the doc from here...
2030 (major-mode): ... to here.
2031
548fe2f3
NR
20322009-08-30 Nick Roberts <nickrob@snap.net.nz>
2033
2034 * process.c (wait_reading_process_output): Keep the descriptor
2035 when pty is used by a non-child process, e.g., in I/O buffer of
2036 GDB this allows inferior to be restarted.
2037
e0840eef
EZ
20382009-08-29 Eli Zaretskii <eliz@gnu.org>
2039
2040 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2041 both branches into one.
2042
82e98df4
SM
20432009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2044
2045 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2046 (main): Use enable-multibyte-characters rather than
2047 default-enable-multibyte-characters. Output a warning message when
2048 running a unibyte session.
2049
890617cb
YM
20502009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2051
2052 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2053 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2054 (copy_data_segment): Also copy __program_vars section.
2055 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2056 (dump_it) [LC_DYLD_INFO]: Use it.
2057
2058 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2059
e7adeadc
EZ
20602009-08-28 Eli Zaretskii <eliz@gnu.org>
2061
2062 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2063 $(SRC)/buildobj.h.
2064 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2065 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2066 $(SRC)/buildobj.h.
2067 (clean): Add buildobj.h.
2068
3ed8bbdc
TZ
20692009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2070
2071 * print.c (print_object): Set escapeflag to 1 when printing
2072 hashtable keys and values.
2073
155a6764
SM
20742009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2075
2076 * lread.c (read_integer): Use doubles (and potentially return a float
2077 number) as we do in string-to-number.
2078 (read1): Use strtol to read integers, signal errors on strtol's
2079 overflow and use floats if strtol's output is too large for
2080 Elisp integers.
2081
877610de
EZ
20822009-08-27 Eli Zaretskii <eliz@gnu.org>
2083
2084 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2085 (make-buildobj-SH): Fix last change.
2086 (SRC): Move to before where it's first used.
2087
ef73e7be
KH
20882009-08-27 Kenichi Handa <handa@m17n.org>
2089
550c8289
KH
2090 * process.c (send_process): Use encode_coding_object instead of
2091 encode_coding_string to perform eol-conversion even if the string
2092 is unibyte.
2093
60afa08d
KH
2094 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2095 character.
2096
ef73e7be 2097 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2098 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2099
7b3a82d7
DN
21002009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2101
5654bf63
DN
2102 * callproc.c (Fcall_process): Remove always true #if.
2103
7b3a82d7
DN
2104 * lisp.h: Replace #if 0 code for checking with text pointing to
2105 the --enable-checking configure flag.
2106
2107 * emacs.c (main): Mention the --enable-profiling configure flag
2108 instead of using CFLAGS.
2109
878bde49
KR
21102009-08-26 Ken Raeburn <raeburn@raeburn.org>
2111
2112 * Makefile.in (buildobj.h): New target.
2113 (doc.o): Depend on it.
2114 (temacs${EXEEXT}): Don't generate buildobj.lst.
2115 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2116 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2117 ($(BLD)/doc.$(O)): Depend on it.
2118 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2119 provided by Eli Zaretskii.)
2120 ($(TEMACS)): Don't generate buildobj.lst.
2121 * doc.c: Include buildobj.h.
2122 (buildobj): New static variable.
2123 (Fsnarf_documentation): Use it, instead of opening and reading
2124 buildobj.lst.
2125
1574224c
MA
21262009-08-25 Michael Albinus <michael.albinus@gmx.de>
2127
2128 * dbusbind.c (Fdbus_call_method)
2129 (Fdbus_call_method_asynchronously): Use English numeric format for
2130 timeout values in doc string.
2131
d9da2f45
KH
21322009-08-25 Kenichi Handa <handa@m17n.org>
2133
ef73e7be
KH
2134 * alloc.c (mark_char_table): New function.
2135 (mark_object): Use mark_char_table for a char-table.
2136
d9da2f45
KH
2137 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2138 (CHAR_TABLE_REF): Use it.
2139
c8edcc01
KR
21402009-08-23 Ken Raeburn <raeburn@raeburn.org>
2141
2142 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2143 before invoking the newly build emacs to check for load-path
2144 shadowing.
2145
7763401b
GM
21462009-08-22 Glenn Morris <rgm@gnu.org>
2147
2148 * Makefile.in (bootstrap_exe): New variable.
2149 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2150 Use ${bootstrap_exe}.
2151
729eadda
EZ
21522009-08-22 Eli Zaretskii <eliz@gnu.org>
2153
2154 * coding.h (encode_coding_string): Don't encode unibyte strings.
2155 (Bug#4047)
2156
eb4c6ace
MA
21572009-08-22 Michael Albinus <michael.albinus@gmx.de>
2158
2159 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2160
2161 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2162 intended as hotfix only.
2163 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2164
36e34d1b
AR
21652009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2166
2167 * nsterm.m (ns_get_color): Update documentation properly for last
2168 change, and clean up loose ends in the code left by it. Fix
2169 longstanding bug with 16-bit hex parsing, and add support for
2170 yet another X11 format (rgb:r/g/b) for compatibility.
2171 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2172 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2173
f983eb8a
SM
21742009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2175
2176 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2177
3f56d3c6
MA
21782009-08-20 Michael Albinus <michael.albinus@gmx.de>
2179
2180 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2181 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2182 (xd_initialize, xd_pending_messages): Check, whether
2183 $DBUS_SESSION_BUS_ADDRESS is set.
2184
fb641d68
YM
21852009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2186
2187 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2188
2189 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2190
cf59a374
GM
21912009-08-20 Glenn Morris <rgm@gnu.org>
2192
2193 * emacs.c (system-type): Doc fix.
2194
1373f3be
SM
21952009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2198 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2199
058ed861
MA
22002009-08-18 Michael Albinus <michael.albinus@gmx.de>
2201
1373f3be
SM
2202 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2203 New functions.
058ed861
MA
2204 (xd_initialize): Revert change from 2009-08-16.
2205
563a866e 22062009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2207
2208 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2209 font-group vector, return nil.
5fc05db0 2210
e42bdf01
CY
22112009-08-17 Chong Yidong <cyd@stupidchicken.com>
2212
2213 * process.c (status_notify): Don't perform redisplay.
2214 (Fdelete_process, list_processes_1, process_send_signal):
2215 Expliticly perform redisplay.
2216 (wait_reading_process_output): Always check process status, but
2217 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2218
4230ab74
KR
22192009-08-17 Ken Raeburn <raeburn@raeburn.org>
2220
1373f3be 2221 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2222 (XFLOAT_INIT): New macro for storing a float value.
2223 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2224 * fns.c (sxhash): Copy out the value of a float in order to
2225 examine its bytes.
2226 * dbusbind.c (xd_append_arg): Likewise.
2227
4230ab74
KR
2228 * emacs.c (main): Don't call syms_of_data twice.
2229
a0645cdd
MA
22302009-08-16 Michael Albinus <michael.albinus@gmx.de>
2231
2232 * dbusbind.c (xd_initialize): Add connection file descriptor to
2233 input_wait_mask, in order to let select() detect, whether a new
2234 message has been arrived.
ca4f31ea 2235 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2236
485db0ba
MA
22372009-08-15 Michael Albinus <michael.albinus@gmx.de>
2238
1373f3be
SM
2239 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2240 New functions.
485db0ba
MA
2241
2242 * lisp.h (xd_pending_messages): Declare.
2243
2244 * keyboard.c (readable_events): Call xd_pending_messages.
2245
b5b98ff4
CY
22462009-08-15 Chong Yidong <cyd@stupidchicken.com>
2247
1373f3be 2248 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2249
f8354c6e
CY
2250 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2251
b5b98ff4
CY
2252 * buffer.c (set_buffer_internal_1)
2253 (swap_out_buffer_local_variables): Check for unbound local
2254 variables (Bug#4138).
2255
8b9fc636
EZ
22562009-08-14 Eli Zaretskii <eliz@gnu.org>
2257
2258 * process.c (create_pty): Fix last change.
2259
ce959360
CY
22602009-08-13 Chong Yidong <cyd@stupidchicken.com>
2261
2262 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2263 (xbm_load_image): Caller changed.
64b807c9 2264 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2265
c7baf7e9
NR
22662009-08-13 Nick Roberts <nickrob@snap.net.nz>
2267
2268 * process.c (create_pty): New function.
2269 (Fstart_process): Use it to allow Emacs to just associate a pty
2270 with the buffer. See associated change in gdb-mi.el.
2271 (list_processes_1): Deal with no program name.
2272 (start_process_unwind): Use pid == -2 to mean no process.
2273
1ac9108a
SM
22742009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2275
2276 * cmds.c (nonundocount): New global variable.
2277 (keys_of_cmds): Initialize it.
2278 (Fself_insert_command): Use it to combine upto 20 sequential chars
2279 into a single undo entry, just like the Qself_insert_command code in
2280 keyboard.c does.
2281 Call frame_make_pointer_invisible, also like the Qself_insert_command
2282 code in keyboard.c does.
2283 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2284 than its own local replacement for it.
2285
e267324c
KR
22862009-08-10 Ken Raeburn <raeburn@raeburn.org>
2287
1ac9108a 2288 * fns.c (concat): Don't re-set string length to its current value.
77437343 2289
1ac9108a
SM
2290 * coding.h (decode_coding_string, encode_coding_string):
2291 Use SBYTES macro.
f0bed503 2292
1ac9108a 2293 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2294 (doprnt): Merge with doprnt1, discarding lispstrings code.
2295 * lisp.h (doprnt_lisp): Don't declare.
2296
416e006d
JL
22972009-08-07 Juri Linkov <juri@jurta.org>
2298
2299 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2300
6f7d5780
DN
23012009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2302
2303 * print.c (syms_of_print): Undo previous change.
2304
f19a0f5b
TZ
23052009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2306
2307 * lread.c (read1, syms_of_lread): Read hashtables back from the
2308 readable format.
2309
2310 * print.c (print_preprocess, print_object): Print hashtables fully
2311 and readably.
2312 (syms_of_print): Provide 'hashtable-print-readable.
2313
b9173dc2
AR
23142009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2315
2316 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2317 no family set.
2318 (nsfont_open): Handle case when entity has no family.
2319
1586503c
AR
23202009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2321
2322 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2323 element, not a list, for match case.
2324
087048cd
KH
23252009-07-28 Kenichi Handa <handa@m17n.org>
2326
2327 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2328 rigidly.
2329
2330 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2331 font_parse_xlfd. Check font properties more rigidly.
2332
780c2506
DN
23332009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2334
31fd7c5c
JB
2335 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2336 bsd-common.h.
780c2506 2337
a8c0cc18
KH
23382009-07-27 Kenichi Handa <handa@m17n.org>
2339
2340 * xfaces.c (face_with_height): Call font_clear_prop.
2341
4fbe2306
CY
23422009-07-26 Chong Yidong <cyd@stupidchicken.com>
2343
111d9af3
CY
2344 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2345
2346 * xterm.c (x_term_init): Use Qx.
2347
4fbe2306
CY
2348 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2349
1ac9108a 2350 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2351 (ns_get_color): Revert 2009-07-16 change.
2352
beb0b7f9
EZ
23532009-07-25 Eli Zaretskii <eliz@gnu.org>
2354
2355 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2356 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2357
2baf5e76
KR
23582009-07-25 Ken Raeburn <raeburn@raeburn.org>
2359
1ac9108a
SM
2360 * coding.h (decode_coding_string, encode_coding_string):
2361 Use SCHARS macro.
8890e5f5 2362
2baf5e76 2363 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2364 (load_depth): Delete.
2baf5e76
KR
2365 (Qload_in_progress): New variable.
2366 (load_unwind): Don't reference load_depth or load_in_progress.
2367 (Fload): Likewise; specbind Qload_in_progress instead.
2368 (init_lread): Don't initialize load_depth.
2369 (syms_of_lread): Initialize and protect Qload_in_progress.
2370
1395c6f5
AR
23712009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2372
2373 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2374
4e2f36cf
AR
23752009-07-23 Yavor Doganov <yavor@gnu.org>
2376
2377 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2378
5dd9a6f7
AR
23792009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2380
2381 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2382 Bugs 3792, 3720, 2402.
2383 (ns_lookup_indexed_color): Check for bad index.
2384 (ns_index_color): Init unused slot to 0.
2385 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2386 Bug 3714, possibly 3082.
5dd9a6f7 2387
c902b920
JR
23882009-07-22 Jason Rumney <jasonr@gnu.org>
2389
1ac9108a
SM
2390 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2391 Position IME window at cursor (Bug#2570).
c902b920
JR
2392 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2393 (globals_of_w32fns): Dynamically load functions required above.
2394
2395 * w32term.c (w32_draw_window_cursor): Send message to reposition
2396 any IME window.
2397
090101cf
CY
23982009-07-21 Chong Yidong <cyd@stupidchicken.com>
2399
2400 * fileio.c: Revert 2009-07-16 changes.
2401 (Vauto_save_include_big_deletions): New variable.
2402 (Fdo_auto_save): Disable auto-save only if
2403 auto-save-include-big-deletions is nil.
2404
e6583e3d
CY
24052009-07-21 Chong Yidong <cyd@stupidchicken.com>
2406
2407 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2408 the overflowed pixels into account (Bug#3879).
2409
ece435a5
KR
24102009-07-21 Ken Raeburn <raeburn@raeburn.org>
2411
2412 * lread.c (load_depth): New variable.
2413 (Fload, load_unwind, init_lread): Set it to the load recursion
2414 depth; set load_in_progress as a simple boolean based on the
2415 current load_depth. (Bug#3892)
2416
40b2d973
AR
24172009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2418
2419 * nsfont.m (ns_has_attribute): Remove.
2420 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2421
10be7e0d
JL
24222009-07-18 Juri Linkov <juri@jurta.org>
2423
2424 * process.c (Fset_process_query_on_exit_flag): Mention killing
2425 a buffer in docstring.
2426
fa055055
KH
24272009-07-17 Kenichi Handa <handa@m17n.org>
2428
2429 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2430
042f7b69
YM
24312009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2432
2433 * nsfns.m (Fns_set_alpha): Remove function.
2434 (syms_of_nsfns): Don't defsubr it.
2435
2436 * nsterm.m (ns_get_color): Remove incompatible color formats.
2437 (ns_color_to_lisp): Generate #rrggbb color format string.
2438
4be941e3
RS
24392009-07-16 Richard Stallman <rms@gnu.org>
2440
2441 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2442 (Fset_buffer_auto_saved): Handle save_length = -2.
2443
4e6b227d
CY
24442009-07-16 Chong Yidong <cyd@stupidchicken.com>
2445
2446 * xterm.c (Qx_gtk_map_stock): New var.
2447
2448 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2449 of calling intern each time.
2450
a1856973
YM
24512009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2452
2453 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2454 does tiling.
2455
2456 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2457
497e54d8
KH
24582009-07-14 Kenichi Handa <handa@m17n.org>
2459
72d36834
KH
2460 * font.c (font_vconcat_entity_vectors): New function.
2461 (struct font_sort_data): New member font_driver_preference.
2462 (font_compare): Check font_driver_preference.
2463 (font_sort_entities): The format of the first argument changed.
2464 (font_delete_unmatched): Likewise.
2465 (font_list_entities): The return type changed.
2466 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2467 (font_find_for_lface): Adjuste for the above changes.
2468 Don't suppress the checking of C even if the repertory supports it.
2469 (Flist_fonts): Adjust for the above changes.
72d36834 2470
1ac9108a
SM
2471 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2472 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2473 Reject a font who has adstyle property that is different from a
2474 langname derived from registry property.
1ac9108a 2475 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2476
b6046155
EZ
24772009-07-13 Eli Zaretskii <eliz@gnu.org>
2478
2479 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2480 local copy of dirfilename.
2481
fb6b6049
KH
24822009-07-13 Kenichi Handa <handa@m17n.org>
2483
e2402a5e
KH
2484 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2485 against max_char.
2486
fb6b6049
KH
2487 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2488 calling XSYMBOL (sym).
2489
65156807
EZ
24902009-07-11 Eli Zaretskii <eliz@gnu.org>
2491
1ac9108a
SM
2492 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2493 New function.
2494 (directory_files_internal) [WINDOWSNT]:
2495 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2496 the filesystem of the directory is fast or slow.
2497
2498 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2499 file name.
2500 (is_slow_fs): New function.
2501 (stat): Use it to determine whether to issue more system calls to
2502 get accurate file attributes, when w32-get-true-file-attributes is
2503 `local'.
2504
e0ab5fcf
JD
25052009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2506
2507 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2508 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2509 parameter font-parameter as default to the font dialog.
2510
784ceded
KH
25112009-07-10 Kenichi Handa <handa@m17n.org>
2512
2513 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2514
fb8edc0b
EZ
25152009-07-09 Eli Zaretskii <eliz@gnu.org>
2516
1ac9108a 2517 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2518
fb8edc0b
EZ
2519 * w32.c (stat): Treat UNC file names as residing on remote
2520 drives. (Bug#3542)
2521
635c75b1
KH
25222009-07-09 Kenichi Handa <handa@m17n.org>
2523
2524 * fontset.c (fontset_find_font): Fix previous change.
2525
c1d5ce94
MA
25262009-07-08 Michael Albinus <michael.albinus@gmx.de>
2527
2528 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2529 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2530 error flag.
2531
edb61b39
KH
25322009-07-08 Kenichi Handa <handa@m17n.org>
2533
374bf7e4
KH
2534 * fontset.c (fontset_find_font): Fix the logic of handling
2535 charset_matched.
2536 (font_for_char): Delete unused var.
2537 (generate_ascii_font_name): Delete it.
2538
edb61b39
KH
2539 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2540
2541 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2542 (encode_coding_sjis): Fix the code range check.
2543
0f3f018c
CY
25442009-07-07 Chong Yidong <cyd@stupidchicken.com>
2545
2546 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2547 (Fexpand_file_name): Copy string data properly (Bug#3772).
2548
fcaf6f3a
JD
25492009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2550
2551 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2552 first MapNotify.
2553
6809ca75
KH
25542009-07-07 Kenichi Handa <handa@m17n.org>
2555
2556 * character.h (unibyte_has_multibyte_table): Delete extern.
2557 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2558
2559 * charset.c (Fset_charset_priority): Update charset_unibyte.
2560 (syms_of_charset): Initialize charset_unibyte.
2561
2562 * character.c (unibyte_has_multibyte_table): Delete it.
2563 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2564 charset_unibyte.
2565 (multibyte_char_to_unibyte_safe): Likewise.
2566 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2567
1ac9108a 2568 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2569 (x_produce_glyphs): Likewise.
2570
2571 * .gdbinit (xcharset): Fix the treating $arg0.
2572
ad9e2d54
EZ
25732009-07-04 Eli Zaretskii <eliz@gnu.org>
2574
2575 Emulation of `getloadavg' on MS-Windows.
2576 * w32.c: Include float.h
2577 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2578 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2579 (get_native_system_info, get_system_times): New functions.
2580 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2581 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2582 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2583 g_b_init_get_system_times, and num_of_processors.
2584
0a3472c7
JR
25852009-07-03 Jason Rumney <jasonr@gnu.org>
2586
2587 * w32term.c (w32_initialize): Use standard types.
2588
80904120
EZ
25892009-07-03 Eli Zaretskii <eliz@gnu.org>
2590
2591 * dired.c (Ffile_attributes): Decode user and group names by the
2592 locale's encoding. (Bug#3443)
2593
6978862d
DN
25942009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2595
f8d23104
DN
2596 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2597 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2598
2599 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2600
2601 * term.c (init_tty): Remove spurious #ifdef.
2602
6978862d
DN
2603 * m/mips.h: Mention this file is also used for netbsd.
2604 * m/pmax.h: Remove file.
2605
e044e4fc
JD
26062009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2607
2608 * xterm.h (struct x_display_info): Add invisible_cursor.
2609 (struct x_output): Add current_cursor.
2610
2611 * xterm.c (XTtoggle_invisible_pointer): New function.
2612 (x_define_frame_cursor): Don't define cursor if invisible or the
2613 same as before. Set current_cursor.
2614 (x_create_terminal): Set toggle_invisible_pointer_hook.
2615
2616 * xfns.c (make_invisible_cursor): New function.
2617 (x_set_mouse_color): Call make_invisible_cursor.
2618 Set current_cursor.
2619 (x_window): Set current_cursor.
2620
2621 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2622
2623 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2624 inserting a character.
2625 (read_avail_input): Call frame_make_pointer_visible.
2626
2627 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2628 (frame_make_pointer_invisible, frame_make_pointer_visible):
2629 New functions.
e044e4fc
JD
2630 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2631
2632 * frame.h: Declare frame_make_pointer_invisible and
2633 frame_make_pointer_visible.
2634 (struct frame): Add pointer_invisible.
2635
574c8efa
JD
26362009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2637
7b507248
JD
2638 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2639 frame isn't visible.
2640 (xg_frame_resized): If width/height is -1, get size of window
2641 from X server.
2642
2643 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2644 for MapNotify.
2645
835bdaa7 2646 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2647 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2648 (flush_and_sync): Reintroduce.
574c8efa 2649
3f1c6666 26502009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2651
31fd7c5c 2652 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2653
2654 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2655 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2656
2657 * frame.h: Declare Qsticky.
2658
cad9ef74
JD
2659 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2660
2661 * nsfns.m (ns_frame_parm_handlers): Ditto.
2662
2663 * frame.c: Declare Qsticky.
2664 (frame_parms): Add sticky.
2665
2666 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2667
2668 * xterm.h: Declare x_set_sticky.
2669
2670 * xterm.c (x_set_sticky): New function.
2671
69b16610
JD
2672 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2673 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2674 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2675
2676 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2677
2678 * frame.c: Qmaximized is new.
2679 (x_set_frame_parameters): Do not handle fullscreen specially.
2680 Only set width and height if explicitly set.
2681 (x_set_fullscreen): Handle Qmaximized.
2682 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2683 (syms_of_frame): Initialize Qmaximized.
2684
1ac9108a
SM
2685 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2686 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2687
2688 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2689 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2690 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2691 set gravity to NorthWestGravity when USE_GTK.
2692 (set_wm_state): New function.
31fd7c5c 2693 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2694 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2695 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2696 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2697 to x_real_positions and x_fullscreen_adjust.
2698
2699 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2700 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2701 flush_and_sync.
2702 (xg_height_changed): New function.
2703 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2704 and gtk_window_set_policy. Set frame gravity after parsing the
2705 geometry string.
3f1c6666
JD
2706 (xg_update_frame_menubar, free_frame_menubar)
2707 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2708 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2709 Remove calls to xg_frame_set_char_size.
2710
fd503d99
KH
27112009-07-01 Kenichi Handa <handa@m17n.org>
2712
2713 * keyboard.c (decode_keyboard_code): New function.
2714 (tty_read_avail_input): Decode the input bytes if necessary.
2715
1ac9108a
SM
2716 * coding.c (setup_coding_system):
2717 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2718 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2719 use Qno_conversion.
2720
24ed93fb
YM
27212009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2722
2723 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2724
99061dfc
CY
27252009-06-30 Chong Yidong <cyd@stupidchicken.com>
2726
1ac9108a 2727 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2728
ff90fbde
JR
27292009-06-30 Jason Rumney <jasonr@gnu.org>
2730
2731 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2732 is already loaded.
2733 Set user model ID if supported (bug#1849).
2734
5f445726
JM
27352009-06-29 Jim Meyering <meyering@redhat.com>
2736
2737 Remove useless if-before-xfree test.
2738 * nsfont.m (nsfont_close): Remove useless test.
2739 * term.c (delete_tty): Likewise.
2740 * w32.c (system_process_attributes): Likewise.
2741 * w32font.c (w32font_close): Likewise.
2742 * xfaces.c (x_free_gc): Likewise.
2743 * xselect.c (buffer): Likewise.
2744
b9607587
AS
27452009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2746
2747 * process.c (send_process): Keep decoded string in a local
2748 variable and protect it from GC. (Bug#3521)
2749
89ba96f4
EZ
27502009-06-28 Eli Zaretskii <eliz@gnu.org>
2751
2752 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2753 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2754
098a1589
CY
27552009-06-28 Chong Yidong <cyd@stupidchicken.com>
2756
485422be
CY
2757 * xdisp.c (start_display, handle_face_prop)
2758 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2759 (redisplay_window, try_window_id, produce_image_glyph):
2760 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2761
098a1589
CY
2762 * xterm.c (x_update_window_begin, x_new_focus_frame)
2763 (x_scroll_bar_handle_click, handle_one_xevent)
2764 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2765 (x_make_frame_visible, x_make_frame_invisible)
2766 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2767 code chunks that are now obsolete.
2768
78c38319
MA
27692009-06-28 Michael Albinus <michael.albinus@gmx.de>
2770
2771 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2772 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2773 for hours, when optimzation is enabled.
2774 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2775 (xd_read_message): Make them static.
2776
4189ed40
CY
27772009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2778
2779 * term.c (turn_on_face): Allow simultaneously bold and dim
2780 terminal faces (Bug#3530).
2781
cd9b5e16
CY
27822009-06-27 Chong Yidong <cyd@stupidchicken.com>
2783
4e23bedb
CY
2784 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2785
cd9b5e16
CY
2786 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2787 truncation glyphs (Bug#3686).
2788
07cc3c35
GM
27892009-06-27 Glenn Morris <rgm@gnu.org>
2790
2791 * m/pmax.h: Restore file, with only netbsd portions.
2792
31fd7c5c 27932009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2794
cd9b5e16 2795 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2796
42d4a64f
KH
27972009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2798
2799 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2800 the arg FORCE_SYMBOL.
2801
930fe55b 28022009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2803
2804 * fontset.c (fontset_find_font): When a usable rfont_def is found
2805 in a fallback font-group, make it the first element of the group.
2806
57ebc3fd
CY
28072009-06-24 Chong Yidong <cyd@stupidchicken.com>
2808
2809 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2810
f084f942
KH
28112009-06-24 Kenichi Handa <handa@m17n.org>
2812
2813 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2814 set for C.
2815 (fontset_font): Record the availability of a font for C both in
2816 the realized fontsets of the current one and the default one.
2817
2f686c87
DN
28182009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2819
2820 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2821 conditional, it is always defined on AIX.
2822
666e158e
MB
28232009-06-23 Miles Bader <miles@gnu.org>
2824
2825 * window.c (Vrecenter_redisplay): New variable.
2826 (syms_of_window): Initialize it.
2827 (Qtty): New extern declaration.
2828 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2829
c6da7cd2
JM
28302009-06-23 Jim Meyering <meyering@redhat.com>
2831
1ac9108a
SM
2832 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2833 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2834 pointer dereferences are guaranteed to be valid.
c6da7cd2 2835
678dca3d
KH
28362009-06-23 Kenichi Handa <handa@m17n.org>
2837
74d75424
KH
2838 * emacs.c (main): Call init_font ().
2839
2840 * font.h (Vfont_log): Extern it.
2841 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2842
2843 * font.c (font_sort_entities, font_list_entities)
2844 (font_matching_entity, font_open_entity)
2845 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2846 (Vfont_log): Delete static.
2847 (font_log_env_checked): Delete this variable.
2848 (font_add_log): Don't check font_log_env_checked.
2849 (font_deferred_log): Check Vfont_log.
2850 (init_font): New function.
2851
678dca3d
KH
2852 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2853
2854 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2855
2856 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2857
2858 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2859
2860 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2861 (face_for_char): Don't call font_deferred_log here.
2862 (font_for_char): Likewise.
2863
8a668709
CY
28642009-06-22 Chong Yidong <cyd@stupidchicken.com>
2865
9a01ee33
CY
2866 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2867 rather than its background_width for drawing the overline and
2868 underline (Bug#489).
2869
2870 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2871 rather than its background_width for drawing the overline and
2872 underline (Bug#489).
ec7c9926
CY
2873 (xg_default_icon_file): New variable.
2874 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2875 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2876
8a668709
CY
2877 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2878 (load_overlay_strings): Remove externs.
2879 (fast_find_position): Function deleted.
2880 (mouse_face_from_buffer_pos): New function, based on
2881 fast_find_position. Correctly handle before-strings,
2882 display-strings, and after-strings (Bug#1220).
2883 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2884
4d4c02d8
CY
28852009-06-21 Chong Yidong <cyd@stupidchicken.com>
2886
1ac9108a 2887 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2888 (move_it_in_display_line_to, move_it_in_display_line_to)
2889 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2890
70243478
CY
28912009-06-21 Chong Yidong <cyd@stupidchicken.com>
2892
2893 * Branch for 23.1.
2894
13087e59
JR
28952009-06-21 Jason Rumney <jasonr@gnu.org>
2896
2897 * w32term.c (keyboard_codepage): New static variable.
2898 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2899 (w32_read_socket) [WM_CHAR]: Use it to decode character
2900 input (bug#3237).
2901 (w32_initialize): Initialize it.
2902 (codepage_for_locale): New function.
2903
4735b74e
KR
29042009-06-20 Ken Raeburn <raeburn@raeburn.org>
2905
2906 * process.c (status_message): Pass Faset index argument as a lisp
2907 object, so as to work with USE_LISP_UNION_TYPE.
2908
0e727afa
YM
29092009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2910
2911 * coding.c (Ffind_coding_systems_region_internal):
2912 Cache checked characters.
2913
cf299835
KH
29142009-06-18 Kenichi Handa <handa@m17n.org>
2915
1ac9108a 2916 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2917
90f20d94
AS
29182009-06-18 Andreas Schwab <aschwab@redhat.com>
2919
2920 * xdisp.c (redisplay_internal): Check that the frame is still
2921 live after redisplay of its windows.
2922 (redisplay_windows): Check that the window is still live.
2923
7f1faf1c
KH
29242009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2925
2926 * coding.c (detect_coding_utf_16): Fix previous change.
2927
cc13543e
KH
29282009-06-16 Kenichi Handa <handa@m17n.org>
2929
2930 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2931 UTF-16 by checking the dispersion of Eth and Oth bytes.
2932
977b85f4
AS
29332009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2934
2935 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2936
66bd43d1
KH
29372009-06-15 Kenichi Handa <handa@m17n.org>
2938
2939 * process.c (status_message): Fix previous change. Be sure to
2940 decode a localized string.
2941
cb5ca9c5
YM
29422009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2943
2944 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2945 add comment explaining why.
2946
ec7709ba 29472009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2948
ec7709ba 2949 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2950
4b7f335c
AR
29512009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2952
2953 * nsfont.m (ns_attribute_value): Remove.
2954 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2955 (ns_has_attribute): Shrink the normal range.
2956 (ns_findfonts): Don't worry about requested spec in determining
2957 need for synthItal.
e41820ee 2958 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2959
73b26103
SZ
29602009-06-14 Seiji Zenitani <zenitani@mac.com>
2961
2962 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2963
5753e4da
KH
29642009-06-11 Kenichi Handa <handa@m17n.org>
2965
2966 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2967 overhang for the static composition case.
2968
3561b671
KH
29692009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2970
5753e4da
KH
2971 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2972 overhang for the automatic composition case.
2973
3561b671
KH
2974 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2975 composition case.
2976
852bbd41
CY
29772009-06-10 Chong Yidong <cyd@stupidchicken.com>
2978
2979 * xdisp.c (get_next_display_element): When handling wrap-prefix
2980 and line-prefix, treat \n as a control character (bug#3502).
2981
9903d1e6
KH
29822009-06-10 Kenichi Handa <handa@m17n.org>
2983
2984 * font.c (font_parse_family_registry): Fix for one-char foundry.
2985 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2986
0bcbaaaa
CY
29872009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2988
2989 * process.c (status_message): Fix handling of multibyte signal
2990 string (Bug#3499).
2991
40aa3f13
JM
29922009-06-09 Jim Meyering <meyering@redhat.com>
2993
1f80c7e2
CY
2994 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2995 color name is missing.
40aa3f13 2996
72d51285
KH
29972009-06-09 Kenichi Handa <handa@m17n.org>
2998
2999 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3000 FROM-CODE and TO-CODE are codepoints of CHARSET.
3001
c1d04d84
AR
30022009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3003
3004 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3005
30062009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3007
3008 Changes to support :script/:lang/:otf in NS font driver.
3009 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3010 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3011 indicate not part of font driver interface, and change callers.
3012 (ns_get_family): Remove pointless null check.
3013 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3014 ns_spec_to_descriptor, ns_descriptor_to_entity.
3015 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3016 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3017 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3018 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3019 (ns_get_req_script, ns_accumulate_script_ranges)
3020 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3021 New functions.
3022 (nsfont_list, nsfont_match): Use ns_findfonts.
3023 (nsfont_open): Use font descriptor instead of traits.
3024 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3025 (dump_glyphstring): Rename to ns_dump_glyphstring.
3026
c7eb9816
AR
3027 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3028
c1d04d84
AR
3029 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3030
3031 * fontset.c (fontset_from_font): Remove NS-specific code.
3032
ec7709ba 30332009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3034
3035 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3036 nonactive windows.
3037
31fd7c5c 30382009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3039
1ac9108a 3040 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3041
68852c13 30422009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3043
3044 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3045
6756cd1d
CY
30462009-06-07 Chong Yidong <cyd@stupidchicken.com>
3047
3048 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3049 account for the overflowing of newlines into the last glyph on the
3050 display line (Bug#3482).
3051
28bf482a
DR
30522009-06-05 David Reitter <david.reitter@gmail.com>
3053
ec7709ba
JB
3054 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3055 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3056 Fns_selection_exists_p, Fns_selection_owner_p.
3057
fdb55376
JR
30582009-06-03 Jason Rumney <jasonr@gnu.org>
3059
3060 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3061 available. (Bug#3379)
3062
05129fbe
KH
30632009-05-29 Kenichi Handa <handa@m17n.org>
3064
1ac9108a
SM
3065 * coding.c (get_translation_table):
3066 Check Venable_character_translation.
05129fbe 3067
ec7709ba 30682009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3069
ec7709ba
JB
3070 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3071 (x_make_frame_visible): Move frame to front rather than calling
15891144 3072 ns_raise_frame().
ec7709ba 3073 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3074 isn't key window.
ec7709ba 3075 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3076 drawRect may be called by NSView even if the frame is hidden.
3077
ec7709ba
JB
3078 * nsfns.m (Fx_create_frame): Follow other ports in
3079 determining visibility; default to t. Ensure async_visible is set.
15891144 3080
21f73755
EZ
30812009-05-23 Eli Zaretskii <eliz@gnu.org>
3082
3083 * dired.c (Ffile_attributes): Doc fix.
3084
34001e41
CY
30852009-05-22 Chong Yidong <cyd@stupidchicken.com>
3086
3087 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3088
46306a17
SM
30892009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3090
3091 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3092 and xfont_scratch_props.
3093 (syms_of_xfont): Do it here instead.
3094 (xfont_find_ccl_program): Delete, unused.
3095 (xfont_open): Delete unused var `i'.
3096
ef6e0694
KH
30972009-05-21 Kenichi Handa <handa@m17n.org>
3098
3099 * fontset.c (Qlatin): Don't make it static.
3100
46306a17
SM
3101 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3102 New functions.
ef6e0694
KH
3103 (xfont_scripts_cache, xfont_scratch_props): New variables.
3104 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3105 (xfont_list_pattern): Argument changed. Callers changed.
3106 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3107 (xfont_list): Don't reject a font spec with :script property.
3108 (xfont_has_char): Fix setting of encoding.
3109 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3110 xfont_scratch_props.
3111
31122009-05-19 Kenichi Handa <handa@m17n.org>
3113
46306a17 3114 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3115 Callers changed.
3116
31172009-05-18 Kenichi Handa <handa@m17n.org>
3118
3119 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3120
ac71ced7
SM
31212009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3122
3123 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3124 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3125
1c6d1051
YM
31262009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3127
3128 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3129 (x_delete_terminal): Dissociate resource database from display and
3130 then call XrmDestroyDatabase before closing display.
3131
9b9b779c
AR
31322009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3133
3134 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3135 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3136 whether selected frame is viable before raising it (based on patch
3137 by David Reitter), and improve commentary.
3138 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3139
cccd42d5
KH
31402009-05-15 Kenichi Handa <handa@m17n.org>
3141
3142 * font.c (Ffont_spec): Check arguments.
3143
337fbd17
CY
31442009-05-14 Chong Yidong <cyd@stupidchicken.com>
3145
3146 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3147 weight when testing attributes (Bug#3282).
3148
47a6002f
JD
31492009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3150
3151 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3152 what we expect to get in the next ConfigureNotify event.
3153
9cb363db
YM
3154 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3155 before Xft one (Bug#1696).
3156
b9126609
CY
31572009-05-07 David Reitter <david.reitter@gmail.com>
3158
3159 * nsfns.m (Fx_display_planes): Compute bitplanes using
3160 NSBitsPerPixelFromDepth (Bug#3207).
3161
27a69fd9
CY
31622009-05-10 Chong Yidong <cyd@stupidchicken.com>
3163
3164 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3165
00f37552
TTN
31662009-05-10 Ulrich Mueller <ulm@gentoo.org>
3167
3168 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3169
2d82a920
DR
31702009-05-07 David Reitter <david.reitter@gmail.com>
3171
ec7709ba
JB
3172 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3173 Respect mouse face background.
2d82a920 3174
46b0d52d
DR
31752009-05-07 David Reitter <david.reitter@gmail.com>
3176
ec7709ba
JB
3177 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3178 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3179 in ns_update_begin and ns_update_end.
3180
ce1b23bb
SM
31812009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3182
5996e1b7
SM
3183 * nsfns.m (ns_get_screen): Rewrite.
3184 Don't presume selected-frame is of type `ns'.
3185
ba98e3a0
SM
3186 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3187 all drivers.
3188
ce1b23bb
SM
3189 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3190
bcda200f
YM
31912009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3192
3193 * keyboard.h (add_user_signal): Fix typo in extern.
3194
3195 * lisp.h (add_user_signal): Remove extern.
3196
3197 * unexelf.c (unexec): Consider a section to precede the .bss section
3198 if its addresses overlap that of .bss.
3199 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3200 instead of dumping process.
3201
864660a2
SM
32022009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3203
3204 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3205
50da4e56
SM
32062009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3207
3208 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3209
51520a1a
DN
32102009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3211
3212 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3213 any statements.
3214
409ea3a1
AS
32152009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3216
59c4c60f
AS
3217 * process.c (read_process_output): Make sure the current buffer is
3218 always restored.
3219
409ea3a1
AS
3220 * coding.c (record_conversion_result): Don't modify
3221 Vlast_code_conversion_error for successful result.
3222 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3223
56f00ed2
KH
32242009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3225
3226 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3227 (load_charset_map): Remove unnecessary code.
56f00ed2 3228
4491c9d2
DR
32292009-04-30 David Reitter <david.reitter@gmail.com>
3230
35f5b128 3231 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3232 through f24.
3233
6970f632
CY
32342009-04-30 Chong Yidong <cyd@stupidchicken.com>
3235
3236 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3237
3238 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3239 face_at_buffer_position.
3240 (face_before_or_after_it_pos, get_next_display_element)
3241 (note_mouse_highlight): Update face_at_buffer_position call.
3242
3243 * term.c (term_mouse_highlight):
3244 * msdos.c (IT_note_mouse_highlight):
3245 * fontset.c (Finternal_char_font):
35f5b128 3246 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3247
3248 * dispextern.h (face_at_buffer_position): Update prototype.
3249
0c616f63
KH
32502009-04-30 Kenichi Handa <handa@m17n.org>
3251
35f5b128 3252 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3253
ad3aaf33
AS
32542009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3255
3256 * callproc.c (Fcall_process): Fix GC protection. Make sure
3257 current buffer is always restored.
3258
c3c963a0
YM
32592009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3260
3261 * atimer.c (init_atimer): Also clear stopped_atimers.
3262
3263 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3264
7e3386cb
YM
3265 * process.c (create_process): Clean up merger residues of
3266 2008-07-17 change.
3267
91f68422
CY
32682009-04-29 Ulrich Mueller <ulm@gentoo.org>
3269
3270 * lread.c (Vread_circle): New variable.
3271 (read1): Disable recursive read if Vread_circle is nil.
3272
24b34550
KH
32732009-04-29 Kenichi Handa <handa@m17n.org>
3274
3275 * fontset.h (set_default_ascii_font): Delete extern.
3276
3277 * fontset.c (set_default_ascii_font): Delete this unused function.
3278
3279 * frame.c (x_set_font): When ARG is a font-object, check if the
3280 font-object matches with the ASCII font-spec of the frame's
9c358bda 3281 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3282
77bf07e1
AS
32832009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3284
3285 * fns.c (Flocale_info): Protect vector from GC during decoding.
3286
3287 * process.c (Fstart_process): Protect argv strings from GC during
3288 encoding.
3289
2c55aacf
AS
32902009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3291
3292 * sysdep.c: Include <ctype.h>.
3293
b892d3c9
DR
32942009-04-27 David Reitter <david.reitter@gmail.com>
3295
35f5b128 3296 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3297 Remove commented-out code.
3298
9d0644c4
JB
32992009-04-26 Johan Bockgård <bojohan@gnu.org>
3300
3301 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3302
b7053016
JR
33032009-04-25 Jason Rumney <jasonr@gnu.org>
3304
3305 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3306
4e8231f3
YM
33072009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3308
3309 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3310 Swap bytes in short integer if fringe bitmap width > 8.
3311
493dcf2c
KH
33122009-04-23 Kenichi Handa <handa@m17n.org>
3313
3314 * xfaces.c (Fx_list_fonts): If a font size is specified in
3315 PATTERN, set it in returned scalable fonts.
3316
401e9e57
CY
33172009-04-22 Chong Yidong <cyd@stupidchicken.com>
3318
708e05dc
CY
3319 * keyboard.c (Fset_input_meta_mode): Doc fix.
3320
3321 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3322
1ac9108a 3323 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3324
3325 * coding.c (Fterminal_coding_system): Doc fix.
3326
3327 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3328 (Fx_display_pixel_height, Fx_display_planes)
3329 (Fx_display_color_cells, Fx_server_max_request_size)
3330 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3331 (Fx_display_mm_height, Fx_display_mm_width)
3332 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3333 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3334 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3335 (check_x_display_info): Handle terminal objects instead of
3336 terminal ids.
3337
401e9e57
CY
3338 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3339 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3340 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3341 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3342
df80c7f0
KH
33432009-04-21 Kenichi Handa <handa@m17n.org>
3344
5a8f12af 3345 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3346 (font_score): Check AVGWIDTH too.
908567ef 3347
df80c7f0
KH
3348 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3349 worst case.
1ac9108a
SM
3350 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3351 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3352
705af33f
JR
33532009-04-19 Jason Rumney <jasonr@gnu.org>
3354
3355 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3356 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3357
3358 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3359 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3360 get_phys_cursor_geometry.
3361
b71ac3dd 3362 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3363 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3364 using get_phys_cursor_geometry.
3365
3366 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3367 correctly calculated.
3368
dc2933eb
JD
33692009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3370
1ac9108a
SM
3371 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3372 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3373 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3374 is deprecated.
3375
973e7849
AS
33762009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3377
3378 * font.c (font_put_frame_data): Use xfree instead of free.
3379
314d66f4
JB
33802009-04-17 Juanma Barranquero <lekktu@gmail.com>
3381
3382 * w32font.c (Qja, Qko): Remove declarations.
3383 (syms_of_w32font): Don't DEFSYM them.
3384
cf702558
CY
33852009-04-17 Chong Yidong <cyd@stupidchicken.com>
3386
3387 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3388
3389 * font.h (Qja, Qko): Extern them.
3390
3391 * ftfont.c (Qja, Qko): Remove declarations.
3392
3393 * xfont.c (Qja, Qko): Remove declarations.
3394
b50504f5
KH
33952009-04-17 Kenichi Handa <handa@m17n.org>
3396
bde25748
KH
3397 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3398 string from a vector to handle Latin-1 characters correctly.
3399
b50504f5
KH
3400 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3401 entity even if the cache hits.
3402
f4646fff
AS
34032009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3404
3405 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3406 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3407
e7deaab0
AS
3408 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3409 * lisp.h: Adjust prototypes.
3410
0a0e7d49
CY
34112009-04-16 Chong Yidong <cyd@stupidchicken.com>
3412
3413 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3414 change (Bug#3003).
3415
3c908a57
KH
34162009-04-16 Kenichi Handa <handa@m17n.org>
3417
1ac9108a 3418 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3419
3420 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3421 adstyle.
3422
3423 * ftfont.c (Qja, Qko): Don't make them static.
3424 (enum ftfont_cache_for): New enum.
3425 (fc_charset_table): Undo the previous change.
3426 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3427 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3428 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3429 non-scarable font, try to get AVERAGE_WIDTH.
3430 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3431 Change ft_face_cache from a list of a hash-table. Don't check
3432 `ja' and `ko' adstyle here.
3433 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3434 FTFONT_CACHE_FOR_CHARET.
3435 (ftfont_get_charset): Undo the previous change.
1ac9108a 3436 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3437 (ftfont_close): Likewise.
3438 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3439
3440 * font.c (font_sort_entites): Change the meaning of the arg
3441 BEST-ONLY. Don't optimize for VEC of lenght 1.
3442 (font_select_entity): Just return the value of font_sort_entites.
3443
3444 * xfaces.c (merge_face_vectors): Reflect font properties in
3445 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3446 font_clear_prop if a face attribute doesn't change.
3447
3c908a57
KH
3448 * charset.h (charset_ksc5601): Extern it.
3449
3450 * charset.c (charset_ksc5601): New variable.
3451 (Fdefine_charset_internal): Set charset_ksc5601.
3452 (init_charset_once): Initialize charset_ksc5601 to -1.
3453
d65859c3
DN
34542009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3455
3456 * fileio.c (history_delete_duplicates): Remove unused declaration.
3457
3458 * callint.c (history_delete_duplicates): New declaration.
3459 (Fcall_interactively): Remove command history duplicates when
3460 history_delete_duplicates is true.
3461
3ba010e5
EZ
34622009-04-14 Eli Zaretskii <eliz@gnu.org>
3463
3464 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3465
06f19b91
KH
34662009-04-14 Kenichi Handa <handa@m17n.org>
3467
3468 * font.c (Ffont_info): Fix docstring. Fix the second element of
3469 the returned value (bug#2949).
3470
2cce8bfc
CY
34712009-04-14 Chong Yidong <cyd@stupidchicken.com>
3472
3473 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3474
d156542d
KH
34752009-04-14 Kenichi Handa <handa@m17n.org>
3476
3477 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3478 encoding charset is ascii_compatible.
3479
3480 * charset.c (Fdefine_charset_internal): Make charset
3481 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3482 code_offset is 0, and covers all ASCII characters.
3483
86fa089e
SM
34842009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3485
3486 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3487 (ns_string_to_pasteboard_internal):
3488 * nsmenu.m (process_dialog):
3489 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3490 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3491 * lisp.h (Fx_load_color_file): Declare.
3492
a8a3728b
KH
34932009-04-13 Kenichi Handa <handa@m17n.org>
3494
1ac9108a 3495 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3496 (font_select_entity): Suppress the code to optimize for the same
3497 kind of fonts.
3498 (font_load_for_lface): Get a font that supports at least ASCII
3499 characters.
3500
3501 * ftfont.c (Qja, Qko): New variables.
3502 (fc_charset_table): Delete uniquifier data for iso8859-1.
3503 (ftfont_get_latin1_charset): New function.
3504 (get_adstyle_property): New function.
3505 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3506 bitmap fonts.
3507 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3508 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3509 `ko' or `ja'.
3510 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3511 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3512 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3513 property.
3514 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3515 (syms_of_ftfont): DEFSYM Qja and Qko.
3516
483670b5
KH
35172009-04-09 Kenichi Handa <handa@m17n.org>
3518
12b55765
KH
3519 * charset.c (map_charset_chars): For a charset of `superset'
3520 method, fix calculation of code range.
3521
483670b5
KH
3522 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3523 from the list of extra properties.
3524 (font_clear_prop): Be sure to delete `:name' font property.
3525
57d3b93b
KH
35262009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3527
b4b2c2ca
YM
3528 * dispnew.c (redraw_overlapping_rows): Fix detection of
3529 overlapping for topmost and bottommost rows.
3530
1ac9108a 3531 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3532
472c3609
JR
35332009-04-06 Jason Rumney <jasonr@gnu.org>
3534
3535 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3536
ab193662
KH
35372009-04-06 Kenichi Handa <handa@m17n.org>
3538
3539 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3540
3541 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3542
0c26f026
KH
35432009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3544
3545 * ftfont.c (ftfont_open): Fix checking of the return value of
3546 FT_Load_Char. Fix setting font->underline_thickness.
3547
e173bbce
CY
35482009-04-04 Chong Yidong <cyd@stupidchicken.com>
3549
3550 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3551 (Fterminal_parameters, Fterminal_parameter)
3552 (Fset_terminal_parameter): In doc string, refer to terminal
3553 objects rather than terminal ids.
3554
693a2698
EZ
35552009-04-04 Eli Zaretskii <eliz@gnu.org>
3556
3557 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3558 ret_lim_data. (Bug#2867)
3559
d5221487
CY
35602009-04-03 Chong Yidong <cyd@stupidchicken.com>
3561
3562 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3563 so they don't get wider than the window, matching 2006-01-23
3564 change to the partner function in xdisp.c (Bug#2800).
3565
223509a3
KH
35662009-04-03 Kenichi Handa <handa@m17n.org>
3567
3568 * print.c (print_object): Make each lowest sub_char_table start a
3569 new line (Bug#2866).
3570
74fcd0b1
KH
35712009-04-02 Kenichi Handa <handa@m17n.org>
3572
3573 * fontset.c (fontset_font): Record no-font when a fontset
3574 explicitly tells not to try another font-specs.
3575
c542407d
SM
35762009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3577
3578 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3579
e3869731
KH
35802009-03-30 Kenichi Handa <handa@m17n.org>
3581
d8d2f142
KH
3582 * fontset.c (fontset_from_font): Specify only registry in a
3583 font-spec for all characters supported by that registry.
3584
e3869731
KH
3585 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3586 even if HAVE_M17N_FLT is not defined.
3587
5da5f805
CY
35882009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3589
3590 * ftfont.c: Conditionalize prototyping and use of
3591 ftfont_variation_glyphs.
3592
ab226c50
SM
35932009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3594
9628fed7
SM
3595 * frame.c (delete_frame): Work around compiler bug.
3596
3597 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3598 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3599 Some more EMACS_INT.
3600 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3601
3602 * xdisp.c (dump_glyph): Fix typo.
3603
ae19ba7c
SM
3604 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3605 (adjust_markers_gap_motion, adjust_markers_for_delete)
3606 (adjust_markers_for_insert, adjust_point)
3607 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3608 (make_gap, copy_text, count_size_as_multibyte, insert)
3609 (insert_and_inherit, insert_before_markers)
3610 (insert_before_markers_and_inherit, insert_1)
3611 (count_combining_before, count_combining_after, insert_1_both)
3612 (insert_from_string, insert_from_string_before_markers)
3613 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3614 (insert_from_buffer_1, adjust_after_replace)
3615 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3616 (replace_range_2, del_range, del_range_1, del_range_byte)
3617 (del_range_both, del_range_2, modify_region)
3618 (prepare_to_modify_buffer, signal_before_change)
3619 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3620 for buffer positions and sizes.
3621 * lisp.h: Adjust prototypes accordingly.
3622
3623 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3624 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3625 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3626
ab226c50
SM
3627 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3628
46dfb8fb
JD
36292009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3630
3631 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3632 lines and columns so we keep the same pixel height and width.
3633
3634 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3635 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3636 (x_handle_net_wm_state): New function to update frame parameter
3637 fullscreen.
3638 (x_term_init): Initialize atoms for _NET_WM_STATE.
3639
3640 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3641
d347e494
SM
36422009-03-27 Kevin Ryde <user42@zip.com.au>
3643
3644 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3645 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3646 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3647 (Fgpm_mouse_stop): Pass that new parameter.
3648 * termhooks.h (close_gpm): Adjust prototype.
3649
84db11d6
SM
36502009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3651
c95a5008
SM
3652 * lisp.h (Fx_focus_frame): Declare.
3653
84db11d6
SM
3654 * callint.c (Fcall_interactively): For '^' just delegate the work to
3655 handle-shift-selection.
3656 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3657
0a1958d6
CY
36582009-03-24 Chong Yidong <cyd@stupidchicken.com>
3659
0bfdff23
CY
3660 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3661
0a1958d6
CY
3662 * data.c (Qinteractive_form): New variable.
3663 (Finteractive_form): Use it.
3664
3665 * eval.c (Fcommandp): Use Qinteractive_form.
3666
58aec0d6
JR
36672009-03-24 Jason Rumney <jasonr@gnu.org>
3668
3669 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3670 Calculate total size precisely. Decode environment variables
3671 before substituting. (Bug#38)
3672
553dd618
KH
36732009-03-24 Kenichi Handa <handa@m17n.org>
3674
3675 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3676 encoding (Bug#2722).
553dd618 3677
c39ea606
JD
36782009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3679
3680 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3681 that gdpy is set.
3682
bc9b2b5e
AM
36832009-03-22 Alan Mackenzie <acm@muc.de>
3684
3685 * callint.c (Finteractive): Clarify the doc string - even
3686 promptless elements need \n separators.
3687
9f995a76
JR
36882009-03-22 Jason Rumney <jasonr@gnu.org>
3689
3690 * w32term.c (syms_of_w32term): Doc fix for
3691 x-use-underline-position-properties.
3692
22749e9a
EZ
36932009-03-21 Eli Zaretskii <eliz@gnu.org>
3694
3695 * w32.c (getpwuid): Change argument type to unsigned.
3696 (struct w32_id): Change type of `rid' member to unsigned.
3697 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3698 argument ID to unsigned. All callers changed.
3699 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3700
e00553bf
EZ
37012009-03-20 Eli Zaretskii <eliz@gnu.org>
3702
3703 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3704 negative, produce a float value.
3705
3706 * dired.c (make_uid, make_gid): New functions.
3707 (Ffile_attributes): Use them to avoid negative UID and GID.
3708
f761d6b6
JB
37092009-03-20 Juanma Barranquero <lekktu@gmail.com>
3710
3711 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3712 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3713 Fix typos in docstrings.
3714
d507f8d7
KH
37152009-03-19 Kenichi Handa <handa@m17n.org>
3716
3717 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3718 changed, use font_load_for_lface to get a new font object.
3719 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3720
3721 * frame.c (x_set_font): Handle the case that ARG is a cons.
3722
c68845e0
GM
37232009-03-19 Glenn Morris <rgm@gnu.org>
3724
3725 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3726
bfa49dd1
CY
37272009-03-19 Chong Yidong <cyd@stupidchicken.com>
3728
3729 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3730
8458d4c1
KH
37312009-03-19 Kenichi Handa <handa@m17n.org>
3732
3733 * charset.c (load_charset_map_from_file): When a mapfile can't be
3734 loaded, signal an error.
3735
78e7d1fe
EZ
37362009-03-18 Eli Zaretskii <eliz@gnu.org>
3737
3738 * dired.c (Ffile_attributes): Make sure UID and GID are always
3739 positive, even if the value is too large for a positive EMACS_INT.
3740 Doc fix.
3741
3742 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3743
5da9fdfa
YM
37442009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3745
3746 * xmenu.c (xdialog_show): Move Fredisplay call ...
3747 (Fx_popup_dialog): ... here.
3748
7519c40d
SM
37492009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3750
3751 * dired.c (file_name_completion): Disable the first optimization just
3752 installed, since it is not implemented correctly.
3753
2cd298e2
SM
37542009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3755
3756 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3757 only if the entry can affect bestmatch.
2cd298e2
SM
3758 Stop the search early, as Ftry_completion already does.
3759
48d37adf
CY
37602009-03-17 Chong Yidong <cyd@stupidchicken.com>
3761
e10c9c93 3762 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3763
9286b16a
CY
37642009-03-15 Chong Yidong <cyd@stupidchicken.com>
3765
3766 * keyboard.c (parse_menu_item): Don't display remappings as menu
3767 equivalent bindings (Bug#788).
3768
f7b146dc
JR
37692009-03-15 Jason Rumney <jasonr@gnu.org>
3770
3771 * w32term.h (WM_EMACS_PAINT): New message.
3772 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3773 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3774 before passing to lisp thread. (Bug#950)
3775
f761d6b6 37762009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3777
d93f9575
CY
3778 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3779 variable as it was never reset.
3780 (ns_term_init): Remove initialization of Lisp-settable defaults
3781 and ns_expand_space.
3782 (-setPanelFromDefaultValues): Remove ns_expand_space.
3783 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3784 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3785 i.e. no additional spacing, similar to Carbon port.
3786
d93f9575
CY
3787 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3788 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3789
305018ec
JD
37902009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3791
3792 * sound.c (alsa_configure): Remove call to deprecated
3793 snd_pcm_sw_params_set_xfer_align.
3794
f761d6b6 37952009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3796
3797 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3798 after clicking in a detached tool bar.
3799 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3800
46e722a9
SM
38012009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3802
348db3dd
SM
3803 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3804 int/Lisp_Object mixup).
46e722a9 3805
a3d16f39
KH
38062009-03-13 Kenichi Handa <handa@m17n.org>
3807
3808 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3809 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3810 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3811 (set_fontset_font): Change ARG to a vector. Handle range_list in
3812 ARG correctly.
3813 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3814 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3815 the above change.
3816 (fontset_from_font): Fix previous change.
fe24f56a 3817 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3818 entry. If FONTSET is the default fontset, don't set the extra
3819 slot of the returning char-table.
3820
b066e6b6
JB
38212009-03-12 Juanma Barranquero <lekktu@gmail.com>
3822
3823 * nsfns.m (Fx_close_connection): Doc fix.
3824 (Fns_do_applescript): Reflow docstring.
3825 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3826 (Fx_display_pixel_width, Fx_display_pixel_height)
3827 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3828 Fix typos in docstrings.
3829 (Fns_set_alpha): Fix typos in error messages.
3830
d472514e 38312009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3832
d472514e 3833 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3834 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3835 were used for such events.
3836
d472514e
JB
3837 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3838 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3839
d472514e 3840 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3841 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3842
fb930676
KH
38432009-03-11 Kenichi Handa <handa@m17n.org>
3844
ff85581a
KH
3845 * font.h (font_open_by_spec): Extern it.
3846
c50b7e98
KH
3847 * font.c (font_open_by_spec): New function.
3848 (font_open_by_name): Use font_open_by_spec.
3849
fb930676
KH
3850 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3851 fontset of the frame.
3852
3853 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3854 modify the default font of frames that use this fontset.
3855 (num_auto_fontsets): New variable.
3856 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3857 name. Be sure to set FONTSET_ASCII to the correct font name.
3858 (update_auto_fontset_alist): New function.
3859
df4e8455
JB
38602009-03-11 Juanma Barranquero <lekktu@gmail.com>
3861
3862 * makefile.w32-in: Update dependencies.
3863
0a375797
AR
38642009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3865
3866 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3867
61313fa3
SM
38682009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3869
3870 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3871
b55103fb
CY
38722009-03-10 Chong Yidong <cyd@stupidchicken.com>
3873
3874 * lread.c (Feval_buffer): Doc fix.
3875
dde2559c
KH
38762009-03-09 Kenichi Handa <handa@m17n.org>
3877
3878 * charset.c (Qfile_name_handler_alist): Extern it.
3879 (load_charset_map_from_file): Temporarily bind
3880 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3881
df4e8455 38822009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3883
47f588bb
GM
3884 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3885 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3886
4ddf94bd
AR
38872009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3888
4c9bdfc2
AR
3889 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3890 (x_set_window_size): Change back to calculated method of setting
3891 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3892 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3893 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3894
fe41ae9e
AR
3895 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3896
4c9bdfc2
AR
3897 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3898 accelerator in parens under GNUstep.
3899
825d0875
KH
39002009-03-06 Kenichi Handa <handa@m17n.org>
3901
3902 These changes are to detect incorrect composition sequence without
f3b3be74 3903 looking ahead the source. (Bug#2370)
825d0875
KH
3904
3905 * coding.h: Include "composite.h".
3906 (enum compisition_state): New enum.
3907 (struct compisition_status): New struct.
3908 (struct iso_2022_spec): New member cmp_status.
3909 (struct emacs_mule_spec): New struct.
3910 (struct coding_system): New members ctext_extended_segment_len and
3911 embedded_utf_8. Change the union member
3912 spec.emacs_mule_full_support to spec.emacs_mule.
3913
3914 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3915 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3916 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3917 (ADD_COMPOSITION_DATA): New arg nbytes.
3918 (emacs_mule_char): New arg cmp_status.
3919 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3920 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3921 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3922 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3923 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3924 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3925 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3926 (EMACS_MULE_COMPOSITION_END): New macro.
3927 (emacs_mule_finish_composition): New function.
3928 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3929 (decode_coding_emacs_mule): Avoid long looking ahead while
3930 handling composition.
3931 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3932 (ENCODE_COMPOSITION_RULE): New macro.
3933 (finish_composition): New function.
3934 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3935 (DECODE_COMPOSITION_START): New implementation.
3936 (DECODE_COMPOSITION_END): Likewise.
3937 (STORE_COMPOSITION_RULE): New macro.
3938 (decode_coding_iso_2022): Avoid long looking ahead while handling
3939 composition, CTEXT extended segment, and embedded UTF-8.
3940 (setup_coding_system): For a coding of type iso-2022, reset
3941 CODING_ISO_EXTSEGMENT_LEN (coding) and
3942 CODING_ISO_EMBEDDED_UTF_8 (coding).
3943 (get_translation): Delete arguments last_block, from_nchars,
3944 to_nchars. Callers changed.
3945 (produce_chars): Don't modify charbuf. Adjusted for the change of
3946 get_translation.
98a326f7 3947 (produce_composition): Adjust for the new annotation sequence.
825d0875 3948 (handle_composition_annotation): Likewise.
98a326f7 3949 (consume_chars): Adjust for the change of get_translation.
825d0875 3950
ccbc4452
AR
39512009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3952
4ddf94bd 3953 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3954
988a7ddb
KH
39552009-03-05 Kenichi Handa <handa@m17n.org>
3956
3957 * font.c (font_select_entity): New function.
3958 (font_find_for_lface): Use font_select_entity to select a font.
3959
3960 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3961 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3962 font with C restriction.
3963
98a326f7 39642009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3965
be1bce46 3966 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3967
10ea2b82
JR
39682009-03-04 Jason Rumney <jasonr@gnu.org>
3969
2c93b248 3970 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3971 characters that have already been read. (Bug#2569)
2c93b248 3972
10ea2b82
JR
3973 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3974 Log an error message if check_image_size failed.
3975 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3976 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3977
71a0c011
EZ
39782009-03-02 Eli Zaretskii <eliz@gnu.org>
3979
3980 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3981 when decoding process output.
3982
2f63bba8
RS
39832009-03-01 Richard M Stallman <rms@gnu.org>
3984
3985 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3986
3987 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3988
0a9564cb
EZ
39892009-02-28 Eli Zaretskii <eliz@gnu.org>
3990
3991 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3992 (decode_coding_emacs_mule, decode_coding_iso_2022)
3993 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3994 (decode_coding_raw_text, decode_coding_charset)
3995 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3996 Honor inhibit-eol-conversion. (Bug #2186)
3997
449148b3
JR
39982009-02-28 Jason Rumney <jasonr@gnu.org>
3999
4000 * coding.c (detect_coding_charset): If not checking latin extra,
4001 fail on characters between 0x80 and 0xA0. (Bug#2354)
4002
a4aee864
EZ
40032009-02-28 Eli Zaretskii <eliz@gnu.org>
4004
4005 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4006 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4007
d88bee5a
GM
40082009-02-27 Glenn Morris <rgm@gnu.org>
4009
4010 * callint.c (Finteractive): Doc fix.
4011
a808f22d
KH
40122009-02-27 Kenichi Handa <handa@m17n.org>
4013
4014 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4015
caf8d60c
CY
40162009-02-27 Chong Yidong <cyd@stupidchicken.com>
4017
4018 * font.c (font_style_to_value): Set value for unknown symbols to
4019 100 instead of 255.
b61137ea
CY
4020 (weight_table, slant_table, width_table): Treat "unspecified" as
4021 the default value.
caf8d60c 4022
1a0de25c
JB
40232009-02-26 Juanma Barranquero <lekktu@gmail.com>
4024
4025 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4026
8fc45744
JB
40272009-02-25 Juanma Barranquero <lekktu@gmail.com>
4028
107bd7d1
JB
4029 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4030 error as soon as a recursive load is detected.
8fc45744 4031
f097e223
AR
40322009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4033
4034 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4035 before caching.
4036
8810a12f
KH
40372009-02-24 Kenichi Handa <handa@m17n.org>
4038
4039 * fontset.c (fontset_find_font): Fix the condition for checking
4040 unavailable font.
4041
2c7d1565
GM
40422009-02-24 Glenn Morris <rgm@gnu.org>
4043
4044 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4045 whitespace that confuses documentation.
4046
a20878b6
MB
40472009-02-23 Miles Bader <miles@gnu.org>
4048
4049 * process.c (Flist_system_processes, Fprocess_attributes)
4050 (syms_of_process): Rename `system-process-attributes' to
4051 `process-attributes'.
4052
b3b58c01
AS
40532009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4054
1b3b981b
AS
4055 * coding.h (struct coding_system): Make safe_charsets a pointer to
4056 unsigned char.
4057 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4058 being 255.
4059 (SAFE_CHARSET_P): Likewise.
4060 (setup_iso_safe_charsets): Properly setup safe_charsets.
4061 (Fdefine_coding_system_internal): Likewise.
4062 (setup_coding_system): Likewise. Remove unneeded casts.
4063 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4064 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4065 unneeded casts.
4066
b3b58c01
AS
4067 * insdel.c (del_range_2): Don't modify gap contents when called
4068 from decode_coding_object. (Bug#1809)
4069
0b6f228c
CY
40702009-02-21 Chong Yidong <cyd@stupidchicken.com>
4071
4072 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4073 Qfont_object.
4074 (Ftype_of): Recognize font objects.
4075
4076 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4077
4078 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4079 moved to data.c.
4080
52f8870b
AR
40812009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4082
4083 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4084 async_iconified. Based on a patch by Christian Lynbech
4085 <christian.lynbech@tieto.com>.
4086 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4087
7087d5e9
GM
40882009-02-20 Glenn Morris <rgm@gnu.org>
4089
4090 * syntax.c (Fskip_chars_forward): Fix doc typo.
4091
41d2ceef
CY
40922009-02-20 Chong Yidong <cyd@stupidchicken.com>
4093
4094 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4095
1a3b7ca6
CY
40962009-02-19 Chong Yidong <cyd@stupidchicken.com>
4097
4098 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4099
73cce38d
KH
41002009-02-19 Kenichi Handa <handa@m17n.org>
4101
4102 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4103 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4104
a51092ee
DN
41052009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4106
4107 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4108
c423ecca
KH
41092009-02-18 Kenichi Handa <handa@m17n.org>
4110
4111 * font.c (font_check_otf_features): Fix handling of `nil' element.
4112 (Ffont_spec): Describe :lang and :otf in the docstring.
4113
4c1958f4
AS
41142009-02-16 Andreas Schwab <schwab@suse.de>
4115
4116 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4117 string.
4118
5704f39a
KH
41192009-02-16 Kenichi Handa <handa@m17n.org>
4120
4121 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4122 (Bug#1723)
5704f39a 4123
8f0085aa
CY
41242009-02-14 Chong Yidong <cyd@stupidchicken.com>
4125
a057d86a 4126 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4127
4128 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4129 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4130
aff01dd9
EZ
41312009-02-14 Eli Zaretskii <eliz@gnu.org>
4132
4133 * msdos.c (MAX_SCREEN_BUF): New macro.
4134 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4135 Encode the entire run of glyphs sharing the same face, instead of
4136 doing that one glyph at a time (fixes a bug with displaying
4137 double-size characters).
4138
ba301db3
AR
41392009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4140
4141 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4142
4143 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4144 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4145 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4146
4147 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4148 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4149
51d861de
SM
41502009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4151
ac146f82 4152 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4153 invisible areas.
4154
7fed8996
JR
41552009-02-12 Jason Rumney <jasonr@gnu.org>
4156
631ea4fb
JR
4157 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4158 (add_font_entity_to_list): Call check_face_name even when family
4159 is unspecified.
4160
cb4a3e42
JR
4161 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4162 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4163 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4164
7fed8996 4165 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4166 raster fonts. (Bug#2219)
7fed8996 4167
895416e3
KH
41682009-02-12 Kenichi Handa <handa@m17n.org>
4169
4170 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4171 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4172 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4173 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4174 (find_automatic_composition): While looking forward and backward,
4175 check static composition. Fix where to stop looking forward.
4176 (composition_adjust_point): Fix checking of static composition.
4177 (Fcomposition_get_gstring): Pay attention to
1dacf998 4178 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4179
4180 * lisp.h (fast_looking_at): Extern it.
4181
4182 * search.c (fast_looking_at): New function.
4183
51d861de 4184 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4185 <struct glyph>.u.cmp.to.
4186 (append_composite_glyph): Likewise.
4187
51d861de 4188 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4189 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4190 composition.
51d861de 4191 (append_composite_glyph): Adjust for the change of
895416e3
KH
4192 <strcut glyph>.u.cmp.to.
4193
8510724d
JB
41942009-02-11 Juanma Barranquero <lekktu@gmail.com>
4195
4196 * casetab.c (init_casetab_once):
4197 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4198 * font.c (font_update_lface):
4199 * fontset.c (Fnew_fontset):
4200 * ftfont.c (ftfont_drive_otf):
4201 * xfont.c (xfont_open):
4202 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4203
294fa707
SM
42042009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4205
4206 * fileio.c (Fwrite_region): !NILP -> CONSP.
4207
b5bfebec
AS
42082009-02-10 Andreas Schwab <schwab@suse.de>
4209
4210 * process.c (send_process): Properly relocate pointer into data
adab88bd 4211 when using encoded data. (Bug#2272)
b5bfebec 4212
cb84a2be
KH
42132009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4214
4215 * coding.c (detect_coding_charset): Fix previous change.
4216
89e09428
JR
42172009-02-08 Jason Rumney <jasonr@gnu.org>
4218
4219 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4220 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4221
4470a277
AS
42222009-02-07 Andreas Schwab <schwab@suse.de>
4223
4224 * unexelf.c (unexec): Fix error message.
4225
3175b12a
AR
42262009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4227
4228 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4229 when modal window is active. (Bug #2152)
3175b12a
AR
4230 (applicationShouldTerminate:): Remove now-unneeded while loop
4231 around NSRunAlertPanel.
4232
4233 * nsmenu.m (popupSession): New file-global variable.
4234 (pop_down_menu): End the popupSession before closing dialog.
4235 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4236 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4237 don't query NSApp for events (just sleep instead).
4238
8434d0b8
EZ
42392009-02-07 Eli Zaretskii <eliz@gnu.org>
4240
51d861de
SM
4241 * coding.c (syms_of_coding) <translation-table-for-input>:
4242 Modify doc string to discourage use for character code unification.
8434d0b8 4243
aa82edfd
CY
42442009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4245
4246 * atimer.c (run_timers): Update pending_atimers.
4247
2d283c7c
CY
42482009-02-06 Chong Yidong <cyd@stupidchicken.com>
4249
eb306cab
CY
4250 * image.c (svg_load_image): Fix last change.
4251
2d283c7c
CY
4252 * xfns.c (Fx_create_frame): Signal an error if no font is
4253 found (Bug#2147).
4254
4d8e170e
JB
42552009-02-05 Juanma Barranquero <lekktu@gmail.com>
4256
4257 * character.c (syms_of_character) <script-representative-chars>:
4258 Fix typo in docstring.
4259
c96169a0
AR
42602009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4261
4262 * nsmenu.m (pop_down_menu): New function.
4263 (ns_popup_dialog): Call it on unwind.
4264 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4265 call timer_check() (Bug#2154).
4266 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4267 handling_signal is set.
4268 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4269
31fd7c5c 4270 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4271
4272 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4273
4274 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4275
51d861de
SM
4276 * keyboard.c (poll_for_input_1, handle_async_input):
4277 Set handling_signal under HAVE_NS.
c96169a0 4278
aacd8ba1
GM
42792009-02-04 Glenn Morris <rgm@gnu.org>
4280
4281 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4282
4cb75c4b
KH
42832009-02-04 Kenichi Handa <handa@m17n.org>
4284
4285 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4286
4287 * charset.c (Fchar_charset): New optional arg restriction.
4288
4289 * coding.h (coding_system_charset_list): Extern it.
4290
4291 * coding.c (coding_system_charset_list): New function.
4292
4293 * composite.c: Include coding.h and termhooks.h.
4294 (composition_gstring_p): Fix for the terminal case.
4295 (composition_gstring_width): Likewise.
4296 (fill_gstring_body): Likewise.
4297 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4298 the frame.
4299 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4300 is within a composition.
867d4bb3 4301 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4302
4303 * term.c (encode_terminal_code): Fix handling of composition.
4304 (produce_composite_glyph): For static composition, get pixel_width
4305 from struct composition.
4306
826ba17e
AS
43072009-02-02 Andreas Schwab <schwab@suse.de>
4308
4309 * unexelf.c (unexec): Handle unaligned bss offset.
4310
8ad093db
AR
43112009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4312
4313 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4314 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4315
8ad093db
AR
4316 * keyboard.c (handle_interrupt): Don't call
4317 quit_throw_to_read_char() under NS.
d0a76a6e 4318
8ad093db
AR
4319 * blockinput.h: Remove NS-specific code.
4320
4d18a7a2
DN
43212009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4322
db878925
DN
4323 * dispnew.c (window_change_signal): Don't try to get the size of a
4324 suspended tty frame.
4325 * term.c (Fresume_tty): Resize if the size has changed while the
4326 tty was suspended.
4327
4d18a7a2
DN
4328 * alloc.c (mark_stack): Properly conditionalize previous change.
4329
8984df7c
JB
43302009-01-30 Juanma Barranquero <lekktu@gmail.com>
4331
4332 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4333 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4334 Remove; this code is not used on Windows.
4335
75f4f1ac
EZ
43362009-01-30 Eli Zaretskii <eliz@gnu.org>
4337
4338 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4339 EOLs that also has stray ^M characters.
4340
07a1e794
JB
43412009-01-30 Juanma Barranquero <lekktu@gmail.com>
4342
4343 * atimer.c (run_timers, alarm_signal_handler):
4344 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4345 * w32inevt.c (w32_console_read_socket):
4346 * w32term.c (w32_read_socket):
4347 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4348
a8b11cc9
CY
43492009-01-30 Chong Yidong <cyd@stupidchicken.com>
4350
4351 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4352 Initialize it as a relative filename pattern.
4353 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4354 (Fcall_process_region): Simplify temp file creation using
4355 temporary-file-directory.
4356
c279587b
EZ
43572009-01-29 Eli Zaretskii <eliz@gnu.org>
4358
4359 * msdos.c: Rename pending_signals to msdos_pending_signals.
4360 (sig_suspender, sigprocmask): Adjust.
4361
a8fe3242
CY
43622009-01-29 Chong Yidong <cyd@stupidchicken.com>
4363
4364 * keyboard.c (pending_signals): New var.
4365 (poll_for_input, input_available_signal, init_keyboard): Set it.
4366 (process_pending_signals): New function.
4367
4368 * lisp.h (QUIT): Check pending_signals instead of
4369 interrupt_input_pending. Use process_pending_signals.
4370
51d861de 4371 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4372
51d861de 4373 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4374
4375 * sysdep.c (emacs_write): Use process_pending_signals.
4376
4377 * xterm.c (XTread_socket): Update pending_signals.
4378
4379 * w32term.c (w32_read_socket): Update pending_signals.
4380
4381 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4382
6570a1c4
KH
43832009-01-29 Kenichi Handa <handa@m17n.org>
4384
4385 * xftfont.c (xftfont_has_char): New function.
4386 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4387
d72a4afa
AR
43882009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4389
4390 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4391 under GNUstep.
4392 (ns_query_color): New declaration.
4393
4394 * nsterm.m (ns_confirm_quit): New variable.
4395 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4396 (EmacsApp-applicationShouldTerminate:): Use it.
4397 (EmacsPrefsController): Let user set it.
4398 (ns_query_color): New function.
4399 (ns_defined_color): Use it.
4400 (ns_initialize): Drop.
4401 (ns_term_init): Add two lines from ns_initialize(), and set
4402 input_interrupt_mode to nil.
4403
4404 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4405 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4406
9fe78804
KH
44072009-01-28 Kenichi Handa <handa@m17n.org>
4408
4409 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4410 (fontset_get_font_group): Remember that no font-group is specified
4411 for C.
9fe78804 4412
fa57de36
CY
44132009-01-27 Chong Yidong <cyd@stupidchicken.com>
4414
930600e9
CY
4415 * fns.c (concat): Check for string overflow (bug#1787).
4416
fa57de36
CY
4417 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4418 Quadruple undo limits (bug#1501).
4419
7179ce7b
KH
44202009-01-27 Kenichi Handa <handa@m17n.org>
4421
4422 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4423 directly use GT_Get_Char_index.
4424
4425 * xftfont.c (struct xftfont_info): New member `index'.
4426
4427 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4428 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4429
5be8fcc0
CY
44302009-01-26 Kenichi Handa <handa@m17n.org>
4431
4432 * fontset.c (fontset_find_font): Fix handling of non-cons return
4433 value of fontset_get_font_group.
4434 (fontset_font): Revert last change.
4435
19ae3e61
JR
44362009-01-26 Jason Rumney <jasonr@gnu.org>
4437
4438 * w32font.c (w32font_list_internal): Return quickly if registry is
4439 unknown. Simplify final return.
4440 (add_font_entity_to_list): Break complex logic down into more
4441 manageable chunks. Move unknown registry check to
4442 w32font_list_internal.
4443
8612b71a
AR
44442009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4445
4446 Changes to remove Feval calls from GUI under NS.
4447
d8038940
JB
4448 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4449 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4450 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4451
4452 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4453 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4454 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4455 instead of NON_ASCII_KEYSTROKE_EVENT.
4456 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4457 (EmacsApp-applicationShouldTerminate:): Query user.
4458 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4459 instead of Feval.
4460
4461 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4462
4463 * keyboard.c (kbd_buffer_get_event): Check for it.
4464 (keys_of_keyboard): Define lispy keys for
4465 ns-put/unput-working-text.
4466
4467 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4468 versions.
4469 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4470
6288ae55
CY
44712009-01-25 Chong Yidong <cyd@stupidchicken.com>
4472
4473 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4474 setting current_buffer directly. (Bug#2044)
6288ae55 4475
289e7f8f
CY
44762009-01-24 Chong Yidong <cyd@stupidchicken.com>
4477
5ce87308 4478 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4479 any work. (Bug#1952, bug#1990).
5ce87308 4480
64cc3cf6 4481 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4482
b3243e6f
AR
44832009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4484
4485 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4486 (ns_no_defaults): New declaration.
4487 (main): Use it.
e0d2e69a 4488
d900b2af 4489 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4490
d900b2af 4491 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4492
d900b2af
AR
4493 * nsterm.m (ns_no_defaults): New variable.
4494 (ns_initialize): Don't read defaults when ns_no_defaults.
4495 (EmacsView-readSelectionFromPasteboard:)
4496 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4497 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4498 (ns_dumpglyphs_stretch): New function.
4499 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4500 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4501
e0d2e69a
AR
4502 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4503
3ac71f5d
CY
45042009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4505
4506 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4507 call for Sparc64.
4508
3fe53a83
AR
45092009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4510
4511 * nsfns.m:
4512 * nsgui.h:
4513 * nsmenu.m:
4514 * nsselect.m:
4515 * nsterm.h:
4516 * nsterm.m: Remove '23' comments that indicated code added during
4517 update from emacs-20 -> emacs-23.
4518
10f87c6f 45192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4520
4521 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4522 ns_alternate_modifier. (Bug#1217)
a3b53a85 4523
c7cef62d
AR
4524 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4525 Display all shortcuts, including those w/o super modifier.
4526
575fb8bd
AR
4527 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4528
918b848b
CY
45292009-01-22 Chong Yidong <cyd@stupidchicken.com>
4530
4531 * fileio.c (Vwrite_region_post_annotation_function)
4532 (Vwrite_region_annotation_buffers): New vars.
4533 (build_annotations_unwind): Just reset
4534 Vwrite_region_annotation_buffers.
4535 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4536 Call write-region-post-annotation-function.
4537 (build_annotations): Add to Vwrite_region_annotation_buffers if
4538 buffer changes.
4539
a39e2539
AR
45402009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4541
4542 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4543 Tiger.
51d861de
SM
4544 * nsfns.m (ns_do_applescript):
4545 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4546
35ed44db
AR
45472009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4548
4549 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4550
cbe0b5bf
AR
45512009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4552
4553 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4554
6049d3a0
AR
4555 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4556
4557 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4558 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4559 handle Ctrl-tab. (Bug#1841)
4560 (ns_get_color): Use unsigned long long for scanned hex string value.
4561 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4562 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4563 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4564 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4565 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4566 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4567 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4568
d3810c21 4569 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4570 DPI. (Bug#1316)
d3810c21
AR
4571 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4572 values in onTiger section.
4c7077c3 4573
e301e634
CY
45742009-01-19 Chong Yidong <cyd@stupidchicken.com>
4575
7f82490b
CY
4576 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4577 Check return value of font_spec_from_name.
64cc3cf6 4578 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4579
4580 * font.c (font_spec_from_name): Return Qnil if font name could not
4581 be parsed.
4582 (font_parse_name): Treat a `?' character as part of an XLFD.
4583
e301e634
CY
4584 * fns.c (Fsubstring): Doc fix.
4585
1c0db158
KH
45862009-01-19 Kenichi Handa <handa@m17n.org>
4587
51d861de 4588 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4589 (ftfont_list): Likewise.
4590
acf20901
JB
45912009-01-18 Juanma Barranquero <lekktu@gmail.com>
4592
fff4e459
JB
4593 * dbusbind.c (Fdbus_register_signal):
4594 * process.c (conv_sockaddr_to_lisp):
4595 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4596
acf20901
JB
4597 * callproc.c (Fgetenv_internal): Doc fix.
4598
e7abcdfb
CY
45992009-01-16 Chong Yidong <cyd@stupidchicken.com>
4600
4601 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4602 it is not even used.
4603
b60861e6
GM
46042009-01-16 Glenn Morris <rgm@gnu.org>
4605
4606 * font.c (Ffont_variation_glyphs): Silence compiler.
4607
8db52afe
JB
46082009-01-15 Juanma Barranquero <lekktu@gmail.com>
4609
4610 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4611 Reported by David Robinow <drobinow@gmail.com>.
4612
4cddb209
KH
46132009-01-15 Kenichi Handa <handa@m17n.org>
4614
51d861de 4615 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4616
f247f67b
JR
46172009-01-14 Jason Rumney <jasonr@gnu.org>
4618
4619 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4620 never a fontset. (Bug#1562)
f247f67b 4621
f56a4450
KH
46222009-01-14 Kenichi Handa <handa@m17n.org>
4623
4624 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4625 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4626
4e99855e
CY
46272009-01-13 Chong Yidong <cyd@stupidchicken.com>
4628
4629 * font.c (font_clear_prop): If clearing the family, clear the font
4630 width index too.
4631
fff4e459 4632 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4633
24f01470
JB
46342009-01-12 Juanma Barranquero <lekktu@gmail.com>
4635
4636 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4637 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4638 functions, use sizeof.
4639
a41240a3
MR
46402009-01-12 Martin Rudalics <rudalics@gmx.at>
4641
4642 * keyboard.c (read_char): Fix case where last_nonmenu_event
4643 returned a bad value with submenus. (Bug#447)
4644
944636b8
CY
46452009-01-12 Chong Yidong <cyd@stupidchicken.com>
4646
4647 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4648 family, clear the font width index too.
4649
0dad7c6f
JR
46502009-01-11 Jason Rumney <jasonr@gnu.org>
4651
4652 * keyboard.c (cmd_error_internal): Exit when errors occur before
4653 frame creation and not in daemon mode. (Bug#1836)
4654
7c2363af
CY
46552009-01-10 Chong Yidong <cyd@stupidchicken.com>
4656
4657 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4658 of a display vector, backtrack.
4659 (try_window_reusing_current_matrix): Check glyph type before
4660 referencing charpos member.
4661
97b1b294
EZ
46622009-01-10 Eli Zaretskii <eliz@gnu.org>
4663
4664 Fix Bug #876:
4665
4666 * coding.c (inhibit_null_byte_detection): New variable.
4667 (detect_coding, detect_coding_system): Don't pay attention to null
4668 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4669 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4670 <inhibit-iso-escape-detection>: Doc fix.
4671
4624b6e3
JR
46722009-01-09 Jason Rumney <jasonr@gnu.org>
4673
4674 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4675 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4676 Only report Unicode Plane 2 fonts as unicode-sip.
4677
323b840c
CY
46782009-01-09 Chong Yidong <cyd@stupidchicken.com>
4679
51d861de
SM
4680 * xfaces.c (Fx_font_family_list): Delete function.
4681 Move compatibility version to faces.el.
323b840c 4682
51d861de 4683 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4684
eba7400d
MR
46852009-01-09 Martin Rudalics <rudalics@gmx.at>
4686
4687 * frame.c (x_set_frame_parameters): Remember requested value for
4688 fullscreen before it's reset by the parameter handler.
4689
4b09796d
GM
46902009-01-09 Glenn Morris <rgm@gnu.org>
4691
4692 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4693 (last_command_event): ... and update all users.
4b09796d
GM
4694 (last_input_char): For clarity, rename to...
4695 (last_input_event): ... and update all users.
4696 (last-command-char, last-input-char): Move to subr.el as aliases.
4697 * cmds.c, commands.h: Update for last_command_char rename.
4698
14ccea62
CY
46992009-01-08 Chong Yidong <cyd@stupidchicken.com>
4700
51d861de 4701 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4702
5f004711
JR
47032009-01-08 Jason Rumney <jasonr@gnu.org>
4704
4705 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4706 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4707 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4708 Don't declare.
fff4e459 4709 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4710 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4711
b71f6f73
KH
47122009-01-07 Kenichi Handa <handa@m17n.org>
4713
50b06221 4714 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4715 remember the coding system used for decoding in
50b06221
KH
4716 coding_system (Bug#1039).
4717
b71f6f73 4718 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4719 breaking the loop. (Bug#870)
b71f6f73
KH
4720 (decode_coding_utf_16, decode_coding_emacs_mule)
4721 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4722 (decode_coding_charset): Likewise.
4723
56f668f7
MR
47242009-01-05 Martin Rudalics <rudalics@gmx.at>
4725
4726 * frame.c (x_set_frame_parameters): Make sure height (width) get
4727 applied when fullwidth (fullheight) is set. (Bug#1522)
4728
5da9424d
JB
47292009-01-04 Juanma Barranquero <lekktu@gmail.com>
4730
4731 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4732 (utc_base): Declare as ULONGLONG, not long double.
4733 (convert_time_raw): Delete.
4734 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4735 (initialize_utc_base): New function.
4736 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4737 (convert_from_time_t): Use initialize_utc_base; compute result with
4738 64-bit arithmetic.
4739 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4740
c4605e09
EZ
47412009-01-03 Eli Zaretskii <eliz@gnu.org>
4742
9acef61c 4743 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4744 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4745 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4746 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4747 [!subprocesses]: Define.
4748 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4749 (Flist_system_processes, Fsystem_process_attributes)
4750 [!subprocesses]: Call list_system_processes and
4751 system_process_attributes instead of returning Qnil.
4752
9acef61c
JB
4753 * dosfns.c (system_process_attributes, list_system_processes):
4754 New functions.
c4605e09
EZ
4755
4756 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4757
4758 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4759 Don't use the default (no-op) implementation.
4760
8b7d0a16
JR
47612009-01-03 Jason Rumney <jasonr@gnu.org>
4762
a6d46bc1
JR
4763 * keyboard.c (parse_modifiers_uncached): Wheel events are
4764 clicks (bug#687).
4765
8b7d0a16
JR
4766 * w32term.c (x_query_colors, x_query_color): New functions.
4767
4768 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4769 (svg_load_image): Cast returned pointers from dynamically loaded
4770 functions. Eliminate W32 specific code.
4771
bfe11752
DN
47722009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4773
89e2438a
DN
4774 * nsfns.m (x_set_foreground_color, x_set_background_color)
4775 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4776 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4777 x_ prefix instead of ns_. Update references.
4778 (syms_of_nsfns): Add a FIXME comment.
4779
4780 * nsterm.m (x_set_cursor_type): New prototype.
4781 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4782
bfe11752
DN
4783 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4784 for Solaris instead of incorrectly providing Qutime and Qcutime.
4785
031da700
EZ
47862009-01-02 Eli Zaretskii <eliz@gnu.org>
4787
4788 * w32.c (process_times): Compute sum of utime and stime.
4789 (system_process_attributes): Add Qtime to the alist.
4790
4791 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4792 and add them to the alist.
4793
4794 * process.c (top level) <Qtime, Qctime>: New variables.
4795 (syms_of_process): staticpro them.
4796 (Fsystem_process_attributes): Add their documentation to the doc
4797 string.
4798
4799 * process.h: Declare Qtime and Qctime.
4800
df23bf08
JR
48012009-01-02 Jason Rumney <jasonr@gnu.org>
4802
9acef61c 4803 * image.c (Qgobject): New symbol.
df23bf08
JR
4804 (syms_of_image): Initialize it.
4805 (init_svg_functions): Load some functions from gobject library.
4806
5bbdf7aa
DN
48072009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4808
4809 * frame.c (make_terminal_frame): Remove redundant code and useless
4810 block.
4811
63136da6
AS
48122009-01-01 Andreas Schwab <schwab@suse.de>
4813
4814 * process.c (conv_sockaddr_to_lisp): Add workaround for
4815 getsockname bug on BSD.
4816
9ef69046
CY
48172009-01-01 Chong Yidong <cyd@stupidchicken.com>
4818
d6fafbe0
CY
4819 * xfns.c (x_create_tip_frame): Set border width of the X window.
4820
51d861de 4821 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4822
f9c34147
JR
48232009-01-01 Jason Rumney <jasonr@gnu.org>
4824
9acef61c 4825 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4826 Don't block input, as per earlier xterm.c changes.
4827
f5497e45
AR
48282008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4829
4830 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4831 (ns_appkit_version_int): New function.
4832 (x-server-version): Use ns_appkit_version_int and follow 21+
4833 convention of returning 3 integers.
4834
c19cab20
KH
48352008-12-30 Kenichi Handa <handa@m17n.org>
4836
4837 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4838 (CHAR_SURROGATE_PAIR_P): New macro.
4839
4840 * font.h (struct font_driver): New member get_variation_glyphs.
4841
9acef61c 4842 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4843 (Ffont_variation_glyphs): New function.
4844 (syms_of_font): Defsubr it.
4845
4846 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4847 ftfont_variation_glyphs.
4848 (setup_otf_gstring): New function.
4849 (ftfont_drive_otf): Use it.
4850 (ftfont_shape_by_flt): Handle variation selector.
4851 (ftfont_variation_glyphs): New function.
4852
28cd591f
MR
48532008-12-30 Martin Rudalics <rudalics@gmx.at>
4854
4855 * frame.c (Vemacs_iconified): Remove.
4856
7f714baf
JR
48572008-12-30 Jason Rumney <jasonr@gnu.org>
4858
4859 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4860 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4861
9d2d22ab
CY
48622008-12-30 Chong Yidong <cyd@stupidchicken.com>
4863
4864 * indent.c (Fvertical_motion): Don't advance iterator if we have
4865 reseated to the desired position.
4866
4867 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4868 checking for pos match.
4869
545312c2
KH
48702008-12-30 Kenichi Handa <handa@m17n.org>
4871
1ede3eb6
KH
4872 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4873 just get the low 8-bit of the code.
4874
545312c2
KH
4875 * font.c (font_intern_prop): Validate str as multibyte.
4876
bd7bbf29
DN
48772008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4878
31e0750e
DN
4879 * dispextern.h (struct face): Move lface and hash from the middle
4880 of bitfields.
4881
bd7bbf29
DN
4882 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4883
b5672e7c
DN
48842008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4885
4886 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4887 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4888 instead of intervals.h.
4889
d704470f
AS
48902008-12-26 Andreas Schwab <schwab@suse.de>
4891
4892 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4893 cons.
4894
54b33868
MR
48952008-12-26 Martin Rudalics <rudalics@gmx.at>
4896
4897 * textprop.c (Qminibuffer_prompt): New variable.
4898 (syms_of_textprop): Initialize it.
4899 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4900 in minibuffer-prompt face. (Bug#1662)
4901
40b615d6
JR
49022008-12-25 Jason Rumney <jasonr@gnu.org>
4903
4904 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4905
baae5c2d
JR
49062008-12-24 Jason Rumney <jasonr@gnu.org>
4907
4908 * ralloc.c (r_alloc_reset_variable): New function.
4909
4910 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4911 record of what points where. (Bug#716)
baae5c2d 4912
a9051c88
DN
49132008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4914
4915 * minibuf.c (read_minibuf): Follow the non-interactive case when
4916 running as a daemon, before detaching.
4917
8b146312
AS
49182008-12-22 Andreas Schwab <schwab@suse.de>
4919
4920 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4921 * gtkutil.c (free_widget_value): Use xfree instead of free.
4922
56f2de10
MR
49232008-12-22 Martin Rudalics <rudalics@gmx.at>
4924
4925 * frame.c (delete_frame): New function derived from
4926 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4927 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4928 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4929 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4930 * frame.h: Extern delete_frame.
4931 * window.c (window_loop):
4932 * terminal.c (delete_terminal):
4933 * xterm.c (x_connection_closed):
4934 * xfns.c (Fx_hide_tip):
9acef61c 4935 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4936
1fc200d6
JR
49372008-12-21 Jason Rumney <jasonr@gnu.org>
4938
4939 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4940 when character maps to .notdef character.
4941
5e252df2
SM
49422008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4943
4944 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4945
99b72cc4
JR
49462008-12-20 Jason Rumney <jasonr@gnu.org>
4947
4948 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4949 a graphical frame on Windows. (Bug#1325)
99b72cc4 4950
acc49a52
JD
49512008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4952
4953 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4954
6ea15123
CY
49552008-12-20 Chong Yidong <cyd@stupidchicken.com>
4956
4957 * minibuf.c (Fread_buffer): Doc fix.
4958
b2dab6c8
JR
49592008-12-20 Jason Rumney <jasonr@gnu.org>
4960
54ea0c87 4961 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4962 server name in UNC paths. (Bug#719)
54ea0c87 4963
b2dab6c8 4964 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4965 charbuf. (Bug#1035)
b2dab6c8 4966
6d1921be
DN
49672008-12-19 Daniel Engeler <engeler@gmail.com>
4968
4969 * sysdep.c (serial_configure): Fix typo.
4970
53934c98
DN
49712008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4972
4973 * sysdep.c: Include alloca.h.
f4f634e8
DN
4974 (system_process_attributes): Add implementation for Solaris.
4975
4976 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4977
06e111a6
DN
49782008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4979
4980 Reorganize implementation of Flist_system_processes and
4981 Fsystem_process_attributes. No functional changes.
4982 * process.c: Don't #include pwd.h, grp.h and limits.h.
4983 (Flist_system_processes): Just call list_system_processes.
4984 (Fsystem_process_attributes): Just call system_process_attributes.
4985 (procfs_list_system_processes, time_from_jiffies)
4986 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4987 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4988
4989 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4990 (list_system_processes): Rename from
4991 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4992 Provide a do nothing implementation.
4993 (system_process_attributes): Rename from
4994 procfs_list_system_processes.
4995 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4996 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4997
4998 * w32.c (list_system_processes): Rename from
4999 w32_list_system_processes.
5000 (system_process_attributes): Rename from
5001 w32_system_process_attributes.
5002
5003 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5004
5005 * process.h (w32_list_system_processes)
5006 (w32_system_process_attributes): Remove.
362654a6
JB
5007 (list_system_processes, system_process_attributes):
5008 New prototypes.
06e111a6 5009
6a705b23
KH
50102008-12-19 Kenichi Handa <handa@m17n.org>
5011
5012 * xfont.c (xfont_decode_coding_xlfd): New function.
5013 (xfont_encode_coding_xlfd): New function.
5014 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5015 (xfont_list): Decode and encode XLFD by iso-8859-1.
5016 (xfont_match): Likewise.
5017 (xfont_list_family): Likewise.
5018 (xfont_open): Likewise.
5019
d66c0241 5020 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5021 names are utf-8.
5022
d66c0241 5023 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5024 names are utf-8.
5025
5a130941
JD
50262008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5027
5028 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5029 changed.
bfd20325
JD
5030 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5031 clicked on a detached tool bar button.
5a130941 5032
fd95644b
DN
50332008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5034
5035 * emacs.c (main): Print and error and exit when no data is read
5036 from the pipe.
5037
e6eee6ae
JR
50382008-12-17 Jason Rumney <jasonr@gnu.org>
5039
5040 * w32font.c (w32font_has_char): Always return -1.
5041
a35dd56b
KH
50422008-12-16 Kenichi Handa <handa@m17n.org>
5043
5044 * font.c (font_open_entity): Fix previous change.
5045
0e3635c2
DN
50462008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5047
5048 * process.c: Include <limits.h>.
5049
d4835507 50502008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5051
5052 * font.c (font_update_drivers): Fix mistake in reconstructing the
5053 driver list.
5054
50552008-12-16 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * font.c (font_clear_cache): Fix format of font cache data.
5058
e2cbc401
CY
50592008-12-15 Chong Yidong <cyd@stupidchicken.com>
5060
5061 * xftfont.c (xftfont_open): Free Xft font pattern if
5062 XftFontOpenPattern fails.
5063
5064 * xterm.c (x_free_frame_resources): Remove extraneous call to
5065 free_frame_faces.
5066
b131d535
CY
50672008-12-13 Chong Yidong <cyd@stupidchicken.com>
5068
5069 * xterm.c (x_delete_display): Move xim_close_dpy call to
5070 x_delete_terminal.
5071 (x_delete_terminal): Call xim_close_dpy.
5072
e6df5336
JR
50732008-12-13 Jason Rumney <jasonr@gnu.org>
5074
5075 * w32font.c (intern_font_name): New function.
5076 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5077 (w32font_open_internal, Fx_select_font): Decode font name.
5078 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5079
5080 * w32font.h (intern_font_name): Declare new function.
5081
5082 * w32uniscribe.c (add_opentype_font_name_to_list):
5083 Use intern_font_name.
5084
20d68145
CY
50852008-12-13 Chong Yidong <cyd@stupidchicken.com>
5086
9f2554de
CY
5087 * frame.c (Fdelete_frame): Call free_font_driver_list.
5088
3d9bec9a
CY
5089 * font.c (free_font_driver_list): Implement missing function.
5090
20d68145
CY
5091 * w32term.c (w32_term_init): Don't initialize the image cache
5092 here; it will be done in init_frame_faces.
5093
5094 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5095 (struct x_display_info): Remove unused member null_pixel. New
5096 member xim_callback_data.
5097
5098 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5099 (xim_initialize): Save pointer to callback function data.
5100 (xim_close_dpy): Free callback function data. Call XCloseIM,
5101 reverting 2008-11-04 change by David Smith.
5102 (x_term_init): Don't initialize the image cache here; it will be
5103 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5104 (x_delete_display): Free x_dnd_atoms member.
5105
96f9306b
KH
51062008-12-13 Kenichi Handa <handa@m17n.org>
5107
6dec9044
JB
5108 * font.c (font_rescale_ratio): Moved from xfaces.c.
5109 Argument type changed. Handle a font-spec too.
96f9306b 5110 (font_score): Check Vface_font_rescale_alist.
6dec9044 5111 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5112
5113 * xfaces.c (font_rescale_ratio): Moved to font.c.
5114
8d5b4964
CY
51152008-12-13 Chong Yidong <cyd@stupidchicken.com>
5116
5117 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5118
e6df5336
JR
51192008-12-12 Jason Rumney <jasonr@gnu.org>
5120
5121 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5122 Vwindow_system_version to the real w32 major version.
5123
97c6058a
DN
51242008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5125
5126 * term.c (init_tty): Move setting the terminal name before the
5127 potential user: maybe_fatal.
5128
ec4e88d7
CY
51292008-12-11 Chong Yidong <cyd@stupidchicken.com>
5130
d4835507
JB
5131 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5132 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5133
b4233ec9
JR
51342008-12-11 Jason Rumney <jasonr@gnu.org>
5135
8ec71e23 5136 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5137 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5138
b4233ec9 5139 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5140 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5141
011a0143
JB
51422008-12-11 Juanma Barranquero <lekktu@gmail.com>
5143
5144 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5145
3c309f34
JB
51462008-12-11 Juanma Barranquero <lekktu@gmail.com>
5147
5148 * process.c (Fsystem_process_attributes, syms_of_process):
5149 Fix typo in name of Ssystem_process_attributes.
5150 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5151
fedc6ab5
JB
51522008-12-11 Juanma Barranquero <lekktu@gmail.com>
5153
5154 * syntax.c (Fmodify_syntax_entry): Doc fix.
5155
ba3de0e8
JB
51562008-12-10 Juanma Barranquero <lekktu@gmail.com>
5157
5158 * font.c (Ffont_spec): Move usage to end of docstring.
5159
174f1c74
JR
51602008-12-10 Jason Rumney <jasonr@gnu.org>
5161
5162 * w32font.c (Qcham): New symbol.
5163 (font_supported_scripts): Add cham, and comments for other new
5164 scripts in bitfield from OpenType spec.
9d32f818
JR
5165 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5166 contain characters beyond the bmp.
174f1c74 5167
7b649478
KH
51682008-12-10 Kenichi Handa <handa@m17n.org>
5169
5170 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5171 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5172 Qunicode_sip.
5173
2133e2d1
JB
51742008-12-10 Juanma Barranquero <lekktu@gmail.com>
5175
5176 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5177 (Fcoding_system_put): Use QCdefault_char.
5178 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5179
9af886ee
CY
51802008-12-09 Chong Yidong <cyd@stupidchicken.com>
5181
74d819eb
CY
5182 * xftfont.c (syms_of_xftfont): Fix typo.
5183
4ccfa1c0 5184 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5185
7c19d3ae
DN
51862008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5187
5188 * emacs.c (main): Close daemon_pipe on exec.
5189
567826bb
CY
51902008-12-08 Chong Yidong <cyd@stupidchicken.com>
5191
5192 * termchar.h (struct tty): New members termcap_term_buffer and
5193 termcap_strings_buffer.
5194
5195 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5196 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5197 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5198 All callers changed.
5199 (init_tty): Store termcap data and string buffers in new struct
5200 tty members termcap_term_buffer and termcap_strings_buffer.
5201 (delete_tty): Free them.
4ccfa1c0 5202 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5203
aa96c42b
SZ
52042008-12-07 Seiji Zenitani <zenitani@mac.com>
5205
5206 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5207 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5208
b7e1d896
CY
52092008-12-06 Chong Yidong <cyd@stupidchicken.com>
5210
5211 * coding.c (make_conversion_work_buffer): Disable buffer
5212 modification hooks in the work buffer.
5213
b5ec91a5
EZ
52142008-12-05 Eli Zaretskii <eliz@gnu.org>
5215
5216 * process.c (procfs_system_process_attributes): If `nread' has a
5217 negative value, assign zero to it.
5218
a5d2a52b
CY
52192008-12-05 Chong Yidong <cyd@stupidchicken.com>
5220
68c5540b 5221 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5222
7bf1bb21
KH
52232008-12-05 Kenichi Handa <handa@m17n.org>
5224
5225 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5226 second character is a combining character.
5227
2fdc7d00
EZ
52282008-12-05 Eli Zaretskii <eliz@gnu.org>
5229
5230 * process.c (procfs_system_process_attributes): Don't use cmd,
5231 cmdsize, and q without initializing them first.
5232
bf6bfba8
JR
52332008-12-04 Jason Rumney <jasonr@gnu.org>
5234
5235 * w32font.c (w32font_draw): Initialize orig_clip before getting
5236 it, and delete it when finished.
5237
a3b1a468
DN
52382008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5239
5240 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5241 case when running as a daemon before detaching.
5242
8b8be8eb
JB
52432008-12-03 Juanma Barranquero <lekktu@gmail.com>
5244
805f2638 5245 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5246
b1bde622
KH
52472008-12-03 Kenichi Handa <handa@m17n.org>
5248
e500c47d
KH
5249 * font.c (font_at): Set `multibyte' at first.
5250
ca516334
KH
5251 * coding.c (decode_coding_charset): Check type of an element of
5252 vector VALIDS.
7bf1bb21 5253 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5254
4ccfa1c0 5255 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5256 (font_for_char): Likewise.
5257
1e5ecd37
CY
52582008-12-03 Chong Yidong <cyd@stupidchicken.com>
5259
d5b01609 5260 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5261 (font_update_lface): Handle fonts with corrupted size specs,
5262 i.e. non-int and non-float.
d5b01609 5263
11e3a6e4 5264 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5265 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5266 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5267
ab06788b
CY
5268 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5269
1e5ecd37 5270 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5271 underline_minimum_offset for underline position.
1e5ecd37 5272
63c125ab
DN
52732008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5274
5275 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5276
5277 * character.c (c_string_width): Specify the type for LEN.
5278
3a8406e1
KH
52792008-12-03 Kenichi Handa <handa@m17n.org>
5280
4ccfa1c0 5281 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5282 (decode_coding_utf_8): Likewise.
4ccfa1c0 5283 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5284 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5285
651df7d9
CY
52862008-12-02 Chong Yidong <cyd@stupidchicken.com>
5287
5288 * keyboard.c (make_lispy_position): Only use PT if the selected
5289 window is current.
5290
1f625c6c
AS
52912008-12-02 Andreas Schwab <schwab@suse.de>
5292
f7741ce9
AS
5293 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5294
1f625c6c
AS
5295 * doprnt.c (doprnt1): Fix size of charbuf.
5296
92bc2678
CY
52972008-12-02 Chong Yidong <cyd@stupidchicken.com>
5298
5299 * keyboard.c (timer_check): Revert last change.
5300
93b9e8cc
JB
53012008-12-02 Juanma Barranquero <lekktu@gmail.com>
5302
5303 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5304
fd7a37d5
JB
53052008-12-01 Juanma Barranquero <lekktu@gmail.com>
5306
5307 * makefile.w32-in: Update dependencies.
5308 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5309
c115043b
AS
53102008-12-01 Andreas Schwab <schwab@suse.de>
5311
5312 * font.c (register_font_driver): Use xmalloc.
5313 (font_put_frame_data): Likewise.
5314
f5668d2a
CY
53152008-12-01 Chong Yidong <cyd@stupidchicken.com>
5316
860d96be
CY
5317 * xfaces.c (realize_x_face): Make abort condition clearer.
5318
f5668d2a
CY
5319 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5320
379c17e7
CY
53212008-11-30 Chong Yidong <cyd@stupidchicken.com>
5322
5323 * keyboard.c (timer_check): After a timer runs, ensure that the
5324 selected window's buffer is current.
5325
35f36d65
JB
53262008-11-30 Juanma Barranquero <lekktu@gmail.com>
5327
f952c61c
JB
5328 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5329 It was accidentally restored by the Unicode merge.
5330
35f36d65
JB
5331 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5332
b23077df
JB
53332008-11-29 Juanma Barranquero <lekktu@gmail.com>
5334
5335 * w32proc.c: Include "coding.h".
5336 (Fw32_short_file_name): Encode filename passed to Windows API.
5337 (Fw32_long_file_name): Encode filename passed to Windows API and
5338 decode back the result. (Bug#1433)
5339
b8ebe9dd
KH
53402008-11-29 Kenichi Handa <handa@m17n.org>
5341
8cc53f96
KH
5342 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5343 not before accessing it.
5344
b8ebe9dd
KH
5345 * charset.c (Fdefine_charset_internal): After calculating
5346 min_char, max_char, and fastmap, copy the charset structure again.
5347 (encode_char): Fix the previous change.
5348
59bc82c0
SZ
53492008-11-28 Seiji Zenitani <zenitani@mac.com>
5350
5351 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5352
5353 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5354
5355 * nsterm.m (x_set_frame_alpha): New function.
5356
32247e3d
EZ
53572008-11-27 Eli Zaretskii <eliz@gnu.org>
5358
5359 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5360
b003e5ff
JB
53612008-11-27 Juanma Barranquero <lekktu@gmail.com>
5362
5363 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5364 pointer to check_face_name.
5365
708550f5
KH
53662008-11-27 Kenichi Handa <handa@m17n.org>
5367
5368 * category.h (SET_CATEGORY_SET): Call set_category_set.
5369 (set_category_set): Extern it.
5370
5371 * category.c (hash_get_category_set): New function.
5372 (Fmodify_category_entry): Adjusted for the change of
5373 char_table_ref_and_range. Call hash_get_category_set to get a
5374 category set to store in the table.
5375
5376 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5377 Funify_charset.
5378
2ae37cf0 5379 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5380 (DECODE_CHAR): Check if the decoder vector is ready.
5381 (ENCODE_CHAR): Check if the encoder char-table is ready.
5382 (maybe_unify_char): Extern it.
5383
5384 * charset.c (Vchar_unified_charset_table): Delete it.
5385 (inhibit_load_charset_map): New variable.
5386 (temp_charset_work): New variable.
5387 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5388 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5389 New macros.
5390 (load_charset_map): Meaning of control_flag changed. If
5391 inhibit_load_charset_map is nonzero, setup a table in
5392 temp_charset_work.
5393 (load_charset): New argument control_flag.
5394 (map_charset_for_dump): New function.
5395 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5396 map_charset_for_dump.
5397 (Fdefine_charset_internal): If the charset method is MAP, load
5398 mapping tables by calling load_charset.
5399 (Funify_charset): Don't load a mapping table but directly set
5400 Vchar_unify_table.
5401 (maybe_unify_char): New function.
5402 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5403 Handle the case of inhibit_load_charset_map being nonzero.
5404 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5405 Handle the case of inhibit_load_charset_map being nonzero.
5406 (Fclear_charset_maps): Just free temp_charset_work.
5407 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5408 variable.
5409
5410 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5411 change of char_table_ref_and_range.
5412 (char_table_ref_and_range): Change the meaning of argument FROM
5413 and TO. Now the caller must provide initial values for *FROM
5414 and *TO.
5415
5416 * fontset.c (fontset_add): Adjusted for the change of
5417 char_table_ref_and_range.
5418 (fontset_get_font_group): Likewise.
5419 (Ffontset_info): Likewise.
5420
5421 * keymap.c (describe_vector): Adjusted for the change of
5422 char_table_ref_and_range. For char-table, put boundary between
5423 non-ASCII and 8-bit characters.
5424
5425 * print.c (print_object): For bool-vector, delete unnecessary
5426 check of ASCII_BYTE_P.
5427
9196133b
JR
54282008-11-26 Jason Rumney <jasonr@gnu.org>
5429
5430 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5431 leading in font height. (Bug#879)
9196133b 5432
9f688acf
GM
54332008-11-26 Glenn Morris <rgm@gnu.org>
5434
5435 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5436 redefinition with ifdef. (Bug#1383)
5437
90d19aff
AR
54382008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5439
5440 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5441
4ccfa1c0 54422008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5443
5444 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5445 New EmacsView methods.
5446 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5447 Fixes bug #1048,1357,1414.
5448
54492008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5450
5451 Fix bug #1362.
5452 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5453 is not an indexed color.
5454 * nsterm.m (free_indexed_color): Add argument checking.
5455 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5456
e7d5ecb3
CY
54572008-11-24 Chong Yidong <cyd@stupidchicken.com>
5458
5459 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5460 Document confirm-after-completion value for
5461 minibuffer-completion-confirm.
5462
c285743c
JR
54632008-11-24 Jason Rumney <jasonr@gnu.org>
5464
5465 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5466 warning.
5467
b0857706
JR
54682008-11-23 Jason Rumney <jasonr@gnu.org>
5469
5470 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5471 restored before returning.
5472
5473 * w32font.c (check_face_name): New function.
5474 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5475 fonts. (Bug#642)
b0857706 5476
ee50ff07
MR
54772008-11-22 Martin Rudalics <rudalics@gmx.at>
5478
5479 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5480 confirm-nonexistent-file-or-buffer in doc-string.
5481
b8ff72fa
SM
54822008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5483
5484 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5485 Fix copy/paste typo. Add checks.
5486
cee53ed4
KH
54872008-11-21 Kenichi Handa <handa@m17n.org>
5488
5489 * coding.c (detect_coding_iso_2022): Reject invalid composition
5490 sequence.
5491 (DECODE_COMPOSITION_START): If the current source is the last
5492 block, and the current composition doesn't end, regard this
5493 sequence as invalid.
5494 (decode_coding_iso_2022): Handle invalid composition sequence.
5495
f6ef1e65
MR
54962008-11-20 Martin Rudalics <rudalics@gmx.at>
5497
5498 * window.c (coordinates_in_window): Don't return
5499 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5500 line when the window is not the rightmost one. (Bug#1372)
5501
e08b1705
MR
55022008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5503
5504 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5505
ad98e89f
EZ
55062008-11-15 Eli Zaretskii <eliz@gnu.org>
5507
5508 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5509 and bright_bg if noninteractive is non-zero.
5510
fb098a4b
CY
55112008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5512
5513 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5514 x_draw_glyph_string_background.
5515
5516 * w32term.c (x_draw_glyph_string): Likewise.
5517
ce952b6e
CY
55182008-11-15 Chong Yidong <cyd@stupidchicken.com>
5519
5520 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5521 the next glyph string once past the overhang width.
5522
5523 * nsterm.m (ns_draw_glyph_string): Likewise.
5524
5525 * w32term.c (x_draw_glyph_string): Likewise.
5526
26ea7079
CY
55272008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5528
5529 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5530 double file close.
5531
1c33c906
MR
55322008-11-14 Martin Rudalics <rudalics@gmx.at>
5533
5534 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5535 dedicated status of window before attempting to display another
5536 buffer in it.
5537
8fc29035
JB
55382008-11-14 Juanma Barranquero <lekktu@gmail.com>
5539
5540 * msdos.c (Fmsdos_long_file_names):
5541 (syms_of_msdos) <dos-unsupported-char-glyph>:
5542 * dosfns.c (Fint86): Fix typos in docstrings.
5543
55fb4286
EZ
55442008-11-14 Eli Zaretskii <eliz@gnu.org>
5545
5546 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5547
3fda0315
KY
55482008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5549
5550 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5551
7e849c17
CY
55522008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5553
5554 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5555
5556 * frame.h: Negative alpha means "don't touch".
5557
5558 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5559
5560 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5561
b9fd67bd
DN
55622008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5563
5564 * hftctl.c:
5565 * chpdef.h:
5566 * acldef.h: Remove files used only for systems no longer supported.
5567
5568 * Makefile.in: Fix .o alphabetical ordering.
5569 (hftctl.o): Remove dependency, file removed.
5570 (keymap.o, print.o): Depend on charset.h.
5571
d5998e03
KH
55722008-11-10 Kenichi Handa <handa@m17n.org>
5573
2ae37cf0 5574 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5575
be70e183
CY
55762008-11-08 Chong Yidong <cyd@stupidchicken.com>
5577
5578 * dired.c (file_name_completion): If completion_ignore_case is
5579 enabled, ignore case when checking completion-regexp-list.
5580
7cf94eac
EZ
55812008-11-08 Eli Zaretskii <eliz@gnu.org>
5582
5583 * vm-limit.c (get_lim_data): Fix last change.
5584
ee107a89
KH
55852008-11-08 Kenichi Handa <handa@m17n.org>
5586
5587 * character.c (Fget_byte): New function.
5588 (syms_of_character): Defsubr Fget_byte.
5589
5fd15622
CY
55902008-11-07 Chong Yidong <cyd@stupidchicken.com>
5591
5592 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5593 cursor position is valid after scrolling.
5594
13d62fad
JB
55952008-11-06 Juanma Barranquero <lekktu@gmail.com>
5596
5597 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5598
a1dd2936
GM
55992008-11-06 Glenn Morris <rgm@gnu.org>
5600
5601 * xterm.c (handle_one_xevent): Don't let popup menus cause
5602 mouse-autoselect-window related window switching. (Bug#1261)
5603
860cd236
CY
56042008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5605
5606 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5607
653a3150
AS
56082008-11-04 Andreas Schwab <schwab@suse.de>
5609
5610 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5611
870f5cac
CY
56122008-11-03 Chong Yidong <cyd@stupidchicken.com>
5613
5614 * xfns.c (Fx_wm_set_size_hint): New function.
5615
1e02f3cb
MR
56162008-11-03 Martin Rudalics <rudalics@gmx.at>
5617
5618 * textprop.c (Fprevious_single_char_property_change): Return 0
5619 when there's no change in a string. (Bug#1301)
5620
e630dfc6
MR
56212008-11-02 Martin Rudalics <rudalics@gmx.at>
5622
5623 * frame.c (do_switch_frame): New argument NORECORD passed to
5624 Fselect_window.
5625 (Fselect_frame): New argument NORECORD passed to
5626 do_switch_frame.
5627 (Fset_frame_selected_window): New argument NORECORD passed to
5628 Fselect_frame.
5629 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5630 in call of do_switch_frame.
5631 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5632 Handle NORECORD argument in call of Fselect_frame.
5633 * lisp.h (do_switch_frame, Fselect_frame)
5634 (Fset_frame_selected_window): Adjust declarations.
5635 * window.c (select_frame_norecord): New function.
5636 (run_window_configuration_change_hook): Use it and call
5637 Fselect_frame with NORECORD set.
5638 (Fselect_window): Pass NORECORD to Fselect_frame.
5639 (Fset_window_configuration): Handle NORECORD argument in call of
5640 do_switch_frame.
5641 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5642 Fset_frame_selected_window.
5643 * keyboard.c (command_loop_1): Handle NORECORD in call of
5644 Fselect_frame (currently ifdefd).
5645
9020b223
GM
56462008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5647
5648 * emacs.c (USAGE2): Untabify.
5649
793ffee8
SM
56502008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5651
5652 * composite.c (fill_gstring_header): Fix copy/paste typo.
5653
ab6d1131
MR
56542008-10-31 Martin Rudalics <rudalics@gmx.at>
5655
5656 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5657 (Fother_window): Rename argument and rewrite doc-string.
5658 (select_window_norecord): Fix return value. (Bug#1276)
5659
601a9cf1
JB
56602008-10-30 Juanma Barranquero <lekktu@gmail.com>
5661
5662 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5663 new frames overriding foreground for tooltips. Based on similar patch
5664 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5665
813b0652
CY
56662008-10-29 Chong Yidong <cyd@stupidchicken.com>
5667
5668 * emacs.c (Fdaemon_initialized): Initialize nfd.
5669
4414f58f
MR
56702008-10-29 Martin Rudalics <rudalics@gmx.at>
5671
5672 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5673 (Fwindow_text_height): Clarify doc-strings.
5674 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5675 doc-string of window-scroll-functions.
5676
ecdcaa09
RS
56772008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5678
5679 * category.c (syms_of_category): Fix typo in docstring.
5680
23fe745a
JB
56812008-10-28 Juanma Barranquero <lekktu@gmail.com>
5682
5683 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5684 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5685 Fix typos in docstrings.
5686
ff808935
DN
56872008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5688
5689 * emacs.c (daemon_pipe): Make non-static.
5690 (IS_DAEMON): Move definition ...
5691 * lisp.h (IS_DAEMON): ... here.
5692 (daemon_pipe): Declare.
5693 (is_daemon): Remove.
5694 * dispnew.c (init_display): Use IS_DAEMON.
5695
fc012771
SM
56962008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5697
5698 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5699 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5700
5701 * emacs.c (is_daemon): Remove.
5702 (main): Don't set is_daemon.
5703 (IS_DAEMON): New macro.
5704 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5705 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5706 parent exits.
5707 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5708
d8bdbe6f
CY
57092008-10-27 Chong Yidong <cyd@stupidchicken.com>
5710
d1a072bf
CY
5711 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5712 over-sized glyph, draw it with the default glyph width.
5713
e2e325aa
CY
5714 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5715 glyph, draw it with the default glyph width.
5716
5717 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5718 glyph, draw it with the default glyph width.
5719
d8bdbe6f
CY
5720 * xdisp.c (try_scrolling): When computing the distance from the
5721 scroll margin to PT, try moving some distance past the window
5722 bottom before giving up.
5723
7bfac547
MR
57242008-10-27 Martin Rudalics <rudalics@gmx.at>
5725
5726 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5727 (Fset_window_buffer): Explain in doc-string that a window can be
5728 "strongly" dedicated to its buffer.
5729
4ff029f6
DN
57302008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5731
5732 * emacs.c (daemon_name): New variable.
5733 (main): Deal with --daemon=SERVER_NAME.
5734 (Fdaemonp): Return a name if one was passed to --daemon.
5735
5790ef40
DN
57362008-10-26 Romain Francoise <romain@orebokech.com>
5737
f9bd0df9 5738 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5739 (main): Create a pipe before forking, make the parent exit only after
5740 the child has closed its end of the pipe. Move closing the
5741 descriptors ...
5742 (Fdaemon_initialized): ... here. New function.
5743
f5385255
SM
57442008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5745
4d632321
SM
5746 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5747 the previous unoptimized table.
5748
f5385255
SM
5749 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5750 the distinction between non-nil and non-t value of `dedicated'.
5751
6c56a0f3
CY
57522008-10-25 Chong Yidong <cyd@stupidchicken.com>
5753
5754 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5755 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5756
fec89261
MR
57572008-10-25 Martin Rudalics <rudalics@gmx.at>
5758
5759 * window.c (Fget_buffer_window, Fdelete_windows_on)
5760 (Freplace_buffer_in_windows): Make buffer argument optional and
5761 rename to buffer_or_name.
5762
34fcddd0
CY
57632008-10-24 Chong Yidong <cyd@stupidchicken.com>
5764
f5385255
SM
5765 * xdisp.c (handle_single_display_spec, handle_display_prop):
5766 Undo 2005-05-16 change.
34fcddd0
CY
5767 (handle_stop): Pop iterator if it's loaded with an empty string.
5768 (get_overlay_strings_1): Don't save iterator if it's loaded with
5769 an empty string (bug#1201).
5770
064766f2
KH
57712008-10-24 Kenichi Handa <handa@m17n.org>
5772
5773 * ftfont.c (ftfont_otf_features): Fix previous change.
5774 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5775 calling ftfont_otf_features.
5776
f9bd0df9 57772008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5778
5779 * font.c (font_match_p): Fix for the case that a vector of
5780 characters is in script-representative-chars.
5781
1dae9197
MA
57822008-10-24 Michael Albinus <michael.albinus@gmx.de>
5783
5784 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5785 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5786 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5787 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5788 macro. (Bug#1186)
1dae9197 5789
f9bd0df9 57902008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5791
5792 * s/sol2-10.h: New file.
5793
878a4584
JB
57942008-10-23 Juanma Barranquero <lekktu@gmail.com>
5795
5796 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5797 poor beast has survived 9+ years and the jump from xterm.c!).
5798
cd265ca6
MR
57992008-10-23 Martin Rudalics <rudalics@gmx.at>
5800
5801 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5802 Reword doc-string.
f5385255 5803 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5804
472a4dc9
JB
58052008-10-23 Juanma Barranquero <lekktu@gmail.com>
5806
5807 * character.c (syms_of_character) <script-representative-chars>:
5808 <unicode-category-table>: Doc fixes.
5809
159bd5a2
NF
58102008-10-23 Noah Friedman <friedman@splode.com>
5811
5812 * coding.c (make_conversion_work_buffer): Check that
5813 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5814 Fget_buffer_create.
5815
49f9c344
KH
58162008-10-23 Kenichi Handa <handa@m17n.org>
5817
5818 * font.c (font_add_log): Check the values of extra properties.
5819
12bb3111
MR
58202008-10-22 Martin Rudalics <rudalics@gmx.at>
5821
5822 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5823 Reword doc-string.
5824 (Fset_window_parameter): Use NILP.
5825 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5826 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5827
bbeb4e99
JB
58282008-10-22 Juanma Barranquero <lekktu@gmail.com>
5829
5830 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5831
58322008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5833
5834 * nsfns.m (ns_appkit_version): New function.
5835 (x-server-version): Use it.
5836 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5837 (x-server-vendor): Don't check_ns().
5838
5839 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5840
a9b555d3
JB
58412008-10-22 Juanma Barranquero <lekktu@gmail.com>
5842
5843 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5844 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5845
4626499f
KH
58462008-10-22 Kenichi Handa <handa@m17n.org>
5847
e3681952
KH
5848 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5849 scripts.
5850
4626499f
KH
5851 * category.c (word_boundary_p): Check scripts instead of charset.
5852 Handle nil value in word-separating-categories and
5853 word-combining-categories.
5854 (syms_of_category): Fix docstrings of word-separating-categories
5855 and word-combining-categories.
5856
1560f91a
EZ
58572008-10-21 Eli Zaretskii <eliz@gnu.org>
5858
5859 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5860 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5861
f4668441
MR
58622008-10-21 Martin Rudalics <rudalics@gmx.at>
5863
5864 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5865 Rename arg "buffer" to "buffer_or_name".
5866 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5867 it optional.
5868 (no_switch_window): Remove since the return value is not used.
a9b555d3 5869 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5870 Consider window as dedicated when Fwindow_dedicated_p returns a
5871 non-nil value.
5872 * lisp.h: Remove prototype for no_switch_window.
5873
fd75ddb2
JD
58742008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5875
5876 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5877 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5878
07295713
KH
58792008-10-21 Kenichi Handa <handa@m17n.org>
5880
5881 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5882 check Vlatin_extra_code_table.
5883
712adc82
EZ
58842008-10-20 Eli Zaretskii <eliz@gnu.org>
5885
5886 * fileio.c (Fset_file_modes): Doc fix.
5887
f549eb0b
MA
58882008-10-19 Michael Albinus <michael.albinus@gmx.de>
5889
5890 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5891 in arrays.
5892
aac0c6e3
MR
58932008-10-19 Martin Rudalics <rudalics@gmx.at>
5894
5895 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5896 Mention kill-buffer in doc-string.
5897 (Fset_window_buffer): Reinsert tem check removed in last commit.
5898 (Fenlarge_window, Fshrink_window): Have argument names and
5899 doc-string follow Elisp manual more closely.
5900
59012008-10-18 Eli Zaretskii <eliz@gnu.org>
5902
5903 * fileio.c (Fset_file_modes): Doc fix.
5904
59052008-10-18 Martin Rudalics <rudalics@gmx.at>
5906
5907 * window.c (Fwindow_width, Fset_window_start)
5908 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5909 (Fdelete_windows_on, Freplace_buffer_in_windows):
5910 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5911 (Fwindow_dedicated_p): Make window argument optional.
5912 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5913 (Fset_window_buffer): Respect any non-nil dedicated value for
5914 window. Rename "buffer" argument to "buffer_or_name".
5915
59162008-10-18 Ulrich Mueller <ulm@gentoo.org>
5917
5918 * m/sh3.h: New file, machine description for SuperH.
5919
59202008-10-17 Martin Rudalics <rudalics@gmx.at>
5921
5922 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5923
59242008-10-17 Kenichi Handa <handa@m17n.org>
5925
5926 * ftfont.c (ftfont_otf_features): Fix indexing
5927 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5928
59292008-10-16 Magnus Henoch <mange@freemail.hu>
5930
5931 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5932 (Fdbus_call_method_asynchronously): Ditto.
5933 This change makes C-h f display the argument list.
5934
59352008-10-16 Chong Yidong <cyd@stupidchicken.com>
5936
5937 * fileio.c (Fexpand_file_name): Doc fix.
5938
5939 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5940 of :foreground and :background equivalent to unspecified (20.x
5941 compatibility).
5942
59432008-10-15 Eli Zaretskii <eliz@gnu.org>
5944
5945 * buffer.c (syms_of_buffer): Doc fix.
5946
59472008-10-14 Kenichi Handa <handa@m17n.org>
5948
5949 * font.c (font_clear_prop): When clearing font width, clear the
5950 average width field too.
5951
59522008-10-12 Andreas Schwab <schwab@suse.de>
5953
5954 * ftfont.c (ftfont_shape_by_flt): Make static.
5955 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5956
5957 * font.c: Don't include <m17n-flt.h>.
5958
59592008-10-10 Eli Zaretskii <eliz@gnu.org>
5960
5961 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5962
59632008-10-09 Eli Zaretskii <eliz@gnu.org>
5964
5965 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5966 away code.
5967
59682008-10-09 Chong Yidong <cyd@stupidchicken.com>
5969
5970 * dispnew.c (update_text_area): Avoid looping due to large glyph
5971 overhangs (bug#1070).
5972
59732008-10-09 Kenichi Handa <handa@m17n.org>
5974
5975 * fontset.c (face_for_char): If face->fontset is negative, just
5976 return ascii_face.
5977
f5385255
SM
5978 * font.c (font_delete_unmatched): Fix previous change.
5979 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5980
59812008-10-09 Martin Rudalics <rudalics@gmx.at>
5982
5983 * frame.c (Fraise_frame): On text-only terminals select frame in
5984 order to make it visible. (Bug#1061)
5985
59862008-10-08 Chong Yidong <cyd@stupidchicken.com>
5987
5988 * fontset.c (fontset_find_font): Check frame validity.
5989
59902008-10-07 Chong Yidong <cyd@stupidchicken.com>
5991
a9b555d3 5992 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5993 (xg_display_close): Allow Emacs to close all displays (bug#985).
5994
59952008-10-06 Andreas Schwab <schwab@suse.de>
5996
f5385255 5997 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5998
59992008-10-06 Chong Yidong <cyd@stupidchicken.com>
6000
f5385255 6001 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6002
a9b555d3 6003 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6004
6005 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6006 during initialization.
6007
60082008-10-04 Eli Zaretskii <eliz@gnu.org>
6009
6010 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6011 whole thing on MSDOS frames as well as on a TTY.
6012
6013 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6014 well as for TTY.
6015 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6016 well as on a TTY.
6017
6018 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6019 as well as for TTY.
6020
6021 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6022
6023 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6024 MSDOS frames as well.
6025
60262008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6027
6028 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6029 correct arguments.
b71ac3dd 6030 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6031
60322008-10-03 Glenn Morris <rgm@gnu.org>
6033
6034 * emacs.c (USAGE1): Add --daemon.
6035
60362008-10-02 Eli Zaretskii <eliz@gnu.org>
6037
6038 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6039 100, so it's in percents as advertised.
6040
60412008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6042
6043 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6044 (ns_output.current_cursor, ns_output.desired_cursor)
6045 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6046 (FRAME_NEW_CURSOR_COLOR): Remove.
6047
6048 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6049 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6050 enumeration (HOLLOW_BOX_CURSOR, etc.).
6051
6052 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6053 (draw_window_cursor): Simplify code.
f5385255
SM
6054 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6055 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6056 updates manually.
a9b555d3
JB
6057 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6058 Use core Emacs cursor types.
aac0c6e3 6059
b8ff72fa 6060 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6061
60622008-10-02 Martin Rudalics <rudalics@gmx.at>
6063
6064 * process.c (Faccept_process_output): Fix doc-string.
6065
60662008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6067
6068 * gmalloc.c (__sbrk): Also define for uClibc.
6069
6070 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6071 for uClibc.
6072
60732008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6074
6075 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6076 styles.
6077 (nsfont_open): Reenable the cache.
6078
60792008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6080
6081 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6082 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6083
60842008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6085
6086 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6087 a suspended terminal.
6088
60892008-09-30 Michael Albinus <michael.albinus@gmx.de>
6090
6091 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6092
60932008-09-30 Eli Zaretskii <eliz@gnu.org>
6094
6095 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6096
60972008-09-30 Chong Yidong <cyd@stupidchicken.com>
6098
6099 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6100 in a continued line coincides with a line beginning.
6101
61022008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6103
6104 * nsfont.m (nsfont_trait_distance): Fix bug.
6105 (nsfont_list): Return a list rather than a vector (syncs with Handa
6106 changes of 2008-05-14).
6107 (nsfont_open): Improve logging.
6108
61092008-09-29 Andreas Schwab <schwab@suse.de>
6110
6111 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6112
61132008-09-28 Martin Rudalics <rudalics@gmx.at>
6114
6115 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6116 name as char-resolve-modifiers.
6117 Reported by: Markus Triska <markus.triska@gmx.at>
6118
61192008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6120
6121 * dispnew.c (init_display): Return earlier when running as a daemon.
6122
61232008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6124
6125 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6126
61272008-09-27 Eli Zaretskii <eliz@gnu.org>
6128
6129 * composite.c (Fcomposition_get_gstring)
6130 (Fcompose_region_internal, Fcompose_string_internal)
6131 (Ffind_composition_internal): Doc fix.
6132 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6133 (syms_of_composite) <auto-composition-function>: Doc fix.
6134 (syms_of_composite) <composition-function-table>: Doc fix.
6135
61362008-09-25 Chong Yidong <cyd@stupidchicken.com>
6137
6138 * search.c (wordify): New argument for lax word-ends.
6139 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6140
61412008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6142
6143 * lisp.h (is_daemon): Declare.
6144 * dispnew.c (init_display): Do not try to initialize the terminal
6145 when running as a daemon.
6146
61472008-09-22 Chong Yidong <cyd@stupidchicken.com>
6148
6149 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6150 x_display_pixel_height.
6151
61522008-09-22 Martin Rudalics <rudalics@gmx.at>
6153
6154 * undo.c (record_point): Don't call Fundo_boundary for first
6155 change. (Bug#731)
6156
61572008-09-22 Juanma Barranquero <lekktu@gmail.com>
6158
6159 * emacs.c (Fdaemonp): Doc fix.
6160
61612008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6162
6163 * emacs.c (main): Place #ifdef in the proper place.
6164
61652008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6166
6167 * emacs.c (standard_args): Add --daemon.
6168 (main): Disconnect from the terminal when --daemon is passed.
6169 (is_daemon): New variable.
6170 (Fdaemonp): New function.
6171 (syms_of_emacs): Defsubr it.
6172
61732008-09-20 Chong Yidong <cyd@stupidchicken.com>
6174
6175 * xdisp.c (get_next_display_element): Handle string display
6176 correctly when checking for the end of a box run.
6177
61782008-09-20 Glenn Morris <rgm@gnu.org>
6179
6180 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6181 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6182 (Frename_file): Avoid copying to trash if a rename involves
6183 a delete. (Bug#964).
6184
61852008-09-20 Eli Zaretskii <eliz@gnu.org>
6186
6187 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6188 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6189 frames as well as termcap frames.
6190 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6191 get_named_tty.
6192
61932008-09-19 Eli Zaretskii <eliz@gnu.org>
6194
6195 * process.c (procfs_system_process_attributes): Fix cmdline in
6196 case /proc/PID/cmdline is empty.
6197
6198 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6199 x_display_pixel_height.
6200
62012008-09-19 Juanma Barranquero <lekktu@gmail.com>
6202
6203 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6204
6205 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6206 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6207
62082008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6209
6210 * dispextern.h (struct it): Move line_wrap away from the middle of
6211 bitfields. Move voffset in struct iterator_stack_entry after the
6212 bitfields. Move tab_width near after another short.
6213
62142008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6215
6216 * frame.h (struct frame): Move alpha from the middle of bitfields.
6217
6218 * window.h (struct window): Move frozen_window_start_p after the
6219 rest of the bitfields to reduce padding.
6220
62212008-09-18 Chong Yidong <cyd@stupidchicken.com>
6222
6223 * xterm.h (x_display_info): Remove `height' and `width' members.
6224
6225 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6226
6227 * w32term.h (w32_display_info): Remove `height', `width',
6228 `height_in', and `width_in' members.
6229
b8ff72fa
SM
6230 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6231 New functions.
aac0c6e3
MR
6232 (x_calc_absolute_position): Use them.
6233 (x_term_init): Omit removed `height' and `width' members.
6234
b8ff72fa
SM
6235 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6236 New functions.
aac0c6e3
MR
6237 (w32_read_socket, x_calc_absolute_position): Use them.
6238 (w32_initialize_display_info, w32_term_init): Omit removed members
6239 of w32_display_info.
6240
b8ff72fa
SM
6241 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6242 New functions.
6243 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6244
b8ff72fa
SM
6245 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6246 New functions.
aac0c6e3
MR
6247 (x_calc_absolute_position): Use them.
6248 (x_term_init): Omit removed `height' and `width' members.
6249
6250 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6251 (compute_tip_xy):
6252 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6253 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6254 x_display_pixel_width.
6255
62562008-09-18 Kenichi Handa <handa@m17n.org>
6257
6258 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6259 (composition_compute_stop_pos): Fix handling of static composition.
6260 (Fcomposition_get_gstring): Check FROM and TO at first.
6261
62622008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6263
46e722a9 6264 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6265 mixup (YAILOM).
6266
62672008-09-17 Chong Yidong <cyd@stupidchicken.com>
6268
6269 * indent.c (Fvertical_motion): Use position reported by iterator
6270 instead of PT for determining screen motion (bug#943).
6271
62722008-09-17 Romain Francoise <romain@orebokech.com>
6273
6274 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6275
62762008-09-17 Kenichi Handa <handa@m17n.org>
6277
6278 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6279
6280 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6281 if necessary.
6282
62832008-09-16 Kenichi Handa <handa@m17n.org>
6284
6285 * coding.c (make_conversion_work_buffer): Avoid calling
6286 Fget_buffer_create if it is not necessary.
6287
62882008-09-15 Martin Rudalics <rudalics@gmx.at>
6289
6290 * window.c (Fselect_window): Don't update window_select_count and
6291 use_time when norecord is not nil.
6292
62932008-09-14 Kenichi Handa <handa@m17n.org>
6294
6295 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6296 specpdl_ptr.
6297
62982008-09-12 Kenichi Handa <handa@m17n.org>
6299
6300 * indent.c (scan_for_column): Don't handle automatic composition
6301 if the current buffer is not associated with a window.
6302
6303 * composite.c (composition_reseat_it): If the current buffer is
6304 not associated with a window, ignore the automatic composition.
6305 (find_automatic_composition): Likewise.
6306
63072008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6308
6309 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6310 (Fgpm_mouse_stop): Use it.
6311 * termhooks.h (close_gpm): Declare.
6312 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6313 connection if Gpm_GetEvent fails.
6314
6315 * window.c (set_window_buffer): Always preserve current-buffer.
6316
63172008-09-12 Glenn Morris <rgm@gnu.org>
6318
6319 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6320
63212008-09-11 Glenn Morris <rgm@gnu.org>
6322
6323 * charset.c (charset-map-path): Doc fix.
6324
63252008-09-10 Kenichi Handa <handa@m17n.org>
6326
6327 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6328
6329 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6330 compose a grapheme cluster with the preceding base glyph.
6331
6332 * composite.c (composition_compute_stop_pos): Fix previous change.
6333 Reset cmp_it->id to -1 at first.
6334
63352008-09-10 Glenn Morris <rgm@gnu.org>
6336
6337 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6338
63392008-09-09 Chong Yidong <cyd@stupidchicken.com>
6340
6341 * keyboard.c (read_key_sequence): Reapply translation maps when
6342 switching keyboards.
6343
63442008-09-09 Kenichi Handa <handa@m17n.org>
6345
6346 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6347 characters.
6348
6349 * composite.c (FORWARD_CHAR): Fix calculation
6350 of (POSITION).pos_byte.
6351 (composition_compute_stop_pos): Limit the search of composition to
6352 at most 500 characters ahead. If we reach the limit or find a
6353 newline, set cmp_it->ch to -2 and return 0.
6354 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6355
63562008-09-08 Kenichi Handa <handa@m17n.org>
6357
6358 * indent.c (Fvertical_motion): Be sure to set
6359 it_overshoot_expected if it.cmp_it.id is non-negative.
6360
63612008-09-07 Andreas Schwab <schwab@suse.de>
6362
6363 * callproc.c (Fcall_process): Don't hold references to string data
6364 across garbage collection. Move initialisation of new_argv down
6365 to avoid compiler bug.
6366
63672008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6368
6369 * process.c (Fsystem_process_attributes): Doc fix.
6370
63712008-09-07 Chong Yidong <cyd@stupidchicken.com>
6372
6373 * callproc.c (Fcall_process): Canonicalize current directory name.
6374
6375 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6376 iterator advances to the next line if the current line ends in a
6377 continued tab.
6378
63792008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6380
6381 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6382 member to point to cmp_from.
6383
6384 * xdisp.c: Doc fix for references to gidx data member.
6385
63862008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6389
63902008-09-07 Kenichi Handa <handa@m17n.org>
6391
6392 * composite.c (FORWARD_CHAR): Check STOP after
6393 incrementing (POSITION).pos.
6394
63952008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6396
6397 * process.c (Fsystem_process_attributes): Doc fix.
6398
63992008-09-06 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * keyboard.c (Ftop_level): Doc fix.
6402
64032008-09-06 Eli Zaretskii <eliz@gnu.org>
6404
6405 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6406 minibuffer, don't let lower part of menu invade the echo area.
6407
6408 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6409 "char *q" to access menu text and advance through it. Revert the
6410 change that displayed ">" instead of ASCII character 0x10.
6411
64122008-09-05 Eli Zaretskii <eliz@gnu.org>
6413
6414 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6415 toggle boxes and radio buttons on MS-DOS as well.
6416
64172008-09-05 Kenichi Handa <handa@m17n.org>
6418
6419 * composite.c (autocmp_chars): Check lookback count.
6420 (composition_compute_stop_pos): Set cmp_it->lookback.
6421 (composition_reseat_it): Check lookback count.
6422 (struct position_record): New struct.
6423 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6424 (find_automatic_composition): New function.
6425 (composition_adjust_point): Use find_automatic_composition.
6426
6427 * dispextern.h (struct composition_it): New member lookback.
6428
64292008-09-02 Chong Yidong <cyd@stupidchicken.com>
6430
6431 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6432 if moving by a single line.
6433
64342008-09-02 Andreas Schwab <schwab@suse.de>
6435
6436 * xterm.c (x_delete_display): Fix merge error.
6437
6438 * fileio.c (Fexpand_file_name): Remove unused variables.
6439
64402008-09-02 Eli Zaretskii <eliz@gnu.org>
6441
6442 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6443 storage on all platforms, not just on DOS_NT.
6444
64452008-09-02 Jason Rumney <jasonr@gnu.org>
6446
b8ff72fa
SM
6447 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6448 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6449
64502008-09-01 Chong Yidong <cyd@stupidchicken.com>
6451
6452 * xfaces.c (Finternal_set_alternative_font_family_alist)
6453 (Finternal_set_alternative_font_registry_alist): Properly copy
6454 entire alist structure.
6455
64562008-09-01 Kenichi Handa <handa@m17n.org>
6457
d66c0241 6458 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6459 representative chars of the script is a vector.
d66c0241
JB
6460 (ftfont_list): Handle the case where the representative chars of
6461 the script is a vector.
aac0c6e3
MR
6462
6463 * character.c (syms_of_character): Docstring of
6464 script-representative-chars fixed.
6465
64662008-08-31 Eli Zaretskii <eliz@gnu.org>
6467
6468 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6469 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6470 the menu. Allocate larger buffer for `text', to account for
6471 possible ^C characters.
6472
64732008-08-31 Martin Rudalics <rudalics@gmx.at>
6474
6475 * xdisp.c (prepare_menu_bars): Don't call
6476 Vwindow_size_change_functions with arg Qt.
6477
64782008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6479
6480 * font.h (font_range):
6481 * fileio.c (report_file_error):
46e722a9
SM
6482 * composite.c (composition_update_it): Yet another int/Lisp_Object
6483 mixup (YAILOM).
aac0c6e3
MR
6484
64852008-08-30 Glenn Morris <rgm@gnu.org>
6486
6487 * data.c (Fmake_variable_frame_local): Doc fix.
6488
6489 * frame.c (Fmodify_frame_parameters): Doc fix.
6490
64912008-08-30 Eli Zaretskii <eliz@gnu.org>
6492
6493 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6494 needed by GetTokenInformation.
6495 (w32_system_process_attributes): Check return values of all system
6496 APIs.
6497
6498 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6499 only when the state changes.
6500 (IT_update_begin, IT_update_end): Add termscript trace.
6501
6502 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6503 clipboard is unavailable. Set dst to NULL if it doesn't point to
6504 malloc'ed data.
6505 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6506 passing random values to xfree.
6507
6508 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6509 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6510
65112008-08-29 Jason Rumney <jasonr@gnu.org>
6512
6513 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6514
65152008-08-29 Eli Zaretskii <eliz@gnu.org>
6516
6517 * composite.c (fill_gstring_body): Avoid compiler warnings.
6518
6519 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6520 LGLYPH_SET_CODE to avoid compiler warnings.
6521
2ae37cf0 6522 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6523
6524 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6525
6526 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6527 LGLYPH_SET_CODE.
6528
65292008-08-29 Kenichi Handa <handa@m17n.org>
6530
6531 * fileio.c (report_file_error): Don't downcase the first character
6532 of errstring if it is still unibyte.
6533
65342008-08-29 Kenichi Handa <handa@m17n.org>
6535
6536 These changes are to re-implement the automatic composition so
6537 that it doesn't use text properties.
6538
6539 * Makefile.in (ftfont.o): Depend on composite.h.
6540 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6541
6542 * character.h (Vunicode_category_table): Extern it.
6543
6544 * character.c (Vunicode_category_table): New variable.
6545 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6546
6547 * chartab.c (optimize_sub_char_table): Perform more greedy
6548 optimization.
6549
b8ff72fa
SM
6550 * composite.h (enum composition_method):
6551 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6552 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6553 (Vcomposition_function_table): Extern it.
6554 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6555 (composition_gstring_put_cache, composition_gstring_from_id)
6556 (composition_gstring_p, composition_gstring_width)
6557 (composition_compute_stop_pos, composition_reseat_it)
6558 (composition_update_it, composition_adjust_point): Extern them.
6559 (Fcomposition_get_gstring): EXFUN it.
6560
d66c0241 6561 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6562 (Vcomposition_function_table)
6563 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6564 (gstring_hash_table, gstring_work, gstring_work_headers):
6565 New variables.
aac0c6e3
MR
6566 (gstring_lookup_cache, composition_gstring_put_cache)
6567 (composition_gstring_from_id, composition_gstring_p)
6568 (composition_gstring_width, fill_gstring_header)
6569 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6570 (composition_reseat_it, composition_update_it)
b8ff72fa 6571 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6572 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6573 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6574 Defsubr compostion_get_gstring.
6575
6576 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6577 cmp_id.
6578 (struct glyph_string): Delete the member gidx. New members
6579 cmp_id, cmp_from, and cmp_to.
6580 (enum it_method): Delete GET_FROM_COMPOSITION.
6581 (struct composition_it): New struct.
6582 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6583 Delete c, len, cmp_id, cmp_len in u.comp.
6584
6585 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6586 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6587 (enum lglyph_indices): Likewise.
b8ff72fa 6588 (font_range): Adjust extern.
aac0c6e3
MR
6589 (font_fill_lglyph_metrics): Extern it.
6590
6591 * font.c (QCf): New variable.
6592 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6593 (font_prepare_composition): Delete this function.
6594 (font_range): Type and arguments changed.
6595 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6596 (font_fill_lglyph_metrics): New function.
b8ff72fa 6597 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6598 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6599 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6600 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6601
6602 * fontset.h (font_for_char): Extern it.
6603
6604 * fontset.c (font_for_char): New function.
6605
6606 * ftfont.c: Include composite.h.
6607 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6608 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6609
6610 * indent.c: Include composite.h and dispextern.h.
6611 (check_composition): Delete this function.
6612 (scan_for_column): Handle composition by
6613 composition_compute_stop_pos, composition_reseat_it, and
6614 composition_update_it.
6615 (compute_motion): Likewise.
6616 (Fvertical_motion): Fix checking of composition.
6617
6618 * keyboard.c (adjust_point_for_property): Check composition by
6619 composition_adjust_point.
6620
b8ff72fa 6621 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6622 struct glyph_string.
6623
b8ff72fa
SM
6624 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6625 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6626 struct glyph.
6627 (produce_composite_glyph): Likewise.
6628
b8ff72fa
SM
6629 * w32term.c (x_draw_composite_glyph_string_foreground):
6630 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6631 (x_draw_glyph_string): Likewise.
6632
6633 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6634 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6635
6636 * xdisp.c: Include font.h.
6637 (it_props): Delete the entry for Qauto_composed.
6638 (init_iterator): Initialize it->cmp_it.id to -1.
6639 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6640 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6641 (handle_auto_composed_prop): Delete it.
6642 (handle_composition_prop): Handle only static composition.
6643 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6644 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6645 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6646 (pop_it): Likewise.
6647 (get_next_element): Delete next_element_from_composition.
6648 (CHAR_COMPOSED_P): New macro.
6649 (get_next_display_element): For automatic composition, get a face
6650 from the font in the glyph-string.
6651 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6652 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6653 (next_element_from_string): Check if the character at the current
6654 position is composed by CHAR_COMPOSED_P.
6655 (next_element_from_buffer): Likewise.
d66c0241
JB
6656 (next_element_from_composition): Adjust for the change of struct it.
6657 Update it->cmp_it.
b8ff72fa
SM
6658 (dump_glyph): Adjust for the change of struct glyph.
6659 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6660 it and struct glyph. Don't handle automatic composition here.
6661 (fill_gstring_glyph_string): New function.
6662 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6663 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6664 (BUILD_GSTRING_GLYPH_STRING): New macro.
6665 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6666 automatic composition.
b8ff72fa 6667 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6668 struct glyph.
b8ff72fa 6669 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6670
b8ff72fa 6671 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6672 the change of struct glyph_string.
6673 (x_draw_glyph_string): Likewise.
6674
66752008-08-29 Glenn Morris <rgm@gnu.org>
6676
6677 * buffer.c (word-wrap): Doc fix.
6678 * xdisp.c (truncate-partial-width-windows): Doc fix.
6679 Increase default to 50.
6680
66812008-08-29 Chong Yidong <cyd@stupidchicken.com>
6682
6683 * xdisp.c (update_tool_bar_unwind): New function.
6684 (update_tool_bar): Temporarily set selected frame before building
6685 tool-bar items.
6686
66872008-08-28 Michael Albinus <michael.albinus@gmx.de>
6688
6689 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6690 snprintf, respectively.
6691 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6692
66932008-08-28 Chong Yidong <cyd@stupidchicken.com>
6694
6695 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6696 LDFLAGS to GNUstep CC invocation.
6697
66982008-08-27 Chong Yidong <cyd@stupidchicken.com>
6699
6700 * indent.c (Fvertical_motion): Revert last change. Handle the
6701 general case where we are moving forward, and PT spans multiple
6702 screen lines.
6703
6704 * eval.c (find_handler_clause): Temporarily increase
6705 max-lisp-eval-depth while printing the backtrace buffer, to
6706 guarantee that help-mode code can run.
6707
67082008-08-27 Eli Zaretskii <eliz@gnu.org>
6709
6710 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6711 colors under -rv.
6712 (IT_set_frame_parameters): Don't swap foreground and background
6713 colors if `(reverse . t)' is present in the frame properties.
6714 (internal_terminal_init): Call init_frame_faces only for the
6715 initial frame.
6716
67172008-08-27 Andreas Schwab <schwab@suse.de>
6718
6719 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6720
67212008-08-27 Andreas Schwab <schwab@suse.de>
6722
6723 * search.c (search_buffer): Set char_base to zero only at the end.
6724
67252008-08-27 Kenichi Handa <handa@m17n.org>
6726
b8ff72fa 6727 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6728
67292008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6730
6731 * xterm.c (x_term_init): Temporarily hide the partially
6732 initialized terminal while calling vendor-specific-keysyms.
6733
67342008-08-26 Eli Zaretskii <eliz@gnu.org>
6735
6736 * msdos.c (internal_terminal_init): Most initializations done only
6737 once, especially initial_screen_colors[] and termscript open.
6738
67392008-08-26 Chong Yidong <cyd@stupidchicken.com>
6740
6741 * eval.c (Fcondition_case): Doc fix.
6742
6743 * widgetprv.h (EmacsFramePart): Change font member to the new font
6744 struct.
6745
6746 * widget.c: Include character.h and font.h for XSETFONT.
6747 (setup_frame_gcs): Compute X font id from font struct, just once.
6748
67492008-08-26 Eli Zaretskii <eliz@gnu.org>
6750
6751 * term.c (get_named_tty): Fix last change.
6752
67532008-08-26 Chong Yidong <cyd@stupidchicken.com>
6754
6755 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6756 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6757
67582008-08-25 Eli Zaretskii <eliz@gnu.org>
6759
6760 * frame.c (do_switch_frame): Mark previously displayed frame as
6761 obscured for FRAME_MSDOS_P frames as well.
6762
67632008-08-24 Eli Zaretskii <eliz@gnu.org>
6764
6765 * frame.c (make_terminal_frame): Initialize f->terminal,
6766 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6767 Set the top frame to newly created frame.
6768 (Fmake_terminal_frame): Reuse the_only_display_info.
6769
6770 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6771 estimating available memory.
6772
b97439ce 67732008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6774
6775 * nsterm.m (ns_draw_window_cursor): Don't call
6776 NSDisableScreenUpdates and NSEnableScreenUpdates on
6777 non-NS_IMPL_COCOA systems.
6778
67792008-08-23 Andreas Schwab <schwab@suse.de>
6780
6781 * process.c (procfs_system_process_attributes): Fix use of
6782 uninitialized variables.
6783
67842008-08-23 Eli Zaretskii <eliz@gnu.org>
6785
6786 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6787
6788 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6789 calling tty-set-up-initial-frame-faces.
6790
b8ff72fa
SM
6791 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6792 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6793
6794 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6795 addition to output_termcap.
6796
6797 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6798
6799 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6800 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6801 highlight.
6802
6803 * process.c [!subprocesses]: Define QCname.
6804 (syms_of_process): Intern and staticpro it.
6805
6806 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6807 Adjust for changes in encoding/decoding routines.
6808 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6809 encode_coding and decode_coding.
6810
b8ff72fa 6811 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6812
6813 * dosfns.c: Include frame.h before termhooks.h.
6814 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6815 variable termscript.
6816
6817 * s/msdos.h (USER_FULL_NAME): Define.
6818 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6819
6820 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6821 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6822 pw->pw_gecos.
6823
6824 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6825 SELECTED_FRAME as additional (1st) argument.
6826 (tty_read_avail_input): Handle output_msdos_raw in
6827 addition to output_termcap.
6828
6829 * msdos.c: Include frame.h before termhooks.h.
6830 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6831 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6832 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6833 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6834 (IT_set_terminal_modes, IT_reset_terminal_modes)
6835 (IT_set_frame_parameters): Use tty->termscript instead of a global
6836 variable termscript.
6837 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6838 global variable terminal_coding. Don't refer to
6839 Vnonascii_translation_table.
6840 (internal_terminal_init): Set Vwindow_system in current_kboard.
6841 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6842 Announce date and time of session start, if termscript is open.
6843 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6844 term.c:init_tty). Open termscript only of not already open.
6845 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6846 here instead of dos_ttraw. Don't initialize display if this is an
6847 initial tty. Don't set FRAME_FONT.
6848 (Vwindow_system_version): Bump to 23.
6849 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6850 is available, set up mouse_position_hook.
6851 (dos_ttraw, IT_set_terminal_modes): If called with initial
6852 terminal, do nothing.
6853 (IT_set_frame_parameters): Handle the Qtty_type frame
6854 parameter by calling internal_terminal_init.
6855 (dos_set_window_size, show_mouse_face)
6856 (clear_mouse_face, IT_note_mode_line_highlight)
6857 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6858 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6859 (initialize_msdos_display): New function.
6860 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6861 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6862 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6863 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6864 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6865 (request_sigio, unrequest_sigio): Don't define, now defined on
6866 sysdep.c.
6867 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6868
6869 * term.c [MSDOS]: Include msdos.h.
6870 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6871 conditional to DOS_NT. Allow only one call to this function in a
6872 session. Don't allocate a new struct tty_display_info; instead,
6873 reuse the_only_display_info. Call get_tty_size to get screen
6874 dimensions. Call init_baud_rate to set bad_rate.
6875 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6876 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6877 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6878 (get_tty_terminal, get_named_tty, Ftty_type)
6879 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6880 output_termcap.
b8ff72fa
SM
6881 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6882 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6883 only when subprocesses are supported.
aac0c6e3
MR
6884
6885 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6886 f->output_data.x.
6887 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6888 terminal devices.
6889
5582fbc7 6890 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6891 x_output.
6892 (FRAME_FONT): Use output_data.tty.
6893 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6894 (struct x_display_info): Rename from display_info. Update all users in
6895 msdos.c.
aac0c6e3 6896 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6897 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6898 (dos_ttraw): Update prototype.
6899
6900 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6901 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6902
69032008-08-23 Jason Rumney <jasonr@gnu.org>
6904
6905 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6906 (fn_TIFFSetDirectory): New library function used.
6907 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6908 (tiff_load): Use :index to select among multiple images. Set count
6909 property when multiple images exist.
6910 (gif_format): Use :index, not :image.
6911
69122008-08-23 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * xdisp.c (try_scrolling): Check INT_MAX instead of
6915 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6916 to obtain INT_MAX.
6917
69182008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6919
6920 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6921
69222008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6923
6924 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6925 GNUstep library location.
6926
69272008-08-21 Chong Yidong <cyd@stupidchicken.com>
6928
6929 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6930 before using it.
6931
6932 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6933
69342008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6935
6936 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6937 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6938 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6939 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6940 (EmacsApp-cursor_blink_handler): Remove declaration.
6941 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6942 match 01 Feb 2008 changes in xterm.c.
6943 (ns_read_socket): Add cast to avoid warning.
6944 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6945 GNUstep.
6946
69472008-08-20 Chong Yidong <cyd@stupidchicken.com>
6948
6949 * xselect.c (x_get_foreign_selection): Return nil if desired
6950 selection could not be obtained, instead of signalling an error.
6951
69522008-08-20 David Reitter <david.reitter@gmail.com>
6953
6954 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6955 * nsterm.m: Remove ns-specific code for cursor blinking.
6956 (ns_draw_window_cursor): Clear cursor properly rather than
6957 redrawing the area. Respect width of bar cursors.
6958 These changes enable the use of generic blink-cursor-mode and
6959 generic cursor types in NS and support smooth cursor movements (do
6960 not blink off after command).
6961 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6962 Nextstep, too.
6963
69642008-08-19 Kenichi Handa <handa@m17n.org>
6965
6966 * font.c (Vfont_log_deferred): New variable.
6967 (font_add_log): Check Vfont_log_deferred.
6968 (font_deferred_log): New function.
6969
6970 * font.h (font_deferred_log): Extern it.
6971
6972 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6973 for sorting.
6974 (face_for_char): Use deferred log.
6975
69762008-08-18 Kenichi Handa <handa@m17n.org>
6977
6978 * fontset.c (face_for_char): Add font log.
6979
6980 * font.c (font_add_log): Add the font properties :script, :lang,
6981 and :otf in the log.
6982
69832008-08-17 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * xdisp.c: Remove dead code.
6986 (handle_invisible_prop, next_overlay_string): Defer call to
6987 setup_for_ellipsis.
6988 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6989
69902008-08-15 Chong Yidong <cyd@stupidchicken.com>
6991
6992 * xfaces.c (lookup_derived_face): Properly handle possible zero
6993 return value of get_lface_attributes.
6994 (merge_faces): Don't tell lookup_derived_face to signal an error
6995 if face is not found.
6996
6997 * dired.c (Fdirectory_files): Doc fix.
6998
6999 * process.c (make_process): Initialize kill_without_query struct
7000 member.
7001
70022008-08-15 Eli Zaretskii <eliz@gnu.org>
7003
7004 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7005 Alternative calculation of totphys for Visual Studio 6.
7006
7007 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7008
7009 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7010 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7011 All users changed.
7012 (stat): Only root directory passed to GetDriveType. Allow RAM
7013 disk as well as local fixed disk when w32-get-true-file-attributes
7014 is set to `local'.
7015 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7016 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7017 (w32_cached_id, w32_add_to_cache): New functions.
7018 (get_name_and_id): Look account names in the cache before calling
7019 lookup_account_sid.
7020 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7021 New initialization flags.
7022 (globals_of_w32): Initialize them to zero.
7023 (w32_system_process_attributes): Use w32_cached_id and
7024 w32_add_to_cache.
7025
70262008-08-14 Lawrence Mitchell <wence@gmx.li>
7027
7028 * lread.c (Fread_char, Fread_char_exclusive): If no character
7029 event is read before timeout is reached, return nil, rather than
7030 converting to a number.
7031
70322008-08-14 Chong Yidong <cyd@stupidchicken.com>
7033
7034 * fns.c (use_dialog_box): Doc fix.
7035
7036 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7037 on OS X.
7038
70392008-08-13 Chong Yidong <cyd@stupidchicken.com>
7040
7041 * frame.c (Qns_parse_geometry): New var.
7042 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7043
70442008-08-11 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7047 space character in calculating tabs.
7048
70492008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7050
7051 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7052
70532008-08-10 Glenn Morris <rgm@gnu.org>
7054
7055 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7056 silence gcc "limited range of data type" warnings in some
7057 make_fixnum_or_float calls.
7058
70592008-08-09 Eli Zaretskii <eliz@gnu.org>
7060
7061 * w32.c (w32_system_process_attributes): If the process does not
7062 exist, return nil.
7063
7064 * w32.c: Include thelp32.h, psapi.h and coding.h.
7065 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7066 declarations.
7067 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7068 (Process32Next_Proc): New typedefs.
7069 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7070 (g_b_init_process32_next, g_b_init_open_thread_token)
7071 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7072 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7073 (g_b_init_get_process_working_set_size)
7074 (g_b_init_global_memory_status_ex): New static variables.
7075 (globals_of_w32): Initialize them.
7076 (create_toolhelp32_snapshot, process32_first, process32_next)
7077 (open_thread_token, impersonate_self, revert_to_self)
7078 (get_process_memory_info, get_process_working_set_size)
7079 (global_memory_status, global_memory_status_ex): New wrapper
7080 functions.
7081 (w32_list_system_processes, w32_system_process_attributes)
7082 (enable_privilege, restore_privilege, ltime, process_times):
7083 New functions.
7084 (convert_time_raw): New function.
7085 (convert_time): Remove conversion of FILETIME into time in 100
7086 nsec units, call convert_time_raw instead.
7087
7088 * process.h (w32_list_system_processes, w32_system_process_attributes):
7089 Add prototypes.
7090 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7091 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7092 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7093 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7094
7095 * process.c (Fsystem_process_attributes): Doc fix.
7096
70972008-08-08 Chong Yidong <cyd@stupidchicken.com>
7098
7099 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7100 a continued multi-char glyph; if so, advance to the actual glyph.
7101
71022008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7103
7104 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7105
7106 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7107 (.m.o): Use it.
7108 * config.in: Regenerate.
7109
71102008-08-07 Chong Yidong <cyd@stupidchicken.com>
7111
7112 * xdisp.c (redisplay_window): Revert last change.
7113 (try_window): Check bottom scroll margin too.
7114
71152008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7116
7117 * config.in: Regenerate.
7118
7119 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7120 -list-load-path-shadows'.
7121 (nsgui.h): Reduce number of things depending on it.
7122
71232008-08-06 Chong Yidong <cyd@stupidchicken.com>
7124
7125 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7126 instead of window-end which does the wrong thing at eob.
7127 (try_cursor_movement): Minor optimization.
7128 (redisplay_window): If scroll margin is defined, don't assume
7129 window doesn't need scrolling.
7130
71312008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7132
7133 * config.in: Regenerate.
7134
7135 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7136 (mostlyclean): Don't delete *.d under NS.
7137
7138 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7139
71402008-08-06 Kenichi Handa <handa@m17n.org>
7141
7142 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7143
71442008-08-06 Andreas Schwab <schwab@suse.de>
7145
7146 * config.in: Regenerate.
7147
71482008-08-05 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7151 forcing a window start.
7152
7153 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7154 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7155
71562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7157
7158 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7159 argument.
7160
71612008-08-05 Juanma Barranquero <lekktu@gmail.com>
7162
7163 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7164 <scroll-down-aggressively, before-change-functions>:
7165 <after-change-functions>: Reflow docstrings.
7166
71672008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7168 Ken Raeburn <raeburn@gnu.org>
7169
7170 Dock menu customization, based on a patch by Ken Raeburn, plus some
7171 other fixes.
7172 * nsmenu.m (dockMenu): New variable.
7173 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7174
7175 * nsterm.h (dockMenu): Declare.
7176
7177 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7178 (ns_term_init): Initialize dockMenu.
7179 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7180 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7181 left.
7182
7183 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7184
71852008-08-04 Chong Yidong <cyd@stupidchicken.com>
7186
7187 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7188
7189 * config.in: Regenerate.
7190
71912008-08-04 Seiji Zenitani <zenitani@mac.com>
7192
7193 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7194
71952008-08-04 Chong Yidong <cyd@stupidchicken.com>
7196
7197 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7198
71992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7200
7201 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7202
7203 * keyboard.h: Comment an #endif.
7204
7205 * lisp.h (have_menus_p): Adjust comment.
7206
7207 * menu.c (find_and_return_menu_selection): Fix comparison with
7208 client_data.
7209
7210 * nsmenu.m (popup_activated_flag): New variable.
7211 (popup_activated): New function.
7212 (menu-or-popup-active-p): New exported lisp definition.
7213 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7214 when popup done.
7215 (ns_popup_dialog): Set popup_activated_flag.
7216
7217 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7218 version for GNUstep (handled by conditional typedef in nsterm.m).
7219 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7220 in rgb.txt).
7221
7222 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7223
7224 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7225
7226 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7227
7228 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7229 shortcircuit if popup_activated like GTK and X toolkit.
7230
7231 * m/inter386.h: Change DARWIN to DARWIN_OS.
7232
7233 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7234 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7235 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7236 comment on NO_SOCK_SIGIO.
7237
72382008-08-03 Chong Yidong <cyd@stupidchicken.com>
7239
7240 * nsterm.m (windowDidResize): Remove stopModal call.
7241
72422008-08-03 Andreas Schwab <schwab@suse.de>
7243
7244 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7245 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7246
72472008-08-02 Chong Yidong <cyd@stupidchicken.com>
7248
7249 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7250 Don't use uninitialized pointer variable when using getrlimit.
7251
72522008-08-02 Jason Rumney <jasonr@gnu.org>
7253
7254 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7255
72562008-08-02 Eli Zaretskii <eliz@gnu.org>
7257
7258 * alloc.c (NSTATICS): Bump to 0x640.
7259
7260 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7261
7262 * lisp.h: Add prototype for directory_files_internal.
7263
7264 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7265 New functions.
7266 (syms_of_process): Defsubr them. Add initializations for various
7267 Q* symbols used in procfs_system_process_attributes.
7268 (procfs_list_system_processes, procfs_system_process_attributes)
7269 [HAVE_PROCFS]: New functions.
7270 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7271 (procfs_get_total_memory): New functions.
7272
72732008-08-01 Juanma Barranquero <lekktu@gmail.com>
7274
7275 * xfaces.c (Fx_load_color_file): Fix previous change;
7276 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7277
72782008-08-01 Michael Albinus <michael.albinus@gmx.de>
7279
7280 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7281
72822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7283
7284 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7285
72862008-08-01 Chong Yidong <cyd@stupidchicken.com>
7287
7288 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7289
7290 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7291 define NSApplicationDelegateReplySuccess.
7292 (EmacsView -converstationIdentifier): Use long instead of
7293 NSInteger for GNUstep, since it doesn't have NSInteger.
7294
7295 * xmenu.c: Revert last change.
7296
7297 * keyboard.h: Fix last change.
7298
72992008-08-01 Juanma Barranquero <lekktu@gmail.com>
7300
7301 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7302 on Windows.
7303
73042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7305
7306 Warning clearing and clean-up in NS port.
7307 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7308 Add prototypes.
7309 * nsgui.h (FACE_DEFAULT): Remove, unused.
7310 (XGCValues): Change colors to unsigned long.
7311 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7312 nsterm.m.
7313 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7314 (ns_list_fonts): Remove, unused.
7315 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7316 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7317 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7318 (nsfont_draw): Compare face colors to 0, not nil.
7319 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7320 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7321 (-addSubmenuWithTitle:): Use NSMenuItem class.
7322 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7323 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7324 (ns_clip_to_row): Make gc arg a BOOL.
7325 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7326 ns_clip_to_row() call.
7327 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7328 used). Cast FRAME_FONT assignments.
7329 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7330 (ns_string_to_lispmod): Change arg to const char.
7331 (ns_term_init): Use NSMenuItem class.
7332 (EmacsApp -openFile:): Move to different section of file.
7333 (EmacsApp -application:openFiles:): Don't return a value, call
7334 -replyToOpenOrPrint:.
7335 (EmacsView -keyDown:): Fix up cast.
7336 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7337 (EmacsView -menuDown:): Cast tag in call to
7338 find_and_call_menu_selection().
7339 (ns_list_fonts): Remove, unused.
7340 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7341 (ns_fontname_to_xlfd): Make static.
7342 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7343 Remove prototypes (now in keyboard.h).
7344 (next_menubar_widget_id): Remove, unused.
7345 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7346 Remove prototypes (now in keyboard.h).
7347 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7348
73492008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7350
7351 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7352 (floatfns.o): Depend on syssignal.h.
7353 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7354
7355 * systty.h: Fix previous change that removed BSD_TERMIOS.
7356 Add comments to #ifdefs.
7357
73582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7359
7360 * w32fns.c (w32-load-color-file): Remove.
7361 (x-open-connection): Use renamed Fx_load_color_file.
7362 * xfaces.c (x-load-color-file): Add.
7363 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7364 Emacs.clr.
7365 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7366
73672008-07-31 Michael Albinus <michael.albinus@gmx.de>
7368
7369 * dbusbind.c (Fdbus_call_method_asynchronously)
7370 (Fdbus_method_error_internal): New defuns.
7371 (xd_read_message): Handle also reply messages.
7372 (Vdbus_registered_functions_table): Extend docstring.
7373
73742008-07-31 Juanma Barranquero <lekktu@gmail.com>
7375
7376 * keyboard.c (gobble_input): Fix previous change.
7377
73782008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7379
7380 * bitmaps/README:
7381 * xfns.c:
7382 * termcap.c:
7383 * term.c:
7384 * syswait.h:
7385 * systty.h:
7386 * systime.h:
7387 * syssignal.h:
7388 * sysdep.c:
7389 * process.h:
7390 * process.c:
7391 * print.c:
7392 * ndir.h:
7393 * lread.c:
7394 * keyboard.c:
7395 * getpagesize.h:
7396 * floatfns.c:
7397 * fileio.c:
7398 * emacs.c:
7399 * doc.c:
7400 * dispnew.c:
7401 * dired.c:
7402 * data.c:
7403 * callproc.c:
7404 * buffer.c:
7405 * README:
7406 * Makefile.in:
7407 * s/template.h:
7408 * s/msdos.h:
7409 * m/vax.h: Remove VMS support.
7410 * s/vms.h:
7411 * vlimit.h:
7412 * uaf.h:
7413 * temacs.opt:
7414 * param.h:
7415 * ioctl.h: Remove file.
7416
74172008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7418
7419 * s/ms-w32.h (MULTI_KBOARD): Remove.
7420 * xterm.c:
7421 * xselect.c:
7422 * xfns.c:
7423 * window.c:
7424 * w32term.c:
7425 * w32fns.c:
7426 * terminal.c:
7427 * termhooks.h:
7428 * term.c:
7429 * sysdep.c:
7430 * keyboard.h:
7431 * keyboard.c:
7432 * frame.h:
7433 * frame.c:
7434 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7435 * config.in: Regenerate.
7436
74372008-07-30 Jason Rumney <jasonr@gnu.org>
7438
7439 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7440
7441 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7442 (w32font_open_internal): Get unicode version of textmetrics.
7443 Don't enable or disable glyph indices here.
7444 (w32font_open): Disable use of glyph indices.
7445
7446 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7447
74482008-07-30 Chong Yidong <cyd@stupidchicken.com>
7449
7450 * minibuf.c (Vread_buffer_function): Doc fix.
7451
74522008-07-30 John Paul Wallington <jpw@pobox.com>
7453
7454 * minibuf.c (read_buffer_completion_ignore_case): New var.
7455 (Fread_buffer): Use it.
7456
74572008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7458
7459 * systty.h (sensemode): Remove empty #if. Remove reference to
7460 BSD_TERMIOS, unused.
7461
7462 * sysdep.c: Remove reference to DGUX.
7463 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7464
7465 * config.in: Regenerate.
7466
74672008-07-30 Jason Rumney <jasonr@gnu.org>
7468
7469 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7470
74712008-07-29 Jason Rumney <jasonr@gnu.org>
7472
7473 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7474 is populated.
7475 (uniscribe_encode_char): Always use uniscribe.
7476 Avoid using context if cache is populated.
7477
74782008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7479
7480 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7481 open menu.
7482
7483 * gtkutil.c (menu_nav_ended): Remove.
7484 (create_menus): Remove signal connect for menu_nav_ended.
7485
74862008-07-28 Chong Yidong <cyd@stupidchicken.com>
7487
7488 * xdisp.c (redisplay_window): Check return value of
7489 compute_window_start_on_continuation_line before forcing a window
7490 start.
7491
74922008-07-28 Jason Rumney <jasonr@gnu.org>
7493
7494 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7495
7496 * w32term.c (w32_enable_unicode_output, cleartype_active):
7497 Remove obsolete display options.
7498 (x_draw_glyph_string_background): Don't use old cleartype_active
7499 workaround.
7500 (w32_initialize): Remove cleartype_active initialization.
7501 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7502
75032008-07-28 Andreas Schwab <schwab@suse.de>
7504
7505 * lisp.h (init_weak_hash_tables, syms_of_font)
7506 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7507 (remove_hash_entry): Don't declare.
7508 * eval.c (maybe_call_debugger): Make static and move before use.
7509 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7510 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7511 * xterm.h (x_set_frame_alpha): Declare.
7512
75132008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7514
7515 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7516 (create_menus): Connect selection-done to menu_nav_ended.
7517
75182008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7519
7520 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7521 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7522 parameter with read of 'alpha' one.
7523 (Qns_frame_parameter): Remove.
5582fbc7 7524 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7525 (next-selection-coding-system, Vselection_coding_system)
7526 (Vnext_selection_coding_system): Drop.
7527
75282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7529
7530 * nsfns.m (do-applescript, do_applescript): Rename to
7531 ns-do-applescript, ns_do_applescript, and move within file.
7532
75332008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7534
7535 Remove support for Mac Carbon.
7536 * mactoolbox.c:
7537 * macterm.h:
7538 * macterm.c:
7539 * macselect.c:
7540 * macmenu.c:
7541 * macgui.h:
7542 * macfns.c:
7543 * mac.c: Remove file.
7544 * s/darwin.h:
7545 * m/intel386.h:
7546 * xfaces.c:
7547 * xdisp.c:
7548 * window.c:
7549 * tparam.c:
7550 * termhooks.h:
7551 * termcap.c:
7552 * term.c:
7553 * syssignal.h:
7554 * sysselect.h:
7555 * sysdep.c:
7556 * process.c:
7557 * lread.c:
7558 * lisp.h:
7559 * keyboard.c:
7560 * image.c:
7561 * fringe.c:
7562 * frame.h:
7563 * frame.c:
7564 * fontset.c:
7565 * font.h:
7566 * font.c:
7567 * fns.c:
7568 * fileio.c:
7569 * emacs.c:
7570 * dispnew.c:
7571 * dispextern.h:
7572 * config.in:
7573 * atimer.c:
2ae37cf0 7574 * Makefile.in: Remove code for Carbon.
aac0c6e3 7575
f0131492 75762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7577
7578 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7579
75802008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7581
7582 * macterm.h (kCGBitmapByteOrder32Host): New define for
7583 non-universal SDKs.
7584
7585 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7586 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7587
7588 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7589 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7590
75912008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7592
7593 * w32inevt.c: Include dispextern.h.
7594
75952008-07-26 Andreas Schwab <schwab@suse.de>
7596
7597 * print.c (print_object): Fix off-by-one in last change.
7598
75992008-07-25 Juanma Barranquero <lekktu@gmail.com>
7600
7601 * term.c (syms_of_term): Don't initialize default_orig_pair,
7602 default_set_foreground and default_set_background on Windows.
7603
76042008-07-25 Jason Rumney <jasonr@gnu.org>
7605
7606 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7607 ScriptItemize. Clean up return value checking. Remove unused
7608 variables.
7609 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7610 shaping engine.
7611
7612 * w32font.c (w32font_has_char): Handle the case where we can't
7613 determine the script for a character.
7614
76152008-07-25 Chong Yidong <cyd@stupidchicken.com>
7616
7617 * term.c (syms_of_term): Initialize default_orig_pair,
7618 default_set_foreground, and default_set_background.
7619
7620 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7621 clash (bug#86).
7622 (getloadavg): Callers changed.
7623
7624 * image.c (svg_load_image): Fix last change.
7625 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7626 image size is valid. Use g_object_unref instead of deprecated
7627 rsvg_handle_free to free rsvg handle.
7628 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7629
76302008-07-25 Jason Rumney <jasonr@gnu.org>
7631
7632 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7633 surrogates before looking up glyph index.
7634 (w32font_text_extents): Encode as surrogates if falling back to
7635 functions that need UTF-16 wide chars.
7636
7637 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7638 BMP as surrogates before looking up glyph index.
7639
76402008-07-25 Chong Yidong <cyd@stupidchicken.com>
7641
7642 * image.c (svg_load_image): Check for failure in return value of
7643 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7644
76452008-07-25 Jason Rumney <jasonr@gnu.org>
7646
7647 * w32font.c (Fx_select_font): Reverse sense of second arg.
7648
76492008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7650
7651 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7652 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7653
7654 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7655 (PURESIZE): Use it.
7656
76572008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7658
7659 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7660 * m/alpha.h (TEXT_END):
7661 * m/ibmrs6000.h (TEXT_END):
7662 * m/macppc.h (TEXT_END):
7663 * s/darwin.h (TEXT_END):
7664 * s/msdos.h (TEXT_END): Remove, unused.
7665 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7666 * s/cygwin.h: Remove comment.
7667
7668 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7669 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7670 * m/intel386.h (DOT_GLOBAL_START):
7671 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7672 (USG): Remove, file not used on USG platforms.
7673
7674 * Makefile.in (HAVE_X11): Remove empty #else.
7675
76762008-07-24 Andreas Schwab <schwab@suse.de>
7677
7678 * fileio.c (Finsert_file_contents): Properly adjust undo list
7679 after format conversion.
7680
76812008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7682
7683 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7684 (menu_nav_ended): Remove.
7685 (create_menus): Remove signal connect for menu_nav_ended.
7686 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7687 create_menus.
7688 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7689
76902008-07-23 Jason Rumney <jasonr@gnu.org>
7691
7692 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7693 with opened font.
7694 (w32font_open): Set font type to gdi.
7695
7696 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7697
76982008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7699
7700 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7701 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7702 defines it.
7703 * unexec.c (ADDR_CORRECT): Define unconditionally.
7704
7705 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7706
7707 * unexec.c: Remove code depending on !COFF and USG, the file is
7708 not used for such systems.
7709
7710 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7711 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7712 (LD_SWITCH_SYSTEM_1): Remove, update users.
7713
7714 * s/darwin.h (DATA_END):
7715 * m/intel386.h (DATA_END):
7716 * m/ibmrs6000.h (DATA_END):
7717 * m/alpha.h (DATA_END): Remove, unused.
7718
7719 * config.in: Regenerate.
7720 * s/ms-w32.h (subprocesses): Define unconditionally.
7721 * s/template.h (subprocesses): Update comment.
7722 * s/vms.h (subprocesses):
7723 * s/usg5-4.h (subprocesses):
7724 * s/hpux10-20.h (subprocesses):
7725 * s/gnu-linux.h (subprocesses):
7726 * s/cygwin.h (subprocesses):
7727 * s/bsd-common.h (subprocesses):
7728 * s/aix4-2.h (subprocesses):
7729 * s/darwin.h (subprocesses): Do not define, defined by default now.
7730
7731 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7732 Remove all references.
7733 (temacs): Add GNUstep specific ld flags.
7734
7735 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7736 similarly to what X does.
7737
77382008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7739
7740 * nsfns.m (x-list-fonts): Remove.
7741 (syms_of_nsfns): Drop the x-list-fonts declaration.
7742 * nsterm.m: Get rid of remaining "//" comments.
7743
77442008-07-22 Chong Yidong <cyd@stupidchicken.com>
7745
7746 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7747
7748 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7749 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7750 (Fns_own_selection_internal, Fx_disown_selection_internal)
7751 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7752
7753 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7754 ... */' style of docstrings. Doc fixes.
7755
77562008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7757
7758 * terminfo.c (UP, BC, PC): Undo previous change.
7759
7760 * nsfns.m: Rename ns prefixed functions/variables to the
7761 corresponding x versions. Update references.
7762
77632008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7764
7765 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7766
77672008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7768
7769 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7770 Remove forwarding functions.
7771 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7772 non-static.
7773 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7774 non-static.
7775 (ns_frame_parm_handlers): Use the new names.
7776 (syms_of_nsfns): Move to the end of file.
7777
7778 * nsterm.m (syms_of_nsterm): Move to the end of file.
7779
7780 * dispnew.c (init_display): Remove code for X10.
7781
77822008-07-22 Jason Rumney <jasonr@gnu.org>
7783
7784 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7785 bare drive.
7786
77872008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7788
7789 * nsterm.m (syms_of_nsterm): Remove debugging println.
7790
77912008-07-22 David Reitter <david.reitter@gmail.com>
7792
7793 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7794 Carbon implementation of the same functionality: execute arbitrary
7795 AppleScript code.
7796
77972008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7798
7799 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7800 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7801 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7802 (Fx_display_mm_height, Fx_display_mm_width)
7803 (Fx_display_backing_store, Fx_display_visual_class)
7804 (Fx_display_save_under, Fx_open_connection)
7805 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7806 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7807 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7808 (Fx_display_pixel_width, Fx_display_pixel_height)
7809 (Fx_display_usable_bounds, Fx_display_planes)
7810 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7811 ... */' style of docstrings.
7812
78132008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7814
7815 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7816 on this platform.
7817 (mips):
7818 * m/iris4d.h (mips): Do not define.
7819 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7820
7821 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7822
7823 * image.c:
7824 * nsfns.m:
7825 * nsselect.m:
7826 * nsterm.h:
7827 * nsterm.m: Rename ns prefixed functions/variables to the
7828 corresponding x versions. Update references.
7829
7830 * m/ibms390x.h (NO_REMAP): Do not undefine.
7831
7832 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7833
78342008-07-21 Chong Yidong <cyd@stupidchicken.com>
7835
7836 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7837 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7838 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7839 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7840 (Fns_display_mm_height, Fns_display_mm_width)
7841 (Fns_display_backing_store, Fns_display_visual_class)
7842 (Fns_display_save_under, Fns_open_connection)
7843 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7844 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7845 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7846 (Fns_display_pixel_width, Fns_display_pixel_height)
7847 (Fns_display_usable_bounds, Fx_display_planes)
7848 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7849
78502008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7851
7852 * print.c (print_object): Check print_depth before searching for
7853 circularities.
7854
78552008-07-21 Michael Albinus <michael.albinus@gmx.de>
7856
7857 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7858 only sprintf.
7859
78602008-07-21 Kenichi Handa <handa@m17n.org>
7861
7862 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7863
78642008-07-20 Andreas Schwab <schwab@suse.de>
7865
7866 * syntax.c (find_start_pos, find_start_value)
7867 (find_start_value_byte, find_start_begv, find_defun_start)
7868 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7869
78702008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7871
7872 * s/sol2-3.h: Insert contents of s/sol2.h.
7873 (LD_SWITCH_SYSTEM): Remove redundant definition.
7874 * s/sol2.h: Remove, unused.
7875
78762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7877
7878 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7879
78802008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7881
7882 * Makefile.in (ns_appdir): Fix typo in find command.
7883
78842008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7885
7886 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7887
7888 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7889 added not supported anymore.
7890
7891 * s/usg5-4-2.h (LIBS_SYSTEM):
7892 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7893
7894 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7895 * s/lynxos.h (GETPGRP_NO_ARG):
7896 * s/hpux10-20.h (NO_SIOCTL_H):
7897 * s/gnu.h (GETPGRP_NO_ARG):
7898 * s/gnu-linux.h (NO_SIOCTL_H):
7899 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7900 * s/cygwin.h (GETPGRP_NO_ARG):
7901 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7902 (C_DEBUG_SWITCH): Remove duplicate definition.
7903
7904 * m/ibms390.h: Remove boilerplate comments.
7905
7906 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7907
7908 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7909 (wait_reading_process_output): Remove code for SunOS, platform not
7910 supported anymore. Use SOLARIS2 instead of sun.
7911
79122008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7913
7914 * font.c (font_open_by_name): Under NS, default lface height to zero.
7915 (font_open_for_lface): Under NS, set size based on frame fontsize.
7916 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7917 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7918
79192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7920
7921 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7922 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7923 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7924 YES/NO.
7925 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7926 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7927 * Makefile.in (clean): Clear out build destination dir.
7928
79292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7930
7931 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7932 xterm, xselect.
7933 * lisp.h: Remove declaration of hash_remove.
7934 * nsgui.h: Remove redefinitions of hash_remove.
7935 * fns.c (hash_remove): Rename to hash_remove_from_table.
7936
79372008-07-19 Seiji Zenitani <zenitani@mac.com>
7938
7939 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7940 strdup() the family UTF8String before modifying it.
7941
79422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7943
7944 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7945 NS_FACE_BACKGROUND with 0 instead of nil.
7946 * nsfont.m (nsfont_draw): Same.
7947
79482008-07-19 Chong Yidong <cyd@stupidchicken.com>
7949
7950 * nsfns.m (ns_set_background_color): Fix crash.
7951
79522008-07-18 Chong Yidong <cyd@stupidchicken.com>
7953
7954 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7955
79562008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7957
7958 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7959
79602008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7961
7962 * gtkutil.c: Include <config.h> instead of "config.h".
7963
7964 * lisp.h (Foverlay_buffer): Add EXFUN.
7965
7966 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7967 child process to complete child_setup. Undo 2005-09-21 change.
7968
7969 * s/darwin.h: Mention setsid after vfork.
7970
79712008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7972
7973 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7974 Depend on macgui.h.
7975
7976 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7977 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7978
7979 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7980 and f19.
7981 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7982
7983 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7984 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7985 Remove enumerators.
7986
7987 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7988 Check if FACE_FROM_ID returns NULL.
7989
79902008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7991
7992 * w32inevt.c (change_frame_size): Remove extern declaration.
7993 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7994 change_frame_size.
7995
79962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7997
7998 * getloadavg.c: Revert last change (2008-07-15).
7999
80002008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8001
8002 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8003 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8004 from configure.
8005
80062008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8007
8008 * s/sol2.h:
8009 * s/sol2-4.h: Reorganize conditionals.
8010
8011 * ecrt0.c: Remove code depending on m68000, not used anymore.
8012
8013 * fns.c (hash_remove): Make static.
8014 * lisp.h (hash_remove): Don't prototype.
8015
8016 * m/ibmrs6000.h:
8017 * m/ibms390x.h:
8018 * m/macppc.h: Remove boilerplate comments.
8019
8020 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8021 Solaris, which does not need them.
8022
8023 * m/vax.h: Remove comments about unsupported systems.
8024
8025 * s/darwin.h: Reorganize ifdefs.
8026
80272008-07-17 Andreas Schwab <schwab@suse.de>
8028
8029 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8030
80312008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8032
8033 Use SDATA. Follow coding convention of placing operators at
8034 beginning of next line rather than end of previous line, and placing
8035 spaces around infix operators.
8036
8037 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8038 in case it was defined already.
8039 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8040 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8041 ns_default.
8042 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8043 Lisp_Objects.
8044 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8045 (ns_defined_color, ns_color_to_lisp): Declare.
8046 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8047 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8048 it's accepted even with USE_LISP_UNION_TYPE.
8049 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8050 (update_frame_tool_bar): Remove apparently obsolete tests for
8051 non-integerness of f->tool_bar_lines.
8052 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8053 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8054 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8055 (nsfont_open): Don't confuse NULL for Qnil.
8056 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8057 * menu.h (find_and_call_menu_selection):
8058 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8059 (find_and_return_menu_selection): Always return something.
8060 * frame.h: Include dispextern.h for Display_Info.
8061 (display_x_get_resource): Declare.
8062
80632008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8064
8065 * syntax.c: Remove stdio.h include accidentally introduced in
8066 Emacs.app commit.
8067 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8068 NS_IMPL_COCOA.
8069 * keyboard.c (handle_async_input, input_available_signal): Remove
8070 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8071
80722008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8073
8074 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8075 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8076 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8077 Use SDATA.
8078
8079 * keymap.c: Remove all NS-specific code.
8080 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8081 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8082 where_is_preferred_modifier, return a different value depending on how
8083 preferred is the binding.
8084 (where_is_internal): Adjust accordingly.
8085 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8086 Adjust to new preferred_sequence_p.
8087 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8088 * keyboard.c (parse_solitary_modifier): Not static any more.
8089 * keyboard.h (parse_solitary_modifier): Declare.
8090
80912008-07-16 Andreas Schwab <schwab@suse.de>
8092
8093 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8094 of easymenu.
8095
80962008-07-16 Chong Yidong <cyd@stupidchicken.com>
8097
8098 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8099 that we don't move off the line.
8100
81012008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8102
8103 * keyboard.c (Qsuper): Remove.
8104 (parse_menu_item): Don't call where_is_internal specially for NS.
8105
81062008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8107
8108 * s/gnu-linux.h: Remove boilerplate comments.
8109
8110 * m/alpha.h (__ELF__): Consolidate conditions.
8111
8112 * m/m68k.h (linux): Use GNU_LINUX instead.
8113 Remove boilerplate comments.
8114
8115 * m/intel386.h: Undo refactoring from previous change.
8116 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8117 too, remove dead code.
8118 (linux): Use GNU_LINUX instead.
8119
81202008-07-16 Jason Rumney <jasonr@gnu.org>
8121
8122 * w32gui.h: Repeat 26 June changes lost by last change.
8123
81242008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8125
8126 * systty.h: Remove code for Aix on 386, unsupported platform.
8127
8128 * s/ms-w32.h: Remove boilerplate comments.
8129 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8130
8131 * s/gnu-linux.h (TERM): Remove support.
8132 (HAVE_SYSVIPC): Remove, unused.
8133 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8134 for this system.
8135
8136 * process.c: Remove support for IRIS, unused.
8137 Remove support for TERM, not relevant anymore.
8138
8139 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8140 used with the definition.
8141
8142 * s/aix4-2.h (static): Do not undef.
8143
8144 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8145 only used on Aix.
8146 (HAVE_SYSVIPC): Remove, unused.
8147
8148 * m/hp800.h (CANNOT_DUMP): Do not undef.
8149
8150 * m/alpha.h: Fix comment.
8151
8152 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8153 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8154 used by this configuration.
8155 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8156 * unexec.c: Remove code depending on HPUX and
8157 USG_SHARED_LIBRARIES, not used with this file. Remove code
8158 depending on IRIS, unused. Remove if 0-ed code.
8159
8160 * s/template.h: Remove comments about static.
8161
8162 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8163 Remove if 0-ed code.
8164 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8165 were the same as the default.
8166 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8167 Remove boilerplate comments.
8168 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8169 (HAVE_SYSVIPC): Remove, unused.
8170 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8171
8172 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8173 Remove boilerplate comments.
8174 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8175 Remove boilerplate comments.
8176 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8177 Remove boilerplate comments.
8178 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8179
8180 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8181 USG systems which do not use DATA_SEG_BITS.
8182 Refactor code. Remove boilerplate comments.
8183
8184 * m/ibms390.h:
8185 * m/m68k.h:
8186 * s/bsd-common.h:
8187 * s/cygwin.h:
8188 * s/darwin.h:
8189 * s/freebsd.h:
8190 * s/gnu.h:
8191 * s/msdos.h: Remove boilerplate comments.
8192
8193 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8194 do not use this file.
aac0c6e3
MR
8195 (IRIS_4D): Remove, unused.
8196
8197 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8198 do not use this file.
aac0c6e3
MR
8199 (SIGN_EXTEND_CHAR):
8200 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8201 * unexmips.c: Remove file, unused.
8202
8203 * editfns.c (Fuser_full_name): Replace the only use of
8204 USER_FULL_NAME with its value.
8205 * config.in: Regenerate.
8206
82072008-07-16 David Reitter <david.reitter@gmail.com>
8208
8209 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8210 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8211
82122008-07-16 Glenn Morris <rgm@gnu.org>
8213
8214 * emacs.c (system-type): Doc fix.
8215
82162008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8217
8218 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8219 If the cache doesn't work, let's fix it, rather than work around it.
8220
82212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8222
8223 * Makefile.in: Correct additions for nsfont.o in last commit.
8224 * nsfont.m: New file (forgot last commit).
8225
82262008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8227
8228 * callproc.c (set_initial_environment): Initialize
8229 Vprocess_environment under CANNOT_DUMP (fixes crash when
8230 batch-compiling for bootstrap).
8231
82322008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8233 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8234
8235 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8236 fix crash due to different init order.
8237
82382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8239
8240 Changes and additions for NeXTstep windowing system (Cocoa and
8241 GNUstep) support.
8242
8243 * Makefile.in:
8244 * config.in: Support defines and build commands for NS port.
8245 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8246 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8247 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8248 windowing.
8249 (struct face): Add synth_ital field.
8250 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8251 (init_display): Initialize Vinitial_window_system to "ns" when so
8252 compiled.
8253 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8254 (display_arg): Use under NS.
8255 (main): Under NS, allocate autorelease pool and handle command line
8256 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8257 (standard_args): Add NS-specific args.
8258 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8259 * font.c (DEFAULT_ENCODING): New variable.
8260 (font_find_for_lface): Use it.
8261 (syms_of_font): Load syms_of_nsfont under NS.
8262 * font.h: Declare nsfont_driver when compiled under NS.
8263 * fontset.c: When compiling under NS, include nsterm.h.
8264 (fontset_from_font): Autoconstruct fontset under NS.
8265 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8266 symbol, document and use it.
8267 (do_switch_frame): When for_deletion under Cocoa, add
8268 Fraise_frame(Qnil).
8269 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8270 (x_get_arg): Allow "yes" and "no" as boolean values.
8271 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8272 Qright under Cocoa.
8273 (focus-follows-mouse): Default to 0 under NS.
8274 * frame.h (enum output_method): Add output_ns.
8275 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8276 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8277 (FRAME_WINDOW_P): NS-specific definition.
8278 * fringe.c (max_used_fringe_bitmap): Make public.
8279 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8280 (getloadavg): Use NeXT code under descendant OS's.
8281 * image.c (includes and header section, x_create_bitmap_from_data)
8282 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8283 (image_background_transparent, x_clear_image_1)
8284 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8285 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8286 (x_to_xcolors, x_from_xcolors, x_disable_image)
8287 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8288 other GUIs, including XPM support using code originally written for
8289 Carbon GUI.
8290 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8291 using NS API.
8292 (image_ascent): Use font metrics macros instead of direct struct field
8293 access.
8294 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8295 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8296 Also, handle NS as GTK for menu bar purposes.
8297 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8298 toolkit where they differ.
8299 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8300 use cachelist, still needed under NS.
8301 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8302 (struct widget_value): Define it here for menu.c.
8303 * keymap.c (includes): Include modifier internals.
8304 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8305 NS.
8306 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8307 support for preferring sequences using certain modifiers, specified by
8308 the FIRSTONLY argument.
8309 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8310 under NS GNUstep implementation.
8311 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8312 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8313 * menu.c: Include nsterm.h under NS.
8314 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8315 (free_menubar_widget_tree_value, update_submenu_strings)
8316 (find_and_call_menu_selection): Treat NS as X and NT.
8317 (find_and_return_menu_selection): New function, used for popup menus.
8318 * nsgui.h:
8319 * nsterm.h:
8320 * nsfns.m:
8321 * nsimage.m:
8322 * nsmenu.m:
8323 * nsselect.m:
8324 * nsterm.m: New files.
8325 * process.c (wait_reading_process_output): Under NS, call ns_select()
8326 instead of plain select().
8327 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8328 beginning of buffer.
8329 * sysselect.h (init_process): Rename when compiling under Cocoa to
8330 avoid name conflict.
8331 * termhooks.h (display_info): Add ns_display_info to union.
8332 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8333 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8334 COCOA environment.
8335 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8336 unexec() signature. (Note, this will dump, but the resulting file
8337 crashes; unexosx is used instead; keeping around for reference and
8338 possible aid in getting dump working under GNUstep.)
8339 * w32gui.h (button_type, widget_value): Remove definitions (now in
8340 keyboard.h).
8341 * window.c: Include nsterm.h when compiling under NS.
8342 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8343 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8344 other GUI windowing systems.
8345 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8346 GTK.
8347 (x_consider_frame_title): Under NS, set icon type and frame
8348 modified-state indicator; use ns_set_name_as_filename() when using
8349 formatted title.
8350 (update_window_cursor): Make public when compiling under NS.
8351 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8352 (hourglass_atimer, Vhourglass_delay
8353 * xfaces.c (header section, init_frame_faces, clear_font_table)
8354 (defined_color, unload_color, x_face_list_fonts)
8355 (prepare_face_for_display): Add NS support parallel to other GUIs.
8356 Emulate GCs like other non-X GUIs.
8357 (split_font_name): Don't lowercase font name under NS.
8358 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8359 under NS.
8360 * s/darwin.h: Add support for compilation under NS.
8361
83622008-07-15 Jason Rumney <jasonr@gnu.org>
8363
8364 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8365 (w32_show_hourglass): Rename from show_hourglass.
8366 (w32_hide_hourglass): Rename from hide_hourglass.
8367 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8368 (Vhourglass_delay): Declare extern.
8369 (hourglass_started): Remove.
8370
8371 * xdisp.c (Vhourglass_delay): Remove static.
8372 (hourglass_started, start_hourglass, cancel_hourglass):
8373 Don't include these versions on WINDOWSNT.
8374
83752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8376
8377 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8378 variables (formerly in xfns.c).
8379 (show_hourglass, hide_hourglass): New prototypes (same).
8380 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8381 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8382 in xfns.c).
8383 (syms_of_xdisp): Declare/initialize display-hourglass,
8384 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8385 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8386 formerly in xfns.c.
8387 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8388 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8389 (start_hourglass, cancel_hourglass): Remove.
8390 (show_hourglass, hide_hourglass): Remove prototypes and static
8391 modifiers.
8392 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8393 hourglass_atimer, hourglass_shown_p declaration/initialization.
8394 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8395 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8396 (start_hourglass, cancel_hourglass): Remove.
8397 (show_hourglass, hide_hourglass): Remove prototypes and static
8398 modifiers.
8399 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8400 hourglass_atimer, hourglass_shown_p declaration/initialization.
8401 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8402 (DEFAULT_HOURGLASS_DELAY): Remove.
8403 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8404 hourglass_shown_p declaration/initialization.
8405
84062008-07-14 Jason Rumney <jasonr@gnu.org>
8407
8408 * w32fns.c (w32_get_arg): Remove wrapper function.
8409 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8410 directly.
8411 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8412
84132008-07-14 Kenichi Handa <handa@m17n.org>
8414
8415 * xfont.c (xfont_open): Add workaround for X's bug.
8416
84172008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8418
8419 * fontset.c: Include <stdio.h> unconditionally.
8420
84212008-07-13 Michael Albinus <michael.albinus@gmx.de>
8422
8423 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8424 for filtering.
8425
84262008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8427
8428 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8429
8430 * m/macppc.h:
8431 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8432
8433 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8434 (SPECIAL_EMACS_INT):
8435 * m/ia64.h (SPECIAL_EMACS_INT):
8436 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8437 * s/gnu.h (NLIST_STRUCT):
8438 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8439 * s/gnu-linux.h (LINUX):
8440 * s/msdos.h (HAVE_FACES):
8441 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8442
8443 * systty.h:
8444 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8445 anymore.
8446
84472008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8448
8449 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8450 always defined as int.
8451
8452 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8453 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8454 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8455 * s/freebsd.h (HAVE_WAIT_HEADER):
8456 * s/bsd-common.h (HAVE_UNION_WAIT):
8457 * s/aix4-2.h (HAVE_WAIT_HEADER):
8458 * m/mips.h (HAVE_UNION_WAIT):
8459 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8460 (COFF, static): Do not define, they are undefined later in the file.
8461
8462 * process.c (update_status): Don't use a union.
8463 (status_convert):
8464 (sigchld_handler): Use int instead of WAITTYPE.
8465
84662008-07-12 Chong Yidong <cyd@stupidchicken.com>
8467
8468 * indent.c (Fvertical_motion): Restore hscroll before moving to
8469 goal column.
8470
84712008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8472
8473 * lisp.h: Remove left over code.
8474
84752008-07-11 Andreas Schwab <schwab@suse.de>
8476
8477 * lisp.h: Fix logic in last change.
8478
8479 * menu.h: New file.
8480 * menu.c: Include it.
8481 * xmenu.c: Likewise.
8482 * Makefile.in: Update dependencies.
8483
84842008-07-11 Kenichi Handa <handa@m17n.org>
8485
8486 * fontset.c (fontset_from_font): Cancel the previous change.
8487
84882008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8489
8490 * lisp.h:
8491 * w32heap.c:
8492 * emacs.c:
8493 * alloc.c: Replace all references of NO_UNION_TYPE with
8494 USE_LISP_UNION_TYPE.
8495
8496 * m/xtensa.h (NO_UNION_TYPE):
8497 * m/vax.h (NO_UNION_TYPE):
8498 * m/template.h (NO_UNION_TYPE):
8499 * m/sparc.h (NO_UNION_TYPE):
8500 * m/mips.h (NO_UNION_TYPE):
8501 * m/macppc.h (NO_UNION_TYPE):
8502 * m/m68k.h (NO_UNION_TYPE):
8503 * m/iris4d.h (NO_UNION_TYPE):
8504 * m/intel386.h (NO_UNION_TYPE):
8505 * m/ibms390x.h (NO_UNION_TYPE):
8506 * m/ibms390.h (NO_UNION_TYPE):
8507 * m/ibmrs6000.h (NO_UNION_TYPE):
8508 * m/ia64.h (NO_UNION_TYPE):
8509 * m/hp800.h (NO_UNION_TYPE):
8510 * m/arm.h (NO_UNION_TYPE):
8511 * m/amdx86-64.h (NO_UNION_TYPE):
8512 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8513 defining it the same.
8514
85152008-07-10 Chong Yidong <cyd@stupidchicken.com>
8516
8517 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8518
85192008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8520
8521 * fileio.c:
8522 * sysdep.c
8523 * systty.h:
8524 * m/ibmrs6000.h:
8525 * m/iris4d.h:
8526 * s/aix4-2.h:
8527 * s/freebsd.h:
8528 * s/gnu-linux.h:
8529 * s/hpux10-20.h:
8530 * s/hpux11.h:
8531 * s/netbsd.h:
8532 * s/sol2-3.h:
8533 * s/sol2-4.h:
8534 * s/sol2.h:
8535 * s/usg5-4.h:
8536 * s/vms.h: Remove references to unused variables.
8537
85382008-07-10 Andreas Schwab <schwab@suse.de>
8539
8540 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8541 pattern before matching the generic family.
8542
85432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8544
8545 * unexec.c:
8546 * s/vms.h:
8547 * s/usg5-4-2.h:
8548 * s/sol2-5.h:
8549 * s/freebsd.h:
8550 * s/darwin.h: Remove dead code.
8551
8552 * m/template.h:
8553 * m/sparc.h:
8554 * m/mips.h:
8555 * m/m68k.h:
8556 * m/iris4d.h:
8557 * m/intel386.h:
8558 * m/ibms390x.h:
8559 * m/ibms390.h:
8560 * m/ia64.h:
8561 * m/hp800.h:
8562 * m/arm.h:
8563 * m/amdx86-64.h: Remove dead code and references to unused
8564 and compiler defined symbols.
8565
8566 * unexmips.c:
8567 * unexelf.c: Remove references to desupported systems.
8568
8569 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8570
8571 * m/powermac.h: Remove boilerplate comments.
8572 (NO_REMAP): Remove unused definition.
8573
8574 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8575 define them.
8576
85772008-07-10 Kenichi Handa <handa@m17n.org>
8578
8579 * xfont.c (xfont_open): Log the reason of failure.
8580
85812008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8582
8583 * fontset.c (fontset_get_font_group):
8584 * font.c (font_check_otf): Specify argument types.
8585
85862008-07-09 Kenichi Handa <handa@m17n.org>
8587
8588 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8589 non-ASCII char is found.
8590
8591 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8592 (reorder_font_vector): Change the arg preferred_family to font.
8593 Prefer the spec matching with font.
8594 (fontset_get_font_group): New function.
8595 (fontset_find_font): Change the format of an element of a realized
8596 fontset. Use fontset_get_font_group.
8597 (fontset_font): Try the current fontset, the default fontset, the
8598 fallbacks of the current fontset, and the fallbacks of the default
8599 fontset in this order.
8600 (face_for_char): Delete the shortcut to use the current font.
8601 (fontset_from_font): Don't set fonts for Latin in the fontset.
8602
8603 * font.h (font_make_object, font_match_p): Adjust prototypes.
8604
8605 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8606
8607 * font.c (font_make_object): New arg entity and pixelsize.
8608 (font_check_otf_features, font_check_otf): New functions.
8609 (font_match_p): Check :lang, :script, and :otf properties.
8610
8611 * xfont.c (xfont_open): Adjust it for the change of
8612 font_make_object.
8613 (xfont_text_extents): Fix initial setting of metrics.
8614
8615 * ftfont.c (struct ftfont_info): New member index, delete member
8616 fc_charset_idx. Make the member order compatible with struct
8617 xftfont_info.
8618 (fc_charset_table): Change charset names to registry names.
8619 (ftfont_pattern_entity): Delete the args registry and
8620 fc_charset_idx. Change the value of :font-entity property
8621 to (FONTNAME . INDEX). Always set :registry property to
8622 `iso10646-1'.
8623 (struct ftfont_cache_data): New struct.
8624 (ftfont_lookup_cache): New arg for_face.
8625 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8626 (ftfont_driver): Set the member otf_capability.
8627 (ftfont_get_charset): Adjust it for the change of
8628 fc_charset_table.
8629 (OTF_TAG_SYM): New macro.
8630 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8631 for the change of fc_charset_table.
8632 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8633 ftfont_pattern_entity. Add FC_INDEX to objset.
8634 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8635 and ftfont_pattern_entity.
8636 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8637 font_make_object, struct ftfont_info.
8638 (ftfont_has_char): Use ftfont_get_fc_charset.
8639 (ftfont_otf_features, ftfont_otf_capability): New functions.
8640 (ftfont_shape): Use ftfont_get_otf.
8641 (ftfont_text_extents): Fix initial setting of metrics.
8642
8643 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8644 member order compatible with struct ftfont_info.
8645 (xftfont_open): Add FC_CHARSET to the pattern. Set
8646 xftfont_info->ft_size. Don't unlock the face. Check BDF
8647 properties if appropriate.
8648 (xftfont_close): Unlock the face.
8649 (xftfont_anchor_point, xftfont_shape): Deleted.
8650 (syms_of_xftfont): Don't set members anchor_point and shape of
8651 xftfont_driver.
8652
8653 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8654 font_make_object.
8655
8656 * w32font.c (w32font_open): Adjust it for the change of
8657 font_make_object.
8658 (w32font_open_internal): Don't set properties of font_object here.
8659
86602008-07-08 Chong Yidong <cyd@stupidchicken.com>
8661
8662 * macfns.c (x_create_tip_frame):
8663 * w32fns.c (x_create_tip_frame):
8664 * xfns.c (x_create_tip_frame): Pass parameter argument to
8665 face-set-after-frame-default.
8666
8667 * xfaces.c (Finternal_merge_in_global_face): Save merged
8668 attributes for the default face back into the face vector.
8669
86702008-07-08 Andreas Schwab <schwab@suse.de>
8671
8672 * fontset.h: Declare fontset_from_font. Don't declare
8673 new_fontset_from_font and fontset_from_font_name.
8674 * xterm.c: Include "fontset.h".
8675 * Makefile.in (xterm.o): Update dependencies.
8676
86772008-07-08 Glenn Morris <rgm@gnu.org>
8678
8679 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8680 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8681
86822008-07-07 Chong Yidong <cyd@stupidchicken.com>
8683
8684 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8685 (x_set_frame_parameters): Don't bind it.
8686
86872008-07-07 Juanma Barranquero <lekktu@gmail.com>
8688
8689 * w32fns.c (map_w32_filename): Declare extern.
8690
86912008-07-07 Jason Rumney <jasonr@gnu.org>
8692
8693 * w32term.c (WS_EX_LAYERED): Define if not already.
8694
86952008-07-06 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * xfaces.c (set_font_frame_param): Don't try to set the font
8698 parameter if it is still unspecified in the lface.
8699
87002008-07-05 Chong Yidong <cyd@stupidchicken.com>
8701
8702 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8703 face if it didn't already exist.
8704
8705 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8706
87072008-07-05 Andreas Schwab <schwab@suse.de>
8708
8709 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8710
87112008-07-05 Chong Yidong <cyd@stupidchicken.com>
8712
8713 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8714 word-wrapping.
8715 (IT_DISPLAYING_WHITESPACE): New macro.
8716 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8717 when word-wrapping. Simplify word-wrapping logic. Use correct
8718 pixel positions when saving copies of the iterator.
8719 (display_line): Use proper wrap point if the last character on a
8720 line was preceded by whitespace.
8721
87222008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8723
8724 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8725
87262008-07-04 Kenichi Handa <handa@m17n.org>
8727
8728 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8729
8730 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8731
87322008-07-02 Jason Rumney <jasonr@gnu.org>
8733
8734 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8735 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8736
8737 * xdisp.c (next_element_from_display_vector): Move assignment out
8738 of if statement.
8739
87402008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8741
8742 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8743
8744 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8745 (syms_of_fileio): Initialize and export them.
8746 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8747
8748 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8749 (Fsystem_move_file_to_trash): New function.
8750 (syms_of_w32fns): Export it to lisp.
8751
87522008-07-01 Jason Rumney <jasonr@gnu.org>
8753
8754 * w32font.c (w32font_text_extents): Don't count overhang as part
8755 of width.
8756
87572008-06-30 Miles Bader <miles@gnu.org>
8758
8759 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8760 Add `avoid_cursor_p' field.
8761
8762 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8763 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8764 (append_glyph, append_composite_glyph, produce_image_glyph)
8765 (append_stretch_glyph): Initialize avoid_cursor_p.
8766 (get_it_property): Rename from `get_line_height_property'.
8767 (x_produce_glyphs): Use get_it_property.
8768 (handle_line_prefix, push_display_prop): New functions.
8769 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8770 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8771 New variables.
8772 (syms_of_xdisp): Initialize them.
8773
87742008-06-30 Kenichi Handa <handa@m17n.org>
8775
8776 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8777 XftDefaultSubstitute (they are called in XftFontMatch).
8778 (xftfont_open): Fix args to ftfont_font_format.
8779
8780 * ftfont.c (fc_charset_table): New member lang.
8781 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8782 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8783 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8784 (ftfont_open): Fix args to ftfont_font_format.
8785 (ftfont_font_format): New arg filename.
8786
87872008-06-30 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * xfaces.c (Finternal_merge_in_global_face): If default face was
8790 modified, realize it again. Update the font face attribute.
8791
87922008-06-29 Jason Rumney <jasonr@gnu.org>
8793
8794 * w32term.c (x_set_frame_alpha): Fix logic.
8795
87962008-06-29 Kenichi Handa <handa@m17n.org>
8797
8798 * fontset.c (Finternal_char_font): Return font-object instead of
8799 font-name.
8800
8801 * composite.c (get_composition_id): Fix the width calculation for TAB.
8802
88032008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8804
8805 * indent.c (Fvertical_motion): Properly handle float column arg.
8806
88072008-06-28 Jason Rumney <jasonr@gnu.org>
8808
8809 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8810 (pfnSetLayeredWindowAttributes): New function pointer.
8811 (w32_initialize): Initialize it when supported.
8812 (x_set_frame_alpha): New function.
8813
8814 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8815 (w32_frame_parm_handlers): Set alpha handler.
8816
8817 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8818
88192008-06-27 Jason Rumney <jasonr@gnu.org>
8820
8821 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8822 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8823 (w32_to_x_charset, x_to_w32_charset)
8824 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8825 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8826 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8827 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8828 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8829 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8830 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8831 (Qw32_charset_unicode): Remove.
8832 (syms_of_w32fns): Update for above changes.
8833
8834 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8835 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8836 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8837 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8838 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8839 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8840 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8841 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8842 (syms_of_w32font): Update for above changes.
8843
88442008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8845
8846 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8847 removed #if.
8848 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8849
88502008-06-26 Juanma Barranquero <lekktu@gmail.com>
8851 Eli Zaretskii <eliz@gnu.org>
8852
8853 * makefile.w32-in (LOCAL_FLAGS):
8854 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8855
8856 * sysdep.c (_spawnlp, _getpid):
8857 Declare with explicit _cdecl instead of _CRTAPI1.
8858
8859 * editfns.c (Fget_internal_run_time):
8860 Check for WINDOWSNT with #ifdef, not #if.
8861
88622008-06-26 Jason Rumney <jasonr@gnu.org>
8863
8864 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8865
8866 * w32term.c (x_draw_glyph_string_foreground)
8867 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8868 Use FONT_HANDLE macro.
8869 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8870
8871 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8872 (uniscribe_encode_char): Use FONT_HANDLE macro.
8873
8874 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8875 (w32font_text_extents): Use precast w32_font.
8876 (w32font_close): Free cached metrics.
8877 (w32font_open_internal): Allocate space for name on stack.
8878
88792008-06-26 Chong Yidong <cyd@stupidchicken.com>
8880
8881 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8882
88832008-06-26 Jason Rumney <jasonr@gnu.org>
8884
8885 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8886 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8887
88882008-06-26 Juanma Barranquero <lekktu@gmail.com>
8889
8890 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8891
88922008-06-26 Jason Rumney <jasonr@gnu.org>
8893
8894 * w32bdf.c, w32bdf.h: Remove obsolete files.
8895
8896 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8897
8898 * w32gui.h: Don't include w32bdf.h.
8899 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8900 Remove obsolete font support.
8901
8902 * w32font.h (struct w32font_info): Remove compat_w32_font.
8903 Add hfont member.
8904 (FONT_COMPAT): Remove obsolete macro.
8905
8906 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8907 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8908 (w32font_open_internal): Remove compat code. Set new hfont member.
8909 (Fx_select_font): Use new hfont member.
8910
8911 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8912 (uniscribe_encode_char): Use new hfont member.
8913
8914 * w32term.c (x_draw_glyph_string_foreground)
8915 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8916 (x_draw_glyph_string): Use metrics in w32font_info.
8917
89182008-06-26 Kenichi Handa <handa@m17n.org>
8919
8920 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8921
89222008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8923
8924 * unexnext.c:
8925 * m/ews4800.h:
8926 * m/hp9000s300.h:
8927 * m/ibm370aix.h:
8928 * m/mips-siemens.h:
8929 * m/ncr386.h:
8930 * m/next.h:
8931 * m/pmax.h:
8932 * m/powerpcle.h:
8933 * m/tandem-s2.h:
8934 * s/386bsd.h:
8935 * s/bsd386.h:
8936 * s/bsd4-1.h:
8937 * s/bsd4-2.h:
8938 * s/bsdos2-1.h:
8939 * s/bsdos2.h:
8940 * s/bsdos3.h:
8941 * s/bsdos4.h:
8942 * s/nextstep.h:
8943 * s/ultrix4-3.h:
8944 * s/usg5-0.h:
8945 * s/usg5-2-2.h:
8946 * s/usg5-2.h:
8947 * s/usg5-4-3.h:
8948 * s/ux4800.h:
8949 * s/uxpds.h:
8950 * s/uxpv.h: Remove support for obsolete systems.
8951 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8952 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8953 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8954 Remove, insert contents in s/aix4-2.h.
8955 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8956 * s/bsd4-3.h: Rename to ...
8957 * s/bsd-common.h: ... this.
8958 * data.c:
8959 * doc.c:
8960 * ecrt0.c:
8961 * emacs.c:
8962 * fileio.c:
8963 * floatfns.c:
8964 * keyboard.c:
8965 * mem-limits.h:
8966 * print.c:
8967 * process.c:
8968 * sysdep.c:
8969 * syssignal.h:
8970 * systty.h:
8971 * syswait.h:
8972 * term.c:
8973 * unexec.c:
8974 * unexelf.c:
8975 * unexhp9k800.c:
8976 * m/hp800.h:
8977 * m/ibmrs6000.h:
8978 * m/mips.h:
8979 * m/vax.h:
8980 * s/darwin.h:
8981 * s/freebsd.h:
8982 * s/gnu.h:
8983 * s/ms-w32.h:
8984 * s/msdos.h:
8985 * s/netbsd.h:
8986 * s/template.h: Remove references to obsolete variables.
8987
8988 * Makefile.in: Add dependencies for all unexec files.
8989 (admindir): Remove unused variable.
8990 (UNEXEC_SRC): Remove references.
8991
89922008-06-25 Chong Yidong <cyd@stupidchicken.com>
8993
8994 * xfns.c (x_default_font_parameter): If Xft is available, first
8995 try Monospace-12 for the default font.
8996
89972008-06-25 Jason Rumney <jasonr@gnu.org>
8998
8999 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9000
90012008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9002
9003 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9004
9005 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9006
90072008-06-25 Juanma Barranquero <lekktu@gmail.com>
9008
9009 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9010 <scroll-conservatively>: Fix typo in docstring.
9011
9012 * xselect.c (Fx_send_client_event): Doc fix.
9013
90142008-06-25 Kenichi Handa <handa@m17n.org>
9015
9016 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9017
9018 * font.c (font_parse_fcname): Remove unused variables.
9019 (font_sort_entites): Delete the arg SPEC. Caller changed.
9020 Fix for the case of ! best_only.
9021 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9022
9023 * lisp.h (Fstring_to_unibyte): EXFUN it.
9024
9025 * character.h (str_to_unibyte): Extern it.
9026
9027 * character.c (str_to_unibyte): New function.
9028
9029 * fns.c (Fstring_to_unibyte): New function.
9030 (syms_of_fns): Defsubr it.
9031
90322008-06-24 Kenichi Handa <handa@m17n.org>
9033
9034 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9035 DPI too.
9036 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9037
90382008-06-24 Andreas Schwab <schwab@suse.de>
9039
9040 * Makefile.in (${lispsource}loaddefs.el): Rename from
9041 ../lisp/loaddefs.el.
9042 (bootstrap-clean): Do what distclean does but don't remove
9043 Makefile.
9044 (distclean): Depend on bootstrap-clean and remove Makefile.
9045
90462008-06-24 Chong Yidong <cyd@stupidchicken.com>
9047
9048 * buffer.h (struct buffer): New member word_wrap.
9049
9050 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9051 word-wrap.
9052 (init_buffer_once): Initialize them.
9053
9054 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9055 line_wrap enum possessing three possible values.
9056
9057 * termopts.h: Replace truncate_partial_width_windows with
9058 Vtruncate_partial_width_windows.
9059
9060 * dispnew.c (direct_output_for_insert): Avoid direct output when
9061 inserting a space with word wrap on.
9062
9063 * indent.c (compute_motion): Obey integer values of
9064 truncate-partial-width-windows.
9065
9066 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9067 replacing truncate_partial_width_windows.
9068 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9069 truncate only if the window width is below that integer.
9070 (start_display, resize_mini_window, produce_stretch_glyph)
9071 (display_string, move_it_in_display_line_to): Use line_wrap.
9072 (back_to_previous_visible_line_start, reseat_1): Reset
9073 string_from_display_prop_p.
9074 (display_line): Extend default face to end of line when wrapping.
9075
90762008-06-24 Kim F. Storm <storm@cua.dk>
9077
9078 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9079 to wrap continued lines at word boundaries.
9080
90812008-06-24 Jason Rumney <jasonr@gnu.org>
9082
9083 * font.c (Ffont_face_attributes): Multiply pixel size before point
9084 conversion to avoid multiplying rounding error.
9085
90862008-06-23 Jason Rumney <jasonr@gnu.org>
9087
9088 * w32term.c (x_draw_glyph_string_background)
9089 (x_draw_glyph_string): Remove old bdf font code.
9090
9091 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9092
90932008-06-22 Kenichi Handa <handa@m17n.org>
9094
9095 * font.c (font_find_for_lface): Try the adstyle specified in
9096 the property of LFACE_FONT of LFACE (if any).
9097
90982008-06-21 Seiji Zenitani <zenitani@mac.com>
9099 Ryo Yoshitake <ryo@shiftmode.net>
9100
9101 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9102
91032008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9104
9105 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9106 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9107 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9108 (witness-emacs): Remove.
9109 (lisp, shortlisp): Move loaddefs.el earlier.
9110 (mostlyclean): Forget about witness-emacs.
9111
91122008-06-22 Glenn Morris <rgm@gnu.org>
9113
9114 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9115 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9116
91172008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9118
9119 * Makefile.in (PRECOMP): Remove.
9120 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9121 (witness-emacs): Run `compile-first'.
9122 (.el.elc): Use the new compile-onefile target.
9123
91242008-06-21 Kenichi Handa <handa@m17n.org>
9125
9126 * xftfont.c (xftfont_open): Handle QCembolden only when
9127 FC_EMBOLDEN is defined.
9128
91292008-06-21 Andreas Schwab <schwab@suse.de>
9130
9131 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9132 (.el.elc): Likewise.
9133
91342008-06-21 Miles Bader <miles@gnu.org>
9135
9136 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9137 build dir, not the lisp source dir.
9138
91392008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9140
9141 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9142 (bootstrapclean): Remove.
9143 (.el.elc): New rule.
9144 (PRECOMP): New var.
9145 (../lisp/subdirs.el): Remove.
9146 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9147 (witness-emacs): New target.
9148 (mostlyclean): Remove witness-emacs as well.
9149 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9150 Add witness-emacs dependency.
9151
91522008-06-20 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9155 defined by the font.
9156
91572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9158
9159 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9160 (bootstrap-clean): New target that keeps TAGS around.
9161 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9162 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9163
91642008-06-20 Jason Rumney <jasonr@gnu.org>
9165
9166 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9167 Remove obsolete font code.
9168
9169 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9170 to determine language support.
9171
91722008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9173
9174 * sysdep.c (cfsetspeed): New fun extracted from the code.
9175 (cfmakeraw): Move before first use.
9176
91772008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9178
9179 * sysdep.c (cfmakeraw): Provide fallback implementation.
9180 (serial_configure): Provide fallback implementation of cfsetspeed.
9181
91822008-06-20 Kenichi Handa <handa@m17n.org>
9183
9184 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9185 the pattern.
9186
9187 * fontset.c (fontset_from_font): Copy font_spec before changing
9188 the elements.
9189
9190 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9191
91922008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9193
9194 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9195 for explicit `font' parameters.
9196
9197 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9198
91992008-06-19 Kenichi Handa <handa@m17n.org>
9200
9201 * frame.c: Include <ctype.h>.
9202 (x_set_font_backend): Allow spacing characters in the X resource
9203 for FontBackend.
9204
92052008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9206
9207 * w32fns.c, xfns.c (Qfont_param): New var.
9208 (syms_of_w32fns): Initialize it.
9209 (x_default_font_parameter): Record explicit `font' into
9210 `font-parameter'.
9211
92122008-06-18 Kenichi Handa <handa@m17n.org>
9213
9214 * font.c (font_parse_xlfd): Fix previous change.
9215 (font_parse_fcname): Don't use :fc-unknown-spec.
9216 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9217 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9218 (font_add_log): Prepend the driver name to the resulting fonts.
9219
9220 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9221 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9222 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9223
9224 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9225 (QCembolden): New variables.
9226 (syms_of_xftfont): DEFSYM them.
9227 (xftfont_open): Call XftFontMatch. Don't trust the result of
9228 XftTextExtents8 if the pixel_size is less than 5.
9229
92302008-06-18 Andreas Schwab <schwab@suse.de>
9231
9232 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9233 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9234
92352008-06-18 Jason Rumney <jasonr@gnu.org>
9236
9237 * w32font.c (w32font_list, w32font_match): Add logging.
9238
9239 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9240
92412008-06-17 Chong Yidong <cyd@stupidchicken.com>
9242
9243 * font.c (font_parse_fcname): Store divider characters for
9244 unknown-spec list. For known key symbols, intern using correct
9245 symbol name.
9246
92472008-06-17 Kenichi Handa <handa@m17n.org>
9248
9249 * xfaces.c (realize_default_face): If the frame is not on window
9250 system, set the fontset of face to nil.
9251
92522008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9253
9254 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9255
92562008-06-16 Juanma Barranquero <lekktu@gmail.com>
9257
9258 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9259 (build_font_name_from_vector): Delete externs.
9260
9261 * xfaces.c (struct font_name): Don't declare.
9262
92632008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9264
9265 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9266
92672008-06-16 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9270
92712008-06-16 Juanma Barranquero <lekktu@gmail.com>
9272
9273 * font.c (Ffont_spec): Fix usage in docstring.
9274 (Ffont_face_attributes): Doc fix.
9275
92762008-06-16 Andreas Schwab <schwab@suse.de>
9277
9278 * font.c (Ffont_face_attributes): Fix definition.
9279
92802008-06-16 Jason Rumney <jasonr@gnu.org>
9281
9282 * font.h (font_style_symbolic_from_value): Remove.
9283
9284 * font.c (font_style_symbolic_from_value): Remove.
9285 (font_style_symbolic): Revert to pre 2008-06-13 version.
9286
9287 * w32font.c (w32_to_fc_weight): New function.
9288 (w32font_full_name, logfont_to_fcname): Use it.
9289
92902008-06-16 Kenichi Handa <handa@m17n.org>
9291
9292 * font.c (font_check_object): Delete it.
9293 (font_clear_cache): Check if a font-object is alive.
9294 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9295 font-object to nil.
9296 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9297 (font_at): Don't call font_check_object.
9298 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9299
93002008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9301
9302 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9303
93042008-06-16 Chong Yidong <cyd@stupidchicken.com>
9305
9306 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9307
93082008-06-15 Chong Yidong <cyd@stupidchicken.com>
9309
9310 * font.c (font_parse_fcname): Only one decimal point.
9311 (font_unparse_fcname): Handle data in family and foundry indices
9312 as symbols, not strings.
9313 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9314
9315 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9316
9317 * font.h (font_unparse_gtkname): Add prototype.
9318
93192008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9320
9321 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9322
93232008-06-15 Andreas Schwab <schwab@suse.de>
9324
9325 * font.c (font_update_drivers): Fix crash when no drivers match.
9326
93272008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9328
9329 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9330 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9331
93322008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9333
9334 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9335
93362008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9337
9338 * process.c (Fserial_process_configure, Fprocess_send_eof):
9339 Use EQ to compare Lisp_Objects.
9340
93412008-06-13 Jason Rumney <jasonr@gnu.org>
9342
9343 * w32fns.c (Fw32_select_font): Remove old font API function.
9344
9345 * w32font.c (logfont_to_fcname): New function.
9346 (Fx_select_font): New font dialog function compatible with
9347 GTK/fontconfig version.
9348
9349 * font.c (font_style_symbolic_from_value): New function.
9350 (font_style_symbolic): Use it.
9351
9352 * font.h (font_style_symbolic_from_value): Declare new function.
9353
93542008-06-13 Juanma Barranquero <lekktu@gmail.com>
9355
9356 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9357 <font-width-table>: Fix typos in docstrings.
9358
93592008-06-13 Daniel Engeler <engeler@gmail.com>
9360
9361 These changes add serial port access.
9362 * process.c: Add HAVE_SERIAL.
9363 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9364 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9365 (list_processes_1, select_wrapper, Fstop_process)
9366 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9367 (status_notify): Modify to handle serial processes.
9368 [HAVE_SERIAL] (Fserial_process_configure)
9369 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9370 New functions.
9371 * process.h (struct Lisp_Process): Add `type'.
9372 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9373 New functions.
9374 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9375 serial ports.
b71ac3dd 9376 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9377 * w32.h: Add FILE_SERIAL.
9378 (struct _child_process): Add ovl_read, ovl_write.
9379
93802008-06-13 Kenichi Handa <handa@m17n.org>
9381
9382 * dispextern.h (enum lface_attribute_index): New member
9383 LFACE_FOUNDRY_INDEX.
9384
9385 * font.c (font_score): Delete arg alternate_families. Check only
9386 weight, slant, width, and size. Ignore the difference of alias
9387 style symbols.
9388 (font_sort_entites): Adjust for the above change. Reflect the
9389 order of font-driver to scores.
9390 (font_list_entities): Don't check alternate_familes here.
9391 (font_clear_prop): Handle foundry.
9392 (font_update_lface): Don't parse "foundry-family" form here.
9393 Handle FONT_FOUNDRY_INDEX.
9394 (font_find_for_lface): Likewise. Handle alternate families here.
9395 If registry is nil, try iso8859-1 and ascii-0.
9396 (font_open_for_lface): Pay attention to size in ENTITY.
9397 (font_open_by_name): Simplify by calling font_load_for_lface.
9398 (free_font_driver_list): Delete it.
9399 (font_update_drivers): Preserve the order of backends.
9400 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9401 of font_score and font_sort_entites.
9402 (font_update_sort_order): Likewise.
9403
9404 * xfaces.c (LFACE_FOUNDRY): New macro.
9405 (check_lface_attrs): Check foundry.
9406 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9407 (merge_face_vectors): Check foundry.
9408 (merge_face_ref): Likewise.
9409 (Finternal_set_lisp_face_attribute): Likewise.
9410 (x_update_menu_appearance): Likewise.
9411 (Finternal_get_lisp_face_attribute): Likewise.
9412 (lface_hash): Likewise.
9413 (lface_same_font_attributes_p): Likewise.
9414 (x_supports_face_attributes_p): Likewise.
9415 (tty_supports_face_attributes_p): Likewise.
9416 (Finternal_set_alternative_font_family_alist): Intern strings.
9417 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9418 (realize_default_face): Set LFACE_FOUNDRY (lface).
9419
9420 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9421 font-driver at first.
9422
9423 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9424
94252008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9426
9427 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9428
94292008-06-12 Jim Meyering <meyering@redhat.com>
9430
9431 Make unexec_free handle NULL the same way free does.
9432 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9433
94342008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9435
9436 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9437 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9438 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9439 (WEAK_ALIAS): Simplify.
9440 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9441 when searching a unibyte buffer.
9442
94432008-06-12 Chong Yidong <cyd@stupidchicken.com>
9444
9445 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9446
94472008-06-12 Juanma Barranquero <lekktu@gmail.com>
9448
9449 * w32font.c: Include ctype.h.
9450
94512008-06-11 Jason Rumney <jasonr@gnu.org>
9452
9453 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9454 misreported as space.
9455 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9456 as aliases for registry iso10646-1.
9457
94582008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9459
9460 * buffer.c (clone_per_buffer_values): Skip `name'.
9461
94622008-06-11 Chong Yidong <cyd@stupidchicken.com>
9463
9464 * font.c (font_parse_fcname): Fix last change; accept decimal
9465 points in font size.
9466
94672008-06-10 Jason Rumney <jasonr@gnu.org>
9468
9469 * w32uniscribe.c (add_opentype_font_name_to_list):
9470 Skip non unicode fonts.
9471
94722008-06-10 Chong Yidong <cyd@stupidchicken.com>
9473
9474 * xfns.c (Fx_font_dialog): New function.
9475
9476 * gtkutil.c (xg_dialog_response_cb): Rename from
9477 xg_file_response_callback.
9478 (pop_down_dialog): Rename from pop_down_file_dialog.
9479 (xg_get_file_name): Callers changed.
9480 (xg_get_font_name): New function.
9481
9482 * gtkutil.h (xg_get_font_name): Insert prototype.
9483
94842008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9485
9486 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9487 x_underline_minimum_display_offset.
9488 (syms_of_xdisp): Declare it here rather than in xterm.c.
9489 * dispextern.h (underline_minimum_offset): Declare it.
9490 * w32term.c (x_draw_glyph_string): Use it.
9491 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9492 (syms_of_xterm): Don't declare it any more.
9493 (x_draw_glyph_string): Adjust to the new name.
9494
8719abec 94952008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9496
9497 * xterm.c (x_underline_minimum_display_offset): New var.
9498 (x_draw_glyph_string): Use it.
9499 (syms_of_xterm): Declare it.
9500
95012008-06-10 Chong Yidong <cyd@stupidchicken.com>
9502
9503 * font.c (font_parse_fcname): Accept GTK-style font names too.
9504
95052008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9506
9507 * dired.c (file_name_completion): Don't return t if the match is exact
9508 but with different capitalization.
9509 * minibuf.c (Ftry_completion): Simplify.
9510
9511 * window.c (Vwindow_point_insertion_type): New var.
9512 (set_window_buffer): Use it.
9513 (syms_of_window): Init and export it to Lisp.
9514
95152008-06-10 Kenichi Handa <handa@m17n.org>
9516
9517 * font.h (font_intern_prop): Prototype adjusted.
9518
9519 * font.c (font_intern_prop): New arg force_symbol.
9520 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9521 Adjust for the change of font_intern_prop.
9522
9523 * ftfont.c (ftfont_pattern_entity):
9524 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9525 (w32_registry):
9526 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9527 the change of font_intern_prop.
9528
95292008-06-09 Juanma Barranquero <lekktu@gmail.com>
9530
9531 * w32menu.c (digest_single_submenu): Declare extern.
9532
95332008-06-09 Jason Rumney <jasonr@gnu.org>
9534
9535 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9536
9537 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9538 (parse_single_submenu): Remove.
9539 (digest_single_submenu): Remove.
9540 (syms_of_w32menu): Don't initialise variables that have moved
9541 to menu.c.
9542 (set_frame_menubar): Sync with version in xmenu.c.
9543 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9544
9545 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9546 Make static again.
9547
95482008-06-09 Jason Rumney <jasonr@gnu.org>
9549
9550 Changes to w32 files related to the move of common menu code
9551 to menu.c on 2008-06-08 by Chong Yidong.
9552
9553 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9554 defs to w32gui.h.
9555 (single_keymap_panes, push_menu_item, push_menu_pane):
9556 Make globally visible.
9557
9558 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9559 (local_free, malloc_widget_value, free_widget_value)
9560 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9561 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9562 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9563 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9564 (menu_items, menu_items_allocated, menu_items_used)
9565 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9566 (init_menu_items, finish_menu_items, discard_menu_items)
9567 (grow_menu_items, push_submenu_start, push_submenu_end)
9568 (push_left_right_boundary, push_menu_pane, push_menu_item)
9569 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9570 (free_menubar_widget_tree_value, parse_single_submenu)
9571 (update_submenu_strings): Remove functions.
9572 (xmalloc_widget_value): Remove and declare extern.
9573
9574 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9575 (OBJ1): Build it.
9576
9577 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9578 (local_heap, local_alloc, local_free, malloc_widget_value)
9579 (free_widget_value): Define here.
9580
95812008-06-09 Kenichi Handa <handa@m17n.org>
9582
9583 * font.h (Qascii_0): Extern it.
9584
9585 * font.c (Qascii_0): New variable.
9586 (syms_of_font): DEFSYM it.
9587 (font_open_by_name): If the registry "iso8859-1" fails, try also
9588 "ascii-0".
9589
9590 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9591
95922008-06-08 Kenichi Handa <handa@m17n.org>
9593
9594 * .gdbinit (xfont): New command.
9595
95962008-06-08 Andreas Schwab <schwab@suse.de>
9597
9598 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9599 * Makefile.in (menu.o): Update dependencies.
9600
9601 * Makefile.in (obj): Always add menu.o.
9602 * emacs.c (main): Always call syms_of_menu.
9603 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9604
96052008-06-08 Chong Yidong <cyd@stupidchicken.com>
9606
9607 * Makefile.in: Compile menu.c.
9608
9609 * lisp.h: Declare syms_of_menu.
9610
9611 * emacs.c (main): Call syms_of_menu.
9612
9613 * keyboard.h: Relocate platform-independent menu definitions from
9614 xmenu.c.
9615
9616 * menu.c: New file. Relocate platform-independent menu
9617 definitions from xmenu.c. Suggested by Adrian Robert.
9618
9619 * xmenu.c: Remove platform-independent menu definitions.
9620 (menu_items menu_items_inuse, menu_items_allocated)
9621 (menu_items_used, menu_items_n_panes)
9622 (menu_items_submenu_depth): Move to keyboard.h.
9623 (init_menu_items, finish_menu_items, unuse_menu_items)
9624 (discard_menu_items, restore_menu_items, save_menu_items)
9625 (grow_menu_items, push_submenu_start, push_submenu_end)
9626 (push_left_right_boundary, push_menu_pane, push_menu_item)
9627 (keymap_panes, single_keymap_panes, single_menu_item)
9628 (list_of_panes, list_of_items, find_and_call_menu_selection)
9629 (xmalloc_widget_value, free_menubar_widget_value_tree)
9630 (parse_single_submenu, digest_single_submenu)
9631 (update_submenu_strings): Move to menu.c.
9632
96332008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9634
9635 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9636
96372008-06-06 Miles Bader <miles@gnu.org>
9638
9639 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9640 face, not frame default.
9641
96422008-06-05 Martin Rudalics <rudalics@gmx.at>
9643
9644 * window.c (pop_up_windows, pop_up_frames)
9645 (display_buffer_reuse_frames, Vpop_up_frame_function)
9646 (Vdisplay_buffer_function, Veven_window_heights)
9647 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9648 (Vspecial_display_function, Vsame_window_buffer_names)
9649 (Vsame_window_regexps, split_height_threshold)
9650 (Vsplit_window_preferred_function): Move those vars to window.el.
9651 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9652 (Fdisplay_buffer): Move those functions to window.el.
9653 (syms_of_window): Remove corresponding declarations.
9654 (display_buffer): New function.
9655 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9656 * dispnew.c (Flast_nonminibuf_frame): New function.
9657 * buffer.c (Fpop_to_buffer): Move to window.el.
9658
96592008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9660
9661 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9662
96632008-06-05 Kenichi Handa <handa@m17n.org>
9664
9665 * coding.c (detect_coding): Fix previous change.
9666 (detect_coding_system): Likewise.
9667
96682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9669
9670 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9671
9672 * keymap.c (Vminibuffer_local_filename_must_match_map):
9673 Rename from Vminibuffer_local_must_match_filename_map.
9674 (syms_of_keymap):
9675 * minibuf.c (Fcompleting_read): Adjust accordingly.
9676 * commands.h: Rename declaration as well.
9677
96782008-06-05 Kenichi Handa <handa@m17n.org>
9679
9680 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9681 family name.
9682 (Ffont_put): Likewise.
9683
9684 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9685 current font-spec.
9686
9687 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9688 is unspecified.
9689
9690 * xfaces.c (realize_x_face): If the font-related face attributes
9691 are the same as those of default face, realize a new fontset from
9692 default->fontset.
9693 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9694
96952008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9696
9697 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9698 (move_it_in_display_line): New wrapper.
9699
9700 * window.c (window_scroll_pixel_based_preserve_x)
9701 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9702 (window_scroll_pixel_based, window_scroll_line_based):
9703 Use them to preserve column positions.
9704 (syms_of_window): Initialize them.
9705
9706 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9707 (HPOS . VPOS) pair.
9708
9709 * dispextern.h (move_it_in_display_line): Declare.
9710
97112008-06-05 Juanma Barranquero <lekktu@gmail.com>
9712
9713 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9714 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9715 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9716
97172008-06-04 Juanma Barranquero <lekktu@gmail.com>
9718
9719 * window.c (Fset_window_parameter): Doc fix.
9720 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9721
97222008-06-04 Joakim Verona <joakim@verona.se>
9723
9724 * window.h (struct window): Add new member window_parameters.
9725
9726 * window.c (Fwindow_parameters, Fwindow_parameter)
9727 (Fset_window_parameter): New defuns.
9728 (syms_of_window): Defsubr the new defuns.
9729 (make_window): Initialize window_parameters to nil.
9730
97312008-06-04 John Paul Wallington <jpw@pobox.com>
9732
9733 * eval.c (Fdefmacro): Doc fix.
9734
97352008-06-04 Kenichi Handa <handa@m17n.org>
9736
9737 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9738 Be sure to call setup_coding_system when we find a proper coding system.
9739 (detect_coding_system): Fix handling of coding->head_ascii.
9740
97412008-06-03 Andreas Schwab <schwab@suse.de>
9742
9743 * font.c (font_prop_validate_spacing): Fix last change.
9744
97452008-06-03 Kenichi Handa <handa@m17n.org>
9746
9747 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9748 (font_parse_fcname): Fix handling of unknown key.
9749
9750 * xfont.c (xfont_list): Try an alias.
9751
9752 * charset.c (char_charset): Return NULL if the arg charset_list is
9753 specified and C doesn't belong to any of them.
9754
97552008-06-02 Chip Coldwell <coldwell@redhat.com>
9756
9757 * font.c (font_pixel_size): Don't take cdr of an integer.
9758
97592008-06-02 Jim Meyering <meyering@redhat.com>
9760
9761 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9762 * alloc.c (xfree): Return right away for a NULL arg.
9763 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9764 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9765 * mac.c (create_apple_event_from_event_ref): Likewise.
9766 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9767 Likewise.
9768 * doprnt.c (doprnt1): Likewise.
9769 * frame.c (frame): Likewise.
9770 * keyboard.c (wipe_kboard): Likewise.
9771 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9772 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9773 * term.c (tty_default_color_capabilities, maybe_fatal)
9774 (delete_tty): Likewise.
9775 * w16select.c (string): Likewise.
9776 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9777 * w32bdf.c (w32_free_bdf_font): Likewise.
9778 * w32fns.c (w32_unload_font): Likewise.
9779 * w32font.c (w32font_close): Likewise.
9780 * window.c (size_window): Likewise.
9781 * xselect.c (receive_incremental_selection): Likewise.
9782 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9783 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9784 * w32.c (stat): Likewise.
9785
9786 Remove useless if-before-free tests.
9787 * editfns.c (Fset_time_zone_rule): Likewise.
9788 * lread.c (nosuffix): Likewise.
9789 * ralloc.c (get_bloc): Likewise.
9790 * regex.c (reg_free): Likewise.
9791 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9792 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9793 * xsmfns.c (smc_save_yourself_CB): Likewise.
9794
97952008-06-02 Kenichi Handa <handa@m17n.org>
9796
9797 * font.c (font_find_for_lface): Handle float font size.
9798 (font_open_for_lface): Likewise.
9799
9800 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9801 comparing the properties.
9802
98032008-06-01 Jason Rumney <jasonr@gnu.org>
9804
9805 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9806 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9807 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9808 Don't add empty script list.
9809 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9810
98112008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9812
9813 * Makefile.in (dot, dotdot): Remove, update users.
9814 ".." has been used elsewhere in the file for a long time.
9815 (LIBXT_STATIC): Remove conditional based on unused variable.
9816
98172008-06-01 Miles Bader <miles@gnu.org>
9818
9819 * xfaces.c (Vface_remapping_alist): New variable.
9820 (syms_of_xfaces): Initialize it.
9821 (enum named_merge_point_kind): New type.
9822 (struct named_merge_point): Add `named_merge_point_kind' field.
9823 (push_named_merge_point): Make cycle detection respect different
9824 named-merge-point kinds.
9825 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9826 Remove face-name alias resolution.
9827 (lface_from_face_name): New definition using
9828 `lface_from_face_name_no_resolve'.
9829 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9830 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9831 (get_lface_attributes): New definition that layers face-remapping on
9832 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9833 (lookup_basic_face): New function.
9834 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9835 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9836 `get_lface_attributes'.
9837 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9838 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9839 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9840
9841 * xdisp.c (init_iterator): Pass base_face_id through
9842 `lookup_basic_face' when we actually use it as a face-id.
9843 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9844 DEFAULT_FACE_ID.
9845
9846 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9847 lookup the initial face-id.
9848
9849 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9850
98512008-06-01 Juanma Barranquero <lekktu@gmail.com>
9852
9853 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9854 (Fremove_text_properties): Fix typos in docstrings.
9855
98562008-05-31 Kenichi Handa <handa@m17n.org>
9857
9858 * font.c (font_list_entities): Fix the car part of data to be
9859 stored in the cache.
9860
9861 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9862
98632008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9864
9865 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9866 Add a `test' argument so another predicate than `equal' can be used.
9867 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9868 (map_char_table): Remove unused vars `c' and `i'.
9869 * lisp.h (Foptimize_char_table): Adjust declaration.
9870 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9871
98722008-05-30 Kenichi Handa <handa@m17n.org>
9873
9874 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9875 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9876 defined.
9877
98782008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9879
9880 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9881 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9882 frame-local settings for the same variable.
9883
98842008-05-30 Kenichi Handa <handa@m17n.org>
9885
9886 * fontset.c (Ffont_info): Move to font.c.
9887 (syms_of_fontset): Delete defsubr of Sfont_info.
9888
9889 * font.c (font_style_to_value, font_score): Delete casting of the
9890 args to xstcasecmp.
9891 (register_font_driver): Increment num_font_drivers only when
9892 registering the driver globally.
9893 (Ffont_info): Move from fontset.c. Handle a font object too.
9894 (syms_of_font): Defsubr Sfont_info.
9895
98962008-05-29 Kenichi Handa <handa@m17n.org>
9897
9898 * coding.h (enum define_coding_utf8_arg_index): New enum.
9899 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9900 coding_attr_utf_bom.
9901 (enum utf_bom_type): Rename from utf_16_bom_type.
9902 (struct utf_16_spec): Adjust for the above change.
9903 (struct coding_system): Add utf_8_bom in `spec' union.
9904
9905 * coding.c (CODING_UTF_8_BOM): New macro.
9906 (enum coding_category): Delete coding_category_utf_8, add
9907 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9908 coding_category_utf_8_sig.
9909 (CATEGORY_MASK_UTF_8): Delete it.
9910 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9911 (CATEGORY_MASK_UTF_8_SIG): New macros.
9912 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9913 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9914 CATEGORY_MASK_UTF_8_SIG.
9915 (CATEGORY_MASK_UTF_8): New macro.
9916 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9917 (detect_coding_utf_8): Check BOM.
9918 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9919 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9920 (encode_coding_utf_16): Likewise.
9921 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9922 (detect_coding, detect_coding_system): Handle utf-8-auto.
9923 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9924 (syms_of_coding): Fix setting up of Vcoding_category_table.
9925
99262008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9927
9928 * process.c (Faccept_process_output): If `millisec' is non-nil,
9929 `seconds' default to 0.
9930 (wait_reading_process_output): Also return non-nil if we read output
9931 from a non-running process.
9932
99332008-05-29 Jason Rumney <jasonr@gnu.org>
9934
9935 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9936 `raster' specified.
9937 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9938 in the uniscribe backend, but disallow any font that has no
9939 unicode subrange support.
9940
99412008-05-29 Juanma Barranquero <lekktu@gmail.com>
9942
9943 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9944 Fix typos in docstrings.
9945
99462008-05-29 Kenichi Handa <handa@m17n.org>
9947
9948 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9949 (Fx_family_fonts): Set frame correctly.
9950
99512008-05-28 Jason Rumney <jasonr@gnu.org>
9952
9953 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9954
99552008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9956
9957 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9958 calling build_annotations.
9959
99602008-05-28 Juanma Barranquero <lekktu@gmail.com>
9961
9962 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9963 (Fencode_coding_string):
9964 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9965 <latin-extra-code-table>: Fix typos in docstrings.
9966 (syms_of_coding) <coding-system-alist>: Doc fix.
9967 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9968
99692008-05-28 Kenichi Handa <handa@m17n.org>
9970
9971 * fontset.c (Ffont_info): Don't call font_close_object.
9972
9973 * font.c (font_parse_family_registry): Use Ffont_put to validate
9974 foundry and family.
9975 (font_delete_unmatched): Don't check spacing.
9976 (font_list_entities): Add spacing to the spec to list fonts.
9977
9978 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9979 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9980
9981 * coding.c (encode_coding_raw_text): Fix previous change.
9982 (encode_coding_object): When the dst_object is a buffer and is
9983 different from src_object, move gap to PT.
9984
99852008-05-27 Chong Yidong <cyd@stupidchicken.com>
9986
9987 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9988
99892008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9990
9991 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9992 all branches. Compute it differently.
9993
9994 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9995
99962008-05-27 Juanma Barranquero <lekktu@gmail.com>
9997
9998 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9999 into "else if () ... else ...".
10000
100012008-05-27 Jason Rumney <jasonr@gnu.org>
10002
10003 * w32font.c (w32font_open_internal): Determine if glyph indices
10004 are likely to work here.
10005
100062008-05-27 Chong Yidong <cyd@stupidchicken.com>
10007
10008 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10009 draw overlap glyphs with appropriate highlighting.
10010
100112008-05-27 Kenichi Handa <handa@m17n.org>
10012
10013 * xfont.c (xfont_open): Fix calculation of font->average_width.
10014
100152008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10016
10017 * casefiddle.c (casify_object): Try to guess better whether the
10018 argument is a byte or a char.
10019
100202008-05-26 Andreas Schwab <schwab@suse.de>
10021
10022 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10023 Always send multiples of format size.
10024
10025 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10026
100272008-05-26 Jason Rumney <jasonr@gnu.org>
10028
10029 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10030 (compute_metrics): Don't set failure if we just cleared the cache.
10031 (w32_weight_table): Remove unused variable.
10032 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10033 backwards compatibility.
10034
100352008-05-25 Kenichi Handa <handa@m17n.org>
10036
10037 * w32term.c (x_draw_glyph_string):
10038 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10039
10040 * xfaces.c: Delete unused function prototypes.
10041 (xstrlwr, font_frame): Delete them.
10042 (clear_face_cache): Delete unused variable.
10043
10044 * xftfont.c (xftfont_open): Delete unused variable.
10045 If underline_thickness is not 1, adjust underline_position.
10046
10047 * ftxfont.c (ftxfont_open): Delete unused variable.
10048
10049 * fontset.c (face_for_char): Optimize for the case of no charset
10050 property.
10051
10052 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10053 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10054 (otf_open, font_otf_capability, generate_otf_features)
10055 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10056 Comment out by surrounding "#if 0" and "#endif" for the moment.
10057 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10058 (syms_of_font): Codes for accessing above commented out.
10059
100602008-05-24 Eli Zaretskii <eliz@gnu.org>
10061
10062 * w32proc.c: Include dispextern.h.
10063
10064 * w32.c: Include dispextern.h.
10065
100662008-05-23 Juanma Barranquero <lekktu@gmail.com>
10067
10068 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10069 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10070 Fix typos in docstrings.
10071
100722008-05-23 Jason Rumney <jasonr@gnu.org>
10073
10074 * xsmfns.c: Remove includes that are already included by config.h.
10075
100762008-05-23 Kenichi Handa <handa@m17n.org>
10077
10078 * charset.c (Qemacs, charset_emacs): New variables.
10079 (char_charset): Fix for non-Unicode characters.
10080 (syms_of_charset): Define charset_emacs.
10081
10082 * w32term.c (x_draw_glyph_string): Be sure to update
10083 s->underline_thickness and s->underline_position. Be sure to draw
10084 underline within the current line area.
10085
10086 * xterm.c (x_draw_glyph_string): Be sure to update
10087 s->underline_thickness and s->underline_position. Be sure to draw
10088 underline within the current line area.
10089
10090 * fontset.c: Delete unused variables and add casting for char *
10091 throughout the file.
10092 (fontset_font): Try the fallback fonts of the current fontset
10093 before consulting the default fontset.
10094
10095 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10096
10097 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10098
100992008-05-22 Jason Rumney <jasonr@gnu.org>
10100
10101 * font.c: Don't include strings.h.
10102
10103 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10104
10105 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10106 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10107 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10108 to call xstrcasecmp.
10109
10110 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10111
10112 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10113
10114 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10115
10116 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10117
101182008-05-22 Kenichi Handa <handa@m17n.org>
10119
10120 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10121
10122 * font.c (font_prop_validate_style): Adjust for the format
10123 change of font_style_table.
10124
10125 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10126 two args.
10127
10128 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10129 two args.
10130
101312008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10132
10133 * minibuf.c (keys_of_minibuf): Delete.
10134 * lisp.h (keys_of_minibuf): Delete.
10135 * emacs.c (main): Don't call keys_of_minibuf.
10136
101372008-05-22 Kenichi Handa <handa@m17n.org>
10138
10139 * ftfont.c (ftfont_resolve_generic_family): Rename from
10140 ftfont_list_generic_family. Return a single family for each
10141 generic family.
10142 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10143 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10144 Call font_add_log.
10145 (ftfont_match): Call font_add_log.
10146
10147 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10148 (FONT_DEBUG): Define it.
10149 (font_add_log): Extern it.
10150 (font_assert): Rename from xassert.
10151
10152 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10153 (xfont_list_family): Call font_add_log.
10154 (xfont_match): Likewise.
10155 (memq_no_quit): Delete.
10156
10157 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10158 call of Ffont_xlfd_name.
10159
10160 * xfaces.c (struct table_entry, slant_table, weight_table)
10161 (swidth_table): Move to font.c.
10162
10163 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10164 xassert are changed to font_assert. Delete many unused variables.
10165 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10166 New variables.
10167 (struct table_entry): Move from xfaces.c and modified.
10168 (weight_table, slant_table, width_table): Move from xfaces.c and
10169 contents adjusted for the change of struct table_entry.
10170 (font_style_to_value, font_style_symbolic): Adjust for the
10171 format change of font_style_table.
10172 (font_parse_family_registry): Don't overwrite existing foundry and
10173 family of font_spec.
10174 (font_score): Fix calculation of diff for sizes.
10175 (font_sort_entites): Call font_add_log.
10176 (font_delete_unmatched): Return a newly created list.
10177 (font_list_entities): Fix previous change. Call font_add_log.
10178 (font_matching_entity, font_open_entity, font_close_entity):
10179 Call font_add_log.
10180 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10181 (Finternal_set_font_style_table): Delete.
10182 (BUILD_STYLE_TABLE): New macro.
10183 (build_style_table): New function.
10184 (Vfont_log, font_log_env_checked): New variables.
10185 (font_add_log): New function.
10186 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10187 Declare Lisp variables "font-weight-table", "font-slant-table",
10188 "font-width-table", and "font-log". Initialize font_style_table.
10189
101902008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10191
10192 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10193
101942008-05-21 Seiji Zenitani <zenitani@mac.com>
10195 Ryo Yoshitake <ryo@shiftmode.net>
10196
10197 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10198 (Vframe_alpha_lower_limit): New variable.
10199 (x_set_alpha): New function.
10200
10201 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10202
10203 * xfns.c (x-create-frame, Qalpha):
10204 Initialize the frame parameter `alpha'.
10205 * xterm.c (OPAQUE, OPACITY): New.
10206 (x_set_frame_alpha): New function.
10207 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10208
10209 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10210 * w32fns.c (w32_frame_parm_handlers): Likewise.
10211
102122008-05-20 Jason Rumney <jasonr@gnu.org>
10213
10214 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10215 truetype fonts to opentype list.
10216
102172008-05-20 Juanma Barranquero <lekktu@gmail.com>
10218
10219 * fontset.c (Ffontset_info): Doc fix.
10220 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10221 <ignore-relative-composition>: Fix typos in docstrings.
10222
10223 * font.c (syms-of-font) <font-encoding-alist>:
10224 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10225 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10226 (Ffont_otf_alternates): Doc fixes.
10227
102282008-05-20 Kenichi Handa <handa@m17n.org>
10229
10230 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10231 font.h through out the file.
10232 (FONT_DRIVERS): Rename from FONTOBJ.
10233 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10234 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10235
10236 * emacs.c (main): Call syms_of_font unconditionally.
10237
10238 * font.h (find_font_encoding): Extern it.
10239
10240 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10241 fontset.c.
10242 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10243 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10244 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10245 only when HAVE_WINDOW_SYSTEM is defined.
10246 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10247 when HAVE_WINDOW_SYSTEM is defined.
10248
10249 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10250 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10251
10252 * xfaces.c: Include font.h unconditionally.
10253 (merge_face_ref, merge_face_vectors)
10254 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10255
102562008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10257
10258 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10259 indirect_variable.
10260 * eval.c (lisp_indirect_variable): New fun.
10261 (Fuser_variable_p): Use it.
10262
102632008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10264
10265 * lisp.h (indirect_variable):
10266 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10267 Use Lisp_Symbol pointers rather than Lisp_Object.
10268 Adjust callers.
10269 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10270 To this end, change calling-convention.
10271
10272 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10273 if some non-hidden buffers are selected by string&pred.
10274
102752008-05-19 Chong Yidong <cyd@stupidchicken.com>
10276
10277 * process.c (wait_reading_process_output): Always check status
10278 when in batch mode.
10279
102802008-05-19 Kenichi Handa <handa@m17n.org>
10281
10282 * font.c (font_list_entities): Fix handling of cache.
10283 (font_matching_entity): Likewise.
10284
10285 * ftfont.c (cs_iso8859_1): Delete.
10286 (ft_face_cache): New variable.
10287 (struct ftfont_info): New member fc_charset_idx.
10288 (ftfont_build_basic_charsets): Delete.
10289 (fc_charset_table): New variable.
10290 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10291 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10292 Callers changed.
10293 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10294 (ftfont_spec_pattern): New argument fc_charset_idx.
10295 Check registry more rigidly. Change callers.
10296 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10297 change of :font-entity property of the font.
10298
10299 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10300 property of the font.
10301
103022008-05-18 Juanma Barranquero <lekktu@gmail.com>
10303
10304 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10305 (Funencodable_char_position, Fcheck_coding_systems_region)
10306 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10307 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10308 (Ffind_operation_coding_system, Fset_coding_system_priority)
10309 (Fcoding_system_eol_type): Doc fixes.
10310
103112008-05-17 Glenn Morris <rgm@gnu.org>
10312
10313 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10314
103152008-05-16 Eli Zaretskii <eliz@gnu.org>
10316
10317 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10318 and st_gid.
10319
10320 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10321 HAVE_WINDOW_SYSTEM is not defined.
10322
10323 * xfaces.c (merge_face_ref, merge_face_vectors)
10324 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10325 HAVE_WINDOW_SYSTEM is defined.
10326 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10327
103282008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10329
10330 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10331
103322008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10333
10334 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10335
103362008-05-15 Kenichi Handa <handa@m17n.org>
10337
10338 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10339 preference.
10340
103412008-05-15 Glenn Morris <rgm@gnu.org>
10342
10343 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10344
103452008-05-15 Chong Yidong <cyd@stupidchicken.com>
10346
10347 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10348 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10349
10350 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10351
103522008-05-15 Kenichi Handa <handa@m17n.org>
10353
10354 * ftfont.c (ftfont_list): Downcase family name to check generic
10355 families.
10356
10357 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10358 font-spec for QCfont value.
10359
10360 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10361 buffer. Check the return value of it.
10362
103632008-05-14 Jason Rumney <jasonr@gnu.org>
10364
10365 * w32term.c (w32_get_glyph_overhangs): Remove.
10366 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10367
103682008-05-14 Kenichi Handa <handa@m17n.org>
10369
10370 * font.c (font_prop_validate): Make nil a valid value.
10371 (font_clear_cache): Check if the cached vector of entities is nil
10372 or not.
10373
103742008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10375
10376 * emacs.c (main_thread): Conditionalize on
10377 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10378 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10379
10380 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10381 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10382 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10383
103842008-05-14 Kenichi Handa <handa@m17n.org>
10385
10386 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10387 has no corresponding coding system.
10388
103892008-05-14 Jason Rumney <jasonr@gnu.org>
10390
10391 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10392
10393 * w32font.h (w32font_open_internal): Update declaration.
10394
10395 * w32font.c (w32font_open_internal): Change last argument from
10396 w32font_info struct to font object. Fill in font object from
10397 font_entity. Get Outline metrics if possible. Use them to
10398 calculate underline position and thickness. Use xlfd name as name
10399 property. Don't set codepage.
10400 (w32font_open): Pass font_object to w32font_open_internal. Don't
10401 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10402 (w32font_draw): Use s->font.
10403 (clear_cached_metrics): Don't clear non-existent blocks.
10404
10405 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10406 font was not found.
10407 (x_draw_glyph_string): Use underline position and thickness from font.
10408
10409 * w32uniscribe.c (uniscribe_open): Pass font_object to
10410 w32font_open_internal.
10411
104122008-05-14 Kenichi Handa <handa@m17n.org>
10413
10414 These changes are to delete all legacy font-handling codes, and
10415 make Emacs use only font-backends.
10416
10417 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10418 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10419
10420 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10421
10422 * charset.h (Vcharset_non_preferred_head)
10423 (Vcurrent_iso639_language): Extern them.
10424
10425 * charset.c (Vcharset_non_preferred_head): New variable.
10426 (Vcurrent_iso639_language): New variable.
10427 (syms_of_charset): Declare it as a Lisp variable.
10428 (char_charset): Don't check non preferred charsets. As a last
10429 resort, return charset_unicode.
10430 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10431
10432 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10433 conditionals. Don't check enable_font_backend. Delete all codes
10434 used only when USE_FONT_BACKEND is not defined.
10435
10436 * dispextern.h (struct glyph_string): Change type of `font' to
10437 `struct font *'.
10438 (struct glyph_string): New member underline_position and
10439 underline_thickness.
10440 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10441 (struct face): Change type of `font' to `struct font *'. Remove
10442 members `font_name', `font_info_id'.
10443 (per_char_metric, encode_char): Delete externs.
10444 (calc_pixel_width_or_height): Adjust the prototype.
10445
10446 * emacs.c (enable_font_backend): Delete extern.
10447 (main): Don't set enable_font_backend. Don't check the command
10448 line argument "-disable-font-backend".
10449
10450 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10451 (enum font_property_index): New members FONT_DPI_INDEX,
10452 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10453 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10454 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10455 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10456 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10457 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10458 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10459 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10460 (struct font_spec, struct font_entity): New structs.
10461 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10462 (struct font): Many members from old "struct font_info" moved to
10463 here. Members font and entity deleted.
10464 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10465 the new font-related objects.
10466 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10467 (CHECK_FONT_GET_OBJECT): Likewise.
10468 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10469 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10470 (struct font_driver): New members case_sensitive anc check. Type
10471 of the member list and open changed.
10472 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10473 (font_symbolic_width, font_find_object, font_get_spec)
10474 (font_set_lface_from_name): Delete extern.
10475 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10476
10477 * font.c: Include <strings.h>.
10478 (enable_font_backend): Delete it.
10479 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10480 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10481 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10482 (null_string): Delete it.
10483 (null_vector): Make it static.
10484 (font_family_alist): Delete it.
10485 (Qnormal): Extern it.
10486 (QCextra, QClanguage): Delete it.
10487 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10488 (font_make_spec, font_make_entity, font_make_object)
10489 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10490 the string. Callers changed.
10491 (font_pixel_size): Adjusted for the format change of font-related
10492 objects.
10493 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10494 (font_style_to_value, font_style_symbolic): New function.
10495 (build_font_family_alist): Delete it.
10496 (font_registry_charsets): Use Fassoc_string instead of
10497 assq_no_quit.
10498 (font_prop_validate_symbol): Don't return null_string.
10499 (font_prop_validate_style): Adjusted for the change of
10500 style-related values in a font vector.
10501 (font_property_table): Delete entries for QClanguage and
10502 QCantialias, add entries for QCavgwidth.
10503 (get_font_prop_index): Delete the 2nd argument FROM.
10504 (font_prop_validate): Arguments changed.
10505 (font_put_extra): Adjusted for the change of font-related objects.
10506 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10507 (font_parse_fcname, font_unparse_fcname)
10508 (font_prepare_composition): Likewise.
10509 (font_parse_family_registry): Renamed from font_merge_old_spec.
10510 (otf_open): Delete the 1st arg entity.
10511 (font_otf_capability): Adjusted for the above change.
10512 (font_score): New arg alternate_families. Adjusted for the change
10513 of font-related objects.
10514 (font_sort_entites): New arg best_only.
10515 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10516 Delete them.
10517 (font_match_p): Check alternate families.
10518 (font_find_object): Delete it.
10519 (font_check_object): New function.
10520 (font_clear_cache): Adjusted for the change of font-related objects.
10521 (font_delete_unmatched): New arg.
10522 (font_list_entities): Call font_driver->list with a spec that
10523 doesn't specify style-related properties.
10524 (font_matching_entity): Arguments changed. Caller changed.
10525 (font_open_entity): Adjusted for the change of font-related objects.
10526 (font_close_object, font_has_char, font_encode_char)
10527 (font_get_name, font_get_spec): Likewise.
10528 (font_spec_from_name, font_clear_prop, font_update_lface):
10529 New functions.
10530 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10531 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10532 (font_at): Adjusted for the change of font-related objects.
10533 (font_range): New function.
10534 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10535 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10536 (Fcopy_font_spec, Fmerge_font_spec): New function.
10537 (Ffont_family_list): Renamed from list-families.
10538 (Finternal_set_font_style_table): Arguments changed.
10539 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10540 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10541 change of font-related objects.
10542 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10543
10544 * fontset.h (struct font_info): Delete it. Most members go to
10545 struct font.
10546 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10547 (enum FONT_SPEC_INDEX): Delete it.
10548 (font_info, list_fonts_func, load_font_func, query_font_func)
10549 (set_frame_fontset_func, find_ccl_program_func)
10550 (get_font_repertory_func, new_fontset_from_font_name): Delete
10551 externs.
10552 (fontset_from_font_name): Extern it.
10553 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10554 (FONT_INFO_FROM_FACE): Deleted.
10555 (face_for_font): Adjust prototype.
10556
10557 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10558 conditionals. Don't check enable_font_backend. Delete all codes
10559 used only when USE_FONT_BACKEND is not defined.
10560 (get_font_info_func, list_font_func, load_font_func)
10561 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10562 (get_font_repertory_func): Delete them.
10563 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10564 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10565 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10566 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10567 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10568 (fontset_compare_rfontdef): New function.
10569 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10570 rfont-defs by qsort. Adjusted for the change of font-group vector.
10571 (load_font_get_repertory): Deleted.
10572 (fontset_find_font): Use new macros to ref/set elements of
10573 font-def and rfont-def.
10574 (fontset_font): Fix the timing of remembering that no font for C.
10575 (free_face_fontset): Do nothing if the face has no fontset.
10576 (face_suitable_for_char_p): Use new macros to ref/set elements of
10577 rfont-def.
10578 (face_for_char): Likewise. Call face_for_char with font_object.
10579 (fs_load_font): Delete. Delete #pragma surrounding it.
10580 (fs_query_fontset): Use strcasecmp instead of strcmp.
10581 (generate_ascii_font_name): Adjusted for the format change of
10582 font-spec.
10583 (Fset_fontset_font): Likewise. Use new macros to set elements of
10584 font-def.
10585 (Fnew_fontset): Use font_unparse_xlfd to generate
10586 FONTSET_ASCII (fontset).
10587 (new_fontset_from_font_name): Deleted.
10588 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10589 a fontset is already created for the font. FIx updating of
10590 Vfontset_alias_alist.
10591 (fontset_ascii_font): Deleted.
10592 (Ffont_info): Adjusted for the format change of font-spec.
10593 (Finternal_char_font): Likewise.
10594 (Ffontset_info): Likewise.
10595 (syms_of_fontset): Don't check load_font_func.
10596
10597 * fns.c (internal_equal): Handle PREV_FONT.
10598
10599 * frame.h: Delete USE_FONT_BACKEND conditional.
10600
10601 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10602 conditionals. Don't check enable_font_backend. Delete all codes
10603 used only when USE_FONT_BACKEND is not defined.
10604 (x_set_font): Call x_new_font, not x_new_fontset2.
10605 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10606 already set for the frame.
10607
10608 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10609 a font-entity by font_make_entity. Use font_intern_prop instead
10610 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10611 font property. If a font is scalable, set avgwidth property to 0.
10612 Set font-entity property by font_put_extra.
10613 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10614 (ffont_driver): Adjusted for the change of struct font_driver.
10615 (ftfont_spec_pattern): New function.
10616 (ftfont_list): Return a list, not vector.
10617 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10618 (ftfont_list_family): Don't downcase names.
10619 (ftfont_free_entity): Deleted.
10620 (ftfont_open): Return a font-object. Adjusted for the change of
10621 struct font. Get underline_thickness and underline_position from
10622 font property. Don't update dpyinfo->smallest_font_height and
10623 dpyinfo->smallest_char_width.
10624 (ftfont_close): Don't free `struct font'.
10625 (ftfont_has_char): Adjusted for the format change of font-entity.
10626 (ftfont_encode_char, ftfont_text_extents): Likewise.
10627
10628 * ftxfont.c (ftxfont_list): Return a list, not vector.
10629 (ftxfont_open): Return a font-object. Adjusted for the change of
10630 struct font. Get underline_thickness and underline_position from
10631 font property. Don't update dpyinfo->smallest_font_height and
10632 dpyinfo->smallest_char_width.
10633 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10634 (ftxfont_draw): Adjusted for the change of struct font.
10635
10636 * image.c (image_ascent): Don't include "charset.h". Include
10637 "character.h" and "font.h".
10638
10639 * lisp.h (enum pvec_type): New member PREV_FONT.
10640 (Fassoc_string): EXFUN it.
10641
10642 * print.c: Include font.h.
10643 (print_object): Handle font-related objects.
10644
10645 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10646 conditionals. Don't check enable_font_backend. Delete all codes
10647 used only when USE_FONT_BACKEND is not defined.
10648 (handle_auto_composed_prop): Do nothing if it->f is not on a
10649 window system. Check how many following characters can be
10650 displayed by the same font.
10651 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10652 'struct font *'.
10653 (get_char_face_and_encoding): Assign the whole encoding task to
10654 the `encode-char' method of a font driver.
10655 (fill_composite_glyph_string): Adjusted for the change of `struct
10656 face' and `struct glyph_string'.
10657 (fill_glyph_string): Likewise.
10658 (get_per_char_metric): Arguments changed.
10659 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10660 and `struct glyph_string'.
10661 (produce_stretch_glyph, calc_line_height_property)
10662 (x_produce_glyphs): Likewise.
10663
10664 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10665 conditionals. Don't check enable_font_backend. Delete all codes
10666 used only when USE_FONT_BACKEND is not defined. Use
10667 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10668 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10669 (Qp): Extern them.
10670 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10671 Deleted.
10672 (struct font_name): Deleted.
10673 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10674 (compare_fonts_by_sort_order): New function.
10675 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10676 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10677 Deleted.
10678 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10679 compare_fonts_by_sort_order.
10680 (Fx_font_family_list): Call Ffont_family_list.
10681 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10682 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10683 (face_symbolic_slant, face_symbolic_swidth)
10684 (split_font_name_into_vector, build_font_name_from_vector)
10685 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10686 (font_rescale_ratio, split_font_name, build_font_name)
10687 (free_font_names, sort_fonts, x_face_list_fonts)
10688 (face_font_available_p, sorted_font_list, cmp_font_names)
10689 (font_list_1, concat_font_list, font_list, remove_duplicates):
10690 Deleted.
10691 (Fx_list_fonts): Use Ffont_list.
10692 (LFACE_AVGWIDTH): Deleted.
10693 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10694 by FONTP.
10695 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10696 (set_lface_from_font_name): Delete it.
10697 (set_lface_from_font): Renamed from
10698 set_lface_from_font_and_fontset. Caller changed. Don't set
10699 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10700 for face.
10701 (merge_face_vectors): Copy font-spec if necessary.
10702 Clear properties of the font-spec if necessary.
10703 (merge_face_ref): Clear properties of the font-spec if necessary.
10704 (Finternal_set_lisp_face_attribute): Likewise.
10705 (set_font_frame_param): Use font_load_for_lface to load a
10706 font-object, and call Fmodify_frame_parameters with it.
10707 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10708 font name by Ffont_xlfd_name.
10709 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10710 QCslant, and QCwidth.
10711 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10712 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10713 Compare fonts by EQ.
10714 (lookup_non_ascii_face): Deleted.
10715 (face_for_font): The 2nd argument changed.
10716 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10717 Check atomic font properties by case insensitive.
10718 (realize_non_ascii_face): Set face->overstrike correctly.
10719 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10720 (dump_realized_face): Get font name from
10721 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10722
10723 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10724 conditionals. Don't check enable_font_backend. Delete all codes
10725 used only when USE_FONT_BACKEND is not defined.
10726 (xic_create_xfontset): Original code deleted and renamed from
10727 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10728 (x_make_gc): Don't set GCFont in GCs.
10729 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10730 opened by "fixed".
10731 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10732 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10733 get_font_repertory_func.
10734
10735 * xfont.c: Include <stdlib.h> and "ccl.h".
10736 (struct xfont_info): New structure.
10737 (xfont_query_font): Deleted.
10738 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10739 moved from xterm.c.
10740 (xfont_driver): Adjusted for the change of struct font_driver.
10741 (compare_font_names): New function.
10742 (xfont_list_pattern): Sort font names case insensitively. Make
10743 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10744 (xfont_list): Return a list, not vector.
10745 (xfont_match): If the font doesn't have QCname property, generate
10746 a name from the other font properties.
10747 (xfont_open): Return a font-object. Adjusted for the change of
10748 struct font. Get underline_thickness and underline_position from
10749 font property. Don't update dpyinfo->smallest_font_height and
10750 dpyinfo->smallest_char_width.
10751 (xfont_close): Don't free struct font.
10752 (xfont_prepare_face): Adjusted for the change of struct font.
10753 (xfont_done_face): Deleted.
10754 (xfont_has_char): Adjusted for the change of struct font.
10755 (xfont_encode_char, xfont_draw): Likewise.
10756 (xfont_check): New function.
10757
10758 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10759 callback function.
10760 (xftfont_match): Adjusted for the format change of font-entity.
10761 (xftfont_open): Adjusted for the format change of font-entity and
10762 font-object. Adjusted for the change of struct font. Return a
10763 font-object. Don't update dpyinfo->smallest_font_height and
10764 dpyinfo->smallest_char_width.
10765 (xftfont_close): Block input while calling XftFontClose.
10766 (xftfont_prepare_face): Don't block input while calling
10767 xftfont_get_colors. Adjusted for the change of struct font.
10768 (xftfont_shape): Return value of error case fixed.
10769
10770 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10771
10772 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10773 conditionals.
10774 (FONT_WIDTH): Return (f)->max_width.
10775 (struct x_display_info): Delete member `font'.
10776 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10777 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10778 (struct x_output): Change type of `font' to `struct font *'.
10779
10780 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10781 conditionals. Don't check enable_font_backend. Delete all codes
10782 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10783 (x_per_char_metric, x_encode_char): Deleted.
10784 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10785 (x_compute_glyph_string_overhangs): Adjusted for the change of
10786 `struct face'.
10787 (x_draw_glyph_string_foreground)
10788 (x_draw_composite_glyph_string_foreground): Likewise.
10789 (x_draw_glyph_string): Likewise. Use font->underline_position and
10790 font->underline_thickness.
10791 (x_new_font): Renamed from x_new_fontset2.
10792 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10793 (x_check_font): Call `check' method of a font driver.
10794 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10795 (x_query_font, x_get_font_repertory): Deleted.
10796 (x_find_ccl_program): Renamed and moved to xfont.c.
10797 (x_redisplay_interface): Adjusted for the change of `struct
10798 redisplay_interface'.
10799
10800 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10801 conditionals. Don't check enable_font_backend. Delete all codes
10802 used only when USE_FONT_BACKEND is not defined. Surround non-used
10803 code by "#ifdef OLD_FONT" and "endif".
10804 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10805
10806 * w32font.h (struct w32font_info): New member.
10807 (FONT_COMPAT): New macro.
10808 (w32font_open_internal): Prototype adjusted.
10809
10810 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10811 OLD_FONT" and "endif".
10812
10813 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10814 conditionals. Don't check enable_font_backend. Delete all codes
10815 used only when USE_FONT_BACKEND is not defined.
10816 (w32font_open): Return a font-object. Make a font-object by
10817 font_make_object. Adjusted for the change of struct w32font_info.
10818 (w32font_close): Don't free struct font. Adjusted for the change
10819 of struct w32font_info.
10820 (w32font_encode_char, w32font_text_extents, w32font_draw):
10821 Adjusted for the change of struct w32font_info.
10822 (w32font_draw): Likewise.
10823 (w32font_list_internal): Return a list, not vector.
10824 (w32font_open_internal): Change the 4th arg to font-object.
10825 Adjusted for the change of struct w32font_info and font-object format.
10826 (add_font_name_to_list): Don't downcase names.
10827 (w32_enumfont_pattern_entity): Make a font-entity by
10828 font_make_entity. Adjusted for the format change of font-entity.
10829 Use FONT_SET_STYLE to set a style-related font property. If a
10830 font is scalable, set avgwidth property to 0. Set font-entity
10831 property by font_put_extra.
10832 (font_matches_spec): Adjusted for the format change of font-entity.
10833 (w32_weight_table, w32_decode_weight): New variables.
10834 (w32_encode_weight): New function.
10835 (fill_in_logfont): Adjusted for the format change of font-spec.
10836 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10837 weight value.
10838 (w32font_driver): Adjusted for the change of struct font_driver.
10839
10840 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10841 conditionals. Don't check enable_font_backend. Surround non-used
10842 code by "#ifdef OLD_FONT" and "endif".
10843 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10844 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10845
10846 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10847 conditionals. Don't check enable_font_backend. Delete all codes
10848 used only when USE_FONT_BACKEND is not defined. Surround non-used
10849 code by "#ifdef OLD_FONT" and "endif".
10850
10851 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10852 (uniscribe_open): Return value changed to font-object.
10853 Adjusted for the format change of font-object.
10854 (uniscribe_otf_capability): Adjusted for the change of struct font.
10855 (add_opentype_font_name_to_list): Don't downcase names.
10856 (uniscribe_font_driver): Adjusted for the change of struct
10857 font_driver.
10858
108592008-05-13 Chong Yidong <cyd@stupidchicken.com>
10860
10861 * dispnew.c (update_frame_1): Check if tty output is still valid
10862 before flushing it.
10863
108642008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10865
10866 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10867 to Gtk+ menus.
10868
108692008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10870
10871 * dired.c (file_name_completion): Tweak the code so as to always do it
10872 in a single pass. Tighten the scope of some variables.
10873
10874 * dired.c (Qdefault_directory): New var.
10875 (file_name_completion): Use it instead of Fexpand_file_name.
10876 (syms_of_dired): Initialize it.
10877
108782008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * fileio.c (double_dollars): Remove dead code.
10881
108822008-05-10 Eli Zaretskii <eliz@gnu.org>
10883
10884 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10885 Mention w32-get-true-file-attributes in doc string.
10886
10887 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10888
108892008-05-09 Glenn Morris <rgm@gnu.org>
10890
10891 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10892 2008-04-23.
10893
108942008-05-09 Eli Zaretskii <eliz@gnu.org>
10895
10896 Support for reporting owner and group of each file on MS-Windows:
10897 * dired.c (stat_uname, stat_gname): New functions, with special
10898 implementation for w32.
10899 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10900
10901 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10902 (dflt_group_name): New static variable.
10903 (dflt_group): Rename from the_group.
10904 (init_user_info): Init dflt_group fields. Get user's group name
10905 from LookupAccountSid.
10906 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10907 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10908 New initialization states.
10909 (globals_of_w32): Initialize them to zero. Initialize the default
10910 group name to "None".
10911 (GetFileSecurity_Name): New global var, the name of the function
10912 to call for GetFileSecurity.
10913 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10914 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10915 (get_file_security, get_security_descriptor_owner)
10916 (get_security_descriptor_group, is_valid_sid)
10917 (get_file_security_desc, get_rid, get_name_and_id)
10918 (get_file_owner_and_group): New functions.
10919 (stat): Use get_file_security_desc and get_file_owner_and_group to
10920 report the owner and primary group of each file. Don't ignore the
10921 high 32 bits of file's size, now that st_size is 64-bit wide.
10922 Fix test when to get true file attributes.
10923 (init_user_info): Use get_rid instead of equivalent inline code.
10924 (fstat): Don't ignore the high 32 bits of file's size.
10925
109262008-05-09 Chong Yidong <cyd@stupidchicken.com>
10927
10928 * image.c (png_load): Use correct bit-depth for setting background
10929 color.
10930
109312008-05-08 Eli Zaretskii <eliz@gnu.org>
10932
10933 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10934 epa-hook.elc.
10935
109362008-05-08 Juanma Barranquero <lekktu@gmail.com>
10937
10938 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10939
109402008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10941
10942 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10943 because the original parameters are in pure storage now.
10944 (mac_window): Remove unused params. Update callers.
10945
109462008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10947
10948 * lread.c (substitute_object_recurse): Use lower-level primitives.
10949 Don't signal errors when traversing sub-char-tables.
10950 Don't loop over all the possible characters when traversing char-tables.
10951
10952 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10953 just like we do in print.c.
10954
109552008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10956
10957 * minibuf.c (Ftry_completion): Remove code left over from when we used
10958 scmp instead of Fcompare_strings.
10959
109602008-05-04 Juanma Barranquero <lekktu@gmail.com>
10961
10962 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10963
109642008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10965
10966 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10967 Create bitmap context in native byte order.
10968
10969 * macterm.c (XDrawLine)
10970 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10971 context in native byte order.
10972
109732008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10974
10975 * config.in: Regenerate.
10976
10977 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10978 New definitions for Image I/O support.
10979 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10980 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10981 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10982 (mac_data_provider_release_data, image_load_image_io)
10983 [USE_MAC_IMAGE_IO]: New functions.
10984 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10985 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10986 (init_image_func_pointer) [MAC_OSX]: Remove function.
10987 (image_load_quartz2d) [MAC_OSX]: Check availability of
10988 CGImageCreateWithPNGDataProvider at compile time.
10989 Use lowercase `false' for boolean constant.
10990 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10991 Use image_load_image_io.
10992 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10993 Don't check MyCGImageCreateWithPNGDataProvider.
10994 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10995 Don't call init_image_func_pointer.
10996
10997 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10998
10999 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11000 Make variable non-static.
11001 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11002 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11003
11004 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11005 (RED_FROM_ULONG): Mask off higher bits.
11006 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11007
11008 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11009 Include AvailabilityMacros.h.
11010 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11011 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11012
110132008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11014
11015 * chartab.c (Fset_char_table_range): If range is t, really set all
11016 chars to that value.
11017
110182008-05-03 Eli Zaretskii <eliz@gnu.org>
11019
11020 * dired.c (Ffile_attributes): Don't allow the device number become
11021 negative.
11022
110232008-05-02 Daiki Ueno <ueno@unixuser.org>
11024
11025 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11026
110272008-05-02 Juri Linkov <juri@jurta.org>
11028
11029 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11030 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11031 DEFAULT argument as a list of default values in docstrings.
11032
110332008-05-01 Chong Yidong <cyd@stupidchicken.com>
11034
11035 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11036
110372008-05-01 Martin Rudalics <rudalics@gmx.at>
11038
11039 * dispnew.c (change_frame_size_1): Preserve small windows when
11040 shrinking frames by calling set_window_height|width with third
11041 arg 2.
11042
11043 * window.h (struct window): Replace field too_small_ok by field
11044 resize_proportionally.
11045
11046 * window.c (make_window): Initialize resize_proportionally.
11047 (enlarge_window): Temporarily set resize_proportionally to make
11048 sure that shrink_windows does scale the window proportionally.
11049 (shrink_windows): When window has resize_proportionally set try
11050 to shrink it proportionally by stealing from other windows.
11051 (struct saved_window, Fset_window_configuration)
11052 (compare_window_configurations): Handle resize_proportionally.
11053 (WINDOW_TOTAL_SIZE): New macro.
11054 (window_min_size, shrink_windows, size_window): Use it.
11055 (check_min_window_sizes): Remove. Invalid values of
11056 window-min-height|width are handled by window_min_size_2 now.
11057 (size_window, Fsplit_window, enlarge_window)
11058 (adjust_window_trailing_edge, grow_mini_window): Don't call
11059 check_min_window_sizes.
11060 (window_min_size_2, window_min_size_1, window_min_size):
11061 New argument safe_p for retrieving "safe" minimum sizes.
11062 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11063 (adjust_window_trailing_edge, grow_mini_window):
11064 Adjust arguments of window_min_size... functions.
11065 (shrink_windows): Argument min_size removed. New argument
11066 safe_p allows shrinking windows to their safe minimum sizes.
11067 Calculate minimum size and decide whether a window shall be
11068 deleted for each window individually.
11069 (size_window): When nodelete_p equals 2, tell shrink_windows to
11070 delete windows only if their new minimum size is no more safe.
11071 (shrink_window_lowest_first): Call window_min_size_1 to make
11072 sure to preserve modeline of bottom-most window when resizing
11073 the minibuffer.
11074 (Fset_window_configuration, Fcurrent_window_configuration)
11075 (compare_window_configurations): Do not handle
11076 window-min-height|width any more.
11077 (syms_of_window): Clarify window-min-height|width doc-strings.
11078
110792008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11082 some more. Copy some of the code from Ftry_completions.
11083 Remove special case code that dates back to initial revision when the
11084 slash was only added when necessary and that can't trigger nowadays.
11085
110862008-04-27 Kenichi Handa <handa@m17n.org>
11087
11088 * font.c (font_prop_validate): Signal `error' instead of `font'.
11089
110902008-04-29 Jason Rumney <jasonr@gnu.org>
11091
11092 * w32fns.c (Fw32_battery_status): New defun.
11093 (syms_of_w32fns): Defsubr it.
11094
110952008-04-28 Andreas Schwab <schwab@suse.de>
11096
11097 * dired.c (file_name_completion): Fix another mixing of encoded
11098 and decoded names.
11099
111002008-04-28 Juanma Barranquero <lekktu@gmail.com>
11101
11102 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11103
111042008-04-27 Juanma Barranquero <lekktu@gmail.com>
11105
11106 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11107
111082008-04-27 Andreas Schwab <schwab@suse.de>
11109
11110 * dired.c (file_name_completion): Fix inappropriate mixing of
11111 encoded and decoded names.
11112
11113 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11114
11115 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11116
111172008-04-26 Eli Zaretskii <eliz@gnu.org>
11118
11119 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11120 2008-03-31, it's not needed anymore with `struct stat' definition
11121 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11122 for the same reasons.
11123
111242008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11125
11126 * m/sparc.h: Additional redefinitions for GNU/Linux.
11127
111282008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11129
11130 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11131 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11132 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11133 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11134 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11135 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11136 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11137 Likewise.
11138
11139 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11140 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11141 (mac_ax_number_of_characters): Add externs.
11142 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11143 [USE_MAC_TSM]: Likewise.
11144 (mac_handle_text_input_event) [MAC_OSX]:
11145 Handle kEventTextInputOffsetToPos for no active input area case.
11146 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11147 (mac_handle_document_access_event)
11148 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11149 (install_application_handler) [MAC_OSX]: Register handlers for
11150 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11151 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11152 Register mac_handle_document_access_event.
11153
11154 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11155 Make functions non-static.
11156
111572008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11160 (read_file_name_completion_ignore_case, insert_default_directory)
11161 (Qdefault_directory): Move to minibuffer.el.
11162 (Fread_file_name): Call the new `read-file-name' instead.
11163
111642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11165
11166 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11167 Make function non-static.
11168 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11169 Remove function.
11170 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11171 Move to mactoolbox.c.
11172 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11173
11174 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11175 (mac_rect_make): New macro.
11176
11177 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11178 instead of float.
11179 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11180 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11181 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11182 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11183 CGRectMake.
11184 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11185 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11186 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11187 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11188 instead of WindowRef in argument type.
11189 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11190 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11191 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11192 instead of DISPLAY. All uses changed.
11193 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11194 (x_calc_absolute_position): Simplify so as not to use
11195 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11196
11197 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11198 instead of WindowRef in argument type.
11199 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11200 [TARGET_API_MAC_CARBON]: Remove externs.
11201 (create_apple_event, mac_event_parameters_to_lisp)
11202 [TARGET_API_MAC_CARBON]: Add externs.
11203
11204 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11205 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11206 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11207 is clicked.
11208 (x_activate_menubar): Remove extern for saved_menu_event_location.
11209 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11210 Move from mac.c.
11211
112122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11213
11214 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11215 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11216
112172008-04-23 Jason Rumney <jasonr@gnu.org>
11218
11219 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11220 attributes only for local files.
11221
11222 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11223 default to Qlocal.
11224
112252008-04-22 Juri Linkov <juri@jurta.org>
11226
11227 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11228 read-buffer-to-switch instead of using the letter "B".
11229
112302008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11231
11232 * fileio.c (Qdefault_directory): New variable.
11233 (Fread_file_name): Use it to pass `dir' to the completion functions.
11234
112352008-04-20 Chong Yidong <cyd@stupidchicken.com>
11236
11237 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11238
112392008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11240
11241 * keyboard.c (Vpre_help_message): Remove.
11242 (show_help_echo): Remove default C code.
11243
11244 * dired.c (directory_files_internal, file_name_completion):
11245 Only call ENCODE_FILE if the string is indeed decoded.
11246
112472008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11248
11249 * Makefile.in (TOOLKIT_DEFINES): Remove.
11250 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11251
112522008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11253
11254 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11255 (mactoolbox.o): New target.
11256
11257 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11258 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11259
11260 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11261 Use mac_set_frame_window_background instead of XSetWindowBackground.
11262 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11263 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11264 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11265 instead of SetWindowTitleWithCFString.
11266 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11267 Move function to mactoolbox.c.
11268 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11269 Use mac_set_window_modified instead of SetWindowModified.
11270 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11271 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11272 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11273 FrontNonFloatingWindow. Use mac_activate_window instead of
11274 ActivateWindow. Use mac_active_non_floating_window instead of
11275 ActiveNonFloatingWindow.
11276 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11277 Use mac_show_hourglass and mac_hide_hourglass.
11278 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11279 instead of GetGlobalMouse.
11280 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11281 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11282 Use mac_bring_window_to_front instead of BringToFront.
11283 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11284 mactoolbox.c.
11285 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11286 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11287 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11288 mactoolbox.c.
11289
11290 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11291 (XtPointer): Move typedef from macmenu.c.
11292 (enum button_type): Move enum from macmenu.c.
11293 (widget_value): Move typedef from macmenu.c.
11294 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11295 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11296 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11297 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11298 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11299 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11300 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11301 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11302 (Selection): Move typedef from macselect.c.
11303 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11304 macterm.c.
11305 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11306 (mac_is_window_collapsed, mac_bring_window_to_front)
11307 (mac_send_window_behind, mac_hide_window, mac_show_window)
11308 (mac_collapse_window, mac_front_non_floating_window)
11309 (mac_active_non_floating_window, mac_activate_window)
11310 (mac_move_window_structure, mac_move_window, mac_size_window)
11311 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11312
11313 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11314 (enum mac_menu_kind): Move enum to mactoolbox.c.
11315 (min_menu_id): Move variable to mactoolbox.c.
11316 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11317 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11318 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11319 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11320 [TARGET_API_MAC_CARBON]: Likewise.
11321 (XtPointer): Move typedef to macgui.h.
11322 (enum button_type): Move enum to macgui.h.
11323 (widget_value): Move typedef to macgui.h.
11324 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11325 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11326 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11327 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11328 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11329 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11330 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11331 (popup_activated_flag): Make variable non-static.
11332 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11333 (add_menu_item, fill_menu, dispose_menus):
11334 Move functions to mactoolbox.c.
11335 (restore_show_help_function, menu_target_item_handler)
11336 (install_menu_target_item_handler, mac_handle_dialog_event)
11337 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11338 [TARGET_API_MAC_CARBON]: Likewise.
11339 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11340 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11341 (find_and_call_menu_selection, name_is_separator): Make function
11342 non-static.
11343 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11344 to mactoolbox.c.
11345 (set_frame_menubar): Don't call install_menu_quit_handler.
11346 (menu_item_selection): New variable.
11347 (mac_menu_show): Use create_and_show_popup_menu.
11348 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11349 selection but set variable menu_item_selection. All uses changed.
11350 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11351 Call install_menu_quit_handler. Move to mactoolbox.c.
11352
11353 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11354 (Selection): Move typedef to macgui.h.
11355 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11356 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11357 Make variables non-static.
11358 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11359 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11360 Make functions non-static.
11361 (Vmac_service_selection) [MAC_OSX]: Likewise.
11362 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11363 (mac_valid_selection_target_p, mac_clear_selection)
11364 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11365 (mac_put_selection_value, mac_selection_has_target_p)
11366 (mac_get_selection_value, mac_get_selection_target_list)
11367 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11368 Move functions to mactoolbox.c.
11369 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11370 Likewise.
11371 (copy_scrap_flavor_data, mac_handle_service_event)
11372 (install_service_handler) [MAC_OSX]: Likewise.
11373 (syms_of_macselect) <Vmac_dnd_known_types>:
11374 Use mac_dnd_default_known_types.
11375
11376 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11377 Move to mactoolbox.c.
11378 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11379 (Fx_selection_owner_p): Add EXFUN.
11380 (install_window_handler, remove_window_handler, XSetWindowBackground):
11381 Remove externs.
11382 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11383 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11384 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11385 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11386 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11387 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11388 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11389 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11390 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11391 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11392 (mac_valid_selection_target_p, mac_clear_selection)
11393 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11394 (mac_put_selection_value, mac_selection_has_target_p)
11395 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11396 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11397 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11398 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11399 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11400 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11401 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11402 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11403 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11404
11405 * mactoolbox.c: New file.
11406
114072008-04-18 Jason Rumney <jasonr@gnu.org>
11408
11409 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11410
114112008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11412
11413 * character.c (Fmultibyte_char_to_unibyte):
11414 Return latin1 chars unchanged.
11415
11416 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11417 relocated if it points to `name'.
11418
114192008-04-17 Kenichi Handa <handa@m17n.org>
11420
11421 * data.c (Faset): Allow setting a multibyte character in an
11422 ASCII-only unibyte string.
11423
11424 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11425
114262008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11427
11428 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11429 done in config.h.
11430
114312008-04-16 Juanma Barranquero <lekktu@gmail.com>
11432
11433 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11434 (Fchar_direction): Add usage in the docstring.
11435
114362008-04-15 Chong Yidong <cyd@stupidchicken.com>
11437
11438 * keyboard.c (read_key_sequence): Remove always-true checks.
11439
114402008-04-14 Jason Rumney <jasonr@gnu.org>
11441
11442 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11443 compatibility struct, for better underline positioning.
11444
114452008-04-13 David Hansen <david.hansen@gmx.net>
11446
11447 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11448 string.
11449
114502008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11451
11452 * m/hp800.h (XUINT, XSET): Remove.
11453
114542008-04-12 Juanma Barranquero <lekktu@gmail.com>
11455
11456 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11457 previous change.
11458
114592008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11460
11461 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11462 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11463
114642008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * keymap.h (map_keymap_canonical): Declare.
11467 * xmenu.c (single_keymap_panes): Use it.
11468
114692008-04-11 Glenn Morris <rgm@gnu.org>
11470
11471 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11472 set the target's value to that of the alias.
11473
114742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11475
11476 * term.c (set_tty_color_mode): Left over typo.
11477
114782008-04-10 Michael Albinus <michael.albinus@gmx.de>
11479
11480 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11481 only after check for file name handler functions. Signal, when
11482 native functionality is not supported.
11483 (syms_of_fileio): Declare it unconditionally.
11484
114852008-04-10 Jason Rumney <jasonr@gnu.org>
11486
11487 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11488 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11489
11490 * w32.c (logon_network_drive): Also logon to remote drives that
11491 are mapped to drive letters.
11492
114932008-04-10 Glenn Morris <rgm@gnu.org>
11494
11495 * xdisp.c (truncate-partial-width-windows): Doc fix.
11496
114972008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11498
11499 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11500 Move functions to minibuffer.el.
11501 (syms_of_fileio): Don't declare them.
11502
115032008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11504
11505 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11506 (syms_of_minibuf): Remove its initialization.
11507
11508 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11509
115102008-04-09 Juanma Barranquero <lekktu@gmail.com>
11511
11512 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11513
115142008-04-09 Jason Rumney <jasonr@gnu.org>
11515
11516 * makefile.w32-in (distclean): Delete makefile too.
11517 (maintainer-clean): New target.
11518
11519 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11520
11521 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11522 for new font backend and composite cases.
11523
115242008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11525
11526 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11527 Most of the code moved to run_timers.
11528 (do_pending_atimers): Call run_timers.
11529 (run_timers): New function.
11530
11531 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11532 run atimers.
11533
11534 * process.c (wait_reading_process_output): The same as above.
11535
115362008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11537
11538 * minibuf.c (last_exact_completion): Remove variable.
11539 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11540 (complete_and_exit_1, complete_and_exit_2)
11541 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11542 (Fdisplay_completion_list, display_completion_list_1)
11543 (Fminibuffer_completion_help, Fself_insert_and_exit)
11544 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11545 minibuffer.el.
11546 (syms_of_minibuf): Remove corresponding initializations.
11547
11548 * keyboard.c (Qdeactivate_mark): New var.
11549 (command_loop_1): Use it to call `deactivate-mark'.
11550 (syms_of_keyboard): Initialize it.
11551
11552 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11553 to another frame.
11554 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11555 Don't call set_tty_color_mode.
11556 (store_frame_param): Reset previous_frame rather than call
11557 set_tty_color_mode.
11558 * term.c (set_tty_color_mode): Rewrite.
11559 * dispextern.h (set_tty_color_mode): New type.
11560 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11561
115622008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11563
11564 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11565 for generic chars, which do not exist any more in emacs-unicode.
11566
115672008-04-08 Michael Albinus <michael.albinus@gmx.de>
11568
11569 * coding.c (detect_coding_emacs_mule)
11570 (Ffind_operation_coding_system): Fix typo.
11571
115722008-04-08 Jason Rumney <jasonr@gnu.org>
11573
11574 * w32uniscribe.c (SNAME): Extract only symbol name.
11575
11576 * w32font.h (struct w32_metric_cache): New struct.
11577 (w32font_info): Use it.
11578 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11579 (CACHE_BLOCKSIZE): New constants.
11580
11581 * w32font.c (Qja, Qko, Qzh): New symbols.
11582 (syms_of_w32font): Initialise them.
11583 (font_matches_spec): Use them to filter by language.
11584 (recompute_cached_metrics): Remove function.
11585 (compute_metrics, clear_cached_metrics): New functions.
11586 (w32font_encode_char): Use them to manage metric cache.
11587 (w32font_text_extents): Cache metrics for all glyphs on demand.
11588 Delay converting glyph indices to WORD until needed.
11589 (w32font_open_internal): Initialize metric cache to empty.
11590 (registry_to_w32_charset): Charset should always be a symbol.
11591 (fill_in_logfont, list_all_matching_fonts): Family should
11592 always be a symbol.
11593
115942008-04-06 Jason Rumney <jasonr@gnu.org>
11595
11596 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11597 Give up if glyph indices not supported. Use uniscribe obtained
11598 ABC widths for individual metrics. Map glyph clusters back to
11599 characters using fClusterStart flag. Return number of glyphs
11600 produced, not chars processed.
11601 (uniscribe_shape): Map char at FROM to current glyph.
11602
116032008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11604
11605 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11606 Use SetMenuItemHierarchicalMenu.
11607
116082008-04-05 Jason Rumney <jasonr@gnu.org>
11609
11610 * image.c (pbm_load): Allow color values up to 65535.
11611 Throw an error if max_color_idx is outside the supported range.
11612 Report an error when image size is invalid.
11613 Read two bytes at a time when raw images have max_color_idx above 255.
11614
116152008-04-05 Eli Zaretskii <eliz@gnu.org>
11616
11617 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11618 cFileName a file name that includes `?' characters, use the 8+3
11619 alias in cAlternateFileName instead.
11620
116212008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11622
11623 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11624 append "CCL: Quitted" when the CCL program is quitted.
11625 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11626
11627 * ccl.h (struct ccl_program): New member quit_silently.
11628
116292008-04-05 Chong Yidong <cyd@stupidchicken.com>
11630
11631 * search.c (compile_pattern_1): Treat non-nil and non-string of
11632 search-spaces-regexp as nil.
11633
11634 * minibuf.c (Fassoc_string): Tweak docstring.
11635
116362008-04-05 Eli Zaretskii <eliz@gnu.org>
11637
11638 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11639 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11640 2008-03-14 to force inode be positive.
11641
11642 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11643 _S_* ones, since we now use our own sys/stat.h.
11644 (stat, fstat): Don't mangle the inode number.
11645 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11646
116472008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * frame.h (struct frame): Give one more bit to `visible' since we use
11650 values larger than 1 to indicate obscured frames on ttys.
11651
11652 * keymap.c (Qkeymap_canonicalize): New var.
11653 (Fmap_keymap_internal): New fun.
11654 (describe_map): Use keymap-canonicalize.
11655
11656 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11657 (Fundo_boundary): Set them.
11658 (syms_of_undo): Initialize them.
11659 (record_point): Use them instead of last_point_position*.
11660 (last_undo_buffer): Change type.
11661
116622008-04-04 Jason Rumney <jasonr@gnu.org>
11663
11664 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11665 (recompute_cached_metrics): Don't set ascent and descent per char.
11666
11667 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11668 (uniscribe_check_otf): Add GC protection before consing.
11669 Rearrange loop for counting features.
11670
116712008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11672
11673 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11674 buffer with byte-size of source buffer.
11675
116762008-04-03 Chong Yidong <cyd@stupidchicken.com>
11677
11678 * callint.c (Fcall_interactively): Handle temporary region even
11679 when shift-select-mode is off.
11680
116812008-04-03 Jason Rumney <jasonr@gnu.org>
11682
11683 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11684
116852008-04-03 Kenichi Handa <handa@m17n.org>
11686
11687 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11688 (CATEGORY_MASK_UTF_16): Likewise.
11689 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11690 binary file.
11691 (detect_coding): Add null-byte detection for a binary file.
11692 (detect_coding_system): Likewise.
11693
116942008-04-03 Jason Rumney <jasonr@gnu.org>
11695
11696 * w32uniscribe.c: New file.
11697
11698 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11699
11700 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11701
11702 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11703 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11704 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11705 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11706 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11707 (Qphonetic): New symbols.
11708 (syms_of_w32font): Initialize them.
11709 (font_supported_scripts): Use them.
11710 (w32font_list_family): List all charsets.
11711 (w32font_text_extents, recompute_cached_metrics): Fix metric
11712 calculations.
11713 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11714 Give opentype fonts their own format.
11715 (font_matches_spec): New arguments backend and logfont.
11716 Handle :otf spec for uniscribe backend.
11717 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11718 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11719
11720 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11721 font backend.
11722 (globals_of_w32fns): Initialize uniscribe font backend.
11723
11724 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11725 dependencies.
11726 (w32uniscribe.$(O)): New file to build.
11727 (FONT_OBJ): Include w32uniscribe.$(O).
11728 (LIBS): Add uniscribe libraries.
11729
11730 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11731
117322008-04-02 Chong Yidong <cyd@stupidchicken.com>
11733
11734 * callint.c (Vshift_select_mode): New var.
11735 (Finteractive): Document new ^ spec.
11736 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11737 is present.
11738
11739 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11740 (command_loop_1): Avoid running the direct display versions of
11741 forward-char and backward-char if shift-selection may occur.
11742 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11743 shift-translation takes place.
11744
11745 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11746 avoid clobbering by define-minor-mode.
11747
11748 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11749 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11750
11751 * syntax.c (Fforward_word): Add ^ interactive spec.
11752
11753 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11754 (Fscroll_right): Add ^ interactive spec.
11755
117562008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11757
11758 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11759
11760 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11761
11762 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11763
117642008-03-31 Juri Linkov <juri@jurta.org>
11765
11766 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11767
117682008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11769
11770 * gtkutil.c (xg_set_geometry): Fix indentation.
11771 (xg_resize_outer_widget): Remove.
11772 (x_wm_size_hint_off): Fix indentation.
11773 (xg_frame_set_char_size): Call flush_and_sync after
11774 gtk_window_resize.
11775 (x_wm_set_size_hint): Pass NULL as geometry window to
11776 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11777 Add menu bar and tool bar height to base height.
11778 (xg_update_frame_menubar, free_frame_menubar)
11779 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11780 (update_frame_tool_bar, free_frame_tool_bar):
11781 Change xg_resize_outer_widget to xg_frame_set_char_size.
11782
117832008-03-30 Michael Albinus <michael.albinus@gmx.de>
11784
11785 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11786 (Fdbus_call_method): New parameter TIMEOUT.
11787 (dbus-send-signal): Optimize UNGCPRO call.
11788
117892008-03-29 Juri Linkov <juri@jurta.org>
11790
11791 * window.c (Fdisplay_buffer): Move call to
11792 Vsplit_window_preferred_function out of conditions that check
11793 if window is eligible for vertical splitting.
11794 When Vsplit_window_preferred_function is non-nil, call it and use
11795 its non-nil return value as window. Otherwise, continue doing
11796 vertical splitting using Fsplit_window with arg horflag=nil.
11797 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11798 default value from `split-window' to nil.
11799
118002008-03-29 Juri Linkov <juri@jurta.org>
11801
11802 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11803 for interactive code letters 'b' and 'B'.
11804
118052008-03-29 Eli Zaretskii <eliz@gnu.org>
11806
11807 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11808 multibyte string.
11809
118102008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11811
11812 * keyboard.c (pending_funcalls): New var.
11813 (timer_check): Run it.
11814 (syms_of_keyboard): Initialize it.
11815 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11816 (Vdelete_terminal_functions): New vars.
11817 (syms_of_terminal): Initialize them.
11818 (Fdelete_terminal): Run delete-terminal-functions.
11819 * xdisp.c (safe_eval): Rewrite.
11820 (safe_call2): New fun.
11821 * frame.c (Qdelete_frame_functions): New var.
11822 (syms_of_frame): Initialize it.
11823 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11824 * lisp.h (safe_call2, pending_funcalls): Declare.
11825
118262008-03-28 Andreas Schwab <schwab@suse.de>
11827
11828 * indent.c (Fmove_to_column): Move declaration before statements.
11829
118302008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11831
11832 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11833 (struct frame): Use bit fields for boolean vars.
11834
11835 * process.c (server_accept_connection): Simplify naming.
11836 (emacs_get_tty_pgrp): Use SDATA.
11837
11838 * coding.c (decode_coding_object): Fix last change.
11839
118402008-03-27 Jason Rumney <jasonr@gnu.org>
11841
11842 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11843
118442008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11845
11846 * charset.c (Fdefine_charset_internal): Change the way of
11847 registering charsets in Vcharset_order_list.
11848 (syms_of_charset): Make the charset `eight-bit' supplementary.
11849
118502008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11851
11852 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11853 operations, to avoid having the difference between pointers
11854 overflow.
11855
118562008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11857
11858 * indent.c (check_display_width): New fun.
11859 (scan_for_column): Use it.
11860
11861 * data.c (syms_of_data): Mark most-positive-fixnum and
11862 most-negative-fixnum as constants.
11863
11864 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11865
11866 * indent.c (scan_for_column): Extract from current_column_1.
11867 Merge with the same code from Fmove_to_column.
11868 (current_column_1, Fmove_to_column): Use it.
11869
118702008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11871
11872 * keymap.c (map_keymap_internal): New fun.
11873 (map_keymap): Use it.
11874 (Fmap_keymap_internal): New fun.
11875 (Fmap_keymap): Remove left-out test from before make_save_value.
11876
11877 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11878
11879 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11880 Use XCAR/XCDR.
11881
11882 * process.h (struct Lisp_Process): Remove filter_multibyte.
11883 * process.c (QCfilter_multibyte): Remove.
11884 (setup_process_coding_systems): Don't use filter_multibyte.
11885 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11886 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11887 (Fset_process_filter_multibyte): Change the coding-system to
11888 approximate the previous behavior.
11889 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11890 coding-system.
11891
11892 * coding.c (decode_coding_object): When not decoding into a buffer,
11893 obey the coding system's preference of (uni|multi)byte.
11894
118952008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11896
11897 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11898 every char is changed and has a different byte-length.
11899 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11900 Fix int -> EMACS_INT.
11901
119022008-03-23 David Hansen <david.hansen@gmx.net>
11903
11904 * dbusbind.c (xd_read_message): Remove extra copying of message
11905 strings. Check for NULL `interface' or `member'.
11906
119072008-03-22 Eli Zaretskii <eliz@gnu.org>
11908
11909 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11910 cFileName a file name that includes `?' characters, use the 8+3
11911 alias in cAlternateFileName instead.
11912
119132008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11914
11915 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11916
119172008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11918
11919 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11920 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11921 work on current_buffer only instead (that was already the case
11922 for some of the code anyway).
11923 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11924 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11925 (SET_PT, SET_PT_BOTH): Adjust.
11926 * intervals.h (set_point, temp_set_point, set_point_both)
11927 (temp_set_point_both): Remove redundant declarations.
11928
119292008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * fileio.c (Finsert_file_contents):
11932 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11933 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11934 when buffer != current_buffer anyway.
11935
119362008-03-20 Andreas Schwab <schwab@suse.de>
11937
11938 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11939 as default.
11940
119412008-03-19 Jason Rumney <jasonr@gnu.org>
11942
11943 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11944 (syms_of_w32fns): Initialize them.
11945 (HOURGLASS_ID): New constant.
11946 (x_window_to_frame): Don't check hourglass_window.
11947 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11948 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11949 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11950 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11951 Only change the cursor if hourglass is not active.
11952 (Fx_create_frame): Initialize frame's current_cursor.
11953 (hourglass_atimer): Remove.
11954 (hourglass_started): New function.
11955 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11956 (show_hourglass): Adapt to w32, changing argument to frame.
11957
11958 * w32term.h (struct w32_output): Remove hourglass_window.
11959 Add current_cursor.
11960
11961 * eval.c (call_debugger, Fsignal):
11962 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11963 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11964 (Fexecute_extended_command, cancel_hourglass_unwind):
11965 * minibuf.c (read_minibuf):
11966 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11967
119682008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11969
11970 * window.c (run_funs): New fun.
11971 (run_window_configuration_change_hook): Use it to run the buffer-local
11972 and the global part of the hook.
11973
11974 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11975 (unwind_format_mode_line): Restore selected window.
11976 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11977
119782008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11979
11980 * editfns.c (Fchar_equal): Check they are valid characters.
11981
11982 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11983
119842008-03-17 Andreas Schwab <schwab@suse.de>
11985
11986 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11987 against a charset.
11988
11989 * lisp.h (Fbuffer_list): Declare.
11990
119912008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11992
aac0c6e3
MR
11993 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11994 handlebox_widget is != 0.
11995
119962008-03-16 Juri Linkov <juri@jurta.org>
11997
11998 * callint.c (Fcall_interactively): For interactive code letters
11999 'b' and 'B' put the buffer list into the list of default "future"
12000 values of the minibuffer.
12001
120022008-03-16 Andreas Schwab <schwab@suse.de>
12003
12004 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12005 modifiers.
12006
12007 * regex.c (re_match_2_internal): Correct matching of a charset
12008 against latin-1 characters.
12009
120102008-03-16 Kenichi Handa <handa@m17n.org>
12011
12012 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12013 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12014 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12015 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12016 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12017 CHAR_STRING_ADVANCE.
12018 (produce_chars): Fix for the case that the source and the
12019 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12020 instead of CHAR_STRING_ADVANCE.
12021 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12022 STRING_CHAR_ADVANCE.
12023
120242008-03-15 Andreas Schwab <schwab@suse.de>
12025
12026 * regex.c (re_match_2_internal): Correct matching of eight bit
12027 characters in unibyte strings.
12028
120292008-03-15 Martin Rudalics <rudalics@gmx.at>
12030
12031 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12032 at end of range when it coincides with the end of the buffer.
12033
120342008-03-14 Eli Zaretskii <eliz@gnu.org>
12035
12036 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12037
12038 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12039
120402008-03-14 Jason Rumney <jasonr@gnu.org>
12041
12042 * editfns.c (initial_tz): New variable.
12043 (syms_of_editfns): Initialize it.
12044 (Fset_time_zone_rule): Set it when first called.
12045 Use it when TZSTRING is nil.
12046
12047 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12048 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12049 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12050 (globals_of_w32fns): Initialize them.
12051 (compute_tip_xy): Use them to position tooltips.
12052
120532008-03-14 Glenn Morris <rgm@gnu.org>
12054
12055 * emacs.c (main): Revert previous change.
12056 (standard_args): Revert -internal-script back to -scriptload,
12057 and remove the long-option form.
12058
120592008-03-13 Glenn Morris <rgm@gnu.org>
12060
12061 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12062 Remove option -enable-font-backend.
12063
120642008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12065
12066 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12067
120682008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12069
12070 * xterm.c (x_connection_closed): For GTK: If this is the last
12071 terminal just exit without closing the display.
12072
120732008-03-11 Jason Rumney <jasonr@gnu.org>
12074
12075 * w32font.c (w32font_full_name): Use floor to round.
12076
f0131492 120772008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12078
12079 * sound.c (alsa_configure): Declare vol at beginning of block.
12080
12081 * fontset.c (Ffontset_info): Remove extra semicolon.
12082
120832008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12084
12085 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12086 size of resulting string.
12087
120882008-03-10 Jason Rumney <jasonr@gnu.org>
12089
12090 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12091
120922008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12093
12094 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12095 Don't pretend as if characters with display property haven't been
12096 consumed for string-replacing-string case.
12097
120982008-03-08 Kim F. Storm <storm@cua.dk>
12099
12100 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12101 (get_next_display_element, next_element_from_string)
12102 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12103
121042008-03-08 Andreas Schwab <schwab@suse.de>
12105
12106 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12107
121082008-03-06 Jason Rumney <jasonr@gnu.org>
12109
12110 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12111 when charset not specified. Only translate ANSI to unicode when
12112 font_type is truetype.
12113 (w32font_coverage_ok): New function.
12114 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12115
121162008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12117
12118 * lread.c (Fread_char): Resolve modifiers.
12119 (Fread_char_exclusive): Likewise.
12120
12121 * character.c (char_resolve_modifier_mask): New function.
12122 (char_string): Use char_resolve_modifier_mask.
12123 (Fchar_resolve_modifiers): New function.
12124 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12125 function.
12126
121272008-03-04 Jason Rumney <jasonr@gnu.org>
12128
12129 * makefile.w32-in: Always include w32font.c in the build.
12130 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12131
121322008-03-04 Andreas Schwab <schwab@suse.de>
12133
12134 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12135 (versionclean): Likewise.
12136
121372008-03-04 Juanma Barranquero <lekktu@gmail.com>
12138
12139 * .cvsignore: Add oo.
12140
121412008-03-03 Andreas Schwab <schwab@suse.de>
12142
12143 * coding.c (decode_coding_object): Inhibit gap shrinking while
12144 decoding in place.
12145
121462008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12147
12148 * w32term.c: Remove unused include "gnu.h".
12149 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12150
12151 * gnu.h: Rename to ...
12152 * emacs-icon.h: ... this.
12153 * xterm.c: Use emacs-icon.h instead of gnu.h.
12154 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12155
121562008-03-03 Juanma Barranquero <lekktu@gmail.com>
12157
12158 * w32font.c: Include math.h.
12159
121602008-03-03 Jason Rumney <jasonr@gnu.org>
12161
12162 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12163 Compute options separately.
12164 (w32font_open_internal): Set glyph_idx before caching metrics.
12165
12166 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12167 Define if system headers don't.
12168 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12169 (w32font_encode_char): Don't declare here.
12170
12171 * w32font.c (Quniscribe, QCformat): New symbols.
12172 (syms_of_w32font): Define them.
12173 (w32font_has_char): Indicate uncertainty.
12174 (w32font_encode_char): Encode as glyph point. Make static.
12175 (recompute_cached_metrics): New function.
12176 (w32font_open_internal): Use it. Set font to use glyph points
12177 initially. Set format based on type of font.
12178 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12179 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12180 on it. Set format based on information available here.
12181 (add_font_entity_to_list): Identify backend based on opentype_only.
12182
121832008-03-02 Andreas Schwab <schwab@suse.de>
12184
12185 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12186
12187 * coding.c (decode_coding_big5, produce_chars):
12188 Fix typos in last change.
12189
121902008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12191
12192 * gnu.h: New icon.
12193
121942008-03-02 Kenichi Handa <handa@m17n.org>
12195
12196 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12197 `dos', don't decode '\r' if that is the last in the source.
12198 (decode_coding_utf_16, decode_coding_emacs_mule)
12199 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12200 (decode_coding_raw_text, decode_coding_charset): Likewise.
12201 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12202
122032008-03-01 Jason Rumney <jasonr@gnu.org>
12204
12205 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12206
122072008-03-01 Kim F. Storm <storm@cua.dk>
12208
12209 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12210
122112008-03-01 Jason Rumney <jasonr@gnu.org>
12212
12213 * w32font.c (w32font_full_name): New function.
12214 (w32font_open_internal): Use it.
12215
122162008-03-01 Kim F. Storm <storm@cua.dk>
12217
12218 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12219
122202008-03-01 Jason Rumney <jasonr@gnu.org>
12221
12222 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12223
122242008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12225
12226 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12227 xg_frame_resized when the event is for the edit widget.
12228
12229 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12230
12231 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12232 set_char_size.
12233 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12234 operations on widgets here. Just set frame size if needed.
12235 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12236 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12237 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12238 the whole frame.
12239 (xg_create_tool_bar): Move attachment of the tool bar to
12240 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12241 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12242
122432008-03-01 Jason Rumney <jasonr@gnu.org>
12244
12245 * w32fns.c (w32_msg_pump): Disable debug code.
12246
122472008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12248
12249 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12250
122512008-02-29 Chong Yidong <cyd@stupidchicken.com>
12252
12253 * xdisp.c (next_overlay_string): Don't set
12254 overlay_strings_at_end_processed_p if we're currently reading from
12255 a display string.
12256
122572008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12258
12259 * xdisp.c (get_overlay_strings_1): Fix typo.
12260
122612008-02-29 Chong Yidong <cyd@stupidchicken.com>
12262
12263 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12264
122652008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12266
12267 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12268
12269 * xdisp.c (display_mode_element): Cancel the previous change.
12270 (decode_mode_spec): Likewise.
12271 (handle_auto_composed_prop): Don't make composition if it->string
12272 is a string.
12273
122742008-02-27 Kim F. Storm <storm@cua.dk>
12275
12276 * lisp.h (GLYPH): Change type from int to struct with separate char
12277 and face_id members.
12278 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12279 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12280 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12281 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12282 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12283 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12284 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12285 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12286 handle new Lisp glyph code encoding, either an integer or a cons.
12287
12288 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12289 (GLYPH_ALIAS): Delete.
12290 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12291 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12292 (GLYPH_FROM_CHAR): Replace macro by ...
12293 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12294
12295 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12296 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12297 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12298 (GLYPH_INVALID_P): New macro.
12299 (spec_glyph_lookup_face): Update prototype.
12300
12301 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12302 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12303 new glyph code encoding.
12304 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12305 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12306
12307 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12308 Adapt to new glyph type and new glyph code encoding.
12309
12310 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12311
12312 * indent.c (current_column, current_column_1, Fmove_to_column)
12313 (compute_motion): Adapt to new glyph code encoding.
12314
12315 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12316
123172008-02-27 Chong Yidong <cyd@stupidchicken.com>
12318
12319 * process.c (wait_reading_process_output): Check for window
12320 changes caused by timers.
12321 Suggested by Johan Bockgård.
12322
123232008-02-27 Glenn Morris <rgm@gnu.org>
12324
12325 * emacs.c (USAGE1): Add `--disable-font-backend'.
12326
123272008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12328
12329 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12330 is made to the buffer.
12331
123322008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12333
12334 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12335 (face_at_string_position):
12336 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12337 (face_at_string_position):
12338 * xdisp.c (display_string, next_overlay_change):
12339 * buffer.h (overlays_at):
12340 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12341 Update callers.
12342
123432008-02-26 Chong Yidong <cyd@stupidchicken.com>
12344
12345 * editfns.c (Fformat): Doc fix.
12346
123472008-02-26 Juanma Barranquero <lekktu@gmail.com>
12348
12349 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12350 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12351 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12352
123532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12354
12355 * buffer.c (Fbuffer_swap_text): New function.
12356 (syms_of_buffer): Defsubr it.
12357
123582008-02-25 Chong Yidong <cyd@stupidchicken.com>
12359
12360 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12361
123622008-02-25 Jason Rumney <jasonr@gnu.org>
12363
12364 * w32font.c (w32font_draw): Draw one character at a time when padding.
12365
123662008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12367
12368 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12369 Handle a nil arg. Use run_window_configuration_change_hook.
12370 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12371 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12372 Use run_window_configuration_change_hook.
12373
123742008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12375
12376 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12377 1-pixel width.
12378
123792008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12380
12381 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12382 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12383 if the glyph in the font is zero pixel with.
12384
12385 * dispextern.h (struct glyph_string): New member padding_p.
12386
12387 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12388
12389 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12390
12391 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12392
12393 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12394
12395 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12396
123972008-02-25 Jason Rumney <jasonr@gnu.org>
12398
12399 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12400
124012008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12402
12403 Allow fine-grained image-cache flushing.
12404 * dispextern.h (struct image): Add `dependencies' field.
12405 (clear_image_caches): Change arg to Lisp_Object.
12406 * image.c (make_image): Initialize `dependencies' field.
12407 (clear_image_cache): Change arg to allow fine-grained flushing.
12408 Perform the flush even if image-cache-eviction-delay is nil.
12409 (clear_image_caches): Change arg to Lisp_Object.
12410 (Fclear_image_cache): Expand meaning of the argument.
12411 (mark_image): Mark `dependencies' field.
12412 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12413 (lface_hash): Use XHASH rather than XFASTINT.
12414 (face_at_buffer_position): Fix int -> EMACS_INT position.
12415 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12416 (select_frame_for_redisplay): Remove code duplication.
12417 (redisplay_internal): Adapt arg to call to clear_image_caches.
12418
124192008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12420
12421 * s/vms4-0.h:
12422 * s/vms4-2.h:
12423 * s/vms4-4.h:
12424 * s/vms5-5.h: Remove, unused.
12425
12426 * s/irix5-2.h:
12427 * s/irix6-0.h:
12428 * s/riscos5.h:
12429 * s/mach-bsd4-3.h:
12430 * m/mips4.h: Remove files for obsolete systems.
12431
12432 * Makefile.in:
12433 * filelock.c:
12434 * unexmips.c:
12435 * m/hp9000s300.h:
12436 * m/iris4d.h:
12437 * s/aix3-1.h:
12438 * s/hpux.h:
12439 * s/msdos.h:
12440 * s/usg5-0.h:
12441 * s/usg5-2-2.h:
12442 * s/usg5-2.h:
12443 * s/usg5-3.h: Remove references to obsolete variables.
12444
12445 * s/irix5-0.h: Remove, move all the contents ...
12446 * s/irix6-5.h: ... here. Simplify.
12447 * config.in: Regenerate.
12448
124492008-02-24 Jason Rumney <jasonr@gnu.org>
12450
12451 * w32term.c (x_draw_glyph_string_background): Clear the background
12452 manually when cleartype is in use.
12453 (x_draw_glyph_string_foreground): Draw text transparently when
12454 cleartype is in use.
12455
12456 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12457 a font into it unless we have to.
12458
124592008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12462 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12463
aac0c6e3
MR
124642008-02-18 Jason Rumney <jasonr@gnu.org>
12465
12466 * w32fns.c (Fw32_shell_execute): Encode parameters.
12467
124682008-02-09 Eli Zaretskii <eliz@gnu.org>
12469
12470 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12471
124722008-02-05 Juanma Barranquero <lekktu@gmail.com>
12473
12474 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12475
124762008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12477
12478 * xterm.c (x_set_offset): Don't change the gravity if
12479 CHANGE_GRAVITY is -1.
12480
124812008-02-23 Chong Yidong <cyd@stupidchicken.com>
12482
12483 * fileio.c (auto_save_error_occurred): New var.
12484 (auto_save_error): Set it.
12485 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12486 error occurred.
12487
124882008-02-23 Eli Zaretskii <eliz@gnu.org>
12489
12490 * w32.c (globals_of_w32): Add initializations for
12491 g_b_init_get_sid_sub_authority and
12492 g_b_init_get_sid_sub_authority_count.
12493
124942008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12495
12496 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12497 (font_parse_xlfd): Use them for sanity check.
12498 (Finternal_set_font_style_table): Make sure the table is bijective.
12499
12500 Consolidate the image_cache to the terminal struct.
12501 * termhooks.h (P_): Remove redundant def.
12502 (struct terminal): New field `image_cache'.
12503 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12504 of FRAME_X_IMAGE_CACHE.
12505 * xterm.h (struct x_display_info): Remove image_cache field.
12506 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12507 * w32term.h (struct w32_display_info): Remove image_cache field.
12508 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12509 * macterm.h (struct mac_display_info): Remove image_cache field.
12510 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12511 * xterm.c (x_term_init):
12512 * w32term.c (w32_term_init):
12513 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12514 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12515 Remove declarations.
12516 (clear_image_caches, mark_image_cache): New declarations.
12517 * xfaces.c (clear_face_cache):
12518 * xdisp.c (redisplay_internal): Use clear_image_caches.
12519 * image.c (clear_image_cache): Don't check that a frame is on
12520 a window-system before checking if it shares the same cache.
12521 (clear_image_caches): New function.
12522 (Fclear_image_cache): Use it.
12523 (mark_image): Move from allo.c.
12524 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12525 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12526 (mark_object): Don't call mark_image_cache for frames.
12527 (mark_terminals): Call mark_image_cache.
12528
12529 * lisp.h (Fdelete_terminal): Declare.
12530
12531 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12532 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12533 wrong_type_argument.
12534
125352008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12536
12537 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12538 malayalam.el, and tamil.el. Add sinhala.el.
12539
125402008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12541
12542 * xterm.c (x_connection_closed): Consolidate identical tests.
12543 (x_delete_terminal): Don't crash if called via x_connection_closed.
12544
125452008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12546
12547 * xdisp.c (decode_mode_spec): New arg string.
12548 (display_mode_element): Adjust for the above change.
12549
125502008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12551
12552 * callint.c (Fcall_interactively): Use AREF.
12553
125542008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12555
12556 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12557
125582008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12559
12560 * xfns.c (Fx_show_tip): Set string to " " if empty.
12561
125622008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12563
12564 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12565 with Qt.
12566
125672008-02-17 Kenichi Handa <handa@m17n.org>
12568
12569 * ftfont.c (ftfont_shape): Return Lispy number.
12570
12571 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12572 for GCs.
12573 (Finternal_set_font_selection_order): Call font_update_sort_order
12574 only when enable_font_backend is set.
12575 (realize_x_face): Set face->font_info to that of default face only
12576 when enable_font_backend is set.
12577
12578 * xdisp.c (handle_composition_prop): Set it->c to the fist
12579 character of the composed region.
12580 (fill_composite_glyph_string): Set base_face->font_info to
12581 s->font_info. Get a face for ascii from base_face->ascii_face.
12582 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12583 with a face already decided.
12584 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12585 non-negative.
12586 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12587 call font_prepare_composition unconditionally.
12588
12589 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12590
12591 * xterm.h (struct x_display_info): New member font.
12592
12593 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12594 (x_set_mouse_face_gc, x_new_font): Likewise.
12595 (x_term_init): Setup display_info->font.
12596 (x_delete_terminal): Free display_info->font.
12597
12598 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12599
12600 * ftxfont.c (ftxfont_default_fid): Delete it.
12601 (ftxfont_open): Set xfont->fid to 0.
12602 (ftxfont_end_for_frame): Clear data specific to the frame and the
12603 font-driver.
12604
12605 * xftfont.c (xftfont_default_fid): Delete it.
12606 (xftfont_open): Set xfont->fid to 0.
12607
12608 * fontset.c (FONTSET_OBJLIST): New macro.
12609 (fontset_find_font): Update font-object list of the fontset.
12610 (free_realized_fontset): New function.
12611 (free_face_fontset): Call free_realized_fontset.
12612 (Ffont_info): Call font_close_object only when enable_font_backend
12613 is set.
12614
12615 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12616 [HAVE_NTGUI]: Include w32term.h.
12617 [MAC_OS]: Include macterm.ch.
12618 (font_otf_ValueRecord): Use make_number.
12619 (font_finish_cache): Fix handling of reference count.
12620 (font_clear_cache): Update num_fonts.
12621 (font_open_entity): Update smallest_char_width and
12622 smallest_font_height of the frame.
12623 (font_close_object): Update num_fonts.
12624 (Fclear_font_cache): Fix finding the target cache data.
12625
126262008-02-16 Glenn Morris <rgm@gnu.org>
12627
12628 * fontset.c (Finternal_char_font): Fix compilation warning.
12629
126302008-02-16 Eli Zaretskii <eliz@gnu.org>
12631
12632 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12633 instead of char arrays. Enlarge the size of array passed to
12634 get_token_information.
12635
12636 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12637 warnings.
12638
126392008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12640
12641 * .gdbinit: Don't set `args', it breaks gdb --args.
12642
126432008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12644
12645 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12646 within a narrowed buffer.
12647
126482008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12649
12650 * coding.c (decode_coding_object, encode_coding_object):
12651 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12652
126532008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12654
12655 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12656 hardcoding 1.
12657 (detect_coding_system):
12658 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12659 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12660 * insdel.c (insert_from_gap):
12661 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12662 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12663 (string_to_multibyte):
12664 * character.c (chars_in_text, multibyte_chars_in_text):
12665 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12666
12667 * character.h (FETCH_STRING_CHAR_ADVANCE)
12668 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12669 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12670 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12671
12672 * casefiddle.c (casify_region): Only call after-change and composition
12673 functions on the part of the region that was changed.
12674
12675 * keyboard.c (read_avail_input):
12676 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12677
126782008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12679
12680 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12681 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12682
126832008-02-11 Juanma Barranquero <lekktu@gmail.com>
12684
12685 * w32menu.c (push_submenu_start, push_submenu_end)
12686 (push_left_right_boundary, push_menu_pane, push_menu_item):
12687 * keyboard.c (read_key_sequence): Don't pass args with side effects
12688 to AREF, it fails when compiling with -DENABLE_CHECKING.
12689
126902008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12691
12692 * Makefile.in (${lispsource}international/charprop.el):
12693 Delete this target.
12694
12695 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12696 emacs-unicode-2.
12697
126982008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12699
12700 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12701
127022008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12703
12704 * frame.c (Qnoelisp): New symbol.
12705 (syms_of_frame): Initialize it.
12706 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12707 harmless Elisp code, from a strong `force' from x_connection_closed.
12708 * frame.h (Qnoelisp): Declare.
12709 * xterm.c (x_connection_closed): Pass `noelisp'.
12710
12711 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12712 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12713 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12714 rather than `int' for the type of `type'.
12715
127162008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12717
12718 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12719
12720 * Makefile.in (GNUC): Remove support for gcc-1.x.
12721
127222008-02-10 Richard Stallman <rms@gnu.org>
12723
12724 * lisp.h (ASET): Use AREF, not ASLOT.
12725
127262008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * lisp.h (ASET): Check bounds.
12729
127302008-02-10 Glenn Morris <rgm@gnu.org>
12731
12732 * buffer.c (mode-name): Doc fix.
12733
127342008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12735
12736 * Makefile.in:
12737 * emacs.c:
12738 * gmalloc.c:
12739 * keyboard.c:
12740 * lisp.h:
12741 * m/ibm370aix.h:
12742 * process.c:
12743 * regex.c:
12744 * s/hpux.h:
12745 * sysdep.c:
12746 * sysselect.h:
12747 * systty.h:
12748 * unexec.c:
12749 * w32term.c:
12750 * xsmfns.c:
12751 * xterm.c: Remove code that deals with obsolete variables.
12752
12753 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12754
12755 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12756 nothing else needs it anymore.
12757
127582008-02-09 Eli Zaretskii <eliz@gnu.org>
12759
12760 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12761 instead of unibyte_char_to_multibyte.
12762
127632008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12764
12765 * s/gnu-linux.h: Remove commented out code.
12766
12767 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12768
12769 * Makefile.in: Update what RMS says about using autoconf.
12770 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12771 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12772 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12773 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12774
127752008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12776
12777 * keymap.c (Fkey_description): Move side effect outside of macro call.
12778
12779 * xfaces.c (Finternal_make_lisp_face):
12780 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12781
12782 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12783 (syms_of_fontset): Use ASET.
12784
12785 * fns.c (concat): Move side effect outside of macro call.
12786 (hash_clear): Use ASET.
12787
127882008-02-08 Richard Stallman <rms@gnu.org>
12789
12790 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12791 If FORCE, and frame has a surrogate minibuffer for another frame,
12792 delete the other frame first.
12793
127942008-02-07 Timo Savola <timo.savola@iki.fi>
12795
12796 * xterm.c (x_detect_focus_change): Handle embed client message.
12797 (handle_one_xevent): Ditto.
12798 (handle_one_xevent): If embedded and we get a button press/release,
12799 request focus.
12800 (xembed_set_info, xembed_send_message): New functions.
12801 (x_make_frame_visible): Call xembed_set_info if embedded.
12802 (x_make_frame_invisible): Call xembed_set_info if embedded.
12803 (x_term_init): Initialize Xatom_XEMBED.
12804 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12805 (x_iconify_frame): Ditto.
12806
12807 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12808 (enum xembed_info, enum xembed_message, enum xembed_focus)
12809 (enum xembed_modifier, enum xembed_accelerator): New.
12810 (xembed_set_info, xembed_send_message): Declare.
12811 (FRAME_X_EMBEDDED_P): New.
12812
12813 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12814 gtk_plug_new.
12815
12816 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12817 window ID of a frame.
12818 (x_window): Reparent frame if embedded.
12819 (Fx_create_frame): Don't set border width if embedded.
12820
12821 * emacs.c (USAGE3): Add --parent-id.
12822 (standard_args): Ditto.
12823
128242008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12825
12826 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12827
128282008-02-07 Jim Meyering <meyering@redhat.com>
12829
12830 Use "do...while (0)", not "if (1)...else" in macro definitions.
12831 The latter provokes a warning from gcc about the empty else, when
12832 followed by ";". Also, without that trailing semicolon, it would
12833 silently swallow up any following statement.
12834 * syntax.h (SETUP_SYNTAX_TABLE)
12835 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12836 * buffer.h (DECODE_POSITION): Likewise.
12837 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12838 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12839 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12840 (FETCH_CHAR_ADVANCE): Likewise.
12841 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12842
128432008-02-07 Jim Meyering <meyering@redhat.com>
12844
12845 * lread.c [lint]: Don't include <sys/inode.h>.
12846
128472008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12848
12849 * xselect.c (x_handle_dnd_message):
12850 * xmenu.c (digest_single_submenu, xmenu_show):
12851 * xdisp.c (with_echo_area_buffer_unwind_data)
12852 (format_mode_line_unwind_data, unwind_format_mode_line)
12853 (display_menu_bar):
12854 * eval.c (Ffetch_bytecode):
12855 * doc.c (store_function_docstring):
12856 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12857 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12858 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12859
128602008-02-07 Kenichi Handa <handa@m17n.org>
12861
12862 * ftxfont.c (ftxfont_open): Don't set
12863 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12864
12865 * ftfont.c (ftfont_open): Fix previous change.
12866
128672008-02-06 Jason Rumney <jasonr@gnu.org>
12868
12869 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12870 Use cached metrics for ASCII characters.
12871 (w32font_open_internal): Don't set font's owning_frame.
12872 Cache metrics for ASCII characters.
12873
12874 * w32font.h (struct w32font_info): Add ascii_metrics.
12875 Remove owning_frame.
12876
128772008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12878
12879 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12880 to negative value.
12881
12882 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12883
12884 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12885
12886 * charset.c (syms_of_charset): Set QCtest and Qeq.
12887
128882008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12889
12890 * process.c (Fstart_process):
12891 * callproc.c (Fcall_process): Handle the case where
12892 Funhandled_file_name_directory returns nil.
12893
12894 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12895 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12896 * font.c (check_gstring): Use them and AREF to access the vector before
12897 we know it's really a gstring.
12898 (Ffont_shape_text): Fix typo.
46e722a9 12899 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12900
12901 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12902 Declare.
12903
12904 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12905
129062008-02-05 Jason Rumney <jasonr@gnu.org>
12907
12908 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12909 Set smallest_font_height and smallest_char_width in display info.
12910
129112008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12912
12913 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12914
129152008-02-05 Miles Bader <miles@gnu.org>
12916
12917 * xfaces.c (get_lface_attributes, merge_named_face)
12918 (lookup_named_face, lookup_derived_face, realize_named_face):
12919 Revert 2008-02-01 change by cyd@stupidchicken.com.
12920
129212008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12922
12923 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12924 fallback fonts.
12925 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12926
129272008-02-04 Jason Rumney <jasonr@gnu.org>
12928
12929 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12930 set full_name.
12931 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12932
129332008-02-03 Jason Rumney <jasonr@gnu.org>
12934
12935 * makefile.w32-in (OBJ1): Include font.o here.
12936 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12937
129382008-02-02 Jason Rumney <jasonr@gnu.org>
12939
12940 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12941
129422008-02-01 Jason Rumney <jasonr@gnu.org>
12943
12944 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12945
12946 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12947
129482008-02-01 Andreas Schwab <schwab@suse.de>
12949
12950 * Makefile.in (shortlisp, lisp): Update for rename of
12951 ../lisp/language/myanmar.el.
12952
129532008-02-01 Chong Yidong <cyd@stupidchicken.com>
12954
12955 * xfaces.c (get_lface_attributes): Delete function.
12956 (merge_named_face, lookup_named_face, lookup_derived_face)
12957 (realize_named_face): Call lface_from_face_name directly, and use
12958 the fact that merge_face_vectors does not alter its FROM argument.
12959
129602008-02-01 Jason Rumney <jasonr@gnu.org>
12961
12962 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12963 input in the default locale. Handle non-Unicode multibyte input.
12964
129652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12966
12967 * fontset.c (reorder_font_vector): Exclude nil elements from the
12968 font group. Don't try multiple fonts.
12969 (fontset_font): Adjust for the above change.
12970 (Finternal_char_font): Return nil if the found font doesn't
12971 contain the character ch.
12972
12973 * Makefile.in (lisp, shortlisp): Add cham.el.
12974
129752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12976
12977 * font.h (FONTP): Make it return 1 also for a font-object.
12978
12979 * .gdbinit (xfontset): New function.
12980
12981 * font.c (font_find_for_lface): Check if the character C is
12982 supported or not only for the first font.
12983
12984 * fontset.c (reorder_font_vector): Fix typo.
12985 (fontset_find_font): Don't add a font-spec specifying a script.
12986 Use 0 (not Qt) for the indication of empty font-group. Change the
12987 format of RFONT-DEF. Return Qt if no font in the font-group
12988 support the character.
12989 (fontset_font): Adjust for the above change. If no font was
12990 found the character, remember that.
12991 (face_for_char): Adjust for the change of RFONT-DEF.
12992 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12993 no font for the target.
12994 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12995
129962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12997
12998 * font.c (font_load_for_face): Handle the case that the font in
12999 face->lface is a string.
13000
130012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13002
13003 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13004
130052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13006
13007 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13008 Fix previous change. If the frame is not on a window system,
13009 signal an error.
13010
130112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13012
13013 * coding.c (decode_coding_object, encode_coding_object): Adjust
13014 marker positions after conversion.
13015
13016 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13017
130182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13019
13020 * font.c (font_find_for_lface): Fix the handling of the return
13021 value of font_has_char.
13022 (Ffont_shape_text): Fix previous change.
13023
13024 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13025 (fontset_ref_and_range): Delete it.
13026 (fontset_find_font): Call char_table_ref_and_range instead of
13027 FONTSET_REF_AND_RANGE.
13028 (make_fontset): Don't setup font groups of Latin here.
13029 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13030 (new_fontset_from_font): Make the specified font the default for
13031 all Latin characters.
13032
130332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13034
13035 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13036 is on a window system before accessing the fontset of the frame.
13037
130382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13039
13040 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13041
13042 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13043 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13044
13045 * font.c (Ffont_shape_text): If the font driver doesn't have a
13046 shaper function, make zero-width glyphs to have at least one-pixel
13047 width. Fix setting of `to' field of glyphs.
13048
130492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13050
13051 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13052 glyphs.
13053
13054 * font.h (struct font_driver): Improve docstring of member `shape'.
13055
130562008-02-01 Kenichi Handa <handa@m17n.org>
13057
13058 * composite.c (syms_of_composite): Fix docstring of
13059 auto-composition-function.
13060
13061 * font.h (LGLYPH_SIZE): New macro.
13062
13063 * font.c (Ffont_fill_gstring): Stop filling when a character not
13064 supported by the font is found.
13065 (Ffont_shape_text): When a shape callback function returns nil,
13066 try at most two more times with larger gstring.
13067 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13068
13069 * xdisp.c (handle_auto_composed_prop): Change the argument to
13070 auto-composition-function.
13071
13072 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13073 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13074 Lispy glyph and store it in the lgstring.
13075
13076 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13077
13078 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13079
130802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13081
13082 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13083
13084 * fontset.c (Vfont_encoding_charset_alist): New variable.
13085 (syms_of_fontset): DEFVAR it.
13086 (reorder_font_vector, fontset_find_font): Optimize for the case of
13087 no need of reordering.
13088 (face_for_char): Map the charset property by
13089 Vfont_encoding_charset_alist.
13090
130912008-02-01 Jason Rumney <jasonr@gnu.org>
13092
13093 * w32font.c (logfonts_match): Don't check adstyle here.
13094 (font_matches_spec): Check here against physical font instead.
13095 (add_font_entity_to_list): Avoid some substitutions.
13096
13097 * font.c (font_parse_fcname): Default weight and slant to normal.
13098 (font_score): Prefer normal fonts if weight or slant unspecified.
13099 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13100 match freetype scores.
13101
131022008-02-01 Jason Rumney <jasonr@gnu.org>
13103
13104 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13105 font, as it may have been deleted.
13106 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13107 most common hyphenless variation.
13108 (logfonts_match): Check generic family.
13109 (font_matches_spec): Don't check generic family here.
13110 (fill_in_logfont): Set generic family based on adstyle.
13111
13112 * w32font.h (w32font_get_cache): Update declaration.
13113
131142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13115
13116 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13117
13118 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13119 If none of the new drivers are available, call font_update_drivers
13120 with the old drivers.
13121
13122 * w32font.c (w32font_get_cache): Adjust the argument type.
13123
13124 * xfont.c (xfont_get_cache): Adjust the argument type.
13125
13126 * font.h (struct font_driver): Change argument type of get_cache.
13127
13128 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13129
13130 * font.c (Ffont_get): Fix arguments to Fassoc.
13131 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13132 (font_clear_cache): New function.
13133 (font_list_entities, font_matching_entity): Use font_get_cache.
13134 (font_update_drivers): Call font_clear_cache when finishing a driver.
13135
13136 * fontset.c (fontset_find_font): Fix previous change.
13137
131382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13139
13140 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13141 dpyinfo->font_table.
13142 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13143 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13144
13145 * font.c (font_at): Handle the case that the arg C is negative.
13146 Handle the unibyte case.
13147 (Ffont_at): Call font_at with the arg C -1.
13148
13149 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13150 the position here, and call font_at with the arg C -1.
13151 Don't check the range of the existing composition at the point.
13152
131532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13154
13155 * fontset.c (fontset_add): New args charset_id and family.
13156 Change caller.
13157 (load_font_get_repertory, fontset_find_font): Assume that
13158 font_spec is always a font-spec object.
13159 (Fset_fontset_font): Always store a font-spec object in a fontset.
13160
13161 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13162 instead of get_property_and_range.
13163
131642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13165
13166 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13167 (xftfont_open): Don't keep locking face.
13168 (xftfont_close): Don't unlock face.
13169 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13170
13171 * fontset.c (fontset_find_font): Don't prefer a font of
13172 supplementary charset.
13173
131742008-02-01 Kenichi Handa <handa@m17n.org>
13175
13176 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13177 script, langsys_tag to langsys, new member script.
13178 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13179 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13180 listing to the script specified in that property. Fix arg to
13181 OTF_check_features.
13182
131832008-02-01 Jason Rumney <jasonr@gnu.org>
13184
13185 * w32font.h: New file.
13186
13187 * w32font.c: Include it.
13188 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13189 (w32font_open): Set owning_frame.
13190 (w32font_text_extents): Use owning_frame.
13191 (struct font_callback_data): Add opentype_only field.
13192 (add_font_entity_to_list): Use it to filter fonts.
13193 Don't check against full name.
13194 (w32font_list_internal): New function.
13195 (w32font_list): Use it.
13196 (w32font_match_internal): New function.
13197 (w32font_match): Use it.
13198 (w32font_open_internal): New function.
13199 (w32font_open): Use it.
13200 (w32font_get_cache, w32font_close, w32font_has_char)
13201 (w32font_encode_char, w32font_text_extents, w32font_draw):
13202 Make non-static.
13203
13204 * makefile.w32-in (w32font.o): Depend on w32font.h.
13205
132062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13207
13208 * charset.c (Fdefine_charset_internal): Record a supplementary
13209 charset at the tail of Vcharset_order_list.
13210
13211 * font.c (Ffont_shape_text): Fix the return value.
13212
13213 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13214
13215 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13216
132172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13218
13219 * ftfont.c (struct OpenTypeSpec): New struct.
13220 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13221 (ftfont_get_open_type_spec): New function.
13222 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13223
13224 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13225
132262008-02-01 Jason Rumney <jasonr@gnu.org>
13227
13228 * w32font.c (add_font_entity_to_list): Compare only the beginning
13229 of full name.
13230
132312008-02-01 Kenichi Handa <handa@m17n.org>
13232
13233 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13234 Never return HANDLED_RECOMPUTE_PROPS.
13235
132362008-02-01 Kenichi Handa <handa@m17n.org>
13237
13238 * font.c (font_gstring_produce): Delete it.
13239
13240 * composite.h (COMPOSITION_METHOD):
13241 Handle COMPOSITION_WITH_GLYPH_STRING.
13242
132432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13244
13245 * xfont.c (Qx): Delete.
13246 (syms_of_xfont): Don't initialize Qx.
13247
13248 * composite.h (enum composition_method):
13249 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13250
132512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13252
13253 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13254 (choose_face_font): Accept new form of font-spec.
13255
13256 * frame.h (font_driver_list): Declare it unconditionally.
13257 (struct frame): Define members font_driver_list and font_data_list
13258 unconditionally.
13259
13260 * fontset.c: Include "font.h" unconditionally.
13261 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13262 (Fset_fontset_font): Accept a font-spec object.
13263
13264 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13265 PIXEL_SIZE part a wild card.
13266
13267 * dispextern.h (struct glyph_string): Define members clip and
13268 num_clips unconditionally.
13269 (struct face): Define members font_info and extra unconditionally.
13270
13271 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13272 ftfont_info only when HAVE_LIBOTF is defined.
13273
132742008-02-01 Andreas Schwab <schwab@suse.de>
13275
13276 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13277 and end.
13278
132792008-02-01 Jason Rumney <jasonr@gnu.org>
13280
13281 * w32font.c (w32font_driver): Add new fields.
13282
132832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13284
13285 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13286 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13287 (LIBES): Add @M17N_FLT_CFLAGS@.
13288
13289 * composite.c (compose_text): Don't treat the new style
13290 composition specially.
13291
13292 * emacs.c (main): Call syms_of_font unconditionally.
13293
13294 * font.h (FONT_ENTITY_NOT_LOADABLE)
13295 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13296 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13297 (struct font_driver): New member shape.
13298 (font_registry_charsets): Extern it.
13299 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13300 (font_otf_capability, font_drive_otf): Delete their externs.
13301
13302 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13303 (font_charset_alist, font_registry_charsets): Move from xfont.c
13304 and rename.
13305 (font_prop_validate_otf): New function.
13306 (font_property_table): Register it for QCotf.
13307 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13308 (font_drive_otf): Delete.
13309 (font_prepare_composition): New arg F. Adjust for the change of
13310 lispy gstring.
13311 (font_find_for_lface): New arg C.
13312 (font_load_for_face): Adjust for the change of font_find_for_lface.
13313 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13314 lispy gstring.
13315 (Ffont_shape_text): New function.
13316 (Fopen_font): If the font size is not given, use 12-pixel.
13317 (Ffont_at): New arg STRING.
13318 (syms_of_font): Initalize font_charset_alist.
13319 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13320 conditionally.
13321
13322 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13323 fonts of the same font-spec. Change the format of RFONT-DEF.
13324 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13325 Adjust for the change of RFONT-DEF.
13326 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13327
13328 * ftfont.h: New file.
13329
13330 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13331 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13332 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13333 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13334 font_otf_capability and font_drive_otf, set ftfont_shape.
13335 (ftfont_list): Adjust for the change of :otf property value.
13336 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13337 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13338 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13339 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13340 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13341 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13342
13343 * w32term.c (x_draw_composite_glyph_string_foreground):
13344 Adjust for the change of lispy gstring.
13345
13346 * xdisp.c (handle_composition_prop): Adjust for the change of
13347 lispy gstring. Call a function for auto-composition with the
13348 third arg it->window.
13349 (fill_composite_glyph_string): Adjust for the change of lispy string.
13350 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13351
13352 * xfaces.c (set_font_frame_param): Adjust for the change of
13353 font_find_for_lface.
13354
13355 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13356 (xfont_registry_charsets): Likewise. Change caller.
13357 (syms_of_xfont): Don't handle x_font_charset_alist.
13358
13359 * xftfont.c: Include "ftfont.h".
13360 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13361 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13362 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13363 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13364 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13365 Set xftfont_driver.shape to xftfont_shape.
13366
13367 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13368 the change of lispy gstring.
13369
133702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13371
13372 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13373
133742008-02-01 Jason Rumney <jasonr@gnu.org>
13375
13376 * w32font.c (w32font_draw): Fill background manually.
13377
133782008-02-01 Jason Rumney <jasonr@gnu.org>
13379
13380 * font.c (Qfontp): Remove unused symbol.
13381 (QCantialias): New symbol.
13382 (syms_of_font): Define it.
13383 (font_property_table): Set a validator for QCantialias.
13384
13385 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13386 Define if not already.
13387 (QCfamily): Share with xfaces.c.
13388 (Qstandard, Qsubpixel, Qnatural): New symbols.
13389 (syms_of_w32font): Define them. Don't define QCfamily here.
13390 (w32_antialias_type, lispy_antialias_type): New functions.
13391 (w32_enumfont_pattern_entity): New arg requested_font.
13392 Set antialias parameter if non-default was requested.
13393 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13394
133952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13396
13397 * lread.c (read1): Undo the previous change.
13398
133992008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13400
13401 * frame.c (Fdelete_frame): Call font_update_drivers only when
13402 USE_FONT_BACKEND is defined.
13403
134042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13405
13406 * font.h (struct font_bitmap): New member bits_per_pixel.
13407 (struct font_driver): New members start_for_frame and end_for_frame.
13408 (struct font_data_list): New struct.
13409 (font_put_frame_data, font_get_frame_data): Extern them.
13410
13411 * frame.h (struct frame): New member font_data_list.
13412
13413 * font.c (font_update_drivers): Call driver->start_for_frame and
13414 driver->end_for_frame at proper timings.
13415 (font_put_frame_data, font_get_frame_data): New functions.
13416 (Ffont_spec): Add usage in the docstring.
13417
13418 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13419 (Fdelete_frame): Call font_update_drivers.
13420
13421 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13422 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13423 (xftfont_get_xft_draw): New function.
13424 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13425 (xftfont_end_for_frame): New function.
13426 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13427
13428 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13429 Change argument. Cache GCs in the per-frame data.
13430 (struct ftxfont_frame_data): New struct.
13431 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13432 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13433 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13434 (ftxfont_end_for_frame): New function.
13435 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13436
13437 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13438
134392008-02-01 Kenichi Handa <handa@m17n.org>
13440
13441 * xselect.c (Vselection_coding_system)
13442 (Vnext_selection_coding_system): Delete them.
13443 (syms_of_xselect): Don't declare selection-coding-system and
13444 next-selection-coding-system. They are declared in select.el.
13445
134462008-02-01 Jason Rumney <jasonr@gnu.org>
13447
13448 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13449
13450 * w32fns.c: Include imm.h.
13451 (get_composition_string_fn, get_ime_context_fn): New optional
13452 system functions.
13453 (globals_of_w32fns): Load them from imm32.dll.
13454 (ignore_ime_char): New flag.
13455 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13456 WM_IME_ENDCOMPOSITION messages.
13457
13458 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13459 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13460
134612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13462
13463 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13464 (READCHAR_REPORT_MULTIBYTE): New macro.
13465 (readchar): New 2nd arg MULTIBYTE.
13466 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13467 Make symbol's name multibyte according to the multibyteness of the
13468 source.
13469
134702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13471
13472 * xfaces.c (face_for_overlay_string): Call lookup_face with
13473 correct arguments (fix of synching with the trunk).
13474
134752008-02-01 Kenichi Handa <handa@m17n.org>
13476
13477 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13478 (font_prop_validate_non_neg, font_prop_validate_spacing):
13479 Delete argument prop_index.
13480 (font_property_table): Change arguments to validater. Change Callers.
13481 (font_lispy_object): Delete.
13482 (font_at): Use font_find_object instead fo font_lispy_object.
13483
134842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13485
13486 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13487 and file names.
13488
134892008-02-01 Jason Rumney <jasonr@gnu.org>
13490
13491 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13492 (font_matches_spec): Remove debug output.
13493 (add_font_entity_to_list): Avoid using substituted fonts.
13494
134952008-02-01 Jason Rumney <jasonr@gnu.org>
13496
13497 * doc.c (Fsnarf_documentation):
13498 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13499
135002008-02-01 Miles Bader <miles@gnu.org>
13501
13502 * dispextern.h (struct glyph_row): Only define "clip" field if
13503 HAVE_WINDOW_SYSTEM is defined.
13504
135052008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13506
13507 Fix up multi-tty merge.
13508
13509 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13510 and indentation.
13511
13512 * xfaces.c (free_realized_face, clear_face_gcs):
13513 Include font_done_for_face in the input_blocked section, just in case.
13514
13515 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13516 (get_char_face_and_encoding): Undo last change and remove the *other*
13517 duplicate definition (i.e. keep the one that's better scoped and that
13518 includes code for the font-backend).
13519
13520 * terminal.c (create_terminal): Default keyboard_coding to
13521 `no-conversion' and terminal_coding to `undecided'.
13522
13523 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13524
13525 * fontset.c (free_realized_fontsets): Check that the table entry does
13526 contain a fontset before trying to compare it to `base'.
13527
13528 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13529 syms_of_charset, and syms_of_coding earlier because init_window_once
13530 now needs Vcoding_system_hash_table to be setup.
13531
13532 * coding.h (default_buffer_file_coding): Remove.
13533
13534 * coding.c (default_buffer_file_coding): Remove.
13535 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13536 than ->symbol, and use the terminal-local coding system.
13537 (syms_of_coding): Don't setup the coding-systems that are not
13538 terminal-local.
13539 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13540
13541 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13542 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13543
13544 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13545 in chartab.c and were re-added here by mistake.
13546 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13547
13548 * doc.c (Fsnarf_documentation):
13549 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13550 src to etc.
13551
13552 * ChangeLog.10: Add mistakenly removed entry.
13553
135542008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13555
13556 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13557
135582008-02-01 Miles Bader <miles@gnu.org>
13559
13560 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13561 Add extra args to FACE_FOR_CHAR.
13562
135632008-02-01 Kenichi Handa <handa@m17n.org>
13564
13565 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13566 in sequence.
13567
13568 * chartab.c (map_sub_char_table, map_char_table): If the range
13569 contains just one character, call the function with that character
13570 even if the depth is not 3.
13571
135722008-02-01 Jason Rumney <jasonr@gnu.org>
13573
13574 * w32font.c (w32font_text_extents): Calculate metrics for the
13575 whole string.
13576
135772008-02-01 Jason Rumney <jasonr@gnu.org>
13578
13579 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13580
135812008-02-01 Jason Rumney <jasonr@gnu.org>
13582
13583 * w32term.c (x_set_glyph_string_clipping): Use
13584 get_glyph_string_clip_rects.
13585 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13586 Adjust for the change of struct glyph_string.
13587
13588 * w32font.c (w32font_draw): Do clipping here.
13589
135902008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * xftfont.c (xftfont_draw): Adjust for the change of struct
13593 glyph_string.
13594
13595 * xterm.c (x_set_glyph_string_clipping): Use
13596 get_glyph_string_clip_rects.
13597 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13598 Adjust for the change of struct glyph_string.
13599
13600 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13601 the resulting clip(s}.
13602 (expose_overlaps): Add arg r. Change callers. Set it to
13603 row->clip temporarily.
13604 (expose_window): Redraw rows overlapping the exposed area.
13605
13606 * dispextern.h (struct glyph_row): New member clip.
13607 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13608 clip_height, new member clip, and num_clips.
13609
136102008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * data.c (Fchar_or_string_p): Fix docstring.
13613
136142008-02-01 Kenichi Handa <handa@m17n.org>
13615
13616 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13617 create a temporary XftDraw object.
13618
136192008-02-01 Kenichi Handa <handa@m17n.org>
13620
13621 * font.c (Ffontp): Fix docstring.
13622
13623 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13624 strong evidence of ISO-2022.
13625
136262008-02-01 Kenichi Handa <handa@m17n.org>
13627
13628 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13629 SYNTAX_ENTRY_FOLLOW_PARENT.
13630
136312008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13632
13633 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13634 its type.
13635 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13636 Update to the new type of weak_hash_tables and next_weak.
13637
13638 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13639 a plain C pointer to Lisp_Hash_Table.
13640
13641 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13642 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13643 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13644 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13645 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13646 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13647 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13648 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13649 (GC_EQ): Remove since they've been identical to their non-GC_
13650 alter-egos ever since the markbit was eradicated.
13651
13652 * alloc.c:
13653 * buffer.c:
13654 * buffer.h:
13655 * data.c:
13656 * fileio.c:
13657 * filelock.c:
13658 * fns.c:
13659 * frame.h:
13660 * lisp.h:
13661 * macterm.c:
13662 * print.c:
13663 * process.c:
13664 * w32fns.c:
13665 * w32menu.c:
13666 * w32term.c:
13667 * xfns.c:
13668 * xmenu.c:
13669 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13670
136712008-02-01 Kenichi Handa <handa@m17n.org>
13672
13673 * chartab.c (map_sub_char_table): Make it work for the top-level
13674 char-table. Fix handling of parent char-table.
13675 (map_char_table): Adjust for the above change.
13676
136772008-02-01 Jason Rumney <jasonr@gnu.org>
13678
13679 * w32font.c (Qgdi): Rename from Qw32.
13680
136812008-02-01 Jason Rumney <jasonr@gnu.org>
13682
13683 * w32bdf.c (get_quoted_string): Make function static.
13684
136852008-02-01 Kenichi Handa <handa@m17n.org>
13686
13687 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13688 bigger ascent and descent than those of the font, use them as
13689 font's ascent and descent.
13690
136912008-02-01 Kenichi Handa <handa@m17n.org>
13692
13693 * Makefile.in (${lispsource}international/charprop.el): Move this
13694 target within "#ifdef HAVE_UNIDATA" and "#endif".
13695
136962008-02-01 Kenichi Handa <handa@m17n.org>
13697
13698 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13699 (shortlisp): Add ../lisp/language/tai-viet.el.
13700
137012008-02-01 Ulrich Mueller <ulm@gentoo.org>
13702
13703 * Makefile.in (${lispsource}international/charprop.el): Depend on
13704 temacs${EXEEXT}.
13705
137062008-02-01 Jason Rumney <jasonr@gnu.org>
13707
13708 * w32font.c (w32font_close): Delete the GDI font object.
13709
13710 * w32menu.c: Include character.h.
13711
13712 * w32proc.c: Likewise.
13713
13714 * w32select.c: Likewise.
13715
13716 * makefile.w32-in (w32proc.o): Depend on character.h.
13717
137182008-02-01 Jason Rumney <jasonr@gnu.org>
13719
13720 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13721
13722 * w32menu.c (syms_of_w32menu): Likewise.
13723
13724 * w32proc.c (syms_of_ntproc): Likewise.
13725
13726 * w32select.c (syms_of_w32select): Likewise.
13727
13728 * w32term.c (syms_of_w32term): Likewise.
13729
137302008-02-01 Jason Rumney <jasonr@gnu.org>
13731
13732 * w32font.c (w32font_draw): Delete brush after using it.
13733
137342008-02-01 Jason Rumney <jasonr@gnu.org>
13735
13736 * w32font.c (w32font_open): Don't set font_idx.
13737 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13738 to font settings.
13739 (w32font_draw): Fill background explicitly.
13740
137412008-02-01 Jason Rumney <jasonr@gnu.org>
13742
13743 * w32term.c (w32_initialize): Don't call w32font_initialize.
13744
13745 * w32font.c (w32font_info): Remove subranges.
13746 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13747 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13748 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13749 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13750 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13751 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13752 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13753 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13754 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13755 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13756 New symbols.
13757 (font_callback_data): New struct.
13758 (w32font_list, w32font_match): Use it.
13759 (w32font_open): Don't populate subranges.
13760 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13761 (w32font_encode_char): Always return unicode code-point as-is.
13762 (w32font_text_extents): Supply a transformation matrix to
13763 GetGlyphOutline. Never look up by glyph index. Avoid looping
13764 twice. Use unicode version of GetTexExtentPoint32 instead of
13765 glyph index version.
13766 (set_fonts_frame): Remove.
13767 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13768 set frame parameter. Use backward compatible fake foundries.
13769 Save generic family in extra slot under QCfamily. Make width slot
13770 constant. Save QCspacing value. Save list of scripts instead of
13771 binary subranges.
13772 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13773 (add_font_entity_to_list): Use font_callback_data struct. Filter
13774 unwanted fonts.
13775 (add_one_font_entity_to_list): Use font_callback_data struct.
13776 (w32_registry): Default to iso10646_1.
13777 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13778 string font registries. Don't fill in font name if it is a generic
13779 family name, fill family instead. Use spacing, family and script
13780 extra info to fill pitch, family and charset fields.
13781 (list_all_matching_fonts): Use font_callback_data struct.
13782 (unicode_range_for_char): Remove.
13783 (font_supported_scripts): New function.
13784 (w32font_initialize): Remove.
13785 (syms_of_w32font): Update which symbols are defined.
13786
137872008-02-01 Jason Rumney <jasonr@gnu.org>
13788
13789 * font.c (font_pixel_size): Reverse assq_no_quit args.
13790
13791 * w32term.h (FONT_WIDTH): Report max width, not average.
13792 (FONT_MAX_WIDTH): Remove.
13793 (FONT_AVG_WIDTH): New macro.
13794
13795 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13796 redefinition of FONT_WIDTH.
13797
13798 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13799 (w32_cache_char_metrics): Use FONT_WIDTH.
13800
13801 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13802
138032008-02-01 Jason Rumney <jasonr@gnu.org>
13804
13805 * w32font.c (w32font_open): Make lfHeight negative.
13806
13807 * w32fns.c (x_default_font_parameter): Use new style font name.
13808 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13809
138102008-02-01 Jason Rumney <jasonr@gnu.org>
13811
13812 * w32font.c (QCsubranges): New symbol.
13813 (w32font_open, w32font_has_char): Get subranges from subproperty
13814 of extra.
13815 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13816 (syms_of_w32font): Define :subranges symbol.
13817
13818 * font.c (font_put_extra): Expose externally.
13819
13820 * font.h (font_put_extra): Move declaration from font.c.
13821
13822 * font.c (Ffont_get): Use font driver to determine otf capability.
13823 (adjust_anchor): Check if driver defines anchor_point before using.
13824
13825 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13826 (w32font_draw): Use options.
13827 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13828 Fix detection of truetype fonts.
13829 (registry_to_w32_charset): Handle charsets other than iso8859-1
13830 expressed as lisp symbols.
13831 (w32_registry): Express charset as lisp symbol.
13832 (fill_in_logfont): Reverse pixel and point height logic.
13833 Don't set width here. Set quality to default.
13834
13835 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13836 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13837
13838 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13839 Remove redundant loop and allocation.
13840
13841 * makefile.w32-in (font.o, w32font.o): New objects.
13842 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13843 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13844
13845 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13846 STORE_XCHARB a valid l-value.
13847
13848 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13849 calculations for non-Truetype fonts.
13850 (x_draw_glyph_string): Sync with xterm.c.
13851 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13852 Remove redundant code.
13853 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13854
13855 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13856 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13857
13858 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13859 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13860
13861 * w32font.c: New file for w32 font backend.
13862
138632008-02-01 Kenichi Handa <handa@m17n.org>
13864
13865 * term.c: Don't include "buffer.h" twice.
13866
138672008-02-01 Kenichi Handa <handa@m17n.org>
13868
13869 * character.c (Funibyte_string): New function.
13870 (syms_of_character): Defsubr it.
13871
138722008-02-01 Jason Rumney <jasonr@gnu.org>
13873
13874 * w32term.c [USE_FONT_BACKEND]:
13875 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13876 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13877 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13878 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13879 (x_free_frame_resources): Sync with xterm.c.
13880
138812008-02-01 Andreas Schwab <schwab@suse.de>
13882
13883 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13884 char-table size.
13885
138862008-02-01 Kenichi Handa <handa@m17n.org>
13887
13888 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13889
138902008-02-01 Kenichi Handa <handa@m17n.org>
13891
13892 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13893 font_otf_gpos, add font_drive_otf.
13894
13895 * fontset.c (fontset_find_font): Pay attention to font size
13896 specified for a font.
13897 (reorder_font_vector): Check contents of font_def.
13898
13899 * font.c (struct otf_list): Delete it.
13900 (otf_list): Make it a lisp variable.
13901 (otf_open): Use lispy otf_list.
13902 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13903 (check_otf_features): New function.
13904 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13905 New functions.
13906 (font_drive_otf): New function merging font_otf_gsub and
13907 font_otf_gpos.
13908 (font_open_for_lface): New arg spec. Change argument order.
13909 (font_load_for_face): Adjust for the change of font_open_for_lface.
13910 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13911 Ffont_otf_gpos.
13912 (syms_of_font): Staticpro otf_list. Delete defsubr of
13913 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13914
13915 * xfaces.c (set_font_frame_param): Adjust for the change of
13916 font_open_for_lface.
13917
13918 * font.h (font_open_for_lface): Adjust prototype.
13919 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13920 member otf_drive.
13921 (font_otf_gsub, font_otf_gpos): Delete externs.
13922 (font_drive_otf): Extern it.
13923
139242008-02-01 Kenichi Handa <handa@m17n.org>
13925
13926 * font.c (font_at): If the window W is not on a window system,
13927 return Qnil.
13928
13929 * coding.c (produce_chars, encode_coding): Don't call
13930 insert_from_gap if no characters to produce.
13931
139322008-02-01 Kenichi Handa <handa@m17n.org>
13933
13934 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13935 Fclear_face_cache.
13936
13937 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13938
139392008-02-01 Miles Bader <miles@gnu.org>
13940
13941 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13942 Parse "--disable-font-backend" option.
13943 (standard_args): Add "--disable-font-backend" option.
13944
139452008-02-01 Kenichi Handa <handa@m17n.org>
13946
13947 * fontset.c (fontset_find_font): New function.
13948 (fontset_font): Use fontset_find_font.
13949 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13950 Register the specified font for all Latin characters.
13951 (new_fontset_from_font): Register the specified font for all Latin
13952 characters.
13953 (dump_fontset): For a realized fontset, include the base fontset
13954 name in the returned vector.
13955
139562008-02-01 Kenichi Handa <handa@m17n.org>
13957
13958 * character.h (CHAR_STRING): Cast C to unsigned on calling
13959 char_string.
13960
13961 * character.c (char_string): Type of arg C changed to unsigned.
13962 Signal an error if C is an invalid character code.
13963
13964 * editfns.c (general_insert_function, Fchar_to_string):
13965 Use CHARACTERP, not INTEGERP.
13966
139672008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13970 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13971
13972 * regex.c (analyse_first): Fix for multibyte characters in "case
13973 charset:" and "case categoryspec:".
13974
139752008-02-01 Andreas Schwab <schwab@suse.de>
13976
13977 * Makefile.in (LIBES): Move standard libraries to the end.
13978
139792008-02-01 Kenichi Handa <handa@m17n.org>
13980
13981 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13982 nonzero, don't shrink the buffer nextb.
13983
13984 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13985
13986 * coding.c (coding_alloc_by_making_gap): New arg offset.
13987 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13988 offset.
13989 (decode_coding_iso_2022): Update coding->safe_charsets.
13990 (decode_coding_gap): Temporarily set
13991 current_buffer->text->inhibit_shrinking to 1.
13992
139932008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13996 indexing into elements of s->cmp and s->char2b.
13997
139982008-02-01 Juanma Barranquero <lekktu@gmail.com>
13999
14000 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14005 target_multibyte instead of multibyte.
14006 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14007 (bcmp_translate): Change the argument name from multibyte to
14008 target_multibyte.
14009
140102008-02-01 Kenichi Handa <handa@m17n.org>
14011
14012 These changes are to compile a regexp into a pattern that can be
14013 used both for multibyte and unibyte targets.
14014
14015 * Makefile.in (search.o): Depend on charset.h.
14016
14017 * character.c (multibyte_char_to_unibyte_safe): New function.
14018
14019 * search.c: Include "charset.h".
14020 (compile_pattern_1): Delete argument multibyte. Don't set
14021 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14022 (compile_pattern): Don't compare cp->buf.target_multibyte.
14023 Compare cp->buf.charset_unibyte.
14024 (compile_pattern): Set cp->buf.target_multibyte.
14025
14026 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14027
14028 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14029
14030 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14031 multibyte. Change callers.
14032 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14033 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14034 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14035 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14036 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14037 (regex_compile): Make the compiled pattern usable both for
14038 multibyte and unibyte targets.
14039 (analyse_first): Make the fastmap usable both for multibyte and
14040 unibyte targets.
14041 (TRANSLATE_VIA_MULTIBYTE): Delete.
14042 (re_match_2_internal): Pay attention to the case that the
14043 multibyteness of bufp and target may be different.
14044
140452008-02-01 Kenichi Handa <handa@m17n.org>
14046
14047 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14048 empty box occupy at least one column width.
14049
140502008-02-01 Miles Bader <miles@gnu.org>
14051
14052 * Makefile.in: Remove redundant HAVE_XFT clause.
14053
140542008-02-01 Kenichi Handa <handa@m17n.org>
14055
14056 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14057
140582008-02-01 Kenichi Handa <handa@m17n.org>
14059
14060 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14061 being nil.
14062
140632008-02-01 Kenichi Handa <handa@m17n.org>
14064
14065 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14066
140672008-02-01 Kenichi Handa <handa@m17n.org>
14068
14069 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14070
140712008-02-01 Kenichi Handa <handa@m17n.org>
14072
14073 * search.c (simple_search): Fix previous change.
14074
140752008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * xftfont.c (ftfont_font_format): Extern declaration.
14078
14079 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14080
14081 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14082 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14083
14084 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14085 (ftfont_font_format): Fix previous change.
14086
14087 * font.h (Ffont_xlfd_name): EXFUN it.
14088
14089 * font.c (font_parse_xlfd): Fix the array size of `f'.
14090 (register_font_driver): Use EQ to compare driver->type.
14091
14092 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14093 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14094 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14095
140962008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14099 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14100
141012008-02-01 Kenichi Handa <handa@m17n.org>
14102
14103 * xfont.c (xfont_open): Set font->format.
14104
14105 * xftfont.c (xftfont_open): Set font->format.
14106
14107 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14108 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14109 (ftfont_open): Set font->format.
14110 (ftfont_font_format): New function.
14111
14112 * font.h (struct font): New member format.
14113
14114 * font.c (Qopentype): New variable.
14115 (syms_of_font): Defsym it.
14116 (Fquery_font): Change the format of the last element of the return
14117 value.
14118
141192008-02-01 Kenichi Handa <handa@m17n.org>
14120
14121 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14122 last resort.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * coding.c (detect_coding_charset): Fix detection of multi-byte
14127 charset.
14128
141292008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14130
14131 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14132
141332008-02-01 Kenichi Handa <handa@m17n.org>
14134
14135 * xdisp.c (get_next_display_element): Set it->face_id for the
14136 first component of a composition.
14137 (x_produce_glyphs): Check if the font is changed or not for composition.
14138
141392008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * fontset.c (Qlatin): New variable.
14142 (syms_of_fontset): Define it as a lisp symbol.
14143 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14144
141452008-02-01 Kenichi Handa <handa@m17n.org>
14146
14147 * font.c (font_unparse_fcname): Pay attention to the case that
14148 some of font property is a null string.
14149
141502008-02-01 Kenichi Handa <handa@m17n.org>
14151
14152 * term.c: Include "composite.h".
14153 (encode_terminal_code): Output all components of composition.
14154 Check the size of encode_terminal_src.
14155 (produce_glyphs): For composition, call produce_composite_glyph.
14156 (append_composite_glyph, produce_composite_glyph): New functions.
14157
14158 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14159 is not found, get font_info from the current ascii face.
14160
141612008-02-01 Kenichi Handa <handa@m17n.org>
14162
14163 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14164 buffer-file-name to Qnil before calling insert_from_buffer.
14165
14166 * font.c (font_unparse_fcname): Pay attention to the case that
14167 foundry is a null string.
14168
141692008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14172
14173 * font.c (Qunicode_sip): New variable.
14174 (syms_of_font): Declare it as a Lisp symbol.
14175
14176 * font.h (Qunicode_sip): Extern it.
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * composite.c (get_composition_id): Pay attention to TAB component.
14181
14182 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14183 TAB. Adjust for the change of s->char2b which always points to
14184 the first element of allocated memory.
14185
14186 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14187
14188 * xdisp.c (handle_composition_prop): Set it->c to the first
14189 non-TAB component.
14190 (fill_composite_glyph_string): Change argument.
14191 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14192 (x_produce_glyphs): Fix handling of left/right padding.
14193
141942008-02-01 Kenichi Handa <handa@m17n.org>
14195
14196 * coding.c (detect_coding_system): Fix for handling off
14197 inhibit_iso_escape_detection. Fix for the case that no coding
14198 system is defined for a specific coding category.
14199
142002008-02-01 Kenichi Handa <handa@m17n.org>
14201
14202 * font.c (font_matching_entity): Delete unused local var.
14203
14204 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14205 opening a font.
14206
14207 * fileio.c (Finsert_file_contents): On recovering a file, assume
14208 Unix-like eol.
14209 (choose_write_coding_system): On auto-saving a file, force
14210 Unix-like eol.
14211
14212 * coding.c (setup_coding_system): Fix setting of
14213 coding->common_flags based on eol_type.
14214 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14215 inherit from it.
14216
142172008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * alloc.c (NSTATICS): Increas to 0x600.
14220
142212008-02-01 Kenichi Handa <handa@m17n.org>
14222
14223 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14224 (ftfont_list): Don't check :name property.
14225 (ftfont_match): New function.
14226 (ftfont_pattern_entity): If the pattern doesn't contain
14227 FC_SPACING, don't assume FC_MONO.
14228
14229 * font.h (struct font_driver): New member `match'.
14230 (font_update_drivers): Adjust prototype.
14231
14232 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14233 property of FONT.
14234 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14235 them unconditionally.
14236 (font_matching_entity): New function.
14237 (font_open_by_name): Try font_matching_entity if exact match is
14238 not found.
14239 (font_update_drivers): Delete the arg FONT. Return a list of
14240 actually used backends. Don't free faces, font caches here.
14241 Don't store data in frame parameters. Don't call x_set_font.
14242 (Ffont_spec): Store :name property as is.
14243 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14244 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14245 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14246 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14247 Call font->driver->otf_gsub instead of font_otf_gsub.
14248
14249 * frame.c (x_set_font_backend): Do more works that were done in
14250 font_update_drivers before.
14251
14252 * xfont.c (xfont_match): New function.
14253 (xfont_driver): Set xfont_driver.match to xfont_match.
14254 (xfont_draw): Set font in GC if necessary.
14255
14256 * ftxfont.c (ftxfont_match): New function.
14257 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14258
14259 * xftfont.c (xftfont_match): New function.
14260 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14261
142622008-02-01 Kenichi Handa <handa@m17n.org>
14263
14264 * font.h (struct font): New member scalable.
14265 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14266 (font_otf_gsub): Adjust prototype.
14267
14268 * font.c (font_otf_capability): Fix handling of the default langsys.
14269 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14270 Check the contents of SPEC.
14271 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14272 (check_gstring): New function.
14273 (REPLACEMENT_CHARACTER): New macro.
14274 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14275 glyph codes of GSTRING.
14276 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14277 (font_prepare_composition): Set cmp->glyph_len.
14278 (font_open_entity): Set font->scalable.
14279 (Ffont_get): Handle :otf property.
14280 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14281 functions.
14282 (Fquery_font): Use font->font.full_name.
14283 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14284 Sfont_otf_alternates.
14285
14286 * ftfont.c (ftfont_open): Set font->font.full_name and
14287 font->font.name properly. Fix calculation of font->font.height
14288 and font->min_width.
14289
14290 * ftxfont.c (ftxfont_create_gcs): New function.
14291 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14292 (ftxfont_draw_backgrond): Fix filling region.
14293 (ftxfont_default_fid): New function.
14294 (ftxfont_open): Set xfont->fid to the return value of
14295 ftxfont_default_fid.
14296 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14297 (ftxfont_done_face): Free only GCs that are created by
14298 ftxfont_create_gcs.
14299 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14300
14301 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14302 Clip to src->width, etc (not src->clip_XXX).
14303
14304 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14305 FontBackend frame parameter.
14306
143072008-02-01 Kenichi Handa <handa@m17n.org>
14308
14309 * font.h (struct font_driver_list): New member `on'.
14310 (Fclear_font_cache): EXFUN it.
14311 (font_update_drivers): Extern it.
14312
14313 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14314 (font_list_entities): Check driver_list->on.
14315 (register_font_driver): Initalize `on' member to 0.
14316 (font_update_drivers): New function.
14317 (Fclear_font_cache): Check driver_list->on.
14318
14319 * frame.h (Qfont_backend): Extern it.
14320 (x_set_font_backend): Extern it.
14321
14322 * frame.c (Qfont_backend): New variable.
14323 (frame_parms): New element for font-backend.
14324 (x_set_font_backend): New function.
14325
14326 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14327 FontBackend frame parameter.
14328 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14329 x_set_font_backend.
14330
14331 * xfont.c (xfont_list): Don't try listing by :name property if the
14332 name is not for XLFD.
14333
143342008-02-01 Kenichi Handa <handa@m17n.org>
14335
14336 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14337 (LGLYPH_SET_TO): New macros.
14338 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14339 element of G is vector or not.
14340 (font_at): Extern it.
14341
14342 * font.c: Include window.h.
14343 (font_lispy_object): New function.
14344 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14345 end of valid glyph.
14346 (font_close_object): Fix getting (struct font *).
14347 (font_at): New function.
14348 (Ffont_get): If FONT is a font-object, get entity from it.
14349 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14350 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14351 range check.
14352 (Ffont_at): New function.
14353 (syms_of_font): Defsubr Sfont_at.
14354
14355 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14356 before the entry for Qcomposition.
14357 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14358 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14359 the font in gstring.
14360 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14361 LGLYPH_FORM (g) to detect the end of valid glyph.
14362 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14363 we are composing with gstring.
14364
14365 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14366 Check if adjustment is vector or not.
14367
14368 * Makefile.in (font.o): Make it depends on window.h.
14369
143702008-02-01 Kenichi Handa <handa@m17n.org>
14371
14372 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14373 adjustment is vector or not.
14374
143752008-02-01 Miles Bader <miles@gnu.org>
14376
14377 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14378
143792008-02-01 Kenichi Handa <handa@m17n.org>
14380
14381 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14382 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14383 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14384
14385 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14386 (DEVICE_DELTA): Fix typo.
14387 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14388 LGLYPH format.
14389
14390 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14391 the change of LGLYPH format.
14392
143932008-02-01 Kenichi Handa <handa@m17n.org>
14394
14395 * ftfont.c (ftfont_list): Fix typo.
14396 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14397
143982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14399
14400 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14401
14402 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14403 xftface_info is non-NULL.
14404
144052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14406
14407 * ftfont.c (ftfont_list): Move misplaced #endif.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * ftfont.c (ftfont_list): Pay attention to the case that
14412 FC_CAPABILITY is not defined.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * xftfont.c (xftfont_open): Set charset related members to -1.
14417
14418 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14419 QCname.
14420 (ftfont_open): Set charset related members to -1.
14421
14422 * fontset.c (Votf_script_alist): New variable.
14423 (syms_of_fontset): Initialize it.
14424 (fontset_font): Delete unused variable.
14425
14426 * fontset.h (Votf_script_alist): Extern it.
14427
14428 * font.c (font_find_for_lface): Optimize code.
14429
14430 * font.h (font_close_object, font_merge_old_spec): Extern them.
14431
144322008-02-01 Kenichi Handa <handa@m17n.org>
14433
14434 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14435 (syms_of_font): Initialize them.
14436 (font_pixel_size): Allow float value in dpi.
14437 (font_prop_validate_type): Delete.
14438 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14439 Change caller.
14440 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14441 (font_prop_validate_extra): Delete.
14442 (font_prop_validate_spacing): New function.
14443 (font_property_table): Add elements for all known properties.
14444 (get_font_prop_index): Rename from check_font_prop_name. New
14445 argument FROM. Change caller.
14446 (font_prop_validate): Validate all known properties.
14447 (font_put_extra): Delete argument force. Change caller.
14448 (font_expand_wildcards): Make it static. Fix the way of shrinking
14449 the possible range.
14450 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14451 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14452 Change caller.
14453 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14454 (font_parse_fcname): Delete argument merge. Fix parsing of point
14455 size. Don't validate properties values here. Change caller.
14456 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14457 (font_open_by_name): Delete unused variable.
14458 (Ffont_spec): Likewise. Validate property values.
14459 (Ffont_match_p): New function.
14460
14461 * font.h (QCscalable): Extern it.
14462 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14463
14464 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14465
14466 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14467 (xfont_list_pattern): New function.
14468 (xfont_list): Use xfont_list_pattern.
14469
144702008-02-01 Kenichi Handa <handa@m17n.org>
14471
14472 * font.h (Flist_fonts): EXFUN it.
14473
144742008-02-01 Jason Rumney <jasonr@gnu.org>
14475
14476 * w32term.c (w32_initialize): Add back smoothing_type and
14477 smoothing_enabled definitions.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14482 s->face->font on determining underline position.
14483
144842008-02-01 Kenichi Handa <handa@m17n.org>
14485
14486 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14487 (font_has_char): Accept font-object too.
14488 (font_find_for_lface): Try at first with a size specified in face.
14489
144902008-02-01 Kenichi Handa <handa@m17n.org>
14491
14492 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14493 font_open_by_name.
14494
144952008-02-01 Kenichi Handa <handa@m17n.org>
14496
14497 * font.h (QCspacing, QCdpi): Extern them.
14498 (enum font_spacing): New enum.
14499 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14500
14501 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14502 (QCspacing, QCdpi): New variables.
14503 (syms_of_font): Initialize them.
14504 (font_pixel_size): New function.
14505 (font_put_extra): New function.
14506 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14507 in FONT_EXTRA.
14508 (font_parse_fcname): Handle enumerated values (e.g. bold).
14509 Fix handling font size. Add QCname property that contains only
14510 unknown properties.
14511 (font_score): Change argument. Change caller. Pay attention to
14512 FONT_PIXEL_SIZE_QUANTUM.
14513 (font_sort_entites, font_list_entities, font_find_for_lface)
14514 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14515 (Ffont_spec): Add QCname property that contains only unknown properties.
14516
14517 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14518 include weight in listing pattern, instead check weight of each
14519 listed font. Don't include scalable in pattern. Pay attention to
14520 FONT_PIXEL_SIZE_QUANTUM.
14521
145222008-02-01 Kenichi Handa <handa@m17n.org>
14523
14524 * font.c (font_parse_fcname): Fix parsing of point-size.
14525 (font_unparse_fcname): Produce symbolic names for style properties.
14526 (font_list_entities): Handle float size correctly.
14527 (font_open_by_name): Prefer `normal' property values if the name
14528 doesn't specify them.
14529
14530 * fontset.c (Finternal_char_font): Use font_get_name, not
14531 Ffont_xlfd_name.
14532
14533 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14534 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14535 pattern. Don't force scalable.
14536
14537 * xftfont.c (xftfont_open): For generating a name, start from
14538 96-byte buffer.
14539
145402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14541
14542 * frame.h (x_new_fontset2): Fix prototype.
14543
145442008-02-01 Kenichi Handa <handa@m17n.org>
14545
14546 * font.h (struct font_driver): Delete member parse_name.
14547 (font_match_p, font_get_spec, font_parse_fcname)
14548 (font_unparse_fcname): Extern them.
14549 (font_get_name): Adjust prototype.
14550
14551 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14552 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14553 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14554 unnecessary checks for weight, slant, and swidth.
14555 (font_parse_fcname): New function.
14556 (font_unparse_fcname): New function.
14557 (font_parse_name): New function.
14558 (font_match_p): New function.
14559 (font_get_name): Change return value to Lisp string.
14560 (font_get_spec): New function.
14561 (Qunspecified, Qignore_defface): Don't extern them.
14562 (font_find_for_lface): Assume that LFACE is fully specified.
14563 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14564 object, use it for FACE.
14565 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14566 driver->parse_name.
14567 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14568
14569 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14570 prototype.
14571
14572 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14573 argument F. Don't call Fnew_fontset. Instead, directly call
14574 make_fontset.
14575
14576 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14577
14578 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14579 of x_new_fontset2.
14580
14581 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14582 (Qsans__serif): New variables.
14583 (ftfont_generic_family_list): New variable.
14584 (syms_of_ftfont): Initialize the above variables.
14585 (ftfont_pattern_entity): Delete argument NAME.
14586 (ftfont_list_generic_family): New function.
14587 (ftfont_parse_name): Delete this function.
14588 (ftfont_list): Try generic family only when FcFontList found no font.
14589 (ftfont_list_family): Fix args to FcObjectSetBuild.
14590
14591 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14592 object in attrs[LFACE_FONT_INDEX].
14593 (set_lface_from_font_name): Cancel all changes for font-backend.
14594 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14595 function.
14596 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14597 font object in QCfont attribute.
14598 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14599 (realize_default_face) [USE_FONT_BACKEND]: Call
14600 set_lface_from_font_and_fontset.
14601
14602 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14603 "fixed", and signal error here if no suitable font was found.
14604
14605 * xfont.c (xfont_parse_name): Delete this function.
14606
14607 * xftfont.c (xftfont_open): Change coding style of error
14608 handling. Generate fontconfig's fontname pattern.
14609
14610 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14611 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14612
14613 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14614 Both args FONTSET and FONT_OBJECT must be existing ones.
14615
146162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14617
14618 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14623
14624 * font.h (struct font): Fix typo.
14625
14626 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14627 XLFD_XXX_INDEX.
14628 (enum xlfd_field_mask): New enum.
14629 (intern_font_field): Changed argument. Change caller. If digits
14630 are followed by non-digits, return a symbol.
14631 (font_expand_wildcards): New function.
14632 (font_parse_xlfd): Fix wildcard handling.
14633 (Ffont_spec): If :name is specified, reflect the info in the other
14634 properties.
14635
14636 * ftfont.c (ftfont_pattern_entity): Fix typo.
14637 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14638 locale.
14639
146402008-02-01 Kenichi Handa <handa@m17n.org>
14641
14642 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14643
14644 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14645 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14646 registry doesn't specify encoding part.
14647 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14648 (font_open_by_name): At first try parsing the name.
14649 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14650 as Lisp symbols.
14651
14652 * fontset.c (reorder_font_vector): Pay attention to the case that
14653 the 3rd element of font_def is nil.
14654 (fontset_font): For the default fontset, append one more fontset
14655 elements for a script-based font specification. Don't add script
14656 attribute on finding a font.
14657 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14658 font name.
14659 (fontset_ascii_font): If a font can't be opened, return nil.
14660
14661 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14662 (ftfont_pattern_entity): New function.
14663 (ftfont_get_cache): Assume that freetype_font_cache is already
14664 initialized.
14665 (ftfont_list): Handle the case that a file is specified in font
14666 name. Use ftfont_pattern_entity to generate entities.
14667 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14668 (syms_of_ftfont): Initialize freetype_font_cache.
14669
14670 * xftfont.c (xftfont_open): Make the font name fontconfig's
14671 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14672 (xftfont_close): Free font->font.name if not NULL.
14673
14674 * xfont.c (xfont_list): If script is specified for a font, return
14675 null_vector.
14676 (xfont_list_family): Declare argument type.
14677
14678 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14679 name, set LFACE_FONT (lface) to nil.
14680
14681 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14682 return Qnil.
14683
146842008-02-01 Kenichi Handa <handa@m17n.org>
14685
14686 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14687 (standard_args): Add "-enable-font-backend".
14688
146892008-02-01 Kenichi Handa <handa@m17n.org>
14690
14691 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14692 (struct xftdraw_list, xftdraw_list): Delete them.
14693 (register_xftdraw, check_xftdraw): Delete them.
14694 (xftfont_prepare_face): Don't call register_xftdraw.
14695 (xftfont_done_face): Don't call check_xftdraw.
14696 (xftfont_draw): Get background color only when with_background is
14697 nonzero.
14698
14699 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14700
147012008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 These changes are for the new font handling codes.
14704
14705 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14706 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14707 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14708 (FONTSRC, FONTOBJ): New variables.
14709 (obj): Add $(FONTOBJ).
14710 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14711 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14712 @LIBOTF_LIBS@.
14713 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14714 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14715
14716 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14717
14718 * character.h (Vscript_representative_chars): Extern it.
14719
14720 * character.c (Vscript_representative_chars): New variable.
14721 (syms_of_character): Declare it as a Lisp variable.
14722
14723 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14724 enable_font_backend is nonzero, accept the composition method
14725 COMPOSITION_WITH_GLYPH_STRING.
14726
14727 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14728 enumeration COMPOSITION_WITH_GLYPH_STRING.
14729
14730 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14731 members clip_x, clip_y, clip_width, and clip_height.
14732 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14733
14734 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14735 --enable-font-backend. Call syms_of_font.
14736
14737 * fns.c (assoc_no_quit): New function.
14738
14739 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14740 (face_for_font, new_fontset_from_font)
14741 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14742
14743 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14744 (fontset_font, fontset_ascii, face_for_char)
14745 (make_fontset_for_ascii_face, Ffont_info)
14746 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14747 is nonzero, use font-backend mechanism.
14748 (find_font_encoding): Make it non-static.
14749 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14750 New functions.
14751
14752 * frame.h (struct frame): New members resx and resy.
14753 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14754 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14755
14756 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14757 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14758
14759 * lisp.h (assoc_no_quit): Extern it.
14760
14761 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14762 Through out the file, use FONT_INFO_FROM_FACE instead of
14763 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14764 rif->per_char_metric.
14765 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14766 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14767 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14768 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14769 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14770 nonzero, use font-backend mechanism.
14771 (get_per_char_metric): New function.
14772
14773 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14774 (set_lface_from_font_name)
14775 (set_font_frame_param, free_realized_face)
14776 (prepare_face_for_display, clear_face_gcs)
14777 (Finternal_set_font_selection_order, realize_x_face)
14778 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14779 font-backend mechanism.
14780 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14781 (load_face_font) [USE_FONT_BACKEND]: Abort.
14782 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14783 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14784
14785 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14786 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14787 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14788 nonzero, register all available font drivers. Call
14789 x_default_font_parameter for deciding a font.
14790 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14791
14792 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14793 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14794 (x_set_glyph_string_clipping_exactly)
14795 (x_compute_glyph_string_overhangs)
14796 (x_draw_glyph_string_foreground)
14797 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14798 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14799 enable_font_backend is nonzero, use font-backend mechanism.
14800 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14801
148022008-02-01 Kenichi Handa <handa@m17n.org>
14803
14804 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14805 system_eol_type.
14806 (syms_of_coding): Initialize system_eol_type.
14807
14808 * process.c (Fset_process_coding_system): Inherit system's eol
14809 format if necessary.
14810
148112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14812
14813 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14814
148152008-02-01 Kenichi Handa <handa@m17n.org>
14816
14817 * coding.c (decode_eol): Pay attention to buffer relocation in
14818 del_range_2.
14819 (decode_coding): Call decode_eol before restoring undo_list.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * charset.c (Fdefine_charset_internal): Fix setting of
14824 emacs_mule_bytes.
14825
148262008-02-01 Kenichi Handa <handa@m17n.org>
14827
14828 * keyboard.c (read_char): Check if C is a character or not before
14829 looking up Vkeyboard_translate_table.
14830
148312008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14834 condition to terminate the loop.
14835
148362008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * coding.c (produce_composition): Compare charbuf[i] instead of
14839 args[i] against 0.
14840 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14845 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14846 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14847 detect_coding.
14848 (emacs_mule_char): Handle old style (Emacs 20) component character
14849 of a composition.
14850 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14851 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14852 composition rule.
14853 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14854
148552008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * coding.c (encode_coding_ccl): Allocate destination dynamically
14858 when necessary.
14859
148602008-02-01 Kenichi Handa <handa@m17n.org>
14861
14862 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14863 the loop. When quitted, show a proper error message.
14864
148652008-02-01 Kenichi Handa <handa@m17n.org>
14866
14867 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14868 src->clip_head and src->clip_tail temporarily instead of src->hl.
14869
14870 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14871 character sequence.
14872 (Fccl_execute_on_string): Use ASET, not XSET.
14873
148742008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14877
148782008-02-01 Kenichi Handa <handa@m17n.org>
14879
14880 * coding.c (decode_coding): Fix the condition of terminating the
14881 decoding loop.
14882
148832008-02-01 Kenichi Handa <handa@m17n.org>
14884
14885 * data.c (Faset): On setting a character bigger than 255 in a
14886 unibyte string, signal an error instead of make the string multibyte.
14887
148882008-02-01 Kenichi Handa <handa@m17n.org>
14889
14890 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14891 made by a mapping table.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14896 not.
14897 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14898 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14899
14900 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14901 s->face is NULL or not.
14902
149032008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14906 (x_draw_glyph_string): Fix drawing of right_overhang and
14907 left_overhang around/on cursor.
14908
14909 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * coding.c (Fdefine_coding_system_internal)
14918 (Fdefine_coding_system_alias): Avoid a duplicated element in
14919 Vcoding_system_alist.
14920
149212008-02-01 Kenichi Handa <handa@m17n.org>
14922
14923 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14924
14925 * coding.c (Qcoding_system_define_form): New variable.
14926 (syms_of_coding): Intern and staticpro it.
14927 (Fcoding_system_p): Check Qcoding_system_define_form.
14928 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14929
14930 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14931 Fcoding_system_p.
14932 (CHECK_CODING_SYSTEM): If ID is not available, call
14933 Fcheck_coding_system.
14934 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14935 Try also Fcheck_coding_system.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * coding.c (code_conversion_restore): GCPRO arg.
14940
149412008-02-01 Kenichi Handa <handa@m17n.org>
14942
14943 * character.c (lisp_string_width): Check multibyteness of STRING.
14944
149452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14946
14947 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14948 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14949 (decode_mac_font_name): Use decode_coding_c_string instead of
14950 decode_coding.
14951 (x_load_font): Initialize fontp->fontset to -1. Set
14952 fontp->encoding_type.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * search.c (search_buffer): Give up BM search on case-fold-search
14957 if one of a target character has a case-equivalence of different
14958 byte length even if that target charcter is an ASCII.
14959 (simple_search): Fix calculation of byte length of matched text.
14960 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14961
149622008-02-01 Kenichi Handa <handa@m17n.org>
14963
14964 * coding.c (decode_coding): Fix handling of invalid bytes.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14969 Unicode characters.
14970
149712008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * coding.c (encode_coding_object): If a pre-write-conversion
14974 function makes a new buffer, kill it.
14975
149762008-02-01 Kenichi Handa <handa@m17n.org>
14977
14978 * coding.c (QCascii_compatible_p): New variable.
14979 (syms_of_coding): Initialize it.
14980 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14981 calling string_char.
14982 (record_conversion_result): Add `default:' case.
14983 (coding_charset_list): Delete unused variable `coding_type'.
14984 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14985 property in the plist of the coding system.
14986 (Fcoding_system_put): Check QCascii_compatible_p.
14987
149882008-02-01 Miles Bader <miles@gnu.org>
14989
14990 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14991 removed calculation of frame `f', as it's now used.
14992
149932008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14996 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14997 (UNIDATA): New variable.
14998 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14999 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15000 $(RUN_TEMACS) unconditionally.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15005 (admindir): New variable.
15006 ($(lispsource)international/charprop.el): New target.
15007
150082008-02-01 Miles Bader <miles@gnu.org>
15009
15010 * character.c (chars-in-region): Remove obsolete function.
15011 (syms_of_character): Remove its initialization.
15012
150132008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15014
15015 * w32select.c (validate_coding_system)
15016 (setup_windows_coding_system): New functions.
15017 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15018 setup_windows_coding_system.
15019 (setup_config, Fw32_get_clipboard_data): Use
15020 validate_coding_system.
15021 (Fx_selection_exists): Move call to setup_config to a place
15022 where signals are allowed.
15023
15024 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15025 (Fcheck_coding_system): Add declarations.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15030
150312008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15032
15033 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15034 string as the second argument for x_new_fontset.
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15039 (encode_coding_object): Use safe_call instead of call2.
15040
150412008-02-01 Kenichi Handa <handa@m17n.org>
15042
15043 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15044
15045 * Makefile.in (lisp): Include charprop.el.
15046
150472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15048
15049 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15050 Not sure if it's unnecessary.
15051
150522008-02-01 Steven Tamm <steventamm@mac.com>
15053
15054 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15055 some possibly unnecessary fontset checking code that crashed
15056 when creating a new frame.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15061 lookup_face.
15062
15063 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15064
15065 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15066
150672008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15070 (coding_charset_list): New function.
15071
15072 * coding.h (coding_charset_list): Extern it.
15073
150742008-02-01 Kenichi Handa <handa@m17n.org>
15075
15076 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15077 concatenation of family and registry.
15078
150792008-02-01 Kenichi Handa <handa@m17n.org>
15080
15081 * character.h (BYTE8_STRING): Fix typo.
15082
15083 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15084 string to multibyte (sync to HEAD).
15085
15086 * casefiddle.c (casify_region): Handle changes in byte-length
15087 using replace_range_2 (sync to HEAD).
15088
150892008-02-01 Andreas Schwab <schwab@suse.de>
15090
15091 * chartab.c (map_char_table): GCPRO table and arg.
15092
150932008-02-01 Kenichi Handa <handa@m17n.org>
15094
15095 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15096 already at limit.
15097
150982008-02-01 Kenichi Handa <handa@m17n.org>
15099
15100 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15101 instead of fast_c_string_match_ignore_case.
15102 (find_font_encoding): Change argument to Lisp_Object. Use
15103 fast_string_match_ignore_case instead of
15104 fast_c_string_match_ignore_case. Change caller.
15105
151062008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * xdisp.c (get_next_display_element): In unibyte case, decide to
15109 display in octal form by checking a character by
15110 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15111
15112 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15113
15114 * character.c (unibyte_has_multibyte_table): New variable.
15115
15116 * character.h (unibyte_has_multibyte_table): Extern it.
15117 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * coding.c (encode_coding_iso_2022): Fix handling of charset
15122 annotation.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * coding.c (setup_coding_system): If coding_system is nil, use
15127 Qundecided.
15128 (Fterminal_coding_system): Return nil if terminal coding system is
15129 `undecided'.
15130 (syms_of_coding): Define coding-system `undecided' here. Setup
15131 terminal_coding as `undecided'.
15132
151332008-02-01 Kenichi Handa <handa@m17n.org>
15134
15135 * xdisp.c (message_dolog, set_message_1): Call
15136 unibyte_char_to_multibyte with arg type int.
15137
15138 * lread.c (read1): Fix reading of a char-table.
15139
15140 * print.c (print_object): Include sub char-table in circularities
15141 detection.
15142
151432008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15146 Append the found sequences in car of ARGS instead of prepending.
15147
151482008-02-01 Kenichi Handa <handa@m17n.org>
15149
15150 * fileio.c (report_file_error): Make a unibyte string from
15151 strerror (errorno).
15152 (Fsubstitute_in_file_name): Fix the arg to
15153 unibyte_char_to_multibyte. It is evaluated twice.
15154
151552008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15162 BOM is not found.
15163 (detect_coding, detect_coding_system): Optimization for ISO-2022
15164 when no 8-bit data is found.
15165
151662008-02-01 Jason Rumney <jasonr@gnu.org>
15167
15168 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15169
151702008-02-01 Kenichi Handa <handa@m17n.org>
15171
15172 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15173 CHARS.
15174
151752008-02-01 Steven Tamm <steventamm@mac.com>
15176
15177 * macterm.c (mac_encode_char): Add charset argument and update
15178 to use encoding_type.
15179 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15180 switch to pure fontset.
15181 (decode_mac_font_name): Temporarily remove decoding.
15182 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15183 (x_load_font): Temporarily remove encoding.
15184
151852008-02-01 Kenichi Handa <handa@m17n.org>
15186
15187 * xfaces.c (Fface_font): If frame is not on a window system,
15188 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15189 refer to face->font.
15190 (split_font_name_into_vector, build_font_name_from_vector)
15191 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15192 when HAVE_WINDOW_SYSTEM is defined.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15197 (x_produce_glyphs): Fix setting of members of cmp in case
15198 cmp->glyph_len is zero.
15199
15200 * fontset.c (Fset_fontset_font): Fix docstring.
15201 (Ffontset_info): Make it backward compatible. New arg ALL.
15202
152032008-02-01 Kim F. Storm <storm@cua.dk>
15204
15205 * process.c (read_process_output): Grow decoding_buf when needed;
15206 this could cause a crash in allocate_string and compact_small_strings.
15207
152082008-02-01 Kenichi Handa <handa@m17n.org>
15209
15210 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15211
152122008-02-01 Kenichi Handa <handa@m17n.org>
15213
15214 * coding.c (setup_coding_system): Set coding->common_flags
15215 correctly for raw-text.
15216 (consume_chars): On encoding unibyte text by raw-text, don't check
15217 multibyte form.
15218 (encode_coding): On encoding by raw-text, never use translation tables.
15219
15220 * fileio.c (e_write): Short cut for the case of no encoding.
15221
152222008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * coding.c (detect_coding, detect_coding_system): Delete unused
15225 variables.
15226
152272008-02-01 Kenichi Handa <handa@m17n.org>
15228
15229 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15230 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15231
152322008-02-01 Kenichi Handa <handa@m17n.org>
15233
15234 * coding.c (Ffind_coding_systems_region_internal): Include
15235 raw-text and no-conversion in the result.
15236
152372008-02-01 Kenichi Handa <handa@m17n.org>
15238
15239 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15240 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15241 FONT_DEF.
15242 (font_def_arg, add_arg, from_arg, to_arg): New args.
15243 (set_fontset_font): Change argument.
15244 (Fset_fontset_font): Fix for the case that TARGET is a script
15245 name and charset name.
15246 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * fontset.c (fontset_font): Rename from fontset_face. Change return
15251 value.
15252 (face_suitable_for_char_p, face_for_char): Adjust for the change
15253 of fontset_font.
15254 (make_fontset_for_ascii_face): Fix setting of the fontset element
15255 for ASCII.
15256 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15257 to get a font name.
15258 (Ffontset_info): Adjust for the change of fontset_font.
15259
15260 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15261
15262 * character.h (LEADING_CODE_LATIN_1_MIN)
15263 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * editfns.c (check_translation): New function.
15268 (Ftranslate_region_internal): Handle M:N mapping.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15277 goto invalid_code.
15278 (decode_coding_iso_2022): Fix handling of invalid designation.
15279
15280 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15281 after calling code_conversion_save.
15282
152832008-02-01 Kenichi Handa <handa@m17n.org>
15284
15285 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15286
15287 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15288
15289 * fontset.c: Include "intervals.h".
15290 (fontset_face): Fix comparing of Lisp_Objects.
15291 (free_face_fontset, new_fontset_from_font_name): Fix
15292 Lisp_Object/int mixup.
15293
15294 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15295
15296 * coding.c: Add many prototypes for static functions.
15297 (get_translation_table): Allow max_lookup to be NULL.
15298 (decode_coding, Ffind_coding_systems_region_internal)
15299 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15300 get_translation_table with max_lookup NULL.
15301
153022008-02-01 Kenichi Handa <handa@m17n.org>
15303
15304 * coding.c (get_translation_table): Declare it as Lisp_Object.
15305 (LOOKUP_TRANSLATION_TABLE): New macro.
15306 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15307 instead of CHAR_TABLE_REF.
15308
153092008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15312 annotation data format.
15313 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15314 Change arguments FROM and TO to single argument NCHARS. Change caller.
15315 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15316 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15317 (decode_coding_ccl, decode_coding_charset): Pay attention to
15318 coding->charbuf_used.
15319 (get_translation): New function.
15320 (produce_chars): New arguments translation_table and last_block.
15321 Translate characters here. Return number of carryover chars.
15322 Change caller.
15323 (produce_composition): New argument pos. Change caller.
15324 Adjust for the change of annotation data format.
15325 (produce_charset, produce_annotation): Likewise.
15326 (decode_coding, encode_coding): Don't call translate_chars.
15327 (consume_chars): New arg translation_table. Change caller.
15328 (translate_chars): Delete.
15329 (syms_of_coding): Make translation-table's number of extra slots 2.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * search.c (simple_search): Fix setting this_pos_byte in backward
15334 search.
15335
15336 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15337 byte sequence.
15338 (detect_coding_ccl): Fix setting of the variable valids.
15339
153402008-02-01 Kenichi Handa <handa@m17n.org>
15341
15342 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15343
15344 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15345
15346 * editfns.c (Ftranslate_region_internal): Rename from
15347 Ftranslate_region. Accept a char-table in TABLE.
15348 (syms_of_editfns): Defsubr Stranslate_region_internal.
15349
15350 * xfaces.c (set_lface_from_font_name): If a font is specified for
15351 a frame, generate a fontset from the font.
15352 (build_scalable_font_name): If the scalable font is requested for
15353 a specific size, don't change that size.
15354 (try_font_list): Try a scalable font also in the case that a
15355 pattern string is specified.
15356
153572008-02-01 Kenichi Handa <handa@m17n.org>
15358
15359 * xfaces.c (Fface_font): New optional arg CHARACTER.
15360
153612008-02-01 Kenichi Handa <handa@m17n.org>
15362
15363 * charset.h (CHARSET_OFFSET): New macro.
15364
153652008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15368
15369 * fontset.c (fontset_face): Handle the case that repertory is a
15370 char-table.
15371 (find_font_encoding): Return nil for unknown encoding.
15372 (Fset_fontset_font): Ignore a font of unknown encoding.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * keymap.c (describe_vector): Handle default value of a char table.
15377
15378 * fontset.c (fontset_face): Handle fallback fonts correctly.
15379 (Ffontset_info): Return infomation about fallback fonts.
15380
153812008-02-01 Kenichi Handa <handa@m17n.org>
15382
15383 * fontset.c (FONTSET_DEFAULT): New macro.
15384 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15385 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15386 the case that it is nil.
15387 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15388 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15389
15390 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15391 subset or superset.
15392
153932008-02-01 Kenichi Handa <handa@m17n.org>
15394
15395 * emacs.c (main): Call init_charset after syms_of_XXX.
15396
15397 * charset.c (Vcharset_map_directory): Delete.
15398 (Vcharset_map_path): New variable.
15399 (load_charset_map_from_file): Use Vcharset_map_path instead.
15400 (init_charset): Initialize Vcharset_map_path.
15401 (syms_of_charset): Delete declaration of "charset-map-directory",
15402 add declaration of "charset-map-path".
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15407 ASCII only string.
15408
15409 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15410
15411 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15412 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15417
15418 * coding.c (QCmnemonic, QCdefalut_char)
15419 (QCdecode_translation_table, QCencode_translation_table)
15420 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15421 (get_translation_table): Return a list of translation tables if
15422 necessary.
15423 (decode_coding): Call get_translation_table with ENCODEP 0.
15424 (char_encodable_p): If translation_table is non-nil, always call
15425 translate_char.
15426 (Fdefine_coding_system_internal): Accept list of translation
15427 tables as :encode-translation-table and :decode-translation-table.
15428 (Fcoding_system_put): New function.
15429 (syms_of_coding): Declare new symbols. Defsubr
15430 Scoding_system_put.
15431 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15432 typically JISX0212.
15433
15434 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15435 when the charset is superset type.
15436
15437 * character.c (translate_char): Accept list of translation tables.
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15442 (CODING_ATTR_TRANS_TBL): New macro.
15443
15444 * coding.c (get_translation_table): New function.
15445 (translate_chars): Fix the bug of skipping annotation data.
15446 (decode_coding, encode_coding): Utilize get_translation_table.
15447 (char_encodable_p, Funencodable_char_position): Translate char if
15448 necessary.
15449 (Ffind_coding_systems_region_internal)
15450 (Fcheck_coding_systems_region): Setup translation table for encode
15451 in a coding system attribute vector in advance.
15452 (Fdefine_coding_system_internal): Allow a symbol as translation
15453 table. For shift-jis type coding system, allow 4th charset.
15454
154552008-02-01 Kenichi Handa <handa@m17n.org>
15456
15457 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15458
15459 * xdisp.c (get_next_display_element): Pass -1 as POS to
15460 FACE_FOR_CHAR if displaying a C-string.
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * composite.c (get_composition_id): Handle xoff and yoff in a
15465 composition rule.
15466
15467 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15468 (struct composition): New member lbearing and rbearing.
15469
15470 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15471 (x_get_glyph_overhangs): Handle a composition glyph.
15472 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15473
15474 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15475 composition glyph.
15476
154772008-02-01 Kenichi Handa <handa@m17n.org>
15478
15479 * print.c: Include charset.h.
15480 (Vprint_charset_text_property): New variable.
15481 (Qdefault): Extern it.
15482 (PRINT_STRING_NON_CHARSET_FOUND)
15483 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15484 (print_check_string_result): New variable.
15485 (print_check_string_charset_prop): New function.
15486 (print_prune_charset_plist): New variable.
15487 (print_prune_string_charset): New function.
15488 (print_object): Call print_prune_string_charset if
15489 Vprint_charset_text_property is not t.
15490 (print_interval): Print nothing if interval->plist is nil.
15491 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15492 variable. Init and staticpro print_prune_charset_plist.
15493
154942008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * fontset.c (new_fontset_from_font_name): Use the specified font
15497 for all characters in the new fontset.
15498
15499 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15500 OBJECT args.
15501
15502 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15503 OBJECT args for composition too.
15504
15505 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15506 OBJECT args.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15511
15512 * fontset.c (reorder_font_vector): Adjust for the change of
15513 FONT_DEF format.
15514 (fontset_face): New arg id. Change caller.
15515 (face_for_char): New args pos and object.
15516 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15517 (fs_query_fontset): Check NAME by Fassoc too.
15518 (Fset_fontset_font): Allow non-XLFD font name.
15519 (Ffontset_info): Adjust for the change of FONT_DEF format.
15520
15521 * fontset.h (face_for_char): Adjust prototype.
15522
15523 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15524 (append_space, extend_face_to_end_of_line)
15525 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15526 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15527
15528 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15529 POS and OBJECT args.
15530
15531 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15532 POS and OBJECT args.
15533
155342008-02-01 Jason Rumney <jasonr@gnu.org>
15535
15536 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15537 of GlobalAlloc'ed memory.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15542
15543 * charset.h (charset_table_used): Delete extern.
15544
15545 * charset.c (charset_table_used): Make it static.
15546 (map_charset_chars): Fix args to c_function with.
15547
15548 * chartab.c (map_sub_char_table_for_charset): Fix args to
15549 c_function with.
15550
15551 * coding.h (enum coding_result_code): Delete
15552 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15553
15554 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15555 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15556 (Vlast_code_conversion_error): New variables.
15557 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15558 (ONE_MORE_BYTE): Record error if any instead of signaling an
15559 error. If non-ASCII multibyte char is found, return the negative
15560 value of the code. All callers changed to check it.
15561 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15562 (record_conversion_result): New function. Change all codes setting
15563 coding->result to call this function.
15564 (detect_coding_utf_8, decode_coding_utf_8)
15565 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15566 Don't use the local variable incomplete.
15567 (emacs_mule_char): Change the second arg to `const'.
15568 (decode_coding): Fix of flushing out unprocessed data.
15569 (make_conversion_work_buffer): Fix making of a work buffer.
15570 (decode_coding_object): Return coding->dst_object.
15571
15572 * fontset.c (set_fontset_font): Fix args.
15573
15574 * lisp.h (CHARACTERBITS): Define as 22.
15575
15576 * process.c (send_process): Be sure to set coding->src_multibyte.
15577
15578 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * xdisp.c (handle_auto_composed_prop): Give limit to
15583 Fnext_single_char_property_change.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * composite.c (syms_of_composite): Don't make the composition hash
15588 table weak.
15589
15590 * fontset.c (Fset_fontset_font): Fix docstring.
15591
15592 * lisp.h (detect_coding_system): Adjust prototype.
15593
15594 * fileio.c (kill_workbuf_unwind): Delete this function.
15595 (Finsert_file_contents): Adjust the call of detect_coding_system.
15596 Get conversion_buffer by code_conversion_save. Use the macro
15597 CODING_MAY_REQUIRE_DECODING. After decoding, update
15598 coding_system.
15599
15600 * coding.h (make_conversion_work_buffer): Delete extern.
15601 (code_conversion_save): Extern it.
15602
15603 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15604 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15605 (decode_coding_utf_8): Don't do eol converion.
15606 (detect_coding_utf_16): Check coding->src_chars, not
15607 coding->src_bytes. Add heuristics for those that have no signature.
15608 (decode_coding_emacs_mule, decode_coding_iso_2022)
15609 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15610 Don't do eol converion.
15611 (adjust_coding_eol_type): Return a new coding system.
15612 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15613 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15614 each change.
15615 (decode_coding): Pay attention to undo_list. Do eol conversion for
15616 all types of coding-systems (if necessary).
15617 (Vcode_conversion_work_buf_list): Delete it.
15618 (Vcode_conversion_reused_workbuf): Rename from
15619 Vcode_conversion_reused_work_buf.
15620 (Vcode_conversion_workbuf_name): New variable.
15621 (reused_workbuf_in_use): New variable.
15622 (make_conversion_work_buffer): Delete the arg DEPTH.
15623 (code_conversion_restore): Change argument to cons.
15624 (code_conversion_save): Delete the argument BUFFER. Change callers.
15625 (detect_coding_system): New argument src_chars. Change callers.
15626 Fix for utf-16 detection.
15627 (init_coding_once): Don't use ISO_carriage_return.
15628 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15629 reused_workbuf_in_use.
15630
156312008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * keymap.c (store_in_keymap): Pay attention to the case that idx
15634 is a cons specifying a character range.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15639 HANDLED_RECOMPUTE_PROPS.
15640
15641 * coding.c (Fdefine_coding_system_internal): Fix checking of
15642 ascii compatibility.
15643
156442008-02-01 Kenichi Handa <handa@m17n.org>
15645
15646 * charset.c (find_charsets_in_text): Delete unused locale variable.
15647 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15648
15649 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15650 Resync charset_list to Vemacs_mule_charset_list.
15651
15652 * keymap.c (store_in_keymap): Pay attention to the case that idx
15653 is a cons specifying a character range.
15654
156552008-02-01 Kenichi Handa <handa@m17n.org>
15656
15657 * composite.c (update_compositions): Bind inhibit-read-only, etc
15658 to t before calling remove-list-of-text-properties.
15659
15660 * print.c (print_object): Always print ASCII chars as is.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15665
15666 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15667 is a char table.
15668
156692008-02-01 Kenichi Handa <handa@m17n.org>
15670
15671 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15672
156732008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 * xfaces.c (set_lface_from_font_name): Fix for the case that
15676 FONTNAME is not fontset name.
15677
156782008-02-01 Kenichi Handa <handa@m17n.org>
15679
15680 * fns.c (base64_encode_1): Fix previous change.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * fontset.c (set_fontset_font): New function.
15685 (Fset_fontset_font): If a font is specified for a charset, use
15686 map_charset_chars to store the font spec in a fontset.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * fontset.c (fontset_face): Create a fallback fontset on demand.
15691 (make_fontset): Don't create a fallback fontset here.
15692 (free_face_fontset): Free a fallback fontset (if any) too.
15693 (n_auto_fontsets): Delete this variable.
15694 (auto_fontset_alist): New variable.
15695 (new_fontset_from_font_name): Check auto_fontset_alist.
15696 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15697 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15698 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15699 Defsubr Sfontset_list_all.
15700
157012008-02-01 Kenichi Handa <handa@m17n.org>
15702
15703 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15704
157052008-02-01 Kenichi Handa <handa@m17n.org>
15706
15707 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15708
157092008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * editfns.c (Fgoto_char): Fix docstring.
15712
157132008-02-01 Kenichi Handa <handa@m17n.org>
15714
15715 * insdel.c (insert_from_gap): Adjust intervals correctly.
15716
157172008-02-01 Jason Rumney <jasonr@gnu.org>
15718
15719 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15720 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15721 (w32_initialize): Try to load it.
15722 (x_get_font_repertory): Use it if available.
15723 (w32_encode_char): Add shortcut for unicode output.
15724
15725 * w32fns.c (w32_load_system_font): Default charset to -1.
15726 (x_to_w32_charset): Match all fonts for unicode.
15727 (w32_to_x_charset): New parameter matching. Don't return partial
15728 or wildcard charsets.
15729 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15730 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15731 (w32_to_x_font): Match charset to real charset.
15732 (enum_font_cb2): Always list unicode versions.
15733
15734 * makefile.w32-in (temacs): Increase EMHEAP.
15735
157362008-02-01 Jason Rumney <jasonr@gnu.org>
15737
15738 * w32term.c (w32_encode_char): New charset parameter.
15739 font_info.encoding becomes encoding_type.
15740 (x_get_font_repertory): New function. Warning: stub only!
15741 (x_new_font): Return quickly if font already set.
15742 (x_new_fontset): fontsetname parameter is Lisp_Object.
15743 Use new fs_query_fontset. Try new_fontset_from_font_name.
15744 Use fontset_name for return value.
15745
15746 * w32term.h: Declare x_get_font_repertory.
15747
15748 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15749 place of find_charset_in_text. Use encode_coding_object in place
15750 of encode_coding.
15751 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15752 decode_coding.
15753
15754 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15755 of x_new_fontset.
15756 (w32_load_system_font): Initialize charset as unicode.
15757 font_info.encoding becomes encoding_type.
15758 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15759 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15760 (syms_of_w32fns): Set get_font_repertory_func.
15761
15762 * w32console.c: Include character.h. Use terminal_encode_buffer
15763 from term.c.
15764 (write_glyphs): Use new version of encode_terminal_code. Use
15765 encode_coding_object in place of encode_coding.
15766
15767 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15768 encoding becomes encoding_type.
15769
15770 * term.c (terminal_encode_buffer): Make externally visible.
15771
15772 * makefile.w32-in: Add character.h dependancies.
15773 (character.o, chartab.o): New targets.
15774
157752008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15778 CODING_ID_EOL_TYPE.
15779
157802008-02-01 Andreas Schwab <schwab@suse.de>
15781
15782 * coding.c (produce_chars): Revert last change.
15783
157842008-02-01 Kenichi Handa <handa@m17n.org>
15785
15786 * charset.h (charset_unicode): Extern it.
15787
15788 * charset.c (string_xstring_p): Check by (C >= 0x100).
15789 (find_charsets_in_text): Change format of the arc CHARSETS. New
15790 arg MULTIBYTE.
15791 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15792 change of find_charsets_in_text.
15793 (Fsplit_char): Fix doc. Never return unknown.
15794
15795 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15796
15797 * coding.c (Fdefine_coding_system_alias): Update
15798 Vcoding_system_list.
15799
15800 * fontset.c (load_font_get_repertory): Pay attention to the case
15801 that ENCODING of a font is specified by a char-table.
15802
15803 * xterm.c (x_get_font_repertory): Handle the case that the
15804 encoding of font is other than Unicode.
15805
158062008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15809 if a character is encodable by the terminal coding system. If
15810 not, produces proper number of `?'s. Update
15811 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15812 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15813
158142008-02-01 Kenichi Handa <handa@m17n.org>
15815
15816 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15817 variables.
15818 (encode_terminal_code): Change argument. Encode multiple
15819 characters at once. Store the result of encoding in
15820 terminal_encode_buffer.
15821 (write_glyphs, insert_glyphs): Adjust for the change of
15822 encode_terminal_code.
15823 (term_init): Initialize terminal_encode_buffer and
15824 terminal_encode_buf_size.
15825
15826 * coding.c (consume_chars): If coding->src_object is nil, don't
15827 check annotation.
15828
158292008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * character.c (char_string): Use ASCII_CHAR_P instead of
15832 SINGLE_BYTE_CHAR_P.
15833
158342008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * xdisp.c (handle_auto_composed_prop): Check if the last
15837 characters of auto-composed region is newly composed with the
15838 following characters.
15839 (handle_composition_prop): Fix checking of point being inside
15840 composition.
15841
158422008-02-01 Kenichi Handa <handa@m17n.org>
15843
15844 * fns.c (concat): Don't change multibyteness of the result by
15845 concatenating an 8-bit character.
15846
15847 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15848 multibyteness of the result when newelt is an 8-bit character.
15849
158502008-02-01 Dave Love <fx@gnu.org>
15851
15852 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15853 EMACS_INT.
15854
15855 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15856
15857 * xfaces.c (face_numeric_value): Declare dim size_t.
15858 (Finternal_lisp_face_equal_p): Remove unused f.
15859
15860 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15861 (MATRIX_ROW): Remove unused vars.
15862 (draw_glyphs, x_insert_glyphs, fast_find_position)
15863 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15864 byte/char counts.
15865
15866 * regex.c (regex_compile): Remove unused var.
15867
15868 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15869
15870 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15871 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15872
15873 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15874
15875 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15876
15877 * fileio.c (Fwrite_region): Remove unused var.
15878
15879 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15880 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15881
15882 * composite.c (Fremove_list_of_text_properties): Declare.
15883
15884 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15885 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15886 (coding_inherit_eol_type): Remove unused attrs.
15887 (detect_coding): Cast arg of detect_eol.
15888
15889 * charset.c (syms_of_charset): Remove unused var p.
15890 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15891 byte/char counts.
15892
15893 * casetab.c (set_case_table): Remove unused var.
15894
15895 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15896 unused vars.
15897
158982008-02-01 Dave Love <fx@gnu.org>
15899
15900 * xterm.c (x_bitmap_mask): Declare.
15901
159022008-02-01 Dave Love <fx@gnu.org>
15903
15904 * xterm.c (x_term_init): Fix type error.
15905
15906 * lisp.h: Add Funibyte_char_to_multibyte.
15907
15908 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15909 (Fset_coding_system_priority): Doc fix.
15910
15911 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15912
15913 * indent.c (check_composition): Make start and end EMACS_INT.
15914
15915 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15916
15917 * xdisp.c (handle_composition_prop, check_point_in_composition):
15918 Make buffer positions EMACS_INT.
15919
15920 * composite.c (find_composition, run_composition_function)
15921 (update_compositions, Ffind_composition_internal): Make buffer
15922 positions EMACS_INT.
15923
15924 * composite.h (find_composition, update_compositions): Make
15925 position args EMACS_INT.
15926
15927 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15928
15929 * intervals.c (get_property_and_range):
15930 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15931
15932 * unexalpha.c: Don't include varargs.h.
15933
159342008-02-01 Dave Love <fx@gnu.org>
15935
15936 * coding.h (ENCODE_UTF_8): New.
15937
15938 * Makefile.in (gtkutil.o): Depend on coding.h.
15939
15940 * coding.c (Fset_coding_system_priority): Doc fix.
15941
159422008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15945 the case of auto saving.
15946
159472008-02-01 Andreas Schwab <schwab@suse.de>
15948
15949 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15950 `range' from GC.
15951
159522008-02-01 Kenichi Handa <handa@m17n.org>
15953
15954 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15955
159562008-02-01 Kenichi Handa <handa@m17n.org>
15957
15958 * fileio.c (choose_write_coding_system): Return a decided coding system.
15959 (Fwrite_region): Set Vlast_coding_system_used to the return value
15960 of choose_write_coding_system.
15961
159622008-02-01 Kenichi Handa <handa@m17n.org>
15963
15964 * charset.c (Fset_charset_priority): Pay attention to duplicated
15965 arguments.
15966
15967 * coding.c (QCcategory): New variable.
15968 (syms_of_coding): Defsym it. Set all elements of
15969 Vcoding_category_table and their symbol values.
15970 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15971 coding-category-XXX, and coding-category-list.
15972 (Fdefine_coding_system_internal): Add category in the plist.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * callproc.c (Fcall_process): Handle carryover correctly.
15977
15978 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15979 (raw_text_coding_system): Check NILP (coding_system).
15980 (coding_inherit_eol_type): Check NILP (coding_system) and
15981 NILP (parent).
15982 (consume_chars): Fix for the case of raw-text.
15983
15984 * process.c (read_process_output): Handle carryover correctly.
15985
159862008-02-01 Dave Love <fx@gnu.org>
15987
15988 * regex.c (re_search_2): Fix last change.
15989
159902008-02-01 Kenichi Handa <handa@m17n.org>
15991
15992 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15993 target_multibyte. Even in a unibyte case, return a converted
15994 multibyte char.
15995 (GET_CHAR_AFTER): New macro.
15996 (PATFETCH): Translate via multibyte char.
15997 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15998 (SETUP_MULTIBYTE_RANGE): New macro.
15999 (regex_compile): Setup compiled code so that its multibyteness
16000 matches that of a target. Fix the handling of "[X-YZ]" using
16001 SETUP_MULTIBYTE_RANGE.
16002 (analyse_first) <charset>: For filling fastmap for all multibyte
16003 characters, don't check by BASE_LEADING_CODE_P.
16004 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16005 the same as RE_MULTIBYTE_P (bufp) now.
16006 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16007 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16008 (TRANSLATE_VIA_MULTIBYTE): New macro.
16009 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16010 It is the same as RE_MULTIBYTE_P (bufp) now.
16011 <exactn>: Translate via multibyte.
16012 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16013 translate it.
16014 <charset, charset_not>: Fetch a character by
16015 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16016 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16017 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16018 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16019 by GET_CHAR_AFTER.
16020 (bcmp_translate): Likewise.
16021
16022 * search.c (compile_pattern): Check the member target_multibyte,
16023 not the member multibyte of buf.
16024
16025 * lread.c (read1): While reading a string, set force_singlebyte
16026 and force_multibyte correctly.
16027
16028 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16029 up of unibyte_to_multibyte_table.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * coding.c (setup_coding_system): If coding has
16034 post-read-conversion or pre-write-conversion, set
16035 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16036 respectively.
16037 (decode_coding_gap): Run post-read-conversion if any.
16038
16039 * fileio.c (Finsert_file_contents): Even if we read into a
16040 unibyte buffer, check if we must decode the result or not.
16041
160422008-02-01 Kenichi Handa <handa@m17n.org>
16043
16044 * coding.c (make_conversion_work_buffer): Change the work buffer
16045 name to the same one as that of Emacs 21.
16046
160472008-02-01 Kenichi Handa <handa@m17n.org>
16048
16049 * coding.h (make_conversion_work_buffer): Adjust prototype.
16050 (code_conversion_restore): Don't extern it.
16051
16052 * coding.c (detected_mask): Delete unused variable.
16053 (decode_coding_iso_2022): Pay attention to the byte sequence of
16054 CTEXT extended segment, and retain those bytes as is.
16055 (decode_coding_ccl): Delete unused variable `valids'.
16056 (setup_coding_system): Delete unused variable `category'.
16057 (consume_chars): Delete unused variable `category'. Make it work
16058 for non-multibyte case.
16059 (make_conversion_work_buffer): Change argument.
16060 (saved_coding): Delete unused variable.
16061 (code_conversion_restore): Don't check saved_coding->destination.
16062 (code_conversion_save): New function.
16063 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16064 instead of record_unwind_protect.
16065 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16066 (detect_coding_system): Delete unused variable `mask'.
16067 (Fdefine_coding_system_internal): Delete unused variable id.
16068
16069 * fileio.c (kill_workbuf_unwind): New function.
16070 (Finsert_file_contents): On replacing, call
16071 make_conversion_work_buffer with correct args, and call
16072 record_unwind_protect with the first arg kill_workbuf_unwind.
16073
16074 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16075
160762008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16079 (fontset_add): Fix for the case that TO is less than TO1.
16080 (Ffontset_info): Don't use fallback fontset on checking the
16081 default fontset.
16082 (dump_fontset): New function for debugging.
16083
16084 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16085 coding_type is Qcharset.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16090 (map_char_table): Don't inherit the value from the parent on
16091 initializing VAL. Adjust for the above change.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * coding.c (Qsignature, Qendian): Delete these variables.
16096 (syms_of_coding): Don't initialize them.
16097 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16098 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16099 detect_info->found.
16100 (decode_coding_utf_16): Don't detect BOM here.
16101 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16102 is NOT utf_16_without_bom.
16103 (setup_coding_system): For a coding system of type utf-16, check
16104 if the attribute :endian is Qbig or not (not nil or not), and set
16105 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16106 (detect_coding): If coding type is utf-16 and BOM detection is
16107 required, detect it.
16108 (Fdefine_coding_system_internal): For a coding system of type
16109 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * coding.c (coding_set_source): Fix for the case that the current
16114 buffer is different from coding->src_object.
16115 (decode_coding_object): Don't use the conversion work buffer if
16116 DST_OBJECT is a buffer.
16117
161182008-02-01 Dave Love <fx@gnu.org>
16119
16120 * lread.c (read_emacs_mule_char) [len==2]: Index
16121 emacs_mule_charset correctly.
16122
161232008-02-01 Dave Love <fx@gnu.org>
16124
16125 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16126 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16127 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16128 treated specially.)
16129 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16130 (detected_mask): Remove Big5 bits.
16131
161322008-02-01 Kenichi Handa <handa@m17n.org>
16133
16134 The following changes are to make the font rescaling facility
16135 compatible with Emacs 21.
16136
16137 * xfaces.c (Vface_font_rescale_alist): Rename from
16138 Vface_resizing_fonts.
16139 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16140 (font_rescale_ratio): Rename from font_resizing_ratio.
16141 (split_font_name): Set font->rescale_ratio.
16142 (better_font_p): Pay attention to font->rescale_ratio.
16143 (build_scalable_font_name): Likewise. Change RESX, and RESY
16144 fields.
16145 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16146
161472008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16150 (Qutf_16_le): Remove these variables.
16151 (syms_of_coding): Don't DEFSYM them.
16152 (decode_coding_utf_16): Fix handling of BOM.
16153 (encode_coding_utf_16): Fix handling of BOM.
16154
161552008-02-01 Kenichi Handa <handa@m17n.org>
16156
16157 * fileio.c (Finsert_file_contents): On replacing, before decoding
16158 the file into the work buffer, set point of the work buffer to the end.
16159
161602008-02-01 Dave Love <fx@gnu.org>
16161
16162 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16163
161642008-02-01 Dave Love <fx@gnu.org>
16165
16166 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16167 and fix C types.
16168
161692008-02-01 Kenichi Handa <handa@m17n.org>
16170
16171 * xdisp.c (SKIP_GLYPHS): New macro.
16172 (set_cursor_from_row): Pay attention to string display properties.
16173
16174 * category.c (copy_category_entry): Fix for the case that RANGE
16175 is an integer.
16176
16177 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16178
16179 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * charset.c (Fcharset_id_internal): New function.
16184 (syms_of_charset): Defsubr it.
16185
16186 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16187 with the last arg charset_list acquired from coding.
16188 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16189 the attribute coding_attr_ccl_valids.
16190
16191 * coding.h (enum define_coding_ccl_arg_index): Set the first
16192 member coding_arg_ccl_decoder to coding_arg_max.
16193
16194 * ccl.h (ccl_driver): Adjust prototype.
16195
16196 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16197 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16198 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16199 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16200 last arg Qnil.
16201
162022008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16205 call encode_char.
16206
16207 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16208
162092008-02-01 Dave Love <fx@gnu.org>
16210
16211 * composite.c (syms_of_composite): Make composition_hash_table weak.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16216 (font_name_registry): Don't extern them.
16217 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16218
16219 * fontset.h (Qfontset): Don't extern it.
16220 (new_fontset_from_font_name): Extern it.
16221
16222 * fontset.c: Give 8 extra slots to fontset objects.
16223 (Qfontset_info): New variable.
16224 (syms_of_fontset): Defsym it.
16225 (FONTSET_FALLBACK): New macro.
16226 (fontset_face): Try also the default fontset.
16227 (make_fontset): Realize a fallback fontset from the default fontset.
16228 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16229 using split_font_name_into_vector and build_font_name_from_vector.
16230 (Fset_fontset_font): Access the elements of font_spec by enum
16231 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16232 name by using split_font_name_into_vector.
16233 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16234 generate a proper font name from the fontset name. Update
16235 Vfontset_alias_alist.
16236 (n_auto_fontsets): New variable.
16237 (new_fontset_from_font_name): New function.
16238 (Ffont_info): Store the information about fonts generated from the
16239 default fontset in the first extra slot of the returned char-table.
16240
16241 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16242 (font_name_registry): Delete function.
16243 (split_font_name_into_vector): New function.
16244 (build_font_name_from_vector): New function.
16245 (font_list): The argument REGISTRY is now a list of registry names.
16246 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16247 specifies an explicit font name, return the name as is. Make a
16248 list of registy names.
16249
16250 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16251 of x_new_fontset.
16252 (Fx_create_frame): Don't call x_new_fontset here. Just use
16253 x_list_fonts to check the existence of fonts.
16254
16255 * xterm.h (x_new_fontset): Adjust prototype.
16256
16257 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16258 string. Use new_fontset_from_font_name to create a fontset from a
16259 font name.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * syntax.c (Vfind_word_boundary_function_table): New name for
16264 Vnext_word_boundary_function_table.
16265 (find-word-boundary-function-table): New name for
16266 next-word-boundary-function-table.
16267
162682008-02-01 Dave Love <fx@gnu.org>
16269
16270 * Makefile.in: Fix some dependencies.
16271
16272 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16273 set it to nil before returning.
16274
16275 * composite.c (update_compositions): Fix type error.
16276
16277 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16278
162792008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * xterm.c (x_new_font): Optimize for the case that the font is
16282 already set for the frame.
16283
162842008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * chartab.c (char_table_ascii): Check if the char table contents
16287 is sub-char-table or not.
16288 (char_table_set, char_table_set_range): Fix argument to
16289 char_table_ascii.
16290
16291 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16292 (detect_coding_utf_8, detect_coding_utf_16)
16293 (detect_coding_emacs_mule, detect_coding_iso_2022)
16294 (detect_coding_sjis, detect_coding_big5)
16295 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16296 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16297 sequence is valid in this coding system. Change callers.
16298 (MAX_ANNOTATION_LENGTH): New macro.
16299 (ADD_ANNOTATION_DATA): New macro.
16300 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16301 ADD_ANNOTATION_DATA. Change the format of annotation data.
16302 (ADD_CHARSET_DATA): New macro.
16303 (emacs_mule_char): New argument ID. Change callers.
16304 (decode_coding_emacs_mule, decode_coding_iso_2022)
16305 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16306 Produce charset annotation data in coding->charbuf.
16307 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16308 to charset annotation data in coding->charbuf.
16309 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16310 coding->common_flags if the coding system is iso-2022 based and
16311 uses designation.
16312 (produce_composition): Adjust for the new annotation data format.
16313 (produce_charset): New function.
16314 (produce_annotation): Handle charset annotation.
16315 (handle_composition_annotation, handle_charset_annotation): New
16316 functions.
16317 (consume_chars): Handle charset annotation. Utilize the above two
16318 functions.
16319 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16320 buffer, get the deleted text as a string and set
16321 coding->src_object to that string.
16322 (detect_coding, detect_coding_system): Use the new struct
16323 coding_detection_info.
16324
16325 * coding.h (struct coding_detection_info): New structure.
16326 (struct coding_system): Adjust prototype of the member `detector'.
16327 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16328
163292008-02-01 Kenichi Handa <handa@m17n.org>
16330
16331 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16332
163332008-02-01 Dave Love <fx@gnu.org>
16334
16335 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16336 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16337 to new local and nullify apropos_accumulate before returning.
16338 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16339
163402008-02-01 Kenichi Handa <handa@m17n.org>
16341
16342 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16343 correctly.
e3eea1fc 16344
aac0c6e3
MR
163452008-02-01 Dave Love <fx@gnu.org>
16346
16347 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16348
163492008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 The following changes are to make character composition happen
16352 automatically on displaying.
16353
16354 * Makefile.in (lisp, shortlisp): Add composite.elc.
16355
16356 * composite.h (Qauto_composed, Vauto_composition_function)
16357 (Qauto_composition_function): Extern them.
16358
16359 * composite.c (Vcomposition_function_table)
16360 (Qcomposition_function_table): Delete variables.
16361 (Qauto_composed, Vauto_composition_function)
16362 (Qauto_composition_function): New variables.
16363 (run_composition_function): Don't call
16364 compose-chars-after-function.
16365 (update_compositions): Clear `auto-composed' text property.
16366 (compose_chars_in_text): Delete this function.
16367 (syms_of_composite): Staticpro Qauto_composed and
16368 Qauto_composition_function. Declare Vauto_composition_function as
16369 a Lisp variable.
16370
16371 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16372
16373 * xdisp.c (it_props): Add an entry for Qauto_composed.
16374 (handle_auto_composed_prop): New function.
16375
16376 * xselect.c (selection_data_to_lisp_data): Don't call
16377 compose_chars_in_text.
16378
163792008-02-01 Dave Love <fx@gnu.org>
16380
16381 * keyboard.c (read_char): Modify checking around use of
16382 Vkeyboard_translate_table.
16383
16384 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16385 and fix C types.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16390 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16391 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16392 the case that the last byte is '\r' correctly.
16393 (decode_coding): Flush out the unprocessed data correctly.
16394 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16395
163962008-02-01 Dave Love <fx@gnu.org>
16397
16398 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16399 Add XK_ISO... case.
16400 (xaw_scroll_callback): Revert last change.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16405
164062008-02-01 Kenichi Handa <handa@m17n.org>
16407
16408 * xfaces.c (Vface_resizing_fonts): New variable.
16409 (struct font_name): New member `resizing_ratio'.
16410 (font_resizing_ratio): New function.
16411 (split_font_name): Set font->resizing_ratio.
16412 (better_font_p): Pay attention to font->resizing_ratio.
16413 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16414 RESX, and RESY fields.
16415 (try_alternative_families): Try scalable fonts if
16416 Vscalable_fonts_allowed is not Qt.
16417 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16418
164192008-02-01 Dave Love <fx@gnu.org>
16420
16421 * xterm.c (xaw_scroll_callback): Cast correctly.
16422
164232008-02-01 Dave Love <fx@gnu.org>
16424
16425 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16426 (lispy_kana_keys): Comment out.
16427 (make_lispy_event) [XK_kana_A]: Comment out.
16428
16429 * xterm.c (xaw_scroll_callback): Cast call_data.
16430 (XTread_socket): Deal with ASCII keysyms.
16431 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16432
164332008-02-01 Dave Love <fx@gnu.org>
16434
16435 * xterm.c (Vx_keysym_table): New.
16436 (syms_of_xterm): Initialize it.
16437 (XTread_socket): Use it.
16438 From head: Eliminate incorrect optimization that tried to avoid
16439 decoding the output of X*LookupString.
16440 (x_get_font_repertory): Delete charset declaration.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16445 return 0.
16446 (Fdefine_coding_system_internal): Setup
16447 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16448
164492008-02-01 Dave Love <fx@gnu.org>
16450
16451 * coding.c (Fcheck_coding_system): Doc fix.
16452
16453 * editfns.c (Finsert_byte): Return a proper value.
16454
164552008-02-01 Kenichi Handa <handa@m17n.org>
16456
16457 * coding.c (decode_coding): Fix args to translate_chars. Pay
16458 attention to Vstandard_translation_table_for_decode.
16459 (encode_coding): Fix args to translate_chars. Pay attention to
16460 Vstandard_translation_table_for_encode.
16461
16462 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16463 SINGLE_BYTE_CHAR_P.
16464
16465 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16466 not by SINGLE_BYTE_CHAR_P.
16467
16468 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16469 SINGLE_BYTE_CHAR_P.
16470
16471 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16472 SINGLE_BYTE_CHAR_P.
16473
16474 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16475 by SINGLE_BYTE_CHAR_P.
16476
16477 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16478 SINGLE_BYTE_CHAR_P.
16479
164802008-02-01 Dave Love <fx@gnu.org>
16481
16482 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16483
164842008-02-01 Dave Love <fx@gnu.org>
16485
16486 * fns.c (Flanginfo): Fix typo.
16487
16488 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16493 (detect_coding_emacs_mule, detect_coding_iso_2022)
16494 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16495 incomplete byte sequence. Don't update *mask when correctly detected.
16496 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16497 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16498 (detect_coding, detect_coding_system): Adjust for the changes above.
16499
165002008-02-01 Kenichi Handa <handa@m17n.org>
16501
16502 * character.c (char_string): Rename from
16503 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16504 (string_char): Rename from string_char.
16505
16506 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16507 if C is greater than MAX_3_BYTE_CHAR.
16508 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16509 string_char instead of string_char_with_unification.
16510
165112008-02-01 Dave Love <fx@gnu.org>
16512
16513 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * keymap.c (push_key_description): Pay attention to force_multibyte.
16518
16519 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16520
165212008-02-01 Dave Love <fx@gnu.org>
16522
16523 * charset.c (define_charset_internal): Rename `supprementary'.
16524
16525 * Makefile.in (lisp, shortlisp): Remove latin-N.
16526
165272008-02-01 Dave Love <fx@gnu.org>
16528
16529 * xfns.c (x_window, x_window): Use use_xim.
16530
16531 * xterm.c (use_xim): Initialize.
16532 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16533 (x_term_init): Maybe set use_xim.
16534
16535 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16536
165372008-02-01 Kenichi Handa <handa@m17n.org>
16538
16539 * search.c (search_buffer): Fix case-fold-search of multibyte
16540 characters.
16541 (boyer_moore): Rename the last argument to char_high_bits.
16542
165432008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * xdisp.c (display_string): Fix for the case of zero width glyph.
16546
16547 * xfns.c (x_set_font): Change the error message of the case that
16548 x_new_fontset returns Qt.
16549
16550 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16551 (Finternal_set_lisp_face_attribute): Use signal_error for the
16552 error of invalid fontset.
16553
16554 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16555 fontset, return Qt.
16556
165572008-02-01 Dave Love <fx@gnu.org>
16558
16559 * unexelf.c (unexec): Make .got handling not SGI-specific.
16560
16561 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16562
16563 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16564
16565 * keyboard.c (read_key_sequence): Fix type error.
16566
16567 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16568 type error.
16569
16570 * fontset.c (fontset_add): Return Lisp_Object.
16571
165722008-02-01 Dave Love <fx@gnu.org>
16573
16574 * charset.h (charset_ordered_list_tick): Declare extern.
16575
165762008-02-01 Kenichi Handa <handa@m17n.org>
16577
16578 The following changes (and some of 2008-02-01 changes of mine) are
16579 for handling syntax, category, and case conversion for unibyte
16580 characters by converting them to multibyte on the fly. With these
16581 changes, we don't have to setup syntax and case tables for unibyte
16582 characters in each language environment.
16583
16584 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16585 multibyte if necessary.
16586
16587 * bytecode.c (Fbyte_code): Likewise.
16588
16589 * character.h (LEADING_CODE_LATIN_1_MIN)
16590 (LEADING_CODE_LATIN_1_MAX): New macros.
16591 (unibyte_to_multibyte_table): Extern it.
16592 (unibyte_char_to_multibyte): New macro.
16593 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16594 (CHAR_LEADING_CODE): New macro.
16595 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16596
16597 * character.c (unibyte_to_multibyte_table): New variable.
16598 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16599 (multibyte_char_to_unibyte): If C is an eight-bit character,
16600 convert it to the corresponding byte value.
16601
16602 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16603 not 1, signals an error. Update the elements of
16604 unibyte_to_multibyte_table.
16605 (init_charset_once): Initialize unibyte_to_multibyte_table.
16606 (syms_of_charset): Define the charset `iso-8859-1'.
16607
16608 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16609 as is without converting it to unibyte. In a unibyte buffer,
16610 convert C to multibyte before checking the syntax.
16611
16612 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16613
16614 * minibuf.c (Fminibuffer_complete_word): Use the macro
16615 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16616
16617 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16618
16619 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16620 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16621 that is zero, convert an eight-bit char to multibyte.
16622 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16623 non-emacs case.
16624 (PATFETCH): Convert an eight-bit char to multibyte.
16625 (HANDLE_UNIBYTE_RANGE): New macro.
16626 (regex_compile): Setup the compiled pattern for multibyte chars
16627 even if the given regex string is unibyte. Use PATFETCH_RAW
16628 instead of PATFETCH in many places. To handle `charset'
16629 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16630 only for ASCII chars.
16631 (analyse_first) <exactn>: Simplify because the compiled pattern
16632 is multibyte.
16633 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16634 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16635 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16636 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16637 multibyte always 1.
16638 (re_search_2): In emacs, set the locale variable multibyte to 1,
16639 otherwise to 0. New local variable target_multibyte. Check it
16640 to decide the multibyteness of STR1 and STR2. If
16641 target_multibyte is zero, convert unibyte chars to multibyte
16642 before translating and checking fastmap.
16643 (TARGET_CHAR_AND_LENGTH): New macro.
16644 (re_match_2_internal): In emacs, set the locale variable multibyte
16645 to 1, otherwise to 0. New local variable target_multibyte. Check
16646 it to decide the multibyteness of STR1 and STR2. Use
16647 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16648 <charset, charset_not>: If multibyte is nonzero, check fastmap
16649 only for ASCII chars. Call bcmp_translate with
16650 target_multibyte, not with multibyte.
16651 <begline>: Declare the local variable C as `unsigned'.
16652 (bcmp_translate): Change the last arg name to target_multibyte.
16653
16654 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16655 the regexp pattern and the matching target. Set cp->buf.multibyte
16656 to the multibyteness of the regexp pattern. Set
16657 cp->but.target_multibyte to the multibyteness of the matching target.
16658 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16659 FETCH_STRING_CHAR_ADVANCE.
16660 (Freplace_match): Convert unibyte chars to multibyte.
16661
16662 * syntax.c (char_quoted, back_comment, scan_words)
16663 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16664 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16665 unibyte chars to multibyte.
16666 (skip_chars): Delete the arg syntaxp, and move the code for
16667 handling syntaxes to skip_syntaxes. Change callers.
16668 Fix the case that the multibyteness of STRING and the current
16669 buffer doesn't match.
16670 (skip_syntaxes): New function.
16671 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16672 SINGLE_BYTE_CHAR_P.
16673
166742008-02-01 Kenichi Handa <handa@m17n.org>
16675
16676 * xfaces.c (QCfontset): New variable.
16677 (LFACE_FONTSET): New macro.
16678 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16679 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16680 (Finternal_set_lisp_face_attribute)
16681 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16682 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16683 check also LFACE_FONTSET_INDEX.
16684 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16685 attrs[LFACE_FONT_INDEX].
16686 (syms_of_xfaces): Intern and staticpro QCfontset.
16687
16688 * dispextern.h (enum lface_attribute_index): New member
16689 LFACE_FONTSET_INDEX.
16690
16691 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16692
166932008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 * coding.c (coding_set_destination): Fix coding->destination for
16696 the case converting a region.
16697 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16698 (encode_coding_object): Fix coding->dst_pos and
16699 coding->dst_pos_byte for the case converting a region.
16700
16701 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16702
16703 * character.h (BYTE8_STRING): New macro.
16704
16705 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16706
167072008-02-01 Kenichi Handa <handa@m17n.org>
16708
16709 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16710 characters by octal form.
16711
16712 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16713
16714 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16715 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16716 _fetch_multibyte_char_len.
16717 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16718
16719 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16720
16721 * casefiddle.c (casify_object): Simplify. Handle the case that
16722 the case conversion change the byte length.
16723 (casify_region): Likewise.
16724
16725 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16726
16727 * character.c (_fetch_multibyte_char_len): Delete this variable.
16728 (syms_of_character): Setup Vprintable_chars.
16729
16730 * editfns.c (Fchar_equal): Fix for the unibyte case.
16731 (Finsert_byte): New function.
16732 (syms_of_editfns): Defsubr it.
16733
16734 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16735 of direct code 0x3ffff.
16736
16737 * search.c (Freplace_match): Fix for the unibyte case.
16738
167392008-02-01 Kenichi Handa <handa@m17n.org>
16740
16741 * lread.c (safe_to_load_p): Fix the logic.
16742
16743 * syntax.c (scan_words): Don't treat characters belonging to
16744 different scripts as constituting a word.
16745
16746 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16747
16748 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16749
16750 * emacs.c (main): In the case of --unibyte, instead of aborting on
16751 finding non-empty buffer, make it unibyte.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16756 to create a fontset.
16757
167582008-02-01 Dave Love <fx@gnu.org>
16759
16760 * character.c (Funibyte_char_to_multibyte): Doc fix.
16761
16762 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16763
167642008-02-01 Kenichi Handa <handa@m17n.org>
16765
16766 * fontset.c (fontset_add): Make the type `int'.
16767 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16768
16769 * character.c (unibyte_char_to_multibyte)
16770 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16771 charset_unibyte, not charset_primary.
16772
16773 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16774
16775 * charset.c (charset_unibyte): Rename from charset_primary.
16776 (Funibyte_charset): Rename from Fprimary_charset.
16777 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16778 (syms_of_charset): Adjust for the above changes.
16779
16780 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16781 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16782 it->multibyte_p is zero.
16783
16784 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16785 Delete extern.
16786
167872008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * coding.c (Fdefine_coding_system_internal): Fix category setting
16790 for a coding system of type iso-2022.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16795
167962008-02-01 Kenichi Handa <handa@m17n.org>
16797
16798 * syntax.c (Vnext_word_boundary_function_table): New variable.
16799 (next-word-boundary-function-table): Declare it as a Lisp variable
16800 in syms_of_syntax.
16801 (scan_words): Call functions in Vnext_word_boundary_function_table
16802 if any.
16803
16804 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16805
16806 * fontset.c (fs_load_font): If fontp->charset is not negative,
16807 return fontp without setting its members.
16808
168092008-02-01 Dave Love <fx@gnu.org>
16810
16811 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16812
16813 * m/sparc.h (HAVE_ALLOCA): Delete.
16814
16815 * s/irix6-5.h: Don't include strings.h.
16816 (bcopy, bzero, bcmp): Don't undef.
16817
16818 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16819
16820 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16821 (TIOCSIGSEND): Don't test IRIX6.
16822 (bcopy, bzero, bcmp): Define conditionally.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * buffer.c (Qas, Qmake, Qto): New variables.
16827 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16828 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16829
16830 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16831 we are inserting a process output into a multibyte buffer.
16832
16833 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16834 multibyte_char_to_unibyte.
16835
16836 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16837 by the primary charset, make it eight-bit char.
16838 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16839
16840 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16841 (charset_8_bit__control, charset_8_bit_graphic)
16842 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16843 (define_charset_internal): New function.
16844 (syms_of_charset): Call define_charset_internal for pre-defined
16845 charsets.
16846
16847 * charset.h (charset_8_bit): Extern it.
16848
16849 * coding.c (make_conversion_work_buffer): Adjust for the change
16850 of Fset_buffer_multibyte.
16851 (encode_coding_raw_text): Increment p0 in the loop.
16852
16853 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16854
16855 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16856 for the change of Fset_buffer_multibyte.
16857
16858 * fns.c (Fstring_to_multibyte): New function.
16859 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16860
168612008-02-01 Dave Love <fx@gnu.org>
16862
16863 * xfns.c (x_put_x_image): Declare args.
16864
16865 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16866 (try_font_list): Declare an arg.
16867
16868 * xdisp.c (message2_nolog, set_message): Declare an arg.
16869
16870 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16871
16872 * syntax.c (scan_sexps_forward): Declare an arg.
16873
16874 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16875 Declare an arg.
16876
16877 * lisp.h (Fnew_fontset): Declare.
16878
16879 * keymap.c (push_key_description): Call CHARACTERP correctly.
16880
16881 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16882 (face_for_char): Delete unused vars.
16883 (Fset_fontset_font): Doc fix. Delete unused vars.
16884
16885 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16886
16887 * composite.c (update_compositions): Declare arg.
16888
16889 * cm.c (calccost, cmgoto): Declare args.
16890
16891 * charset.c: Remove `emacs' conditional. Doc fixes.
16892 (map_char_table_for_charset): Declare.
16893
16894 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16895
16896 * ccl.c: Remove `emacs' conditional.
16897
168982008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 The following changes are to allow specifying multiple font
16901 patterns for a character range (specified by script or charset).
16902
16903 * Makefile.in (abbrev.o): Depend on syntax.h.
16904 (xfaces.o): Depend on charset.h.
16905
16906 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16907 SINGLE_BYTE_CHAR_P.
16908
16909 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16910
16911 * character.h (Vchar_script_table): Extern it.
16912
16913 * character.c (Vscript_alist): Delete.
16914 (Vchar_script_table, Qchar_script_table): New variable.
16915 (syms_of_character): Declare Vchar_script_table as a lisp variable
16916 and initialize it.
16917
16918 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16919 have property char-table-extra-slots, make no extra slot.
16920
16921 * dispextern.h (struct face): Delete member `charset'.
16922 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16923 SINGLE_BYTE_CHAR_P.
16924 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16925 Add prototypes.
16926 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16927 (generate_ascii_font_name): Rename from generate_ascii_font.
16928
16929 * fontset.h (get_font_repertory_func): New prototype.
16930 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16931 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16932
16933 * fontset.c (Qprepend, Qappend): New variables.
16934 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16935 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16936 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16937 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16938 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16939 (load_font_get_repertory): New functions.
16940 (fontset_set): Delete.
16941 (fontset_face): New arg FACE. Return face ID, not face.
16942 Complete re-write to handle new fontset structure. Change caller.
16943 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16944 (face_for_char): Don't call lookup_face.
16945 (make_fontset_for_ascii_face): New arg FACE.
16946 (fs_load_font): New arg CHARSET_ID. Don't check
16947 Vfont_encoding_alist here.
16948 (find_font_encoding): New function.
16949 (list_fontsets): Use STRINGP, not ! NILP.
16950 (accumulate_script_ranges): New function.
16951 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16952 re-written to handle new fontset structure.
16953 (Ffontset_font): Return a copy of element.
16954 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16955 docstring of font-encoding-alist.
16956
16957 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16958 (Fset_fotset_font): Fix arguments to 5.
16959
16960 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16961
16962 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16963 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16964 (highlight_trailing_whitespace): Adjust for the change of
16965 lookup_named_face.
16966
16967 * xfaces.c: Include charset.h.
16968 (load_face_font): Delete argument C. Change caller.
16969 (generate_ascii_font_name): Rename from generate_ascii_font.
16970 (font_name_registry): New function.
16971 (cache_face): Store ascii faces before non-ascii faces in buckets.
16972 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16973 Lookup only ascii faces.
16974 (lookup_non_ascii_face): New function.
16975 (lookup_named_face): Delete argument C. Change caller.
16976 (lookup_derived_face): Delete argument C. Change caller.
16977 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16978 a string, just call font_list with it.
16979 (choose_face_font): Delete arguments FACE and C. New arg
16980 FONT_SPEC. Change caller.
16981 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16982 Change caller.
16983 (realize_non_ascii_face): New function.
16984 (realize_x_face): Call load_face_font here.
16985 (realize_tty_face): Delete argument C. Change caller.
16986 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16987 get a face ID.
16988 (dump_realized_face): Don't print charset of FACE.
16989
16990 * xfns.c (x_set_font): Always call x_new_fontset and
16991 store_frame_parameter.
16992 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16993 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16994
16995 * xterm.h (x_get_font_repertory): Extern it.
16996
16997 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16998 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16999 it->multibyte_p is zero.
17000 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17001 (x_new_fontset): If FONTSETNAME doesn't match any existing
17002 fontsets, create a new one.
17003 (x_get_font_repertory): New function.
17004
170052008-02-01 Kenichi Handa <handa@m17n.org>
17006
17007 * coding.c (Ffind_coding_systems_region_internal): Detect an
17008 ASCII only string correctly.
17009
17010 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17011 version is 0.
17012
170132008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * lread.c: Include "coding.h".
17016 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17017 (load_each_byte, unread_char): New variables.
17018 (readchar_backlog): Delete.
17019 (readchar): Return a character unless load_each_byte is nonzero.
17020 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17021 cons. If unread_char is not -1, simply return it.
17022 (unreadchar): Handle the case that readcharfun is
17023 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17024 (read_multibyte): Delete.
17025 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17026 (read_emacs_mule_char): New functions.
17027 (Fload): Even if the file doesn't have the extension ".elc", if
17028 safe_to_load_p returns a positive version number, assume that the
17029 file contains bytecompiled code. If the version is less than 22,
17030 load the file while decoding multibyte sequences by emacs-mule.
17031 (readevalloop): Don't use readchar_backlog.
17032 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17033 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17034 (read_escape): Delete the arg BYTEREP.
17035 (read1): Set load_each_byte to 1 temporarily while handling
17036 #@NUMBER. Don't call read_multibyte.
17037 (read_vector): Call Fread with a cons. If readcharfun is
17038 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17039 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17040 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17041 and Qload_force_doc_strings.
17042
170432008-02-01 Kenichi Handa <handa@m17n.org>
17044
17045 * xdisp.c (face_before_or_after_it_pos): Call
17046 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17047
170482008-02-01 Kenichi Handa <handa@m17n.org>
17049
17050 * character.h (TRAILING_CODE_P): New macro.
17051 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17052 (string_char_with_unification): Fix prototype.
17053 (Vscript_alist): Extern it.
17054
17055 * character.c (Vscript_alist): New variable.
17056 (string_char_with_unification, str_as_unibyte)
17057 (string_escape_byte8): Add `const' to local variables.
17058 (syms_of_character): Declare script-alist as a Lisp variable.
17059
17060 * charset.h (Vcharset_ordered_list): Extern it.
17061 (charset_ordered_list_tick): Extern it.
17062 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17063 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17064 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17065 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17066 (Funify_charset): Adjust for the change of Funify_charset.
17067
17068 * charset.c (charset_ordered_list_tick): New variable.
17069 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17070 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17071 deunify intead of unify a charset.
17072 (string_xstring_p): Add `const' to local variables.
17073 (find_charsets_in_text): Add `const' to arguments and local variables.
17074 (encode_char): Adjust for the change of Funify_charset. Fix
17075 detecting of invalid code.
17076 (Fset_charset_priority): Increment charset_ordered_list_tick.
17077 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17078 and TO_CODE.
17079
17080 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17081 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17082 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17083 (decode_coding_ccl, consume_chars)
17084 (Ffind_coding_systems_region_internal)
17085 (Fcheck_coding_systems_region): Add `const' to local variables.
17086
17087 * print.c (print_object): Use octal form for printing the
17088 contents of a bool vector.
17089
170902008-02-01 Dave Love <fx@gnu.org>
17091
17092 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17093 <version == 20>: Refuse to load.
17094
170952008-02-01 Dave Love <fx@gnu.org>
17096
17097 * fns.c: Move coding.h.
17098 (Qcodeset, Qdays, Qmonths): New.
17099 (concat): Use CHARACTERP instead of INTEGERP.
17100 (Flocale_codeset): Delete.
17101 (Flanginfo): New function.
17102 (syms_of_fns): Change accordingly.
17103
17104 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17105
171062008-02-01 Dave Love <fx@gnu.org>
17107
17108 * casetab.c (init_casetab_once, init_casetab_once): Fix
17109 CHAR_TABLE_SET call.
17110
17111 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17112
17113 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17114
17115 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17116 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17117 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17118
17119 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17120
17121 * coding.c (ENCODE_DESIGNATION, decode_eol)
17122 (make_conversion_work_buffer, code_conversion_restore)
17123 (Fdefine_coding_system_internal): Convert Lisp types.
17124 (code_conversion_restore): Use EQ, not ==.
17125 (Fencode_coding_string): Fix code_convert_string call.
17126
17127 * coding.h (code_convert_region): Fix prototype.
17128
17129 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17130
17131 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17132 (Ffontset_info): Convert Lisp types.
17133
17134 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17135
17136 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17137
17138 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17139
17140 * chartab.c: Include "...h", not <...h> in some cases.
17141
17142 * callproc.c (Fcall_process): Remove unused variables.
17143
171442008-02-01 Dave Love <fx@gnu.org>
17145
17146 * coding.c (Fset_coding_system_priority): Allow null arg list.
17147
171482008-02-01 Dave Love <fx@gnu.org>
17149
17150 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17151 (Fself_insert_and_exit): Use CHARACTERP.
17152
17153 * callproc.c (Fcall_process): Remove unused vars.
17154
17155 * xterm.c (XTread_socket): Add extra dead keysyms.
17156
17157 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17158
17159 * dispextern.h: Remove prototypes for redraw_frame,
17160 redraw_garbaged_frames.
17161
17162 * cmds.c (Fself_insert_command): Use CHARACTERP.
17163
17164 * chartab.c (make_sub_char_table): Remove unused var.
17165 (Fset_char_table_default, Fmap_char_table): Doc fix.
17166
17167 * keymap.c (access_keymap): Remove generic char code.
17168 (push_key_description): Use CHARACTERP.
17169
171702008-02-01 Dave Love <fx@gnu.org>
17171
17172 * charset.c: Doc fixes.
17173 (Funify_charset): Extra checking.
17174
171752008-02-01 Dave Love <fx@gnu.org>
17176
17177 * lread.c: Remove some unused variables.
17178 (safe_to_load_p): If safe, return the magic number version byte.
17179 (Fload): Maybe use load-with-code-conversion.
17180
171812008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * category.c (Fmodify_category_entry): Don't modify the contents
17184 of category_set for characters out of the range. Avoid
17185 unnecessary modification.
17186
17187 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17188 Vchar_unify_table. The default value of the table is now nil.
17189
17190 * character.c (syms_of_character): Setup Vchar_width_table for
17191 eight-bit-control and raw-byte chars.
17192
17193 * charset.h (enum define_charset_arg_index): Delete
17194 charset_arg_parents and add charset_arg_subset and
17195 charset_arg_superset.
17196 (enum charset_attr_index): Delete charset_parents and add
17197 charset_subset and charset_superset.
17198 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17199 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17200 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17201 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17202 (CHARSET_SUPERSET): New macros.
17203 (charset_work): Extern it.
17204 (ENCODE_CHAR): Use charset_work.
17205 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17206 (map_charset_chars): Extern it.
17207
17208 * charset.c (load_charset_map): Set the default value of encoder
17209 and deunifier char-tables to nil.
17210 (map_charset_chars): Change argument. Change callers. Use
17211 map_char_table_for_charset instead of map_char_table.
17212 (Fmap_charset_chars): New optional args from_code and to_code.
17213 (Fdefine_charset_internal): Adjust for the change of
17214 `define-charset' (:parents -> :subset or :superset).
17215 (charset_work): New variable.
17216 (encode_char, syms_of_charset): Adjust for the change of
17217 Fdefine_charset_internal.
17218 (Ffind_charset_string): Setup the vector `charsets' correctly.
17219
17220 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17221 the previous change.
17222 (char_table_ref_and_range): Adjust for the above change.
17223 (map_sub_char_table_for_charset): New function.
17224 (map_char_table_for_charset): New function.
17225
17226 * keymap.c (describe_vector): Handle a char-table directly here.
17227 (describe_char_table): Delete.
17228
17229 * lisp.h (map_charset_chars): Delete.
17230
172312008-02-01 Dave Love <fx@gnu.org>
17232
17233 * fns.c (count_combining): Comment out (unused).
17234 (Flocale_codeset): New.
17235 (syms_of_fns): Defsubr it.
17236
17237 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17238 (size_t): Remove.
17239
172402008-02-01 Dave Love <fx@gnu.org>
17241
17242 * Makefile.in (chartab.o): Depend on charset.h.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * character.c (syms_of_character): Set the default value of
17247 Vprintable_chars to Qnil.
17248
172492008-02-01 Dave Love <fx@gnu.org>
17250
17251 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17252
172532008-02-01 Kenichi Handa <handa@m17n.org>
17254
17255 * charset.c (load_charset_map): Handle the case that from < to
17256 correctly.
17257
17258 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17259 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17260 Pay attention to raw-8-bit chars.
17261
172622008-02-01 Kenichi Handa <handa@m17n.org>
17263
17264 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17265 It is not bytecompiled now.
17266
17267 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17268 (charset_jisx0208): New variables.
17269 (Fdefine_charset_internal): Setup them if appropriate.
17270 (init_charset_once): Initialize them to -1.
17271
17272 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17273 (charset_jisx0208): Extern them.
17274
17275 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17276 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17277 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17278 (setup_iso_safe_charsets): Fix arguments to Fassq.
17279 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17280 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17281 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17282 (encode_coding_iso_2022): Change the 1st arg to
17283 ENCODE_ISO_CHARACTER to a variable.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 * charset.h (enum define_charset_arg_index): New enums
17288 charset_arg_min_code and charset_arg_max_code.
17289 (struct charset): New member char_index_offset.
17290
17291 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17292 Take charset->char_index_offset into account.
17293 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17294 args[charset_arg_max_code]. Setup charset.char_index_offset.
17295 (syms_of_charset): Fix args to Fdefine_charset_internal.
17296
172972008-02-01 Dave Love <fx@gnu.org>
17298
17299 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17300
173012008-02-01 Dave Love <fx@gnu.org>
17302
17303 * coding.c: Doc fixes.
17304 (Fcoding_system_aliases): Fix return value.
17305 (Qmac): Remove (duplicated) definition.
17306
173072008-02-01 Dave Love <fx@gnu.org>
17308
362654a6
JB
17309 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17310 New functions.
aac0c6e3
MR
17311
17312 * character.c (Fstring): Doc fix.
17313
17314 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17315
362654a6 17316 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17317 (font-encoding-alist): Doc fix.
17318
173192008-02-01 Dave Love <fx@gnu.org>
17320
17321 * term.c (costs_set): Declare static, non-initialized for pcc.
17322 (encode_terminal_code): Remove unused var.
17323
17324 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17325 for K&R.
17326
17327 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17328
17329 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17330 (suffixes): Move out of make_subsidiaries for K&R.
17331
17332 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17333
17334 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17335
173362008-02-01 Dave Love <fx@gnu.org>
17337
17338 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17339
17340 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17341
173422008-02-01 Yong Lu <lyongu@asia-infonet.com>
17343
17344 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17345
17346 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17347
173482008-02-01 Kenichi Handa <handa@m17n.org>
17349
17350 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17351 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17352
173532008-02-01 Kenichi Handa <handa@m17n.org>
17354
17355 * coding.c (decode_coding_charset): Adjust for the change of
17356 Fdefine_coding_system_internal.
17357 (Fdefine_coding_system_internal): For a coding system of
17358 `charset' type, store a list of charset IDs in
17359 `charset_attr_charset_valids' element of coding attributes.
17360
173612008-02-01 Kenichi Handa <handa@m17n.org>
17362
17363 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17364 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17365 caller. Handle 2-byte and 3-byte charsets correctly.
17366 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17367 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17368 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17369 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17370 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17371 sequence.
17372 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17373 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17374 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17375 and alt&rule composition.
17376 (decode_coding_iso_2022): Handle composition correctly.
17377 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17378
17379 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17380 re-defining a charset. If the charset has :emacs-mule-id, setup
17381 emacs_mule_bytes.
17382 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17387 (encode_coding_big5, encode_coding_charset): If coding requires safe
17388 encoding, produce a character specified by
17389 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17390
173912008-02-01 Dave Love <fx@gnu.org>
17392
17393 * xterm.c (XSetIMValues): Declare.
17394
17395 * process.c: Conditionally include sys/wait.h, pty.h.
17396
17397 * print.c (print_object): Fix print format for 64-bit systems.
17398
17399 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17400
17401 * buffer.c (emacs_strerror): Declare.
17402
17403 * fontset.c (Fclear_face_cache): Declare.
17404 (accumulate_font_info): Comment-out (unused).
17405 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17406 variables.
17407
17408 * character.h (string_escape_byte8): Declare.
17409
17410 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17411 unused vars.
17412 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17413 (Fmap_charset_chars): Doc fix.
17414
17415 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17416 (Fset_coding_system_priority, Fset_coding_system_priority)
17417 (Fdefine_coding_system_internal): Doc fix.
17418
174192008-02-01 Dave Love <fx@gnu.org>
17420
17421 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * character.c (string_escape_byte8): Make multibyte string with
17426 correct size.
17427
17428 * charset.c (Fmake_char): Delete unnecessary code.
17429
174302008-02-01 Kenichi Handa <handa@m17n.org>
17431
17432 * xfns.c (x_encode_text): Allocate coding.destination here, and
17433 call encode_coding_object with dst_object Qnil.
17434
17435 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17436 multibyte form correctly.
17437
17438 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17439 against Vfont_encoding_alist.
17440
17441 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17442 handling of charset list.
17443 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17444 (decode_coding_object): Move point to coding->dst_pos before
17445 calling post-read-conversion function.
17446 (encode_coding_object): Give correct arguments to
17447 pre-write-conversion. Ignore the return value of
17448 pre-write-conversion function. Pay attention to the case that
17449 pre-write-conversion changes the current buffer. If dst_object is
17450 Qt, even if coding->src_bytes is zero, allocate at least one byte
17451 to coding->destination.
17452
17453 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17454
17455 * charset.c (Fmake_char): Make it more backward compatible.
17456 (Fmap_charset_chars): Fix docstring.
17457
174582008-02-01 Dave Love <fx@gnu.org>
17459
17460 * coding.c: Doc fixes.
17461 (Fdefine_coding_system_alias): Use names, not symbols, in
17462 coding-system-alist.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17467 of calling free_realized_face.
17468
174692008-02-01 Yong Lu <lyongu@asia-infonet.com>
17470
17471 * charset.c (read_hex): Don't treat SPC as a comment starter.
17472 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17473 (Fdecode_char): Fix typo.
17474
174752008-02-01 Kenichi Handa <handa@m17n.org>
17476
17477 * charset.h (struct charset): New member `code_space_mask'.
17478
17479 * coding.c (coding_set_source): Delete the local variable beg_byte.
17480 (encode_coding_charset, Fdefine_coding_system_internal):
17481 Delete the local variable charset.
17482 (Fdefine_coding_system_internal): Setup
17483 attrs[coding_attr_charset_valids] correctly.
17484
17485 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17486 member to check if CODE is valid or not.
17487 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17488 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17489 is within the range of charset->min_code and carset->max_code.
17490
174912008-02-01 Dave Love <fx@gnu.org>
17492
17493 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17494
17495 * dispextern.h (generate_ascii_font): Fix return type.
17496
17497 * xfaces.c (generate_ascii_font): Fix arg declaration.
17498
17499 * coding.c (coding_inherit_eol_type)
17500 (Fset_terminal_coding_system_internal)
17501 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17502
175032008-02-01 Kenichi Handa <handa@m17n.org>
17504
17505 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17506 multiple charsets correctly.
17507
175082008-02-01 Kenichi Handa <handa@m17n.org>
17509
17510 * search.c (boyer_moore): Fix handling of multibyte character
17511 translation.
17512
17513 * xdisp.c (display_mode_element): When the variable `elt' is
17514 changed, update `this' and `lisp_string'.
17515
175162008-02-01 Kenichi Handa <handa@m17n.org>
17517
17518 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17519
17520 * callproc.c (Fcall_process): Be sure to give the current buffer
17521 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17522
17523 * charset.c (struct charset_map_entries): New struct.
17524 (load_charset_map): Rename from parse_charset_map. New args
17525 entries and n_entries. Change caller.
17526 (load_charset_map_from_file): Rename from load_charset_map.
17527 Change caller. New arg control_flag. Call load_charset_map at
17528 the tail.
17529 (load_charset_map_from_vector): New function.
17530 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17531 (encode_char): If the charset is compact, change a character index
17532 to a code point.
17533
17534 * coding.c (coding_alloc_by_making_gap): Check the case that the
17535 source and destination are the same correctly.
17536 (decode_coding_raw_text): Set coding->consumed_char and
17537 coding->consumed to 0.
17538 (produce_chars): If coding->chars_at_source is nonzero, update
17539 coding->consumed_char and coding->consumed before calling
17540 alloc_destination.
17541 (Fdefine_coding_system_alias): Register ALIAS in
17542 Vcoding_system_alist.
17543 (syms_of_coding): Define `no-conversion' coding system at the tail.
17544
17545 * fileio.c (Finsert_file_contents): Set coding_system instead of
17546 val. If the current buffer is multibyte, always call
17547 decode_coding_gap.
17548
17549 * xfaces.c (try_font_list): Give higher priority to fontset's
17550 family than face's family.
17551
175522008-02-01 Kenichi Handa <handa@m17n.org>
17553
17554 * callproc.c (Fcall_process): Be sure to give the current buffer
17555 to decode_coding_c_string.
17556
17557 * xfaces.c (try_font_list): Give a family specified in a fontset
17558 higher priority than a family specified in a face.
17559
175602008-02-01 Kenichi Handa <handa@m17n.org>
17561
17562 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17563 Fix arguments to insert_from_buffer.
17564
17565 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17566
175672008-02-01 Kenichi Handa <handa@m17n.org>
17568
17569 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17570 (decode_coding_gap): Set coding->dst_multibyte correctly.
17571
175722008-02-01 Kenichi Handa <handa@m17n.org>
17573
17574 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17575 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17576 (encode_coding_utf_16): Substitute coding->default_char for
17577 non-Unicode characters.
17578 (decode_coding): Don't call record_insert here.
17579 (setup_coding_system): Initialize `surrogate' of
17580 coding->spec.utf_16 to 0.
17581 (EMIT_ONE_BYTE): Fix for multibyte case.
17582
17583 * insdel.c (insert_from_gap): Call record_insert.
17584
175852008-02-01 Kenichi Handa <handa@m17n.org>
17586
17587 * casefiddle.c (casify_region): Fix multibyte case.
17588
17589 * character.c (c_string_width): Add return type `int'.
17590 (char_string_with_unification): Delete arg ADVANCED.
17591
17592 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17593 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17594 (CHAR_STRING_ADVANCE): Make it do-while statement.
17595
17596 * chartab.c (sub_char_table_set_range): Optimize for the case
17597 DEPTH == 3. Add workaround code for a GCC optimization bug.
17598
17599 * charset.c (parse_charset_map): Remove an unused variable.
17600
17601 * coding.c: Delete unused variables.
17602
17603 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17604 earlier. If inserted is zero and the coding system doesn't
17605 require flushing, don't call decode_coding_gap.
17606
17607 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 The following changes are for using Unicode as an internal
17612 character model, and use UTF-8 format for buffer/string
17613 representation.
17614
17615 * .gdbinit (xchartable): Adjust for the change of char table structure.
17616 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17617
17618 * Makefile.in (obj): Add character.o and chartab.o.
17619 (lisp, shortlisp): Remove utf-8.elc.
17620 (*.o): For many files, change dependency on charset.h to
17621 character.h, and add dependency on character.h.
17622 (character.o, chartab.o): New targets.
17623
17624 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17625 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17626 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17627 of "charset.h".
17628
17629 * dired.c, filelock.c: Include "character.h".
17630
17631 * alloc.c: Include "character.h" instead of "charset.h".
17632 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17633 (syms_of_alloc): Remove defsubr for Smake_char_table.
17634
17635 * buffer.c: Include "character.h" instead of "charset.h", don't
17636 include "coding.h".
17637 (Fset_buffer_multibyte): Adjust for UTF-8.
17638
17639 * buffer.h: EXFUN Fbuffer_live_p.
17640
17641 * callproc.c: Include "character.h" instead of "charset.h".
17642 (Fcall_process): Big change for the new code-conversion APIs.
17643
17644 * casetab.c: Include "character.h" instead of "charset.h".
17645 (set_canon, set_identity, shuffle): Adjust for the new
17646 map_char_table spec.
17647 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17648 accessing the char table structure.
17649
17650 * chartab.c: New file that implements char table.
17651
17652 * category.c: Include "character.h".
17653 (copy_category_entry): New function.
17654 (copy_category_table): Call map_char_table and copy_category_entry.
17655 (Fmake_category_table): Initialize all top-level slots.
17656 (char_category_set): New function.
17657 (modify_lower_category_set): Delete.
17658 (Fmodify_category_entry): Call char_table_ref_and_range.
17659
17660 * category.h (CATEGORY_SET): Just call char_category_set.
17661
17662 * ccl.c: Include "character.h".
17663 (Qccl, Qcclp): New variables.
17664 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17665 it's less than 256.
17666 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17667 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17668 and DST type.
17669 (ccl_driver): Change types of argument, adjust code accordingly.
17670 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17671 ccl_driver.
17672 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17673
17674 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17675 New members src_multibyte, dst_multibyte, consumed, and produced.
17676 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17677 (CODING_SPEC_CCL_PROGRAM): New macro.
17678 (ccl_driver): Update prototype.
17679 (Qccl, Qcclp, Fccl_program_p): Extern them.
17680 (CHECK_CCL_PROGRAM): New macro.
17681
17682 * character.c, character.h, chartab.c: New files.
17683
17684 * charset.c: Mostly re-written. Move character and multibyte sequence
17685 handling codes to character.c.
17686
17687 * charset.h: Mostly re-written. Move character and multibyte sequence
17688 handling codes to character.h.
17689
17690 * coding.c, coding.h: Mostly re-written.
17691
17692 * composite.c: Include "character.h" instead of "charset.h".
17693 (CHAR_WIDTH): Move to character.h.
17694 (HASH_KEY, HASH_VALUE): Delete.
17695
17696 * composite.h (enum composition_method): Change order of enumeration
17697 symbols.
17698
17699 * data.c: Include "character.h" instead of "charset.h".
17700 (Faref): Call CHAR_TABLE_REF for a char table.
17701 (Faset): Call CHAR_TABLE_SET for a char table.
17702
17703 * dispextern.h (free_realized_face, check_face_attribytes)
17704 (generate_ascii_font): Extern them.
17705 (free_realized_multibyte_face): Delete extern.
17706
17707 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17708 table structure.
17709
17710 * editfns.c: Include "character.h" instead of "charset.h".
17711 (Fchar_to_string): Always call CHAR_STRING.
17712
17713 * emacs.c (main): Call init_charset_once, init_charset,
17714 syms_of_chartab, and syms_of_character.
17715
17716 * fileio.c: Include "character.h" instead of "charset.h".
17717 (Finsert_file_contents): Big change for the new code-conversion API.
17718 (choose_write_coding_system, Fwrite_region): Likewise.
17719 (build_annotations_2): Delete.
17720 (e_write): Big change for the new code-conversion API.
17721
17722 * fns.c: Include "character.h" instead of "charset.h".
17723 (copy_sub_char_table): Move to chartab.c.
17724 (Fcopy_sequence): Call copy_char_table for a char table.
17725 (concat): Delete codes calling count_multibyte.
17726 (string_char_to_byte, string_byte_to_char): Adjust for the new
17727 multibyte form.
17728 (internal_equal): Adjust for the change of char table structure.
17729 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17730 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17731 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17732 (char_table_translate, optimize_sub_char_table)
17733 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17734 chartab.c.
17735 (char_table_ref_and_index): Delete.
17736 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17737 (Fmd5): Call preferred_coding_system instead of accessing
17738 Vcoding_category_list. Adjust for the new code-conversion API.
17739 (syms_of_fns): Move defsubr for char table related functions to
17740 chartab.c.
17741
17742 * fontset.c: Mostly re-written.
17743
17744 * fontset.h (struct font_info): Change type of the member encoding_type.
17745 (enum FONT_SPEC_INDEX): New enum.
17746 (fontset_font_pattern, fs_load_font): Update prototype.
17747 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17748
17749 * indent.c: Include "character.h" instead of "charset.h".
17750 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17751
17752 * insdel.c: Include "character.h" instead of "charset.h".
17753 (copy_text): Don't refer to Vnonascii_translation_table.
17754 (insert_from_gap): New function.
17755
17756 * keyboard.c: Include "character.h" instead of "charset.h".
17757 (command_loop_1): Never call direct_output_forward_char before
17758 a non-ASCII character.
17759 (read_char): If Vkeyboard_translate_table is a char table, always
17760 translate a character.
17761
17762 * keymap.c: Include "character.h".
17763 (store_in_keymap): Handle the case that IDX is a cons.
17764 (Fdefine_key): Handle the case that KEY is a cons and the car part
17765 is also a cons (range).
17766 (push_key_description): Adjust for the new character code.
17767 (describe_vector): Call describe_char_table for a char table.
17768 (describe_char_table): New function.
17769
17770 * keymap.h (describe_char_table): Extern it.
17771
17772 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17773 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17774 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17775 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17776 Delete.
17777 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17778 structure.
17779 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17780 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17781 (CHARTAB_SIZE_BITS_3): New macros.
17782 (chartab_size): Extern it.
17783 (struct Lisp_Char_Table): Re-design.
17784 (struct Lisp_Sub_Char_Table): New structure.
17785 (HASH_KEY, HASH_VALUE): Move from fns.c.
17786 (CHARACTERBITS): Define as 22.
17787 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17788 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17789 (GC_SUB_CHAR_TABLE_P): New macro.
17790 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17791 (code_convert_string_norecord): Deleted extern.
17792 (init_character_once, syms_of_character, init_charset)
17793 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17794
17795 * lread.c: Include "character.h".
17796 (read_multibyte): New arg NBYTES.
17797 (read_escape): Change the meaning of returned *BYTEREP.
17798 (to_multibyte): Delete.
17799 (read1): Adjust the handling of char table and string.
17800
17801 * print.c: Include "character.h" instead of "charset.h".
17802 (print_string): Convert 8-bit raw bytes to octal form by
17803 string_escape_byte8.
17804 (print_object): Adjust for the new multibyte form. Print 8-bit
17805 raw bytes always in octal form. Handle sub char table correctly.
17806
17807 * process.c: Include "character.h" instead of "charset.h".
17808 (read_process_output, send_process): Adjust for the new
17809 code-conversion API.
17810
17811 * puresize.h (BASE_PURESIZE): Increase.
17812
17813 * regex.c: Include "character.h" instead of "charset.h".
17814 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17815 (regex_compile): Accept a range whose starting and ending
17816 character have different leading bytes.
17817 (analyse_first): Adjust for the above change.
17818
17819 * search.c: Include "character.h" instead of "charset.h".
17820 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17821 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17822
17823 * syntax.c: Include "character.h" instead of "charset.h".
17824 (syntax_parent_lookup): Delete.
17825 (Fmodify_syntax_entry): Accept a cons as CHAR.
17826 (skip_chars): Adjust for the new multibyte form.
17827 (init_syntax_once): Call char_table_set_range instead of directly
17828 accessing the structure of a char table.
17829
17830 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17831 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17832 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17833 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17834
17835 * term.c: Include "buffer.h" and "character.h".
17836 (encode_terminal_code, write_glyphs): Adjust for the new
17837 code-conversion API.
17838 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17839
17840 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17841
17842 * xdisp.c: Include "character.h".
17843 (get_next_display_element): Adjust for the new multibyte form.
17844 (disp_char_vector): Adjust for the new char table structure.
17845 (decode_mode_spec_coding): Adjust for the new structure of
17846 coding system.
17847 (decode_mode_spec): Adjust for the new code-conversion API.
17848
17849 * xfaces.c: Include "character.h" instead of "charset.h".
17850 (load_face_font): Adjust for the change of choose_face_font and
17851 FS_LOAD_FONT.
17852 (generate_ascii_font): New function.
17853 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17854 (set_font_frame_param): Adjust for the change of choose_face_font.
17855 (free_realized_face): Make it public.
17856 (free_realized_faces_for_fontset): Rename from
17857 free_realized_multibyte_face. Free also faces realized for ASCII.
17858 (choose_face_font): Change arguments. Adjust for the change of
17859 fontset_font_pattern and FS_LOAD_FONT.
17860
17861 * xfns.c: Include "character.h".
17862 (x_encode_text): Adjust for the new code-conversion API.
17863
17864 * xselect.c: Don't include "charset.h".
17865 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17866
17867 * xterm.c: Include "character.h".
17868 (x_encode_char): New argument CHARSET. Change caller.
17869 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17870 Call ENCODE_CHAR instead of SPLIT_CHAR.
17871 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17872 CHAR_WIDTH instead of CHARSET_WIDTH.
17873 (XTread_socket): Adjust for the new code-conversion API.
17874 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17875 (x_load_font): Adjust for the change of struct font.
17876
178772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17878
17879 * xfaces.c (face_at_buffer_position): Remove unused vars.
17880
178812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17882
17883 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17884 Fix overflow checking.
17885
178862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17887
17888 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17889 Cancel previous change.
17890
178912008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17892
17893 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17894 ccl->eight_bit_control. Fix check for buffer overflow.
17895 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17896 (ccl_driver): Initialize extra_bytes to 0.
17897
178982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17899
17900 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17901 return it ORed with ctrl_modifier.
17902
179032008-01-29 Miles Bader <miles@gnu.org>
17904
17905 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17906
179072008-01-28 Jason Rumney <jasonr@gnu.org>
17908
17909 * w32.c (stat): Don't double check for networked drive.
17910
179112008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17912
17913 * window.c (run_window_configuration_change_hook): New function.
17914 Code extracted from set_window_buffer. Set the selected frame.
17915 (set_window_buffer): Use it.
17916 * window.h (run_window_configuration_change_hook): Declare.
17917 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17918
17919 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17920
179212008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17922
17923 * Makefile.in: Remove references to unused macros.
17924
179252008-01-26 Eli Zaretskii <eliz@gnu.org>
17926
17927 * w32.c (g_b_init_get_sid_sub_authority)
17928 (g_b_init_get_sid_sub_authority_count): New static variables.
17929 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17930 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17931 (init_user_info): Use them to retrieve uid and gid.
17932 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17933 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17934 st_uid and st_gid of the file.
17935
179362008-01-26 Jason Rumney <jasonr@gnu.org>
17937
17938 * w32.c (logon_network_drive): New function.
17939 (stat): Use it.
17940
179412008-01-26 Chong Yidong <cyd@stupidchicken.com>
17942
17943 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17944 invisible text covered with an ellipsis.
17945
179462008-01-25 Richard Stallman <rms@gnu.org>
17947
17948 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17949 jump back to beginning. Move some other initializations after that.
17950 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17951 New variables.
17952 (syms_of_xdisp): Init them.
17953
17954 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17955
17956 * buffer.c (reset_buffer_local_variables):
17957 Implement `permanent-local-hook'.
17958 (Qpermanent_local_hook): New variable.
17959 (syms_of_buffer): Init and staticpro it.
17960
179612008-01-25 Michael Albinus <michael.albinus@gmx.de>
17962
17963 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17964
179652008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17966
17967 * fns.c (Fclrhash): Return TABLE.
17968
179692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17970
17971 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17972 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17973 is set even without positional changes.
17974 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17975
17976 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17977
179782008-01-23 Jason Rumney <jasonr@gnu.org>
17979
17980 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17981
17982 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17983 the unicode range available in MULE by locale-coding-system.
17984 Improve dbcs lead byte detection. Set event timestamp and modifiers
17985 earlier.
17986
179872008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17988
17989 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17990 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17991 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17992 when used on child processes.
17993
179942008-01-21 Michael Albinus <michael.albinus@gmx.de>
17995
17996 * dbusbind.c (Fdbus_method_return_internal): Rename from
17997 Fdbus_method_return.
17998 (Fdbus_unregister_object): Move to dbus.el.
17999 (Fdbus_call_method, Fdbus_method_return_internal)
18000 (Fdbus_send_signal): Improve debug messages.
18001
180022008-01-20 Martin Rudalics <rudalics@gmx.at>
18003
18004 * undo.c (undo_inhibit_record_point): New variable.
18005 (syms_of_undo): Initialize it.
18006 (record_point): Don't record point when undo_inhibit_record_point
18007 is set.
18008
180092008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18010
18011 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18012
18013 * xdisp.c (Qauto_hscroll_mode): New var.
18014 (syms_of_xdisp): Initialize it.
18015 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18016 window's buffer.
18017 (hscroll_windows): Don't check automatic_hscrolling_p here.
18018
18019 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18020 vscroll if we're setting window-buffer to the value it already has.
18021
180222008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18023
18024 * m/intel386.h: Remove references to XENIX.
18025
180262008-01-17 Andreas Schwab <schwab@suse.de>
18027
18028 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18029 instead of HAVE_X86_64_LIB64_DIR.
18030 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18031
180322008-01-17 Glenn Morris <rgm@gnu.org>
18033
18034 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18035 to HAVE_X86_64_LIB64_DIR.
18036
180372008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18038
18039 * s/irix3-3.h:
18040 * s/irix4-0.h:
18041 * s/386-ix.h:
18042 * s/domain.h:
18043 * s/hpux9-x11r4.h:
18044 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18045
18046 * sysdep.c: Remove code containing references to symbols defined
18047 by unsupported systems.
18048
180492008-01-16 Glenn Morris <rgm@gnu.org>
18050
18051 * coding.c (select-safe-coding-system-function): Doc fix.
18052
180532008-01-15 Glenn Morris <rgm@gnu.org>
18054
18055 * config.in: Revert 2008-01-13 change: this is a generated file.
18056
180572008-01-13 Tom Tromey <tromey@redhat.com>
18058
18059 * lisp.h: Fix typo.
18060
180612008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18062
18063 * m/sequent-ptx.h:
18064 * m/sequent.h:
18065 * s/ptx.h:
18066 * s/ptx4-2.h:
18067 * s/ptx4.h: Remove files for systems no longer supported.
18068
18069 * callproc.c (Fcall_process): Fix previous change.
18070
180712008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18072
18073 * unexsunos4.c: Remove file, system not supported anymore.
18074
18075 * m/mips.h:
18076 * m/intel386.h:
18077 * callproc.c:
18078 * config.in:
18079 * ecrt0.c:
18080 * emacs.c:
18081 * fileio.c:
18082 * frame.c:
18083 * getpagesize.h:
18084 * keyboard.c:
18085 * lread.c:
18086 * process.c:
18087 * puresize.h:
18088 * sysdep.c:
18089 * systty.h:
18090 * syswait.h:
18091 * unexec.c:
18092 * xdisp.c:
18093 * alloc.c: Remove code containing references to symbols defined by
18094 unsupported systems.
18095
180962008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18097
18098 * coding.c (detect_coding_mask): Fix previous change.
18099
181002008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18101
18102 * coding.c (detect_coding_iso2022): New arg
18103 latin_extra_code_state. Allow Latin extra codes only
18104 when *latin_extra_code_state is nonzero.
18105 (detect_coding_mask): If there is a NULL byte, detect the encoding
18106 as UTF-16 or binary. If Latin extra codes exist, detect the
18107 encoding as ISO-2022 only when there's no other proper encoding is
18108 found.
18109
181102008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18111
18112 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18113 #ifdef MAC_OS.
18114
181152008-01-08 Richard Stallman <rms@gnu.org>
18116
18117 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18118
181192008-01-06 Nick Roberts <nickrob@snap.net.nz>
18120
18121 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18122 menu bar in parentheses.
18123
181242008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18125
18126 * m/7300.h:
18127 * m/acorn.h:
18128 * m/alliant-2800.h:
18129 * m/alliant.h:
18130 * m/alliant1.h:
18131 * m/alliant4.h:
18132 * m/altos.h:
18133 * m/amdahl.h:
18134 * m/apollo.h:
18135 * m/att3b.h:
18136 * m/aviion-intel.h:
18137 * m/aviion.h:
18138 * m/celerity.h:
18139 * m/clipper.h:
18140 * m/cnvrgnt.h:
18141 * m/convex.h:
18142 * m/cydra5.h:
18143 * m/delta88k.h:
18144 * m/dpx2.h:
18145 * m/dual.h:
18146 * m/elxsi.h:
18147 * m/f301.h:
18148 * m/gould-np1.h:
18149 * m/gould.h:
18150 * m/i860.h:
18151 * m/ibmps2-aix.h:
18152 * m/ibmrt-aix.h:
18153 * m/ibmrt.h:
18154 * m/irist.h:
18155 * m/is386.h:
18156 * m/isi-ov.h:
18157 * m/mega68.h:
18158 * m/mg1.h:
18159 * m/news-r6.h:
18160 * m/news-risc.h:
18161 * m/news.h:
18162 * m/nh3000.h:
18163 * m/nh4000.h:
18164 * m/ns16000.h:
18165 * m/ns32000.h:
18166 * m/nu.h:
18167 * m/orion.h:
18168 * m/orion105.h:
18169 * m/paragon.h:
18170 * m/pfa50.h:
18171 * m/plexus.h:
18172 * m/pyramid.h:
18173 * m/pyrmips.h:
18174 * m/sh3el.h:
18175 * m/sps7.h:
18176 * m/sr2k.h:
18177 * m/stride.h:
18178 * m/sun1.h:
18179 * m/sun2.h:
18180 * m/sun3-68881.h:
18181 * m/sun3-fpa.h:
18182 * m/sun3-soft.h:
18183 * m/sun3.h:
18184 * m/sun386.h:
18185 * m/symmetry.h:
18186 * m/tad68k.h:
18187 * m/tahoe.h:
18188 * m/targon31.h:
18189 * m/tek4300.h:
18190 * m/tekxd88.h:
18191 * m/tower32.h:
18192 * m/tower32v3.h:
18193 * m/ustation.h:
18194 * m/wicat.h:
18195 * m/xps100.h:
18196 * s/cxux.h:
18197 * s/cxux7.h:
18198 * s/dgux.h:
18199 * s/dgux4.h:
18200 * s/dgux5-4-3.h:
18201 * s/dgux5-4r2.h:
18202 * s/esix.h:
18203 * s/esix5r4.h:
18204 * s/hiuxmpp.h:
18205 * s/hiuxwe2.h:
18206 * s/iris3-5.h:
18207 * s/iris3-6.h:
18208 * s/isc2-2.h:
18209 * s/isc3-0.h:
18210 * s/isc4-0.h:
18211 * s/isc4-1.h:
18212 * s/newsos5.h:
18213 * s/newsos6.h:
18214 * s/osf1.h:
18215 * s/osf5-0.h:
18216 * s/riscix1-1.h:
18217 * s/riscix12.h:
18218 * s/sco4.h:
18219 * s/sco5.h:
18220 * s/sunos4-0.h:
18221 * s/sunos4-1.h:
18222 * s/sunos413.h:
18223 * s/sunos4shr.h:
18224 * s/umax.h:
18225 * s/unipl5-2.h:
18226 * s/xenix.h:
18227 * cxux-crt0.s:
18228 * unexapollo.c:
18229 * unexconvex.c:
18230 * unexenix.c:
18231 * unexsni.c: Remove files for systems no longer supported.
18232
18233 * m/intel386.h: Remove references to unsupported systems.
18234
18235 * w32.c (get_emacs_configuration): Remove reference to i860.
18236
18237 * sysdep.c: Remove dead code.
18238
182392008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18240
18241 * s/rtu.h:
18242 * m/masscomp.h: Remove files. Platform is obsolete.
18243
182442008-01-04 Michael Albinus <michael.albinus@gmx.de>
18245
18246 * dbusbind.c (Fdbus_method_return): New function.
18247 (xd_read_message): Add the serial number to the event.
18248 (Fdbus_register_method): Activate the function.
18249
182502008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18251
18252 * keyboard.c (read_key_sequence): Fix typo.
18253
182542008-01-03 Michael Albinus <michael.albinus@gmx.de>
18255
18256 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18257 (xd_signature, xd_append_arg): Handle element type detection for
18258 empty arrays.
18259 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18260 SDATA () calls; this must be solved more general.
18261 (Fdbus_register_signal): Use SBYTES instead of strlen.
18262
182632008-01-03 Magnus Henoch <magnus@zemdatav>
18264
18265 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18266 unsigned int for byte values (necessary for big-endian platform).
18267 (Fdbus_call_method): Handle the case of no returned arguments.
18268
182692007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18270
18271 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18272
182732007-12-31 Magnus Henoch <mange@freemail.hu>
18274
18275 * dbusbind.c (xd_signature): Signature of variant is just "v".
18276
182772007-12-30 Michael Albinus <michael.albinus@gmx.de>
18278
18279 * dbusbind.c: Fix several errors and compiler warnings.
18280 Reported by Tom Tromey <tromey@redhat.com>.
18281 (XD_ERROR, XD_DEBUG_MESSAGE)
18282 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18283 (xd_append_arg): Part for basic D-Bus types rewritten.
18284 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18285 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18286 appropriate.
18287 (xd_read_message): Return Qnil. Don't signal an error; it is not
18288 useful during event reading.
18289 (Fdbus_register_signal): Signal an error if the check for
18290 FUNCTIONP fails.
18291 (Fdbus_register_method): New function. The implementation is not
18292 complete, the call of the function signals an error therefore.
18293 (Fdbus_unregister_object): New function, renamed from
18294 Fdbus_unregister_signal. The initial check signals an error, if
18295 the object is not well formed.
18296
182972007-12-30 Richard Stallman <rms@gnu.org>
18298
18299 * textprop.c (get_char_property_and_overlay):
18300 Signal error if POSITION is out of range in a buffer.
18301
183022007-12-29 Martin Rudalics <rudalics@gmx.at>
18303
18304 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18305 because the original parameters are in pure storage now.
18306
183072007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18308
18309 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18310
183112007-12-22 Eli Zaretskii <eliz@gnu.org>
18312
18313 * callint.c (syms_of_callint) <command-history>: Add reference to
18314 history-length in the doc string.
18315
183162007-12-17 Jason Rumney <jasonr@gnu.org>
18317
18318 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18319 before passing as wParam.
18320
183212007-12-22 Michael Albinus <michael.albinus@gmx.de>
18322
18323 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18324 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18325 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18326 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18327 as number.
18328 (Fdbus_call_method): Fix docstring.
18329
183302007-12-21 Michael Albinus <michael.albinus@gmx.de>
18331
18332 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18333 New macros.
18334 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18335 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18336 Simplify.
18337 (xd_signature): New function.
18338 (xd_append_arg): Compute also signatures. Major rewrite.
18339 (xd_retrieve_arg): Make debug messages friendly.
18340 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18341 Check for signatures of arguments.
18342
183432007-12-19 Michael Albinus <michael.albinus@gmx.de>
18344
18345 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18346 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18347 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18348 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18349 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18350 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18351 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18352 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18353 (xd_retrieve_value): Remove. Functionality included in ...
18354 (xd_append_arg): New function.
18355 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18356
183572007-12-16 Michael Albinus <michael.albinus@gmx.de>
18358
18359 * dbusbind.c (top): Include <stdio.h>.
18360 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18361 dbus_message_new_method_call and dbus_message_new_signal.
18362 (Fdbus_register_signal): Rename unique_name to uname.
18363 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18364 non-existing unique name. Fix typos in matching rule. Return an
18365 object which is useful in Fdbus_unregister_signal.
18366 (Fdbus_unregister_signal): Reimplementation, in order to remove
18367 only the corresponding entry.
18368 (Vdbus_registered_functions_table): Change the order of entries.
18369 Apply these changes in xd_read_message and Fdbus_register_signal.
18370
183712007-12-16 Andreas Schwab <schwab@suse.de>
18372
18373 * fileio.c (Finsert_file_contents): Fix overflow check to not
18374 depend on undefined integer overflow.
18375
183762007-12-14 Jason Rumney <jasonr@gnu.org>
18377
18378 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18379 for characters above 127.
18380
183812007-12-13 Jason Rumney <jasonr@gnu.org>
18382
18383 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18384 before dereferencing array.
18385 (lookup_vk_code): Remove zero comparison.
18386
183872007-12-14 Michael Albinus <michael.albinus@gmx.de>
18388
18389 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18390 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18391 Use `unsigned int' instead of `uint'.
18392 (xd_read_message, Fdbus_register_signal): Split expressions into
18393 multiple lines before operators "&&" and "||", according to the
18394 GNU Coding Standards.
18395
183962007-12-14 Eli Zaretskii <eliz@gnu.org>
18397
18398 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18399
184002007-12-12 Juri Linkov <juri@jurta.org>
18401
18402 * buffer.c (Frename_buffer): In interactive spec replace
18403 `read-buffer' with `read-string' that uses `buffer-name-history'
18404 as history, and the current buffer's name as default.
18405
184062007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18407
18408 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18409 manipulating the backtrace manually.
18410 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18411 (struct backtrace, backtrace_list): Remove.
18412 (command_loop_1): Remove dead var `no_direct'.
18413
18414 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18415 preserve non-built-in buffer-local variables.
18416 (Fkill_all_local_variables): Don't re-create&re-set permanent
18417 buffer-local variables.
18418
184192007-12-09 Juri Linkov <juri@jurta.org>
18420
18421 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18422 Lisp code that uses `read-buffer' with current buffer as default.
18423
184242007-12-08 Michael Albinus <michael.albinus@gmx.de>
18425
18426 * dbusbind.c (xd_read_message): Generate an event for every
18427 registered handler. There might be several handlers registered
18428 for the same signal.
18429 (Fdbus_register_signal): Don't overwrite a registration for the
18430 same signal. Add a new registration if handlers are different.
18431 (Vdbus_registered_functions_table): Rework doc string.
18432
184332007-12-07 Michael Albinus <michael.albinus@gmx.de>
18434
18435 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18436 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18437 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18438 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18439 Unify argument lists.
18440 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18441 arguments and hash table keys. Use unique name for service.
18442 (Fdbus_unregister_signal): Remove checks.
18443 (Vdbus_registered_functions_table): Fix doc string.
18444
184452007-12-05 Magnus Henoch <mange@freemail.hu>
18446
18447 * process.c (make_process): Initialize pty_flag to 0.
18448
184492007-12-05 Jason Rumney <jasonr@gnu.org>
18450
18451 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18452 specified XBMs.
18453
184542007-12-05 Richard Stallman <rms@gnu.org>
18455
18456 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18457
184582007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18459
18460 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18461 New variable.
18462 (mac_try_close_socket) [MAC_OSX]: New function.
18463 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18464 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18465
18466 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18467 Use mac_try_close_socket.
18468
184692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18470
18471 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18472 reloc_base.
18473 (copy_dysymtab): Compute relocation base here.
18474 (rebase_reloc_address) [__ppc64__]: New function.
18475 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18476 changed.
18477
184782007-12-05 Jason Rumney <jasonr@gnu.org>
18479
18480 * w32proc.c (sys_spawnve): Quote args with wildcards.
18481
184822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18483
18484 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18485 __objc_* sections.
18486 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18487
184882007-12-05 Michael Albinus <michael.albinus@gmx.de>
18489
18490 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18491 Move check for Vdbus_registered_functions_table to
18492 xd_read_queued_messages.
18493 (xd_read_queued_messages): Protect xd_read_message calls by
18494 internal_condition_case_1.
18495
184962007-12-04 Michael Albinus <michael.albinus@gmx.de>
18497
18498 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18499 Qdbus_system_bus and Qdbus_session_bus, respectively.
18500 (Vdbus_intern_symbols): Remove.
18501 (Vdbus_registered_functions_table): New hash table.
18502 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18503 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18504 Rewrite in order to manage registered functions by hash table
18505 Vdbus_registered_functions_table.
18506
185072007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18508
18509 * xterm.c: Update URL to Window Manager Specification in comment.
18510
185112007-12-02 Michael Albinus <michael.albinus@gmx.de>
18512
18513 * config.in (HAVE_DBUS): Add.
18514
18515 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18516 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18517 (obj): Add $(DBUS_OBJ).
18518 (LIBES): Add $(DBUS_LIBS).
18519 (dbusbind.o): New target.
18520
18521 * dbusbind.c: New file.
18522
18523 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18524
18525 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18526 (Qdbus_event): New Lisp symbol.
18527 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18528 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18529 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18530
18531 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18532
185332007-12-01 Richard Stallman <rms@gnu.org>
18534
18535 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18536
185372007-11-30 Jason Rumney <jasonr@gnu.org>
18538
18539 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18540 (w32con_reset_terminal_modes): Clear screen buffer.
18541 (w32_face_attributes): Don't use color indexes that are out of range.
18542 Only reverse the default colors.
18543
18544 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18545 WINDOWSNT.
18546
18547 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18548
185492007-11-29 Jason Rumney <jasonr@gnu.org>
18550
18551 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18552 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18553 if the terminal colors are initialized.
18554 (unspecified_fg, unspecified_bg): Remove unused declarations.
18555
185562007-11-29 Andreas Schwab <schwab@suse.de>
18557
18558 * keyboard.c (apply_modifiers): Fix typo.
18559
185602007-11-29 Richard Stallman <rms@gnu.org>
18561
18562 * keymap.c (Fcurrent_local_map): Doc fix.
18563
185642007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18565
18566 * s/gnu-kfreebsd.h: New file.
18567
185682007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18569
18570 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18571 Don't cast redundantly.
18572
18573 * keyboard.c (KEY_TO_CHAR): New macro.
18574 (parse_modifiers, apply_modifiers): Accept integer arguments.
18575 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18576 for chars and symbol keys.
18577 After doing such remapping, apply function-key-map again.
18578
185792007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18580
18581 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18582 compiled anymore.
18583
185842007-11-26 Andreas Schwab <schwab@suse.de>
18585
18586 * process.c (list_processes_1): Fix indentation level of the
18587 command column.
18588
185892007-11-23 Andreas Schwab <schwab@suse.de>
18590
18591 * editfns.c (Fformat): Handle %c specially since it requires the
18592 argument to be of type int.
18593
185942007-11-23 Markus Triska <markus.triska@gmx.at>
18595
18596 * emacs.c (main): Call init_editfns before init_process, since
18597 init_process sets Vprocess_connection_type depending on OS release.
18598
185992007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18600
18601 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18602 (find_symbol_value): Use do_symval_forwarding.
18603
18604 * data.c (set_internal): Set the value in the `cons-cell' (for
18605 Buffer_Local_values) not only for frame-local variables.
18606
186072007-11-22 Andreas Schwab <schwab@suse.de>
18608
18609 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18610 values to sprintf.
18611 * keymap.c (Fsingle_key_description): Likewise.
18612 * print.c (print_object): Likewise.
18613
186142007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18615
18616 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18617 file for image is nil.
18618
186192007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18620
18621 * term.c: Include stdarg.h.
18622 (fatal): Implement using varargs.
18623 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18624
186252007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18626
18627 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18628 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18629 Update call to buffer_slot_type_mismatch.
18630 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18631 (buffer_slot_type_mismatch): Update.
18632 * buffer.c (buffer_local_types): Remove.
18633 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18634 (defvar_per_buffer): Set the type in the buffer_objfwd.
18635
186362007-11-21 Jason Rumney <jasonr@gnu.org>
18637
18638 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18639 CreateFileMapping returns NULL on failure.
18640
186412007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18642
18643 * search.c (Fset_match_data): Remove the `evaporate' feature.
18644 (unwind_set_match_data): Don't use the `evaporate' feature.
18645
186462007-11-21 Jason Rumney <jasonr@gnu.org>
18647
18648 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18649
18650 * w32console.c (w32con_write_glyphs): Remove unused variables.
18651
186522007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18653
18654 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18655
18656 * s/darwin.h (MULTI_KBOARD): Remove.
18657
18658 * macfns.c (x_create_tip_frame, Fx_create_frame)
18659 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18660
186612007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18662
18663 * buffer.c (Fbuffer_local_value): Remove redundant test.
18664 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18665 than in `current-buffer' to match the comment.
18666 Do the swap using swap_in_global_binding.
18667
18668 * data.c (store_symval_forwarding, set_internal):
18669 * eval.c (specbind): Remove dead code.
18670
18671 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18672 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18673 Since we do not want to see internal Lisp_*fwd objects here.
18674
186752007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18676
18677 * sysdep.c (init_system_name): Use getaddrinfo if available.
18678
18679 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18680 (x_scroll_bar_note_movement): start, end, with, height in struct
18681 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18682
186832007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18684
18685 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18686
186872007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18688
18689 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18690 This undoes Richard's change of 14-Oct-2002.
18691
18692 * alloc.c (allocate_other_vector):
18693 * lisp.h (allocate_other_vector): Remove.
18694
18695 * window.c (struct save_window_data): Move non-lisp data to the end
18696 and make it `int' rather than Lisp_Object.
18697 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18698 Done wrap/unwrap integer values.
18699 (Fset_window_configuration, compare_window_configurations):
18700 Update use of fields to their new types.
18701
18702 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18703 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18704 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18705 (SET_SCROLL_BAR_X_WINDOW): Remove.
18706 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18707 Access the new x_window field directly.
18708 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18709 Don't wrap/unwrap integers into Lisp_Objects.
18710 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18711 (x_scroll_bar_report_motion):
18712 Don't wrap/unwrap integers into Lisp_Objects.
18713 (x_term_init): Use SDATA.
18714 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18715 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18716 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18717 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18718 * xfns.c (x_set_background_color):
18719 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18720 Access the new x_window field directly.
18721
18722 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18723 (allocate_pseudovector): Make non-static.
18724
18725 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18726 (allocate_pseudovector): Declare.
18727 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18728
187292007-11-15 Andreas Schwab <schwab@suse.de>
18730
18731 * editfns.c (Fformat): Correctly format EMACS_INT values.
18732 Also take precision into account when formatting an integer.
18733
18734 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18735
187362007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18737
18738 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18739 (syms_of_keyboard): Defsubr it.
18740
18741 * data.c (swap_in_global_binding): Fix longstanding bug where
18742 store_symval_forwarding was not called with the right second argument,
18743 thus causing objfwd-ing from being dropped.
18744
187452007-11-14 Juanma Barranquero <lekktu@gmail.com>
18746
18747 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18748 (Fx_display_pixel_height, Fx_display_planes)
18749 (Fx_display_color_cells, Fx_server_max_request_size)
18750 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18751 (Fx_display_visual_class, Fx_display_save_under):
18752 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18753 (Fx_display_pixel_height, Fx_display_planes)
18754 (Fx_display_color_cells, Fx_server_max_request_size)
18755 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18756 (Fx_display_mm_height, Fx_display_mm_width)
18757 (Fx_display_backing_store, Fx_display_visual_class)
18758 (Fw32_select_font, Fx_display_save_under):
18759 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18760 (Fx_display_pixel_height, Fx_display_planes)
18761 (Fx_display_color_cells, Fx_server_max_request_size)
18762 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18763 (Fx_display_save_under): Fix typos in docstrings.
18764
187652007-11-14 Juanma Barranquero <lekktu@gmail.com>
18766
18767 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18768 corresponding to deleted entries; they are an implementation detail.
18769 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18770 Remove variables.
18771 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18772 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18773 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18774 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18775 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18776 (Fw32_define_rgb_color, Fw32_load_color_file)
18777 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18778 Fix typos in docstrings.
18779 (Fx_server_version): Reflow docstring.
18780 (Fw32_shell_execute): Doc fixes.
18781
187822007-11-13 Juanma Barranquero <lekktu@gmail.com>
18783
18784 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18785 if w32_parse_hot_key returned nil.
18786
187872007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18790
187912007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18792
aac0c6e3
MR
18793 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18794
18795 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18796
18797 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18798 Remove W32_SCROLL_BAR_CLICK_EVENT.
18799
18800 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18801 Add MULTIMEDIA_KEY_EVENT.
18802
18803 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18804 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18805 (make_lispy_event) [WINDOWSNT]: Use it to translate
18806 MULTIMEDIA_KEY_EVENT.
18807
18808 * w32term.h (WM_APPCOMMAND): Define if not already.
18809 (GET_APPCOMMAND_LPARAM): Likewise.
18810
18811 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18812 WM_APPCOMMAND.
18813
18814 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18815 (syms_of_w32fns): Export and initialize it.
18816 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18817
188182007-11-09 Chong Yidong <cyd@stupidchicken.com>
18819
18820 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18821 twice.
18822
18823 * xdisp.c (handle_face_prop): Fix last change.
18824
188252007-11-09 Richard Stallman <rms@gnu.org>
18826
18827 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18828 not just for after-strings and before-strings.
18829 Call face_for_overlay_string and pass the overlay to it.
18830 (handle_display_prop): Determine whether property came from an overlay.
18831 Pass OVERLAY arg to handle_single_display_spec.
18832 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18833 (load_overlay_strings): Fill in it->string_overlays.
18834 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18835
18836 * xfaces.c (face_for_overlay_string): Function renamed from
18837 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18838
18839 * dispextern.h (struct it): New elt string_overlays.
18840 New elt from_overlay, also in stack.
18841 Rearrange a few elements.
18842 (face_for_overlay_string): Decl renamed from
18843 face_at_buffer_position_no_overlays, and add argument.
18844
188452007-11-09 Richard Stallman <rms@gnu.org>
18846
18847 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18848 to get the base face for an overlay string.
18849
18850 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18851
18852 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18853
18854 * xdisp.c (handle_stop): Move some code out of loop.
18855
188562007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18857
18858 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18859 Fix conversion from Lisp object to ATSUFontID.
18860
188612007-11-09 Jason Rumney <jasonr@gnu.org>
18862
18863 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18864
188652007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18866
18867 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18868 Don't assume regions are aligned to page boundary.
18869 (print_load_command_name): Add LC_UUID if defined.
18870
188712007-11-09 Richard Stallman <rms@gnu.org>
18872
18873 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18874
188752007-11-07 Jason Rumney <jasonr@gnu.org>
18876
18877 * s/windows95.h: Remove.
18878
188792007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18880
18881 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18882 abort with a message on unhandled store_type values.
18883
188842007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18885
18886 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18887 Remove HAVE_X11R5 and HAVE_X11R4.
18888
188892007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18890
18891 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18892
188932007-11-01 Johan Bockgård <bojohan@gnu.org>
18894
18895 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18896 Don't set s->stippled_p here, since it has already been set by
18897 x_set_glyph_string_gc from x_draw_glyph_string.
18898
188992007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18900
18901 * sunfns.c: Remove file.
18902
18903 * m/sun386.h:
18904 * m/sun2.h:
18905 * m/sparc.h: Remove Sun windows code.
18906
189072007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18908
18909 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18910 (init_keyboard): Set current_kboard's window-system to nil.
18911 (tty_read_avail_input): Typo.
18912 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18913
189142007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18915
18916 * s/usg5-4.h:
18917 * s/usg5-3.h:
18918 * s/ptx.h:
18919 * m/is386.h:
18920 * m/ibmps2-aix.h:
18921 * Makefile.in: Remove all mentions of X10.
18922
18923 * dispnew.c (syms_of_display): Don't mention version 10.
18924
189252007-10-28 Juanma Barranquero <lekktu@gmail.com>
18926
18927 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18928 ($(BLD)/abbrev.$(O)): Remove.
18929
189302007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18931
18932 Rewrite abbrev.c in Elisp.
18933 * image.c (Qcount): Don't declare as extern.
18934 (syms_of_image): Initialize and staticpro `Qcount'.
18935 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18936 * emacs.c (main): Don't call syms_of_abbrev.
18937 * Makefile.in (obj): Remove abbrev.o.
18938 (abbrev.o): Remove.
18939 * abbrev.c: Remove.
18940
189412007-10-26 Martin Rudalics <rudalics@gmx.at>
18942
18943 * window.c (window_min_size_2): Don't count header-line.
18944
189452007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18946
18947 * frame.h (struct frame): Move all bit fields after the first bit
18948 field to take advantage of the available space. Group all the
18949 chars together to reduce wasted space due to padding.
18950
189512007-10-26 Juanma Barranquero <lekktu@gmail.com>
18952
18953 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18954
18955 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18956 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18957 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18958 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18959 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18960 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18961 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18962 (last_marked, mark_object_loop_halt): Make static.
18963
18964 * frame.c (syms_of_frame) <delete-frame-functions>:
18965 Fix typo in docstring.
18966
189672007-10-25 Juanma Barranquero <lekktu@gmail.com>
18968
18969 * w32.c (init_environment): Fix tiny memory leak.
18970 (w32_get_resource): Remove unused variable `ok'.
18971
189722007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18973
18974 Make `window-system' into a keyboard-local variable (rather than
18975 frame-local as done originally by multi-tty).
18976
18977 * keyboard.h (struct kboard): Add Vwindow_system.
18978 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18979 (mark_kboards): Mark Vwindow_system.
18980
18981 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18982 (init_display): Don't set the obsolete `window-system' frame-param.
18983
18984 * xterm.c (x_term_init):
18985 * w32term.c (w32_create_terminal):
18986 * term.c (init_tty): Set Vwindow_system.
18987 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18988 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18989
18990 * xfns.c (Fx_create_frame, x_create_tip_frame):
18991 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18992 * macfns.c (Fx_create_frame):
18993 Don't set the obsolete `window-system' frame-param.
18994
18995 * frame.h (Qwindow_system): Remove.
18996 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18997 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18998
189992007-10-24 Richard Stallman <rms@gnu.org>
19000
19001 * frame.c (x_figure_window_size): For fullscreen case,
19002 set USPosition | PPosition without clobbering rest of window_prompting.
19003
19004 * keyboard.c (Fcurrent_idle_time): Doc fix.
19005
19006 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19007
190082007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19009
19010 * process.c (unwind_request_sigio): Only define if __ultrix__.
19011
19012 * callproc.c (child_setup): Remove spurious *.
19013
19014 * lisp.h (Fget_text_property): Declare.
19015 (have_menus_p): Declare it here rather than in sys-dep header files.
19016 * macterm.h (have_menus_p):
19017 * msdos.h (have_menus_p):
19018 * xterm.h (have_menus_p): Remove.
19019
19020 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19021 (Fmake_variable_frame_local): Just check the variable's const-ness
19022 rather than checking nil or t.
19023
190242007-10-22 Jason Rumney <jasonr@gnu.org>
19025
19026 * w32fns.c: Include math.h.
19027 (w32_abort): Declaration moved to nt/config.nt.
19028
19029 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19030 (abort): Redefinition moved to nt/config.nt.
19031
19032 * m/windowsnt.h: Remove.
19033
190342007-10-22 Juanma Barranquero <lekktu@gmail.com>
19035
19036 * emacs.c (Fdump_emacs): Fix typo in message.
19037 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19038 <installation-directory>: Reflow docstring.
19039
190402007-10-22 Juri Linkov <juri@jurta.org>
19041
19042 * minibuf.c: Allow minibuffer default to be a list of default values.
19043 With empty input use the first element of this list as returned default.
19044 (string_to_object)
19045 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19046 (read_minibuf): If defalt is cons, set histstring to its car.
19047 (Fread_string): If default_value is cons, set val to its car.
19048 (Fread_buffer): If def is cons, use its car.
19049 (Fcompleting_read): If defalt is cons, set val to its car.
19050
190512007-10-21 Michael Albinus <michael.albinus@gmx.de>
19052
19053 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19054
190552007-10-20 Juanma Barranquero <lekktu@gmail.com>
19056
19057 * doc.c (Fdocumentation): Check for advice in all cases.
19058
190592007-10-19 Chong Yidong <cyd@stupidchicken.com>
19060
19061 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19062
190632007-10-19 Richard Stallman <rms@gnu.org>
19064
19065 * doc.c (Fdocumentation): Check for and handle an advised function.
19066
190672007-10-19 Juanma Barranquero <lekktu@gmail.com>
19068
19069 * process.c (Fset_process_filter): Doc fix.
19070
190712007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19072
19073 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19074 which caused key-translation-map to applied repeatedly (thus breaking
19075 double-mode).
19076
190772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19078
19079 * xselect.c (x_own_selection, x_handle_selection_clear)
19080 (x_clear_frame_selections):
19081 * w32menu.c (list_of_panes, list_of_items):
19082 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19083 * textprop.c (validate_plist, interval_has_all_properties)
19084 (interval_has_some_properties, interval_has_some_properties_list)
19085 (add_properties, text_property_list):
19086 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19087 * minibuf.c (Fassoc_string):
19088 * macselect.c (x_own_selection, x_clear_frame_selections)
19089 (Fx_disown_selection_internal):
19090 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19091 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19092
190932007-10-17 Chong Yidong <cyd@stupidchicken.com>
19094
19095 * process.c: Link to libs for calling res_init() if available.
19096 (Fmake_network_process): Call res_init() before getaddrinfo or
19097 gethostbyname, if possible.
19098
190992007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19100
19101 * lread.c (read1): Set pvectype for char_tables.
19102
19103 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19104 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19105 Add type checks.
19106 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19107
19108 * alloc.c (free_misc): Use XMISCTYPE.
19109 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19110
191112007-10-17 Glenn Morris <rgm@gnu.org>
19112
19113 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19114 (syms_of_minibuf): Add Qcompletion_ignore_case.
19115 * dired.c (Qcompletion_ignore_case): Change to external.
19116 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19117 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19118 (Fread_file_name): Use it rather than intern'ing.
19119
19120 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19121 (Fread_coding_system): Ignore case of user input.
19122
191232007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19124
19125 * xdisp.c (handle_display_prop): Ignore display specs after
19126 replacing one when string text is being replaced.
19127 (handle_single_display_spec): Pretend as if characters with display
19128 property haven't been consumed only when buffer text is being replaced.
19129
191302007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19131
19132 * xfns.c (Fx_create_frame, Fx_display_list):
19133 * window.c (window_fixed_size_p, enlarge_window)
19134 (shrink_window_lowest_first):
19135 * macterm.c (init_font_name_table):
19136 * macfns.c (Fx_create_frame, Fx_display_list):
19137 * lread.c (close_load_descs):
19138 * keyboard.c (read_char_x_menu_prompt):
19139 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19140 * coding.c (code_convert_region_unwind): Test the type of an object
19141 rather than just !NILP before extracting data from it.
19142
19143 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19144
19145 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19146 (XMISCANY): New macro.
19147 (XMISCTYPE): Use it.
19148 (struct Lisp_Misc_Any): New type.
19149 (union Lisp_Misc): Use it.
19150 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19151 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19152 (find_symbol_value, set_internal, default_value, Fset_default)
19153 (Fmake_variable_buffer_local, Fmake_local_variable)
19154 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19155 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19156 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19157 * alloc.c (allocate_buffer): Set the size and tag.
19158 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19159 Use XMISCANY.
19160 (die): Follow the GNU convention for error messages.
19161 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19162 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19163 tag any more.
19164 (set_buffer_internal_1):
19165 * frame.c (store_frame_param):
19166 * eval.c (specbind):
19167 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19168
19169 * doc.c (Fsnarf_documentation): Simplify.
19170
191712007-10-14 Juanma Barranquero <lekktu@gmail.com>
19172
19173 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19174 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19175
191762007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19177
19178 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19179
191802007-10-14 Juanma Barranquero <lekktu@gmail.com>
19181
19182 * eval.c (do_autoload): Don't save autoloads.
19183
19184 * data.c (Ffset): Save autoload of the function being set.
19185
191862007-10-07 John Paul Wallington <jpw@pobox.com>
19187
19188 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19189 parameter before setting up faces.
19190
191912007-10-13 Eli Zaretskii <eliz@gnu.org>
19192
19193 * ccl.c (Fregister_code_conversion_map):
19194 * keyboard.c (append_tool_bar_item): Reformat last change.
19195
19196 * lisp.h (eabs): Rename from `abs'. All callers changed.
19197
191982007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19199
19200 * buffer.c (add_overlay_mod_hooklist):
19201 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19202 * fontset.c (make_fontset):
19203 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19204 (append_tool_bar_item):
19205 * macmenu.c (grow_menu_items):
19206 * w32menu.c (grow_menu_items):
19207 * xmenu.c (grow_menu_items): Use larger_vector.
19208
192092007-10-13 Eli Zaretskii <eliz@gnu.org>
19210
19211 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19212 selected frame'' on MSDOS).
19213
192142007-10-12 Martin Rudalics <rudalics@gmx.at>
19215
19216 * frame.c (Qexplicit_name): New variable.
19217 (x_report_frame_params): Report it in parameter alist.
19218 (syms_of_frame): Intern and staticpro it.
19219
192202007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19221
19222 * macfns.c (x_create_tip_frame): Set terminal for frame.
19223
192242007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19225
19226 * frame.c (Qenvironment): Remove.
19227 (syms_of_frame) <Qenvironment>: Don't initialize.
19228 (Fdelete_frame): Don't treat the `environment' param specially.
19229 * frame.h (Qenvironment): Don't declare.
19230 * callproc.c (set_initial_environment): Don't set unused frame param.
19231
19232 * frame.c (Fframe_with_environment): Remove.
19233 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19234
19235 * lisp.h (Fframe_with_environment): Don't declare.
19236
192372007-10-10 Juanma Barranquero <lekktu@gmail.com>
19238
19239 * indent.c (indent_tabs_mode, last_known_column)
19240 (last_known_column_modified): Make static.
19241 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19242
192432007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19244
19245 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19246
192472007-10-09 Jason Rumney <jasonr@gnu.org>
19248
19249 * w32term.c (x_set_window_size): Disable code that attempts to tell
19250 Lisp code about a size change before it actually happens.
19251
192522007-10-09 Richard Stallman <rms@gnu.org>
19253
19254 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19255 return HANDLED_RETURN.
19256
192572007-10-08 Martin Rudalics <rudalics@gmx.at>
19258
19259 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19260 when there's an unread command event.
19261
19262 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19263 window autoselection act appropriately when leaving selected frame.
19264 (syms_of_frame): Initialize focus_follows_mouse.
19265 * frame.h (focus_follows_mouse): Extern it.
19266 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19267 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19268 * msdos.c (dos_rawgetc): Likewise.
19269 * w32term.c (w32_read_socket): Likewise.
19270 * xterm.c (handle_one_xevent): Likewise.
19271 * xdisp.c (syms_of_xdisp): In doc-string of
19272 mouse-autoselect-window mention focus-follows-mouse.
19273
192742007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19275
19276 * macterm.c (mac_load_query_font): Fix missing return value.
19277 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19278 Add BLOCK_INPUT.
19279
192802007-10-08 Richard Stallman <rms@gnu.org>
19281
19282 * xdisp.c (get_window_cursor_type): Implement documented behavior
19283 for cursor-in-non-selected-windows = t.
19284
192852007-10-08 Jason Rumney <jasonr@gnu.org>
19286
19287 * w32.c (w32_get_resource): Always close registry keys.
19288
192892007-10-08 Jason Rumney <jasonr@gnu.org>
19290
19291 * makefile.w32-in (LIBS): Add COMCTL32.
19292
19293 * w32fns.c (globals_of_w32fns): Init common controls.
19294
192952007-10-08 Richard Stallman <rms@gnu.org>
19296
19297 * image.c (our_memory_buffer): Rename from omfib_buffer.
19298
192992007-10-08 Richard Stallman <rms@gnu.org>
19300
19301 * buffer.c (Foverlays_at): Doc fix.
19302
193032007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19304
19305 * fns.c (Fplist_put): Preserve uneven tail data.
19306
193072007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19308
19309 * termhooks.h (enum event_kind): Remove trailing comma.
19310
19311 * frame.h (enum): Remove trailing comma.
19312
193132007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19314
19315 * w32proc.c (delete_child): Don't terminate threads of zombies.
19316
193172007-10-08 Martin Rudalics <rudalics@gmx.at>
19318
19319 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19320
19321 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19322 last-repeatable-command.
19323 (init_kboard): Initialize Vlast_repeatable_command.
19324 (command_loop_1): Set it to real_this_command unless that was
19325 bound to an input event.
19326 (mark_kboards): Mark it.
19327
193282007-10-08 Richard Stallman <rms@gnu.org>
19329
19330 * eval.c (condition-case): Doc fix.
19331
193322007-10-08 Masatake YAMATO <jet@gyve.org>
19333
19334 * xfaces.c (tty_supports_face_attributes_p): Fix code
19335 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19336 was copied and not edited.
19337
193382007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19339
19340 Add new `input-decode-map' keymap and use it for terminal
19341 escape sequences.
19342 * keyboard.h (struct kboard): Add Vinput_decode_map.
19343 Remove Vlocal_key_translation_map.
19344 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19345 (init_kboard): Init input-decode-map.
19346 Replace local-key-translation-map back with key-translation-map.
19347 (syms_of_keyboard): Declare input-decode-map.
19348 Remove local-key-translation-map. Update docstrings.
19349 (mark_kboards): Mark Vinput_decode_map.
19350 Don't mark Vlocal_key_translation_map.
19351 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19352 Replace local-key-translation-map back with key-translation-map.
19353 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19354 Bind in input-decode-map rather than function-key-map.
19355
19356 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19357 This was made redundant by the previous introduction of XSETPVECTYPE.
19358
193592007-10-09 Richard Stallman <rms@gnu.org>
19360
19361 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19362
193632007-09-29 Richard Stallman <rms@gnu.org>
19364
19365 * eval.c (internal_condition_case_2, internal_condition_case_1)
19366 (internal_condition_case): Reenable abort if x_catching_errors ()
19367 to see if that really happens and why.
19368
193692007-10-06 Andreas Schwab <schwab@suse.de>
19370
19371 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19372
193732007-10-04 Juanma Barranquero <lekktu@gmail.com>
19374
19375 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19376
193772007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19378
19379 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19380
193812007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19382
19383 * window.h (struct window):
19384 * window.c (struct save_window_data, struct saved_window):
19385 * termhooks.h (struct terminal):
19386 * process.h (struct Lisp_Process):
19387 * frame.h (struct frame):
19388 * buffer.h (struct buffer):
19389 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19390 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19391 The size field of (pseudo)vectors is now unsigned.
19392 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19393
19394 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19395 Turn `count' into an integer.
19396
19397 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19398 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19399 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19400 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19401 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19402
19403 * alloc.c (allocate_pseudovector): New fun.
19404 (ALLOCATE_PSEUDOVECTOR): New macro.
19405 (allocate_window, allocate_terminal, allocate_frame)
19406 (allocate_process): Use it.
19407 (mark_vectorlike): New function.
19408 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19409 (mark_terminals): Use it.
19410 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19411 (Fmake_byte_code): Use XSETPVECTYPE.
19412
19413 * frame.c (Fframe_parameters): Minor simplification.
19414
19415 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19416
19417 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19418
19419 * buffer.c (Fget_buffer_create, init_buffer_once):
19420 * lread.c (defsubr):
19421 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19422
19423 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19424 defined differently in the m/*.h files.
19425 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19426 (XSETPVECTYPE): New macro.
19427 (XSETPSEUDOVECTOR): Use it.
19428
19429 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19430 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19431
19432 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19433 * lread.c (defvar_per_buffer):
19434 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19435
19436 * window.c (candidate_window_p): Only consider as visible frames that
19437 are on the same terminal.
19438
19439 * m/ibms390x.h (MARKBIT): Remove unused macro.
19440
194412007-10-01 Juanma Barranquero <lekktu@gmail.com>
19442
19443 * lread.c (Fload): Fix typo in docstring.
19444
194452007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19446
19447 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19448 of a non-zero value can't yield zero.
19449
194502007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19451
19452 * term.c (term_clear_mouse_face, term_mouse_highlight)
19453 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19454
19455 * print.c (safe_debug_print): Use XHASH.
19456
19457 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19458 Lisp elements such as tags.
19459 (XHASH): New macro.
19460 (EQ): Use it.
19461 (SREF, SSET, STRING_COPYIN): Use SDATA.
19462 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19463
19464 * alloc.c (mark_terminal): Remove left-over declaration.
19465 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19466 (allocate_vectorlike): Remove type argument. Adjust callers.
19467 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19468 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19469
19470 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19471 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19472 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19473 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19474 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19475 Use them.
19476
19477 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19478 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19479 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19480
194812007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19482
19483 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19484 loaded by default.
19485
194862007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19487
19488 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19489 on this tty.
19490 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19491
19492 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19493 Update all users.
19494 (handle_one_term_event): Use Gpm_DrawPointer.
19495 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19496 Signal errors instead of returning nil. Always return nil.
19497 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19498 Make it a noop if gpm-mouse was not activated.
19499 (syms_of_term): Update names.
19500
195012007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19502
19503 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19504 (init_sys_modes): Check that gpm_tty is the current tty.
19505
19506 * alloc.c (allocate_terminal): Set the vector size to only count the
19507 lisp fields. Initialize those to nil.
19508 (mark_object): Don't treat terminals specially.
19509 (mark_terminal): Remove.
19510 (mark_terminals): Use mark_object instead.
19511
19512 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19513 the GC to the beginning.
19514
19515 * indent.h:
19516 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19517
19518 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19519
195202007-09-25 Jason Rumney <jasonr@gnu.org>
19521
19522 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19523
19524 * w32console.c (create_w32cons_output): Remove.
19525
19526 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19527
19528 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19529 (reset_sys_modes): Use reset_terminal_modes_hook.
19530
195312007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19532
19533 * eval.c (do_autoload): Don't output any message.
19534
195352007-09-24 Juri Linkov <juri@jurta.org>
19536
19537 * emacs.c (standard_args): Change priority of "--no-splash"
19538 from 40 to 3. Add "--no-desktop" with the same priority.
19539
195402007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19541
19542 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19543 and optimize the case where they are all 1.
19544
195452007-09-23 Johannes Weiner <hannes@saeurebad.de>
19546
19547 * lisp.h (abs): Define if not defined.
19548 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19549 Don't define `abs', since it's defined in lisp.h.
19550
195512007-09-22 Eli Zaretskii <eliz@gnu.org>
19552
19553 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19554 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19555 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19556 (init_tty): Use DEV_TTY instead of "/dev/tty".
19557 [WINDOWSNT]: No need to protect from NAME arg being null.
19558
195592007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19560
19561 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19562 up the tty state.
19563
195642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19565
19566 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19567 (gpm_tty): Change its type.
19568 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19569 (gpm_tty): Change its type and initialize it.
19570 (Fterm_open_connection): Check the frame is indeed a tty.
19571 Use the new gpm_tty.
19572 (Fterm_close_connection): Use the new gpm_tty.
19573 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19574 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19575
195762007-09-21 Juanma Barranquero <lekktu@gmail.com>
19577
19578 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19579 underline_color, to draw strike-through.
19580
195812007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19582
19583 * lisp.h (allocate_terminal): Declare.
19584
19585 * window.c (candidate_window_p): Consider frames that are being placed
19586 by the user as somewhere between visible and iconified.
19587 (window_loop): Prefer windows on the current frame.
19588 (Fselect_window): Move the use of select-frame to the beginning so we
19589 can just delegate all the work (it'll call us back anyway).
19590
19591 * frame.c (Qdisplay_environment_variable):
19592 * frame.h (Qdisplay_environment_variable): Delete.
19593
19594 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19595 of the first arg, since that value may be a union.
19596
19597 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19598 parameter rather than Qdisplay_environment_variable. If all else
19599 fails, look for DISPLAY in initial-environment.
19600
196012007-09-21 Glenn Morris <rgm@gnu.org>
19602
19603 * Makefile.in (emacstool): Remove target.
19604 (lisp, shortlisp): Remove termdev.elc.
19605
196062007-09-21 Markus Triska <markus.triska@gmx.at>
19607
19608 * xterm.c (x_delete_display): Compile session management conditionally.
19609
196102007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19611
19612 * callproc.c (getenv_internal_1): New function.
19613 (getenv_internal): Use it.
19614 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19615
19616 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19617 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19618 (Fset_terminal_parameter): Work with dead terminals as well.
19619 (Fmodify_terminal_parameters): Remove.
19620
19621 * terminal.c (get_terminal): Handle terminals.
19622 Make sure the terminal returned is live.
19623 (create_terminal): Use allocate_terminal.
19624 (mark_terminals): Move to alloc.c.
19625 (delete_terminal): Use terminal->name as liveness status.
19626 NULL out fields after freeing their contents.
19627 Don't deallocate the object.
19628 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19629 rather than an int.
19630 (Fterminal_live_p): Accept non-integer arguments.
19631 (Fterminal_list): Return terminal objects rather than an ints.
19632
19633 * alloc.c (enum mem_type): New member for `terminal' objects.
19634 (allocate_terminal): New function.
19635 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19636 Handle terminals.
19637 (mark_terminal): New fun.
19638 (mark_terminals): Move from terminal.c.
19639
19640 * term.c (get_tty_terminal): Don't treat output_initial specially.
19641 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19642 (delete_tty): Use terminal->name as liveness status.
19643
19644 * termhooks.h (struct terminal): Make it into a pseudovector.
19645 Remove `deleted' replaced by checking `name's nullness.
19646
19647 * print.c (print_object): Handle terminals.
19648
19649 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19650 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19651
19652 * frame.c (make_terminal_frame):
19653 * keyboard.c (tty_read_avail_input):
19654 * w32term.c (x_delete_terminal):
19655 * xfns.c (Fx_create_frame, x_create_tip_frame):
19656 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19657
196582007-09-20 Glenn Morris <rgm@gnu.org>
19659
19660 * process.c (Fmake_network_process): Doc fix.
19661
196622007-09-19 Jason Rumney <jasonr@gnu.org>
19663
19664 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19665
196662007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19667
19668 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19669 Fix a C warning regarding variable constness.
19670
19671 * xterm.c (handle_one_xevent): Fix a C warning.
19672
196732007-09-18 Jason Rumney <jasonr@gnu.org>
19674
19675 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19676
196772007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19678
19679 * gtkutil.c (gdpy_def): New variable.
19680 (xg_initialize): Initialize gdpy_def.
19681 (xg_display_close): If no other display exists, set gdpy_def to a
19682 new connection.
19683
196842007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19685
19686 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19687 when we have no file name for the icon.
19688 (xg_tool_bar_expose_callback): Remove.
19689 (xg_create_tool_bar): Don't connect expose signal to
19690 xg_tool_bar_expose_callback.
19691 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19692
196932007-09-16 Andreas Schwab <schwab@suse.de>
19694
19695 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19696 values instead of zapping them.
19697
196982007-09-14 Glenn Morris <rgm@gnu.org>
19699
19700 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19701 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19702 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19703 scope and rename to omfib_buffer for clarity.
19704 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19705
197062007-09-14 Kenichi Handa <handa@m17n.org>
19707
19708 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19709
197102007-09-13 Jason Rumney <jasonr@gnu.org>
19711
19712 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19713
19714 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19715
19716 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19717 (mac_term_init): Call here instead, passing rif.
19718
197192007-09-13 Glenn Morris <rgm@gnu.org>
19720
19721 * s/hpux.h: No longer define `static' as nothing.
19722
197232007-09-13 Johan Bockgård <bojohan@gnu.org>
19724
19725 * callint.c (Fcall_interactively): Remove unused var `fun'.
19726
197272007-09-12 Romain Francoise <romain@orebokech.com>
19728
19729 * window.c (prefer_window_split_horizontally, display_buffer):
19730 Revert 2007-09-08 change.
19731
197322007-09-12 Glenn Morris <rgm@gnu.org>
19733
19734 * alloca.c: Remove file.
19735 * Makefile.in (alloca): Do not undef.
19736 (allocaobj, alloca.o): Remove.
19737 (otherobj): Remove allocaobj.
19738 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19739 * regex.c (C_ALLOCA): Remove all references and code that was only
19740 used when this was defined.
19741 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19742 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19743 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19744
19745 * Makefile.in (SOURCES, unlock, relock): Delete.
19746
19747 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19748 (menu_grab_callback): All uses changed.
19749
19750 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19751 (x_reply_selection_request): All uses changed.
19752
197532007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19754
19755 * lread.c (load_warn_old_style_backquotes): Change message to look
19756 better when it appears in the middle of byte-compiler messages.
19757
197582007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19759
19760 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19761
19762 * xterm.c (x_create_terminal): Add comment.
19763
19764 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19765
197662007-09-10 Richard Stallman <rms@gnu.org>
19767
19768 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19769
197702007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19771
19772 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19773 (DEFUN): Document `intspec', use it instead of `prompt'.
19774
19775 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19776
19777 * data.c (Finteractive_form): If the interactive specification starts
19778 with a `(', use it as a Lisp form.
19779
19780 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19781 name and file modes.
19782
19783 * callint.c (Fcall_interactively): Comment fixes.
19784
197852007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19786
19787 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19788 and compiled functions.
19789
197902007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19791
19792 * window.c (prefer_window_split_horizontally): New variable.
19793 (display_buffer): Consider splitting window horizontally depending
19794 on prefer_window_split_horizontally.
19795
197962007-09-08 Eli Zaretskii <eliz@gnu.org>
19797
19798 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19799
198002007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19801
19802 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19803
19804 * frame.c (x_set_frame_parameters): Check number is positive before
19805 using XFASTINT.
19806
19807 * window.c (freeze_window_start): Don't presume selected_window holds
19808 a window object.
19809 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19810
198112007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19812
19813 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19814
198152007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19816
19817 * window.c (Vsplit_window_preferred_function): New var.
19818 (Fdisplay_buffer): Use it.
19819 (syms_of_window): Export, and initialize it.
19820
198212007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19822
19823 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19824
198252007-09-06 Glenn Morris <rgm@gnu.org>
19826
19827 * gtkutil.c (menu_grab_callback) <cnt>:
19828 * xselect.c (x_reply_selection_request) <cnt>: Move static
19829 variable to file scope.
19830
198312007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19832
19833 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19834 consistent values of selected_frame and selected_window.
19835
198362007-09-04 Jason Rumney <jasonr@gnu.org>
19837
19838 * w32console.c (initialize_w32_display): Zero unused hooks.
19839
198402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19841
19842 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19843 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19844
198452007-09-04 Jason Rumney <jasonr@gnu.org>
19846
19847 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19848 in w32console.c. Set up input. Remove XXX comments that have been
19849 confirmed as correct.
19850
19851 * s/ms-w32.h (MULTI_KBOARD): Define.
19852
19853 * w32console.c (one_and_only_w32cons): Remove.
19854 (initialize_w32_display): Take terminal argument.
19855
19856 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19857 initialize_w32_display.
19858 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19859
19860 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19861
19862 * keyboard.c (discard_mouse_events): Discard it.
19863 (make_lispy_event): Translate it to a lisp event.
19864 (lispy_wheel_names): Add wheel-left and right events.
19865 (syms_of_keyboard): Enlarge wheel_syms.
19866
19867 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19868 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19869
19870 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19871
19872 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19873 from WM_MOUSEHWHEEL.
19874 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19875
19876 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19877 terminal.
19878
19879 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19880 keyboard for the terminal.
19881
198822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19883
19884 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19885 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19886 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19887 and resume-tty-function to resume-tty-hook.
19888 (Fsuspend_tty, Fresume_tty): Use new names.
19889
198902007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19891
19892 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19893 if it starts with "n:".
19894
198952007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19896
19897 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19898
198992007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19900
19901 * frame.h:
19902 * frame.c (Qterm_environment_variable): Remove.
19903 (syms_of_frame): Don't init and staticpro it.
19904
19905 * callproc.c (getenv_internal): Remove special case for $TERM.
19906
19907 * callproc.c (Vinitial_environment): New variable.
19908 (set_initial_environment): Initialize it.
19909 (syms_of_callproc): Declare it.
19910 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19911 TERM under which a process runs is never related to the TERM in which
19912 Emacs is running.
19913
199142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19915
19916 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19917 * s/darwin.h: ... do it here.
19918
199192007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19920
19921 * lisp.h (set_initial_environment): Rename from set_global_environment.
19922
19923 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19924 removed by mistake on the multi-tty branch.
19925
19926 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19927 (Fmodify_frame_parameters): Return a value.
19928
19929 * image.c (png_load): Comment-out var only used in commented-out code.
19930
19931 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19932 before passing it to mark_object.
19933
19934 * xfaces.c (internal_resolve_face_name): Return a value.
19935 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19936
19937 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19938 (x_icon): Comment-out var only used in commented-out code.
19939
199402007-08-29 Romain Francoise <romain@orebokech.com>
19941
19942 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19943 QUIT hasn't been provided.
19944
199452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19946
19947 * callproc.c (child_setup, getenv_internal): Use the
19948 display-environment-variable and term-environment-variable frame params.
19949 (set_initial_environment): Initialise Vprocess_environment.
19950
19951 * config.in: Disable multi-keyboard support on a mac.
19952
19953 * frame.c (Qterm_environment_variable)
19954 (Qdisplay_environment_variable): New variables.
19955 (syms_of_frame): Intern and staticpro them.
19956 (Fmake_terminal_frame): Disable output method test.
19957
19958 * frame.h: Declare them here.
19959
19960 * macfns.c (x_set_mouse_color): Get rif from the frame.
19961 (x_set_tool_bar_lines): Don't use updating_frame.
19962 (mac_window): Add 2 new parameters for consistency with other systems.
19963 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19964 frame parameters following what is done in X11 and w32. Don't use
19965 FRAME_MAC_DISPLAY_INFO.
19966 (Fx_open_connection, start_hourglass): Remove window-system check.
19967 (x_create_tip_frame): Get the keyboard from the terminal.
19968
19969 * macmenu.c: Reorder includes.
19970 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19971
19972 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19973 terminal parameter.
19974 (x_clear_frame): Add a frame parameter.
19975 (note_mouse_movement): Get rif from the frame.
19976 (mac_term_init): Initialize the terminal.
19977 (mac_initialize): Make static and move terminal initialization ...
19978 (mac_create_terminal): ... to this new function.
19979
19980 * macterm.h (struct mac_display_info): Add terminal.
19981 (mac_initialize): Delete declaration.
19982
19983 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19984
19985 * sysdep.c: Comment out text after #endif.
19986
19987 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19988 is defined. Better initialize ttys in windows. Use terminal
19989 specific mouse_position_hook.
19990
19991 * termhooks.h (union display_info): Add mac_display_info.
19992
19993 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19994 Set the default minibuffer frame, window_system and the rest of the
19995 frame parameters following what is done in X11.
19996
19997 * w32term.c (w32_initialize): Make static.
19998
19999 * xselect.c (x_handle_selection_clear): Only access
20000 terminal->kboard when MULTI_KBOARD is defined.
20001
20002 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20003 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20004
200052007-08-29 Jason Rumney <jasonr@gnu.org>
20006
20007 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20008 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20009
20010 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20011 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20012
20013 * keyboard.c (restore_kboard_configuration): Only define when
20014 MULTI_KBOARD defined.
20015
20016 * makefile.w32-in: Update dependancies from Makefile.in.
20017 (OBJ1): Add terminal.$(O)
20018
20019 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20020 Don't define function body.
20021 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20022
20023 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20024
20025 * w32.c (request_sigio, unrequest_sigio): Remove.
20026
20027 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20028 (w32con_clear_frame, w32con_clear_end_of_line)
20029 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20030 (w32con_delete_glyphs, w32con_set_terminal_window)
20031 (scroll_line, w32_sys_ring_bell): Add frame arg.
20032 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20033 Add terminal arg.
20034 (PICK_FRAME): Remove.
20035 (w32con_write_glyphs): Use frame specific terminal coding.
20036 (one_and_only_w32cons): New global variable.
20037 (initialize_w32_display): Use it for storing hooks.
20038 (create_w32cons_output): New function.
20039
20040 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20041 arg a frame.
20042
20043 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20044 Set window_system.
20045 (x_set_tool_bar_lines): Don't use updating_frame.
20046 (Fx_create_frame): Set terminal and ref count.
20047 (Fx_open_connection): Remove window-system check.
20048
20049 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20050
20051 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20052 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20053 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20054 Add frame arg.
20055 (x_delete_terminal, w32_create_terminal): New functions.
20056 (w32_term_init): Create a terminal.
20057 (w32_initialize): Move terminal specific initialization to
20058 w32_create_terminal.
20059
20060 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20061 (w32_clear_rect, w32_clear_area): Use background from frame.
20062 (w32_display_info): Add terminal.
20063 (w32_sys_ring_bell, x_delete_display): Declare here.
20064
20065 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20066
20067 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20068
200692007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20070
20071 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20072 Fix get_named_tty calls for the controlling tty.
20073
200742007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20075
20076 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20077
200782007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20079
20080 * term.c (tty_insert_glyphs): Add missing first parameter.
20081
200822007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20083
20084 * buffer.c (Fbuffer_list, Fbury_buffer):
20085 Take frame->buried_buffer_list into account.
20086
20087 * cm.c (current_tty): New variable, for cmputc().
20088 (cmputc): Use it.
20089 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20090 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20091 (cmgoto): Add tty parameter. Pass it on to calccost().
20092 Use emacs_tputs() instead of tputs().
20093
20094 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20095 tputs().
20096 (current_tty): New variable, for cmputc().
20097 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20098
20099 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20100 (internal_condition_case, internal_condition_case_1)
20101 (internal_condition_case_2): Don't abort when x_catching_errors.
20102
20103 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20104 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20105 prevent crashes caused by bogus longjmps in read_char.
20106
20107 * keymap.h (Fset_keymap_parent): Add EXFUN.
20108
20109 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20110 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20111 Remove redundant definition.
20112
20113 * macfns.c (x_set_mouse_color, x_make_gc):
20114 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20115
20116 * w32term.c (x_free_frame_resources):
20117 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20118 (w32_initialize): Use the accessor macros for terminal characteristics.
20119
20120 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20121 Use the accessor macros for terminal characteristics.
20122 * msdos.c (internal_terminal_init): Use the accessor macros for
20123 terminal characteristics.
20124 (ScreenVisualBell, internal_terminal_init):
20125 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20126
20127 * termopts.h (no_redraw_on_reenter): Declare.
20128
20129 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20130 (mark_terminals, mark_ttys): Declare.
20131 (Fgarbage_collect): Call them.
20132 (mark_object): Mark buried_buffer_list.
20133
20134 * prefix-args.c: Include stdlib.h for exit.
20135
20136 * syssignal.h: Add comment.
20137
20138 * indent.c: Include stdio.h.
20139
20140 * window.h (Vinitial_window_system): Declare.
20141 (Vwindow_system): Delete declaration.
20142
20143 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20144
20145 * image.c (lookup_image): Don't initialize `c' until the xasserts
20146 have been run.
20147
20148 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20149 FRAME_FOREGROUND_PIXEL.
20150
20151 * print.c (print_preprocess): Don't lose print_depth levels while
20152 iterating.
20153
20154 * widget.c (update_from_various_frame_slots):
20155 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20156
20157 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20158 frames.
20159 (window_internal_height): Remove bogus make_number call.
20160 (init_window_once): Call make_terminal_frame with two zero parameters.
20161
20162 * fileio.c (Fread_file_name): Update comment.
20163
20164 * callint.c (Fcall_interactively):
20165 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20166 Make sure it is correctly unwound.
20167
20168 * xsmfns.c (x_session_close): New function.
20169
20170 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20171 Delete declarations.
20172
20173 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20174 (x_output): Remove background_pixel and foreground_pixel fields.
20175 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20176 (x_delete_device, x_session_close): Declare.
20177
20178 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20179 (read_filtered_event): Call `read_char' with a local
20180 `wrong_kboard_jmpbuf'.
20181
20182 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20183 Don't call single_kboard_state. Use FRAME_RIF.
20184
20185 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20186 systems.
20187
20188 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20189 (Fframe_with_environment, Fset_input_meta_mode)
20190 (Fset_quit_char): EXFUN.
20191 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20192 (init_sys_modes, reset_sys_modes): Update prototypes.
20193 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20194
20195 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20196 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20197 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20198 Delete declarations.
20199 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20200 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20201 New declarations.
20202
20203 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20204 already does that during init_display(). Call syms_of_keymap
20205 before syms_of_keyboard. Call `syms_of_terminal'.
20206 Call set_initial_environment, not set_process_environment.
20207 (shut_down_emacs): Call reset_all_sys_modes() instead of
20208 reset_sys_modes().
20209
20210 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20211 (internal_resolve_face_name, resolve_face_name_error): New functions.
20212 (resolve_face_name): Protect against loops and errors thrown by Fget.
20213 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20214 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20215
20216 * scroll.c: Replace CURTTY() with local variables throughout the
20217 file (where applicable).
20218 (calculate_scrolling, calculate_direct_scrolling)
20219 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20220 characteristics.
20221
20222 * keymap.c (Vfunction_key_map): Remove.
20223 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20224 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20225 (Vkey_translation_map): Remove.
20226 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20227 (Fdescribe_buffer_bindings)
20228 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20229 Update for terminal-local key-translation-map.
20230
20231 * Makefile.in (callproc.o): Update dependencies.
20232 (lisp, shortlisp): Add termdev.elc.
20233 (obj): Add terminal.o.
20234 (terminal.o): Add dependencies.
20235 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20236 (data.o, fns.o): Add termhooks.h dependency.
20237 (SOME_MACHINE_LISP): Add dnd.elc.
20238 (minibuf.o): Fix typo.
20239 Update dependencies.
20240
20241 * data.c (do_symval_forwarding, store_symval_forwarding)
20242 (find_symbol_value): Use the selected frame's keyboard, not
20243 current_kboard.
20244
20245 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20246 Vwindow_system.
20247
20248 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20249 Fmenu_bar_open.
20250 (syms_of_xmenu): Update defsubr.
20251 (mouse_position_for_popup, Fx_popup_menu)
20252 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20253 (set_frame_menubar, free_frame_menubar)
b97439ce 20254 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20255 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20256 an X frame.
20257
20258 * xselect.c (x_own_selection): Abort if not an X frame.
20259 (some_frame_on_display): Check if it is an X frame.
20260 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20261
20262 * coding.c: Include frame.h and termhooks.h.
20263 (terminal_coding, keyboard_coding): Delete.
20264 (Fset_terminal_coding_system_internal)
20265 (Fset_keyboard_coding_system_internal)
20266 (Fkeyboard_coding_system)
20267 (Fterminal_coding_system): Add a terminal parameter.
20268 Get terminal_coding from the terminal.
20269 (init_coding_once): Don't call setup_coding_system here.
20270
20271 * dispextern.h (set_scroll_region, turn_off_insert)
20272 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20273 (tty_clear_end_of_line, tty_setup_colors)
20274 (delete_tty, updating_frame)
20275 (produce_special_glyphs, produce_glyphs, write_glyphs)
20276 (insert_glyphs): Remove.
20277 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20278 (tty_turn_off_highlight, get_tty_size): Add declaration.
20279 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20280
20281 * frame.h (enum output_method): Add output_initial.
20282 (struct x_output): Delete.
20283 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20284 Access foreground_pixel and background_pixel directly from the frame.
20285 (tty_display): Delete.
20286 (struct frame): Add buried_buffer_list, foreground_pixel,
20287 background_pixel and terminal. Delete kboard.
20288 (union output_data): Add tty.
20289 (FRAME_KBOARD): Get the kboard from the terminal.
20290 (FRAME_INITIAL_P): New macro.
20291 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20292 (Qterm_environment_variable, Qdisplay_environment_variable)
20293 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20294 New declarations.
20295
20296 * termchar.h (tty_output, tty_display_info): New structures.
20297 (tty_list): Declare.
20298 (FRAME_TTY, CURTTY): New macros.
20299 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20300 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20301 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20302 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20303
20304 * callproc.c: Include frame.h and termhooks.h, for terminal
20305 parameters.
20306 (add_env): New function.
20307 (child_setup): Use it.
20308 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20309 (getenv_internal): Fix get_terminal_param call.
20310 (Fgetenv_internal, egetenv): Update doc.
20311 (syms_of_callproc): Initialize Vprocess_environment to nil.
20312 Register and initialize them. Remove obsolete defvars. Update doc
20313 strings.
20314 (child_setup): Handle Vlocal_environment_variables.
20315 (getenv_internal): Add terminal parameter.
20316 Handle Vlocal_environment_variables.
20317 (Fgetenv_internal): Add terminal parameter.
20318 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20319 environment in a frame (not terminal) parameter. Update doc strings.
20320 (set_initial_environment): Rename from set_global_environment.
20321 Store Emacs environment in initial frame parameter.
20322
20323 * xdisp.c (redisplay_internal): Update references to
20324 `previous_terminal_frame'.
20325 (display_mode_line, Fformat_mode_line): Replace calls to
20326 `push_frame_kboard' with `push_kboard'.
20327 (get_glyph_string_clip_rects): Add extra parentheses and
20328 braces to prevent compiler warnings.
20329 (calc_pixel_width_or_height): Add xassert to check that the
20330 frame is alive. Don't call `lookup_image' on a termcap frame.
20331 (message2_nolog, message3_nolog, redisplay_internal)
20332 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20333 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20334 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20335 (Fx_display_pixel_width, Fx_display_pixel_height)
20336 (Fx_display_planes, Fx_display_color_cells)
20337 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20338 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20339 (Fx_display_backing_store, Fx_display_visual_class)
20340 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20341 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20342
20343 * xfns.c (x_set_foreground_color x_set_background_color)
20344 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20345 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20346 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20347 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20348 terminal that is being deleted.
20349 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20350 frame parameter, and make sure it overrides any user-supplied setting.
20351 (Fx_close_connection, Fx_synchronize): Unify argument names with
20352 the rest of the DEFUNs.
20353
20354 * dispnew.c (Fsend_string_to_terminal): Update call to
20355 `get_tty_terminal'.
20356 (Fredraw_frame, Fsend_string_to_terminal)
20357 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20358 FRAME_TERMCAP_P and FRAME_TTY.
20359 (window_change_signal): Don't believe width/height values that are
20360 impossibly small.
20361 (Vinitial_window_system): Rename from Vwindow_system.
20362 (termscript, Wcm, rif): Delete.
20363
20364 * termhooks.h (struct terminal): New struct containing the
20365 previously global text display hooks and new members NAME,
20366 DELETED and PARAM_ALIST.
20367 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20368 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20369 (FRAME_RIF): New macros.
20370 (get_terminal_param, get_device): New declarations.
20371 (termscript): Delete declaration.
20372
20373 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20374 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20375 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20376 FRAME_FOREGROUND_PIXEL.
20377 (x_fully_uncatch_errors): Disable definition.
20378 (x_scroll_bar_expose): Fix reference to foreground pixel.
20379 (XTread_socket): Disable loop on all X displays.
20380 (x_delete_terminal): Don't set terminal->deleted and let
20381 delete_terminal delete the frames on the terminal.
20382 (x_delete_display): Doc update to reflect changes in
20383 delete_terminal.
20384 (x_display_info) <terminal>: Move member earlier in the struct.
20385 (deleting_tty): Remove old variable.
20386 (Fsuspend_tty): Call clear_tty_hooks.
20387 (Fresume_tty, init_tty): Call set_tty_hooks.
20388 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20389 errors on X frames.
20390 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20391 (handle_one_xevent): Initialize `f' to NULL.
20392 (x_delete_terminal, x_create_terminal): New functions.
20393 (XTset_terminal_modes, XTreset_terminal_modes)
20394 (XTread_socket, x_connection_closed, x_term_init)
20395 (x_term_init, x_delete_display): Add terminal parameter.
20396 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20397 X connections.
20398
20399 * frame.c: Include termchar.h.
20400 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20401 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20402 (Qdisplay_environment_variable): New vars.
20403 (Fframep): Deal with output_initial.
20404 (Fframe-live-p): Doc fix.
20405 (Fwindow-system): New function.
20406 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20407 (make_terminal_frame): Don't create frames on a terminal that is
20408 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20409 (store_frame_param): Check for found_for_frame before calling XFRAME.
20410 (Fmake_terminal_frame): Handle NULL tty names correctly.
20411 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20412 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20413 frames to refer to a deleted frame in their 'environment parameter.
20414 (Fframe_with_environment): New function.
20415 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20416 (get_future_frame_param): New function.
20417 (Fmake_terminal_frame): Use it.
20418 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20419
20420 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20421 * sysdep.c (reset_sys_modes): Update for renames.
20422
20423 * keyboard.c (tty_read_avail_input): New function.
20424 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20425 (syms_of_keyboard): Defsubr them.
20426 (Fset_input_meta_mode, Fset_quit_char): New functions.
20427 (Fset_input_mode): Split to above functions.
20428 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20429 parameter. Use it in call to `read_char'.
20430 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20431 Set wrong_kboard_jmpbuf correctly in recursive calls.
20432 Use current_kboard to access Vkeyboard_translate_table.
20433 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20434 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20435 Update longjmp invocations. Remember the original current_kboard,
20436 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20437 changes it. Comment out unnecessary calls to
20438 `record_single_kboard_state' and `any_kboard_state'.
20439 Update recursive calls.
20440 (wrong_kboard_jmpbuf): Remove global variable.
20441 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20442 Handle deleted interrupted_kboards correctly; that is a legal
20443 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20444 and read_char calls. Abort if interrupted_kboard died in read_char.
20445 (any_kboard_state, single_kboard_state)
20446 (push_frame_kboard): Remove function.
20447 (pop_kboard): Switch out of single_kboard mode if the kboard has
20448 been deleted. Remove unused variable. Help debugging by not
20449 changing current_kboard unnecessarily. Set current_kboard to the
20450 kboard of the selected frame when the stored kboard object has
20451 been deleted before pop_kboard.
20452 (temporarily_switch_to_single_kboard): Change first parameter to a
20453 frame pointer. Throw an error when caller wants to change kboards
20454 while in single_kboard mode. Don't push_kboard if we weren't in
20455 single kboard state. Don't pop_kboard if we popped into any
20456 kboard state.
20457 (restore_kboard_configuration): Abort if pop_kboard changed the
20458 kboard in single_kboard mode. Call pop_kboard only after setting
20459 up single_kboard mode.
20460 (Frecursive_edit): Switch to single_kboard mode only in nested
20461 command loops.
20462 (cmd_error, command_loop, command_loop_1, timer_check):
20463 Comment out unnecessary call to `any_kboard_state' and
20464 `record_single_kboard_state'.
20465 (delete_kboard): Exit single_kboard mode if we have just deleted
20466 that kboard. Use FRAME_KBOARD.
20467 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20468 `fatal_error_signal'.
20469 (record_single_kboard_state): Don't push_kboard if we weren't in
20470 single kboard state. Don't pop_kboard if we popped into any
20471 kboard state.
20472 (push_frame_kboard): Rename to push_kboard.
20473 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20474 (read_avail_input): Read input from all terminals.
20475 (mark_kboards): Also mark Vkeyboard_translate_table.
20476 (kbd_buffer_store_event_hold): Simplify condition.
20477 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20478 (Vkeyboard_translate_table): Move to struct kboard.
20479 (init_kboard): Initialize Vkeyboard_translate_table.
20480 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20481 Vkeyboard_translate_table. Update doc strings. Update docs of
20482 local-function-key-map and function-key-map.
20483
20484 * terminal.c: New file.
20485
20486 * term.c: Include errno.h.
20487 (Vring_bell_function, device_list, initial_device)
20488 (next_device_id, ring_bell, update_begin, update_end)
20489 (set_terminal_window, cursor_to, raw_cursor_to)
20490 (clear_to_end, clear_frame, clear_end_of_line)
20491 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20492 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20493 (syms_of_term): Move their initialization to terminal.c.
20494 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20495 (Ftty_display_color_cells)
20496 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20497 (clear_tty_hooks, set_tty_hooks)
20498 (init_tty, maybe_fatal): New functions.
20499 (Ftty_type): Return nil if terminal is not on a tty instead of
20500 throwing an error. Doc update.
20501 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20502 Doc update. Initialize new subrs and variables.
20503 (delete_tty): Use terminal->deleted.
20504 (tty_set_terminal_modes): Rename from set_terminal_modes.
20505 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20506 (set_scroll_region): Rename to `tty_set_scroll_region'.
20507 (turn_on_insert): Rename to `tty_turn_on_insert'.
20508 (turn_off_insert): Rename to `tty_turn_off_insert'.
20509 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20510 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20511 (toggle_highligh): Rename to `tty_toggle_highlight'.
20512 (background_highlight): Rename to `tty_background_highlight'.
20513 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20514 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20515 (tty_set_scroll_region, tty_background_highlight)
20516 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20517 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20518 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20519 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20520 Add static modifier.
20521 (tty_reset_terminal_modes, tty_set_terminal_window)
20522 (tty_set_scroll_region, tty_background_highlight)
20523 (tty_highlight_if_desired, tty_cursor_to)
20524 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20525 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20526 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20527 renames.
20528
205292007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20530
20531 * keyboard.c: Qrtl is new.
20532 (parse_tool_bar_item): Handle :rtl keyword.
20533 (syms_of_keyboard): Intern :rtl keyword.
20534
20535 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20536
20537 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20538 so no Lisp code is executed.
20539 (file_for_image, find_rtl_image): New functions.
20540 (xg_get_image_for_pixmap): Use file_for_image.
20541 (update_frame_tool_bar): If direction is RTL, use RTL image if
20542 defined. Use Gtk stock images if defined.
20543
205442007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20545
20546 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20547 for nonexistent or zero-width glyph in composition glyph.
20548
205492007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20550
20551 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20552
20553 * xdisp.c (Finvisible_p): New function.
20554 (syms_of_xdisp): defsubr it.
20555
205562007-08-24 Juanma Barranquero <lekktu@gmail.com>
20557
20558 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20559 Doc fixes.
20560
205612007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20562
20563 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20564
205652007-08-24 Martin Rudalics <rudalics@gmx.at>
20566
20567 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20568 whether decoding has modified buffer contents.
20569
205702007-08-24 Jason Rumney <jasonr@gnu.org>
20571
20572 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20573 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20574 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20575 (init_svg_functions) [HAVE_NTGUI]: New function.
20576 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20577 (svg_load_image): Use them.
20578 (svg_load_image) [HAVE_NTGUI]: Implement background.
20579
205802007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20581
20582 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20583 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20584 (LIBX): Remove @RSVG_LIBS@.
20585 (LIBES): Add $(RSVG_LIBS).
20586
20587 * image.c (svg_load_image): Blend with specified background if exists.
20588 Use IMAGE_BACKGROUND. Add Mac OS Support.
20589
20590 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20591 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20592 Remove macros.
20593 [MAC_OSX] (socket_callback): Do nothing.
20594 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20595 ReceiveNextEvent.
20596 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20597 socket_callback.
20598 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20599
206002007-08-22 Glenn Morris <rgm@gnu.org>
20601
20602 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20603
206042007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20605
20606 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20607
20608 * image.c: Add support for SVG images. Some additional comments
20609 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20610 (svg_image_p): New function to test for SVG image.
20611 (svg_load): New function to load SVG image.
20612 (svg_load_image): New function, helper for svg_load.
20613 (Qsvg): New Lisp_object.
20614 (svg_keyword_index): New enum.
20615 (svg_format): New static `image_keyword' struct.
20616 (svg_type): New static `image_type' struct.
20617 (librsvg/rsvg.h): Include it.
20618
206192007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20620
20621 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20622
206232007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20624
20625 * lread.c (Qold_style_backquotes): New var.
20626 (syms_of_lread): Init and staticpro it.
20627 (load_warn_old_style_backquotes): New fun.
20628 (Fload): Use them to warn about old style backquotes.
20629 (end_of_file_error, Fload): Remove unused vars.
20630
20631 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20632
20633 * lread.c (Vold_style_backquotes): New var.
20634 (syms_of_lread): Init and export it to Elisp.
20635 (read1): Set it when we find an old-style (back)quote.
20636
206372007-08-22 Jason Rumney <jasonr@gnu.org>
20638
20639 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20640
206412007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20642
20643 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20644
206452007-08-19 Richard Stallman <rms@gnu.org>
20646
20647 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20648
206492007-08-19 Andreas Schwab <schwab@suse.de>
20650
20651 * alloc.c (pure): Round PURESIZE up.
20652
206532007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20654
20655 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20656 active frame.
20657
206582007-08-16 Richard Stallman <rms@gnu.org>
20659
20660 * eval.c (Fcommandp): Add parens to clarify.
20661
20662 * minibuf.c (Fall_completions): Use enum for type of table.
20663
20664 * emacs.c (USAGE2): Improve text.
20665
206662007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20667
20668 * term.c (tty_default_color_capabilities): Declare static
20669 variables in file scope, to avoid HPUX compiler problem.
20670
206712007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20672
20673 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20674 to gtk_toolbar_insert.
20675
206762007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20677
20678 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20679
20680 * insdel.c (reset_var_on_error): New fun.
20681 (signal_before_change, signal_after_change):
20682 Use it to reset (after|before)-change-functions to nil in case of error.
20683 Bind inhibit-modification-hooks to t.
20684 Don't bind (after|before)-change-functions to nil while they run.
20685
206862007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20687
20688 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20689 filling pixmap with stippled background.
20690
206912007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20692
20693 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20694 Don't use invisible frame as parent window for repositioning.
20695
206962007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20697
20698 * print.c (new_backquote_output): Rename from old_backquote_output.
20699 (print): Inverse its logic (according to its name) so as to match the
20700 behavior of new_backquote_flag in lread.c.
20701
207022007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20703
20704 * gmalloc.c (posix_memalign): New function.
20705
20706 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20707 ActivateControl/DeactivateControl here.
20708 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20709 frame-notice-user-settings is non-nil.
20710 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20711 for kEventParamFMFontStyle.
20712 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20713 mac_pass_command_to_system and mac_pass_control_to_system here.
20714 (XTread_socket): Call ActivateControl/DeactivateControl here.
20715 (XTread_socket) [TARGET_API_MAC_CARBON]:
20716 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20717 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20718 for window repositioning.
20719
207202007-08-08 Glenn Morris <rgm@gnu.org>
20721
20722 * Replace `iff' in doc-strings and comments.
20723
207242007-08-07 Chong Yidong <cyd@stupidchicken.com>
20725
20726 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20727
207282007-08-07 Martin Rudalics <rudalics@gmx.at>
20729
20730 * fileio.c (Finsert_file_contents): Run format-decode and
20731 after_insert_file_functions on entire buffer when REPLACE is
20732 non-nil and inhibit modification_hooks and point_motion_hooks.
20733 For consistency, run after_insert_file_functions iff something
20734 got inserted. Move signal_after_change and update_compositions
20735 after code running after_insert_file_functions. Make sure that
20736 undo_list doesn't record intermediate steps of the decoding process.
20737
207382007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20739
20740 * emacs.c (main)
20741 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20742 Call malloc_enable_thread on interactive startup.
20743
20744 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20745 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20746 [USE_PTHREAD]: Conditionalize with it.
20747 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20748 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20749 New functions.
20750
207512007-08-06 Chong Yidong <cyd@stupidchicken.com>
20752
20753 * xdisp.c (redisplay_window): When restoring original buffer
20754 position, make sure it is still valid.
20755
20756 * image.c (png_load): Ignore png-supplied background color.
20757
207582007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20759
20760 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20761 Use kCFAbsoluteTimeIntervalSince1970.
20762
20763 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20764 New variable.
20765 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20766 event loop should be quit.
20767 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20768 Quit dialog event loop if quit_dialog_event_loop is set.
20769
20770 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20771 (Selection): New typedef. Use instead of ScrapRef.
20772 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20773 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20774 (mac_clear_selection): Rename from clear_scrap.
20775 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20776 scrap_has_target_type. All uses changed.
20777 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20778 (mac_selection_has_target_p): New functions.
20779 (mac_put_selection_value): Rename from put_scrap_string.
20780 (mac_get_selection_value): Rename from get_scrap_string.
20781 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20782 (put_scrap_private_timestamp, scrap_has_target_type)
20783 (get_scrap_private_timestamp): Remove functions.
20784 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20785 (x_own_selection, x_get_local_selection):
20786 Use mac_valid_selection_value_p.
20787 (x_own_selection): Don't use put_scrap_private_timestamp.
20788 Record OWNERSHIP-INFO into Vselection_alist instead.
20789 (x_get_local_selection): Don't check type if request is local.
20790 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20791 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20792
207932007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20794
20795 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20796 add comment explaining why.
20797
207982007-08-03 Richard Stallman <rms@gnu.org>
20799
20800 * fileio.c (Fvisited_file_modtime): Use make_time.
20801
208022007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20803
20804 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20805 build.
20806
208072007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20808
20809 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20810
208112007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20812
20813 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20814
208152007-07-30 Richard Stallman <rms@gnu.org>
20816
20817 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20818
208192007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20820
20821 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20822
208232007-07-28 Nick Roberts <nickrob@snap.net.nz>
20824
20825 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20826 remote default-directory.
20827
20828 * buffer.c (mode-line-format): Update doc string.
20829
208302007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20831
20832 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20833 scroll bar gap.
20834 (x_scroll_bar_create): Set bar->fringe_extended_p.
20835 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20836 on frame edge. Check fringe background extension. Don't clear
20837 extended fringe background area.
20838
20839 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20840 (w32_fill_area): Enclose multiple statements with do ... while (0).
20841
20842 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20843 Extend fringe background to scroll bar gap.
20844 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20845 Set bar->fringe_extended_p.
20846 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20847 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20848 background extension. Don't clear extended fringe background area.
20849
20850 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20851 New member fringe_extended_p.
20852
208532007-07-25 Glenn Morris <rgm@gnu.org>
20854
20855 * Relicense all FSF files to GPLv3 or later.
20856
20857 * COPYING: Switch to GPLv3.
20858
208592007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20860
20861 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20862
20863 * data.c (Finteractive_form): Check for the presence of an
20864 `interactive-form' symbol property more thoroughly.
20865
20866 * data.c (Finteractive_form): Use an `interactive-form' property if
20867 present, analogous to the function-documentation property.
20868
208692007-07-24 Jason Rumney <jasonr@gnu.org>
20870
20871 * w32fns.c (x_real_positions): Get real position from OS instead of
20872 calculating it.
20873
208742007-07-23 Jason Rumney <jasonr@gnu.org>
20875
20876 * filelock.c (current_lock_owner): Allow for @ sign in username.
20877
208782007-07-22 Nick Roberts <nickrob@snap.net.nz>
20879
20880 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20881 remote default-directory.
20882
20883 * buffer.c (mode-line-format): Describe above case in doc string.
20884
208852007-07-20 Eli Zaretskii <eliz@gnu.org>
20886
20887 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20888 Define if not defined.
20889
208902007-07-18 Jason Rumney <jasonr@gnu.org>
20891
20892 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20893
208942007-07-18 Richard Stallman <rms@gnu.org>
20895
20896 * data.c (Fsetq_default): Doc fix.
20897
20898 * eval.c (Fsetq): Doc fix.
20899
209002007-07-18 Juanma Barranquero <lekktu@gmail.com>
20901
20902 * coding.c (Ffind_operation_coding_system):
20903 * eval.c (For, Fand): Doc fixes.
20904 Reported by Johan Bockgård.
20905
209062007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20907
20908 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20909
20910 * xterm.h: Declare x_ewmh_activate_frame.
20911
20912 * xterm.c (x_ewmh_activate_frame): New function.
20913 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20914
209152007-07-17 Martin Rudalics <rudalics@gmx.at>
20916
20917 * window.c (Fdisplay_buffer): If largest or LRU window is the
20918 only window, split it even if it is not eligible for splitting.
20919 This restores the original behavior broken by the 2007-07-15
20920 change.
20921
209222007-07-17 Glenn Morris <rgm@gnu.org>
20923
20924 * abbrev.c (abbrev_check_chars): New function.
20925 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20926 Call abbrev_check_chars to check abbrev characters are word
20927 constituents. Doc fix.
20928
209292007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20930
20931 * process.c (Fstart_process, Fmake_network_process)
20932 (read_process_output): Fix up last changes.
20933
209342007-07-16 Eli Zaretskii <eliz@gnu.org>
20935
20936 * makefile.w32-in (clean): Don't delete *~.
20937
209382007-07-16 Andreas Schwab <schwab@suse.de>
20939
20940 * window.c (Fdisplay_buffer): Use NILP.
20941 (Fset_window_scroll_bars): Likewise.
20942
209432007-07-15 Martin Rudalics <rudalics@gmx.at>
20944
20945 * window.c (window_min_size_2): New function.
20946 (window_min_size_1, size_window, Fdisplay_buffer)
20947 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20948 windows without mode- or header-lines when window-min-height is
20949 too small.
20950 (size_window): Reset nodelete_p after testing it, following an
20951 earlier note by Kim F. Storm.
20952 (display_buffer): Do not set split_height_threshold to twice the
20953 value of window_min_height to avoid changing the value of a
20954 customizable variable. Rather explicitly check whether the
20955 height of the window that shall be splitted is at least as large
20956 as split_height_threshold.
20957 (Fwindow_full_width_p): New defun.
20958 (syms_of_window): Defsubr it.
20959
20960 * window.h: Add EXFUN for Fwindow_full_width_p.
20961
209622007-07-14 Jason Rumney <jasonr@gnu.org>
20963
20964 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20965
209662007-07-14 Richard Stallman <rms@gnu.org>
20967
20968 * eval.c (maybe_call_debugger): New function.
20969 (find_handler_clause): Use maybe_call_debugger.
20970 Call it when the handler says `debug'.
20971 Eliminate DEBUGGER_VALUE_PTR.
20972 (Fsignal): Eliminate debugger_value.
20973 (Qdebug): New variable.
20974 (syms_of_eval): Initialize it.
20975
209762007-07-14 Juanma Barranquero <lekktu@gmail.com>
20977
20978 * eval.c (Fprogn):
20979 * keyboard.c (Ftrack_mouse):
20980 * print.c (Fwith_output_to_temp_buffer):
20981 * window.c (Fsave_window_excursion): Doc fix.
20982
209832007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20984
20985 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20986
209872007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20988
20989 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20990 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20991 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20992 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20993 Remove unused encoding_carryover.
20994 * process.c: Adjust all functions accordingly.
20995
209962007-07-12 Richard Stallman <rms@gnu.org>
20997
20998 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20999
210002007-07-11 Jason Rumney <jasonr@gnu.org>
21001
21002 * makefile.w32-in (LIBS): Include OLE32.
21003
21004 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21005 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21006
210072007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21008
21009 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21010 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21011 from a Lisp_Object into a bare pointer.
21012 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21013 Adjust the code correspondingly.
21014
21015 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21016
21017 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21018 (term_show_mouse_face): Remove unused var `j'.
21019 (handle_one_term_event): Remove unused vars `i' and `j'.
21020 Don't cast return value of ttyname since it's not necessary.
21021
210222007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21025 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21026
21027 * fns.c (map_char_table): Use an array of int for `indices' rather than
21028 an array of Lisp_Objects (which are only ever integers anyway).
21029 (Fmap_char_table): Update caller.
21030 * lisp.h: Update prototype.
21031 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21032 * fontset.c (Ffontset_info):
21033 * casetab.c (set_case_table): Update callers.
21034
21035 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21036
21037 * keymap.c (struct accessible_keymaps_data)
21038 (struct where_is_internal_data): New structures.
21039 (accessible_keymaps_1, where_is_internal_1): Use them to change
21040 interface to adhere to the one used by map_keymap.
21041 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21042 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21043
21044 * keymap.h (map_keymap_function_t): More informative prototype.
21045
210462007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21047
21048 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21049 (looking_at_1): Don't change search_regs and last_thing_searched
21050 if `inhibit-changing-match-data' is non-nil.
21051 (string_match_1, search_buffer, set_search_regs): Likewise.
21052 (syms_of_search): Add Lisp level definition for
21053 `inhibit-changing-match-data' and set it to nil.
21054 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21055 start and end of the match, instead of using values in search_regs.
21056
210572007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21058
21059 * minibuf.c (Fcompleting_read): New value `confirm-only'
21060 for `require-match'.
21061
210622007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21063
21064 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21065 part of the 2007-06-27 change to syms_of_fileio.
21066
210672007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21068
21069 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21070 Check WINDOWP before using XWINDOW. Consolidate return statements.
21071
210722007-06-27 Richard Stallman <rms@gnu.org>
21073
21074 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21075
210762007-06-27 Juanma Barranquero <lekktu@gmail.com>
21077
21078 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21079
210802007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21081
21082 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21083 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21084 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21085 (_free_internal, memalign): Use them.
21086 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21087 Initialize to PTHREAD_MUTEX_INITIALIZER.
21088 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21089 (morecore_nolock): Rename from morecore. All uses changed.
21090 Use only nolock versions of internal allocation functions.
21091 (_malloc_internal_nolock, _realloc_internal_nolock)
21092 (_free_internal_nolock): New functions created from
21093 _malloc_internal, _realloc_internal, and _free_internal.
21094 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21095 Copy hook value to automatic variable before its use.
21096 (memalign): Copy hook value to automatic variable before its use.
21097
210982007-06-26 Kenichi Handa <handa@m17n.org>
21099
21100 * coding.c (Ffind_operation_coding_system): Docstring improved.
21101 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21102
211032007-06-25 David Kastrup <dak@gnu.org>
21104
21105 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21106 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21107 cater for additional parameter.
21108
21109 * keymap.h: Adjust number of parameters to `current-active-maps'.
21110
21111 * doc.c (Fsubstitute_command_keys): Adjust call of
21112 `current-active-maps'.
21113
211142007-06-25 David Kastrup <dak@gnu.org>
21115
21116 * callint.c (Fcall_interactively): Make the parsing of interactive
21117 specs somewhat more readable.
21118
211192007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21120
21121 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21122 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21123 if extended background has already been filled.
21124
211252007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21126
21127 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21128 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21129
21130 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21131 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21132 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21133 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21134 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21135 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21136 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21137 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21138 Run timers during dialog popup.
21139 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21140
211412007-06-21 Jason Rumney <jasonr@gnu.org>
21142
21143 * image.c (convert_mono_to_color_image): Swap fore and background.
21144
211452007-06-20 Jason Rumney <jasonr@gnu.org>
21146
21147 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21148 (w32_free_bdf_font): Unmap memory not handle.
21149
211502007-06-20 Sam Steingold <sds@gnu.org>
21151
21152 * gmalloc.c (__morecore): Fix the declaration to comply with the
21153 definition.
21154
211552007-06-20 Juanma Barranquero <lekktu@gmail.com>
21156
21157 * w32term.c (w32_delete_display): Remove leftover declaration.
21158 (w32_define_cursor, w32_initialize): Make static.
21159
21160 * w32.c (_wsa_errlist): Fix typo in error message.
21161 (init_environment): Ignore any environment variable from the
21162 registry having a null value.
21163
211642007-06-20 Glenn Morris <rgm@gnu.org>
21165
21166 * Makefile.in (LIBGIF): Default to -lgif.
21167
211682007-06-17 Jason Rumney <jasonr@gnu.org>
21169
21170 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21171 unicode strings.
21172
211732007-06-16 Juanma Barranquero <lekktu@gmail.com>
21174
21175 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21176 Fix typo in docstring.
21177
211782007-06-16 Eli Zaretskii <eliz@gnu.org>
21179
21180 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21181 and their keybindings.
21182
211832007-06-15 Chong Yidong <cyd@stupidchicken.com>
21184
21185 * composite.c (update_compositions): Fix last fix.
21186
211872007-06-14 Jason Rumney <jasonr@gnu.org>
21188
21189 * w32.c (get_process_times_fn): New function pointer.
21190 (globals_of_w32): Intialize it if present in kernel32.dll.
21191 (w32_get_internal_run_time): New function.
21192
21193 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21194
211952007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21196
21197 * composite.c (update_compositions): Check the validness of
21198 compositions.
21199
212002007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21201
21202 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21203 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21204
21205 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21206 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21207
21208 * macgui.h (USE_MAC_TOOLBAR): New define.
21209
21210 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21211 Return immediately unless popup is activated.
21212
21213 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21214 background to scroll bar gap.
21215 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21216 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21217 scroll bars on frame edge. Check fringe background extension.
21218 Don't clear extended fringe background area.
21219 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21220 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21221 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21222 [USE_MAC_TOOLBAR]: New macros.
21223 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21224 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21225 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21226 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21227 [USE_MAC_TOOLBAR]: New functions.
21228 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21229 manually if previous repositioning has failed.
21230 (mac_handle_keyboard_event): Use precomputed event kind.
21231 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21232 as tool bar item click. Handle mouse movement over tool bar items.
21233
21234 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21235 toolbar_win_gravity.
21236 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21237 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21238 Add externs.
21239
21240 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21241 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21242
212432007-06-14 Chong Yidong <cyd@stupidchicken.com>
21244
21245 * image.c (search_image_cache): Remove unused variable.
21246
212472007-06-13 Chong Yidong <cyd@stupidchicken.com>
21248
21249 * xfns.c, xmenu.c: Link to xaw3d if available.
21250
212512007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21252
21253 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21254 frame_foreground and frame_background.
21255
21256 * image.c (lookup_image): Save frame foreground and background colors.
21257 (search_image_cache): Check if saved and current frame colors match.
21258
212592007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21260
21261 * regex.c (regex_compile): Remove the `regnum' counter.
21262 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21263
212642007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 * term.c: Include intervals.h to declare Fget_text_property.
21267
212682007-06-10 Jason Rumney <jasonr@gnu.org>
21269
21270 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21271
212722007-06-08 Juanma Barranquero <lekktu@gmail.com>
21273
21274 * callint.c (Fcall_interactively):
21275 * editfns.c (Fdelete_and_extract_region):
21276 * fileio.c (Fread_file_name):
21277 * fns.c (Fmapconcat):
21278 * keyboard.c (cmd_error_internal):
21279 * keymap.c (Fkey_description):
21280 * lread.c (openp):
21281 * minibuf.c (read_minibuf):
21282 * search.c (wordify):
21283 * sunfns.c (sel_read):
21284 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21285 * xfns.c (x_default_scroll_bar_color_parameter):
21286 * xmenu.c (menu_help_callback):
21287 * xselect.c (Fx_get_atom_name):
21288 * xterm.c (x_term_init): Use empty_unibyte_string.
21289
212902007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21291
21292 * alloc.c (init_strings): Initialize canonical empty strings.
21293 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21294 canonical empty string when the requested size is 0.
21295
21296 * emacs.c (empty_unibyte_string): Rename from empty_string.
21297 (empty_multibyte_string): New canonical empty string.
21298 (syms_of_emacs): Don't initialize empty_string.
21299
21300 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21301 string, if appropriate.
21302 (empty_unibyte_string, empty_multibyte_string): New externs.
21303 (empty_string): Remove extern.
21304
21305 * lread.c (syms_of_lread): Use empty_unibyte_string.
21306
213072007-06-07 Jason Rumney <jasonr@gnu.org>
21308
21309 * s/ms-w32.h: Don't define HAVE_TZNAME.
21310
21311 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21312
213132007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21314
21315 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21316
21317 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21318 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21319
21320 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21321 Don't call next handler.
21322 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21323 Remove argument. Install handler to application.
21324 (set_frame_menubar): Don't change deep_p.
21325 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21326 FRAME_OUTER_TO_INNER_DIFF_Y.
21327 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21328 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21329 [HAVE_DIALOGS]: New macros.
21330 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21331 Use them.
21332 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21333
21334 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21335 init_service_handler. All callers changed. Return OSStatus value.
21336
21337 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21338 All callers changed so as not to call SetPortWindowPort.
21339 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21340 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21341 mac_draw_string_common.
21342 (mac_draw_image_string_qd): Likewise.
21343 (mac_draw_string_common): Use them. Add INLINE.
21344 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21345 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21346 GetGlobalMouse.
21347 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21348 and FRAME_OUTER_TO_INNER_DIFF_Y.
21349 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21350 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21351 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21352 repositioning window to mac_handle_window_event.
21353 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21354 saving window location to mac_handle_window_event
21355 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21356 (install_menu_target_item_handler): Remove argument in extern.
21357 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21358 Also accept command events.
21359 (do_keystroke): New function created from XTread_socket.
21360 (init_command_handler): Remove functions.
21361 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21362 and save window location by kEventWindowShowing and kEventWindowHiding
21363 handlers here. Don't call next handler for window state change and
21364 focus events.
21365 (mac_handle_application_event, mac_handle_keyboard_event)
21366 [TARGET_API_MAC_CARBON]: New functions.
21367 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21368 kEventWindowShowing and kEventWindowHiding events. Move installation
21369 of mouse, font, text input and menu target item handlers to
21370 install_application_handler.
21371 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21372 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21373 New function.
21374 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21375 Register it.
21376 (XTread_socket) [TARGET_API_MAC_CARBON]:
21377 Consolidate SendEventToEventTarget calls.
21378 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21379 Move application activation handler to mac_handle_application_event.
21380 Move keyboard handler to mac_handle_keyboard_event.
21381 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21382 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21383 init_command_handler. Call install_application_handler.
21384
21385 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21386 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21387
213882007-06-07 Glenn Morris <rgm@gnu.org>
21389
21390 * emacs.c (main): Use `emacs-copyright' in --version output.
21391
213922007-06-06 Chong Yidong <cyd@stupidchicken.com>
21393
21394 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21395
213962007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21397
21398 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21399
21400 * macgui.h: Replace WindowPtr with WindowRef.
21401
21402 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21403 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21404 Replace ControlHandle with ControlRef.
21405 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21406
21407 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21408 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21409 Replace ControlHandle with ControlRef.
21410 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21411 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21412
21413 * macterm.h (struct scroll_bar): Rename member control_handle_low
21414 and control_handle_high to control_ref_low and control_ref_high.
21415 All uses changed.
21416 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21417 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21418 respectively. All uses changed.
21419 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21420 (install_window_handler, remove_window_handler): Replace WindowPtr
21421 with WindowRef in externs.
21422
214232007-06-05 Juanma Barranquero <lekktu@gmail.com>
21424
21425 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21426
214272007-06-03 Nick Roberts <nickrob@snap.net.nz>
21428
21429 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21430
21431 * frame.c (Fmouse_position, Fmouse_pixel_position):
21432 Condition on HAVE_GPM too.
21433
21434 * term.c (term_mouse_highlight): Remove unused variables.
21435 (Fterm_open_connection): Set gpm_zerobased to 1.
21436 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21437 Use zero based co-ordinates.
21438 (handle_one_term_event): Report a drag as mouse movement too.
21439
21440 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21441
214422007-06-03 Chong Yidong <cyd@stupidchicken.com>
21443
21444 * image.c (search_image_cache): New function. Require background
21445 color match if background color is unspecified in the image spec.
21446 (uncache_image, lookup_image): Use it.
21447
214482007-06-01 Juanma Barranquero <lekktu@gmail.com>
21449
21450 * window.c (Fshrink_window): Reflow docstring.
21451
214522007-06-02 Chong Yidong <cyd@stupidchicken.com>
21453
21454 * Version 22.1 released.
21455
214562007-06-01 Richard Stallman <rms@gnu.org>
21457
21458 * xfns.c (x_encode_text): Add GCPRO.
21459
214602007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21461
21462 * xfns.c (x_set_name_internal): Save encoded name before
21463 x_encode_text in case string data is relocated.
21464
214652007-05-31 Richard Stallman <rms@gnu.org>
21466
21467 * buffer.c (syms_of_buffer): Doc fix.
21468
214692007-05-30 Nick Roberts <nickrob@snap.net.nz>
21470
21471 * sysdep.c (init_sys_modes): Add rather than replace with
21472 O_NONBLOCK.
21473
21474 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21475 term_mouse_moveto.
21476
21477 * termhooks.h (term_mouse_moveto): New extern.
21478
21479 * term.c (mouse_face_window): Rename...
21480 (Qmouse_face_window): ...to this.
21481 (term_show_mouse_face, term_clear_mouse_face)
21482 (term_mouse_highlight): Use Qmouse_face_window.
21483 (term_mouse_moveto): New function.
21484 (term_mouse_position): Make it work.
21485 (syms_of_term): Uncomment assignment to mouse_position_hook.
21486 Staticpro Qmouse_face_window.
21487
214882007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21489
21490 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21491 around current_column call.
21492
214932007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21494
21495 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21496 * xdisp.c (next_element_from_buffer):
21497 * window.c (delete_window):
21498 * term.c (term_mouse_highlight):
21499 * msdos.c (getdefdir):
21500 * macterm.c (mac_create_bitmap_from_bitmap_data)
21501 (init_font_name_table):
21502 * fns.c (Fsxhash):
21503 * data.c (Fmake_local_variable):
21504 * ccl.c (ccl_driver): Likewise.
21505
215062007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21507
21508 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21509 Call mac_wakeup_from_rne on window size change.
21510
215112007-05-25 Chong Yidong <cyd@stupidchicken.com>
21512
21513 * image.c (uncache_image): Fix typo.
21514
215152007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21516
21517 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21518
215192007-05-22 Richard Stallman <rms@gnu.org>
21520
21521 * xterm.c (x_connection_closed): Remove NO_RETURN.
21522
215232007-05-22 Martin Rudalics <rudalics@gmx.at>
21524
21525 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21526
215272007-05-21 Chong Yidong <cyd@stupidchicken.com>
21528
21529 * image.c (uncache_image): New function.
21530 (Fimage_refresh): New function.
21531
215322007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21533
21534 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21535
215362007-05-20 Nick Roberts <nickrob@snap.net.nz>
21537
21538 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21539 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21540
215412007-05-20 Nick Roberts <nickrob@snap.net.nz>
21542
21543 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21544 conditional on [HAVE_GPM_H].
21545
215462007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21547
21548 * syntax.c (skip_chars): Update syntax-table only after we checked that
21549 the new location is valid.
21550
215512007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21552
21553 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21554 mac_get_window_bounds.
21555
215562007-05-20 Nick Roberts <nickrob@snap.net.nz>
21557
21558 * Makefile.in (LIBGPM): Allow it to be set from configure.
21559 If set then link Emacs with it.
21560
21561 * config.in: Regenerate.
21562
21563 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21564 New externs.
21565
21566 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21567 Include gpm.h.
21568 (handle_one_term_event, term_gpm): New externs.
21569
21570 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21571 and allow it to be interrupted by SIGIO.
21572
21573 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21574 (wait_reading_process_output): Wait on gpm_fd too.
21575 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21576 (add_gpm_wait_descriptor_called_flag): New variable.
21577 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21578
21579 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21580 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21581 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21582 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21583 (make_lispy_event): Add case GPM_CLICK_EVENT.
21584 (read_avail_input): Handle mouse input.
21585
21586 * term.c (write_glyphs_with_face): New function.
21587 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21588 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21589 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21590 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21591 (last_mouse_x, last_mouse_y): New variables.
21592 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21593 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21594 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21595 (Fterm_close_connection): New functions.
21596 (term_init): Initialise mouse_face_window.
21597
215982007-05-19 Chong Yidong <cyd@stupidchicken.com>
21599
21600 * xdisp.c (redisplay_window): If first window line is a
21601 continuation line, recompute the new window start instead of
21602 recentering.
21603
216042007-05-18 Glenn Morris <rgm@gnu.org>
21605
21606 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21607 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21608
216092007-05-17 Glenn Morris <rgm@gnu.org>
21610
21611 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21612
216132007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21614
21615 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21616 dead key repeat and up events.
21617
216182007-05-14 Chong Yidong <cyd@stupidchicken.com>
21619
21620 * image.c (pbm_load): Check image size for monochrome pbm.
21621
216222007-05-13 Chong Yidong <cyd@stupidchicken.com>
21623
21624 * xterm.c (XTread_socket): Revert last change.
21625
216262007-05-12 Chong Yidong <cyd@stupidchicken.com>
21627
21628 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21629
21630 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21631
216322007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21633
21634 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21635 mixup (YAILOM).
21636
216372007-05-07 Andreas Schwab <schwab@suse.de>
21638
21639 * keymap.c (Flookup_key): Fix typo in last change.
21640
216412007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21642
21643 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21644 mapping for unibyte strings.
21645
216462007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21647
21648 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21649 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21650
216512007-04-29 Richard Stallman <rms@gnu.org>
21652
21653 * insdel.c (replace_range): For undo, record insertion first.
21654
216552007-04-29 Andreas Schwab <schwab@suse.de>
21656
21657 * lisp.h (VECSIZE): Use OFFSETOF.
21658
216592007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21660
21661 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21662 disabled lines.
21663
216642007-04-28 Richard Stallman <rms@gnu.org>
21665
21666 * lread.c (read_escape): In a string, \s is always space.
21667
216682007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21669
21670 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21671
21672 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21673 submenu for menu bar items.
21674
21675See ChangeLog.10 for earlier changes.
21676
21677;; Local Variables:
21678;; coding: utf-8
21679;; add-log-time-zone-rule: t
aac0c6e3
MR
21680;; End:
21681
e3eb1dae 21682 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21683
21684 This file is part of GNU Emacs.
21685
21686 GNU Emacs is free software: you can redistribute it and/or modify
21687 it under the terms of the GNU General Public License as published by
21688 the Free Software Foundation, either version 3 of the License, or
21689 (at your option) any later version.
21690
21691 GNU Emacs is distributed in the hope that it will be useful,
21692 but WITHOUT ANY WARRANTY; without even the implied warranty of
21693 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21694 GNU General Public License for more details.
21695
21696 You should have received a copy of the GNU General Public License
21697 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21698
21699;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40