(xterm-maybe-set-dark-background-mode): Remove
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9be32c4e 12010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2
3 * nsfont.m (nsfont_open): The system's value for the font descent
4 is negative, so round it down to avoid clipping.
5
a2f3eb19
CY
62010-02-06 Chong Yidong <cyd@stupidchicken.com>
7
8 * charset.c (load_charset_map_from_file)
9 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 11
3088147c
CY
122010-02-05 Chong Yidong <cyd@stupidchicken.com>
13
14 * charset.c (load_charset_map_from_file): Allocate large
15 charset_map_entries structure on the heap rather than the stack.
16 (Bug#5526).
17
b57d9029
KH
182010-01-31 Kenichi Handa <handa@m17n.org>
19
20 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 21 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 22
c67d885b
CY
232010-01-31 Chong Yidong <cyd@stupidchicken.com>
24
25 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
26 <deactivated@gmail.com> (Bug#3605).
27
8fab2362
CY
282010-01-31 David De La Harpe Golden <david@harpegolden.net>
29
30 * fileio.c (Frename_file): Correctly rename symlinks to
31 directories (Bug#5496).
32
cb2a62f2
CY
332010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
34
35 * nsterm.m (ns_ring_bell): Handle visible bell like X.
36
944c7a26
AS
372010-01-30 Andreas Schwab <schwab@linux-m68k.org>
38
39 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
40
c024ac08
CY
412010-01-29 Chong Yidong <cyd@stupidchicken.com>
42
43 * frame.c (DEFAULT_ROWS): Change default to 35.
44
45 * xfns.c (x_default_font_parameter): Change default XFT font to
46 monospace-10 (Bug#3643).
47
af93af83
EZ
482010-01-29 Eli Zaretskii <eliz@gnu.org>
49
50 * w32inevt.c (key_event): Remove unnecessary comparison of
51 event->uChar.AsciiChar with 128.
52
ca0eb708
CY
532010-01-28 Chong Yidong <cyd@stupidchicken.com>
54
b242dbfc
CY
55 * fileio.c (Frename_file): Fix last change (Bug#5487).
56
ca0eb708
CY
57 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
58
59 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
60
45d45af5
JD
612010-01-28 Jan Djärv <jan.h.d@swipnet.se>
62
63 * xfns.c (Fx_create_frame): Remove window size matching code from
64 2010-01-15.
65 (x_get_current_desktop, x_get_desktop_workarea): Remove
66
7e233730
JR
672010-01-27 Jason Rumney <jasonr@gnu.org>
68
69 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 70 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 71
86e893e3
KH
722010-01-27 Kenichi Handa <handa@m17n.org>
73
74 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 75 pattern string (Bug#4209).
86e893e3 76
8719abec
CY
772010-01-27 David De La Harpe Golden <david@harpegolden.net>
78
79 * fileio.c (Frename_file): Call copy-directory and
80 delete-directory for directories, in order to handle cross-device
81 renaming (Bug#3353).
82
844794c8
JD
832010-01-25 Jan Djärv <jan.h.d@swipnet.se>
84
aa3e13b5 85 * xfns.c (Fx_create_frame): If frame height is too big, try
844794c8
JD
86 sizes 24 and 10. Bug #3643.
87
bd4b5750
SM
882010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
89
8dc1adf6 90 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
91 * keymap.c (shadow_lookup): Add `remap' arg.
92 (describe_map, describe_vector): Update calls to shadow_lookup.
93 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
94 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
95 perform remapping during shadow_lookup check of remapped_sequences.
96
285d07e2
CY
972010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
98
99 * image.c (png_load): Use png_sig_cmp instead of the obsolete
100 png_check_sig, which has been removed in libpng 1.4.
101
c6d09b8d
CY
1022010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
103
104 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
105 lacks this header file).
106
3d782998
YM
1072010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
108
109 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
110 as in Emacs 22.
111
2aff7c53
YM
1122010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
113
114 * lisp.h (make_pure_string): String pointer arg now points to const.
115
116 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
117 args now point to const.
118
74327f7a
EZ
1192010-01-22 Eli Zaretskii <eliz@gnu.org>
120
121 * lread.c (Fload): Don't treat files without .elc extension as
122 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
123 them. (bug#5303)
124
4d1e6632
KH
1252010-01-20 Kenichi Handa <handa@m17n.org>
126
127 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
128 treat the source as actual byte sequence.
129
1fdede8f
AM
1302010-01-19 Alan Mackenzie <acm@muc.de>
131
132 Fix spurious before-change-functions invocation from (insert ?\n).
133 * textprop.c (set_text_properties): rename parameter
134 `signal_after_change_p' to `coherent_change_p', and make the
135 invocation of `modify_region' conditional on it.
136
67477f30
JD
1372010-01-19 Jan Djärv <jan.h.d@swipnet.se>
138
139 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
140 for debug purpose.
141 (syms_of_xsettings): Declare xft-settings.
142
244b023e
CY
1432010-01-18 Chong Yidong <cyd@stupidchicken.com>
144
145 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
146
617364fe
CY
1472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
148
149 * xterm.c (event_handler_gdk): Block input (Bug#5037).
150
4fe22cdf
CY
1512010-01-16 Chong Yidong <cyd@stupidchicken.com>
152
153 * emacs.c (standard_args): Adjust arg priorities to reflect how
154 they are processed in startup.el.
155
e118d2be
AS
1562010-01-16 Andreas Schwab <schwab@linux-m68k.org>
157
158 * Makefile.in (lisp, shortlisp): Update.
159
523ae620
SM
1602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
161
162 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
163 code, link the new kboard into all_kboard before running Lisp code,
164 and protect the new terminal with GCPRO (Bug#5365).
165 (x_term_init): Remove unused var `atom'.
166 (x_delete_display, x_delete_terminal): Remove unused var `i'.
167
f0d13888
JD
1682010-01-15 Jan Djärv <jan.h.d@swipnet.se>
169
170 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
171 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
172 to find out usable size of the desktop. Don't make frames larger than
173 this. Bug #3643.
174
cc320f07
KH
1752010-01-15 Kenichi Handa <handa@m17n.org>
176
177 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
178
7ffdf101
CY
1792010-01-15 Chong Yidong <cyd@stupidchicken.com>
180
181 * nsterm.m (Qnone): Define.
182
183 * nsfns.m (Qnone): Move definition to nsterm.m.
184
d12bd917
KH
1852010-01-14 Kenichi Handa <handa@m17n.org>
186
187 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
188 systems.
189
d9a7c140
KH
1902010-01-14 Kenichi Handa <handa@m17n.org>
191
192 Make auto-composition work on all buffers even if they are
193 fundamental mode.
194
195 * composite.c (Vauto_composition_mode): New variable.
196 (composition_compute_stop_pos): Check Vauto_composition_mode
197 instead of Vauto_composition_function.
198 (composition_adjust_point, Ffind_composition_internal): Likewise.
199 (syms_of_composite): Declare Lisp variable
200 "auto-composition-mode" here.
201
63286bb2
CY
2022010-01-13 Chong Yidong <cyd@stupidchicken.com>
203
204 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
205 during call to vendor-specific-keysyms (Bug#5365).
206
c2623ee7
YM
2072010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
208
209 * keyboard.c (input_available_signal) [SYNC_INPUT]:
210 Call SIGNAL_THREAD_CHECK (Bug#5333).
211
212 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
213 Call SIGNAL_THREAD_CHECK.
214
0b5397c2
SM
2152010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
216
217 Try to fix bug#5314. This is probably not the final word, tho.
218 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
219 recent-auto-save-p as a side-effect.
220 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
221 * buffer.c (Fkill_buffer, reset_buffer):
222 * editfns.c (Fsubst_char_in_region):
223 * fileio.c (Finsert_file_contents, Fdo_auto_save)
224 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
225
dc954cb2
KH
2262010-01-13 Kenichi Handa <handa@m17n.org>
227
228 Display buffer name, etc. in mode line by composing correctly.
229
230 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
231 STRING is not nil.
0b5397c2 232 (display_mode_element): Adjust for the change of
dc954cb2
KH
233 decode_mode_spec and display_line.
234 (decode_mode_spec): Change arg MULTIBYTE to STRING.
235 (display_string): Handle the case that STRING is non-null and
236 LISP_STRING is not nil.
237
0b5397c2
SM
238 * xterm.c (x_draw_composite_glyph_string_foreground):
239 Pay attention to s->face->overstrike.
dc954cb2
KH
240
241 * composite.c (composition_reseat_it): Don't check PT if STRING is
242 non nil.
243
4a00eaca
YM
2442010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
245
246 * keyboard.c (read_char): Don't apply previous change when current
247 buffer is unchanged by command execution.
248
60abb287
JD
2492010-01-12 Jan Djärv <jan.h.d@swipnet.se>
250
251 * keyboard.c (read_char): Return after executing from special map.
252
893db5bc
GM
2532010-01-12 Glenn Morris <rgm@gnu.org>
254
255 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
256 bug-gnu-emacs rather than emacs-pretest-bug.
257
4d03ece0
CY
2582010-01-11 Chong Yidong <cyd@stupidchicken.com>
259
260 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
261 initializing the Lisp variables that depend on them.
262
1df47e38
YM
2632010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
264
265 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
266 Clear areas that will not be updated after change of menu bar lines.
267 Clear the menu bar window's current matrix when the window gets empty.
268
2f1c6384
CY
2692010-01-09 Chong Yidong <cyd@stupidchicken.com>
270
e398c61c
CY
271 * intervals.h, textprop.c (extend_property_ranges): Return value
272 and args changed. Discard properties that begin at or after the
273 new end (Bug#5306).
274
275 * editfns.c (Fformat): Caller changed.
276
e5a29a10
CY
277 * nsterm.m (ns_set_default_prefs): Delete function.
278 (syms_of_nsterm): Initialize ns_command_modifier,
279 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
280 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
281
2f1c6384
CY
282 * xdisp.c (pos_visible_p): Check for invisible text at the correct
283 position (Bug#4040).
284
d427a9fa
EZ
2852010-01-09 Eli Zaretskii <eliz@gnu.org>
286
287 * editfns.c (Ffloat_time): Doc fix.
288
21b9df2f
JD
2892010-01-09 Jan Djärv <jan.h.d@swipnet.se>
290
291 * xfns.c (Fx_create_frame): Don't create frame larger than display
292 by default bug#3643.
293
4b00d3b1
YM
2942010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
295
296 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
297 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
298 windows above internal border.
299
300 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
301 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
302 windows above internal border.
303
304 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
305 tool bar windows specially.
306
307 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
308
309 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
310 specially.
311 (XTflash): Take account of menu bar height.
312
313 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
314 specially.
315
5075d853
JD
3162010-01-08 Jan Djärv <jan.h.d@swipnet.se>
317
318 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
319 also be true before we can return early (bug #5339).
320
474217c8
CY
3212010-01-06 David Reitter <david.reitter@gmail.com>
322
323 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
324 (Fns_display_usable_bounds): Rewrite, computing bounds properly
325 (Bug#3233).
326
c0e6d47d
JD
3272010-01-06 Jan Djärv <jan.h.d@swipnet.se>
328
d0cf45b7
JD
329 * font.c (font_open_entity): Enable chache and call cached_font_ok
330 for the driver if defined.
331 (QCuser_spec): New symbol.
332 (font_spec_from_name): Save name as user-spec.
333 (font_load_for_lface): Keep user-spec instead of name.
334 (font_open_by_name): Save name as user-spec.
335 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 336 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
337
338 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
339 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
340 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
341
342 * font.h (struct font_driver): Add cached_font_ok.
343
c0e6d47d
JD
344 * xterm.c (x_clear_frame): Queue draw for scroll bars.
345
7c583cd8
JD
3462010-01-05 Jan Djärv <jan.h.d@swipnet.se>
347
348 * xterm.c (x_new_font): Move code for setting rows/cols before
349 resizing ...
350 (x_set_window_size): ... to here. bug #2568.
351
352 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
353 (xg_frame_resized, xg_frame_set_char_size):
354 Call xg_clear_under_internal_border.
7c583cd8 355 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 356
03f77f0a
CY
3572010-01-05 Chong Yidong <cyd@stupidchicken.com>
358
359 * keyboard.c (read_key_sequence): Catch keyboard switch after
360 making a new tty frame (Bug#5095).
361
2a1ef5be
KH
3622010-01-05 Kenichi Handa <handa@m17n.org>
363
364 * fontset.c (fontset_find_font): Fix getting the frame pointer.
365
e3eb1dae
SM
3662010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
367
368 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
369 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
370 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
371
777013f2
MA
3722010-01-03 Michael Albinus <michael.albinus@gmx.de>
373
374 * dbusbind.c (xd_add_watch): Improve debug message.
375 (xd_remove_watch): Improve debug message. If DATA is the session
376 bus, unset D-Bus session environment.
377 (Fdbus_init_bus): Pass the bus as argument to
378 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 379
8932b1c2
CY
3802010-01-01 Chong Yidong <cyd@stupidchicken.com>
381
87231e2c
CY
382 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
383
4801c5fa
CY
384 * lread.c (syms_of_lread): Make it clearer that these are the
385 names of loaded files (Bug#5068).
386
8932b1c2
CY
387 * eval.c (run_hook_with_args): Handle the case where the global
388 value has the obsolete single-function form (Bug#5026).
389
11e3c684
CY
3902009-12-27 Chong Yidong <cyd@stupidchicken.com>
391
392 * minibuf.c (Fall_completions): Minor optimization.
393
5b28ce35
EZ
3942009-12-26 Eli Zaretskii <eliz@gnu.org>
395
5ce6e4f4
JB
396 * .gdbinit (pgx): Fix display of composite glyphs.
397 Display cmp.from and cmp.to as well.
398 (pitx): Fix last change.
5b28ce35 399
bcffff46
KH
4002009-12-25 Kenichi Handa <handa@m17n.org>
401
402 * composite.h (composition_adjust_point): Update prototype.
403
404 * composite.c (composition_reseat_it): Don't make a composition
405 spanning over point.
406 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
407 composable characters.
408 (composition_adjust_point): New arg NEW_PT. Callers changed.
409
410 * keyboard.c (command_loop_1): Force redisplay if the last point
411 was within a composition.
412 (adjust_point_for_property): Don't adjust point for automatic
413 composition when called after buffer modification.
414
3f670e9a
EZ
4152009-12-19 Eli Zaretskii <eliz@gnu.org>
416
5ce6e4f4
JB
417 * .gdbinit (pitx): Don't use enum names, use their values.
418 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
419 (pgx): Don't use enum names, use their values.
420 (pitmethod): New helper command.
421 (pitx): Use it to display iteration method.
422 (pgrowit): New command.
423
ad903955
EZ
424 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
425
3f670e9a
EZ
426 Update dependencies in Makefile.in.
427
428 * Makefile.in (alloc.o): Depend on termhooks.h.
429 (atimer.o): Depend on blockinput.h.
430 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
431 and frame.h.
432 (callint.o): Depend on systime.h, coding.h, and composite.h.
433 (callproc.o): Depend on buffer.h.
434 (casefiddle.o): Don't depend on charset.h.
435 (casetab.o): Depend on character.h.
436 (ccl.o): Depend on composite.h.
437 (chartab.o): Depend on ccl.h.
438 (cm.o): Depend on dispextern.h.
439 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
440 (coding.o): Don't depend on $(INTERVALS_H).
441 (composite.o): Don't depend on dispextern.h explicitly (it's in
442 $(INTERVALS_H)). Depend on ccl.h.
443 (data.o): Depend on systime.h, coding.h, composite.h,
444 dispextern.h, font.h, and ccl.h.
445 (dired.o): Depend on composite.h.
446 (dispnew.o): Depend on coding.h. Don't depend explicitly on
447 composite.h (it's in $(INTERVALS_H)).
448 (doc.o): Depend on systime.h, coding.h, and composite.h.
449 (editfns.o): Don't depend explicitly on dispextern.h.
450 (emacs.o): Depend on frame.h and coding.h.
451 (eval.o): Depend on coding.h, composite.h, and xterm.h.
452 (fileio.o): Depend on frame.h and commands.h. Don't depend
453 explicitly on dispextern.h.
454 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
455 composite.h.
456 (fns.o): Don't depend on termhooks.h.
457 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
458 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
459 coding.h, $(INTERVALS_H), window.h, xterm.h.
460 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
461 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
462 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
463 fontset.h, ccl.h, and ftfont.h.
464 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
465 (gtkutil.o): Depend on dispextern.h and composite.h.
466 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
467 termhooks.h, and ccl.h.
468 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
469 (intervals.o): Depend on systime.h and coding.h.
470 (keyboard.o): Depend on composite.h and coding.h.
471 (keymap.o): Depend on coding.h and frame.h.
472 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
473 (macros.o): Depend on systime.h, coding.h, and composite.h.
474 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
475 and atimer.h.
476 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
477 dispextern.h explicitly.
0b5397c2
SM
478 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
479 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
480 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
481 (regex.o): Don't depend on charset.h.
482 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
483 (search.o): Don't depend explicitly on composite.h.
484 (sound.o): Depend on atimer.h and systime.h.
485 (syntax.o): Don't depend explicitly on composite.h.
486 (sysdep.o): Depend on coding.h and composite.h.
487 (term.o): Depend on xterm.h and buffer.h.
488 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
489 (textprop.o): Don't depend on dispextern.h explicitly.
490 (undo.o): Depend on dispextern.h.
491 (window.o): Depend on coding.h and termhooks.h. Don't depend on
492 dispextern.h and composite.h explicitly.
493 (xdisp.o): Depend on ccl.h.
494 (xfaces.o): Depend on coding.h and ccl.h.
495 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
496 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
497 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
498 ftfont.h.
499 (xgselect.o): New dependency.
500 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
501 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
502 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
503 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
504 (xsmfns.o): Depend on frame.h and dispextern.h.
505 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
506 sysselect.h.
507
7a6f7fea
AS
5082009-12-19 Andreas Schwab <schwab@linux-m68k.org>
509
510 * font.c (Fclear_font_cache): Pass correct cache argument to
511 font_clear_cache.
512
f4c21026
AS
5132009-12-16 Andreas Schwab <schwab@linux-m68k.org>
514
515 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
516 twice.
517
f7ab0997
CY
5182009-12-15 Chong Yidong <cyd@stupidchicken.com>
519
520 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
521 calling file-remote-p. Reported by Jim Meyering.
522
fa8e045a
MA
5232009-12-15 Michael Albinus <michael.albinus@gmx.de>
524
525 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 526 avoid compiler warnings. (Bug #5217)
fa8e045a 527
a63dba42
KH
5282009-12-14 Kenichi Handa <handa@m17n.org>
529
530 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
531 in 8-bit encoding.
532
5ce6e4f4 5332009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
534
535 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
536 tooltip windows.
537
223e5fc6
JD
5382009-12-13 Jan Djärv <jan.h.d@swipnet.se>
539
36acb2a7
JD
540 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
541 Xatom_net_window_type.
542
543 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
544 Xatom_net_window_type.
545
b8f00677
JD
546 * xterm.c (my_log_handler): New function.
547 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 548 so we can filter out buggy messages. (Bug #5120).
b8f00677 549
e5f0bc9a
JD
550 * xterm.c (xg_scroll_callback): Parameter list changed,
551 use parameter GtkScrollType to determine scroll/line/page.
552 Only allow dragging if a button < 4 is grabbed (bug #5177).
553 (xg_end_scroll_callback): New function.
554 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
555 xg_create_scroll_bar.
556
557 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
558 (scroll_end_callback): Remove.
559 (xg_create_scroll_bar): Add parameter end_callback, bind it to
560 button-release-event. Replace value-changed event with change-value,
561 bug #5177,
562 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
563 bug #5177.
564
565 * gtkutil.h (XG_LAST_SB_DATA): Remove.
566 (xg_create_scroll_bar): Add GCallback end_callback.
567
223e5fc6
JD
568 * xftfont.c (QClcdfilter): New variable.
569 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
570 (syms_of_xftfont): Initialize QClcdfilter.
571
3c055b77
JD
5722009-12-12 Jan Djärv <jan.h.d@swipnet.se>
573
574 * xsettings.c (struct xsettings): Add member seen.
575 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 576 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
577 (apply_xft_settings): Only update Xft settings with what member seen
578 indicates as new.
579
05fe33ff
EZ
5802009-12-12 Eli Zaretskii <eliz@gnu.org>
581
582 * dispextern.h (struct text_pos): Use EMACS_INT;
583 (struct glyph): Use EMACS_INT for charpos.
584 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
585 region_beg_charpos, region_end_charpos,
586 redisplay_end_trigger_charpos, and also for
587 iterator_stack_entry.end_charpos and
588 iterator_stack_entry.stop_charpos.
589
e8d7886a
JD
5902009-12-12 Jan Djärv <jan.h.d@swipnet.se>
591
5ce6e4f4 592 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
593 (xg_create_scroll_bar): Call scroll_end_callback on button release
594 event (bug #5177).
595 (xg_event_is_for_scrollbar): != replaced with ==.
596
d0db2ec8
KH
5972009-12-12 Kenichi Handa <handa@m17n.org>
598
599 * ftfont.c (struct ftfont_info): New member matrix.
600 (ftfont_open): Setup xftfont_info->matrix.
601 (MFLTFontFT): New member matrix.
602 (FLOOR, CEIL, ROUND): New macros.
603 (ftfont_get_metrics): Handle matrix transformation.
604 (ftfont_shape_by_flt): New arg matrix. Callers changed.
605
606 * xftfont.c (struct xftfont_info): New member matrix.
607 (xftfont_open): Setup xftfont_info->matrix.
608
6092009-12-10 Kenichi Handa <handa@m17n.org>
610
611 * xdisp.c (append_space_for_newline): Consider face-remapping.
612
2cc7b62f
AS
6132009-12-09 Andreas Schwab <schwab@linux-m68k.org>
614
b87dd913
AS
615 * xsettings.c: Include "keyboard.h".
616
eba5eb94
AS
617 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
618
2cc7b62f
AS
619 Fix implicit function declarations.
620 * cmds.c: Include "frame.h".
621 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
622 * frame.h: Move declaration of delete_frame outside of
623 HAVE_WINDOW_SYSTEM.
624
a4ef73c8
CY
6252009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
626
627 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
628
629 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
630 GTK builds.
631
944a300c
AS
6322009-12-07 Andreas Schwab <schwab@linux-m68k.org>
633
634 * unexelf.c (unexec): Don't search for .data twice.
635
022eef62
CY
6362009-12-05 Chong Yidong <cyd@stupidchicken.com>
637
426ac949
CY
638 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
639 if push failed.
640 (handle_line_prefix): Set avoid_cursor_p here. Check return value
641 of push_display_prop (Bug#5000).
642
022eef62
CY
643 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
644 value of font_list_entities (Bug#5085).
645
be95bee9
JB
6462009-12-04 Juanma Barranquero <lekktu@gmail.com>
647
648 Fix `string-to-number' to deal consistently with integers and floats.
649 * lread.c (isfloat_string): New argument ignore_trailing to accept all
650 trailing characters, not just whitespace.
651 (read1): Pass new arg 0 to keep old behavior.
652 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
653 trailing chars, as it is already done for integers. Doc fixes.
654 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
655
24c2d7ce
EZ
6562009-12-04 Eli Zaretskii <eliz@gnu.org>
657
0b5397c2
SM
658 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
659 Delete unused enumeration value.
24c2d7ce 660
7e694795
EZ
6612009-12-03 Eli Zaretskii <eliz@gnu.org>
662
663 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
664
84b31826
SM
6652009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
666
667 * process.c (Fmake_network_process): Fix up the tests for
668 "connectionless socket", so they DTRT for seqpacket sockets as well.
669
f00c449b
SM
6702009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
671
672 * process.c (Qseqpacket): New symbol.
673 (HAVE_SEQPACKET): New macro.
674 (Fmake_network_process): Accept new :type `seqpacket'.
675 (init_process): Add `seqpacket' feature when applicable.
676 (syms_of_process): Initialize Qseqpacket.
677
8096a0ff
YM
6782009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
679
680 * font.c (font_load_for_lface, font_open_by_name): Don't store name
681 if entity is Qnil.
682
3e0de07f
SM
6832009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * print.c (print_preprocess): Preprocess the key_and_value table of
686 hashtables, even tho they're "hidden" (bug#5082).
687
abeafb2a
JD
6882009-11-29 Jan Djärv <jan.h.d@swipnet.se>
689
690 * frame.c (frame_make_pointer_invisible)
691 (frame_make_pointer_visible): Declare f before statements.
692
4bf47195
EZ
6932009-11-28 Eli Zaretskii <eliz@gnu.org>
694
695 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
696 omitted dependencies on lisp.h.
697
c525b3f2
JD
6982009-11-27 Jan Djärv <jan.h.d@swipnet.se>
699
ece2d4ed
JD
700 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
701 is NULL.
702
703 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
704
705 * frame.c (frame_make_pointer_invisible)
3e0de07f 706 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
707 frame.
708
c525b3f2
JD
709 * search.c (simple_search): Remove warning by making *p const.
710
2f00e299
DN
7112009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
712
713 * xdisp.c (power_letter): Remove duplicate const.
714
084b049b
JD
7152009-11-25 Jan Djärv <jan.h.d@swipnet.se>
716
a1fadc6f
JD
717 * term.c (delete_tty): Remove check for last terminal (bug#4970).
718
5ce6e4f4 719 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
720 defaults (bug #5025).
721
28259cac
SM
7222009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
723
724 * insdel.c (adjust_markers_for_delete): Move it in the
725 right direction! (bug#4803)
726
e8e14166
YM
7272009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
728
729 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
730
731 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
732
86677b58
GM
7332009-11-24 Glenn Morris <rgm@gnu.org>
734
735 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
736
581e51e8
JD
7372009-11-23 Jan Djärv <jan.h.d@swipnet.se>
738
cfc86c7a
JD
739 * Makefile.in: Must create deps for ecrt0.o in its rule.
740
581e51e8
JD
741 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
742 because that is what Gtk+ font dialog understands.
743
744 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
745 of Fcopy_sequence.
746 (font_open_by_name): Put name given into QCname for font-object returned.
747
748 * frame.c (x_set_font): Save original font name as frame parameter
749 font-parameter.
750
751 * xsettings.c (set_default_xft_settings): New function.
752 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
753 is found.
754
8b264ecb
AS
7552009-11-22 Andreas Schwab <schwab@linux-m68k.org>
756
757 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
758 searching backwards through multibyte buffer.
759
872870b2
JD
7602009-11-21 Jan Djärv <jan.h.d@swipnet.se>
761
762 * xterm.c: #include xgselect.h.
763 (x_initialize): Call xgselect_initialize.
764
765 * xsettings.c (something_changedCB): C++ comments => C comments.
766 (init_gconf): Do not deal with any GLib file descriptors, xg_select
767 does that now.
768
769 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
770 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
771 (scroll_bar_button_cb): Remove.
5ce6e4f4 772 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
773 event.
774 (xg_create_scroll_bar): Don't bind button-press-event and
775 button-release-event.
776
777 * process.c: Include xgselect.h if defined (USE_GTK) ||
778 defined (HAVE_GCONF).
779 (wait_reading_process_output): Call xg_select for the same condition.
780
781 * xgselect.c (xg_select): New function to better integrate with
782 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
783
784 * xgselect.h: New file, declare xg_select, xgselect_initialize.
785
786 * Makefile.in (XOBJ): Add xgselect.o.
787
62a6e103
AS
7882009-11-21 Andreas Schwab <schwab@linux-m68k.org>
789
0b5397c2
SM
790 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
791 Remove ignored second argument. All callers changed.
62a6e103
AS
792 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
793 (RE_STRING_CHAR_AND_LENGTH): Likewise.
794 * xdisp.c (string_char_and_length): Likewise.
795
b0ca0f33
DN
7962009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
797
798 * xterm.c (x_new_font):
799 * print.c (print_object):
800 * cmds.c (Fself_insert_command): Move declarations before statements.
801
dd5a6279
CY
8022009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
803
804 * s/cygwin.h: Remove unneeded linker flags.
805
4a8e097d
JD
8062009-11-20 Jan Djärv <jan.h.d@swipnet.se>
807
0d1d0d26
JD
808 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
809
810 * xsettings.h: Declare xsettings_get_system_font.
811
812 * xsettings.c (xsettings_get_system_font): New function.
813 (init_gconf): No use initiating gconf unless we have Xft also.
814 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
815 HAVE_GCONF.
816
4a8e097d
JD
817 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
818 add a blank entry so it doesn't collapse into nothing.
819
8ab1650e
SM
8202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
821
822 * lread.c (Funintern): Comment out last change.
823
82c602f0
RS
8242009-11-19 Richard Stallman <rms@gnu.org>
825
826 * lread.c (Funintern): Error if symbol is t or nil.
827
87e32266
SM
8282009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
829
830 * insdel.c (make_gap_larger): Don't make as many assumptions about the
831 representation of Lisp integers.
832 Reported by MJ Chan <mjchan.inbox@gmail.com>.
833
1b9ac145
AS
8342009-11-17 Andreas Schwab <schwab@linux-m68k.org>
835
836 * lisp.h: Remove declaration of Ffont_get_system_font.
837 * xfns.c: Move include of "xsettings.h".
838 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
839
dfb3c4c6
JD
8402009-11-17 Jan Djärv <jan.h.d@swipnet.se>
841
87e32266
SM
842 * xsettings.c (something_changedCB, Ffont_get_system_font):
843 Check use_system_font.
dfb3c4c6
JD
844 (syms_of_xsettings): DEFVAR font-use-system-font.
845
9370c1d8
AS
8462009-11-17 Andreas Schwab <schwab@linux-m68k.org>
847
25fe851a
AS
848 * xfns.c (x_default_font_parameter): Remove dead assignment.
849
9370c1d8
AS
850 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
851
637fa988
JD
8522009-11-17 Jan Djärv <jan.h.d@swipnet.se>
853
87e32266 854 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 855 not have FC_LCD_*. #define them if not there.
a6eb20d8 856
87e32266 857 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 858
637fa988
JD
859 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
860
861 * xterm.c (handle_one_xevent): Call xft_settings_event for
862 ClientMessage, PropertyNotify and DestroyNotify.
863 (x_term_init): If we have XFT, get DPI from Xft.dpi.
864 Call xsettings_initialize.
865
866 * xftfont.c (xftfont_fix_match): New function.
867 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
868 Call xftfont_fix_match after XftFontMatch.
869
870 * xfont.c (xfont_driver): Initialize all members.
871
87e32266
SM
872 * xfns.c (x_default_font_parameter):
873 Try font from Ffont_get_system_font.
637fa988
JD
874 Do not get font from x_default_parameter if we got one from
875 Ffont_get_system_font.
87e32266 876 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
877
878 * w32font.c (w32font_driver): Initialize all members.
879
880 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
881
882 * lisp.h: Declare syms_of_xsettings.
883
87e32266
SM
884 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
885 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
886
887 * ftfont.c (ftfont_filter_properties): New function.
888
889 * frame.c (x_set_font): Remove unused variable lval.
890
87e32266 891 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
892
893 * font.c (font_put_extra): Don't return if val is nil, it means
894 boolean option is off.
895 (font_parse_fcname): Collect all extra properties in extra_props
896 and call filter_properties for all drivers with extra_props and
897 font as parameter.
87e32266
SM
898 (font_open_entity): Do not use cache, it does not pick up new
899 fontconfig settings like hinting.
637fa988
JD
900 (font_load_for_lface): If spec had a name in it, store it in entity.
901
902 * emacs.c (main): Call syms_of_xsettings
903
904 * config.in: HAVE_GCONF is new.
905
906 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
907 xsettings.o is new.
908
5a942932
KH
9092009-11-17 Kenichi Handa <handa@m17n.org>
910
911 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
912 back to the default font in case that no suitable font is found.
913
b7c7a4d1
SM
9142009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
917 Suggested by Chad Brown <yandros@mit.edu>.
918 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
919
072f1e39
JD
9202009-11-16 Jan Djärv <jan.h.d@swipnet.se>
921
922 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
923
5d1e70a2
AS
9242009-11-14 Andreas Schwab <schwab@linux-m68k.org>
925
87e32266 926 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 927
a53cfbe5
JD
9282009-11-14 Jan Djärv <jan.h.d@swipnet.se>
929
473a99b7
JD
930 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
931 has a parent.
932
a53cfbe5 933 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 934 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
935
936 * config.in: Generated (AUTO_DEPEND).
937
f04bb9b2
MA
9382009-11-13 Michael Albinus <michael.albinus@gmx.de>
939
b7c7a4d1 940 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
941 Vdbus_registered_functions_table, because it contains also
942 properties. Fix docstring.
b7c7a4d1 943 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 944
8f11f7ec
SM
9452009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
946
947 * alloc.c (mark_object): Don't reprocess marked strings.
948 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
949 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
950
8a605fe8
KH
9512009-11-13 Kenichi Handa <handa@m17n.org>
952
8f11f7ec 953 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
954 semantics of Vword_combining_categories.
955 (Vword_combining_categories): Describe the slight change of the
956 semantics.
957
241c4680
EZ
9582009-11-13 Eli Zaretskii <eliz@gnu.org>
959
960 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
961
962 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
963
5d58e44c
SM
9642009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
965
966 * xdisp.c (syms_of_xdisp): Fix typo in last change.
967
5e13f9d3
JB
9682009-11-12 Juanma Barranquero <lekktu@gmail.com>
969
970 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
971
cf54c754
DR
9722009-11-11 David Reitter <david.reitter@gmail.com>
973
974 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
975 variables to fix 2009-11-09 change.
976
a4ada374
DN
9772009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
978
91433552
DN
979 * process.c (ifflag_def): Make flag_sym constant.
980 (Fnetwork_interface_info): Use a constant pointer.
981 (ifflag_table):
982 * xfns.c (cursor_bits):
983 * xdisp.c (power_letter):
984 * termcap.c (speeds, esctab):
985 * sysdep.c (baud_convert):
986 * keyboard.c (lispy_accent_codes, modifier_names):
987 * image.c (xbm_format, xpm_format, pbm_format, png_format)
988 (jpeg_format, tiff_format, gif_format, svg_format)
989 (interlace_start, interlace_increment, gs_format):
990 * gtkutil.c (separator_names):
991 * fringe.c (swap_nibble):
992 * fns.c (base64_value_to_char, base64_char_to_value):
993 * fileio.c (make_temp_name_tbl):
994 * coding.c (suffixes): Make constant.
995
f4265f6c
DN
996 * frame.c (make_initial_frame):
997 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
998 build_string.
999 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1000
04420943
DN
1001 * s/freebsd.h:
1002 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1003
0a5d24ae
DN
1004 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1005 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1006
a4ada374
DN
1007 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1008 * xterm.c (syms_of_xterm):
1009 * xfaces.c (syms_of_xfaces):
1010 * xdisp.c (syms_of_xdisp):
1011 * lread.c (syms_of_lread):
1012 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1013 build_string.
91433552 1014
a4ada374
DN
1015 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1016
af98fc7f
SM
10172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1018
8ab1650e 1019 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1020
e90292a9
JD
10212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1022
1023 * keyboard.h: Declare timer_check.
1024
1025 * keyboard.c (timer_check_2): New function that does what the old
1026 timer_check did.
1027 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1028 returned, i.e. don't return -1 with timers pending.
1029
1030 * process.c: Remove extern declaration of timer_check.
1031
1032 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1033 even if timer_check returned -1.
1034
af98fc7f
SM
1035 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1036 xg_dialog_data.
e90292a9
JD
1037 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1038 the event loop.
1039 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1040 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1041 Destroy the dialog after xg_dialog_run.
1042
045b83c0
SM
10432009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1044
1045 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1046
1fb99a3a
JD
10472009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1048
1049 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1050
04e452cb
JB
10512009-11-09 Juanma Barranquero <lekktu@gmail.com>
1052
1053 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1054
ef7417fd
SM
10552009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1056
1057 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1058 w32menu.c, and nsmenu.m.
1059 Simplify the obsolete case where position is nil.
1060 (cleanup_popup_menu): New function, moved from nsmenu.m.
1061 (struct skp): Remove slot `notreal'.
1062 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1063 adjust callers.
1064 (single_menu_item): Adjust call to parse_menu_item.
1065 (syms_of_menu): Defsubr x-popup-menu.
1066 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1067 (keymap_panes): Don't export any more.
1068 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1069 (xmenu_show): Declare.
1070 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1071 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1072 * keyboard.h (parse_menu_item): Update declaration.
1073 * xmenu.c (Fx_popup_menu): Remove.
1074 (syms_of_xmenu): Don't defsubr x-popup-menu.
1075 * w32menu.c (Fx_popup_menu): Remove.
1076 (syms_of_w32menu): Don't defsubr x-popup-menu.
1077 * nsmenu.m (cleanup_popup_menu): Remove.
1078 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1079 moved to menu.c's Fx_popup_menu.
1080 (Fx_popup_menu): Remove.
1081 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1082 menu_items (it's done in menu.c already).
1083
424d6179
SM
10842009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1085
1086 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1087 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1088
c0df13a6 10892009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1090
1091 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1092 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1093 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1094 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1095
2de9f71c
SM
10962009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1097
1098 Let integers use up 2 tags to give them one extra bit and thus double
1099 their range.
1100 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1101 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1102 New macros.
1103 (enum Lisp_Type): Use them. Give explicit values.
1104 (Lisp_Type_Limit): Remove.
1105 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1106 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1107 Pay attention to USE_2_TAGS_FOR_INTS.
1108 (INTEGERP): Use LISP_INT_TAG_P.
1109 * fns.c (internal_equal): Simplify the default case.
1110 (sxhash): Use case_Lisp_Int.
1111 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1112 any more.
1113 (Ftype_of): Use case_Lisp_Int.
1114 (store_symval_forwarding): Take into account the fact that Ints can
1115 now have more than one tag.
1116 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1117 buffer_slot_type_mismatch):
1118 * xfaces.c (face_attr_equal_p):
1119 * print.c (print_object):
1120 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1121 Use case_Lisp_Int.
1122
323637a2
EZ
11232009-11-06 Eli Zaretskii <eliz@gnu.org>
1124
7ac65b38
EZ
1125 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1126
323637a2
EZ
1127 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1128 warning.
1129
e511451f
JD
11302009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1131
1132 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1133
1134 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1135
1136 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1137 ButtonPressRelease and MotionNotify (bug#4870).
1138
5e2327cf
DN
11392009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1140
5adc433e
DN
1141 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1142
d67b4f80
DN
1143 * xterm.c (syms_of_xterm):
1144 * xselect.c (syms_of_xselect):
1145 * xmenu.c (syms_of_xmenu):
1146 * xfns.c (syms_of_xfns):
1147 * xfaces.c (syms_of_xfaces):
1148 * xdisp.c (syms_of_xdisp):
1149 * window.c (syms_of_window):
1150 * w32fns.c (syms_of_w32fns):
1151 * undo.c (syms_of_undo):
1152 * textprop.c (syms_of_textprop):
1153 * terminal.c (syms_of_terminal):
1154 * syntax.c (syms_of_syntax):
1155 * sound.c (syms_of_sound):
1156 * search.c (syms_of_search):
1157 * print.c (syms_of_print):
1158 * minibuf.c (syms_of_minibuf):
1159 * macros.c (syms_of_macros):
1160 * keymap.c (syms_of_keymap, initial_define_key)
1161 (initial_define_lispy_key):
1162 * keyboard.c (syms_of_keyboard):
1163 * insdel.c (syms_of_insdel):
1164 * image.c (syms_of_image):
1165 * fringe.c (syms_of_fringe):
1166 * frame.c (syms_of_frame):
1167 * fontset.c (syms_of_fontset):
1168 * fns.c (syms_of_fns):
1169 * fns.c (syms_of_fns):
1170 * fileio.c (syms_of_fileio):
1171 * fileio.c (syms_of_fileio):
1172 * eval.c (syms_of_eval):
1173 * doc.c (syms_of_doc):
1174 * dispnew.c (syms_of_display):
1175 * dired.c (syms_of_dired):
1176 * dbusbind.c (syms_of_dbusbind):
1177 * data.c (syms_of_data):
1178 * composite.c (syms_of_composite):
1179 * coding.c (syms_of_coding):
1180 * cmds.c (syms_of_cmds):
1181 * charset.c (define_charset_internal, syms_of_character):
1182 * ccl.c (syms_of_ccl):
1183 * category.c (syms_of_category, init_category_once):
1184 * casetab.c (syms_of_casetab):
1185 * casefiddle.c (syms_of_casefiddle):
1186 * callint.c (syms_of_callint):
1187 * bytecode.c (syms_of_bytecode):
1188 * buffer.c (keys_of_buffer, syms_of_buffer):
1189 * alloc.c (syms_of_alloc):
1190 * process.c (syms_of_process, init_process):
1191 * lread.c (syms_of_lread, init_obarray):
1192 * font.c (build_style_table):
1193 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1194 intern_c_string, calls to make_pure_string with
1195 make_pure_c_string. Use pure_cons instead of Fcons.
1196
5e2327cf
DN
1197 * process.c (socket_options): Make it const.
1198 (set_socket_option, init_process): Use a const pointer.
1199
1200 * lread.c (intern_c_string): New function.
1201 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1202 (defvar_int): Uset it. Make the name const char*.
1203
1204 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1205 (defvar_int): Update prototypes.
1206 (DEFUN, EXFUN): Support for prototypes is now required.
1207 (intern_c_string): New prototype.
1208 (struct Lisp_Subr): Make symbol_name constant.
1209
1210 * font.c (struct table_entry): Remove unused member. Make NAMES
1211 constant.
1212 (weight_table, slant_table, width_table): Make constant.
1213
1214 * emacs.c (struct standard_args): Make name and longname constant.
1215
1216 * character.h (DEFSYM): Use intern_c_string.
1217
a56eaaef
DN
12182009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1219
1220 * alloc.c (make_pure_c_string): New function.
1221
1222 * eval.c (Fautoload): Purecopy all arguments.
1223
f6a07420
KH
12242009-11-05 Kenichi Handa <handa@m17n.org>
1225
1226 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1227 the buffer in case of replace.
1228
5d28d4b1
DN
12292009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1230
1231 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1232
b349d111
SM
12332009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1234
d528b1ce
SM
1235 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1236 when applicable (bug#4851).
1237
b349d111
SM
1238 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1239 (P_): Support for prototypes is now required.
1240
c38eb027
CY
12412009-10-31 Chong Yidong <cyd@stupidchicken.com>
1242
1243 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1244 (Bug#4827).
1245
0405f8d9
EZ
12462009-10-30 Eli Zaretskii <eliz@gnu.org>
1247
d528b1ce 1248 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1249
ca0a881a
DN
12502009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1251
1252 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1253
d528b1ce
SM
1254 * lread.c (Fload): Purecopy the file name when building
1255 Vpreloaded_file_list.
ca0a881a 1256
47e0e0e4
JR
12572009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1258
1259 * w32fns.c (syms_of_w32fns): Change default value of
1260 w32-scroll-lock-modifier to nil. (Bug#2827)
1261
057bce6f
JB
12622009-10-26 Juanma Barranquero <lekktu@gmail.com>
1263
782a943e 1264 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1265
242bc74c
AS
12662009-10-26 Andreas Schwab <schwab@redhat.com>
1267
1268 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1269
522d013a
JB
12702009-10-26 Juanma Barranquero <lekktu@gmail.com>
1271
1272 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1273 For delta < 0, skip check that only makes sense when the mini-window
1274 is going to be enlarged. (Bug#4534)
1275
18060980
CY
12762009-10-25 Chong Yidong <cyd@stupidchicken.com>
1277
1278 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1279 string in menu maps (Bug#4471).
1280
fec8f0fe
CY
12812009-10-24 Chong Yidong <cyd@stupidchicken.com>
1282
1283 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1284 FRAME_NS_VIEW on terminal frames (Bug#4765).
1285
10d66ec0
AS
12862009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1287
1cae01f7
AS
1288 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1289 DBUS_TYPE_UINTnn separately to get proper sign extension.
1290
58a12889
AS
1291 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1292 can properly handle unsigned types.
d528b1ce 1293 (make_uid, make_gid): Remove.
58a12889 1294
987c9327
AS
1295 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1296 types again.
1297
522d013a 1298 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1299 (system_process_attributes): Likewise.
1300
905a9ed3
DN
13012009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1302
1303 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1304
1305 * eval.c (Fautoload): Purecopy the filename. Simplify.
1306
1307 * category.c (Fdefine_category): Purecopy docstring.
1308
a599b3e8
AS
13092009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1310
7b792fc9
AS
1311 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1312
a599b3e8
AS
1313 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1314
b35ac83e
CY
13152009-10-23 Chong Yidong <cyd@stupidchicken.com>
1316
1317 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1318 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1319 (Bug#4775).
1320
e8903e00
SM
13212009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1322
1323 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1324 (init_fileio_once):
1325 * lisp.h (init_fileio_once): Remove.
1326 * emacs.c (main): Don't call init_fileio_once.
1327
8f43cbf3
DN
13282009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1329
1330 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1331
26898943
AS
13322009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1333
1334 * doprnt.c (doprnt): Fix overflow check.
1335
5c646d5a
JD
13362009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1337
3132a7ea
JD
1338 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1339
5c646d5a
JD
1340 * xterm.h (x_wait_for_event): Declare it.
1341
1342 * xterm.c (pending_event_wait): New variable.
1343 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1344 see pending_event_wait.eventtype.
1345 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1346 (x_new_font): Call change_frame_size with new rows/columns before we
1347 try to resize the frame.
5c646d5a 1348 (x_wait_for_event): New function.
d528b1ce
SM
1349 (x_set_window_size_1): Don't change gravity unless change_gravity
1350 is set.
5c646d5a
JD
1351 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1352 don't change frame size, instead wait for the ConfigureNotify.
1353 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1354 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1355 (x_initialize): Initialize pending_event_wait.
1356
1357 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1358 size.
1359
1360 * widget.c (EmacsFrameSetValues): Add comment.
1361 (EmacsFrameSetCharSize): Just call x_set_window_size.
1362
1363 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1364 x_wait_for_event.
d528b1ce 1365 (flush_and_sync): Remove again.
5c646d5a
JD
1366 (xg_get_font_name): Suggest monospace if no previous font is known.
1367
e9c1637d
SM
13682009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1369
1370 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1371 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1372
5a72cccb
YM
13732009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1374
1375 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1376 processing pending events when event is filtered for input method.
ab04798f 1377 (Bug#3681)
5a72cccb 1378
2629aa37
JB
13792009-10-20 Juanma Barranquero <lekktu@gmail.com>
1380
1381 * fns.c: Add #endif accidentally removed in previous change.
1382
c3417a74
DN
13832009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1384
1385 * fns.c: Remove code for unsupported system: MAC_OS.
1386 * image.c: Likewise. Include setjmp.h.
1387
9685cef2
JD
13882009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1389
1390 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1391 pixel -1 (bug #4742).
1392
d7306fe6
DN
13932009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1394
019d2c4c
DN
1395 * process.c (create_pty): Remove conditionals for no longer
1396 supported systems: UNIPLUS and RTU.
1397
ee6bacd4
DN
1398 * xterm.c:
1399 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1400
d7306fe6
DN
1401 * alloc.c: Do not define struct catchtag.
1402 * eval.c: Move struct catchtag definition ...
1403 * lisp.h: ... here.
1404
1405 * image.c: Move png.h #include earlier to avoid warnings.
1406
1407 * xterm.c:
1408 * xsmfns.c:
1409 * xselect.c:
1410 * xrdb.c:
1411 * xmenu.c:
1412 * xftfont.c:
1413 * xfont.c:
1414 * xfns.c:
1415 * xfaces.c:
1416 * xdisp.c:
1417 * window.c:
1418 * widget.c:
1419 * w32xfns.c:
1420 * w32uniscribe.c:
1421 * w32term.c:
1422 * w32select.c:
1423 * w32reg.c:
1424 * w32proc.c:
1425 * w32menu.c:
1426 * w32inevt.c:
1427 * w32heap.c:
1428 * w32font.c:
1429 * w32fns.c:
1430 * w32console.c:
1431 * w32.c:
1432 * w16select.c:
1433 * vm-limit.c:
1434 * unexsol.c:
1435 * unexec.c:
1436 * unexcw.c:
1437 * unexaix.c:
1438 * undo.c:
1439 * tparam.c:
1440 * textprop.c:
1441 * terminfo.c:
1442 * terminal.c:
1443 * termcap.c:
1444 * term.c:
1445 * syntax.c:
1446 * sound.c:
1447 * sheap.c:
1448 * search.c:
1449 * scroll.c:
1450 * region-cache.c:
1451 * regex.c:
1452 * ralloc.c:
1453 * process.c:
1454 * print.c:
b024548b
DN
1455 * nsterm.m:
1456 * nsselect.m:
1457 * nsmenu.m:
1458 * nsimage.m:
1459 * nsfont.m:
1460 * nsfns.m:
d7306fe6
DN
1461 * msdos.c:
1462 * minibuf.c:
1463 * menu.c:
1464 * marker.c:
1465 * macros.c:
1466 * keymap.c:
1467 * keyboard.c:
1468 * intervals.c:
1469 * insdel.c:
1470 * indent.c:
1471 * gtkutil.c:
1472 * ftxfont.c:
1473 * ftfont.c:
1474 * fringe.c:
1475 * frame.c:
1476 * fontset.c:
1477 * font.c:
1478 * fns.c:
1479 * floatfns.c:
1480 * filelock.c:
1481 * fileio.c:
1482 * emacs.c:
1483 * editfns.c:
1484 * dosfns.c:
1485 * doprnt.c:
1486 * doc.c:
1487 * dispnew.c:
1488 * dired.c:
1489 * dbusbind.c:
1490 * data.c:
1491 * composite.c:
1492 * coding.c:
1493 * cmds.c:
1494 * cm.c:
1495 * chartab.c:
1496 * charset.c:
1497 * character.c:
1498 * ccl.c:
1499 * category.c:
1500 * casetab.c:
1501 * casefiddle.c:
1502 * callproc.c:
1503 * callint.c:
1504 * bytecode.c:
1505 * buffer.c:
1506 * atimer.c: Include setjmp.h. (Bug#4643)
1507
fd5f21e6
SM
15082009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1509
4c0354d7
SM
1510 Remove leftover table unibyte_to_multibyte_table.
1511 * character.c (unibyte_to_multibyte_table): Remove.
1512 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1513 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1514 * character.h (UNIBYTE_TO_CHAR): New macro.
1515 (MAKE_CHAR_MULTIBYTE): Use it.
1516 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1517 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1518 (message_dolog, set_message_1):
1519 * search.c (Freplace_match):
1520 * editfns.c (Fcompare_buffer_substrings):
1521 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1522 (concat):
1523 * insdel.c (copy_text, count_size_as_multibyte):
1524 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1525 * term.c (produce_glyphs):
1526 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1527 * regex.c (RE_CHAR_TO_MULTIBYTE):
1528 * cmds.c (internal_self_insert):
1529 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1530
fd5f21e6
SM
1531 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1532
4418646e
DN
15332009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1534
1535 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1536
35f5c1d2
JB
15372009-10-16 Juanma Barranquero <lekktu@gmail.com>
1538
1539 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1540
a0cd8f6b
AR
15412009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1542
1543 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1544 still needed under Tiger.
1545
1546 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1547
1548 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1549 __Apple__.
1550
1551 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1552
01a8d3fa
KH
15532009-10-15 Kenichi Handa <handa@m17n.org>
1554
1555 * print.c (print_object): Escape a symbol like "2E10" too.
1556
bf6c75c9 15572009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1558
1559 Cleanups and changes for 64-bit compile under Snow Leopard.
1560 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1561
1562 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1563
c5959062 1564 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1565 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1566 cast argument.
1567 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1568 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1569
1570 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1571
1572 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1573 where appropriate.
1574
1575 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1576 where appropriate.
6e4780c5
JB
1577 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1578 Use stringWithUTF8String.
bf6c75c9
AR
1579 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1580
6e4780c5
JB
1581 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1582 Add formal protocol mention to inheritance.
bf6c75c9
AR
1583 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1584
6e4780c5
JB
1585 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1586 Fix printf format.
bf6c75c9
AR
1587 (ns_query_color): Use CGFloat where appropriate.
1588 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1589 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1590 argument.
1591
3d87f118
AR
1592 * config.in (NS_HAVE_NSINTEGER): Drop.
1593
a95c8102
AR
1594 * dbusbind.c (dbus-method-return-internal)
1595 (dbus-method-error-internal): Use long format in printf, and cast
1596 argument.
1597
1598 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1599 in printf, and cast argument.
1600
6873acca 1601 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1602 cast argument.
1603
9ec6f100
GM
16042009-10-11 Glenn Morris <rgm@gnu.org>
1605
1606 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1607
5be883cd
JD
16082009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1609
1610 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1611 menu bar with a small width so it doesn't enlarge the frame.
1612
d7a39b51
JB
16132009-10-08 Juanma Barranquero <lekktu@gmail.com>
1614
1615 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1616
0c2b6f8e
GM
16172009-10-06 Glenn Morris <rgm@gnu.org>
1618
1619 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1620 SOME_MACHINE_LISP (this enters indirectly via DOC).
1621
e02131a2
EZ
16222009-10-05 Eli Zaretskii <eliz@gnu.org>
1623
1624 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1625
b4744254
EZ
16262009-10-04 Eli Zaretskii <eliz@gnu.org>
1627
1628 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1629 Doc fix.
1630
dbf64827
JB
16312009-10-03 Martin Rudalics <rudalics@gmx.at>
1632
1633 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1634
e9a0aef8
MA
16352009-10-02 Michael Albinus <michael.albinus@gmx.de>
1636
d528b1ce 1637 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1638 used anymore outside fileio.c.
1639
1640 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1641
64eb2b56
JB
16422009-10-01 Juanma Barranquero <lekktu@gmail.com>
1643
1644 * lisp.h (Qdelete_directory_internal):
1645 Declare, instead of Qdelete_directory.
1646
1647 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1648
9d28c33e
SM
16492009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1650
1651 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1652
9d8f3bd9
MA
16532009-10-01 Michael Albinus <michael.albinus@gmx.de>
1654
9d28c33e 1655 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1656 Fdelete_directory. It is not a command anymore. It has no file
1657 name handler.
1658
9694740b
SM
16592009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1660
1661 * xdisp.c (get_next_display_element): Use an enum in last change.
1662
748e162f
KH
16632009-09-28 Kenichi Handa <handa@m17n.org>
1664
9694740b 1665 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1666 unibyte_display_via_language_environment in handling
1667 Vnobreak_char_display.
1668
17efd58d
AR
16692009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1670
1671 * nsterm.h (ns_app_name): New extern variable.
1672
1673 * nsterm.m (ns_app_name): New variable.
1674 (ns_term_init): Set and use it.
1675 (ns_term_shutdown): Use it.
1676
1677 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1678 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1679
1680 * nsfns.m (ns_set_name_iconic, ns_set_name)
1681 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1682 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1683
9694740b
SM
1684 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1685 Remove double-casting in client_data comparison.
31c2d412 1686
3208cb35
YM
16872009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1688
1689 * keyboard.c (make_lispy_event): Remember last wheel direction.
1690 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1691
b7d552d6
GM
16922009-09-26 Glenn Morris <rgm@gnu.org>
1693
1694 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1695 internal.elc. Add term/pc-win.elc.
1696 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1697 term/x-win.elc.
1698 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1699 term/w32-win.elc.
1700 (NS_SUPPORT): New.
1701 (lisp): Add NS_SUPPORT.
1702 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1703
4ff670a8
DR
17042009-09-25 David Reitter <david.reitter@gmail.com>
1705
1706 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1707 on Mac OS X 10.6+ (bug#4513).
1708
feabfb6c
JB
17092009-09-24 Juanma Barranquero <lekktu@gmail.com>
1710
1711 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1712 some parts of Emacs code (like font selection) don't grok them.
1713 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1714
de59072a
AS
17152009-09-24 Andreas Schwab <schwab@redhat.com>
1716
1717 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1718
a489517b
JB
17192009-09-24 Juanma Barranquero <lekktu@gmail.com>
1720
1721 * dired.c (Fdirectory_files): Fix typo in docstring.
1722
0592970c
AR
17232009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1724
1725 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1726 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1727 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1728 under GNUstep.
1729 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1730
1731 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1732 glyph advancement.
1733
48e8a88b
AR
17342009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1735
1736 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1737 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1738
1739 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1740 deleted (bug #4492).
1741
e14f0a78
AR
1742 * nsfont.m (Vns_reg_to_script): New lisp variable.
1743 (syms_of_nsfont): Declare it.
1744 (ns_registry_to_script): New function.
1745 (ns_get_req_script): Call it.
1746 (ns_findfonts): Don't give up on non-unicode registry.
1747
1748 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1749
5b650faa
SM
17502009-09-20 Tom Tromey <tromey@redhat.com>
1751
1752 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1753 batch mode (bug#4228).
1754
a489517b 17552009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1756
1757 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1758 carefully. (Bug #4339)
0bae4e09 1759
fcfe06f3
CY
17602009-09-18 Chong Yidong <cyd@stupidchicken.com>
1761
d798ba87 1762 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1763
31642728
AR
17642009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1765
1766 * emacs.c (inhibit_x_resources): Update doc string for NS.
1767 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1768 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1769
1770 * nsterm.h (ns_no_defaults): Remove.
1771
1772 * nsterm.m (ns_no_defaults): Remove.
1773 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1774 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1775 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1776 don't update the NSWindow itself.
1777 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1778 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1779
1780 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1781 ns_use_qd_smoothing.
1782
1783 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1784 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1785 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1786 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1787
8686ac71
JB
17882009-09-17 Juanma Barranquero <lekktu@gmail.com>
1789
1790 * emacs.c (inhibit_x_resources): New variable.
1791 (main) [HAVE_NS]: Don't process --quick command line option.
1792 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1793
1794 * lisp.h (inhibit_x_resources): Declare it extern.
1795
1796 * w32reg.c (x_get_string_resource):
1797 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1798
e227ba05
EZ
17992009-09-17 Eli Zaretskii <eliz@gnu.org>
1800
362654a6
JB
1801 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1802 Add lisp/term/internal.elc.
e227ba05 1803
742d40e8
SM
18042009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1805
1806 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1807 (bug#4461).
1808
005bd5a2
DN
18092009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1810
1811 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1812
1813 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1814 (OBJECTS_MACHINE): Remove, unused.
1815
f9af9719
SM
18162009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1817
1818 * frame.c (x_get_resource_string): Remove unused.
1819
0307c7d2
JD
18202009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1821
1822 * xterm.c (x_new_font): Call change_frame_size before calling
1823 x_set_window_size, in case frame size won't change.
1824
1825 * frame.c (x_set_font): Remove dead code.
1826
428b13d6
SM
18272009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1828
1829 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1830
5766c380
SM
18312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1832
1833 * lread.c (Fload): Don't output a message after loading an obsolete
1834 package any more (done in Lisp now).
1835
2fd0161b
CY
18362009-09-12 Chong Yidong <cyd@stupidchicken.com>
1837
1838 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1839
bc5e75b6
SM
18402009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1841
1842 * keymap.c (Fwhere_is_internal): Use nconc2.
1843
c31c985e
AM
18442009-09-11 Alan Mackenzie <acm@muc.de>
1845
1846 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1847 batch mode.
1848
78012bd2
AS
18492009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1850
1851 * xdisp.c (display_mode_element): Detect cycles.
1852
9d889332
SM
18532009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1854
1855 * keymap.c (where_is_internal): Don't erroneously return nil right after
1856 filling the cache.
1857 (where_is_internal_1): Fix up typo.
1858
7ab5d780
GM
18592009-09-11 Glenn Morris <rgm@gnu.org>
1860
1861 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1862 share a common doc-string.
1863
5238a749
SM
18642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1865
66d77eda
SM
1866 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1867 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1868
5238a749
SM
1869 * keymap.c (QCadvertised_binding): New constant.
1870 (syms_of_keymap): Initialize it.
1871 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1872 if applicable.
1873
19f48442
SM
18742009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1875
50d4ba39
SM
1876 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1877 (parse_menu_item): Streamline since bindings are recomputed all the
1878 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1879 more and don't support lmenu's menu-alias any more either.
1880
a88a5372
SM
1881 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1882 (where_is_internal): Strip it down to only traverse the keymaps.
1883 Move the cache handling from Fwhere_is_internal to here.
1884 (Fwhere_is_internal): Move the handling of remapping and the choice of
1885 the best binding from where_is_internal to here.
1886 Unify the cached/noncached paths, so remapping is also handled
1887 correctly when the cache is used, and so the cache can be used to
1888 speed up remap-handling when applicable.
1889 Give preference to non-remapped bindings.
1890 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1891 non-remapped bindings.
1892 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1893 command remapping.
1894
19f48442
SM
1895 * xdisp.c (display_mode_element): Move list length limit from 50 to
1896 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1897
599498c3 18982009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1899
1900 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1901
f9b7b5ac
SM
19022009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1903
a53af587
JB
1904 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1905 (Bug#4334)
1906
f9b7b5ac
SM
1907 * keymap.c (where_is_internal): Filter out shadowed remappings.
1908 Assume that where_is_internal returns unshadowed bindings to simplify
1909 the code and get rid of the gotos. Use ASIZE.
1910
04f4b72d
JD
19112009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1912
4da146f2
JD
1913 * xterm.c (x_focus_changed): If we get a focusout and pointer
1914 is invisible, make it visible.
1915
04f4b72d
JD
1916 * xterm.h: Remove condition for declaration of
1917 x_*_window_to_frame.
1918
7cef7ce3
SM
19192009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1920
1921 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1922 initial terminal as well.
1923
a54fa5b7
JD
19242009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1925
1926 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1927 x_menubar_window_to_frame.
a54fa5b7
JD
1928
1929 * xterm.c: Remove declarations also in xterm.h
1930 (XTmouse_position): Do not return valid positions
1931 for clicks in the menubar and the toolbar for Gtk+.
1932
1933 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1934 if the widget for the event has the same top level as a frame,
1935 return the frame.
1936 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1937 internal windows, bug #4122.
1938 (x_non_menubar_window_to_frame): Remove.
1939
5a021dd0
GM
19402009-09-02 Glenn Morris <rgm@gnu.org>
1941
1942 * buffer.c (default-major-mode): Move most of the doc from here...
1943 (major-mode): ... to here.
1944
548fe2f3
NR
19452009-08-30 Nick Roberts <nickrob@snap.net.nz>
1946
1947 * process.c (wait_reading_process_output): Keep the descriptor
1948 when pty is used by a non-child process, e.g., in I/O buffer of
1949 GDB this allows inferior to be restarted.
1950
e0840eef
EZ
19512009-08-29 Eli Zaretskii <eliz@gnu.org>
1952
1953 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1954 both branches into one.
1955
82e98df4
SM
19562009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1957
1958 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1959 (main): Use enable-multibyte-characters rather than
1960 default-enable-multibyte-characters. Output a warning message when
1961 running a unibyte session.
1962
890617cb
YM
19632009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1964
1965 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1966 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1967 (copy_data_segment): Also copy __program_vars section.
1968 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1969 (dump_it) [LC_DYLD_INFO]: Use it.
1970
1971 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1972
e7adeadc
EZ
19732009-08-28 Eli Zaretskii <eliz@gnu.org>
1974
1975 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1976 $(SRC)/buildobj.h.
1977 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1978 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1979 $(SRC)/buildobj.h.
1980 (clean): Add buildobj.h.
1981
3ed8bbdc
TZ
19822009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1983
1984 * print.c (print_object): Set escapeflag to 1 when printing
1985 hashtable keys and values.
1986
155a6764
SM
19872009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1988
1989 * lread.c (read_integer): Use doubles (and potentially return a float
1990 number) as we do in string-to-number.
1991 (read1): Use strtol to read integers, signal errors on strtol's
1992 overflow and use floats if strtol's output is too large for
1993 Elisp integers.
1994
877610de
EZ
19952009-08-27 Eli Zaretskii <eliz@gnu.org>
1996
1997 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1998 (make-buildobj-SH): Fix last change.
1999 (SRC): Move to before where it's first used.
2000
ef73e7be
KH
20012009-08-27 Kenichi Handa <handa@m17n.org>
2002
550c8289
KH
2003 * process.c (send_process): Use encode_coding_object instead of
2004 encode_coding_string to perform eol-conversion even if the string
2005 is unibyte.
2006
60afa08d
KH
2007 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2008 character.
2009
ef73e7be 2010 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2011 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2012
7b3a82d7
DN
20132009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2014
5654bf63
DN
2015 * callproc.c (Fcall_process): Remove always true #if.
2016
7b3a82d7
DN
2017 * lisp.h: Replace #if 0 code for checking with text pointing to
2018 the --enable-checking configure flag.
2019
2020 * emacs.c (main): Mention the --enable-profiling configure flag
2021 instead of using CFLAGS.
2022
878bde49
KR
20232009-08-26 Ken Raeburn <raeburn@raeburn.org>
2024
2025 * Makefile.in (buildobj.h): New target.
2026 (doc.o): Depend on it.
2027 (temacs${EXEEXT}): Don't generate buildobj.lst.
2028 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2029 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2030 ($(BLD)/doc.$(O)): Depend on it.
2031 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2032 provided by Eli Zaretskii.)
2033 ($(TEMACS)): Don't generate buildobj.lst.
2034 * doc.c: Include buildobj.h.
2035 (buildobj): New static variable.
2036 (Fsnarf_documentation): Use it, instead of opening and reading
2037 buildobj.lst.
2038
1574224c
MA
20392009-08-25 Michael Albinus <michael.albinus@gmx.de>
2040
2041 * dbusbind.c (Fdbus_call_method)
2042 (Fdbus_call_method_asynchronously): Use English numeric format for
2043 timeout values in doc string.
2044
d9da2f45
KH
20452009-08-25 Kenichi Handa <handa@m17n.org>
2046
ef73e7be
KH
2047 * alloc.c (mark_char_table): New function.
2048 (mark_object): Use mark_char_table for a char-table.
2049
d9da2f45
KH
2050 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2051 (CHAR_TABLE_REF): Use it.
2052
c8edcc01
KR
20532009-08-23 Ken Raeburn <raeburn@raeburn.org>
2054
2055 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2056 before invoking the newly build emacs to check for load-path
2057 shadowing.
2058
7763401b
GM
20592009-08-22 Glenn Morris <rgm@gnu.org>
2060
2061 * Makefile.in (bootstrap_exe): New variable.
2062 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2063 Use ${bootstrap_exe}.
2064
729eadda
EZ
20652009-08-22 Eli Zaretskii <eliz@gnu.org>
2066
2067 * coding.h (encode_coding_string): Don't encode unibyte strings.
2068 (Bug#4047)
2069
eb4c6ace
MA
20702009-08-22 Michael Albinus <michael.albinus@gmx.de>
2071
2072 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2073
2074 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2075 intended as hotfix only.
2076 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2077
36e34d1b
AR
20782009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2079
2080 * nsterm.m (ns_get_color): Update documentation properly for last
2081 change, and clean up loose ends in the code left by it. Fix
2082 longstanding bug with 16-bit hex parsing, and add support for
2083 yet another X11 format (rgb:r/g/b) for compatibility.
2084 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2085 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2086
f983eb8a
SM
20872009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2088
2089 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2090
3f56d3c6
MA
20912009-08-20 Michael Albinus <michael.albinus@gmx.de>
2092
2093 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2094 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2095 (xd_initialize, xd_pending_messages): Check, whether
2096 $DBUS_SESSION_BUS_ADDRESS is set.
2097
fb641d68
YM
20982009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2099
2100 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2101
2102 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2103
cf59a374
GM
21042009-08-20 Glenn Morris <rgm@gnu.org>
2105
2106 * emacs.c (system-type): Doc fix.
2107
1373f3be
SM
21082009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2109
2110 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2111 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2112
058ed861
MA
21132009-08-18 Michael Albinus <michael.albinus@gmx.de>
2114
1373f3be
SM
2115 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2116 New functions.
058ed861
MA
2117 (xd_initialize): Revert change from 2009-08-16.
2118
563a866e 21192009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2120
2121 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2122 font-group vector, return nil.
5fc05db0 2123
e42bdf01
CY
21242009-08-17 Chong Yidong <cyd@stupidchicken.com>
2125
2126 * process.c (status_notify): Don't perform redisplay.
2127 (Fdelete_process, list_processes_1, process_send_signal):
2128 Expliticly perform redisplay.
2129 (wait_reading_process_output): Always check process status, but
2130 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2131
4230ab74
KR
21322009-08-17 Ken Raeburn <raeburn@raeburn.org>
2133
1373f3be 2134 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2135 (XFLOAT_INIT): New macro for storing a float value.
2136 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2137 * fns.c (sxhash): Copy out the value of a float in order to
2138 examine its bytes.
2139 * dbusbind.c (xd_append_arg): Likewise.
2140
4230ab74
KR
2141 * emacs.c (main): Don't call syms_of_data twice.
2142
a0645cdd
MA
21432009-08-16 Michael Albinus <michael.albinus@gmx.de>
2144
2145 * dbusbind.c (xd_initialize): Add connection file descriptor to
2146 input_wait_mask, in order to let select() detect, whether a new
2147 message has been arrived.
ca4f31ea 2148 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2149
485db0ba
MA
21502009-08-15 Michael Albinus <michael.albinus@gmx.de>
2151
1373f3be
SM
2152 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2153 New functions.
485db0ba
MA
2154
2155 * lisp.h (xd_pending_messages): Declare.
2156
2157 * keyboard.c (readable_events): Call xd_pending_messages.
2158
b5b98ff4
CY
21592009-08-15 Chong Yidong <cyd@stupidchicken.com>
2160
1373f3be 2161 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2162
f8354c6e
CY
2163 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2164
b5b98ff4
CY
2165 * buffer.c (set_buffer_internal_1)
2166 (swap_out_buffer_local_variables): Check for unbound local
2167 variables (Bug#4138).
2168
8b9fc636
EZ
21692009-08-14 Eli Zaretskii <eliz@gnu.org>
2170
2171 * process.c (create_pty): Fix last change.
2172
ce959360
CY
21732009-08-13 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2176 (xbm_load_image): Caller changed.
64b807c9 2177 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2178
c7baf7e9
NR
21792009-08-13 Nick Roberts <nickrob@snap.net.nz>
2180
2181 * process.c (create_pty): New function.
2182 (Fstart_process): Use it to allow Emacs to just associate a pty
2183 with the buffer. See associated change in gdb-mi.el.
2184 (list_processes_1): Deal with no program name.
2185 (start_process_unwind): Use pid == -2 to mean no process.
2186
1ac9108a
SM
21872009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2188
2189 * cmds.c (nonundocount): New global variable.
2190 (keys_of_cmds): Initialize it.
2191 (Fself_insert_command): Use it to combine upto 20 sequential chars
2192 into a single undo entry, just like the Qself_insert_command code in
2193 keyboard.c does.
2194 Call frame_make_pointer_invisible, also like the Qself_insert_command
2195 code in keyboard.c does.
2196 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2197 than its own local replacement for it.
2198
e267324c
KR
21992009-08-10 Ken Raeburn <raeburn@raeburn.org>
2200
1ac9108a 2201 * fns.c (concat): Don't re-set string length to its current value.
77437343 2202
1ac9108a
SM
2203 * coding.h (decode_coding_string, encode_coding_string):
2204 Use SBYTES macro.
f0bed503 2205
1ac9108a 2206 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2207 (doprnt): Merge with doprnt1, discarding lispstrings code.
2208 * lisp.h (doprnt_lisp): Don't declare.
2209
416e006d
JL
22102009-08-07 Juri Linkov <juri@jurta.org>
2211
2212 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2213
6f7d5780
DN
22142009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2215
2216 * print.c (syms_of_print): Undo previous change.
2217
f19a0f5b
TZ
22182009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2219
2220 * lread.c (read1, syms_of_lread): Read hashtables back from the
2221 readable format.
2222
2223 * print.c (print_preprocess, print_object): Print hashtables fully
2224 and readably.
2225 (syms_of_print): Provide 'hashtable-print-readable.
2226
b9173dc2
AR
22272009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2228
2229 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2230 no family set.
2231 (nsfont_open): Handle case when entity has no family.
2232
1586503c
AR
22332009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2234
2235 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2236 element, not a list, for match case.
2237
087048cd
KH
22382009-07-28 Kenichi Handa <handa@m17n.org>
2239
2240 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2241 rigidly.
2242
2243 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2244 font_parse_xlfd. Check font properties more rigidly.
2245
780c2506
DN
22462009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2247
31fd7c5c
JB
2248 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2249 bsd-common.h.
780c2506 2250
a8c0cc18
KH
22512009-07-27 Kenichi Handa <handa@m17n.org>
2252
2253 * xfaces.c (face_with_height): Call font_clear_prop.
2254
4fbe2306
CY
22552009-07-26 Chong Yidong <cyd@stupidchicken.com>
2256
111d9af3
CY
2257 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2258
2259 * xterm.c (x_term_init): Use Qx.
2260
4fbe2306
CY
2261 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2262
1ac9108a 2263 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2264 (ns_get_color): Revert 2009-07-16 change.
2265
beb0b7f9
EZ
22662009-07-25 Eli Zaretskii <eliz@gnu.org>
2267
2268 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2269 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2270
2baf5e76
KR
22712009-07-25 Ken Raeburn <raeburn@raeburn.org>
2272
1ac9108a
SM
2273 * coding.h (decode_coding_string, encode_coding_string):
2274 Use SCHARS macro.
8890e5f5 2275
2baf5e76 2276 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2277 (load_depth): Delete.
2baf5e76
KR
2278 (Qload_in_progress): New variable.
2279 (load_unwind): Don't reference load_depth or load_in_progress.
2280 (Fload): Likewise; specbind Qload_in_progress instead.
2281 (init_lread): Don't initialize load_depth.
2282 (syms_of_lread): Initialize and protect Qload_in_progress.
2283
1395c6f5
AR
22842009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2285
2286 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2287
4e2f36cf
AR
22882009-07-23 Yavor Doganov <yavor@gnu.org>
2289
2290 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2291
5dd9a6f7
AR
22922009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2293
2294 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2295 Bugs 3792, 3720, 2402.
2296 (ns_lookup_indexed_color): Check for bad index.
2297 (ns_index_color): Init unused slot to 0.
2298 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2299 Bug 3714, possibly 3082.
5dd9a6f7 2300
c902b920
JR
23012009-07-22 Jason Rumney <jasonr@gnu.org>
2302
1ac9108a
SM
2303 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2304 Position IME window at cursor (Bug#2570).
c902b920
JR
2305 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2306 (globals_of_w32fns): Dynamically load functions required above.
2307
2308 * w32term.c (w32_draw_window_cursor): Send message to reposition
2309 any IME window.
2310
090101cf
CY
23112009-07-21 Chong Yidong <cyd@stupidchicken.com>
2312
2313 * fileio.c: Revert 2009-07-16 changes.
2314 (Vauto_save_include_big_deletions): New variable.
2315 (Fdo_auto_save): Disable auto-save only if
2316 auto-save-include-big-deletions is nil.
2317
e6583e3d
CY
23182009-07-21 Chong Yidong <cyd@stupidchicken.com>
2319
2320 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2321 the overflowed pixels into account (Bug#3879).
2322
ece435a5
KR
23232009-07-21 Ken Raeburn <raeburn@raeburn.org>
2324
2325 * lread.c (load_depth): New variable.
2326 (Fload, load_unwind, init_lread): Set it to the load recursion
2327 depth; set load_in_progress as a simple boolean based on the
2328 current load_depth. (Bug#3892)
2329
40b2d973
AR
23302009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2331
2332 * nsfont.m (ns_has_attribute): Remove.
2333 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2334
10be7e0d
JL
23352009-07-18 Juri Linkov <juri@jurta.org>
2336
2337 * process.c (Fset_process_query_on_exit_flag): Mention killing
2338 a buffer in docstring.
2339
fa055055
KH
23402009-07-17 Kenichi Handa <handa@m17n.org>
2341
2342 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2343
042f7b69
YM
23442009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2345
2346 * nsfns.m (Fns_set_alpha): Remove function.
2347 (syms_of_nsfns): Don't defsubr it.
2348
2349 * nsterm.m (ns_get_color): Remove incompatible color formats.
2350 (ns_color_to_lisp): Generate #rrggbb color format string.
2351
4be941e3
RS
23522009-07-16 Richard Stallman <rms@gnu.org>
2353
2354 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2355 (Fset_buffer_auto_saved): Handle save_length = -2.
2356
4e6b227d
CY
23572009-07-16 Chong Yidong <cyd@stupidchicken.com>
2358
2359 * xterm.c (Qx_gtk_map_stock): New var.
2360
2361 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2362 of calling intern each time.
2363
a1856973
YM
23642009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2365
2366 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2367 does tiling.
2368
2369 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2370
497e54d8
KH
23712009-07-14 Kenichi Handa <handa@m17n.org>
2372
72d36834
KH
2373 * font.c (font_vconcat_entity_vectors): New function.
2374 (struct font_sort_data): New member font_driver_preference.
2375 (font_compare): Check font_driver_preference.
2376 (font_sort_entities): The format of the first argument changed.
2377 (font_delete_unmatched): Likewise.
2378 (font_list_entities): The return type changed.
2379 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2380 (font_find_for_lface): Adjuste for the above changes.
2381 Don't suppress the checking of C even if the repertory supports it.
2382 (Flist_fonts): Adjust for the above changes.
72d36834 2383
1ac9108a
SM
2384 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2385 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2386 Reject a font who has adstyle property that is different from a
2387 langname derived from registry property.
1ac9108a 2388 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2389
b6046155
EZ
23902009-07-13 Eli Zaretskii <eliz@gnu.org>
2391
2392 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2393 local copy of dirfilename.
2394
fb6b6049
KH
23952009-07-13 Kenichi Handa <handa@m17n.org>
2396
e2402a5e
KH
2397 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2398 against max_char.
2399
fb6b6049
KH
2400 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2401 calling XSYMBOL (sym).
2402
65156807
EZ
24032009-07-11 Eli Zaretskii <eliz@gnu.org>
2404
1ac9108a
SM
2405 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2406 New function.
2407 (directory_files_internal) [WINDOWSNT]:
2408 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2409 the filesystem of the directory is fast or slow.
2410
2411 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2412 file name.
2413 (is_slow_fs): New function.
2414 (stat): Use it to determine whether to issue more system calls to
2415 get accurate file attributes, when w32-get-true-file-attributes is
2416 `local'.
2417
e0ab5fcf
JD
24182009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2419
2420 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2421 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2422 parameter font-parameter as default to the font dialog.
2423
784ceded
KH
24242009-07-10 Kenichi Handa <handa@m17n.org>
2425
2426 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2427
fb8edc0b
EZ
24282009-07-09 Eli Zaretskii <eliz@gnu.org>
2429
1ac9108a 2430 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2431
fb8edc0b
EZ
2432 * w32.c (stat): Treat UNC file names as residing on remote
2433 drives. (Bug#3542)
2434
635c75b1
KH
24352009-07-09 Kenichi Handa <handa@m17n.org>
2436
2437 * fontset.c (fontset_find_font): Fix previous change.
2438
c1d5ce94
MA
24392009-07-08 Michael Albinus <michael.albinus@gmx.de>
2440
2441 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2442 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2443 error flag.
2444
edb61b39
KH
24452009-07-08 Kenichi Handa <handa@m17n.org>
2446
374bf7e4
KH
2447 * fontset.c (fontset_find_font): Fix the logic of handling
2448 charset_matched.
2449 (font_for_char): Delete unused var.
2450 (generate_ascii_font_name): Delete it.
2451
edb61b39
KH
2452 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2453
2454 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2455 (encode_coding_sjis): Fix the code range check.
2456
0f3f018c
CY
24572009-07-07 Chong Yidong <cyd@stupidchicken.com>
2458
2459 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2460 (Fexpand_file_name): Copy string data properly (Bug#3772).
2461
fcaf6f3a
JD
24622009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2463
2464 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2465 first MapNotify.
2466
6809ca75
KH
24672009-07-07 Kenichi Handa <handa@m17n.org>
2468
2469 * character.h (unibyte_has_multibyte_table): Delete extern.
2470 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2471
2472 * charset.c (Fset_charset_priority): Update charset_unibyte.
2473 (syms_of_charset): Initialize charset_unibyte.
2474
2475 * character.c (unibyte_has_multibyte_table): Delete it.
2476 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2477 charset_unibyte.
2478 (multibyte_char_to_unibyte_safe): Likewise.
2479 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2480
1ac9108a 2481 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2482 (x_produce_glyphs): Likewise.
2483
2484 * .gdbinit (xcharset): Fix the treating $arg0.
2485
ad9e2d54
EZ
24862009-07-04 Eli Zaretskii <eliz@gnu.org>
2487
2488 Emulation of `getloadavg' on MS-Windows.
2489 * w32.c: Include float.h
2490 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2491 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2492 (get_native_system_info, get_system_times): New functions.
2493 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2494 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2495 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2496 g_b_init_get_system_times, and num_of_processors.
2497
0a3472c7
JR
24982009-07-03 Jason Rumney <jasonr@gnu.org>
2499
2500 * w32term.c (w32_initialize): Use standard types.
2501
80904120
EZ
25022009-07-03 Eli Zaretskii <eliz@gnu.org>
2503
2504 * dired.c (Ffile_attributes): Decode user and group names by the
2505 locale's encoding. (Bug#3443)
2506
6978862d
DN
25072009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2508
f8d23104
DN
2509 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2510 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2511
2512 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2513
2514 * term.c (init_tty): Remove spurious #ifdef.
2515
6978862d
DN
2516 * m/mips.h: Mention this file is also used for netbsd.
2517 * m/pmax.h: Remove file.
2518
e044e4fc
JD
25192009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2520
2521 * xterm.h (struct x_display_info): Add invisible_cursor.
2522 (struct x_output): Add current_cursor.
2523
2524 * xterm.c (XTtoggle_invisible_pointer): New function.
2525 (x_define_frame_cursor): Don't define cursor if invisible or the
2526 same as before. Set current_cursor.
2527 (x_create_terminal): Set toggle_invisible_pointer_hook.
2528
2529 * xfns.c (make_invisible_cursor): New function.
2530 (x_set_mouse_color): Call make_invisible_cursor.
2531 Set current_cursor.
2532 (x_window): Set current_cursor.
2533
2534 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2535
2536 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2537 inserting a character.
2538 (read_avail_input): Call frame_make_pointer_visible.
2539
2540 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2541 (frame_make_pointer_invisible, frame_make_pointer_visible):
2542 New functions.
e044e4fc
JD
2543 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2544
2545 * frame.h: Declare frame_make_pointer_invisible and
2546 frame_make_pointer_visible.
2547 (struct frame): Add pointer_invisible.
2548
574c8efa
JD
25492009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2550
7b507248
JD
2551 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2552 frame isn't visible.
2553 (xg_frame_resized): If width/height is -1, get size of window
2554 from X server.
2555
2556 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2557 for MapNotify.
2558
835bdaa7 2559 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2560 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2561 (flush_and_sync): Reintroduce.
574c8efa 2562
3f1c6666 25632009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2564
31fd7c5c 2565 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2566
2567 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2568 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2569
2570 * frame.h: Declare Qsticky.
2571
cad9ef74
JD
2572 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2573
2574 * nsfns.m (ns_frame_parm_handlers): Ditto.
2575
2576 * frame.c: Declare Qsticky.
2577 (frame_parms): Add sticky.
2578
2579 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2580
2581 * xterm.h: Declare x_set_sticky.
2582
2583 * xterm.c (x_set_sticky): New function.
2584
69b16610
JD
2585 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2586 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2587 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2588
2589 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2590
2591 * frame.c: Qmaximized is new.
2592 (x_set_frame_parameters): Do not handle fullscreen specially.
2593 Only set width and height if explicitly set.
2594 (x_set_fullscreen): Handle Qmaximized.
2595 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2596 (syms_of_frame): Initialize Qmaximized.
2597
1ac9108a
SM
2598 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2599 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2600
2601 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2602 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2603 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2604 set gravity to NorthWestGravity when USE_GTK.
2605 (set_wm_state): New function.
31fd7c5c 2606 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2607 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2608 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2609 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2610 to x_real_positions and x_fullscreen_adjust.
2611
2612 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2613 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2614 flush_and_sync.
2615 (xg_height_changed): New function.
2616 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2617 and gtk_window_set_policy. Set frame gravity after parsing the
2618 geometry string.
3f1c6666
JD
2619 (xg_update_frame_menubar, free_frame_menubar)
2620 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2621 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2622 Remove calls to xg_frame_set_char_size.
2623
fd503d99
KH
26242009-07-01 Kenichi Handa <handa@m17n.org>
2625
2626 * keyboard.c (decode_keyboard_code): New function.
2627 (tty_read_avail_input): Decode the input bytes if necessary.
2628
1ac9108a
SM
2629 * coding.c (setup_coding_system):
2630 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2631 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2632 use Qno_conversion.
2633
24ed93fb
YM
26342009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2635
2636 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2637
99061dfc
CY
26382009-06-30 Chong Yidong <cyd@stupidchicken.com>
2639
1ac9108a 2640 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2641
ff90fbde
JR
26422009-06-30 Jason Rumney <jasonr@gnu.org>
2643
2644 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2645 is already loaded.
2646 Set user model ID if supported (bug#1849).
2647
5f445726
JM
26482009-06-29 Jim Meyering <meyering@redhat.com>
2649
2650 Remove useless if-before-xfree test.
2651 * nsfont.m (nsfont_close): Remove useless test.
2652 * term.c (delete_tty): Likewise.
2653 * w32.c (system_process_attributes): Likewise.
2654 * w32font.c (w32font_close): Likewise.
2655 * xfaces.c (x_free_gc): Likewise.
2656 * xselect.c (buffer): Likewise.
2657
b9607587
AS
26582009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2659
2660 * process.c (send_process): Keep decoded string in a local
2661 variable and protect it from GC. (Bug#3521)
2662
89ba96f4
EZ
26632009-06-28 Eli Zaretskii <eliz@gnu.org>
2664
2665 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2666 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2667
098a1589
CY
26682009-06-28 Chong Yidong <cyd@stupidchicken.com>
2669
485422be
CY
2670 * xdisp.c (start_display, handle_face_prop)
2671 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2672 (redisplay_window, try_window_id, produce_image_glyph):
2673 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2674
098a1589
CY
2675 * xterm.c (x_update_window_begin, x_new_focus_frame)
2676 (x_scroll_bar_handle_click, handle_one_xevent)
2677 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2678 (x_make_frame_visible, x_make_frame_invisible)
2679 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2680 code chunks that are now obsolete.
2681
78c38319
MA
26822009-06-28 Michael Albinus <michael.albinus@gmx.de>
2683
2684 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2685 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2686 for hours, when optimzation is enabled.
2687 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2688 (xd_read_message): Make them static.
2689
4189ed40
CY
26902009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2691
2692 * term.c (turn_on_face): Allow simultaneously bold and dim
2693 terminal faces (Bug#3530).
2694
cd9b5e16
CY
26952009-06-27 Chong Yidong <cyd@stupidchicken.com>
2696
4e23bedb
CY
2697 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2698
cd9b5e16
CY
2699 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2700 truncation glyphs (Bug#3686).
2701
07cc3c35
GM
27022009-06-27 Glenn Morris <rgm@gnu.org>
2703
2704 * m/pmax.h: Restore file, with only netbsd portions.
2705
31fd7c5c 27062009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2707
cd9b5e16 2708 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2709
42d4a64f
KH
27102009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2711
2712 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2713 the arg FORCE_SYMBOL.
2714
930fe55b 27152009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2716
2717 * fontset.c (fontset_find_font): When a usable rfont_def is found
2718 in a fallback font-group, make it the first element of the group.
2719
57ebc3fd
CY
27202009-06-24 Chong Yidong <cyd@stupidchicken.com>
2721
2722 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2723
f084f942
KH
27242009-06-24 Kenichi Handa <handa@m17n.org>
2725
2726 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2727 set for C.
2728 (fontset_font): Record the availability of a font for C both in
2729 the realized fontsets of the current one and the default one.
2730
2f686c87
DN
27312009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2732
2733 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2734 conditional, it is always defined on AIX.
2735
666e158e
MB
27362009-06-23 Miles Bader <miles@gnu.org>
2737
2738 * window.c (Vrecenter_redisplay): New variable.
2739 (syms_of_window): Initialize it.
2740 (Qtty): New extern declaration.
2741 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2742
c6da7cd2
JM
27432009-06-23 Jim Meyering <meyering@redhat.com>
2744
1ac9108a
SM
2745 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2746 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2747 pointer dereferences are guaranteed to be valid.
c6da7cd2 2748
678dca3d
KH
27492009-06-23 Kenichi Handa <handa@m17n.org>
2750
74d75424
KH
2751 * emacs.c (main): Call init_font ().
2752
2753 * font.h (Vfont_log): Extern it.
2754 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2755
2756 * font.c (font_sort_entities, font_list_entities)
2757 (font_matching_entity, font_open_entity)
2758 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2759 (Vfont_log): Delete static.
2760 (font_log_env_checked): Delete this variable.
2761 (font_add_log): Don't check font_log_env_checked.
2762 (font_deferred_log): Check Vfont_log.
2763 (init_font): New function.
2764
678dca3d
KH
2765 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2766
2767 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2768
2769 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2770
2771 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2772
2773 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2774 (face_for_char): Don't call font_deferred_log here.
2775 (font_for_char): Likewise.
2776
8a668709
CY
27772009-06-22 Chong Yidong <cyd@stupidchicken.com>
2778
9a01ee33
CY
2779 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2780 rather than its background_width for drawing the overline and
2781 underline (Bug#489).
2782
2783 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2784 rather than its background_width for drawing the overline and
2785 underline (Bug#489).
ec7c9926
CY
2786 (xg_default_icon_file): New variable.
2787 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2788 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2789
8a668709
CY
2790 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2791 (load_overlay_strings): Remove externs.
2792 (fast_find_position): Function deleted.
2793 (mouse_face_from_buffer_pos): New function, based on
2794 fast_find_position. Correctly handle before-strings,
2795 display-strings, and after-strings (Bug#1220).
2796 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2797
4d4c02d8
CY
27982009-06-21 Chong Yidong <cyd@stupidchicken.com>
2799
1ac9108a 2800 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2801 (move_it_in_display_line_to, move_it_in_display_line_to)
2802 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2803
70243478
CY
28042009-06-21 Chong Yidong <cyd@stupidchicken.com>
2805
2806 * Branch for 23.1.
2807
13087e59
JR
28082009-06-21 Jason Rumney <jasonr@gnu.org>
2809
2810 * w32term.c (keyboard_codepage): New static variable.
2811 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2812 (w32_read_socket) [WM_CHAR]: Use it to decode character
2813 input (bug#3237).
2814 (w32_initialize): Initialize it.
2815 (codepage_for_locale): New function.
2816
4735b74e
KR
28172009-06-20 Ken Raeburn <raeburn@raeburn.org>
2818
2819 * process.c (status_message): Pass Faset index argument as a lisp
2820 object, so as to work with USE_LISP_UNION_TYPE.
2821
0e727afa
YM
28222009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2823
2824 * coding.c (Ffind_coding_systems_region_internal):
2825 Cache checked characters.
2826
cf299835
KH
28272009-06-18 Kenichi Handa <handa@m17n.org>
2828
1ac9108a 2829 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2830
90f20d94
AS
28312009-06-18 Andreas Schwab <aschwab@redhat.com>
2832
2833 * xdisp.c (redisplay_internal): Check that the frame is still
2834 live after redisplay of its windows.
2835 (redisplay_windows): Check that the window is still live.
2836
7f1faf1c
KH
28372009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2838
2839 * coding.c (detect_coding_utf_16): Fix previous change.
2840
cc13543e
KH
28412009-06-16 Kenichi Handa <handa@m17n.org>
2842
2843 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2844 UTF-16 by checking the dispersion of Eth and Oth bytes.
2845
977b85f4
AS
28462009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2847
2848 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2849
66bd43d1
KH
28502009-06-15 Kenichi Handa <handa@m17n.org>
2851
2852 * process.c (status_message): Fix previous change. Be sure to
2853 decode a localized string.
2854
cb5ca9c5
YM
28552009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2856
2857 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2858 add comment explaining why.
2859
ec7709ba 28602009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2861
ec7709ba 2862 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2863
4b7f335c
AR
28642009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2865
2866 * nsfont.m (ns_attribute_value): Remove.
2867 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2868 (ns_has_attribute): Shrink the normal range.
2869 (ns_findfonts): Don't worry about requested spec in determining
2870 need for synthItal.
e41820ee 2871 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2872
73b26103
SZ
28732009-06-14 Seiji Zenitani <zenitani@mac.com>
2874
2875 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2876
5753e4da
KH
28772009-06-11 Kenichi Handa <handa@m17n.org>
2878
2879 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2880 overhang for the static composition case.
2881
3561b671
KH
28822009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2883
5753e4da
KH
2884 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2885 overhang for the automatic composition case.
2886
3561b671
KH
2887 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2888 composition case.
2889
852bbd41
CY
28902009-06-10 Chong Yidong <cyd@stupidchicken.com>
2891
2892 * xdisp.c (get_next_display_element): When handling wrap-prefix
2893 and line-prefix, treat \n as a control character (bug#3502).
2894
9903d1e6
KH
28952009-06-10 Kenichi Handa <handa@m17n.org>
2896
2897 * font.c (font_parse_family_registry): Fix for one-char foundry.
2898 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2899
0bcbaaaa
CY
29002009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2901
2902 * process.c (status_message): Fix handling of multibyte signal
2903 string (Bug#3499).
2904
40aa3f13
JM
29052009-06-09 Jim Meyering <meyering@redhat.com>
2906
1f80c7e2
CY
2907 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2908 color name is missing.
40aa3f13 2909
72d51285
KH
29102009-06-09 Kenichi Handa <handa@m17n.org>
2911
2912 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2913 FROM-CODE and TO-CODE are codepoints of CHARSET.
2914
c1d04d84
AR
29152009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2916
2917 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2918
29192009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2920
2921 Changes to support :script/:lang/:otf in NS font driver.
2922 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2923 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2924 indicate not part of font driver interface, and change callers.
2925 (ns_get_family): Remove pointless null check.
2926 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2927 ns_spec_to_descriptor, ns_descriptor_to_entity.
2928 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2929 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2930 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2931 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2932 (ns_get_req_script, ns_accumulate_script_ranges)
2933 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2934 New functions.
2935 (nsfont_list, nsfont_match): Use ns_findfonts.
2936 (nsfont_open): Use font descriptor instead of traits.
2937 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2938 (dump_glyphstring): Rename to ns_dump_glyphstring.
2939
c7eb9816
AR
2940 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2941
c1d04d84
AR
2942 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2943
2944 * fontset.c (fontset_from_font): Remove NS-specific code.
2945
ec7709ba 29462009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2947
2948 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2949 nonactive windows.
2950
31fd7c5c 29512009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2952
1ac9108a 2953 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2954
68852c13 29552009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2956
2957 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2958
6756cd1d
CY
29592009-06-07 Chong Yidong <cyd@stupidchicken.com>
2960
2961 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2962 account for the overflowing of newlines into the last glyph on the
2963 display line (Bug#3482).
2964
28bf482a
DR
29652009-06-05 David Reitter <david.reitter@gmail.com>
2966
ec7709ba
JB
2967 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2968 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2969 Fns_selection_exists_p, Fns_selection_owner_p.
2970
fdb55376
JR
29712009-06-03 Jason Rumney <jasonr@gnu.org>
2972
2973 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2974 available. (Bug#3379)
2975
05129fbe
KH
29762009-05-29 Kenichi Handa <handa@m17n.org>
2977
1ac9108a
SM
2978 * coding.c (get_translation_table):
2979 Check Venable_character_translation.
05129fbe 2980
ec7709ba 29812009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2982
ec7709ba
JB
2983 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2984 (x_make_frame_visible): Move frame to front rather than calling
15891144 2985 ns_raise_frame().
ec7709ba 2986 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2987 isn't key window.
ec7709ba 2988 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2989 drawRect may be called by NSView even if the frame is hidden.
2990
ec7709ba
JB
2991 * nsfns.m (Fx_create_frame): Follow other ports in
2992 determining visibility; default to t. Ensure async_visible is set.
15891144 2993
21f73755
EZ
29942009-05-23 Eli Zaretskii <eliz@gnu.org>
2995
2996 * dired.c (Ffile_attributes): Doc fix.
2997
34001e41
CY
29982009-05-22 Chong Yidong <cyd@stupidchicken.com>
2999
3000 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3001
46306a17
SM
30022009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3003
3004 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3005 and xfont_scratch_props.
3006 (syms_of_xfont): Do it here instead.
3007 (xfont_find_ccl_program): Delete, unused.
3008 (xfont_open): Delete unused var `i'.
3009
ef6e0694
KH
30102009-05-21 Kenichi Handa <handa@m17n.org>
3011
3012 * fontset.c (Qlatin): Don't make it static.
3013
46306a17
SM
3014 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3015 New functions.
ef6e0694
KH
3016 (xfont_scripts_cache, xfont_scratch_props): New variables.
3017 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3018 (xfont_list_pattern): Argument changed. Callers changed.
3019 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3020 (xfont_list): Don't reject a font spec with :script property.
3021 (xfont_has_char): Fix setting of encoding.
3022 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3023 xfont_scratch_props.
3024
30252009-05-19 Kenichi Handa <handa@m17n.org>
3026
46306a17 3027 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3028 Callers changed.
3029
30302009-05-18 Kenichi Handa <handa@m17n.org>
3031
3032 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3033
ac71ced7
SM
30342009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3035
3036 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3037 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3038
1c6d1051
YM
30392009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3040
3041 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3042 (x_delete_terminal): Dissociate resource database from display and
3043 then call XrmDestroyDatabase before closing display.
3044
9b9b779c
AR
30452009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3046
3047 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3048 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3049 whether selected frame is viable before raising it (based on patch
3050 by David Reitter), and improve commentary.
3051 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3052
cccd42d5
KH
30532009-05-15 Kenichi Handa <handa@m17n.org>
3054
3055 * font.c (Ffont_spec): Check arguments.
3056
337fbd17
CY
30572009-05-14 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3060 weight when testing attributes (Bug#3282).
3061
47a6002f
JD
30622009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3063
3064 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3065 what we expect to get in the next ConfigureNotify event.
3066
9cb363db
YM
3067 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3068 before Xft one (Bug#1696).
3069
b9126609
CY
30702009-05-07 David Reitter <david.reitter@gmail.com>
3071
3072 * nsfns.m (Fx_display_planes): Compute bitplanes using
3073 NSBitsPerPixelFromDepth (Bug#3207).
3074
27a69fd9
CY
30752009-05-10 Chong Yidong <cyd@stupidchicken.com>
3076
3077 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3078
00f37552
TTN
30792009-05-10 Ulrich Mueller <ulm@gentoo.org>
3080
3081 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3082
2d82a920
DR
30832009-05-07 David Reitter <david.reitter@gmail.com>
3084
ec7709ba
JB
3085 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3086 Respect mouse face background.
2d82a920 3087
46b0d52d
DR
30882009-05-07 David Reitter <david.reitter@gmail.com>
3089
ec7709ba
JB
3090 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3091 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3092 in ns_update_begin and ns_update_end.
3093
ce1b23bb
SM
30942009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3095
5996e1b7
SM
3096 * nsfns.m (ns_get_screen): Rewrite.
3097 Don't presume selected-frame is of type `ns'.
3098
ba98e3a0
SM
3099 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3100 all drivers.
3101
ce1b23bb
SM
3102 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3103
bcda200f
YM
31042009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3105
3106 * keyboard.h (add_user_signal): Fix typo in extern.
3107
3108 * lisp.h (add_user_signal): Remove extern.
3109
3110 * unexelf.c (unexec): Consider a section to precede the .bss section
3111 if its addresses overlap that of .bss.
3112 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3113 instead of dumping process.
3114
864660a2
SM
31152009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3116
3117 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3118
50da4e56
SM
31192009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3120
3121 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3122
51520a1a
DN
31232009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3124
3125 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3126 any statements.
3127
409ea3a1
AS
31282009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3129
59c4c60f
AS
3130 * process.c (read_process_output): Make sure the current buffer is
3131 always restored.
3132
409ea3a1
AS
3133 * coding.c (record_conversion_result): Don't modify
3134 Vlast_code_conversion_error for successful result.
3135 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3136
56f00ed2
KH
31372009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3138
3139 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3140 (load_charset_map): Remove unnecessary code.
56f00ed2 3141
4491c9d2
DR
31422009-04-30 David Reitter <david.reitter@gmail.com>
3143
35f5b128 3144 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3145 through f24.
3146
6970f632
CY
31472009-04-30 Chong Yidong <cyd@stupidchicken.com>
3148
3149 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3150
3151 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3152 face_at_buffer_position.
3153 (face_before_or_after_it_pos, get_next_display_element)
3154 (note_mouse_highlight): Update face_at_buffer_position call.
3155
3156 * term.c (term_mouse_highlight):
3157 * msdos.c (IT_note_mouse_highlight):
3158 * fontset.c (Finternal_char_font):
35f5b128 3159 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3160
3161 * dispextern.h (face_at_buffer_position): Update prototype.
3162
0c616f63
KH
31632009-04-30 Kenichi Handa <handa@m17n.org>
3164
35f5b128 3165 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3166
ad3aaf33
AS
31672009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3168
3169 * callproc.c (Fcall_process): Fix GC protection. Make sure
3170 current buffer is always restored.
3171
c3c963a0
YM
31722009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3173
3174 * atimer.c (init_atimer): Also clear stopped_atimers.
3175
3176 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3177
7e3386cb
YM
3178 * process.c (create_process): Clean up merger residues of
3179 2008-07-17 change.
3180
91f68422
CY
31812009-04-29 Ulrich Mueller <ulm@gentoo.org>
3182
3183 * lread.c (Vread_circle): New variable.
3184 (read1): Disable recursive read if Vread_circle is nil.
3185
24b34550
KH
31862009-04-29 Kenichi Handa <handa@m17n.org>
3187
3188 * fontset.h (set_default_ascii_font): Delete extern.
3189
3190 * fontset.c (set_default_ascii_font): Delete this unused function.
3191
3192 * frame.c (x_set_font): When ARG is a font-object, check if the
3193 font-object matches with the ASCII font-spec of the frame's
9c358bda 3194 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3195
77bf07e1
AS
31962009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3197
3198 * fns.c (Flocale_info): Protect vector from GC during decoding.
3199
3200 * process.c (Fstart_process): Protect argv strings from GC during
3201 encoding.
3202
2c55aacf
AS
32032009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3204
3205 * sysdep.c: Include <ctype.h>.
3206
b892d3c9
DR
32072009-04-27 David Reitter <david.reitter@gmail.com>
3208
35f5b128 3209 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3210 Remove commented-out code.
3211
9d0644c4
JB
32122009-04-26 Johan Bockgård <bojohan@gnu.org>
3213
3214 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3215
b7053016
JR
32162009-04-25 Jason Rumney <jasonr@gnu.org>
3217
3218 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3219
4e8231f3
YM
32202009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3221
3222 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3223 Swap bytes in short integer if fringe bitmap width > 8.
3224
493dcf2c
KH
32252009-04-23 Kenichi Handa <handa@m17n.org>
3226
3227 * xfaces.c (Fx_list_fonts): If a font size is specified in
3228 PATTERN, set it in returned scalable fonts.
3229
401e9e57
CY
32302009-04-22 Chong Yidong <cyd@stupidchicken.com>
3231
708e05dc
CY
3232 * keyboard.c (Fset_input_meta_mode): Doc fix.
3233
3234 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3235
1ac9108a 3236 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3237
3238 * coding.c (Fterminal_coding_system): Doc fix.
3239
3240 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3241 (Fx_display_pixel_height, Fx_display_planes)
3242 (Fx_display_color_cells, Fx_server_max_request_size)
3243 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3244 (Fx_display_mm_height, Fx_display_mm_width)
3245 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3246 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3247 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3248 (check_x_display_info): Handle terminal objects instead of
3249 terminal ids.
3250
401e9e57
CY
3251 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3252 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3253 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3254 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3255
df80c7f0
KH
32562009-04-21 Kenichi Handa <handa@m17n.org>
3257
5a8f12af 3258 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3259 (font_score): Check AVGWIDTH too.
908567ef 3260
df80c7f0
KH
3261 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3262 worst case.
1ac9108a
SM
3263 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3264 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3265
705af33f
JR
32662009-04-19 Jason Rumney <jasonr@gnu.org>
3267
3268 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3269 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3270
3271 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3272 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3273 get_phys_cursor_geometry.
3274
b71ac3dd 3275 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3276 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3277 using get_phys_cursor_geometry.
3278
3279 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3280 correctly calculated.
3281
dc2933eb
JD
32822009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3283
1ac9108a
SM
3284 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3285 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3286 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3287 is deprecated.
3288
973e7849
AS
32892009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3290
3291 * font.c (font_put_frame_data): Use xfree instead of free.
3292
314d66f4
JB
32932009-04-17 Juanma Barranquero <lekktu@gmail.com>
3294
3295 * w32font.c (Qja, Qko): Remove declarations.
3296 (syms_of_w32font): Don't DEFSYM them.
3297
cf702558
CY
32982009-04-17 Chong Yidong <cyd@stupidchicken.com>
3299
3300 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3301
3302 * font.h (Qja, Qko): Extern them.
3303
3304 * ftfont.c (Qja, Qko): Remove declarations.
3305
3306 * xfont.c (Qja, Qko): Remove declarations.
3307
b50504f5
KH
33082009-04-17 Kenichi Handa <handa@m17n.org>
3309
bde25748
KH
3310 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3311 string from a vector to handle Latin-1 characters correctly.
3312
b50504f5
KH
3313 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3314 entity even if the cache hits.
3315
f4646fff
AS
33162009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3317
3318 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3319 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3320
e7deaab0
AS
3321 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3322 * lisp.h: Adjust prototypes.
3323
0a0e7d49
CY
33242009-04-16 Chong Yidong <cyd@stupidchicken.com>
3325
3326 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3327 change (Bug#3003).
3328
3c908a57
KH
33292009-04-16 Kenichi Handa <handa@m17n.org>
3330
1ac9108a 3331 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3332
3333 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3334 adstyle.
3335
3336 * ftfont.c (Qja, Qko): Don't make them static.
3337 (enum ftfont_cache_for): New enum.
3338 (fc_charset_table): Undo the previous change.
3339 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3340 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3341 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3342 non-scarable font, try to get AVERAGE_WIDTH.
3343 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3344 Change ft_face_cache from a list of a hash-table. Don't check
3345 `ja' and `ko' adstyle here.
3346 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3347 FTFONT_CACHE_FOR_CHARET.
3348 (ftfont_get_charset): Undo the previous change.
1ac9108a 3349 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3350 (ftfont_close): Likewise.
3351 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3352
3353 * font.c (font_sort_entites): Change the meaning of the arg
3354 BEST-ONLY. Don't optimize for VEC of lenght 1.
3355 (font_select_entity): Just return the value of font_sort_entites.
3356
3357 * xfaces.c (merge_face_vectors): Reflect font properties in
3358 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3359 font_clear_prop if a face attribute doesn't change.
3360
3c908a57
KH
3361 * charset.h (charset_ksc5601): Extern it.
3362
3363 * charset.c (charset_ksc5601): New variable.
3364 (Fdefine_charset_internal): Set charset_ksc5601.
3365 (init_charset_once): Initialize charset_ksc5601 to -1.
3366
d65859c3
DN
33672009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3368
3369 * fileio.c (history_delete_duplicates): Remove unused declaration.
3370
3371 * callint.c (history_delete_duplicates): New declaration.
3372 (Fcall_interactively): Remove command history duplicates when
3373 history_delete_duplicates is true.
3374
3ba010e5
EZ
33752009-04-14 Eli Zaretskii <eliz@gnu.org>
3376
3377 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3378
06f19b91
KH
33792009-04-14 Kenichi Handa <handa@m17n.org>
3380
3381 * font.c (Ffont_info): Fix docstring. Fix the second element of
3382 the returned value (bug#2949).
3383
2cce8bfc
CY
33842009-04-14 Chong Yidong <cyd@stupidchicken.com>
3385
3386 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3387
d156542d
KH
33882009-04-14 Kenichi Handa <handa@m17n.org>
3389
3390 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3391 encoding charset is ascii_compatible.
3392
3393 * charset.c (Fdefine_charset_internal): Make charset
3394 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3395 code_offset is 0, and covers all ASCII characters.
3396
86fa089e
SM
33972009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3398
3399 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3400 (ns_string_to_pasteboard_internal):
3401 * nsmenu.m (process_dialog):
3402 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3403 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3404 * lisp.h (Fx_load_color_file): Declare.
3405
a8a3728b
KH
34062009-04-13 Kenichi Handa <handa@m17n.org>
3407
1ac9108a 3408 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3409 (font_select_entity): Suppress the code to optimize for the same
3410 kind of fonts.
3411 (font_load_for_lface): Get a font that supports at least ASCII
3412 characters.
3413
3414 * ftfont.c (Qja, Qko): New variables.
3415 (fc_charset_table): Delete uniquifier data for iso8859-1.
3416 (ftfont_get_latin1_charset): New function.
3417 (get_adstyle_property): New function.
3418 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3419 bitmap fonts.
3420 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3421 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3422 `ko' or `ja'.
3423 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3424 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3425 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3426 property.
3427 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3428 (syms_of_ftfont): DEFSYM Qja and Qko.
3429
483670b5
KH
34302009-04-09 Kenichi Handa <handa@m17n.org>
3431
12b55765
KH
3432 * charset.c (map_charset_chars): For a charset of `superset'
3433 method, fix calculation of code range.
3434
483670b5
KH
3435 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3436 from the list of extra properties.
3437 (font_clear_prop): Be sure to delete `:name' font property.
3438
57d3b93b
KH
34392009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3440
b4b2c2ca
YM
3441 * dispnew.c (redraw_overlapping_rows): Fix detection of
3442 overlapping for topmost and bottommost rows.
3443
1ac9108a 3444 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3445
472c3609
JR
34462009-04-06 Jason Rumney <jasonr@gnu.org>
3447
3448 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3449
ab193662
KH
34502009-04-06 Kenichi Handa <handa@m17n.org>
3451
3452 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3453
3454 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3455
0c26f026
KH
34562009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3457
3458 * ftfont.c (ftfont_open): Fix checking of the return value of
3459 FT_Load_Char. Fix setting font->underline_thickness.
3460
e173bbce
CY
34612009-04-04 Chong Yidong <cyd@stupidchicken.com>
3462
3463 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3464 (Fterminal_parameters, Fterminal_parameter)
3465 (Fset_terminal_parameter): In doc string, refer to terminal
3466 objects rather than terminal ids.
3467
693a2698
EZ
34682009-04-04 Eli Zaretskii <eliz@gnu.org>
3469
3470 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3471 ret_lim_data. (Bug#2867)
3472
d5221487
CY
34732009-04-03 Chong Yidong <cyd@stupidchicken.com>
3474
3475 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3476 so they don't get wider than the window, matching 2006-01-23
3477 change to the partner function in xdisp.c (Bug#2800).
3478
223509a3
KH
34792009-04-03 Kenichi Handa <handa@m17n.org>
3480
3481 * print.c (print_object): Make each lowest sub_char_table start a
3482 new line (Bug#2866).
3483
74fcd0b1
KH
34842009-04-02 Kenichi Handa <handa@m17n.org>
3485
3486 * fontset.c (fontset_font): Record no-font when a fontset
3487 explicitly tells not to try another font-specs.
3488
c542407d
SM
34892009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3490
3491 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3492
e3869731
KH
34932009-03-30 Kenichi Handa <handa@m17n.org>
3494
d8d2f142
KH
3495 * fontset.c (fontset_from_font): Specify only registry in a
3496 font-spec for all characters supported by that registry.
3497
e3869731
KH
3498 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3499 even if HAVE_M17N_FLT is not defined.
3500
5da5f805
CY
35012009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3502
3503 * ftfont.c: Conditionalize prototyping and use of
3504 ftfont_variation_glyphs.
3505
ab226c50
SM
35062009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3507
9628fed7
SM
3508 * frame.c (delete_frame): Work around compiler bug.
3509
3510 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3511 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3512 Some more EMACS_INT.
3513 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3514
3515 * xdisp.c (dump_glyph): Fix typo.
3516
ae19ba7c
SM
3517 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3518 (adjust_markers_gap_motion, adjust_markers_for_delete)
3519 (adjust_markers_for_insert, adjust_point)
3520 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3521 (make_gap, copy_text, count_size_as_multibyte, insert)
3522 (insert_and_inherit, insert_before_markers)
3523 (insert_before_markers_and_inherit, insert_1)
3524 (count_combining_before, count_combining_after, insert_1_both)
3525 (insert_from_string, insert_from_string_before_markers)
3526 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3527 (insert_from_buffer_1, adjust_after_replace)
3528 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3529 (replace_range_2, del_range, del_range_1, del_range_byte)
3530 (del_range_both, del_range_2, modify_region)
3531 (prepare_to_modify_buffer, signal_before_change)
3532 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3533 for buffer positions and sizes.
3534 * lisp.h: Adjust prototypes accordingly.
3535
3536 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3537 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3538 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3539
ab226c50
SM
3540 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3541
46dfb8fb
JD
35422009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3543
3544 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3545 lines and columns so we keep the same pixel height and width.
3546
3547 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3548 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3549 (x_handle_net_wm_state): New function to update frame parameter
3550 fullscreen.
3551 (x_term_init): Initialize atoms for _NET_WM_STATE.
3552
3553 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3554
d347e494
SM
35552009-03-27 Kevin Ryde <user42@zip.com.au>
3556
3557 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3558 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3559 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3560 (Fgpm_mouse_stop): Pass that new parameter.
3561 * termhooks.h (close_gpm): Adjust prototype.
3562
84db11d6
SM
35632009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3564
c95a5008
SM
3565 * lisp.h (Fx_focus_frame): Declare.
3566
84db11d6
SM
3567 * callint.c (Fcall_interactively): For '^' just delegate the work to
3568 handle-shift-selection.
3569 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3570
0a1958d6
CY
35712009-03-24 Chong Yidong <cyd@stupidchicken.com>
3572
0bfdff23
CY
3573 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3574
0a1958d6
CY
3575 * data.c (Qinteractive_form): New variable.
3576 (Finteractive_form): Use it.
3577
3578 * eval.c (Fcommandp): Use Qinteractive_form.
3579
58aec0d6
JR
35802009-03-24 Jason Rumney <jasonr@gnu.org>
3581
3582 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3583 Calculate total size precisely. Decode environment variables
3584 before substituting. (Bug#38)
3585
553dd618
KH
35862009-03-24 Kenichi Handa <handa@m17n.org>
3587
3588 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3589 encoding (Bug#2722).
553dd618 3590
c39ea606
JD
35912009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3592
3593 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3594 that gdpy is set.
3595
bc9b2b5e
AM
35962009-03-22 Alan Mackenzie <acm@muc.de>
3597
3598 * callint.c (Finteractive): Clarify the doc string - even
3599 promptless elements need \n separators.
3600
9f995a76
JR
36012009-03-22 Jason Rumney <jasonr@gnu.org>
3602
3603 * w32term.c (syms_of_w32term): Doc fix for
3604 x-use-underline-position-properties.
3605
22749e9a
EZ
36062009-03-21 Eli Zaretskii <eliz@gnu.org>
3607
3608 * w32.c (getpwuid): Change argument type to unsigned.
3609 (struct w32_id): Change type of `rid' member to unsigned.
3610 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3611 argument ID to unsigned. All callers changed.
3612 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3613
e00553bf
EZ
36142009-03-20 Eli Zaretskii <eliz@gnu.org>
3615
3616 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3617 negative, produce a float value.
3618
3619 * dired.c (make_uid, make_gid): New functions.
3620 (Ffile_attributes): Use them to avoid negative UID and GID.
3621
f761d6b6
JB
36222009-03-20 Juanma Barranquero <lekktu@gmail.com>
3623
3624 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3625 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3626 Fix typos in docstrings.
3627
d507f8d7
KH
36282009-03-19 Kenichi Handa <handa@m17n.org>
3629
3630 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3631 changed, use font_load_for_lface to get a new font object.
3632 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3633
3634 * frame.c (x_set_font): Handle the case that ARG is a cons.
3635
c68845e0
GM
36362009-03-19 Glenn Morris <rgm@gnu.org>
3637
3638 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3639
bfa49dd1
CY
36402009-03-19 Chong Yidong <cyd@stupidchicken.com>
3641
3642 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3643
8458d4c1
KH
36442009-03-19 Kenichi Handa <handa@m17n.org>
3645
3646 * charset.c (load_charset_map_from_file): When a mapfile can't be
3647 loaded, signal an error.
3648
78e7d1fe
EZ
36492009-03-18 Eli Zaretskii <eliz@gnu.org>
3650
3651 * dired.c (Ffile_attributes): Make sure UID and GID are always
3652 positive, even if the value is too large for a positive EMACS_INT.
3653 Doc fix.
3654
3655 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3656
5da9fdfa
YM
36572009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3658
3659 * xmenu.c (xdialog_show): Move Fredisplay call ...
3660 (Fx_popup_dialog): ... here.
3661
7519c40d
SM
36622009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3663
3664 * dired.c (file_name_completion): Disable the first optimization just
3665 installed, since it is not implemented correctly.
3666
2cd298e2
SM
36672009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3668
3669 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3670 only if the entry can affect bestmatch.
2cd298e2
SM
3671 Stop the search early, as Ftry_completion already does.
3672
48d37adf
CY
36732009-03-17 Chong Yidong <cyd@stupidchicken.com>
3674
e10c9c93 3675 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3676
9286b16a
CY
36772009-03-15 Chong Yidong <cyd@stupidchicken.com>
3678
3679 * keyboard.c (parse_menu_item): Don't display remappings as menu
3680 equivalent bindings (Bug#788).
3681
f7b146dc
JR
36822009-03-15 Jason Rumney <jasonr@gnu.org>
3683
3684 * w32term.h (WM_EMACS_PAINT): New message.
3685 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3686 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3687 before passing to lisp thread. (Bug#950)
3688
f761d6b6 36892009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3690
d93f9575
CY
3691 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3692 variable as it was never reset.
3693 (ns_term_init): Remove initialization of Lisp-settable defaults
3694 and ns_expand_space.
3695 (-setPanelFromDefaultValues): Remove ns_expand_space.
3696 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3697 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3698 i.e. no additional spacing, similar to Carbon port.
3699
d93f9575
CY
3700 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3701 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3702
305018ec
JD
37032009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3704
3705 * sound.c (alsa_configure): Remove call to deprecated
3706 snd_pcm_sw_params_set_xfer_align.
3707
f761d6b6 37082009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3709
3710 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3711 after clicking in a detached tool bar.
3712 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3713
46e722a9
SM
37142009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3715
348db3dd
SM
3716 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3717 int/Lisp_Object mixup).
46e722a9 3718
a3d16f39
KH
37192009-03-13 Kenichi Handa <handa@m17n.org>
3720
3721 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3722 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3723 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3724 (set_fontset_font): Change ARG to a vector. Handle range_list in
3725 ARG correctly.
3726 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3727 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3728 the above change.
3729 (fontset_from_font): Fix previous change.
fe24f56a 3730 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3731 entry. If FONTSET is the default fontset, don't set the extra
3732 slot of the returning char-table.
3733
b066e6b6
JB
37342009-03-12 Juanma Barranquero <lekktu@gmail.com>
3735
3736 * nsfns.m (Fx_close_connection): Doc fix.
3737 (Fns_do_applescript): Reflow docstring.
3738 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3739 (Fx_display_pixel_width, Fx_display_pixel_height)
3740 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3741 Fix typos in docstrings.
3742 (Fns_set_alpha): Fix typos in error messages.
3743
d472514e 37442009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3745
d472514e 3746 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3747 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3748 were used for such events.
3749
d472514e
JB
3750 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3751 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3752
d472514e 3753 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3754 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3755
fb930676
KH
37562009-03-11 Kenichi Handa <handa@m17n.org>
3757
ff85581a
KH
3758 * font.h (font_open_by_spec): Extern it.
3759
c50b7e98
KH
3760 * font.c (font_open_by_spec): New function.
3761 (font_open_by_name): Use font_open_by_spec.
3762
fb930676
KH
3763 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3764 fontset of the frame.
3765
3766 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3767 modify the default font of frames that use this fontset.
3768 (num_auto_fontsets): New variable.
3769 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3770 name. Be sure to set FONTSET_ASCII to the correct font name.
3771 (update_auto_fontset_alist): New function.
3772
df4e8455
JB
37732009-03-11 Juanma Barranquero <lekktu@gmail.com>
3774
3775 * makefile.w32-in: Update dependencies.
3776
0a375797
AR
37772009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3778
3779 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3780
61313fa3
SM
37812009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3782
3783 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3784
b55103fb
CY
37852009-03-10 Chong Yidong <cyd@stupidchicken.com>
3786
3787 * lread.c (Feval_buffer): Doc fix.
3788
dde2559c
KH
37892009-03-09 Kenichi Handa <handa@m17n.org>
3790
3791 * charset.c (Qfile_name_handler_alist): Extern it.
3792 (load_charset_map_from_file): Temporarily bind
3793 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3794
df4e8455 37952009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3796
47f588bb
GM
3797 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3798 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3799
4ddf94bd
AR
38002009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3801
4c9bdfc2
AR
3802 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3803 (x_set_window_size): Change back to calculated method of setting
3804 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3805 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3806 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3807
fe41ae9e
AR
3808 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3809
4c9bdfc2
AR
3810 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3811 accelerator in parens under GNUstep.
3812
825d0875
KH
38132009-03-06 Kenichi Handa <handa@m17n.org>
3814
3815 These changes are to detect incorrect composition sequence without
f3b3be74 3816 looking ahead the source. (Bug#2370)
825d0875
KH
3817
3818 * coding.h: Include "composite.h".
3819 (enum compisition_state): New enum.
3820 (struct compisition_status): New struct.
3821 (struct iso_2022_spec): New member cmp_status.
3822 (struct emacs_mule_spec): New struct.
3823 (struct coding_system): New members ctext_extended_segment_len and
3824 embedded_utf_8. Change the union member
3825 spec.emacs_mule_full_support to spec.emacs_mule.
3826
3827 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3828 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3829 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3830 (ADD_COMPOSITION_DATA): New arg nbytes.
3831 (emacs_mule_char): New arg cmp_status.
3832 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3833 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3834 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3835 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3836 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3837 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3838 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3839 (EMACS_MULE_COMPOSITION_END): New macro.
3840 (emacs_mule_finish_composition): New function.
3841 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3842 (decode_coding_emacs_mule): Avoid long looking ahead while
3843 handling composition.
3844 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3845 (ENCODE_COMPOSITION_RULE): New macro.
3846 (finish_composition): New function.
3847 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3848 (DECODE_COMPOSITION_START): New implementation.
3849 (DECODE_COMPOSITION_END): Likewise.
3850 (STORE_COMPOSITION_RULE): New macro.
3851 (decode_coding_iso_2022): Avoid long looking ahead while handling
3852 composition, CTEXT extended segment, and embedded UTF-8.
3853 (setup_coding_system): For a coding of type iso-2022, reset
3854 CODING_ISO_EXTSEGMENT_LEN (coding) and
3855 CODING_ISO_EMBEDDED_UTF_8 (coding).
3856 (get_translation): Delete arguments last_block, from_nchars,
3857 to_nchars. Callers changed.
3858 (produce_chars): Don't modify charbuf. Adjusted for the change of
3859 get_translation.
98a326f7 3860 (produce_composition): Adjust for the new annotation sequence.
825d0875 3861 (handle_composition_annotation): Likewise.
98a326f7 3862 (consume_chars): Adjust for the change of get_translation.
825d0875 3863
ccbc4452
AR
38642009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3865
4ddf94bd 3866 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3867
988a7ddb
KH
38682009-03-05 Kenichi Handa <handa@m17n.org>
3869
3870 * font.c (font_select_entity): New function.
3871 (font_find_for_lface): Use font_select_entity to select a font.
3872
3873 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3874 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3875 font with C restriction.
3876
98a326f7 38772009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3878
be1bce46 3879 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3880
10ea2b82
JR
38812009-03-04 Jason Rumney <jasonr@gnu.org>
3882
2c93b248 3883 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3884 characters that have already been read. (Bug#2569)
2c93b248 3885
10ea2b82
JR
3886 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3887 Log an error message if check_image_size failed.
3888 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3889 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3890
71a0c011
EZ
38912009-03-02 Eli Zaretskii <eliz@gnu.org>
3892
3893 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3894 when decoding process output.
3895
2f63bba8
RS
38962009-03-01 Richard M Stallman <rms@gnu.org>
3897
3898 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3899
3900 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3901
0a9564cb
EZ
39022009-02-28 Eli Zaretskii <eliz@gnu.org>
3903
3904 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3905 (decode_coding_emacs_mule, decode_coding_iso_2022)
3906 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3907 (decode_coding_raw_text, decode_coding_charset)
3908 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3909 Honor inhibit-eol-conversion. (Bug #2186)
3910
449148b3
JR
39112009-02-28 Jason Rumney <jasonr@gnu.org>
3912
3913 * coding.c (detect_coding_charset): If not checking latin extra,
3914 fail on characters between 0x80 and 0xA0. (Bug#2354)
3915
a4aee864
EZ
39162009-02-28 Eli Zaretskii <eliz@gnu.org>
3917
3918 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3919 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3920
d88bee5a
GM
39212009-02-27 Glenn Morris <rgm@gnu.org>
3922
3923 * callint.c (Finteractive): Doc fix.
3924
a808f22d
KH
39252009-02-27 Kenichi Handa <handa@m17n.org>
3926
3927 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3928
caf8d60c
CY
39292009-02-27 Chong Yidong <cyd@stupidchicken.com>
3930
3931 * font.c (font_style_to_value): Set value for unknown symbols to
3932 100 instead of 255.
b61137ea
CY
3933 (weight_table, slant_table, width_table): Treat "unspecified" as
3934 the default value.
caf8d60c 3935
1a0de25c
JB
39362009-02-26 Juanma Barranquero <lekktu@gmail.com>
3937
3938 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3939
8fc45744
JB
39402009-02-25 Juanma Barranquero <lekktu@gmail.com>
3941
107bd7d1
JB
3942 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3943 error as soon as a recursive load is detected.
8fc45744 3944
f097e223
AR
39452009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3946
3947 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3948 before caching.
3949
8810a12f
KH
39502009-02-24 Kenichi Handa <handa@m17n.org>
3951
3952 * fontset.c (fontset_find_font): Fix the condition for checking
3953 unavailable font.
3954
2c7d1565
GM
39552009-02-24 Glenn Morris <rgm@gnu.org>
3956
3957 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3958 whitespace that confuses documentation.
3959
a20878b6
MB
39602009-02-23 Miles Bader <miles@gnu.org>
3961
3962 * process.c (Flist_system_processes, Fprocess_attributes)
3963 (syms_of_process): Rename `system-process-attributes' to
3964 `process-attributes'.
3965
b3b58c01
AS
39662009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3967
1b3b981b
AS
3968 * coding.h (struct coding_system): Make safe_charsets a pointer to
3969 unsigned char.
3970 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3971 being 255.
3972 (SAFE_CHARSET_P): Likewise.
3973 (setup_iso_safe_charsets): Properly setup safe_charsets.
3974 (Fdefine_coding_system_internal): Likewise.
3975 (setup_coding_system): Likewise. Remove unneeded casts.
3976 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3977 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3978 unneeded casts.
3979
b3b58c01
AS
3980 * insdel.c (del_range_2): Don't modify gap contents when called
3981 from decode_coding_object. (Bug#1809)
3982
0b6f228c
CY
39832009-02-21 Chong Yidong <cyd@stupidchicken.com>
3984
3985 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3986 Qfont_object.
3987 (Ftype_of): Recognize font objects.
3988
3989 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3990
3991 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3992 moved to data.c.
3993
52f8870b
AR
39942009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3995
3996 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3997 async_iconified. Based on a patch by Christian Lynbech
3998 <christian.lynbech@tieto.com>.
3999 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4000
7087d5e9
GM
40012009-02-20 Glenn Morris <rgm@gnu.org>
4002
4003 * syntax.c (Fskip_chars_forward): Fix doc typo.
4004
41d2ceef
CY
40052009-02-20 Chong Yidong <cyd@stupidchicken.com>
4006
4007 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4008
1a3b7ca6
CY
40092009-02-19 Chong Yidong <cyd@stupidchicken.com>
4010
4011 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4012
73cce38d
KH
40132009-02-19 Kenichi Handa <handa@m17n.org>
4014
4015 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4016 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4017
a51092ee
DN
40182009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4019
4020 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4021
c423ecca
KH
40222009-02-18 Kenichi Handa <handa@m17n.org>
4023
4024 * font.c (font_check_otf_features): Fix handling of `nil' element.
4025 (Ffont_spec): Describe :lang and :otf in the docstring.
4026
4c1958f4
AS
40272009-02-16 Andreas Schwab <schwab@suse.de>
4028
4029 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4030 string.
4031
5704f39a
KH
40322009-02-16 Kenichi Handa <handa@m17n.org>
4033
4034 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4035 (Bug#1723)
5704f39a 4036
8f0085aa
CY
40372009-02-14 Chong Yidong <cyd@stupidchicken.com>
4038
a057d86a 4039 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4040
4041 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4042 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4043
aff01dd9
EZ
40442009-02-14 Eli Zaretskii <eliz@gnu.org>
4045
4046 * msdos.c (MAX_SCREEN_BUF): New macro.
4047 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4048 Encode the entire run of glyphs sharing the same face, instead of
4049 doing that one glyph at a time (fixes a bug with displaying
4050 double-size characters).
4051
ba301db3
AR
40522009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4053
4054 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4055
4056 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4057 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4058 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4059
4060 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4061 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4062
51d861de
SM
40632009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4064
4065 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
4066 invisible areas.
4067
7fed8996
JR
40682009-02-12 Jason Rumney <jasonr@gnu.org>
4069
631ea4fb
JR
4070 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4071 (add_font_entity_to_list): Call check_face_name even when family
4072 is unspecified.
4073
cb4a3e42
JR
4074 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4075 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4076 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4077
7fed8996 4078 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4079 raster fonts. (Bug#2219)
7fed8996 4080
895416e3
KH
40812009-02-12 Kenichi Handa <handa@m17n.org>
4082
4083 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4084 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4085 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4086 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4087 (find_automatic_composition): While looking forward and backward,
4088 check static composition. Fix where to stop looking forward.
4089 (composition_adjust_point): Fix checking of static composition.
4090 (Fcomposition_get_gstring): Pay attention to
1dacf998 4091 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4092
4093 * lisp.h (fast_looking_at): Extern it.
4094
4095 * search.c (fast_looking_at): New function.
4096
51d861de 4097 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4098 <struct glyph>.u.cmp.to.
4099 (append_composite_glyph): Likewise.
4100
51d861de 4101 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4102 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4103 composition.
51d861de 4104 (append_composite_glyph): Adjust for the change of
895416e3
KH
4105 <strcut glyph>.u.cmp.to.
4106
8510724d
JB
41072009-02-11 Juanma Barranquero <lekktu@gmail.com>
4108
4109 * casetab.c (init_casetab_once):
4110 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4111 * font.c (font_update_lface):
4112 * fontset.c (Fnew_fontset):
4113 * ftfont.c (ftfont_drive_otf):
4114 * xfont.c (xfont_open):
4115 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4116
294fa707
SM
41172009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4118
4119 * fileio.c (Fwrite_region): !NILP -> CONSP.
4120
b5bfebec
AS
41212009-02-10 Andreas Schwab <schwab@suse.de>
4122
4123 * process.c (send_process): Properly relocate pointer into data
adab88bd 4124 when using encoded data. (Bug#2272)
b5bfebec 4125
cb84a2be
KH
41262009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4127
4128 * coding.c (detect_coding_charset): Fix previous change.
4129
89e09428
JR
41302009-02-08 Jason Rumney <jasonr@gnu.org>
4131
4132 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4133 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4134
4470a277
AS
41352009-02-07 Andreas Schwab <schwab@suse.de>
4136
4137 * unexelf.c (unexec): Fix error message.
4138
3175b12a
AR
41392009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4140
4141 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4142 when modal window is active. (Bug #2152)
3175b12a
AR
4143 (applicationShouldTerminate:): Remove now-unneeded while loop
4144 around NSRunAlertPanel.
4145
4146 * nsmenu.m (popupSession): New file-global variable.
4147 (pop_down_menu): End the popupSession before closing dialog.
4148 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4149 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4150 don't query NSApp for events (just sleep instead).
4151
8434d0b8
EZ
41522009-02-07 Eli Zaretskii <eliz@gnu.org>
4153
51d861de
SM
4154 * coding.c (syms_of_coding) <translation-table-for-input>:
4155 Modify doc string to discourage use for character code unification.
8434d0b8 4156
aa82edfd
CY
41572009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4158
4159 * atimer.c (run_timers): Update pending_atimers.
4160
2d283c7c
CY
41612009-02-06 Chong Yidong <cyd@stupidchicken.com>
4162
eb306cab
CY
4163 * image.c (svg_load_image): Fix last change.
4164
2d283c7c
CY
4165 * xfns.c (Fx_create_frame): Signal an error if no font is
4166 found (Bug#2147).
4167
4d8e170e
JB
41682009-02-05 Juanma Barranquero <lekktu@gmail.com>
4169
4170 * character.c (syms_of_character) <script-representative-chars>:
4171 Fix typo in docstring.
4172
c96169a0
AR
41732009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4174
4175 * nsmenu.m (pop_down_menu): New function.
4176 (ns_popup_dialog): Call it on unwind.
4177 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4178 call timer_check() (Bug#2154).
4179 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4180 handling_signal is set.
4181 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4182
31fd7c5c 4183 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4184
4185 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4186
4187 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4188
51d861de
SM
4189 * keyboard.c (poll_for_input_1, handle_async_input):
4190 Set handling_signal under HAVE_NS.
c96169a0 4191
aacd8ba1
GM
41922009-02-04 Glenn Morris <rgm@gnu.org>
4193
4194 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4195
4cb75c4b
KH
41962009-02-04 Kenichi Handa <handa@m17n.org>
4197
4198 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4199
4200 * charset.c (Fchar_charset): New optional arg restriction.
4201
4202 * coding.h (coding_system_charset_list): Extern it.
4203
4204 * coding.c (coding_system_charset_list): New function.
4205
4206 * composite.c: Include coding.h and termhooks.h.
4207 (composition_gstring_p): Fix for the terminal case.
4208 (composition_gstring_width): Likewise.
4209 (fill_gstring_body): Likewise.
4210 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4211 the frame.
4212 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4213 is within a composition.
867d4bb3 4214 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4215
4216 * term.c (encode_terminal_code): Fix handling of composition.
4217 (produce_composite_glyph): For static composition, get pixel_width
4218 from struct composition.
4219
826ba17e
AS
42202009-02-02 Andreas Schwab <schwab@suse.de>
4221
4222 * unexelf.c (unexec): Handle unaligned bss offset.
4223
8ad093db
AR
42242009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4225
4226 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4227 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4228
8ad093db
AR
4229 * keyboard.c (handle_interrupt): Don't call
4230 quit_throw_to_read_char() under NS.
d0a76a6e 4231
8ad093db
AR
4232 * blockinput.h: Remove NS-specific code.
4233
4d18a7a2
DN
42342009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4235
db878925
DN
4236 * dispnew.c (window_change_signal): Don't try to get the size of a
4237 suspended tty frame.
4238 * term.c (Fresume_tty): Resize if the size has changed while the
4239 tty was suspended.
4240
4d18a7a2
DN
4241 * alloc.c (mark_stack): Properly conditionalize previous change.
4242
8984df7c
JB
42432009-01-30 Juanma Barranquero <lekktu@gmail.com>
4244
4245 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4246 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4247 Remove; this code is not used on Windows.
4248
75f4f1ac
EZ
42492009-01-30 Eli Zaretskii <eliz@gnu.org>
4250
4251 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4252 EOLs that also has stray ^M characters.
4253
07a1e794
JB
42542009-01-30 Juanma Barranquero <lekktu@gmail.com>
4255
4256 * atimer.c (run_timers, alarm_signal_handler):
4257 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4258 * w32inevt.c (w32_console_read_socket):
4259 * w32term.c (w32_read_socket):
4260 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4261
a8b11cc9
CY
42622009-01-30 Chong Yidong <cyd@stupidchicken.com>
4263
4264 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4265 Initialize it as a relative filename pattern.
4266 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4267 (Fcall_process_region): Simplify temp file creation using
4268 temporary-file-directory.
4269
c279587b
EZ
42702009-01-29 Eli Zaretskii <eliz@gnu.org>
4271
4272 * msdos.c: Rename pending_signals to msdos_pending_signals.
4273 (sig_suspender, sigprocmask): Adjust.
4274
a8fe3242
CY
42752009-01-29 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * keyboard.c (pending_signals): New var.
4278 (poll_for_input, input_available_signal, init_keyboard): Set it.
4279 (process_pending_signals): New function.
4280
4281 * lisp.h (QUIT): Check pending_signals instead of
4282 interrupt_input_pending. Use process_pending_signals.
4283
51d861de 4284 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4285
51d861de 4286 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4287
4288 * sysdep.c (emacs_write): Use process_pending_signals.
4289
4290 * xterm.c (XTread_socket): Update pending_signals.
4291
4292 * w32term.c (w32_read_socket): Update pending_signals.
4293
4294 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4295
6570a1c4
KH
42962009-01-29 Kenichi Handa <handa@m17n.org>
4297
4298 * xftfont.c (xftfont_has_char): New function.
4299 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4300
d72a4afa
AR
43012009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4302
4303 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4304 under GNUstep.
4305 (ns_query_color): New declaration.
4306
4307 * nsterm.m (ns_confirm_quit): New variable.
4308 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4309 (EmacsApp-applicationShouldTerminate:): Use it.
4310 (EmacsPrefsController): Let user set it.
4311 (ns_query_color): New function.
4312 (ns_defined_color): Use it.
4313 (ns_initialize): Drop.
4314 (ns_term_init): Add two lines from ns_initialize(), and set
4315 input_interrupt_mode to nil.
4316
4317 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4318 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4319
9fe78804
KH
43202009-01-28 Kenichi Handa <handa@m17n.org>
4321
4322 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4323 (fontset_get_font_group): Remember that no font-group is specified
4324 for C.
9fe78804 4325
fa57de36
CY
43262009-01-27 Chong Yidong <cyd@stupidchicken.com>
4327
930600e9
CY
4328 * fns.c (concat): Check for string overflow (bug#1787).
4329
fa57de36
CY
4330 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4331 Quadruple undo limits (bug#1501).
4332
7179ce7b
KH
43332009-01-27 Kenichi Handa <handa@m17n.org>
4334
4335 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4336 directly use GT_Get_Char_index.
4337
4338 * xftfont.c (struct xftfont_info): New member `index'.
4339
4340 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4341 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4342
5be8fcc0
CY
43432009-01-26 Kenichi Handa <handa@m17n.org>
4344
4345 * fontset.c (fontset_find_font): Fix handling of non-cons return
4346 value of fontset_get_font_group.
4347 (fontset_font): Revert last change.
4348
19ae3e61
JR
43492009-01-26 Jason Rumney <jasonr@gnu.org>
4350
4351 * w32font.c (w32font_list_internal): Return quickly if registry is
4352 unknown. Simplify final return.
4353 (add_font_entity_to_list): Break complex logic down into more
4354 manageable chunks. Move unknown registry check to
4355 w32font_list_internal.
4356
8612b71a
AR
43572009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4358
4359 Changes to remove Feval calls from GUI under NS.
4360
d8038940
JB
4361 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4362 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4363 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4364
4365 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4366 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4367 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4368 instead of NON_ASCII_KEYSTROKE_EVENT.
4369 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4370 (EmacsApp-applicationShouldTerminate:): Query user.
4371 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4372 instead of Feval.
4373
4374 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4375
4376 * keyboard.c (kbd_buffer_get_event): Check for it.
4377 (keys_of_keyboard): Define lispy keys for
4378 ns-put/unput-working-text.
4379
4380 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4381 versions.
4382 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4383
6288ae55
CY
43842009-01-25 Chong Yidong <cyd@stupidchicken.com>
4385
4386 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4387 setting current_buffer directly. (Bug#2044)
6288ae55 4388
289e7f8f
CY
43892009-01-24 Chong Yidong <cyd@stupidchicken.com>
4390
5ce87308 4391 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4392 any work. (Bug#1952, bug#1990).
5ce87308 4393
64cc3cf6 4394 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4395
b3243e6f
AR
43962009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4397
4398 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4399 (ns_no_defaults): New declaration.
4400 (main): Use it.
e0d2e69a 4401
d900b2af 4402 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4403
d900b2af 4404 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4405
d900b2af
AR
4406 * nsterm.m (ns_no_defaults): New variable.
4407 (ns_initialize): Don't read defaults when ns_no_defaults.
4408 (EmacsView-readSelectionFromPasteboard:)
4409 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4410 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4411 (ns_dumpglyphs_stretch): New function.
4412 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4413 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4414
e0d2e69a
AR
4415 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4416
3ac71f5d
CY
44172009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4418
4419 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4420 call for Sparc64.
4421
3fe53a83
AR
44222009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4423
4424 * nsfns.m:
4425 * nsgui.h:
4426 * nsmenu.m:
4427 * nsselect.m:
4428 * nsterm.h:
4429 * nsterm.m: Remove '23' comments that indicated code added during
4430 update from emacs-20 -> emacs-23.
4431
10f87c6f 44322009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4433
4434 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4435 ns_alternate_modifier. (Bug#1217)
a3b53a85 4436
c7cef62d
AR
4437 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4438 Display all shortcuts, including those w/o super modifier.
4439
575fb8bd
AR
4440 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4441
918b848b
CY
44422009-01-22 Chong Yidong <cyd@stupidchicken.com>
4443
4444 * fileio.c (Vwrite_region_post_annotation_function)
4445 (Vwrite_region_annotation_buffers): New vars.
4446 (build_annotations_unwind): Just reset
4447 Vwrite_region_annotation_buffers.
4448 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4449 Call write-region-post-annotation-function.
4450 (build_annotations): Add to Vwrite_region_annotation_buffers if
4451 buffer changes.
4452
a39e2539
AR
44532009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4454
4455 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4456 Tiger.
51d861de
SM
4457 * nsfns.m (ns_do_applescript):
4458 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4459
35ed44db
AR
44602009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4461
4462 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4463
cbe0b5bf
AR
44642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4465
4466 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4467
6049d3a0
AR
4468 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4469
4470 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4471 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4472 handle Ctrl-tab. (Bug#1841)
4473 (ns_get_color): Use unsigned long long for scanned hex string value.
4474 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4475 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4476 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4477 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4478 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4479 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4480 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4481
d3810c21 4482 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4483 DPI. (Bug#1316)
d3810c21
AR
4484 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4485 values in onTiger section.
4c7077c3 4486
e301e634
CY
44872009-01-19 Chong Yidong <cyd@stupidchicken.com>
4488
7f82490b
CY
4489 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4490 Check return value of font_spec_from_name.
64cc3cf6 4491 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4492
4493 * font.c (font_spec_from_name): Return Qnil if font name could not
4494 be parsed.
4495 (font_parse_name): Treat a `?' character as part of an XLFD.
4496
e301e634
CY
4497 * fns.c (Fsubstring): Doc fix.
4498
1c0db158
KH
44992009-01-19 Kenichi Handa <handa@m17n.org>
4500
51d861de 4501 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4502 (ftfont_list): Likewise.
4503
acf20901
JB
45042009-01-18 Juanma Barranquero <lekktu@gmail.com>
4505
fff4e459
JB
4506 * dbusbind.c (Fdbus_register_signal):
4507 * process.c (conv_sockaddr_to_lisp):
4508 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4509
acf20901
JB
4510 * callproc.c (Fgetenv_internal): Doc fix.
4511
e7abcdfb
CY
45122009-01-16 Chong Yidong <cyd@stupidchicken.com>
4513
4514 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4515 it is not even used.
4516
b60861e6
GM
45172009-01-16 Glenn Morris <rgm@gnu.org>
4518
4519 * font.c (Ffont_variation_glyphs): Silence compiler.
4520
8db52afe
JB
45212009-01-15 Juanma Barranquero <lekktu@gmail.com>
4522
4523 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4524 Reported by David Robinow <drobinow@gmail.com>.
4525
4cddb209
KH
45262009-01-15 Kenichi Handa <handa@m17n.org>
4527
51d861de 4528 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4529
f247f67b
JR
45302009-01-14 Jason Rumney <jasonr@gnu.org>
4531
4532 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4533 never a fontset. (Bug#1562)
f247f67b 4534
f56a4450
KH
45352009-01-14 Kenichi Handa <handa@m17n.org>
4536
4537 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4538 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4539
4e99855e
CY
45402009-01-13 Chong Yidong <cyd@stupidchicken.com>
4541
4542 * font.c (font_clear_prop): If clearing the family, clear the font
4543 width index too.
4544
fff4e459 4545 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4546
24f01470
JB
45472009-01-12 Juanma Barranquero <lekktu@gmail.com>
4548
4549 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4550 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4551 functions, use sizeof.
4552
a41240a3
MR
45532009-01-12 Martin Rudalics <rudalics@gmx.at>
4554
4555 * keyboard.c (read_char): Fix case where last_nonmenu_event
4556 returned a bad value with submenus. (Bug#447)
4557
944636b8
CY
45582009-01-12 Chong Yidong <cyd@stupidchicken.com>
4559
4560 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4561 family, clear the font width index too.
4562
0dad7c6f
JR
45632009-01-11 Jason Rumney <jasonr@gnu.org>
4564
4565 * keyboard.c (cmd_error_internal): Exit when errors occur before
4566 frame creation and not in daemon mode. (Bug#1836)
4567
7c2363af
CY
45682009-01-10 Chong Yidong <cyd@stupidchicken.com>
4569
4570 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4571 of a display vector, backtrack.
4572 (try_window_reusing_current_matrix): Check glyph type before
4573 referencing charpos member.
4574
97b1b294
EZ
45752009-01-10 Eli Zaretskii <eliz@gnu.org>
4576
4577 Fix Bug #876:
4578
4579 * coding.c (inhibit_null_byte_detection): New variable.
4580 (detect_coding, detect_coding_system): Don't pay attention to null
4581 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4582 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4583 <inhibit-iso-escape-detection>: Doc fix.
4584
4624b6e3
JR
45852009-01-09 Jason Rumney <jasonr@gnu.org>
4586
4587 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4588 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4589 Only report Unicode Plane 2 fonts as unicode-sip.
4590
323b840c
CY
45912009-01-09 Chong Yidong <cyd@stupidchicken.com>
4592
51d861de
SM
4593 * xfaces.c (Fx_font_family_list): Delete function.
4594 Move compatibility version to faces.el.
323b840c 4595
51d861de 4596 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4597
eba7400d
MR
45982009-01-09 Martin Rudalics <rudalics@gmx.at>
4599
4600 * frame.c (x_set_frame_parameters): Remember requested value for
4601 fullscreen before it's reset by the parameter handler.
4602
4b09796d
GM
46032009-01-09 Glenn Morris <rgm@gnu.org>
4604
4605 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4606 (last_command_event): ... and update all users.
4b09796d
GM
4607 (last_input_char): For clarity, rename to...
4608 (last_input_event): ... and update all users.
4609 (last-command-char, last-input-char): Move to subr.el as aliases.
4610 * cmds.c, commands.h: Update for last_command_char rename.
4611
14ccea62
CY
46122009-01-08 Chong Yidong <cyd@stupidchicken.com>
4613
51d861de 4614 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4615
5f004711
JR
46162009-01-08 Jason Rumney <jasonr@gnu.org>
4617
4618 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4619 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4620 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4621 Don't declare.
fff4e459 4622 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4623 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4624
b71f6f73
KH
46252009-01-07 Kenichi Handa <handa@m17n.org>
4626
50b06221 4627 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4628 remember the coding system used for decoding in
50b06221
KH
4629 coding_system (Bug#1039).
4630
b71f6f73 4631 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4632 breaking the loop. (Bug#870)
b71f6f73
KH
4633 (decode_coding_utf_16, decode_coding_emacs_mule)
4634 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4635 (decode_coding_charset): Likewise.
4636
56f668f7
MR
46372009-01-05 Martin Rudalics <rudalics@gmx.at>
4638
4639 * frame.c (x_set_frame_parameters): Make sure height (width) get
4640 applied when fullwidth (fullheight) is set. (Bug#1522)
4641
5da9424d
JB
46422009-01-04 Juanma Barranquero <lekktu@gmail.com>
4643
4644 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4645 (utc_base): Declare as ULONGLONG, not long double.
4646 (convert_time_raw): Delete.
4647 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4648 (initialize_utc_base): New function.
4649 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4650 (convert_from_time_t): Use initialize_utc_base; compute result with
4651 64-bit arithmetic.
4652 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4653
c4605e09
EZ
46542009-01-03 Eli Zaretskii <eliz@gnu.org>
4655
9acef61c 4656 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4657 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4658 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4659 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4660 [!subprocesses]: Define.
4661 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4662 (Flist_system_processes, Fsystem_process_attributes)
4663 [!subprocesses]: Call list_system_processes and
4664 system_process_attributes instead of returning Qnil.
4665
9acef61c
JB
4666 * dosfns.c (system_process_attributes, list_system_processes):
4667 New functions.
c4605e09
EZ
4668
4669 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4670
4671 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4672 Don't use the default (no-op) implementation.
4673
8b7d0a16
JR
46742009-01-03 Jason Rumney <jasonr@gnu.org>
4675
a6d46bc1
JR
4676 * keyboard.c (parse_modifiers_uncached): Wheel events are
4677 clicks (bug#687).
4678
8b7d0a16
JR
4679 * w32term.c (x_query_colors, x_query_color): New functions.
4680
4681 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4682 (svg_load_image): Cast returned pointers from dynamically loaded
4683 functions. Eliminate W32 specific code.
4684
bfe11752
DN
46852009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4686
89e2438a
DN
4687 * nsfns.m (x_set_foreground_color, x_set_background_color)
4688 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4689 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4690 x_ prefix instead of ns_. Update references.
4691 (syms_of_nsfns): Add a FIXME comment.
4692
4693 * nsterm.m (x_set_cursor_type): New prototype.
4694 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4695
bfe11752
DN
4696 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4697 for Solaris instead of incorrectly providing Qutime and Qcutime.
4698
031da700
EZ
46992009-01-02 Eli Zaretskii <eliz@gnu.org>
4700
4701 * w32.c (process_times): Compute sum of utime and stime.
4702 (system_process_attributes): Add Qtime to the alist.
4703
4704 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4705 and add them to the alist.
4706
4707 * process.c (top level) <Qtime, Qctime>: New variables.
4708 (syms_of_process): staticpro them.
4709 (Fsystem_process_attributes): Add their documentation to the doc
4710 string.
4711
4712 * process.h: Declare Qtime and Qctime.
4713
df23bf08
JR
47142009-01-02 Jason Rumney <jasonr@gnu.org>
4715
9acef61c 4716 * image.c (Qgobject): New symbol.
df23bf08
JR
4717 (syms_of_image): Initialize it.
4718 (init_svg_functions): Load some functions from gobject library.
4719
5bbdf7aa
DN
47202009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4721
4722 * frame.c (make_terminal_frame): Remove redundant code and useless
4723 block.
4724
63136da6
AS
47252009-01-01 Andreas Schwab <schwab@suse.de>
4726
4727 * process.c (conv_sockaddr_to_lisp): Add workaround for
4728 getsockname bug on BSD.
4729
9ef69046
CY
47302009-01-01 Chong Yidong <cyd@stupidchicken.com>
4731
d6fafbe0
CY
4732 * xfns.c (x_create_tip_frame): Set border width of the X window.
4733
51d861de 4734 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4735
f9c34147
JR
47362009-01-01 Jason Rumney <jasonr@gnu.org>
4737
9acef61c 4738 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4739 Don't block input, as per earlier xterm.c changes.
4740
f5497e45
AR
47412008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4742
4743 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4744 (ns_appkit_version_int): New function.
4745 (x-server-version): Use ns_appkit_version_int and follow 21+
4746 convention of returning 3 integers.
4747
c19cab20
KH
47482008-12-30 Kenichi Handa <handa@m17n.org>
4749
4750 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4751 (CHAR_SURROGATE_PAIR_P): New macro.
4752
4753 * font.h (struct font_driver): New member get_variation_glyphs.
4754
9acef61c 4755 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4756 (Ffont_variation_glyphs): New function.
4757 (syms_of_font): Defsubr it.
4758
4759 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4760 ftfont_variation_glyphs.
4761 (setup_otf_gstring): New function.
4762 (ftfont_drive_otf): Use it.
4763 (ftfont_shape_by_flt): Handle variation selector.
4764 (ftfont_variation_glyphs): New function.
4765
28cd591f
MR
47662008-12-30 Martin Rudalics <rudalics@gmx.at>
4767
4768 * frame.c (Vemacs_iconified): Remove.
4769
7f714baf
JR
47702008-12-30 Jason Rumney <jasonr@gnu.org>
4771
4772 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4773 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4774
9d2d22ab
CY
47752008-12-30 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * indent.c (Fvertical_motion): Don't advance iterator if we have
4778 reseated to the desired position.
4779
4780 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4781 checking for pos match.
4782
545312c2
KH
47832008-12-30 Kenichi Handa <handa@m17n.org>
4784
1ede3eb6
KH
4785 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4786 just get the low 8-bit of the code.
4787
545312c2
KH
4788 * font.c (font_intern_prop): Validate str as multibyte.
4789
bd7bbf29
DN
47902008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4791
31e0750e
DN
4792 * dispextern.h (struct face): Move lface and hash from the middle
4793 of bitfields.
4794
bd7bbf29
DN
4795 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4796
b5672e7c
DN
47972008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4798
4799 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4800 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4801 instead of intervals.h.
4802
d704470f
AS
48032008-12-26 Andreas Schwab <schwab@suse.de>
4804
4805 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4806 cons.
4807
54b33868
MR
48082008-12-26 Martin Rudalics <rudalics@gmx.at>
4809
4810 * textprop.c (Qminibuffer_prompt): New variable.
4811 (syms_of_textprop): Initialize it.
4812 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4813 in minibuffer-prompt face. (Bug#1662)
4814
40b615d6
JR
48152008-12-25 Jason Rumney <jasonr@gnu.org>
4816
4817 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4818
baae5c2d
JR
48192008-12-24 Jason Rumney <jasonr@gnu.org>
4820
4821 * ralloc.c (r_alloc_reset_variable): New function.
4822
4823 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4824 record of what points where. (Bug#716)
baae5c2d 4825
a9051c88
DN
48262008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4827
4828 * minibuf.c (read_minibuf): Follow the non-interactive case when
4829 running as a daemon, before detaching.
4830
8b146312
AS
48312008-12-22 Andreas Schwab <schwab@suse.de>
4832
4833 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4834 * gtkutil.c (free_widget_value): Use xfree instead of free.
4835
56f2de10
MR
48362008-12-22 Martin Rudalics <rudalics@gmx.at>
4837
4838 * frame.c (delete_frame): New function derived from
4839 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4840 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4841 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4842 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4843 * frame.h: Extern delete_frame.
4844 * window.c (window_loop):
4845 * terminal.c (delete_terminal):
4846 * xterm.c (x_connection_closed):
4847 * xfns.c (Fx_hide_tip):
9acef61c 4848 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4849
1fc200d6
JR
48502008-12-21 Jason Rumney <jasonr@gnu.org>
4851
4852 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4853 when character maps to .notdef character.
4854
5e252df2
SM
48552008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4856
4857 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4858
99b72cc4
JR
48592008-12-20 Jason Rumney <jasonr@gnu.org>
4860
4861 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4862 a graphical frame on Windows. (Bug#1325)
99b72cc4 4863
acc49a52
JD
48642008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4865
4866 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4867
6ea15123
CY
48682008-12-20 Chong Yidong <cyd@stupidchicken.com>
4869
4870 * minibuf.c (Fread_buffer): Doc fix.
4871
b2dab6c8
JR
48722008-12-20 Jason Rumney <jasonr@gnu.org>
4873
54ea0c87 4874 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4875 server name in UNC paths. (Bug#719)
54ea0c87 4876
b2dab6c8 4877 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4878 charbuf. (Bug#1035)
b2dab6c8 4879
6d1921be
DN
48802008-12-19 Daniel Engeler <engeler@gmail.com>
4881
4882 * sysdep.c (serial_configure): Fix typo.
4883
53934c98
DN
48842008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4885
4886 * sysdep.c: Include alloca.h.
f4f634e8
DN
4887 (system_process_attributes): Add implementation for Solaris.
4888
4889 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4890
06e111a6
DN
48912008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4892
4893 Reorganize implementation of Flist_system_processes and
4894 Fsystem_process_attributes. No functional changes.
4895 * process.c: Don't #include pwd.h, grp.h and limits.h.
4896 (Flist_system_processes): Just call list_system_processes.
4897 (Fsystem_process_attributes): Just call system_process_attributes.
4898 (procfs_list_system_processes, time_from_jiffies)
4899 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4900 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4901
4902 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4903 (list_system_processes): Rename from
4904 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4905 Provide a do nothing implementation.
4906 (system_process_attributes): Rename from
4907 procfs_list_system_processes.
4908 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4909 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4910
4911 * w32.c (list_system_processes): Rename from
4912 w32_list_system_processes.
4913 (system_process_attributes): Rename from
4914 w32_system_process_attributes.
4915
4916 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4917
4918 * process.h (w32_list_system_processes)
4919 (w32_system_process_attributes): Remove.
362654a6
JB
4920 (list_system_processes, system_process_attributes):
4921 New prototypes.
06e111a6 4922
6a705b23
KH
49232008-12-19 Kenichi Handa <handa@m17n.org>
4924
4925 * xfont.c (xfont_decode_coding_xlfd): New function.
4926 (xfont_encode_coding_xlfd): New function.
4927 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4928 (xfont_list): Decode and encode XLFD by iso-8859-1.
4929 (xfont_match): Likewise.
4930 (xfont_list_family): Likewise.
4931 (xfont_open): Likewise.
4932
d66c0241 4933 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4934 names are utf-8.
4935
d66c0241 4936 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4937 names are utf-8.
4938
5a130941
JD
49392008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4940
4941 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4942 changed.
bfd20325
JD
4943 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4944 clicked on a detached tool bar button.
5a130941 4945
fd95644b
DN
49462008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4947
4948 * emacs.c (main): Print and error and exit when no data is read
4949 from the pipe.
4950
e6eee6ae
JR
49512008-12-17 Jason Rumney <jasonr@gnu.org>
4952
4953 * w32font.c (w32font_has_char): Always return -1.
4954
a35dd56b
KH
49552008-12-16 Kenichi Handa <handa@m17n.org>
4956
4957 * font.c (font_open_entity): Fix previous change.
4958
0e3635c2
DN
49592008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4960
4961 * process.c: Include <limits.h>.
4962
d4835507 49632008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4964
4965 * font.c (font_update_drivers): Fix mistake in reconstructing the
4966 driver list.
4967
49682008-12-16 Chong Yidong <cyd@stupidchicken.com>
4969
4970 * font.c (font_clear_cache): Fix format of font cache data.
4971
e2cbc401
CY
49722008-12-15 Chong Yidong <cyd@stupidchicken.com>
4973
4974 * xftfont.c (xftfont_open): Free Xft font pattern if
4975 XftFontOpenPattern fails.
4976
4977 * xterm.c (x_free_frame_resources): Remove extraneous call to
4978 free_frame_faces.
4979
b131d535
CY
49802008-12-13 Chong Yidong <cyd@stupidchicken.com>
4981
4982 * xterm.c (x_delete_display): Move xim_close_dpy call to
4983 x_delete_terminal.
4984 (x_delete_terminal): Call xim_close_dpy.
4985
e6df5336
JR
49862008-12-13 Jason Rumney <jasonr@gnu.org>
4987
4988 * w32font.c (intern_font_name): New function.
4989 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4990 (w32font_open_internal, Fx_select_font): Decode font name.
4991 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4992
4993 * w32font.h (intern_font_name): Declare new function.
4994
4995 * w32uniscribe.c (add_opentype_font_name_to_list):
4996 Use intern_font_name.
4997
20d68145
CY
49982008-12-13 Chong Yidong <cyd@stupidchicken.com>
4999
9f2554de
CY
5000 * frame.c (Fdelete_frame): Call free_font_driver_list.
5001
3d9bec9a
CY
5002 * font.c (free_font_driver_list): Implement missing function.
5003
20d68145
CY
5004 * w32term.c (w32_term_init): Don't initialize the image cache
5005 here; it will be done in init_frame_faces.
5006
5007 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5008 (struct x_display_info): Remove unused member null_pixel. New
5009 member xim_callback_data.
5010
5011 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5012 (xim_initialize): Save pointer to callback function data.
5013 (xim_close_dpy): Free callback function data. Call XCloseIM,
5014 reverting 2008-11-04 change by David Smith.
5015 (x_term_init): Don't initialize the image cache here; it will be
5016 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5017 (x_delete_display): Free x_dnd_atoms member.
5018
96f9306b
KH
50192008-12-13 Kenichi Handa <handa@m17n.org>
5020
6dec9044
JB
5021 * font.c (font_rescale_ratio): Moved from xfaces.c.
5022 Argument type changed. Handle a font-spec too.
96f9306b 5023 (font_score): Check Vface_font_rescale_alist.
6dec9044 5024 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5025
5026 * xfaces.c (font_rescale_ratio): Moved to font.c.
5027
8d5b4964
CY
50282008-12-13 Chong Yidong <cyd@stupidchicken.com>
5029
5030 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5031
e6df5336
JR
50322008-12-12 Jason Rumney <jasonr@gnu.org>
5033
5034 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5035 Vwindow_system_version to the real w32 major version.
5036
97c6058a
DN
50372008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5038
5039 * term.c (init_tty): Move setting the terminal name before the
5040 potential user: maybe_fatal.
5041
ec4e88d7
CY
50422008-12-11 Chong Yidong <cyd@stupidchicken.com>
5043
d4835507
JB
5044 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5045 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5046
b4233ec9
JR
50472008-12-11 Jason Rumney <jasonr@gnu.org>
5048
8ec71e23 5049 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5050 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5051
b4233ec9 5052 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5053 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5054
011a0143
JB
50552008-12-11 Juanma Barranquero <lekktu@gmail.com>
5056
5057 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5058
3c309f34
JB
50592008-12-11 Juanma Barranquero <lekktu@gmail.com>
5060
5061 * process.c (Fsystem_process_attributes, syms_of_process):
5062 Fix typo in name of Ssystem_process_attributes.
5063 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5064
fedc6ab5
JB
50652008-12-11 Juanma Barranquero <lekktu@gmail.com>
5066
5067 * syntax.c (Fmodify_syntax_entry): Doc fix.
5068
ba3de0e8
JB
50692008-12-10 Juanma Barranquero <lekktu@gmail.com>
5070
5071 * font.c (Ffont_spec): Move usage to end of docstring.
5072
174f1c74
JR
50732008-12-10 Jason Rumney <jasonr@gnu.org>
5074
5075 * w32font.c (Qcham): New symbol.
5076 (font_supported_scripts): Add cham, and comments for other new
5077 scripts in bitfield from OpenType spec.
9d32f818
JR
5078 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5079 contain characters beyond the bmp.
174f1c74 5080
7b649478
KH
50812008-12-10 Kenichi Handa <handa@m17n.org>
5082
5083 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5084 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5085 Qunicode_sip.
5086
2133e2d1
JB
50872008-12-10 Juanma Barranquero <lekktu@gmail.com>
5088
5089 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5090 (Fcoding_system_put): Use QCdefault_char.
5091 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5092
9af886ee
CY
50932008-12-09 Chong Yidong <cyd@stupidchicken.com>
5094
74d819eb
CY
5095 * xftfont.c (syms_of_xftfont): Fix typo.
5096
4ccfa1c0 5097 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5098
7c19d3ae
DN
50992008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5100
5101 * emacs.c (main): Close daemon_pipe on exec.
5102
567826bb
CY
51032008-12-08 Chong Yidong <cyd@stupidchicken.com>
5104
5105 * termchar.h (struct tty): New members termcap_term_buffer and
5106 termcap_strings_buffer.
5107
5108 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5109 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5110 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5111 All callers changed.
5112 (init_tty): Store termcap data and string buffers in new struct
5113 tty members termcap_term_buffer and termcap_strings_buffer.
5114 (delete_tty): Free them.
4ccfa1c0 5115 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5116
aa96c42b
SZ
51172008-12-07 Seiji Zenitani <zenitani@mac.com>
5118
5119 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5120 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5121
b7e1d896
CY
51222008-12-06 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * coding.c (make_conversion_work_buffer): Disable buffer
5125 modification hooks in the work buffer.
5126
b5ec91a5
EZ
51272008-12-05 Eli Zaretskii <eliz@gnu.org>
5128
5129 * process.c (procfs_system_process_attributes): If `nread' has a
5130 negative value, assign zero to it.
5131
a5d2a52b
CY
51322008-12-05 Chong Yidong <cyd@stupidchicken.com>
5133
68c5540b 5134 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5135
7bf1bb21
KH
51362008-12-05 Kenichi Handa <handa@m17n.org>
5137
5138 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5139 second character is a combining character.
5140
2fdc7d00
EZ
51412008-12-05 Eli Zaretskii <eliz@gnu.org>
5142
5143 * process.c (procfs_system_process_attributes): Don't use cmd,
5144 cmdsize, and q without initializing them first.
5145
bf6bfba8
JR
51462008-12-04 Jason Rumney <jasonr@gnu.org>
5147
5148 * w32font.c (w32font_draw): Initialize orig_clip before getting
5149 it, and delete it when finished.
5150
a3b1a468
DN
51512008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5152
5153 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5154 case when running as a daemon before detaching.
5155
8b8be8eb
JB
51562008-12-03 Juanma Barranquero <lekktu@gmail.com>
5157
805f2638 5158 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5159
b1bde622
KH
51602008-12-03 Kenichi Handa <handa@m17n.org>
5161
e500c47d
KH
5162 * font.c (font_at): Set `multibyte' at first.
5163
ca516334
KH
5164 * coding.c (decode_coding_charset): Check type of an element of
5165 vector VALIDS.
7bf1bb21 5166 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5167
4ccfa1c0 5168 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5169 (font_for_char): Likewise.
5170
1e5ecd37
CY
51712008-12-03 Chong Yidong <cyd@stupidchicken.com>
5172
d5b01609 5173 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5174 (font_update_lface): Handle fonts with corrupted size specs,
5175 i.e. non-int and non-float.
d5b01609 5176
11e3a6e4 5177 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5178 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5179 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5180
ab06788b
CY
5181 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5182
1e5ecd37 5183 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5184 underline_minimum_offset for underline position.
1e5ecd37 5185
63c125ab
DN
51862008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5187
5188 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5189
5190 * character.c (c_string_width): Specify the type for LEN.
5191
3a8406e1
KH
51922008-12-03 Kenichi Handa <handa@m17n.org>
5193
4ccfa1c0 5194 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5195 (decode_coding_utf_8): Likewise.
4ccfa1c0 5196 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5197 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5198
651df7d9
CY
51992008-12-02 Chong Yidong <cyd@stupidchicken.com>
5200
5201 * keyboard.c (make_lispy_position): Only use PT if the selected
5202 window is current.
5203
1f625c6c
AS
52042008-12-02 Andreas Schwab <schwab@suse.de>
5205
f7741ce9
AS
5206 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5207
1f625c6c
AS
5208 * doprnt.c (doprnt1): Fix size of charbuf.
5209
92bc2678
CY
52102008-12-02 Chong Yidong <cyd@stupidchicken.com>
5211
5212 * keyboard.c (timer_check): Revert last change.
5213
93b9e8cc
JB
52142008-12-02 Juanma Barranquero <lekktu@gmail.com>
5215
5216 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5217
fd7a37d5
JB
52182008-12-01 Juanma Barranquero <lekktu@gmail.com>
5219
5220 * makefile.w32-in: Update dependencies.
5221 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5222
c115043b
AS
52232008-12-01 Andreas Schwab <schwab@suse.de>
5224
5225 * font.c (register_font_driver): Use xmalloc.
5226 (font_put_frame_data): Likewise.
5227
f5668d2a
CY
52282008-12-01 Chong Yidong <cyd@stupidchicken.com>
5229
860d96be
CY
5230 * xfaces.c (realize_x_face): Make abort condition clearer.
5231
f5668d2a
CY
5232 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5233
379c17e7
CY
52342008-11-30 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * keyboard.c (timer_check): After a timer runs, ensure that the
5237 selected window's buffer is current.
5238
35f36d65
JB
52392008-11-30 Juanma Barranquero <lekktu@gmail.com>
5240
f952c61c
JB
5241 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5242 It was accidentally restored by the Unicode merge.
5243
35f36d65
JB
5244 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5245
b23077df
JB
52462008-11-29 Juanma Barranquero <lekktu@gmail.com>
5247
5248 * w32proc.c: Include "coding.h".
5249 (Fw32_short_file_name): Encode filename passed to Windows API.
5250 (Fw32_long_file_name): Encode filename passed to Windows API and
5251 decode back the result. (Bug#1433)
5252
b8ebe9dd
KH
52532008-11-29 Kenichi Handa <handa@m17n.org>
5254
8cc53f96
KH
5255 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5256 not before accessing it.
5257
b8ebe9dd
KH
5258 * charset.c (Fdefine_charset_internal): After calculating
5259 min_char, max_char, and fastmap, copy the charset structure again.
5260 (encode_char): Fix the previous change.
5261
59bc82c0
SZ
52622008-11-28 Seiji Zenitani <zenitani@mac.com>
5263
5264 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5265
5266 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5267
5268 * nsterm.m (x_set_frame_alpha): New function.
5269
32247e3d
EZ
52702008-11-27 Eli Zaretskii <eliz@gnu.org>
5271
5272 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5273
b003e5ff
JB
52742008-11-27 Juanma Barranquero <lekktu@gmail.com>
5275
5276 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5277 pointer to check_face_name.
5278
708550f5
KH
52792008-11-27 Kenichi Handa <handa@m17n.org>
5280
5281 * category.h (SET_CATEGORY_SET): Call set_category_set.
5282 (set_category_set): Extern it.
5283
5284 * category.c (hash_get_category_set): New function.
5285 (Fmodify_category_entry): Adjusted for the change of
5286 char_table_ref_and_range. Call hash_get_category_set to get a
5287 category set to store in the table.
5288
5289 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5290 Funify_charset.
5291
2ae37cf0 5292 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5293 (DECODE_CHAR): Check if the decoder vector is ready.
5294 (ENCODE_CHAR): Check if the encoder char-table is ready.
5295 (maybe_unify_char): Extern it.
5296
5297 * charset.c (Vchar_unified_charset_table): Delete it.
5298 (inhibit_load_charset_map): New variable.
5299 (temp_charset_work): New variable.
5300 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5301 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5302 New macros.
5303 (load_charset_map): Meaning of control_flag changed. If
5304 inhibit_load_charset_map is nonzero, setup a table in
5305 temp_charset_work.
5306 (load_charset): New argument control_flag.
5307 (map_charset_for_dump): New function.
5308 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5309 map_charset_for_dump.
5310 (Fdefine_charset_internal): If the charset method is MAP, load
5311 mapping tables by calling load_charset.
5312 (Funify_charset): Don't load a mapping table but directly set
5313 Vchar_unify_table.
5314 (maybe_unify_char): New function.
5315 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5316 Handle the case of inhibit_load_charset_map being nonzero.
5317 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5318 Handle the case of inhibit_load_charset_map being nonzero.
5319 (Fclear_charset_maps): Just free temp_charset_work.
5320 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5321 variable.
5322
5323 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5324 change of char_table_ref_and_range.
5325 (char_table_ref_and_range): Change the meaning of argument FROM
5326 and TO. Now the caller must provide initial values for *FROM
5327 and *TO.
5328
5329 * fontset.c (fontset_add): Adjusted for the change of
5330 char_table_ref_and_range.
5331 (fontset_get_font_group): Likewise.
5332 (Ffontset_info): Likewise.
5333
5334 * keymap.c (describe_vector): Adjusted for the change of
5335 char_table_ref_and_range. For char-table, put boundary between
5336 non-ASCII and 8-bit characters.
5337
5338 * print.c (print_object): For bool-vector, delete unnecessary
5339 check of ASCII_BYTE_P.
5340
9196133b
JR
53412008-11-26 Jason Rumney <jasonr@gnu.org>
5342
5343 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5344 leading in font height. (Bug#879)
9196133b 5345
9f688acf
GM
53462008-11-26 Glenn Morris <rgm@gnu.org>
5347
5348 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5349 redefinition with ifdef. (Bug#1383)
5350
90d19aff
AR
53512008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5352
5353 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5354
4ccfa1c0 53552008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5356
5357 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5358 New EmacsView methods.
5359 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5360 Fixes bug #1048,1357,1414.
5361
53622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5363
5364 Fix bug #1362.
5365 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5366 is not an indexed color.
5367 * nsterm.m (free_indexed_color): Add argument checking.
5368 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5369
e7d5ecb3
CY
53702008-11-24 Chong Yidong <cyd@stupidchicken.com>
5371
5372 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5373 Document confirm-after-completion value for
5374 minibuffer-completion-confirm.
5375
c285743c
JR
53762008-11-24 Jason Rumney <jasonr@gnu.org>
5377
5378 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5379 warning.
5380
b0857706
JR
53812008-11-23 Jason Rumney <jasonr@gnu.org>
5382
5383 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5384 restored before returning.
5385
5386 * w32font.c (check_face_name): New function.
5387 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5388 fonts. (Bug#642)
b0857706 5389
ee50ff07
MR
53902008-11-22 Martin Rudalics <rudalics@gmx.at>
5391
5392 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5393 confirm-nonexistent-file-or-buffer in doc-string.
5394
b8ff72fa
SM
53952008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5396
5397 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5398 Fix copy/paste typo. Add checks.
5399
cee53ed4
KH
54002008-11-21 Kenichi Handa <handa@m17n.org>
5401
5402 * coding.c (detect_coding_iso_2022): Reject invalid composition
5403 sequence.
5404 (DECODE_COMPOSITION_START): If the current source is the last
5405 block, and the current composition doesn't end, regard this
5406 sequence as invalid.
5407 (decode_coding_iso_2022): Handle invalid composition sequence.
5408
f6ef1e65
MR
54092008-11-20 Martin Rudalics <rudalics@gmx.at>
5410
5411 * window.c (coordinates_in_window): Don't return
5412 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5413 line when the window is not the rightmost one. (Bug#1372)
5414
e08b1705
MR
54152008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5416
5417 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5418
ad98e89f
EZ
54192008-11-15 Eli Zaretskii <eliz@gnu.org>
5420
5421 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5422 and bright_bg if noninteractive is non-zero.
5423
fb098a4b
CY
54242008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5425
5426 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5427 x_draw_glyph_string_background.
5428
5429 * w32term.c (x_draw_glyph_string): Likewise.
5430
ce952b6e
CY
54312008-11-15 Chong Yidong <cyd@stupidchicken.com>
5432
5433 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5434 the next glyph string once past the overhang width.
5435
5436 * nsterm.m (ns_draw_glyph_string): Likewise.
5437
5438 * w32term.c (x_draw_glyph_string): Likewise.
5439
26ea7079
CY
54402008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5441
5442 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5443 double file close.
5444
1c33c906
MR
54452008-11-14 Martin Rudalics <rudalics@gmx.at>
5446
5447 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5448 dedicated status of window before attempting to display another
5449 buffer in it.
5450
8fc29035
JB
54512008-11-14 Juanma Barranquero <lekktu@gmail.com>
5452
5453 * msdos.c (Fmsdos_long_file_names):
5454 (syms_of_msdos) <dos-unsupported-char-glyph>:
5455 * dosfns.c (Fint86): Fix typos in docstrings.
5456
55fb4286
EZ
54572008-11-14 Eli Zaretskii <eliz@gnu.org>
5458
5459 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5460
3fda0315
KY
54612008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5462
5463 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5464
7e849c17
CY
54652008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5466
5467 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5468
5469 * frame.h: Negative alpha means "don't touch".
5470
5471 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5472
5473 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5474
b9fd67bd
DN
54752008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5476
5477 * hftctl.c:
5478 * chpdef.h:
5479 * acldef.h: Remove files used only for systems no longer supported.
5480
5481 * Makefile.in: Fix .o alphabetical ordering.
5482 (hftctl.o): Remove dependency, file removed.
5483 (keymap.o, print.o): Depend on charset.h.
5484
d5998e03
KH
54852008-11-10 Kenichi Handa <handa@m17n.org>
5486
2ae37cf0 5487 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5488
be70e183
CY
54892008-11-08 Chong Yidong <cyd@stupidchicken.com>
5490
5491 * dired.c (file_name_completion): If completion_ignore_case is
5492 enabled, ignore case when checking completion-regexp-list.
5493
7cf94eac
EZ
54942008-11-08 Eli Zaretskii <eliz@gnu.org>
5495
5496 * vm-limit.c (get_lim_data): Fix last change.
5497
ee107a89
KH
54982008-11-08 Kenichi Handa <handa@m17n.org>
5499
5500 * character.c (Fget_byte): New function.
5501 (syms_of_character): Defsubr Fget_byte.
5502
5fd15622
CY
55032008-11-07 Chong Yidong <cyd@stupidchicken.com>
5504
5505 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5506 cursor position is valid after scrolling.
5507
13d62fad
JB
55082008-11-06 Juanma Barranquero <lekktu@gmail.com>
5509
5510 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5511
a1dd2936
GM
55122008-11-06 Glenn Morris <rgm@gnu.org>
5513
5514 * xterm.c (handle_one_xevent): Don't let popup menus cause
5515 mouse-autoselect-window related window switching. (Bug#1261)
5516
860cd236
CY
55172008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5518
5519 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5520
653a3150
AS
55212008-11-04 Andreas Schwab <schwab@suse.de>
5522
5523 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5524
870f5cac
CY
55252008-11-03 Chong Yidong <cyd@stupidchicken.com>
5526
5527 * xfns.c (Fx_wm_set_size_hint): New function.
5528
1e02f3cb
MR
55292008-11-03 Martin Rudalics <rudalics@gmx.at>
5530
5531 * textprop.c (Fprevious_single_char_property_change): Return 0
5532 when there's no change in a string. (Bug#1301)
5533
e630dfc6
MR
55342008-11-02 Martin Rudalics <rudalics@gmx.at>
5535
5536 * frame.c (do_switch_frame): New argument NORECORD passed to
5537 Fselect_window.
5538 (Fselect_frame): New argument NORECORD passed to
5539 do_switch_frame.
5540 (Fset_frame_selected_window): New argument NORECORD passed to
5541 Fselect_frame.
5542 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5543 in call of do_switch_frame.
5544 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5545 Handle NORECORD argument in call of Fselect_frame.
5546 * lisp.h (do_switch_frame, Fselect_frame)
5547 (Fset_frame_selected_window): Adjust declarations.
5548 * window.c (select_frame_norecord): New function.
5549 (run_window_configuration_change_hook): Use it and call
5550 Fselect_frame with NORECORD set.
5551 (Fselect_window): Pass NORECORD to Fselect_frame.
5552 (Fset_window_configuration): Handle NORECORD argument in call of
5553 do_switch_frame.
5554 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5555 Fset_frame_selected_window.
5556 * keyboard.c (command_loop_1): Handle NORECORD in call of
5557 Fselect_frame (currently ifdefd).
5558
9020b223
GM
55592008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5560
5561 * emacs.c (USAGE2): Untabify.
5562
793ffee8
SM
55632008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5564
5565 * composite.c (fill_gstring_header): Fix copy/paste typo.
5566
ab6d1131
MR
55672008-10-31 Martin Rudalics <rudalics@gmx.at>
5568
5569 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5570 (Fother_window): Rename argument and rewrite doc-string.
5571 (select_window_norecord): Fix return value. (Bug#1276)
5572
601a9cf1
JB
55732008-10-30 Juanma Barranquero <lekktu@gmail.com>
5574
5575 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5576 new frames overriding foreground for tooltips. Based on similar patch
5577 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5578
813b0652
CY
55792008-10-29 Chong Yidong <cyd@stupidchicken.com>
5580
5581 * emacs.c (Fdaemon_initialized): Initialize nfd.
5582
4414f58f
MR
55832008-10-29 Martin Rudalics <rudalics@gmx.at>
5584
5585 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5586 (Fwindow_text_height): Clarify doc-strings.
5587 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5588 doc-string of window-scroll-functions.
5589
ecdcaa09
RS
55902008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5591
5592 * category.c (syms_of_category): Fix typo in docstring.
5593
23fe745a
JB
55942008-10-28 Juanma Barranquero <lekktu@gmail.com>
5595
5596 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5597 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5598 Fix typos in docstrings.
5599
ff808935
DN
56002008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5601
5602 * emacs.c (daemon_pipe): Make non-static.
5603 (IS_DAEMON): Move definition ...
5604 * lisp.h (IS_DAEMON): ... here.
5605 (daemon_pipe): Declare.
5606 (is_daemon): Remove.
5607 * dispnew.c (init_display): Use IS_DAEMON.
5608
fc012771
SM
56092008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5610
5611 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5612 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5613
5614 * emacs.c (is_daemon): Remove.
5615 (main): Don't set is_daemon.
5616 (IS_DAEMON): New macro.
5617 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5618 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5619 parent exits.
5620 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5621
d8bdbe6f
CY
56222008-10-27 Chong Yidong <cyd@stupidchicken.com>
5623
d1a072bf
CY
5624 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5625 over-sized glyph, draw it with the default glyph width.
5626
e2e325aa
CY
5627 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5628 glyph, draw it with the default glyph width.
5629
5630 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5631 glyph, draw it with the default glyph width.
5632
d8bdbe6f
CY
5633 * xdisp.c (try_scrolling): When computing the distance from the
5634 scroll margin to PT, try moving some distance past the window
5635 bottom before giving up.
5636
7bfac547
MR
56372008-10-27 Martin Rudalics <rudalics@gmx.at>
5638
5639 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5640 (Fset_window_buffer): Explain in doc-string that a window can be
5641 "strongly" dedicated to its buffer.
5642
4ff029f6
DN
56432008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5644
5645 * emacs.c (daemon_name): New variable.
5646 (main): Deal with --daemon=SERVER_NAME.
5647 (Fdaemonp): Return a name if one was passed to --daemon.
5648
5790ef40
DN
56492008-10-26 Romain Francoise <romain@orebokech.com>
5650
f9bd0df9 5651 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5652 (main): Create a pipe before forking, make the parent exit only after
5653 the child has closed its end of the pipe. Move closing the
5654 descriptors ...
5655 (Fdaemon_initialized): ... here. New function.
5656
f5385255
SM
56572008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5658
4d632321
SM
5659 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5660 the previous unoptimized table.
5661
f5385255
SM
5662 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5663 the distinction between non-nil and non-t value of `dedicated'.
5664
6c56a0f3
CY
56652008-10-25 Chong Yidong <cyd@stupidchicken.com>
5666
5667 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5668 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5669
fec89261
MR
56702008-10-25 Martin Rudalics <rudalics@gmx.at>
5671
5672 * window.c (Fget_buffer_window, Fdelete_windows_on)
5673 (Freplace_buffer_in_windows): Make buffer argument optional and
5674 rename to buffer_or_name.
5675
34fcddd0
CY
56762008-10-24 Chong Yidong <cyd@stupidchicken.com>
5677
f5385255
SM
5678 * xdisp.c (handle_single_display_spec, handle_display_prop):
5679 Undo 2005-05-16 change.
34fcddd0
CY
5680 (handle_stop): Pop iterator if it's loaded with an empty string.
5681 (get_overlay_strings_1): Don't save iterator if it's loaded with
5682 an empty string (bug#1201).
5683
064766f2
KH
56842008-10-24 Kenichi Handa <handa@m17n.org>
5685
5686 * ftfont.c (ftfont_otf_features): Fix previous change.
5687 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5688 calling ftfont_otf_features.
5689
f9bd0df9 56902008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5691
5692 * font.c (font_match_p): Fix for the case that a vector of
5693 characters is in script-representative-chars.
5694
1dae9197
MA
56952008-10-24 Michael Albinus <michael.albinus@gmx.de>
5696
5697 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5698 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5699 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5700 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5701 macro. (Bug#1186)
1dae9197 5702
f9bd0df9 57032008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5704
5705 * s/sol2-10.h: New file.
5706
878a4584
JB
57072008-10-23 Juanma Barranquero <lekktu@gmail.com>
5708
5709 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5710 poor beast has survived 9+ years and the jump from xterm.c!).
5711
cd265ca6
MR
57122008-10-23 Martin Rudalics <rudalics@gmx.at>
5713
5714 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5715 Reword doc-string.
f5385255 5716 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5717
472a4dc9
JB
57182008-10-23 Juanma Barranquero <lekktu@gmail.com>
5719
5720 * character.c (syms_of_character) <script-representative-chars>:
5721 <unicode-category-table>: Doc fixes.
5722
159bd5a2
NF
57232008-10-23 Noah Friedman <friedman@splode.com>
5724
5725 * coding.c (make_conversion_work_buffer): Check that
5726 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5727 Fget_buffer_create.
5728
49f9c344
KH
57292008-10-23 Kenichi Handa <handa@m17n.org>
5730
5731 * font.c (font_add_log): Check the values of extra properties.
5732
12bb3111
MR
57332008-10-22 Martin Rudalics <rudalics@gmx.at>
5734
5735 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5736 Reword doc-string.
5737 (Fset_window_parameter): Use NILP.
5738 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5739 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5740
bbeb4e99
JB
57412008-10-22 Juanma Barranquero <lekktu@gmail.com>
5742
5743 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5744
57452008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5746
5747 * nsfns.m (ns_appkit_version): New function.
5748 (x-server-version): Use it.
5749 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5750 (x-server-vendor): Don't check_ns().
5751
5752 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5753
a9b555d3
JB
57542008-10-22 Juanma Barranquero <lekktu@gmail.com>
5755
5756 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5757 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5758
4626499f
KH
57592008-10-22 Kenichi Handa <handa@m17n.org>
5760
e3681952
KH
5761 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5762 scripts.
5763
4626499f
KH
5764 * category.c (word_boundary_p): Check scripts instead of charset.
5765 Handle nil value in word-separating-categories and
5766 word-combining-categories.
5767 (syms_of_category): Fix docstrings of word-separating-categories
5768 and word-combining-categories.
5769
1560f91a
EZ
57702008-10-21 Eli Zaretskii <eliz@gnu.org>
5771
5772 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5773 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5774
f4668441
MR
57752008-10-21 Martin Rudalics <rudalics@gmx.at>
5776
5777 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5778 Rename arg "buffer" to "buffer_or_name".
5779 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5780 it optional.
5781 (no_switch_window): Remove since the return value is not used.
a9b555d3 5782 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5783 Consider window as dedicated when Fwindow_dedicated_p returns a
5784 non-nil value.
5785 * lisp.h: Remove prototype for no_switch_window.
5786
fd75ddb2
JD
57872008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5788
5789 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5790 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5791
07295713
KH
57922008-10-21 Kenichi Handa <handa@m17n.org>
5793
5794 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5795 check Vlatin_extra_code_table.
5796
712adc82
EZ
57972008-10-20 Eli Zaretskii <eliz@gnu.org>
5798
5799 * fileio.c (Fset_file_modes): Doc fix.
5800
f549eb0b
MA
58012008-10-19 Michael Albinus <michael.albinus@gmx.de>
5802
5803 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5804 in arrays.
5805
aac0c6e3
MR
58062008-10-19 Martin Rudalics <rudalics@gmx.at>
5807
5808 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5809 Mention kill-buffer in doc-string.
5810 (Fset_window_buffer): Reinsert tem check removed in last commit.
5811 (Fenlarge_window, Fshrink_window): Have argument names and
5812 doc-string follow Elisp manual more closely.
5813
58142008-10-18 Eli Zaretskii <eliz@gnu.org>
5815
5816 * fileio.c (Fset_file_modes): Doc fix.
5817
58182008-10-18 Martin Rudalics <rudalics@gmx.at>
5819
5820 * window.c (Fwindow_width, Fset_window_start)
5821 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5822 (Fdelete_windows_on, Freplace_buffer_in_windows):
5823 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5824 (Fwindow_dedicated_p): Make window argument optional.
5825 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5826 (Fset_window_buffer): Respect any non-nil dedicated value for
5827 window. Rename "buffer" argument to "buffer_or_name".
5828
58292008-10-18 Ulrich Mueller <ulm@gentoo.org>
5830
5831 * m/sh3.h: New file, machine description for SuperH.
5832
58332008-10-17 Martin Rudalics <rudalics@gmx.at>
5834
5835 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5836
58372008-10-17 Kenichi Handa <handa@m17n.org>
5838
5839 * ftfont.c (ftfont_otf_features): Fix indexing
5840 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5841
58422008-10-16 Magnus Henoch <mange@freemail.hu>
5843
5844 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5845 (Fdbus_call_method_asynchronously): Ditto.
5846 This change makes C-h f display the argument list.
5847
58482008-10-16 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * fileio.c (Fexpand_file_name): Doc fix.
5851
5852 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5853 of :foreground and :background equivalent to unspecified (20.x
5854 compatibility).
5855
58562008-10-15 Eli Zaretskii <eliz@gnu.org>
5857
5858 * buffer.c (syms_of_buffer): Doc fix.
5859
58602008-10-14 Kenichi Handa <handa@m17n.org>
5861
5862 * font.c (font_clear_prop): When clearing font width, clear the
5863 average width field too.
5864
58652008-10-12 Andreas Schwab <schwab@suse.de>
5866
5867 * ftfont.c (ftfont_shape_by_flt): Make static.
5868 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5869
5870 * font.c: Don't include <m17n-flt.h>.
5871
58722008-10-10 Eli Zaretskii <eliz@gnu.org>
5873
5874 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5875
58762008-10-09 Eli Zaretskii <eliz@gnu.org>
5877
5878 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5879 away code.
5880
58812008-10-09 Chong Yidong <cyd@stupidchicken.com>
5882
5883 * dispnew.c (update_text_area): Avoid looping due to large glyph
5884 overhangs (bug#1070).
5885
58862008-10-09 Kenichi Handa <handa@m17n.org>
5887
5888 * fontset.c (face_for_char): If face->fontset is negative, just
5889 return ascii_face.
5890
f5385255
SM
5891 * font.c (font_delete_unmatched): Fix previous change.
5892 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5893
58942008-10-09 Martin Rudalics <rudalics@gmx.at>
5895
5896 * frame.c (Fraise_frame): On text-only terminals select frame in
5897 order to make it visible. (Bug#1061)
5898
58992008-10-08 Chong Yidong <cyd@stupidchicken.com>
5900
5901 * fontset.c (fontset_find_font): Check frame validity.
5902
59032008-10-07 Chong Yidong <cyd@stupidchicken.com>
5904
a9b555d3 5905 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5906 (xg_display_close): Allow Emacs to close all displays (bug#985).
5907
59082008-10-06 Andreas Schwab <schwab@suse.de>
5909
f5385255 5910 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5911
59122008-10-06 Chong Yidong <cyd@stupidchicken.com>
5913
f5385255 5914 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5915
a9b555d3 5916 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5917
5918 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5919 during initialization.
5920
59212008-10-04 Eli Zaretskii <eliz@gnu.org>
5922
5923 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5924 whole thing on MSDOS frames as well as on a TTY.
5925
5926 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5927 well as for TTY.
5928 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5929 well as on a TTY.
5930
5931 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5932 as well as for TTY.
5933
5934 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5935
5936 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5937 MSDOS frames as well.
5938
59392008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5940
5941 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5942 correct arguments.
b71ac3dd 5943 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5944
59452008-10-03 Glenn Morris <rgm@gnu.org>
5946
5947 * emacs.c (USAGE1): Add --daemon.
5948
59492008-10-02 Eli Zaretskii <eliz@gnu.org>
5950
5951 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5952 100, so it's in percents as advertised.
5953
59542008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5955
5956 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5957 (ns_output.current_cursor, ns_output.desired_cursor)
5958 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5959 (FRAME_NEW_CURSOR_COLOR): Remove.
5960
5961 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5962 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5963 enumeration (HOLLOW_BOX_CURSOR, etc.).
5964
5965 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5966 (draw_window_cursor): Simplify code.
f5385255
SM
5967 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5968 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5969 updates manually.
a9b555d3
JB
5970 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5971 Use core Emacs cursor types.
aac0c6e3 5972
b8ff72fa 5973 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5974
59752008-10-02 Martin Rudalics <rudalics@gmx.at>
5976
5977 * process.c (Faccept_process_output): Fix doc-string.
5978
59792008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5980
5981 * gmalloc.c (__sbrk): Also define for uClibc.
5982
5983 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5984 for uClibc.
5985
59862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5987
5988 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5989 styles.
5990 (nsfont_open): Reenable the cache.
5991
59922008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5993
5994 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5995 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5996
59972008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5998
5999 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6000 a suspended terminal.
6001
60022008-09-30 Michael Albinus <michael.albinus@gmx.de>
6003
6004 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6005
60062008-09-30 Eli Zaretskii <eliz@gnu.org>
6007
6008 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6009
60102008-09-30 Chong Yidong <cyd@stupidchicken.com>
6011
6012 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6013 in a continued line coincides with a line beginning.
6014
60152008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6016
6017 * nsfont.m (nsfont_trait_distance): Fix bug.
6018 (nsfont_list): Return a list rather than a vector (syncs with Handa
6019 changes of 2008-05-14).
6020 (nsfont_open): Improve logging.
6021
60222008-09-29 Andreas Schwab <schwab@suse.de>
6023
6024 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6025
60262008-09-28 Martin Rudalics <rudalics@gmx.at>
6027
6028 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6029 name as char-resolve-modifiers.
6030 Reported by: Markus Triska <markus.triska@gmx.at>
6031
60322008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6033
6034 * dispnew.c (init_display): Return earlier when running as a daemon.
6035
60362008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6037
6038 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6039
60402008-09-27 Eli Zaretskii <eliz@gnu.org>
6041
6042 * composite.c (Fcomposition_get_gstring)
6043 (Fcompose_region_internal, Fcompose_string_internal)
6044 (Ffind_composition_internal): Doc fix.
6045 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6046 (syms_of_composite) <auto-composition-function>: Doc fix.
6047 (syms_of_composite) <composition-function-table>: Doc fix.
6048
60492008-09-25 Chong Yidong <cyd@stupidchicken.com>
6050
6051 * search.c (wordify): New argument for lax word-ends.
6052 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6053
60542008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6055
6056 * lisp.h (is_daemon): Declare.
6057 * dispnew.c (init_display): Do not try to initialize the terminal
6058 when running as a daemon.
6059
60602008-09-22 Chong Yidong <cyd@stupidchicken.com>
6061
6062 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6063 x_display_pixel_height.
6064
60652008-09-22 Martin Rudalics <rudalics@gmx.at>
6066
6067 * undo.c (record_point): Don't call Fundo_boundary for first
6068 change. (Bug#731)
6069
60702008-09-22 Juanma Barranquero <lekktu@gmail.com>
6071
6072 * emacs.c (Fdaemonp): Doc fix.
6073
60742008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6075
6076 * emacs.c (main): Place #ifdef in the proper place.
6077
60782008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6079
6080 * emacs.c (standard_args): Add --daemon.
6081 (main): Disconnect from the terminal when --daemon is passed.
6082 (is_daemon): New variable.
6083 (Fdaemonp): New function.
6084 (syms_of_emacs): Defsubr it.
6085
60862008-09-20 Chong Yidong <cyd@stupidchicken.com>
6087
6088 * xdisp.c (get_next_display_element): Handle string display
6089 correctly when checking for the end of a box run.
6090
60912008-09-20 Glenn Morris <rgm@gnu.org>
6092
6093 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6094 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6095 (Frename_file): Avoid copying to trash if a rename involves
6096 a delete. (Bug#964).
6097
60982008-09-20 Eli Zaretskii <eliz@gnu.org>
6099
6100 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6101 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6102 frames as well as termcap frames.
6103 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6104 get_named_tty.
6105
61062008-09-19 Eli Zaretskii <eliz@gnu.org>
6107
6108 * process.c (procfs_system_process_attributes): Fix cmdline in
6109 case /proc/PID/cmdline is empty.
6110
6111 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6112 x_display_pixel_height.
6113
61142008-09-19 Juanma Barranquero <lekktu@gmail.com>
6115
6116 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6117
6118 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6119 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6120
61212008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6122
6123 * dispextern.h (struct it): Move line_wrap away from the middle of
6124 bitfields. Move voffset in struct iterator_stack_entry after the
6125 bitfields. Move tab_width near after another short.
6126
61272008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6128
6129 * frame.h (struct frame): Move alpha from the middle of bitfields.
6130
6131 * window.h (struct window): Move frozen_window_start_p after the
6132 rest of the bitfields to reduce padding.
6133
61342008-09-18 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * xterm.h (x_display_info): Remove `height' and `width' members.
6137
6138 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6139
6140 * w32term.h (w32_display_info): Remove `height', `width',
6141 `height_in', and `width_in' members.
6142
b8ff72fa
SM
6143 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6144 New functions.
aac0c6e3
MR
6145 (x_calc_absolute_position): Use them.
6146 (x_term_init): Omit removed `height' and `width' members.
6147
b8ff72fa
SM
6148 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6149 New functions.
aac0c6e3
MR
6150 (w32_read_socket, x_calc_absolute_position): Use them.
6151 (w32_initialize_display_info, w32_term_init): Omit removed members
6152 of w32_display_info.
6153
b8ff72fa
SM
6154 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6155 New functions.
6156 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6157
b8ff72fa
SM
6158 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6159 New functions.
aac0c6e3
MR
6160 (x_calc_absolute_position): Use them.
6161 (x_term_init): Omit removed `height' and `width' members.
6162
6163 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6164 (compute_tip_xy):
6165 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6166 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6167 x_display_pixel_width.
6168
61692008-09-18 Kenichi Handa <handa@m17n.org>
6170
6171 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6172 (composition_compute_stop_pos): Fix handling of static composition.
6173 (Fcomposition_get_gstring): Check FROM and TO at first.
6174
61752008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6176
46e722a9 6177 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6178 mixup (YAILOM).
6179
61802008-09-17 Chong Yidong <cyd@stupidchicken.com>
6181
6182 * indent.c (Fvertical_motion): Use position reported by iterator
6183 instead of PT for determining screen motion (bug#943).
6184
61852008-09-17 Romain Francoise <romain@orebokech.com>
6186
6187 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6188
61892008-09-17 Kenichi Handa <handa@m17n.org>
6190
6191 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6192
6193 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6194 if necessary.
6195
61962008-09-16 Kenichi Handa <handa@m17n.org>
6197
6198 * coding.c (make_conversion_work_buffer): Avoid calling
6199 Fget_buffer_create if it is not necessary.
6200
62012008-09-15 Martin Rudalics <rudalics@gmx.at>
6202
6203 * window.c (Fselect_window): Don't update window_select_count and
6204 use_time when norecord is not nil.
6205
62062008-09-14 Kenichi Handa <handa@m17n.org>
6207
6208 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6209 specpdl_ptr.
6210
62112008-09-12 Kenichi Handa <handa@m17n.org>
6212
6213 * indent.c (scan_for_column): Don't handle automatic composition
6214 if the current buffer is not associated with a window.
6215
6216 * composite.c (composition_reseat_it): If the current buffer is
6217 not associated with a window, ignore the automatic composition.
6218 (find_automatic_composition): Likewise.
6219
62202008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6223 (Fgpm_mouse_stop): Use it.
6224 * termhooks.h (close_gpm): Declare.
6225 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6226 connection if Gpm_GetEvent fails.
6227
6228 * window.c (set_window_buffer): Always preserve current-buffer.
6229
62302008-09-12 Glenn Morris <rgm@gnu.org>
6231
6232 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6233
62342008-09-11 Glenn Morris <rgm@gnu.org>
6235
6236 * charset.c (charset-map-path): Doc fix.
6237
62382008-09-10 Kenichi Handa <handa@m17n.org>
6239
6240 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6241
6242 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6243 compose a grapheme cluster with the preceding base glyph.
6244
6245 * composite.c (composition_compute_stop_pos): Fix previous change.
6246 Reset cmp_it->id to -1 at first.
6247
62482008-09-10 Glenn Morris <rgm@gnu.org>
6249
6250 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6251
62522008-09-09 Chong Yidong <cyd@stupidchicken.com>
6253
6254 * keyboard.c (read_key_sequence): Reapply translation maps when
6255 switching keyboards.
6256
62572008-09-09 Kenichi Handa <handa@m17n.org>
6258
6259 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6260 characters.
6261
6262 * composite.c (FORWARD_CHAR): Fix calculation
6263 of (POSITION).pos_byte.
6264 (composition_compute_stop_pos): Limit the search of composition to
6265 at most 500 characters ahead. If we reach the limit or find a
6266 newline, set cmp_it->ch to -2 and return 0.
6267 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6268
62692008-09-08 Kenichi Handa <handa@m17n.org>
6270
6271 * indent.c (Fvertical_motion): Be sure to set
6272 it_overshoot_expected if it.cmp_it.id is non-negative.
6273
62742008-09-07 Andreas Schwab <schwab@suse.de>
6275
6276 * callproc.c (Fcall_process): Don't hold references to string data
6277 across garbage collection. Move initialisation of new_argv down
6278 to avoid compiler bug.
6279
62802008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6281
6282 * process.c (Fsystem_process_attributes): Doc fix.
6283
62842008-09-07 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * callproc.c (Fcall_process): Canonicalize current directory name.
6287
6288 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6289 iterator advances to the next line if the current line ends in a
6290 continued tab.
6291
62922008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6293
6294 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6295 member to point to cmp_from.
6296
6297 * xdisp.c: Doc fix for references to gidx data member.
6298
62992008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6300
6301 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6302
63032008-09-07 Kenichi Handa <handa@m17n.org>
6304
6305 * composite.c (FORWARD_CHAR): Check STOP after
6306 incrementing (POSITION).pos.
6307
63082008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6309
6310 * process.c (Fsystem_process_attributes): Doc fix.
6311
63122008-09-06 Chong Yidong <cyd@stupidchicken.com>
6313
6314 * keyboard.c (Ftop_level): Doc fix.
6315
63162008-09-06 Eli Zaretskii <eliz@gnu.org>
6317
6318 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6319 minibuffer, don't let lower part of menu invade the echo area.
6320
6321 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6322 "char *q" to access menu text and advance through it. Revert the
6323 change that displayed ">" instead of ASCII character 0x10.
6324
63252008-09-05 Eli Zaretskii <eliz@gnu.org>
6326
6327 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6328 toggle boxes and radio buttons on MS-DOS as well.
6329
63302008-09-05 Kenichi Handa <handa@m17n.org>
6331
6332 * composite.c (autocmp_chars): Check lookback count.
6333 (composition_compute_stop_pos): Set cmp_it->lookback.
6334 (composition_reseat_it): Check lookback count.
6335 (struct position_record): New struct.
6336 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6337 (find_automatic_composition): New function.
6338 (composition_adjust_point): Use find_automatic_composition.
6339
6340 * dispextern.h (struct composition_it): New member lookback.
6341
63422008-09-02 Chong Yidong <cyd@stupidchicken.com>
6343
6344 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6345 if moving by a single line.
6346
63472008-09-02 Andreas Schwab <schwab@suse.de>
6348
6349 * xterm.c (x_delete_display): Fix merge error.
6350
6351 * fileio.c (Fexpand_file_name): Remove unused variables.
6352
63532008-09-02 Eli Zaretskii <eliz@gnu.org>
6354
6355 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6356 storage on all platforms, not just on DOS_NT.
6357
63582008-09-02 Jason Rumney <jasonr@gnu.org>
6359
b8ff72fa
SM
6360 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6361 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6362
63632008-09-01 Chong Yidong <cyd@stupidchicken.com>
6364
6365 * xfaces.c (Finternal_set_alternative_font_family_alist)
6366 (Finternal_set_alternative_font_registry_alist): Properly copy
6367 entire alist structure.
6368
63692008-09-01 Kenichi Handa <handa@m17n.org>
6370
d66c0241 6371 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6372 representative chars of the script is a vector.
d66c0241
JB
6373 (ftfont_list): Handle the case where the representative chars of
6374 the script is a vector.
aac0c6e3
MR
6375
6376 * character.c (syms_of_character): Docstring of
6377 script-representative-chars fixed.
6378
63792008-08-31 Eli Zaretskii <eliz@gnu.org>
6380
6381 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6382 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6383 the menu. Allocate larger buffer for `text', to account for
6384 possible ^C characters.
6385
63862008-08-31 Martin Rudalics <rudalics@gmx.at>
6387
6388 * xdisp.c (prepare_menu_bars): Don't call
6389 Vwindow_size_change_functions with arg Qt.
6390
63912008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6392
6393 * font.h (font_range):
6394 * fileio.c (report_file_error):
46e722a9
SM
6395 * composite.c (composition_update_it): Yet another int/Lisp_Object
6396 mixup (YAILOM).
aac0c6e3
MR
6397
63982008-08-30 Glenn Morris <rgm@gnu.org>
6399
6400 * data.c (Fmake_variable_frame_local): Doc fix.
6401
6402 * frame.c (Fmodify_frame_parameters): Doc fix.
6403
64042008-08-30 Eli Zaretskii <eliz@gnu.org>
6405
6406 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6407 needed by GetTokenInformation.
6408 (w32_system_process_attributes): Check return values of all system
6409 APIs.
6410
6411 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6412 only when the state changes.
6413 (IT_update_begin, IT_update_end): Add termscript trace.
6414
6415 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6416 clipboard is unavailable. Set dst to NULL if it doesn't point to
6417 malloc'ed data.
6418 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6419 passing random values to xfree.
6420
6421 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6422 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6423
64242008-08-29 Jason Rumney <jasonr@gnu.org>
6425
6426 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6427
64282008-08-29 Eli Zaretskii <eliz@gnu.org>
6429
6430 * composite.c (fill_gstring_body): Avoid compiler warnings.
6431
6432 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6433 LGLYPH_SET_CODE to avoid compiler warnings.
6434
2ae37cf0 6435 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6436
6437 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6438
6439 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6440 LGLYPH_SET_CODE.
6441
64422008-08-29 Kenichi Handa <handa@m17n.org>
6443
6444 * fileio.c (report_file_error): Don't downcase the first character
6445 of errstring if it is still unibyte.
6446
64472008-08-29 Kenichi Handa <handa@m17n.org>
6448
6449 These changes are to re-implement the automatic composition so
6450 that it doesn't use text properties.
6451
6452 * Makefile.in (ftfont.o): Depend on composite.h.
6453 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6454
6455 * character.h (Vunicode_category_table): Extern it.
6456
6457 * character.c (Vunicode_category_table): New variable.
6458 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6459
6460 * chartab.c (optimize_sub_char_table): Perform more greedy
6461 optimization.
6462
b8ff72fa
SM
6463 * composite.h (enum composition_method):
6464 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6465 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6466 (Vcomposition_function_table): Extern it.
6467 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6468 (composition_gstring_put_cache, composition_gstring_from_id)
6469 (composition_gstring_p, composition_gstring_width)
6470 (composition_compute_stop_pos, composition_reseat_it)
6471 (composition_update_it, composition_adjust_point): Extern them.
6472 (Fcomposition_get_gstring): EXFUN it.
6473
d66c0241 6474 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6475 (Vcomposition_function_table)
6476 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6477 (gstring_hash_table, gstring_work, gstring_work_headers):
6478 New variables.
aac0c6e3
MR
6479 (gstring_lookup_cache, composition_gstring_put_cache)
6480 (composition_gstring_from_id, composition_gstring_p)
6481 (composition_gstring_width, fill_gstring_header)
6482 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6483 (composition_reseat_it, composition_update_it)
b8ff72fa 6484 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6485 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6486 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6487 Defsubr compostion_get_gstring.
6488
6489 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6490 cmp_id.
6491 (struct glyph_string): Delete the member gidx. New members
6492 cmp_id, cmp_from, and cmp_to.
6493 (enum it_method): Delete GET_FROM_COMPOSITION.
6494 (struct composition_it): New struct.
6495 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6496 Delete c, len, cmp_id, cmp_len in u.comp.
6497
6498 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6499 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6500 (enum lglyph_indices): Likewise.
b8ff72fa 6501 (font_range): Adjust extern.
aac0c6e3
MR
6502 (font_fill_lglyph_metrics): Extern it.
6503
6504 * font.c (QCf): New variable.
6505 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6506 (font_prepare_composition): Delete this function.
6507 (font_range): Type and arguments changed.
6508 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6509 (font_fill_lglyph_metrics): New function.
b8ff72fa 6510 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6511 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6512 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6513 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6514
6515 * fontset.h (font_for_char): Extern it.
6516
6517 * fontset.c (font_for_char): New function.
6518
6519 * ftfont.c: Include composite.h.
6520 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6521 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6522
6523 * indent.c: Include composite.h and dispextern.h.
6524 (check_composition): Delete this function.
6525 (scan_for_column): Handle composition by
6526 composition_compute_stop_pos, composition_reseat_it, and
6527 composition_update_it.
6528 (compute_motion): Likewise.
6529 (Fvertical_motion): Fix checking of composition.
6530
6531 * keyboard.c (adjust_point_for_property): Check composition by
6532 composition_adjust_point.
6533
b8ff72fa 6534 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6535 struct glyph_string.
6536
b8ff72fa
SM
6537 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6538 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6539 struct glyph.
6540 (produce_composite_glyph): Likewise.
6541
b8ff72fa
SM
6542 * w32term.c (x_draw_composite_glyph_string_foreground):
6543 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6544 (x_draw_glyph_string): Likewise.
6545
6546 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6547 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6548
6549 * xdisp.c: Include font.h.
6550 (it_props): Delete the entry for Qauto_composed.
6551 (init_iterator): Initialize it->cmp_it.id to -1.
6552 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6553 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6554 (handle_auto_composed_prop): Delete it.
6555 (handle_composition_prop): Handle only static composition.
6556 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6557 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6558 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6559 (pop_it): Likewise.
6560 (get_next_element): Delete next_element_from_composition.
6561 (CHAR_COMPOSED_P): New macro.
6562 (get_next_display_element): For automatic composition, get a face
6563 from the font in the glyph-string.
6564 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6565 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6566 (next_element_from_string): Check if the character at the current
6567 position is composed by CHAR_COMPOSED_P.
6568 (next_element_from_buffer): Likewise.
d66c0241
JB
6569 (next_element_from_composition): Adjust for the change of struct it.
6570 Update it->cmp_it.
b8ff72fa
SM
6571 (dump_glyph): Adjust for the change of struct glyph.
6572 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6573 it and struct glyph. Don't handle automatic composition here.
6574 (fill_gstring_glyph_string): New function.
6575 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6576 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6577 (BUILD_GSTRING_GLYPH_STRING): New macro.
6578 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6579 automatic composition.
b8ff72fa 6580 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6581 struct glyph.
b8ff72fa 6582 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6583
b8ff72fa 6584 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6585 the change of struct glyph_string.
6586 (x_draw_glyph_string): Likewise.
6587
65882008-08-29 Glenn Morris <rgm@gnu.org>
6589
6590 * buffer.c (word-wrap): Doc fix.
6591 * xdisp.c (truncate-partial-width-windows): Doc fix.
6592 Increase default to 50.
6593
65942008-08-29 Chong Yidong <cyd@stupidchicken.com>
6595
6596 * xdisp.c (update_tool_bar_unwind): New function.
6597 (update_tool_bar): Temporarily set selected frame before building
6598 tool-bar items.
6599
66002008-08-28 Michael Albinus <michael.albinus@gmx.de>
6601
6602 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6603 snprintf, respectively.
6604 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6605
66062008-08-28 Chong Yidong <cyd@stupidchicken.com>
6607
6608 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6609 LDFLAGS to GNUstep CC invocation.
6610
66112008-08-27 Chong Yidong <cyd@stupidchicken.com>
6612
6613 * indent.c (Fvertical_motion): Revert last change. Handle the
6614 general case where we are moving forward, and PT spans multiple
6615 screen lines.
6616
6617 * eval.c (find_handler_clause): Temporarily increase
6618 max-lisp-eval-depth while printing the backtrace buffer, to
6619 guarantee that help-mode code can run.
6620
66212008-08-27 Eli Zaretskii <eliz@gnu.org>
6622
6623 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6624 colors under -rv.
6625 (IT_set_frame_parameters): Don't swap foreground and background
6626 colors if `(reverse . t)' is present in the frame properties.
6627 (internal_terminal_init): Call init_frame_faces only for the
6628 initial frame.
6629
66302008-08-27 Andreas Schwab <schwab@suse.de>
6631
6632 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6633
66342008-08-27 Andreas Schwab <schwab@suse.de>
6635
6636 * search.c (search_buffer): Set char_base to zero only at the end.
6637
66382008-08-27 Kenichi Handa <handa@m17n.org>
6639
b8ff72fa 6640 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6641
66422008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6643
6644 * xterm.c (x_term_init): Temporarily hide the partially
6645 initialized terminal while calling vendor-specific-keysyms.
6646
66472008-08-26 Eli Zaretskii <eliz@gnu.org>
6648
6649 * msdos.c (internal_terminal_init): Most initializations done only
6650 once, especially initial_screen_colors[] and termscript open.
6651
66522008-08-26 Chong Yidong <cyd@stupidchicken.com>
6653
6654 * eval.c (Fcondition_case): Doc fix.
6655
6656 * widgetprv.h (EmacsFramePart): Change font member to the new font
6657 struct.
6658
6659 * widget.c: Include character.h and font.h for XSETFONT.
6660 (setup_frame_gcs): Compute X font id from font struct, just once.
6661
66622008-08-26 Eli Zaretskii <eliz@gnu.org>
6663
6664 * term.c (get_named_tty): Fix last change.
6665
66662008-08-26 Chong Yidong <cyd@stupidchicken.com>
6667
6668 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6669 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6670
66712008-08-25 Eli Zaretskii <eliz@gnu.org>
6672
6673 * frame.c (do_switch_frame): Mark previously displayed frame as
6674 obscured for FRAME_MSDOS_P frames as well.
6675
66762008-08-24 Eli Zaretskii <eliz@gnu.org>
6677
6678 * frame.c (make_terminal_frame): Initialize f->terminal,
6679 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6680 Set the top frame to newly created frame.
6681 (Fmake_terminal_frame): Reuse the_only_display_info.
6682
6683 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6684 estimating available memory.
6685
b97439ce 66862008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6687
6688 * nsterm.m (ns_draw_window_cursor): Don't call
6689 NSDisableScreenUpdates and NSEnableScreenUpdates on
6690 non-NS_IMPL_COCOA systems.
6691
66922008-08-23 Andreas Schwab <schwab@suse.de>
6693
6694 * process.c (procfs_system_process_attributes): Fix use of
6695 uninitialized variables.
6696
66972008-08-23 Eli Zaretskii <eliz@gnu.org>
6698
6699 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6700
6701 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6702 calling tty-set-up-initial-frame-faces.
6703
b8ff72fa
SM
6704 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6705 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6706
6707 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6708 addition to output_termcap.
6709
6710 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6711
6712 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6713 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6714 highlight.
6715
6716 * process.c [!subprocesses]: Define QCname.
6717 (syms_of_process): Intern and staticpro it.
6718
6719 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6720 Adjust for changes in encoding/decoding routines.
6721 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6722 encode_coding and decode_coding.
6723
b8ff72fa 6724 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6725
6726 * dosfns.c: Include frame.h before termhooks.h.
6727 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6728 variable termscript.
6729
6730 * s/msdos.h (USER_FULL_NAME): Define.
6731 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6732
6733 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6734 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6735 pw->pw_gecos.
6736
6737 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6738 SELECTED_FRAME as additional (1st) argument.
6739 (tty_read_avail_input): Handle output_msdos_raw in
6740 addition to output_termcap.
6741
6742 * msdos.c: Include frame.h before termhooks.h.
6743 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6744 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6745 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6746 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6747 (IT_set_terminal_modes, IT_reset_terminal_modes)
6748 (IT_set_frame_parameters): Use tty->termscript instead of a global
6749 variable termscript.
6750 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6751 global variable terminal_coding. Don't refer to
6752 Vnonascii_translation_table.
6753 (internal_terminal_init): Set Vwindow_system in current_kboard.
6754 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6755 Announce date and time of session start, if termscript is open.
6756 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6757 term.c:init_tty). Open termscript only of not already open.
6758 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6759 here instead of dos_ttraw. Don't initialize display if this is an
6760 initial tty. Don't set FRAME_FONT.
6761 (Vwindow_system_version): Bump to 23.
6762 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6763 is available, set up mouse_position_hook.
6764 (dos_ttraw, IT_set_terminal_modes): If called with initial
6765 terminal, do nothing.
6766 (IT_set_frame_parameters): Handle the Qtty_type frame
6767 parameter by calling internal_terminal_init.
6768 (dos_set_window_size, show_mouse_face)
6769 (clear_mouse_face, IT_note_mode_line_highlight)
6770 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6771 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6772 (initialize_msdos_display): New function.
6773 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6774 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6775 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6776 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6777 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6778 (request_sigio, unrequest_sigio): Don't define, now defined on
6779 sysdep.c.
6780 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6781
6782 * term.c [MSDOS]: Include msdos.h.
6783 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6784 conditional to DOS_NT. Allow only one call to this function in a
6785 session. Don't allocate a new struct tty_display_info; instead,
6786 reuse the_only_display_info. Call get_tty_size to get screen
6787 dimensions. Call init_baud_rate to set bad_rate.
6788 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6789 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6790 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6791 (get_tty_terminal, get_named_tty, Ftty_type)
6792 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6793 output_termcap.
b8ff72fa
SM
6794 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6795 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6796 only when subprocesses are supported.
aac0c6e3
MR
6797
6798 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6799 f->output_data.x.
6800 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6801 terminal devices.
6802
5582fbc7 6803 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6804 x_output.
6805 (FRAME_FONT): Use output_data.tty.
6806 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6807 (struct x_display_info): Rename from display_info. Update all users in
6808 msdos.c.
aac0c6e3 6809 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6810 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6811 (dos_ttraw): Update prototype.
6812
6813 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6814 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6815
68162008-08-23 Jason Rumney <jasonr@gnu.org>
6817
6818 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6819 (fn_TIFFSetDirectory): New library function used.
6820 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6821 (tiff_load): Use :index to select among multiple images. Set count
6822 property when multiple images exist.
6823 (gif_format): Use :index, not :image.
6824
68252008-08-23 Chong Yidong <cyd@stupidchicken.com>
6826
6827 * xdisp.c (try_scrolling): Check INT_MAX instead of
6828 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6829 to obtain INT_MAX.
6830
68312008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6832
6833 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6834
68352008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6836
6837 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6838 GNUstep library location.
6839
68402008-08-21 Chong Yidong <cyd@stupidchicken.com>
6841
6842 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6843 before using it.
6844
6845 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6846
68472008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6848
6849 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6850 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6851 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6852 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6853 (EmacsApp-cursor_blink_handler): Remove declaration.
6854 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6855 match 01 Feb 2008 changes in xterm.c.
6856 (ns_read_socket): Add cast to avoid warning.
6857 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6858 GNUstep.
6859
68602008-08-20 Chong Yidong <cyd@stupidchicken.com>
6861
6862 * xselect.c (x_get_foreign_selection): Return nil if desired
6863 selection could not be obtained, instead of signalling an error.
6864
68652008-08-20 David Reitter <david.reitter@gmail.com>
6866
6867 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6868 * nsterm.m: Remove ns-specific code for cursor blinking.
6869 (ns_draw_window_cursor): Clear cursor properly rather than
6870 redrawing the area. Respect width of bar cursors.
6871 These changes enable the use of generic blink-cursor-mode and
6872 generic cursor types in NS and support smooth cursor movements (do
6873 not blink off after command).
6874 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6875 Nextstep, too.
6876
68772008-08-19 Kenichi Handa <handa@m17n.org>
6878
6879 * font.c (Vfont_log_deferred): New variable.
6880 (font_add_log): Check Vfont_log_deferred.
6881 (font_deferred_log): New function.
6882
6883 * font.h (font_deferred_log): Extern it.
6884
6885 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6886 for sorting.
6887 (face_for_char): Use deferred log.
6888
68892008-08-18 Kenichi Handa <handa@m17n.org>
6890
6891 * fontset.c (face_for_char): Add font log.
6892
6893 * font.c (font_add_log): Add the font properties :script, :lang,
6894 and :otf in the log.
6895
68962008-08-17 Chong Yidong <cyd@stupidchicken.com>
6897
6898 * xdisp.c: Remove dead code.
6899 (handle_invisible_prop, next_overlay_string): Defer call to
6900 setup_for_ellipsis.
6901 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6902
69032008-08-15 Chong Yidong <cyd@stupidchicken.com>
6904
6905 * xfaces.c (lookup_derived_face): Properly handle possible zero
6906 return value of get_lface_attributes.
6907 (merge_faces): Don't tell lookup_derived_face to signal an error
6908 if face is not found.
6909
6910 * dired.c (Fdirectory_files): Doc fix.
6911
6912 * process.c (make_process): Initialize kill_without_query struct
6913 member.
6914
69152008-08-15 Eli Zaretskii <eliz@gnu.org>
6916
6917 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6918 Alternative calculation of totphys for Visual Studio 6.
6919
6920 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6921
6922 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6923 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6924 All users changed.
6925 (stat): Only root directory passed to GetDriveType. Allow RAM
6926 disk as well as local fixed disk when w32-get-true-file-attributes
6927 is set to `local'.
6928 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6929 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6930 (w32_cached_id, w32_add_to_cache): New functions.
6931 (get_name_and_id): Look account names in the cache before calling
6932 lookup_account_sid.
6933 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6934 New initialization flags.
6935 (globals_of_w32): Initialize them to zero.
6936 (w32_system_process_attributes): Use w32_cached_id and
6937 w32_add_to_cache.
6938
69392008-08-14 Lawrence Mitchell <wence@gmx.li>
6940
6941 * lread.c (Fread_char, Fread_char_exclusive): If no character
6942 event is read before timeout is reached, return nil, rather than
6943 converting to a number.
6944
69452008-08-14 Chong Yidong <cyd@stupidchicken.com>
6946
6947 * fns.c (use_dialog_box): Doc fix.
6948
6949 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6950 on OS X.
6951
69522008-08-13 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * frame.c (Qns_parse_geometry): New var.
6955 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6956
69572008-08-11 Chong Yidong <cyd@stupidchicken.com>
6958
6959 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6960 space character in calculating tabs.
6961
69622008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6963
6964 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6965
69662008-08-10 Glenn Morris <rgm@gnu.org>
6967
6968 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6969 silence gcc "limited range of data type" warnings in some
6970 make_fixnum_or_float calls.
6971
69722008-08-09 Eli Zaretskii <eliz@gnu.org>
6973
6974 * w32.c (w32_system_process_attributes): If the process does not
6975 exist, return nil.
6976
6977 * w32.c: Include thelp32.h, psapi.h and coding.h.
6978 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6979 declarations.
6980 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6981 (Process32Next_Proc): New typedefs.
6982 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6983 (g_b_init_process32_next, g_b_init_open_thread_token)
6984 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6985 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6986 (g_b_init_get_process_working_set_size)
6987 (g_b_init_global_memory_status_ex): New static variables.
6988 (globals_of_w32): Initialize them.
6989 (create_toolhelp32_snapshot, process32_first, process32_next)
6990 (open_thread_token, impersonate_self, revert_to_self)
6991 (get_process_memory_info, get_process_working_set_size)
6992 (global_memory_status, global_memory_status_ex): New wrapper
6993 functions.
6994 (w32_list_system_processes, w32_system_process_attributes)
6995 (enable_privilege, restore_privilege, ltime, process_times):
6996 New functions.
6997 (convert_time_raw): New function.
6998 (convert_time): Remove conversion of FILETIME into time in 100
6999 nsec units, call convert_time_raw instead.
7000
7001 * process.h (w32_list_system_processes, w32_system_process_attributes):
7002 Add prototypes.
7003 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7004 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7005 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7006 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7007
7008 * process.c (Fsystem_process_attributes): Doc fix.
7009
70102008-08-08 Chong Yidong <cyd@stupidchicken.com>
7011
7012 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7013 a continued multi-char glyph; if so, advance to the actual glyph.
7014
70152008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7016
7017 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7018
7019 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7020 (.m.o): Use it.
7021 * config.in: Regenerate.
7022
70232008-08-07 Chong Yidong <cyd@stupidchicken.com>
7024
7025 * xdisp.c (redisplay_window): Revert last change.
7026 (try_window): Check bottom scroll margin too.
7027
70282008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7029
7030 * config.in: Regenerate.
7031
7032 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7033 -list-load-path-shadows'.
7034 (nsgui.h): Reduce number of things depending on it.
7035
70362008-08-06 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7039 instead of window-end which does the wrong thing at eob.
7040 (try_cursor_movement): Minor optimization.
7041 (redisplay_window): If scroll margin is defined, don't assume
7042 window doesn't need scrolling.
7043
70442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7045
7046 * config.in: Regenerate.
7047
7048 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7049 (mostlyclean): Don't delete *.d under NS.
7050
7051 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7052
70532008-08-06 Kenichi Handa <handa@m17n.org>
7054
7055 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7056
70572008-08-06 Andreas Schwab <schwab@suse.de>
7058
7059 * config.in: Regenerate.
7060
70612008-08-05 Chong Yidong <cyd@stupidchicken.com>
7062
7063 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7064 forcing a window start.
7065
7066 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7067 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7068
70692008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7070
7071 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7072 argument.
7073
70742008-08-05 Juanma Barranquero <lekktu@gmail.com>
7075
7076 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7077 <scroll-down-aggressively, before-change-functions>:
7078 <after-change-functions>: Reflow docstrings.
7079
70802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7081 Ken Raeburn <raeburn@gnu.org>
7082
7083 Dock menu customization, based on a patch by Ken Raeburn, plus some
7084 other fixes.
7085 * nsmenu.m (dockMenu): New variable.
7086 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7087
7088 * nsterm.h (dockMenu): Declare.
7089
7090 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7091 (ns_term_init): Initialize dockMenu.
7092 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7093 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7094 left.
7095
7096 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7097
70982008-08-04 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7101
7102 * config.in: Regenerate.
7103
71042008-08-04 Seiji Zenitani <zenitani@mac.com>
7105
7106 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7107
71082008-08-04 Chong Yidong <cyd@stupidchicken.com>
7109
7110 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7111
71122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7113
7114 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7115
7116 * keyboard.h: Comment an #endif.
7117
7118 * lisp.h (have_menus_p): Adjust comment.
7119
7120 * menu.c (find_and_return_menu_selection): Fix comparison with
7121 client_data.
7122
7123 * nsmenu.m (popup_activated_flag): New variable.
7124 (popup_activated): New function.
7125 (menu-or-popup-active-p): New exported lisp definition.
7126 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7127 when popup done.
7128 (ns_popup_dialog): Set popup_activated_flag.
7129
7130 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7131 version for GNUstep (handled by conditional typedef in nsterm.m).
7132 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7133 in rgb.txt).
7134
7135 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7136
7137 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7138
7139 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7140
7141 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7142 shortcircuit if popup_activated like GTK and X toolkit.
7143
7144 * m/inter386.h: Change DARWIN to DARWIN_OS.
7145
7146 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7147 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7148 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7149 comment on NO_SOCK_SIGIO.
7150
71512008-08-03 Chong Yidong <cyd@stupidchicken.com>
7152
7153 * nsterm.m (windowDidResize): Remove stopModal call.
7154
71552008-08-03 Andreas Schwab <schwab@suse.de>
7156
7157 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7158 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7159
71602008-08-02 Chong Yidong <cyd@stupidchicken.com>
7161
7162 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7163 Don't use uninitialized pointer variable when using getrlimit.
7164
71652008-08-02 Jason Rumney <jasonr@gnu.org>
7166
7167 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7168
71692008-08-02 Eli Zaretskii <eliz@gnu.org>
7170
7171 * alloc.c (NSTATICS): Bump to 0x640.
7172
7173 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7174
7175 * lisp.h: Add prototype for directory_files_internal.
7176
7177 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7178 New functions.
7179 (syms_of_process): Defsubr them. Add initializations for various
7180 Q* symbols used in procfs_system_process_attributes.
7181 (procfs_list_system_processes, procfs_system_process_attributes)
7182 [HAVE_PROCFS]: New functions.
7183 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7184 (procfs_get_total_memory): New functions.
7185
71862008-08-01 Juanma Barranquero <lekktu@gmail.com>
7187
7188 * xfaces.c (Fx_load_color_file): Fix previous change;
7189 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7190
71912008-08-01 Michael Albinus <michael.albinus@gmx.de>
7192
7193 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7194
71952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7196
7197 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7198
71992008-08-01 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7202
7203 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7204 define NSApplicationDelegateReplySuccess.
7205 (EmacsView -converstationIdentifier): Use long instead of
7206 NSInteger for GNUstep, since it doesn't have NSInteger.
7207
7208 * xmenu.c: Revert last change.
7209
7210 * keyboard.h: Fix last change.
7211
72122008-08-01 Juanma Barranquero <lekktu@gmail.com>
7213
7214 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7215 on Windows.
7216
72172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7218
7219 Warning clearing and clean-up in NS port.
7220 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7221 Add prototypes.
7222 * nsgui.h (FACE_DEFAULT): Remove, unused.
7223 (XGCValues): Change colors to unsigned long.
7224 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7225 nsterm.m.
7226 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7227 (ns_list_fonts): Remove, unused.
7228 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7229 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7230 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7231 (nsfont_draw): Compare face colors to 0, not nil.
7232 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7233 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7234 (-addSubmenuWithTitle:): Use NSMenuItem class.
7235 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7236 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7237 (ns_clip_to_row): Make gc arg a BOOL.
7238 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7239 ns_clip_to_row() call.
7240 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7241 used). Cast FRAME_FONT assignments.
7242 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7243 (ns_string_to_lispmod): Change arg to const char.
7244 (ns_term_init): Use NSMenuItem class.
7245 (EmacsApp -openFile:): Move to different section of file.
7246 (EmacsApp -application:openFiles:): Don't return a value, call
7247 -replyToOpenOrPrint:.
7248 (EmacsView -keyDown:): Fix up cast.
7249 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7250 (EmacsView -menuDown:): Cast tag in call to
7251 find_and_call_menu_selection().
7252 (ns_list_fonts): Remove, unused.
7253 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7254 (ns_fontname_to_xlfd): Make static.
7255 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7256 Remove prototypes (now in keyboard.h).
7257 (next_menubar_widget_id): Remove, unused.
7258 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7259 Remove prototypes (now in keyboard.h).
7260 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7261
72622008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7263
7264 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7265 (floatfns.o): Depend on syssignal.h.
7266 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7267
7268 * systty.h: Fix previous change that removed BSD_TERMIOS.
7269 Add comments to #ifdefs.
7270
72712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7272
7273 * w32fns.c (w32-load-color-file): Remove.
7274 (x-open-connection): Use renamed Fx_load_color_file.
7275 * xfaces.c (x-load-color-file): Add.
7276 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7277 Emacs.clr.
7278 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7279
72802008-07-31 Michael Albinus <michael.albinus@gmx.de>
7281
7282 * dbusbind.c (Fdbus_call_method_asynchronously)
7283 (Fdbus_method_error_internal): New defuns.
7284 (xd_read_message): Handle also reply messages.
7285 (Vdbus_registered_functions_table): Extend docstring.
7286
72872008-07-31 Juanma Barranquero <lekktu@gmail.com>
7288
7289 * keyboard.c (gobble_input): Fix previous change.
7290
72912008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7292
7293 * bitmaps/README:
7294 * xfns.c:
7295 * termcap.c:
7296 * term.c:
7297 * syswait.h:
7298 * systty.h:
7299 * systime.h:
7300 * syssignal.h:
7301 * sysdep.c:
7302 * process.h:
7303 * process.c:
7304 * print.c:
7305 * ndir.h:
7306 * lread.c:
7307 * keyboard.c:
7308 * getpagesize.h:
7309 * floatfns.c:
7310 * fileio.c:
7311 * emacs.c:
7312 * doc.c:
7313 * dispnew.c:
7314 * dired.c:
7315 * data.c:
7316 * callproc.c:
7317 * buffer.c:
7318 * README:
7319 * Makefile.in:
7320 * s/template.h:
7321 * s/msdos.h:
7322 * m/vax.h: Remove VMS support.
7323 * s/vms.h:
7324 * vlimit.h:
7325 * uaf.h:
7326 * temacs.opt:
7327 * param.h:
7328 * ioctl.h: Remove file.
7329
73302008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7331
7332 * s/ms-w32.h (MULTI_KBOARD): Remove.
7333 * xterm.c:
7334 * xselect.c:
7335 * xfns.c:
7336 * window.c:
7337 * w32term.c:
7338 * w32fns.c:
7339 * terminal.c:
7340 * termhooks.h:
7341 * term.c:
7342 * sysdep.c:
7343 * keyboard.h:
7344 * keyboard.c:
7345 * frame.h:
7346 * frame.c:
7347 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7348 * config.in: Regenerate.
7349
73502008-07-30 Jason Rumney <jasonr@gnu.org>
7351
7352 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7353
7354 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7355 (w32font_open_internal): Get unicode version of textmetrics.
7356 Don't enable or disable glyph indices here.
7357 (w32font_open): Disable use of glyph indices.
7358
7359 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7360
73612008-07-30 Chong Yidong <cyd@stupidchicken.com>
7362
7363 * minibuf.c (Vread_buffer_function): Doc fix.
7364
73652008-07-30 John Paul Wallington <jpw@pobox.com>
7366
7367 * minibuf.c (read_buffer_completion_ignore_case): New var.
7368 (Fread_buffer): Use it.
7369
73702008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7371
7372 * systty.h (sensemode): Remove empty #if. Remove reference to
7373 BSD_TERMIOS, unused.
7374
7375 * sysdep.c: Remove reference to DGUX.
7376 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7377
7378 * config.in: Regenerate.
7379
73802008-07-30 Jason Rumney <jasonr@gnu.org>
7381
7382 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7383
73842008-07-29 Jason Rumney <jasonr@gnu.org>
7385
7386 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7387 is populated.
7388 (uniscribe_encode_char): Always use uniscribe.
7389 Avoid using context if cache is populated.
7390
73912008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7392
7393 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7394 open menu.
7395
7396 * gtkutil.c (menu_nav_ended): Remove.
7397 (create_menus): Remove signal connect for menu_nav_ended.
7398
73992008-07-28 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * xdisp.c (redisplay_window): Check return value of
7402 compute_window_start_on_continuation_line before forcing a window
7403 start.
7404
74052008-07-28 Jason Rumney <jasonr@gnu.org>
7406
7407 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7408
7409 * w32term.c (w32_enable_unicode_output, cleartype_active):
7410 Remove obsolete display options.
7411 (x_draw_glyph_string_background): Don't use old cleartype_active
7412 workaround.
7413 (w32_initialize): Remove cleartype_active initialization.
7414 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7415
74162008-07-28 Andreas Schwab <schwab@suse.de>
7417
7418 * lisp.h (init_weak_hash_tables, syms_of_font)
7419 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7420 (remove_hash_entry): Don't declare.
7421 * eval.c (maybe_call_debugger): Make static and move before use.
7422 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7423 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7424 * xterm.h (x_set_frame_alpha): Declare.
7425
74262008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7427
7428 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7429 (create_menus): Connect selection-done to menu_nav_ended.
7430
74312008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7432
7433 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7434 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7435 parameter with read of 'alpha' one.
7436 (Qns_frame_parameter): Remove.
5582fbc7 7437 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7438 (next-selection-coding-system, Vselection_coding_system)
7439 (Vnext_selection_coding_system): Drop.
7440
74412008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7442
7443 * nsfns.m (do-applescript, do_applescript): Rename to
7444 ns-do-applescript, ns_do_applescript, and move within file.
7445
74462008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7447
7448 Remove support for Mac Carbon.
7449 * mactoolbox.c:
7450 * macterm.h:
7451 * macterm.c:
7452 * macselect.c:
7453 * macmenu.c:
7454 * macgui.h:
7455 * macfns.c:
7456 * mac.c: Remove file.
7457 * s/darwin.h:
7458 * m/intel386.h:
7459 * xfaces.c:
7460 * xdisp.c:
7461 * window.c:
7462 * tparam.c:
7463 * termhooks.h:
7464 * termcap.c:
7465 * term.c:
7466 * syssignal.h:
7467 * sysselect.h:
7468 * sysdep.c:
7469 * process.c:
7470 * lread.c:
7471 * lisp.h:
7472 * keyboard.c:
7473 * image.c:
7474 * fringe.c:
7475 * frame.h:
7476 * frame.c:
7477 * fontset.c:
7478 * font.h:
7479 * font.c:
7480 * fns.c:
7481 * fileio.c:
7482 * emacs.c:
7483 * dispnew.c:
7484 * dispextern.h:
7485 * config.in:
7486 * atimer.c:
2ae37cf0 7487 * Makefile.in: Remove code for Carbon.
aac0c6e3 7488
f0131492 74892008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7490
7491 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7492
74932008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7494
7495 * macterm.h (kCGBitmapByteOrder32Host): New define for
7496 non-universal SDKs.
7497
7498 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7499 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7500
7501 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7502 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7503
75042008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7505
7506 * w32inevt.c: Include dispextern.h.
7507
75082008-07-26 Andreas Schwab <schwab@suse.de>
7509
7510 * print.c (print_object): Fix off-by-one in last change.
7511
75122008-07-25 Juanma Barranquero <lekktu@gmail.com>
7513
7514 * term.c (syms_of_term): Don't initialize default_orig_pair,
7515 default_set_foreground and default_set_background on Windows.
7516
75172008-07-25 Jason Rumney <jasonr@gnu.org>
7518
7519 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7520 ScriptItemize. Clean up return value checking. Remove unused
7521 variables.
7522 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7523 shaping engine.
7524
7525 * w32font.c (w32font_has_char): Handle the case where we can't
7526 determine the script for a character.
7527
75282008-07-25 Chong Yidong <cyd@stupidchicken.com>
7529
7530 * term.c (syms_of_term): Initialize default_orig_pair,
7531 default_set_foreground, and default_set_background.
7532
7533 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7534 clash (bug#86).
7535 (getloadavg): Callers changed.
7536
7537 * image.c (svg_load_image): Fix last change.
7538 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7539 image size is valid. Use g_object_unref instead of deprecated
7540 rsvg_handle_free to free rsvg handle.
7541 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7542
75432008-07-25 Jason Rumney <jasonr@gnu.org>
7544
7545 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7546 surrogates before looking up glyph index.
7547 (w32font_text_extents): Encode as surrogates if falling back to
7548 functions that need UTF-16 wide chars.
7549
7550 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7551 BMP as surrogates before looking up glyph index.
7552
75532008-07-25 Chong Yidong <cyd@stupidchicken.com>
7554
7555 * image.c (svg_load_image): Check for failure in return value of
7556 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7557
75582008-07-25 Jason Rumney <jasonr@gnu.org>
7559
7560 * w32font.c (Fx_select_font): Reverse sense of second arg.
7561
75622008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7563
7564 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7565 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7566
7567 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7568 (PURESIZE): Use it.
7569
75702008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7571
7572 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7573 * m/alpha.h (TEXT_END):
7574 * m/ibmrs6000.h (TEXT_END):
7575 * m/macppc.h (TEXT_END):
7576 * s/darwin.h (TEXT_END):
7577 * s/msdos.h (TEXT_END): Remove, unused.
7578 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7579 * s/cygwin.h: Remove comment.
7580
7581 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7582 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7583 * m/intel386.h (DOT_GLOBAL_START):
7584 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7585 (USG): Remove, file not used on USG platforms.
7586
7587 * Makefile.in (HAVE_X11): Remove empty #else.
7588
75892008-07-24 Andreas Schwab <schwab@suse.de>
7590
7591 * fileio.c (Finsert_file_contents): Properly adjust undo list
7592 after format conversion.
7593
75942008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7595
7596 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7597 (menu_nav_ended): Remove.
7598 (create_menus): Remove signal connect for menu_nav_ended.
7599 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7600 create_menus.
7601 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7602
76032008-07-23 Jason Rumney <jasonr@gnu.org>
7604
7605 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7606 with opened font.
7607 (w32font_open): Set font type to gdi.
7608
7609 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7610
76112008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7612
7613 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7614 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7615 defines it.
7616 * unexec.c (ADDR_CORRECT): Define unconditionally.
7617
7618 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7619
7620 * unexec.c: Remove code depending on !COFF and USG, the file is
7621 not used for such systems.
7622
7623 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7624 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7625 (LD_SWITCH_SYSTEM_1): Remove, update users.
7626
7627 * s/darwin.h (DATA_END):
7628 * m/intel386.h (DATA_END):
7629 * m/ibmrs6000.h (DATA_END):
7630 * m/alpha.h (DATA_END): Remove, unused.
7631
7632 * config.in: Regenerate.
7633 * s/ms-w32.h (subprocesses): Define unconditionally.
7634 * s/template.h (subprocesses): Update comment.
7635 * s/vms.h (subprocesses):
7636 * s/usg5-4.h (subprocesses):
7637 * s/hpux10-20.h (subprocesses):
7638 * s/gnu-linux.h (subprocesses):
7639 * s/cygwin.h (subprocesses):
7640 * s/bsd-common.h (subprocesses):
7641 * s/aix4-2.h (subprocesses):
7642 * s/darwin.h (subprocesses): Do not define, defined by default now.
7643
7644 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7645 Remove all references.
7646 (temacs): Add GNUstep specific ld flags.
7647
7648 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7649 similarly to what X does.
7650
76512008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7652
7653 * nsfns.m (x-list-fonts): Remove.
7654 (syms_of_nsfns): Drop the x-list-fonts declaration.
7655 * nsterm.m: Get rid of remaining "//" comments.
7656
76572008-07-22 Chong Yidong <cyd@stupidchicken.com>
7658
7659 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7660
7661 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7662 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7663 (Fns_own_selection_internal, Fx_disown_selection_internal)
7664 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7665
7666 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7667 ... */' style of docstrings. Doc fixes.
7668
76692008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7670
7671 * terminfo.c (UP, BC, PC): Undo previous change.
7672
7673 * nsfns.m: Rename ns prefixed functions/variables to the
7674 corresponding x versions. Update references.
7675
76762008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7677
7678 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7679
76802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7681
7682 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7683 Remove forwarding functions.
7684 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7685 non-static.
7686 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7687 non-static.
7688 (ns_frame_parm_handlers): Use the new names.
7689 (syms_of_nsfns): Move to the end of file.
7690
7691 * nsterm.m (syms_of_nsterm): Move to the end of file.
7692
7693 * dispnew.c (init_display): Remove code for X10.
7694
76952008-07-22 Jason Rumney <jasonr@gnu.org>
7696
7697 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7698 bare drive.
7699
77002008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7701
7702 * nsterm.m (syms_of_nsterm): Remove debugging println.
7703
77042008-07-22 David Reitter <david.reitter@gmail.com>
7705
7706 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7707 Carbon implementation of the same functionality: execute arbitrary
7708 AppleScript code.
7709
77102008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7711
7712 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7713 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7714 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7715 (Fx_display_mm_height, Fx_display_mm_width)
7716 (Fx_display_backing_store, Fx_display_visual_class)
7717 (Fx_display_save_under, Fx_open_connection)
7718 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7719 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7720 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7721 (Fx_display_pixel_width, Fx_display_pixel_height)
7722 (Fx_display_usable_bounds, Fx_display_planes)
7723 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7724 ... */' style of docstrings.
7725
77262008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7727
7728 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7729 on this platform.
7730 (mips):
7731 * m/iris4d.h (mips): Do not define.
7732 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7733
7734 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7735
7736 * image.c:
7737 * nsfns.m:
7738 * nsselect.m:
7739 * nsterm.h:
7740 * nsterm.m: Rename ns prefixed functions/variables to the
7741 corresponding x versions. Update references.
7742
7743 * m/ibms390x.h (NO_REMAP): Do not undefine.
7744
7745 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7746
77472008-07-21 Chong Yidong <cyd@stupidchicken.com>
7748
7749 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7750 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7751 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7752 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7753 (Fns_display_mm_height, Fns_display_mm_width)
7754 (Fns_display_backing_store, Fns_display_visual_class)
7755 (Fns_display_save_under, Fns_open_connection)
7756 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7757 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7758 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7759 (Fns_display_pixel_width, Fns_display_pixel_height)
7760 (Fns_display_usable_bounds, Fx_display_planes)
7761 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7762
77632008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7764
7765 * print.c (print_object): Check print_depth before searching for
7766 circularities.
7767
77682008-07-21 Michael Albinus <michael.albinus@gmx.de>
7769
7770 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7771 only sprintf.
7772
77732008-07-21 Kenichi Handa <handa@m17n.org>
7774
7775 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7776
77772008-07-20 Andreas Schwab <schwab@suse.de>
7778
7779 * syntax.c (find_start_pos, find_start_value)
7780 (find_start_value_byte, find_start_begv, find_defun_start)
7781 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7782
77832008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7784
7785 * s/sol2-3.h: Insert contents of s/sol2.h.
7786 (LD_SWITCH_SYSTEM): Remove redundant definition.
7787 * s/sol2.h: Remove, unused.
7788
77892008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7790
7791 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7792
77932008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7794
7795 * Makefile.in (ns_appdir): Fix typo in find command.
7796
77972008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7798
7799 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7800
7801 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7802 added not supported anymore.
7803
7804 * s/usg5-4-2.h (LIBS_SYSTEM):
7805 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7806
7807 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7808 * s/lynxos.h (GETPGRP_NO_ARG):
7809 * s/hpux10-20.h (NO_SIOCTL_H):
7810 * s/gnu.h (GETPGRP_NO_ARG):
7811 * s/gnu-linux.h (NO_SIOCTL_H):
7812 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7813 * s/cygwin.h (GETPGRP_NO_ARG):
7814 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7815 (C_DEBUG_SWITCH): Remove duplicate definition.
7816
7817 * m/ibms390.h: Remove boilerplate comments.
7818
7819 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7820
7821 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7822 (wait_reading_process_output): Remove code for SunOS, platform not
7823 supported anymore. Use SOLARIS2 instead of sun.
7824
78252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7826
7827 * font.c (font_open_by_name): Under NS, default lface height to zero.
7828 (font_open_for_lface): Under NS, set size based on frame fontsize.
7829 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7830 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7831
78322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7833
7834 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7835 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7836 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7837 YES/NO.
7838 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7839 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7840 * Makefile.in (clean): Clear out build destination dir.
7841
78422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7843
7844 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7845 xterm, xselect.
7846 * lisp.h: Remove declaration of hash_remove.
7847 * nsgui.h: Remove redefinitions of hash_remove.
7848 * fns.c (hash_remove): Rename to hash_remove_from_table.
7849
78502008-07-19 Seiji Zenitani <zenitani@mac.com>
7851
7852 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7853 strdup() the family UTF8String before modifying it.
7854
78552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7856
7857 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7858 NS_FACE_BACKGROUND with 0 instead of nil.
7859 * nsfont.m (nsfont_draw): Same.
7860
78612008-07-19 Chong Yidong <cyd@stupidchicken.com>
7862
7863 * nsfns.m (ns_set_background_color): Fix crash.
7864
78652008-07-18 Chong Yidong <cyd@stupidchicken.com>
7866
7867 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7868
78692008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7870
7871 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7872
78732008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7874
7875 * gtkutil.c: Include <config.h> instead of "config.h".
7876
7877 * lisp.h (Foverlay_buffer): Add EXFUN.
7878
7879 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7880 child process to complete child_setup. Undo 2005-09-21 change.
7881
7882 * s/darwin.h: Mention setsid after vfork.
7883
78842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7885
7886 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7887 Depend on macgui.h.
7888
7889 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7890 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7891
7892 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7893 and f19.
7894 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7895
7896 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7897 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7898 Remove enumerators.
7899
7900 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7901 Check if FACE_FROM_ID returns NULL.
7902
79032008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7904
7905 * w32inevt.c (change_frame_size): Remove extern declaration.
7906 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7907 change_frame_size.
7908
79092008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7910
7911 * getloadavg.c: Revert last change (2008-07-15).
7912
79132008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7914
7915 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7916 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7917 from configure.
7918
79192008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7920
7921 * s/sol2.h:
7922 * s/sol2-4.h: Reorganize conditionals.
7923
7924 * ecrt0.c: Remove code depending on m68000, not used anymore.
7925
7926 * fns.c (hash_remove): Make static.
7927 * lisp.h (hash_remove): Don't prototype.
7928
7929 * m/ibmrs6000.h:
7930 * m/ibms390x.h:
7931 * m/macppc.h: Remove boilerplate comments.
7932
7933 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7934 Solaris, which does not need them.
7935
7936 * m/vax.h: Remove comments about unsupported systems.
7937
7938 * s/darwin.h: Reorganize ifdefs.
7939
79402008-07-17 Andreas Schwab <schwab@suse.de>
7941
7942 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7943
79442008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7945
7946 Use SDATA. Follow coding convention of placing operators at
7947 beginning of next line rather than end of previous line, and placing
7948 spaces around infix operators.
7949
7950 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7951 in case it was defined already.
7952 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7953 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7954 ns_default.
7955 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7956 Lisp_Objects.
7957 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7958 (ns_defined_color, ns_color_to_lisp): Declare.
7959 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7960 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7961 it's accepted even with USE_LISP_UNION_TYPE.
7962 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7963 (update_frame_tool_bar): Remove apparently obsolete tests for
7964 non-integerness of f->tool_bar_lines.
7965 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7966 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7967 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7968 (nsfont_open): Don't confuse NULL for Qnil.
7969 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7970 * menu.h (find_and_call_menu_selection):
7971 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7972 (find_and_return_menu_selection): Always return something.
7973 * frame.h: Include dispextern.h for Display_Info.
7974 (display_x_get_resource): Declare.
7975
79762008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7977
7978 * syntax.c: Remove stdio.h include accidentally introduced in
7979 Emacs.app commit.
7980 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7981 NS_IMPL_COCOA.
7982 * keyboard.c (handle_async_input, input_available_signal): Remove
7983 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7984
79852008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7986
7987 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7988 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7989 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7990 Use SDATA.
7991
7992 * keymap.c: Remove all NS-specific code.
7993 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7994 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7995 where_is_preferred_modifier, return a different value depending on how
7996 preferred is the binding.
7997 (where_is_internal): Adjust accordingly.
7998 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7999 Adjust to new preferred_sequence_p.
8000 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8001 * keyboard.c (parse_solitary_modifier): Not static any more.
8002 * keyboard.h (parse_solitary_modifier): Declare.
8003
80042008-07-16 Andreas Schwab <schwab@suse.de>
8005
8006 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8007 of easymenu.
8008
80092008-07-16 Chong Yidong <cyd@stupidchicken.com>
8010
8011 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8012 that we don't move off the line.
8013
80142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 * keyboard.c (Qsuper): Remove.
8017 (parse_menu_item): Don't call where_is_internal specially for NS.
8018
80192008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8020
8021 * s/gnu-linux.h: Remove boilerplate comments.
8022
8023 * m/alpha.h (__ELF__): Consolidate conditions.
8024
8025 * m/m68k.h (linux): Use GNU_LINUX instead.
8026 Remove boilerplate comments.
8027
8028 * m/intel386.h: Undo refactoring from previous change.
8029 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8030 too, remove dead code.
8031 (linux): Use GNU_LINUX instead.
8032
80332008-07-16 Jason Rumney <jasonr@gnu.org>
8034
8035 * w32gui.h: Repeat 26 June changes lost by last change.
8036
80372008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8038
8039 * systty.h: Remove code for Aix on 386, unsupported platform.
8040
8041 * s/ms-w32.h: Remove boilerplate comments.
8042 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8043
8044 * s/gnu-linux.h (TERM): Remove support.
8045 (HAVE_SYSVIPC): Remove, unused.
8046 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8047 for this system.
8048
8049 * process.c: Remove support for IRIS, unused.
8050 Remove support for TERM, not relevant anymore.
8051
8052 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8053 used with the definition.
8054
8055 * s/aix4-2.h (static): Do not undef.
8056
8057 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8058 only used on Aix.
8059 (HAVE_SYSVIPC): Remove, unused.
8060
8061 * m/hp800.h (CANNOT_DUMP): Do not undef.
8062
8063 * m/alpha.h: Fix comment.
8064
8065 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8066 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8067 used by this configuration.
8068 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8069 * unexec.c: Remove code depending on HPUX and
8070 USG_SHARED_LIBRARIES, not used with this file. Remove code
8071 depending on IRIS, unused. Remove if 0-ed code.
8072
8073 * s/template.h: Remove comments about static.
8074
8075 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8076 Remove if 0-ed code.
8077 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8078 were the same as the default.
8079 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8080 Remove boilerplate comments.
8081 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8082 (HAVE_SYSVIPC): Remove, unused.
8083 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8084
8085 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8086 Remove boilerplate comments.
8087 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8088 Remove boilerplate comments.
8089 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8090 Remove boilerplate comments.
8091 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8092
8093 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8094 USG systems which do not use DATA_SEG_BITS.
8095 Refactor code. Remove boilerplate comments.
8096
8097 * m/ibms390.h:
8098 * m/m68k.h:
8099 * s/bsd-common.h:
8100 * s/cygwin.h:
8101 * s/darwin.h:
8102 * s/freebsd.h:
8103 * s/gnu.h:
8104 * s/msdos.h: Remove boilerplate comments.
8105
8106 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8107 do not use this file.
aac0c6e3
MR
8108 (IRIS_4D): Remove, unused.
8109
8110 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8111 do not use this file.
aac0c6e3
MR
8112 (SIGN_EXTEND_CHAR):
8113 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8114 * unexmips.c: Remove file, unused.
8115
8116 * editfns.c (Fuser_full_name): Replace the only use of
8117 USER_FULL_NAME with its value.
8118 * config.in: Regenerate.
8119
81202008-07-16 David Reitter <david.reitter@gmail.com>
8121
8122 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8123 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8124
81252008-07-16 Glenn Morris <rgm@gnu.org>
8126
8127 * emacs.c (system-type): Doc fix.
8128
81292008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8130
8131 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8132 If the cache doesn't work, let's fix it, rather than work around it.
8133
81342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8135
8136 * Makefile.in: Correct additions for nsfont.o in last commit.
8137 * nsfont.m: New file (forgot last commit).
8138
81392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8140
8141 * callproc.c (set_initial_environment): Initialize
8142 Vprocess_environment under CANNOT_DUMP (fixes crash when
8143 batch-compiling for bootstrap).
8144
81452008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8146 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8147
8148 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8149 fix crash due to different init order.
8150
81512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8152
8153 Changes and additions for NeXTstep windowing system (Cocoa and
8154 GNUstep) support.
8155
8156 * Makefile.in:
8157 * config.in: Support defines and build commands for NS port.
8158 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8159 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8160 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8161 windowing.
8162 (struct face): Add synth_ital field.
8163 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8164 (init_display): Initialize Vinitial_window_system to "ns" when so
8165 compiled.
8166 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8167 (display_arg): Use under NS.
8168 (main): Under NS, allocate autorelease pool and handle command line
8169 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8170 (standard_args): Add NS-specific args.
8171 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8172 * font.c (DEFAULT_ENCODING): New variable.
8173 (font_find_for_lface): Use it.
8174 (syms_of_font): Load syms_of_nsfont under NS.
8175 * font.h: Declare nsfont_driver when compiled under NS.
8176 * fontset.c: When compiling under NS, include nsterm.h.
8177 (fontset_from_font): Autoconstruct fontset under NS.
8178 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8179 symbol, document and use it.
8180 (do_switch_frame): When for_deletion under Cocoa, add
8181 Fraise_frame(Qnil).
8182 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8183 (x_get_arg): Allow "yes" and "no" as boolean values.
8184 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8185 Qright under Cocoa.
8186 (focus-follows-mouse): Default to 0 under NS.
8187 * frame.h (enum output_method): Add output_ns.
8188 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8189 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8190 (FRAME_WINDOW_P): NS-specific definition.
8191 * fringe.c (max_used_fringe_bitmap): Make public.
8192 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8193 (getloadavg): Use NeXT code under descendant OS's.
8194 * image.c (includes and header section, x_create_bitmap_from_data)
8195 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8196 (image_background_transparent, x_clear_image_1)
8197 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8198 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8199 (x_to_xcolors, x_from_xcolors, x_disable_image)
8200 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8201 other GUIs, including XPM support using code originally written for
8202 Carbon GUI.
8203 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8204 using NS API.
8205 (image_ascent): Use font metrics macros instead of direct struct field
8206 access.
8207 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8208 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8209 Also, handle NS as GTK for menu bar purposes.
8210 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8211 toolkit where they differ.
8212 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8213 use cachelist, still needed under NS.
8214 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8215 (struct widget_value): Define it here for menu.c.
8216 * keymap.c (includes): Include modifier internals.
8217 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8218 NS.
8219 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8220 support for preferring sequences using certain modifiers, specified by
8221 the FIRSTONLY argument.
8222 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8223 under NS GNUstep implementation.
8224 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8225 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8226 * menu.c: Include nsterm.h under NS.
8227 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8228 (free_menubar_widget_tree_value, update_submenu_strings)
8229 (find_and_call_menu_selection): Treat NS as X and NT.
8230 (find_and_return_menu_selection): New function, used for popup menus.
8231 * nsgui.h:
8232 * nsterm.h:
8233 * nsfns.m:
8234 * nsimage.m:
8235 * nsmenu.m:
8236 * nsselect.m:
8237 * nsterm.m: New files.
8238 * process.c (wait_reading_process_output): Under NS, call ns_select()
8239 instead of plain select().
8240 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8241 beginning of buffer.
8242 * sysselect.h (init_process): Rename when compiling under Cocoa to
8243 avoid name conflict.
8244 * termhooks.h (display_info): Add ns_display_info to union.
8245 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8246 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8247 COCOA environment.
8248 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8249 unexec() signature. (Note, this will dump, but the resulting file
8250 crashes; unexosx is used instead; keeping around for reference and
8251 possible aid in getting dump working under GNUstep.)
8252 * w32gui.h (button_type, widget_value): Remove definitions (now in
8253 keyboard.h).
8254 * window.c: Include nsterm.h when compiling under NS.
8255 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8256 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8257 other GUI windowing systems.
8258 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8259 GTK.
8260 (x_consider_frame_title): Under NS, set icon type and frame
8261 modified-state indicator; use ns_set_name_as_filename() when using
8262 formatted title.
8263 (update_window_cursor): Make public when compiling under NS.
8264 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8265 (hourglass_atimer, Vhourglass_delay
8266 * xfaces.c (header section, init_frame_faces, clear_font_table)
8267 (defined_color, unload_color, x_face_list_fonts)
8268 (prepare_face_for_display): Add NS support parallel to other GUIs.
8269 Emulate GCs like other non-X GUIs.
8270 (split_font_name): Don't lowercase font name under NS.
8271 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8272 under NS.
8273 * s/darwin.h: Add support for compilation under NS.
8274
82752008-07-15 Jason Rumney <jasonr@gnu.org>
8276
8277 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8278 (w32_show_hourglass): Rename from show_hourglass.
8279 (w32_hide_hourglass): Rename from hide_hourglass.
8280 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8281 (Vhourglass_delay): Declare extern.
8282 (hourglass_started): Remove.
8283
8284 * xdisp.c (Vhourglass_delay): Remove static.
8285 (hourglass_started, start_hourglass, cancel_hourglass):
8286 Don't include these versions on WINDOWSNT.
8287
82882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8289
8290 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8291 variables (formerly in xfns.c).
8292 (show_hourglass, hide_hourglass): New prototypes (same).
8293 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8294 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8295 in xfns.c).
8296 (syms_of_xdisp): Declare/initialize display-hourglass,
8297 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8298 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8299 formerly in xfns.c.
8300 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8301 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8302 (start_hourglass, cancel_hourglass): Remove.
8303 (show_hourglass, hide_hourglass): Remove prototypes and static
8304 modifiers.
8305 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8306 hourglass_atimer, hourglass_shown_p declaration/initialization.
8307 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8308 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8309 (start_hourglass, cancel_hourglass): Remove.
8310 (show_hourglass, hide_hourglass): Remove prototypes and static
8311 modifiers.
8312 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8313 hourglass_atimer, hourglass_shown_p declaration/initialization.
8314 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8315 (DEFAULT_HOURGLASS_DELAY): Remove.
8316 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8317 hourglass_shown_p declaration/initialization.
8318
83192008-07-14 Jason Rumney <jasonr@gnu.org>
8320
8321 * w32fns.c (w32_get_arg): Remove wrapper function.
8322 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8323 directly.
8324 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8325
83262008-07-14 Kenichi Handa <handa@m17n.org>
8327
8328 * xfont.c (xfont_open): Add workaround for X's bug.
8329
83302008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8331
8332 * fontset.c: Include <stdio.h> unconditionally.
8333
83342008-07-13 Michael Albinus <michael.albinus@gmx.de>
8335
8336 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8337 for filtering.
8338
83392008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8340
8341 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8342
8343 * m/macppc.h:
8344 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8345
8346 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8347 (SPECIAL_EMACS_INT):
8348 * m/ia64.h (SPECIAL_EMACS_INT):
8349 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8350 * s/gnu.h (NLIST_STRUCT):
8351 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8352 * s/gnu-linux.h (LINUX):
8353 * s/msdos.h (HAVE_FACES):
8354 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8355
8356 * systty.h:
8357 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8358 anymore.
8359
83602008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8361
8362 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8363 always defined as int.
8364
8365 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8366 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8367 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8368 * s/freebsd.h (HAVE_WAIT_HEADER):
8369 * s/bsd-common.h (HAVE_UNION_WAIT):
8370 * s/aix4-2.h (HAVE_WAIT_HEADER):
8371 * m/mips.h (HAVE_UNION_WAIT):
8372 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8373 (COFF, static): Do not define, they are undefined later in the file.
8374
8375 * process.c (update_status): Don't use a union.
8376 (status_convert):
8377 (sigchld_handler): Use int instead of WAITTYPE.
8378
83792008-07-12 Chong Yidong <cyd@stupidchicken.com>
8380
8381 * indent.c (Fvertical_motion): Restore hscroll before moving to
8382 goal column.
8383
83842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8385
8386 * lisp.h: Remove left over code.
8387
83882008-07-11 Andreas Schwab <schwab@suse.de>
8389
8390 * lisp.h: Fix logic in last change.
8391
8392 * menu.h: New file.
8393 * menu.c: Include it.
8394 * xmenu.c: Likewise.
8395 * Makefile.in: Update dependencies.
8396
83972008-07-11 Kenichi Handa <handa@m17n.org>
8398
8399 * fontset.c (fontset_from_font): Cancel the previous change.
8400
84012008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8402
8403 * lisp.h:
8404 * w32heap.c:
8405 * emacs.c:
8406 * alloc.c: Replace all references of NO_UNION_TYPE with
8407 USE_LISP_UNION_TYPE.
8408
8409 * m/xtensa.h (NO_UNION_TYPE):
8410 * m/vax.h (NO_UNION_TYPE):
8411 * m/template.h (NO_UNION_TYPE):
8412 * m/sparc.h (NO_UNION_TYPE):
8413 * m/mips.h (NO_UNION_TYPE):
8414 * m/macppc.h (NO_UNION_TYPE):
8415 * m/m68k.h (NO_UNION_TYPE):
8416 * m/iris4d.h (NO_UNION_TYPE):
8417 * m/intel386.h (NO_UNION_TYPE):
8418 * m/ibms390x.h (NO_UNION_TYPE):
8419 * m/ibms390.h (NO_UNION_TYPE):
8420 * m/ibmrs6000.h (NO_UNION_TYPE):
8421 * m/ia64.h (NO_UNION_TYPE):
8422 * m/hp800.h (NO_UNION_TYPE):
8423 * m/arm.h (NO_UNION_TYPE):
8424 * m/amdx86-64.h (NO_UNION_TYPE):
8425 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8426 defining it the same.
8427
84282008-07-10 Chong Yidong <cyd@stupidchicken.com>
8429
8430 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8431
84322008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8433
8434 * fileio.c:
8435 * sysdep.c
8436 * systty.h:
8437 * m/ibmrs6000.h:
8438 * m/iris4d.h:
8439 * s/aix4-2.h:
8440 * s/freebsd.h:
8441 * s/gnu-linux.h:
8442 * s/hpux10-20.h:
8443 * s/hpux11.h:
8444 * s/netbsd.h:
8445 * s/sol2-3.h:
8446 * s/sol2-4.h:
8447 * s/sol2.h:
8448 * s/usg5-4.h:
8449 * s/vms.h: Remove references to unused variables.
8450
84512008-07-10 Andreas Schwab <schwab@suse.de>
8452
8453 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8454 pattern before matching the generic family.
8455
84562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8457
8458 * unexec.c:
8459 * s/vms.h:
8460 * s/usg5-4-2.h:
8461 * s/sol2-5.h:
8462 * s/freebsd.h:
8463 * s/darwin.h: Remove dead code.
8464
8465 * m/template.h:
8466 * m/sparc.h:
8467 * m/mips.h:
8468 * m/m68k.h:
8469 * m/iris4d.h:
8470 * m/intel386.h:
8471 * m/ibms390x.h:
8472 * m/ibms390.h:
8473 * m/ia64.h:
8474 * m/hp800.h:
8475 * m/arm.h:
8476 * m/amdx86-64.h: Remove dead code and references to unused
8477 and compiler defined symbols.
8478
8479 * unexmips.c:
8480 * unexelf.c: Remove references to desupported systems.
8481
8482 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8483
8484 * m/powermac.h: Remove boilerplate comments.
8485 (NO_REMAP): Remove unused definition.
8486
8487 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8488 define them.
8489
84902008-07-10 Kenichi Handa <handa@m17n.org>
8491
8492 * xfont.c (xfont_open): Log the reason of failure.
8493
84942008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8495
8496 * fontset.c (fontset_get_font_group):
8497 * font.c (font_check_otf): Specify argument types.
8498
84992008-07-09 Kenichi Handa <handa@m17n.org>
8500
8501 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8502 non-ASCII char is found.
8503
8504 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8505 (reorder_font_vector): Change the arg preferred_family to font.
8506 Prefer the spec matching with font.
8507 (fontset_get_font_group): New function.
8508 (fontset_find_font): Change the format of an element of a realized
8509 fontset. Use fontset_get_font_group.
8510 (fontset_font): Try the current fontset, the default fontset, the
8511 fallbacks of the current fontset, and the fallbacks of the default
8512 fontset in this order.
8513 (face_for_char): Delete the shortcut to use the current font.
8514 (fontset_from_font): Don't set fonts for Latin in the fontset.
8515
8516 * font.h (font_make_object, font_match_p): Adjust prototypes.
8517
8518 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8519
8520 * font.c (font_make_object): New arg entity and pixelsize.
8521 (font_check_otf_features, font_check_otf): New functions.
8522 (font_match_p): Check :lang, :script, and :otf properties.
8523
8524 * xfont.c (xfont_open): Adjust it for the change of
8525 font_make_object.
8526 (xfont_text_extents): Fix initial setting of metrics.
8527
8528 * ftfont.c (struct ftfont_info): New member index, delete member
8529 fc_charset_idx. Make the member order compatible with struct
8530 xftfont_info.
8531 (fc_charset_table): Change charset names to registry names.
8532 (ftfont_pattern_entity): Delete the args registry and
8533 fc_charset_idx. Change the value of :font-entity property
8534 to (FONTNAME . INDEX). Always set :registry property to
8535 `iso10646-1'.
8536 (struct ftfont_cache_data): New struct.
8537 (ftfont_lookup_cache): New arg for_face.
8538 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8539 (ftfont_driver): Set the member otf_capability.
8540 (ftfont_get_charset): Adjust it for the change of
8541 fc_charset_table.
8542 (OTF_TAG_SYM): New macro.
8543 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8544 for the change of fc_charset_table.
8545 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8546 ftfont_pattern_entity. Add FC_INDEX to objset.
8547 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8548 and ftfont_pattern_entity.
8549 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8550 font_make_object, struct ftfont_info.
8551 (ftfont_has_char): Use ftfont_get_fc_charset.
8552 (ftfont_otf_features, ftfont_otf_capability): New functions.
8553 (ftfont_shape): Use ftfont_get_otf.
8554 (ftfont_text_extents): Fix initial setting of metrics.
8555
8556 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8557 member order compatible with struct ftfont_info.
8558 (xftfont_open): Add FC_CHARSET to the pattern. Set
8559 xftfont_info->ft_size. Don't unlock the face. Check BDF
8560 properties if appropriate.
8561 (xftfont_close): Unlock the face.
8562 (xftfont_anchor_point, xftfont_shape): Deleted.
8563 (syms_of_xftfont): Don't set members anchor_point and shape of
8564 xftfont_driver.
8565
8566 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8567 font_make_object.
8568
8569 * w32font.c (w32font_open): Adjust it for the change of
8570 font_make_object.
8571 (w32font_open_internal): Don't set properties of font_object here.
8572
85732008-07-08 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * macfns.c (x_create_tip_frame):
8576 * w32fns.c (x_create_tip_frame):
8577 * xfns.c (x_create_tip_frame): Pass parameter argument to
8578 face-set-after-frame-default.
8579
8580 * xfaces.c (Finternal_merge_in_global_face): Save merged
8581 attributes for the default face back into the face vector.
8582
85832008-07-08 Andreas Schwab <schwab@suse.de>
8584
8585 * fontset.h: Declare fontset_from_font. Don't declare
8586 new_fontset_from_font and fontset_from_font_name.
8587 * xterm.c: Include "fontset.h".
8588 * Makefile.in (xterm.o): Update dependencies.
8589
85902008-07-08 Glenn Morris <rgm@gnu.org>
8591
8592 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8593 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8594
85952008-07-07 Chong Yidong <cyd@stupidchicken.com>
8596
8597 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8598 (x_set_frame_parameters): Don't bind it.
8599
86002008-07-07 Juanma Barranquero <lekktu@gmail.com>
8601
8602 * w32fns.c (map_w32_filename): Declare extern.
8603
86042008-07-07 Jason Rumney <jasonr@gnu.org>
8605
8606 * w32term.c (WS_EX_LAYERED): Define if not already.
8607
86082008-07-06 Chong Yidong <cyd@stupidchicken.com>
8609
8610 * xfaces.c (set_font_frame_param): Don't try to set the font
8611 parameter if it is still unspecified in the lface.
8612
86132008-07-05 Chong Yidong <cyd@stupidchicken.com>
8614
8615 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8616 face if it didn't already exist.
8617
8618 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8619
86202008-07-05 Andreas Schwab <schwab@suse.de>
8621
8622 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8623
86242008-07-05 Chong Yidong <cyd@stupidchicken.com>
8625
8626 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8627 word-wrapping.
8628 (IT_DISPLAYING_WHITESPACE): New macro.
8629 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8630 when word-wrapping. Simplify word-wrapping logic. Use correct
8631 pixel positions when saving copies of the iterator.
8632 (display_line): Use proper wrap point if the last character on a
8633 line was preceded by whitespace.
8634
86352008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8638
86392008-07-04 Kenichi Handa <handa@m17n.org>
8640
8641 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8642
8643 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8644
86452008-07-02 Jason Rumney <jasonr@gnu.org>
8646
8647 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8648 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8649
8650 * xdisp.c (next_element_from_display_vector): Move assignment out
8651 of if statement.
8652
86532008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8654
8655 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8656
8657 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8658 (syms_of_fileio): Initialize and export them.
8659 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8660
8661 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8662 (Fsystem_move_file_to_trash): New function.
8663 (syms_of_w32fns): Export it to lisp.
8664
86652008-07-01 Jason Rumney <jasonr@gnu.org>
8666
8667 * w32font.c (w32font_text_extents): Don't count overhang as part
8668 of width.
8669
86702008-06-30 Miles Bader <miles@gnu.org>
8671
8672 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8673 Add `avoid_cursor_p' field.
8674
8675 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8676 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8677 (append_glyph, append_composite_glyph, produce_image_glyph)
8678 (append_stretch_glyph): Initialize avoid_cursor_p.
8679 (get_it_property): Rename from `get_line_height_property'.
8680 (x_produce_glyphs): Use get_it_property.
8681 (handle_line_prefix, push_display_prop): New functions.
8682 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8683 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8684 New variables.
8685 (syms_of_xdisp): Initialize them.
8686
86872008-06-30 Kenichi Handa <handa@m17n.org>
8688
8689 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8690 XftDefaultSubstitute (they are called in XftFontMatch).
8691 (xftfont_open): Fix args to ftfont_font_format.
8692
8693 * ftfont.c (fc_charset_table): New member lang.
8694 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8695 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8696 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8697 (ftfont_open): Fix args to ftfont_font_format.
8698 (ftfont_font_format): New arg filename.
8699
87002008-06-30 Chong Yidong <cyd@stupidchicken.com>
8701
8702 * xfaces.c (Finternal_merge_in_global_face): If default face was
8703 modified, realize it again. Update the font face attribute.
8704
87052008-06-29 Jason Rumney <jasonr@gnu.org>
8706
8707 * w32term.c (x_set_frame_alpha): Fix logic.
8708
87092008-06-29 Kenichi Handa <handa@m17n.org>
8710
8711 * fontset.c (Finternal_char_font): Return font-object instead of
8712 font-name.
8713
8714 * composite.c (get_composition_id): Fix the width calculation for TAB.
8715
87162008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8717
8718 * indent.c (Fvertical_motion): Properly handle float column arg.
8719
87202008-06-28 Jason Rumney <jasonr@gnu.org>
8721
8722 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8723 (pfnSetLayeredWindowAttributes): New function pointer.
8724 (w32_initialize): Initialize it when supported.
8725 (x_set_frame_alpha): New function.
8726
8727 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8728 (w32_frame_parm_handlers): Set alpha handler.
8729
8730 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8731
87322008-06-27 Jason Rumney <jasonr@gnu.org>
8733
8734 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8735 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8736 (w32_to_x_charset, x_to_w32_charset)
8737 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8738 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8739 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8740 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8741 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8742 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8743 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8744 (Qw32_charset_unicode): Remove.
8745 (syms_of_w32fns): Update for above changes.
8746
8747 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8748 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8749 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8750 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8751 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8752 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8753 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8754 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8755 (syms_of_w32font): Update for above changes.
8756
87572008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8758
8759 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8760 removed #if.
8761 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8762
87632008-06-26 Juanma Barranquero <lekktu@gmail.com>
8764 Eli Zaretskii <eliz@gnu.org>
8765
8766 * makefile.w32-in (LOCAL_FLAGS):
8767 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8768
8769 * sysdep.c (_spawnlp, _getpid):
8770 Declare with explicit _cdecl instead of _CRTAPI1.
8771
8772 * editfns.c (Fget_internal_run_time):
8773 Check for WINDOWSNT with #ifdef, not #if.
8774
87752008-06-26 Jason Rumney <jasonr@gnu.org>
8776
8777 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8778
8779 * w32term.c (x_draw_glyph_string_foreground)
8780 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8781 Use FONT_HANDLE macro.
8782 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8783
8784 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8785 (uniscribe_encode_char): Use FONT_HANDLE macro.
8786
8787 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8788 (w32font_text_extents): Use precast w32_font.
8789 (w32font_close): Free cached metrics.
8790 (w32font_open_internal): Allocate space for name on stack.
8791
87922008-06-26 Chong Yidong <cyd@stupidchicken.com>
8793
8794 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8795
87962008-06-26 Jason Rumney <jasonr@gnu.org>
8797
8798 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8799 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8800
88012008-06-26 Juanma Barranquero <lekktu@gmail.com>
8802
8803 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8804
88052008-06-26 Jason Rumney <jasonr@gnu.org>
8806
8807 * w32bdf.c, w32bdf.h: Remove obsolete files.
8808
8809 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8810
8811 * w32gui.h: Don't include w32bdf.h.
8812 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8813 Remove obsolete font support.
8814
8815 * w32font.h (struct w32font_info): Remove compat_w32_font.
8816 Add hfont member.
8817 (FONT_COMPAT): Remove obsolete macro.
8818
8819 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8820 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8821 (w32font_open_internal): Remove compat code. Set new hfont member.
8822 (Fx_select_font): Use new hfont member.
8823
8824 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8825 (uniscribe_encode_char): Use new hfont member.
8826
8827 * w32term.c (x_draw_glyph_string_foreground)
8828 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8829 (x_draw_glyph_string): Use metrics in w32font_info.
8830
88312008-06-26 Kenichi Handa <handa@m17n.org>
8832
8833 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8834
88352008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8836
8837 * unexnext.c:
8838 * m/ews4800.h:
8839 * m/hp9000s300.h:
8840 * m/ibm370aix.h:
8841 * m/mips-siemens.h:
8842 * m/ncr386.h:
8843 * m/next.h:
8844 * m/pmax.h:
8845 * m/powerpcle.h:
8846 * m/tandem-s2.h:
8847 * s/386bsd.h:
8848 * s/bsd386.h:
8849 * s/bsd4-1.h:
8850 * s/bsd4-2.h:
8851 * s/bsdos2-1.h:
8852 * s/bsdos2.h:
8853 * s/bsdos3.h:
8854 * s/bsdos4.h:
8855 * s/nextstep.h:
8856 * s/ultrix4-3.h:
8857 * s/usg5-0.h:
8858 * s/usg5-2-2.h:
8859 * s/usg5-2.h:
8860 * s/usg5-4-3.h:
8861 * s/ux4800.h:
8862 * s/uxpds.h:
8863 * s/uxpv.h: Remove support for obsolete systems.
8864 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8865 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8866 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8867 Remove, insert contents in s/aix4-2.h.
8868 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8869 * s/bsd4-3.h: Rename to ...
8870 * s/bsd-common.h: ... this.
8871 * data.c:
8872 * doc.c:
8873 * ecrt0.c:
8874 * emacs.c:
8875 * fileio.c:
8876 * floatfns.c:
8877 * keyboard.c:
8878 * mem-limits.h:
8879 * print.c:
8880 * process.c:
8881 * sysdep.c:
8882 * syssignal.h:
8883 * systty.h:
8884 * syswait.h:
8885 * term.c:
8886 * unexec.c:
8887 * unexelf.c:
8888 * unexhp9k800.c:
8889 * m/hp800.h:
8890 * m/ibmrs6000.h:
8891 * m/mips.h:
8892 * m/vax.h:
8893 * s/darwin.h:
8894 * s/freebsd.h:
8895 * s/gnu.h:
8896 * s/ms-w32.h:
8897 * s/msdos.h:
8898 * s/netbsd.h:
8899 * s/template.h: Remove references to obsolete variables.
8900
8901 * Makefile.in: Add dependencies for all unexec files.
8902 (admindir): Remove unused variable.
8903 (UNEXEC_SRC): Remove references.
8904
89052008-06-25 Chong Yidong <cyd@stupidchicken.com>
8906
8907 * xfns.c (x_default_font_parameter): If Xft is available, first
8908 try Monospace-12 for the default font.
8909
89102008-06-25 Jason Rumney <jasonr@gnu.org>
8911
8912 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8913
89142008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8915
8916 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8917
8918 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8919
89202008-06-25 Juanma Barranquero <lekktu@gmail.com>
8921
8922 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8923 <scroll-conservatively>: Fix typo in docstring.
8924
8925 * xselect.c (Fx_send_client_event): Doc fix.
8926
89272008-06-25 Kenichi Handa <handa@m17n.org>
8928
8929 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8930
8931 * font.c (font_parse_fcname): Remove unused variables.
8932 (font_sort_entites): Delete the arg SPEC. Caller changed.
8933 Fix for the case of ! best_only.
8934 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8935
8936 * lisp.h (Fstring_to_unibyte): EXFUN it.
8937
8938 * character.h (str_to_unibyte): Extern it.
8939
8940 * character.c (str_to_unibyte): New function.
8941
8942 * fns.c (Fstring_to_unibyte): New function.
8943 (syms_of_fns): Defsubr it.
8944
89452008-06-24 Kenichi Handa <handa@m17n.org>
8946
8947 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8948 DPI too.
8949 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8950
89512008-06-24 Andreas Schwab <schwab@suse.de>
8952
8953 * Makefile.in (${lispsource}loaddefs.el): Rename from
8954 ../lisp/loaddefs.el.
8955 (bootstrap-clean): Do what distclean does but don't remove
8956 Makefile.
8957 (distclean): Depend on bootstrap-clean and remove Makefile.
8958
89592008-06-24 Chong Yidong <cyd@stupidchicken.com>
8960
8961 * buffer.h (struct buffer): New member word_wrap.
8962
8963 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8964 word-wrap.
8965 (init_buffer_once): Initialize them.
8966
8967 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8968 line_wrap enum possessing three possible values.
8969
8970 * termopts.h: Replace truncate_partial_width_windows with
8971 Vtruncate_partial_width_windows.
8972
8973 * dispnew.c (direct_output_for_insert): Avoid direct output when
8974 inserting a space with word wrap on.
8975
8976 * indent.c (compute_motion): Obey integer values of
8977 truncate-partial-width-windows.
8978
8979 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8980 replacing truncate_partial_width_windows.
8981 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8982 truncate only if the window width is below that integer.
8983 (start_display, resize_mini_window, produce_stretch_glyph)
8984 (display_string, move_it_in_display_line_to): Use line_wrap.
8985 (back_to_previous_visible_line_start, reseat_1): Reset
8986 string_from_display_prop_p.
8987 (display_line): Extend default face to end of line when wrapping.
8988
89892008-06-24 Kim F. Storm <storm@cua.dk>
8990
8991 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8992 to wrap continued lines at word boundaries.
8993
89942008-06-24 Jason Rumney <jasonr@gnu.org>
8995
8996 * font.c (Ffont_face_attributes): Multiply pixel size before point
8997 conversion to avoid multiplying rounding error.
8998
89992008-06-23 Jason Rumney <jasonr@gnu.org>
9000
9001 * w32term.c (x_draw_glyph_string_background)
9002 (x_draw_glyph_string): Remove old bdf font code.
9003
9004 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9005
90062008-06-22 Kenichi Handa <handa@m17n.org>
9007
9008 * font.c (font_find_for_lface): Try the adstyle specified in
9009 the property of LFACE_FONT of LFACE (if any).
9010
90112008-06-21 Seiji Zenitani <zenitani@mac.com>
9012 Ryo Yoshitake <ryo@shiftmode.net>
9013
9014 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9015
90162008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9017
9018 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9019 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9020 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9021 (witness-emacs): Remove.
9022 (lisp, shortlisp): Move loaddefs.el earlier.
9023 (mostlyclean): Forget about witness-emacs.
9024
90252008-06-22 Glenn Morris <rgm@gnu.org>
9026
9027 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9028 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9029
90302008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9031
9032 * Makefile.in (PRECOMP): Remove.
9033 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9034 (witness-emacs): Run `compile-first'.
9035 (.el.elc): Use the new compile-onefile target.
9036
90372008-06-21 Kenichi Handa <handa@m17n.org>
9038
9039 * xftfont.c (xftfont_open): Handle QCembolden only when
9040 FC_EMBOLDEN is defined.
9041
90422008-06-21 Andreas Schwab <schwab@suse.de>
9043
9044 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9045 (.el.elc): Likewise.
9046
90472008-06-21 Miles Bader <miles@gnu.org>
9048
9049 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9050 build dir, not the lisp source dir.
9051
90522008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9053
9054 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9055 (bootstrapclean): Remove.
9056 (.el.elc): New rule.
9057 (PRECOMP): New var.
9058 (../lisp/subdirs.el): Remove.
9059 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9060 (witness-emacs): New target.
9061 (mostlyclean): Remove witness-emacs as well.
9062 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9063 Add witness-emacs dependency.
9064
90652008-06-20 Chong Yidong <cyd@stupidchicken.com>
9066
9067 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9068 defined by the font.
9069
90702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9071
9072 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9073 (bootstrap-clean): New target that keeps TAGS around.
9074 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9075 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9076
90772008-06-20 Jason Rumney <jasonr@gnu.org>
9078
9079 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9080 Remove obsolete font code.
9081
9082 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9083 to determine language support.
9084
90852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9086
9087 * sysdep.c (cfsetspeed): New fun extracted from the code.
9088 (cfmakeraw): Move before first use.
9089
90902008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9091
9092 * sysdep.c (cfmakeraw): Provide fallback implementation.
9093 (serial_configure): Provide fallback implementation of cfsetspeed.
9094
90952008-06-20 Kenichi Handa <handa@m17n.org>
9096
9097 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9098 the pattern.
9099
9100 * fontset.c (fontset_from_font): Copy font_spec before changing
9101 the elements.
9102
9103 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9104
91052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9106
9107 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9108 for explicit `font' parameters.
9109
9110 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9111
91122008-06-19 Kenichi Handa <handa@m17n.org>
9113
9114 * frame.c: Include <ctype.h>.
9115 (x_set_font_backend): Allow spacing characters in the X resource
9116 for FontBackend.
9117
91182008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 * w32fns.c, xfns.c (Qfont_param): New var.
9121 (syms_of_w32fns): Initialize it.
9122 (x_default_font_parameter): Record explicit `font' into
9123 `font-parameter'.
9124
91252008-06-18 Kenichi Handa <handa@m17n.org>
9126
9127 * font.c (font_parse_xlfd): Fix previous change.
9128 (font_parse_fcname): Don't use :fc-unknown-spec.
9129 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9130 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9131 (font_add_log): Prepend the driver name to the resulting fonts.
9132
9133 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9134 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9135 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9136
9137 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9138 (QCembolden): New variables.
9139 (syms_of_xftfont): DEFSYM them.
9140 (xftfont_open): Call XftFontMatch. Don't trust the result of
9141 XftTextExtents8 if the pixel_size is less than 5.
9142
91432008-06-18 Andreas Schwab <schwab@suse.de>
9144
9145 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9146 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9147
91482008-06-18 Jason Rumney <jasonr@gnu.org>
9149
9150 * w32font.c (w32font_list, w32font_match): Add logging.
9151
9152 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9153
91542008-06-17 Chong Yidong <cyd@stupidchicken.com>
9155
9156 * font.c (font_parse_fcname): Store divider characters for
9157 unknown-spec list. For known key symbols, intern using correct
9158 symbol name.
9159
91602008-06-17 Kenichi Handa <handa@m17n.org>
9161
9162 * xfaces.c (realize_default_face): If the frame is not on window
9163 system, set the fontset of face to nil.
9164
91652008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9166
9167 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9168
91692008-06-16 Juanma Barranquero <lekktu@gmail.com>
9170
9171 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9172 (build_font_name_from_vector): Delete externs.
9173
9174 * xfaces.c (struct font_name): Don't declare.
9175
91762008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9177
9178 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9179
91802008-06-16 Chong Yidong <cyd@stupidchicken.com>
9181
9182 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9183
91842008-06-16 Juanma Barranquero <lekktu@gmail.com>
9185
9186 * font.c (Ffont_spec): Fix usage in docstring.
9187 (Ffont_face_attributes): Doc fix.
9188
91892008-06-16 Andreas Schwab <schwab@suse.de>
9190
9191 * font.c (Ffont_face_attributes): Fix definition.
9192
91932008-06-16 Jason Rumney <jasonr@gnu.org>
9194
9195 * font.h (font_style_symbolic_from_value): Remove.
9196
9197 * font.c (font_style_symbolic_from_value): Remove.
9198 (font_style_symbolic): Revert to pre 2008-06-13 version.
9199
9200 * w32font.c (w32_to_fc_weight): New function.
9201 (w32font_full_name, logfont_to_fcname): Use it.
9202
92032008-06-16 Kenichi Handa <handa@m17n.org>
9204
9205 * font.c (font_check_object): Delete it.
9206 (font_clear_cache): Check if a font-object is alive.
9207 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9208 font-object to nil.
9209 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9210 (font_at): Don't call font_check_object.
9211 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9212
92132008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9214
9215 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9216
92172008-06-16 Chong Yidong <cyd@stupidchicken.com>
9218
9219 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9220
92212008-06-15 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * font.c (font_parse_fcname): Only one decimal point.
9224 (font_unparse_fcname): Handle data in family and foundry indices
9225 as symbols, not strings.
9226 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9227
9228 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9229
9230 * font.h (font_unparse_gtkname): Add prototype.
9231
92322008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9233
9234 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9235
92362008-06-15 Andreas Schwab <schwab@suse.de>
9237
9238 * font.c (font_update_drivers): Fix crash when no drivers match.
9239
92402008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9241
9242 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9243 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9244
92452008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9246
9247 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9248
92492008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9250
9251 * process.c (Fserial_process_configure, Fprocess_send_eof):
9252 Use EQ to compare Lisp_Objects.
9253
92542008-06-13 Jason Rumney <jasonr@gnu.org>
9255
9256 * w32fns.c (Fw32_select_font): Remove old font API function.
9257
9258 * w32font.c (logfont_to_fcname): New function.
9259 (Fx_select_font): New font dialog function compatible with
9260 GTK/fontconfig version.
9261
9262 * font.c (font_style_symbolic_from_value): New function.
9263 (font_style_symbolic): Use it.
9264
9265 * font.h (font_style_symbolic_from_value): Declare new function.
9266
92672008-06-13 Juanma Barranquero <lekktu@gmail.com>
9268
9269 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9270 <font-width-table>: Fix typos in docstrings.
9271
92722008-06-13 Daniel Engeler <engeler@gmail.com>
9273
9274 These changes add serial port access.
9275 * process.c: Add HAVE_SERIAL.
9276 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9277 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9278 (list_processes_1, select_wrapper, Fstop_process)
9279 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9280 (status_notify): Modify to handle serial processes.
9281 [HAVE_SERIAL] (Fserial_process_configure)
9282 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9283 New functions.
9284 * process.h (struct Lisp_Process): Add `type'.
9285 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9286 New functions.
9287 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9288 serial ports.
b71ac3dd 9289 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9290 * w32.h: Add FILE_SERIAL.
9291 (struct _child_process): Add ovl_read, ovl_write.
9292
92932008-06-13 Kenichi Handa <handa@m17n.org>
9294
9295 * dispextern.h (enum lface_attribute_index): New member
9296 LFACE_FOUNDRY_INDEX.
9297
9298 * font.c (font_score): Delete arg alternate_families. Check only
9299 weight, slant, width, and size. Ignore the difference of alias
9300 style symbols.
9301 (font_sort_entites): Adjust for the above change. Reflect the
9302 order of font-driver to scores.
9303 (font_list_entities): Don't check alternate_familes here.
9304 (font_clear_prop): Handle foundry.
9305 (font_update_lface): Don't parse "foundry-family" form here.
9306 Handle FONT_FOUNDRY_INDEX.
9307 (font_find_for_lface): Likewise. Handle alternate families here.
9308 If registry is nil, try iso8859-1 and ascii-0.
9309 (font_open_for_lface): Pay attention to size in ENTITY.
9310 (font_open_by_name): Simplify by calling font_load_for_lface.
9311 (free_font_driver_list): Delete it.
9312 (font_update_drivers): Preserve the order of backends.
9313 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9314 of font_score and font_sort_entites.
9315 (font_update_sort_order): Likewise.
9316
9317 * xfaces.c (LFACE_FOUNDRY): New macro.
9318 (check_lface_attrs): Check foundry.
9319 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9320 (merge_face_vectors): Check foundry.
9321 (merge_face_ref): Likewise.
9322 (Finternal_set_lisp_face_attribute): Likewise.
9323 (x_update_menu_appearance): Likewise.
9324 (Finternal_get_lisp_face_attribute): Likewise.
9325 (lface_hash): Likewise.
9326 (lface_same_font_attributes_p): Likewise.
9327 (x_supports_face_attributes_p): Likewise.
9328 (tty_supports_face_attributes_p): Likewise.
9329 (Finternal_set_alternative_font_family_alist): Intern strings.
9330 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9331 (realize_default_face): Set LFACE_FOUNDRY (lface).
9332
9333 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9334 font-driver at first.
9335
9336 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9337
93382008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9339
9340 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9341
93422008-06-12 Jim Meyering <meyering@redhat.com>
9343
9344 Make unexec_free handle NULL the same way free does.
9345 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9346
93472008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9348
9349 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9350 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9351 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9352 (WEAK_ALIAS): Simplify.
9353 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9354 when searching a unibyte buffer.
9355
93562008-06-12 Chong Yidong <cyd@stupidchicken.com>
9357
9358 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9359
93602008-06-12 Juanma Barranquero <lekktu@gmail.com>
9361
9362 * w32font.c: Include ctype.h.
9363
93642008-06-11 Jason Rumney <jasonr@gnu.org>
9365
9366 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9367 misreported as space.
9368 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9369 as aliases for registry iso10646-1.
9370
93712008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 * buffer.c (clone_per_buffer_values): Skip `name'.
9374
93752008-06-11 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * font.c (font_parse_fcname): Fix last change; accept decimal
9378 points in font size.
9379
93802008-06-10 Jason Rumney <jasonr@gnu.org>
9381
9382 * w32uniscribe.c (add_opentype_font_name_to_list):
9383 Skip non unicode fonts.
9384
93852008-06-10 Chong Yidong <cyd@stupidchicken.com>
9386
9387 * xfns.c (Fx_font_dialog): New function.
9388
9389 * gtkutil.c (xg_dialog_response_cb): Rename from
9390 xg_file_response_callback.
9391 (pop_down_dialog): Rename from pop_down_file_dialog.
9392 (xg_get_file_name): Callers changed.
9393 (xg_get_font_name): New function.
9394
9395 * gtkutil.h (xg_get_font_name): Insert prototype.
9396
93972008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9398
9399 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9400 x_underline_minimum_display_offset.
9401 (syms_of_xdisp): Declare it here rather than in xterm.c.
9402 * dispextern.h (underline_minimum_offset): Declare it.
9403 * w32term.c (x_draw_glyph_string): Use it.
9404 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9405 (syms_of_xterm): Don't declare it any more.
9406 (x_draw_glyph_string): Adjust to the new name.
9407
8719abec 94082008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9409
9410 * xterm.c (x_underline_minimum_display_offset): New var.
9411 (x_draw_glyph_string): Use it.
9412 (syms_of_xterm): Declare it.
9413
94142008-06-10 Chong Yidong <cyd@stupidchicken.com>
9415
9416 * font.c (font_parse_fcname): Accept GTK-style font names too.
9417
94182008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9419
9420 * dired.c (file_name_completion): Don't return t if the match is exact
9421 but with different capitalization.
9422 * minibuf.c (Ftry_completion): Simplify.
9423
9424 * window.c (Vwindow_point_insertion_type): New var.
9425 (set_window_buffer): Use it.
9426 (syms_of_window): Init and export it to Lisp.
9427
94282008-06-10 Kenichi Handa <handa@m17n.org>
9429
9430 * font.h (font_intern_prop): Prototype adjusted.
9431
9432 * font.c (font_intern_prop): New arg force_symbol.
9433 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9434 Adjust for the change of font_intern_prop.
9435
9436 * ftfont.c (ftfont_pattern_entity):
9437 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9438 (w32_registry):
9439 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9440 the change of font_intern_prop.
9441
94422008-06-09 Juanma Barranquero <lekktu@gmail.com>
9443
9444 * w32menu.c (digest_single_submenu): Declare extern.
9445
94462008-06-09 Jason Rumney <jasonr@gnu.org>
9447
9448 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9449
9450 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9451 (parse_single_submenu): Remove.
9452 (digest_single_submenu): Remove.
9453 (syms_of_w32menu): Don't initialise variables that have moved
9454 to menu.c.
9455 (set_frame_menubar): Sync with version in xmenu.c.
9456 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9457
9458 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9459 Make static again.
9460
94612008-06-09 Jason Rumney <jasonr@gnu.org>
9462
9463 Changes to w32 files related to the move of common menu code
9464 to menu.c on 2008-06-08 by Chong Yidong.
9465
9466 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9467 defs to w32gui.h.
9468 (single_keymap_panes, push_menu_item, push_menu_pane):
9469 Make globally visible.
9470
9471 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9472 (local_free, malloc_widget_value, free_widget_value)
9473 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9474 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9475 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9476 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9477 (menu_items, menu_items_allocated, menu_items_used)
9478 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9479 (init_menu_items, finish_menu_items, discard_menu_items)
9480 (grow_menu_items, push_submenu_start, push_submenu_end)
9481 (push_left_right_boundary, push_menu_pane, push_menu_item)
9482 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9483 (free_menubar_widget_tree_value, parse_single_submenu)
9484 (update_submenu_strings): Remove functions.
9485 (xmalloc_widget_value): Remove and declare extern.
9486
9487 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9488 (OBJ1): Build it.
9489
9490 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9491 (local_heap, local_alloc, local_free, malloc_widget_value)
9492 (free_widget_value): Define here.
9493
94942008-06-09 Kenichi Handa <handa@m17n.org>
9495
9496 * font.h (Qascii_0): Extern it.
9497
9498 * font.c (Qascii_0): New variable.
9499 (syms_of_font): DEFSYM it.
9500 (font_open_by_name): If the registry "iso8859-1" fails, try also
9501 "ascii-0".
9502
9503 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9504
95052008-06-08 Kenichi Handa <handa@m17n.org>
9506
9507 * .gdbinit (xfont): New command.
9508
95092008-06-08 Andreas Schwab <schwab@suse.de>
9510
9511 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9512 * Makefile.in (menu.o): Update dependencies.
9513
9514 * Makefile.in (obj): Always add menu.o.
9515 * emacs.c (main): Always call syms_of_menu.
9516 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9517
95182008-06-08 Chong Yidong <cyd@stupidchicken.com>
9519
9520 * Makefile.in: Compile menu.c.
9521
9522 * lisp.h: Declare syms_of_menu.
9523
9524 * emacs.c (main): Call syms_of_menu.
9525
9526 * keyboard.h: Relocate platform-independent menu definitions from
9527 xmenu.c.
9528
9529 * menu.c: New file. Relocate platform-independent menu
9530 definitions from xmenu.c. Suggested by Adrian Robert.
9531
9532 * xmenu.c: Remove platform-independent menu definitions.
9533 (menu_items menu_items_inuse, menu_items_allocated)
9534 (menu_items_used, menu_items_n_panes)
9535 (menu_items_submenu_depth): Move to keyboard.h.
9536 (init_menu_items, finish_menu_items, unuse_menu_items)
9537 (discard_menu_items, restore_menu_items, save_menu_items)
9538 (grow_menu_items, push_submenu_start, push_submenu_end)
9539 (push_left_right_boundary, push_menu_pane, push_menu_item)
9540 (keymap_panes, single_keymap_panes, single_menu_item)
9541 (list_of_panes, list_of_items, find_and_call_menu_selection)
9542 (xmalloc_widget_value, free_menubar_widget_value_tree)
9543 (parse_single_submenu, digest_single_submenu)
9544 (update_submenu_strings): Move to menu.c.
9545
95462008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9547
9548 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9549
95502008-06-06 Miles Bader <miles@gnu.org>
9551
9552 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9553 face, not frame default.
9554
95552008-06-05 Martin Rudalics <rudalics@gmx.at>
9556
9557 * window.c (pop_up_windows, pop_up_frames)
9558 (display_buffer_reuse_frames, Vpop_up_frame_function)
9559 (Vdisplay_buffer_function, Veven_window_heights)
9560 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9561 (Vspecial_display_function, Vsame_window_buffer_names)
9562 (Vsame_window_regexps, split_height_threshold)
9563 (Vsplit_window_preferred_function): Move those vars to window.el.
9564 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9565 (Fdisplay_buffer): Move those functions to window.el.
9566 (syms_of_window): Remove corresponding declarations.
9567 (display_buffer): New function.
9568 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9569 * dispnew.c (Flast_nonminibuf_frame): New function.
9570 * buffer.c (Fpop_to_buffer): Move to window.el.
9571
95722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9573
9574 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9575
95762008-06-05 Kenichi Handa <handa@m17n.org>
9577
9578 * coding.c (detect_coding): Fix previous change.
9579 (detect_coding_system): Likewise.
9580
95812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9582
9583 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9584
9585 * keymap.c (Vminibuffer_local_filename_must_match_map):
9586 Rename from Vminibuffer_local_must_match_filename_map.
9587 (syms_of_keymap):
9588 * minibuf.c (Fcompleting_read): Adjust accordingly.
9589 * commands.h: Rename declaration as well.
9590
95912008-06-05 Kenichi Handa <handa@m17n.org>
9592
9593 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9594 family name.
9595 (Ffont_put): Likewise.
9596
9597 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9598 current font-spec.
9599
9600 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9601 is unspecified.
9602
9603 * xfaces.c (realize_x_face): If the font-related face attributes
9604 are the same as those of default face, realize a new fontset from
9605 default->fontset.
9606 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9607
96082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9609
9610 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9611 (move_it_in_display_line): New wrapper.
9612
9613 * window.c (window_scroll_pixel_based_preserve_x)
9614 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9615 (window_scroll_pixel_based, window_scroll_line_based):
9616 Use them to preserve column positions.
9617 (syms_of_window): Initialize them.
9618
9619 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9620 (HPOS . VPOS) pair.
9621
9622 * dispextern.h (move_it_in_display_line): Declare.
9623
96242008-06-05 Juanma Barranquero <lekktu@gmail.com>
9625
9626 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9627 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9628 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9629
96302008-06-04 Juanma Barranquero <lekktu@gmail.com>
9631
9632 * window.c (Fset_window_parameter): Doc fix.
9633 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9634
96352008-06-04 Joakim Verona <joakim@verona.se>
9636
9637 * window.h (struct window): Add new member window_parameters.
9638
9639 * window.c (Fwindow_parameters, Fwindow_parameter)
9640 (Fset_window_parameter): New defuns.
9641 (syms_of_window): Defsubr the new defuns.
9642 (make_window): Initialize window_parameters to nil.
9643
96442008-06-04 John Paul Wallington <jpw@pobox.com>
9645
9646 * eval.c (Fdefmacro): Doc fix.
9647
96482008-06-04 Kenichi Handa <handa@m17n.org>
9649
9650 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9651 Be sure to call setup_coding_system when we find a proper coding system.
9652 (detect_coding_system): Fix handling of coding->head_ascii.
9653
96542008-06-03 Andreas Schwab <schwab@suse.de>
9655
9656 * font.c (font_prop_validate_spacing): Fix last change.
9657
96582008-06-03 Kenichi Handa <handa@m17n.org>
9659
9660 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9661 (font_parse_fcname): Fix handling of unknown key.
9662
9663 * xfont.c (xfont_list): Try an alias.
9664
9665 * charset.c (char_charset): Return NULL if the arg charset_list is
9666 specified and C doesn't belong to any of them.
9667
96682008-06-02 Chip Coldwell <coldwell@redhat.com>
9669
9670 * font.c (font_pixel_size): Don't take cdr of an integer.
9671
96722008-06-02 Jim Meyering <meyering@redhat.com>
9673
9674 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9675 * alloc.c (xfree): Return right away for a NULL arg.
9676 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9677 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9678 * mac.c (create_apple_event_from_event_ref): Likewise.
9679 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9680 Likewise.
9681 * doprnt.c (doprnt1): Likewise.
9682 * frame.c (frame): Likewise.
9683 * keyboard.c (wipe_kboard): Likewise.
9684 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9685 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9686 * term.c (tty_default_color_capabilities, maybe_fatal)
9687 (delete_tty): Likewise.
9688 * w16select.c (string): Likewise.
9689 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9690 * w32bdf.c (w32_free_bdf_font): Likewise.
9691 * w32fns.c (w32_unload_font): Likewise.
9692 * w32font.c (w32font_close): Likewise.
9693 * window.c (size_window): Likewise.
9694 * xselect.c (receive_incremental_selection): Likewise.
9695 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9696 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9697 * w32.c (stat): Likewise.
9698
9699 Remove useless if-before-free tests.
9700 * editfns.c (Fset_time_zone_rule): Likewise.
9701 * lread.c (nosuffix): Likewise.
9702 * ralloc.c (get_bloc): Likewise.
9703 * regex.c (reg_free): Likewise.
9704 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9705 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9706 * xsmfns.c (smc_save_yourself_CB): Likewise.
9707
97082008-06-02 Kenichi Handa <handa@m17n.org>
9709
9710 * font.c (font_find_for_lface): Handle float font size.
9711 (font_open_for_lface): Likewise.
9712
9713 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9714 comparing the properties.
9715
97162008-06-01 Jason Rumney <jasonr@gnu.org>
9717
9718 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9719 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9720 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9721 Don't add empty script list.
9722 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9723
97242008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9725
9726 * Makefile.in (dot, dotdot): Remove, update users.
9727 ".." has been used elsewhere in the file for a long time.
9728 (LIBXT_STATIC): Remove conditional based on unused variable.
9729
97302008-06-01 Miles Bader <miles@gnu.org>
9731
9732 * xfaces.c (Vface_remapping_alist): New variable.
9733 (syms_of_xfaces): Initialize it.
9734 (enum named_merge_point_kind): New type.
9735 (struct named_merge_point): Add `named_merge_point_kind' field.
9736 (push_named_merge_point): Make cycle detection respect different
9737 named-merge-point kinds.
9738 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9739 Remove face-name alias resolution.
9740 (lface_from_face_name): New definition using
9741 `lface_from_face_name_no_resolve'.
9742 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9743 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9744 (get_lface_attributes): New definition that layers face-remapping on
9745 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9746 (lookup_basic_face): New function.
9747 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9748 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9749 `get_lface_attributes'.
9750 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9751 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9752 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9753
9754 * xdisp.c (init_iterator): Pass base_face_id through
9755 `lookup_basic_face' when we actually use it as a face-id.
9756 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9757 DEFAULT_FACE_ID.
9758
9759 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9760 lookup the initial face-id.
9761
9762 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9763
97642008-06-01 Juanma Barranquero <lekktu@gmail.com>
9765
9766 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9767 (Fremove_text_properties): Fix typos in docstrings.
9768
97692008-05-31 Kenichi Handa <handa@m17n.org>
9770
9771 * font.c (font_list_entities): Fix the car part of data to be
9772 stored in the cache.
9773
9774 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9775
97762008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9777
9778 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9779 Add a `test' argument so another predicate than `equal' can be used.
9780 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9781 (map_char_table): Remove unused vars `c' and `i'.
9782 * lisp.h (Foptimize_char_table): Adjust declaration.
9783 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9784
97852008-05-30 Kenichi Handa <handa@m17n.org>
9786
9787 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9788 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9789 defined.
9790
97912008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9792
9793 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9794 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9795 frame-local settings for the same variable.
9796
97972008-05-30 Kenichi Handa <handa@m17n.org>
9798
9799 * fontset.c (Ffont_info): Move to font.c.
9800 (syms_of_fontset): Delete defsubr of Sfont_info.
9801
9802 * font.c (font_style_to_value, font_score): Delete casting of the
9803 args to xstcasecmp.
9804 (register_font_driver): Increment num_font_drivers only when
9805 registering the driver globally.
9806 (Ffont_info): Move from fontset.c. Handle a font object too.
9807 (syms_of_font): Defsubr Sfont_info.
9808
98092008-05-29 Kenichi Handa <handa@m17n.org>
9810
9811 * coding.h (enum define_coding_utf8_arg_index): New enum.
9812 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9813 coding_attr_utf_bom.
9814 (enum utf_bom_type): Rename from utf_16_bom_type.
9815 (struct utf_16_spec): Adjust for the above change.
9816 (struct coding_system): Add utf_8_bom in `spec' union.
9817
9818 * coding.c (CODING_UTF_8_BOM): New macro.
9819 (enum coding_category): Delete coding_category_utf_8, add
9820 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9821 coding_category_utf_8_sig.
9822 (CATEGORY_MASK_UTF_8): Delete it.
9823 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9824 (CATEGORY_MASK_UTF_8_SIG): New macros.
9825 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9826 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9827 CATEGORY_MASK_UTF_8_SIG.
9828 (CATEGORY_MASK_UTF_8): New macro.
9829 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9830 (detect_coding_utf_8): Check BOM.
9831 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9832 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9833 (encode_coding_utf_16): Likewise.
9834 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9835 (detect_coding, detect_coding_system): Handle utf-8-auto.
9836 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9837 (syms_of_coding): Fix setting up of Vcoding_category_table.
9838
98392008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9840
9841 * process.c (Faccept_process_output): If `millisec' is non-nil,
9842 `seconds' default to 0.
9843 (wait_reading_process_output): Also return non-nil if we read output
9844 from a non-running process.
9845
98462008-05-29 Jason Rumney <jasonr@gnu.org>
9847
9848 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9849 `raster' specified.
9850 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9851 in the uniscribe backend, but disallow any font that has no
9852 unicode subrange support.
9853
98542008-05-29 Juanma Barranquero <lekktu@gmail.com>
9855
9856 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9857 Fix typos in docstrings.
9858
98592008-05-29 Kenichi Handa <handa@m17n.org>
9860
9861 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9862 (Fx_family_fonts): Set frame correctly.
9863
98642008-05-28 Jason Rumney <jasonr@gnu.org>
9865
9866 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9867
98682008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9869
9870 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9871 calling build_annotations.
9872
98732008-05-28 Juanma Barranquero <lekktu@gmail.com>
9874
9875 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9876 (Fencode_coding_string):
9877 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9878 <latin-extra-code-table>: Fix typos in docstrings.
9879 (syms_of_coding) <coding-system-alist>: Doc fix.
9880 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9881
98822008-05-28 Kenichi Handa <handa@m17n.org>
9883
9884 * fontset.c (Ffont_info): Don't call font_close_object.
9885
9886 * font.c (font_parse_family_registry): Use Ffont_put to validate
9887 foundry and family.
9888 (font_delete_unmatched): Don't check spacing.
9889 (font_list_entities): Add spacing to the spec to list fonts.
9890
9891 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9892 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9893
9894 * coding.c (encode_coding_raw_text): Fix previous change.
9895 (encode_coding_object): When the dst_object is a buffer and is
9896 different from src_object, move gap to PT.
9897
98982008-05-27 Chong Yidong <cyd@stupidchicken.com>
9899
9900 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9901
99022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9903
9904 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9905 all branches. Compute it differently.
9906
9907 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9908
99092008-05-27 Juanma Barranquero <lekktu@gmail.com>
9910
9911 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9912 into "else if () ... else ...".
9913
99142008-05-27 Jason Rumney <jasonr@gnu.org>
9915
9916 * w32font.c (w32font_open_internal): Determine if glyph indices
9917 are likely to work here.
9918
99192008-05-27 Chong Yidong <cyd@stupidchicken.com>
9920
9921 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9922 draw overlap glyphs with appropriate highlighting.
9923
99242008-05-27 Kenichi Handa <handa@m17n.org>
9925
9926 * xfont.c (xfont_open): Fix calculation of font->average_width.
9927
99282008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9929
9930 * casefiddle.c (casify_object): Try to guess better whether the
9931 argument is a byte or a char.
9932
99332008-05-26 Andreas Schwab <schwab@suse.de>
9934
9935 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9936 Always send multiples of format size.
9937
9938 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9939
99402008-05-26 Jason Rumney <jasonr@gnu.org>
9941
9942 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9943 (compute_metrics): Don't set failure if we just cleared the cache.
9944 (w32_weight_table): Remove unused variable.
9945 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9946 backwards compatibility.
9947
99482008-05-25 Kenichi Handa <handa@m17n.org>
9949
9950 * w32term.c (x_draw_glyph_string):
9951 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9952
9953 * xfaces.c: Delete unused function prototypes.
9954 (xstrlwr, font_frame): Delete them.
9955 (clear_face_cache): Delete unused variable.
9956
9957 * xftfont.c (xftfont_open): Delete unused variable.
9958 If underline_thickness is not 1, adjust underline_position.
9959
9960 * ftxfont.c (ftxfont_open): Delete unused variable.
9961
9962 * fontset.c (face_for_char): Optimize for the case of no charset
9963 property.
9964
9965 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9966 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9967 (otf_open, font_otf_capability, generate_otf_features)
9968 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9969 Comment out by surrounding "#if 0" and "#endif" for the moment.
9970 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9971 (syms_of_font): Codes for accessing above commented out.
9972
99732008-05-24 Eli Zaretskii <eliz@gnu.org>
9974
9975 * w32proc.c: Include dispextern.h.
9976
9977 * w32.c: Include dispextern.h.
9978
99792008-05-23 Juanma Barranquero <lekktu@gmail.com>
9980
9981 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9982 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9983 Fix typos in docstrings.
9984
99852008-05-23 Jason Rumney <jasonr@gnu.org>
9986
9987 * xsmfns.c: Remove includes that are already included by config.h.
9988
99892008-05-23 Kenichi Handa <handa@m17n.org>
9990
9991 * charset.c (Qemacs, charset_emacs): New variables.
9992 (char_charset): Fix for non-Unicode characters.
9993 (syms_of_charset): Define charset_emacs.
9994
9995 * w32term.c (x_draw_glyph_string): Be sure to update
9996 s->underline_thickness and s->underline_position. Be sure to draw
9997 underline within the current line area.
9998
9999 * xterm.c (x_draw_glyph_string): Be sure to update
10000 s->underline_thickness and s->underline_position. Be sure to draw
10001 underline within the current line area.
10002
10003 * fontset.c: Delete unused variables and add casting for char *
10004 throughout the file.
10005 (fontset_font): Try the fallback fonts of the current fontset
10006 before consulting the default fontset.
10007
10008 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10009
10010 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10011
100122008-05-22 Jason Rumney <jasonr@gnu.org>
10013
10014 * font.c: Don't include strings.h.
10015
10016 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10017
10018 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10019 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10020 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10021 to call xstrcasecmp.
10022
10023 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10024
10025 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10026
10027 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10028
10029 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10030
100312008-05-22 Kenichi Handa <handa@m17n.org>
10032
10033 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10034
10035 * font.c (font_prop_validate_style): Adjust for the format
10036 change of font_style_table.
10037
10038 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10039 two args.
10040
10041 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10042 two args.
10043
100442008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10045
10046 * minibuf.c (keys_of_minibuf): Delete.
10047 * lisp.h (keys_of_minibuf): Delete.
10048 * emacs.c (main): Don't call keys_of_minibuf.
10049
100502008-05-22 Kenichi Handa <handa@m17n.org>
10051
10052 * ftfont.c (ftfont_resolve_generic_family): Rename from
10053 ftfont_list_generic_family. Return a single family for each
10054 generic family.
10055 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10056 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10057 Call font_add_log.
10058 (ftfont_match): Call font_add_log.
10059
10060 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10061 (FONT_DEBUG): Define it.
10062 (font_add_log): Extern it.
10063 (font_assert): Rename from xassert.
10064
10065 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10066 (xfont_list_family): Call font_add_log.
10067 (xfont_match): Likewise.
10068 (memq_no_quit): Delete.
10069
10070 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10071 call of Ffont_xlfd_name.
10072
10073 * xfaces.c (struct table_entry, slant_table, weight_table)
10074 (swidth_table): Move to font.c.
10075
10076 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10077 xassert are changed to font_assert. Delete many unused variables.
10078 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10079 New variables.
10080 (struct table_entry): Move from xfaces.c and modified.
10081 (weight_table, slant_table, width_table): Move from xfaces.c and
10082 contents adjusted for the change of struct table_entry.
10083 (font_style_to_value, font_style_symbolic): Adjust for the
10084 format change of font_style_table.
10085 (font_parse_family_registry): Don't overwrite existing foundry and
10086 family of font_spec.
10087 (font_score): Fix calculation of diff for sizes.
10088 (font_sort_entites): Call font_add_log.
10089 (font_delete_unmatched): Return a newly created list.
10090 (font_list_entities): Fix previous change. Call font_add_log.
10091 (font_matching_entity, font_open_entity, font_close_entity):
10092 Call font_add_log.
10093 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10094 (Finternal_set_font_style_table): Delete.
10095 (BUILD_STYLE_TABLE): New macro.
10096 (build_style_table): New function.
10097 (Vfont_log, font_log_env_checked): New variables.
10098 (font_add_log): New function.
10099 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10100 Declare Lisp variables "font-weight-table", "font-slant-table",
10101 "font-width-table", and "font-log". Initialize font_style_table.
10102
101032008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10104
10105 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10106
101072008-05-21 Seiji Zenitani <zenitani@mac.com>
10108 Ryo Yoshitake <ryo@shiftmode.net>
10109
10110 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10111 (Vframe_alpha_lower_limit): New variable.
10112 (x_set_alpha): New function.
10113
10114 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10115
10116 * xfns.c (x-create-frame, Qalpha):
10117 Initialize the frame parameter `alpha'.
10118 * xterm.c (OPAQUE, OPACITY): New.
10119 (x_set_frame_alpha): New function.
10120 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10121
10122 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10123 * w32fns.c (w32_frame_parm_handlers): Likewise.
10124
101252008-05-20 Jason Rumney <jasonr@gnu.org>
10126
10127 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10128 truetype fonts to opentype list.
10129
101302008-05-20 Juanma Barranquero <lekktu@gmail.com>
10131
10132 * fontset.c (Ffontset_info): Doc fix.
10133 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10134 <ignore-relative-composition>: Fix typos in docstrings.
10135
10136 * font.c (syms-of-font) <font-encoding-alist>:
10137 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10138 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10139 (Ffont_otf_alternates): Doc fixes.
10140
101412008-05-20 Kenichi Handa <handa@m17n.org>
10142
10143 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10144 font.h through out the file.
10145 (FONT_DRIVERS): Rename from FONTOBJ.
10146 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10147 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10148
10149 * emacs.c (main): Call syms_of_font unconditionally.
10150
10151 * font.h (find_font_encoding): Extern it.
10152
10153 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10154 fontset.c.
10155 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10156 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10157 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10158 only when HAVE_WINDOW_SYSTEM is defined.
10159 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10160 when HAVE_WINDOW_SYSTEM is defined.
10161
10162 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10163 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10164
10165 * xfaces.c: Include font.h unconditionally.
10166 (merge_face_ref, merge_face_vectors)
10167 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10168
101692008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10170
10171 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10172 indirect_variable.
10173 * eval.c (lisp_indirect_variable): New fun.
10174 (Fuser_variable_p): Use it.
10175
101762008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10177
10178 * lisp.h (indirect_variable):
10179 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10180 Use Lisp_Symbol pointers rather than Lisp_Object.
10181 Adjust callers.
10182 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10183 To this end, change calling-convention.
10184
10185 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10186 if some non-hidden buffers are selected by string&pred.
10187
101882008-05-19 Chong Yidong <cyd@stupidchicken.com>
10189
10190 * process.c (wait_reading_process_output): Always check status
10191 when in batch mode.
10192
101932008-05-19 Kenichi Handa <handa@m17n.org>
10194
10195 * font.c (font_list_entities): Fix handling of cache.
10196 (font_matching_entity): Likewise.
10197
10198 * ftfont.c (cs_iso8859_1): Delete.
10199 (ft_face_cache): New variable.
10200 (struct ftfont_info): New member fc_charset_idx.
10201 (ftfont_build_basic_charsets): Delete.
10202 (fc_charset_table): New variable.
10203 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10204 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10205 Callers changed.
10206 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10207 (ftfont_spec_pattern): New argument fc_charset_idx.
10208 Check registry more rigidly. Change callers.
10209 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10210 change of :font-entity property of the font.
10211
10212 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10213 property of the font.
10214
102152008-05-18 Juanma Barranquero <lekktu@gmail.com>
10216
10217 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10218 (Funencodable_char_position, Fcheck_coding_systems_region)
10219 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10220 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10221 (Ffind_operation_coding_system, Fset_coding_system_priority)
10222 (Fcoding_system_eol_type): Doc fixes.
10223
102242008-05-17 Glenn Morris <rgm@gnu.org>
10225
10226 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10227
102282008-05-16 Eli Zaretskii <eliz@gnu.org>
10229
10230 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10231 and st_gid.
10232
10233 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10234 HAVE_WINDOW_SYSTEM is not defined.
10235
10236 * xfaces.c (merge_face_ref, merge_face_vectors)
10237 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10238 HAVE_WINDOW_SYSTEM is defined.
10239 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10240
102412008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10242
10243 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10244
102452008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10246
10247 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10248
102492008-05-15 Kenichi Handa <handa@m17n.org>
10250
10251 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10252 preference.
10253
102542008-05-15 Glenn Morris <rgm@gnu.org>
10255
10256 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10257
102582008-05-15 Chong Yidong <cyd@stupidchicken.com>
10259
10260 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10261 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10262
10263 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10264
102652008-05-15 Kenichi Handa <handa@m17n.org>
10266
10267 * ftfont.c (ftfont_list): Downcase family name to check generic
10268 families.
10269
10270 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10271 font-spec for QCfont value.
10272
10273 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10274 buffer. Check the return value of it.
10275
102762008-05-14 Jason Rumney <jasonr@gnu.org>
10277
10278 * w32term.c (w32_get_glyph_overhangs): Remove.
10279 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10280
102812008-05-14 Kenichi Handa <handa@m17n.org>
10282
10283 * font.c (font_prop_validate): Make nil a valid value.
10284 (font_clear_cache): Check if the cached vector of entities is nil
10285 or not.
10286
102872008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10288
10289 * emacs.c (main_thread): Conditionalize on
10290 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10291 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10292
10293 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10294 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10295 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10296
102972008-05-14 Kenichi Handa <handa@m17n.org>
10298
10299 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10300 has no corresponding coding system.
10301
103022008-05-14 Jason Rumney <jasonr@gnu.org>
10303
10304 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10305
10306 * w32font.h (w32font_open_internal): Update declaration.
10307
10308 * w32font.c (w32font_open_internal): Change last argument from
10309 w32font_info struct to font object. Fill in font object from
10310 font_entity. Get Outline metrics if possible. Use them to
10311 calculate underline position and thickness. Use xlfd name as name
10312 property. Don't set codepage.
10313 (w32font_open): Pass font_object to w32font_open_internal. Don't
10314 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10315 (w32font_draw): Use s->font.
10316 (clear_cached_metrics): Don't clear non-existent blocks.
10317
10318 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10319 font was not found.
10320 (x_draw_glyph_string): Use underline position and thickness from font.
10321
10322 * w32uniscribe.c (uniscribe_open): Pass font_object to
10323 w32font_open_internal.
10324
103252008-05-14 Kenichi Handa <handa@m17n.org>
10326
10327 These changes are to delete all legacy font-handling codes, and
10328 make Emacs use only font-backends.
10329
10330 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10331 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10332
10333 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10334
10335 * charset.h (Vcharset_non_preferred_head)
10336 (Vcurrent_iso639_language): Extern them.
10337
10338 * charset.c (Vcharset_non_preferred_head): New variable.
10339 (Vcurrent_iso639_language): New variable.
10340 (syms_of_charset): Declare it as a Lisp variable.
10341 (char_charset): Don't check non preferred charsets. As a last
10342 resort, return charset_unicode.
10343 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10344
10345 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10346 conditionals. Don't check enable_font_backend. Delete all codes
10347 used only when USE_FONT_BACKEND is not defined.
10348
10349 * dispextern.h (struct glyph_string): Change type of `font' to
10350 `struct font *'.
10351 (struct glyph_string): New member underline_position and
10352 underline_thickness.
10353 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10354 (struct face): Change type of `font' to `struct font *'. Remove
10355 members `font_name', `font_info_id'.
10356 (per_char_metric, encode_char): Delete externs.
10357 (calc_pixel_width_or_height): Adjust the prototype.
10358
10359 * emacs.c (enable_font_backend): Delete extern.
10360 (main): Don't set enable_font_backend. Don't check the command
10361 line argument "-disable-font-backend".
10362
10363 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10364 (enum font_property_index): New members FONT_DPI_INDEX,
10365 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10366 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10367 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10368 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10369 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10370 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10371 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10372 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10373 (struct font_spec, struct font_entity): New structs.
10374 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10375 (struct font): Many members from old "struct font_info" moved to
10376 here. Members font and entity deleted.
10377 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10378 the new font-related objects.
10379 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10380 (CHECK_FONT_GET_OBJECT): Likewise.
10381 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10382 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10383 (struct font_driver): New members case_sensitive anc check. Type
10384 of the member list and open changed.
10385 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10386 (font_symbolic_width, font_find_object, font_get_spec)
10387 (font_set_lface_from_name): Delete extern.
10388 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10389
10390 * font.c: Include <strings.h>.
10391 (enable_font_backend): Delete it.
10392 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10393 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10394 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10395 (null_string): Delete it.
10396 (null_vector): Make it static.
10397 (font_family_alist): Delete it.
10398 (Qnormal): Extern it.
10399 (QCextra, QClanguage): Delete it.
10400 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10401 (font_make_spec, font_make_entity, font_make_object)
10402 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10403 the string. Callers changed.
10404 (font_pixel_size): Adjusted for the format change of font-related
10405 objects.
10406 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10407 (font_style_to_value, font_style_symbolic): New function.
10408 (build_font_family_alist): Delete it.
10409 (font_registry_charsets): Use Fassoc_string instead of
10410 assq_no_quit.
10411 (font_prop_validate_symbol): Don't return null_string.
10412 (font_prop_validate_style): Adjusted for the change of
10413 style-related values in a font vector.
10414 (font_property_table): Delete entries for QClanguage and
10415 QCantialias, add entries for QCavgwidth.
10416 (get_font_prop_index): Delete the 2nd argument FROM.
10417 (font_prop_validate): Arguments changed.
10418 (font_put_extra): Adjusted for the change of font-related objects.
10419 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10420 (font_parse_fcname, font_unparse_fcname)
10421 (font_prepare_composition): Likewise.
10422 (font_parse_family_registry): Renamed from font_merge_old_spec.
10423 (otf_open): Delete the 1st arg entity.
10424 (font_otf_capability): Adjusted for the above change.
10425 (font_score): New arg alternate_families. Adjusted for the change
10426 of font-related objects.
10427 (font_sort_entites): New arg best_only.
10428 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10429 Delete them.
10430 (font_match_p): Check alternate families.
10431 (font_find_object): Delete it.
10432 (font_check_object): New function.
10433 (font_clear_cache): Adjusted for the change of font-related objects.
10434 (font_delete_unmatched): New arg.
10435 (font_list_entities): Call font_driver->list with a spec that
10436 doesn't specify style-related properties.
10437 (font_matching_entity): Arguments changed. Caller changed.
10438 (font_open_entity): Adjusted for the change of font-related objects.
10439 (font_close_object, font_has_char, font_encode_char)
10440 (font_get_name, font_get_spec): Likewise.
10441 (font_spec_from_name, font_clear_prop, font_update_lface):
10442 New functions.
10443 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10444 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10445 (font_at): Adjusted for the change of font-related objects.
10446 (font_range): New function.
10447 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10448 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10449 (Fcopy_font_spec, Fmerge_font_spec): New function.
10450 (Ffont_family_list): Renamed from list-families.
10451 (Finternal_set_font_style_table): Arguments changed.
10452 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10453 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10454 change of font-related objects.
10455 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10456
10457 * fontset.h (struct font_info): Delete it. Most members go to
10458 struct font.
10459 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10460 (enum FONT_SPEC_INDEX): Delete it.
10461 (font_info, list_fonts_func, load_font_func, query_font_func)
10462 (set_frame_fontset_func, find_ccl_program_func)
10463 (get_font_repertory_func, new_fontset_from_font_name): Delete
10464 externs.
10465 (fontset_from_font_name): Extern it.
10466 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10467 (FONT_INFO_FROM_FACE): Deleted.
10468 (face_for_font): Adjust prototype.
10469
10470 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10471 conditionals. Don't check enable_font_backend. Delete all codes
10472 used only when USE_FONT_BACKEND is not defined.
10473 (get_font_info_func, list_font_func, load_font_func)
10474 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10475 (get_font_repertory_func): Delete them.
10476 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10477 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10478 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10479 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10480 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10481 (fontset_compare_rfontdef): New function.
10482 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10483 rfont-defs by qsort. Adjusted for the change of font-group vector.
10484 (load_font_get_repertory): Deleted.
10485 (fontset_find_font): Use new macros to ref/set elements of
10486 font-def and rfont-def.
10487 (fontset_font): Fix the timing of remembering that no font for C.
10488 (free_face_fontset): Do nothing if the face has no fontset.
10489 (face_suitable_for_char_p): Use new macros to ref/set elements of
10490 rfont-def.
10491 (face_for_char): Likewise. Call face_for_char with font_object.
10492 (fs_load_font): Delete. Delete #pragma surrounding it.
10493 (fs_query_fontset): Use strcasecmp instead of strcmp.
10494 (generate_ascii_font_name): Adjusted for the format change of
10495 font-spec.
10496 (Fset_fontset_font): Likewise. Use new macros to set elements of
10497 font-def.
10498 (Fnew_fontset): Use font_unparse_xlfd to generate
10499 FONTSET_ASCII (fontset).
10500 (new_fontset_from_font_name): Deleted.
10501 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10502 a fontset is already created for the font. FIx updating of
10503 Vfontset_alias_alist.
10504 (fontset_ascii_font): Deleted.
10505 (Ffont_info): Adjusted for the format change of font-spec.
10506 (Finternal_char_font): Likewise.
10507 (Ffontset_info): Likewise.
10508 (syms_of_fontset): Don't check load_font_func.
10509
10510 * fns.c (internal_equal): Handle PREV_FONT.
10511
10512 * frame.h: Delete USE_FONT_BACKEND conditional.
10513
10514 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10515 conditionals. Don't check enable_font_backend. Delete all codes
10516 used only when USE_FONT_BACKEND is not defined.
10517 (x_set_font): Call x_new_font, not x_new_fontset2.
10518 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10519 already set for the frame.
10520
10521 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10522 a font-entity by font_make_entity. Use font_intern_prop instead
10523 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10524 font property. If a font is scalable, set avgwidth property to 0.
10525 Set font-entity property by font_put_extra.
10526 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10527 (ffont_driver): Adjusted for the change of struct font_driver.
10528 (ftfont_spec_pattern): New function.
10529 (ftfont_list): Return a list, not vector.
10530 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10531 (ftfont_list_family): Don't downcase names.
10532 (ftfont_free_entity): Deleted.
10533 (ftfont_open): Return a font-object. Adjusted for the change of
10534 struct font. Get underline_thickness and underline_position from
10535 font property. Don't update dpyinfo->smallest_font_height and
10536 dpyinfo->smallest_char_width.
10537 (ftfont_close): Don't free `struct font'.
10538 (ftfont_has_char): Adjusted for the format change of font-entity.
10539 (ftfont_encode_char, ftfont_text_extents): Likewise.
10540
10541 * ftxfont.c (ftxfont_list): Return a list, not vector.
10542 (ftxfont_open): Return a font-object. Adjusted for the change of
10543 struct font. Get underline_thickness and underline_position from
10544 font property. Don't update dpyinfo->smallest_font_height and
10545 dpyinfo->smallest_char_width.
10546 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10547 (ftxfont_draw): Adjusted for the change of struct font.
10548
10549 * image.c (image_ascent): Don't include "charset.h". Include
10550 "character.h" and "font.h".
10551
10552 * lisp.h (enum pvec_type): New member PREV_FONT.
10553 (Fassoc_string): EXFUN it.
10554
10555 * print.c: Include font.h.
10556 (print_object): Handle font-related objects.
10557
10558 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10559 conditionals. Don't check enable_font_backend. Delete all codes
10560 used only when USE_FONT_BACKEND is not defined.
10561 (handle_auto_composed_prop): Do nothing if it->f is not on a
10562 window system. Check how many following characters can be
10563 displayed by the same font.
10564 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10565 'struct font *'.
10566 (get_char_face_and_encoding): Assign the whole encoding task to
10567 the `encode-char' method of a font driver.
10568 (fill_composite_glyph_string): Adjusted for the change of `struct
10569 face' and `struct glyph_string'.
10570 (fill_glyph_string): Likewise.
10571 (get_per_char_metric): Arguments changed.
10572 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10573 and `struct glyph_string'.
10574 (produce_stretch_glyph, calc_line_height_property)
10575 (x_produce_glyphs): Likewise.
10576
10577 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10578 conditionals. Don't check enable_font_backend. Delete all codes
10579 used only when USE_FONT_BACKEND is not defined. Use
10580 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10581 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10582 (Qp): Extern them.
10583 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10584 Deleted.
10585 (struct font_name): Deleted.
10586 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10587 (compare_fonts_by_sort_order): New function.
10588 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10589 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10590 Deleted.
10591 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10592 compare_fonts_by_sort_order.
10593 (Fx_font_family_list): Call Ffont_family_list.
10594 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10595 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10596 (face_symbolic_slant, face_symbolic_swidth)
10597 (split_font_name_into_vector, build_font_name_from_vector)
10598 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10599 (font_rescale_ratio, split_font_name, build_font_name)
10600 (free_font_names, sort_fonts, x_face_list_fonts)
10601 (face_font_available_p, sorted_font_list, cmp_font_names)
10602 (font_list_1, concat_font_list, font_list, remove_duplicates):
10603 Deleted.
10604 (Fx_list_fonts): Use Ffont_list.
10605 (LFACE_AVGWIDTH): Deleted.
10606 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10607 by FONTP.
10608 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10609 (set_lface_from_font_name): Delete it.
10610 (set_lface_from_font): Renamed from
10611 set_lface_from_font_and_fontset. Caller changed. Don't set
10612 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10613 for face.
10614 (merge_face_vectors): Copy font-spec if necessary.
10615 Clear properties of the font-spec if necessary.
10616 (merge_face_ref): Clear properties of the font-spec if necessary.
10617 (Finternal_set_lisp_face_attribute): Likewise.
10618 (set_font_frame_param): Use font_load_for_lface to load a
10619 font-object, and call Fmodify_frame_parameters with it.
10620 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10621 font name by Ffont_xlfd_name.
10622 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10623 QCslant, and QCwidth.
10624 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10625 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10626 Compare fonts by EQ.
10627 (lookup_non_ascii_face): Deleted.
10628 (face_for_font): The 2nd argument changed.
10629 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10630 Check atomic font properties by case insensitive.
10631 (realize_non_ascii_face): Set face->overstrike correctly.
10632 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10633 (dump_realized_face): Get font name from
10634 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10635
10636 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10637 conditionals. Don't check enable_font_backend. Delete all codes
10638 used only when USE_FONT_BACKEND is not defined.
10639 (xic_create_xfontset): Original code deleted and renamed from
10640 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10641 (x_make_gc): Don't set GCFont in GCs.
10642 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10643 opened by "fixed".
10644 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10645 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10646 get_font_repertory_func.
10647
10648 * xfont.c: Include <stdlib.h> and "ccl.h".
10649 (struct xfont_info): New structure.
10650 (xfont_query_font): Deleted.
10651 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10652 moved from xterm.c.
10653 (xfont_driver): Adjusted for the change of struct font_driver.
10654 (compare_font_names): New function.
10655 (xfont_list_pattern): Sort font names case insensitively. Make
10656 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10657 (xfont_list): Return a list, not vector.
10658 (xfont_match): If the font doesn't have QCname property, generate
10659 a name from the other font properties.
10660 (xfont_open): Return a font-object. Adjusted for the change of
10661 struct font. Get underline_thickness and underline_position from
10662 font property. Don't update dpyinfo->smallest_font_height and
10663 dpyinfo->smallest_char_width.
10664 (xfont_close): Don't free struct font.
10665 (xfont_prepare_face): Adjusted for the change of struct font.
10666 (xfont_done_face): Deleted.
10667 (xfont_has_char): Adjusted for the change of struct font.
10668 (xfont_encode_char, xfont_draw): Likewise.
10669 (xfont_check): New function.
10670
10671 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10672 callback function.
10673 (xftfont_match): Adjusted for the format change of font-entity.
10674 (xftfont_open): Adjusted for the format change of font-entity and
10675 font-object. Adjusted for the change of struct font. Return a
10676 font-object. Don't update dpyinfo->smallest_font_height and
10677 dpyinfo->smallest_char_width.
10678 (xftfont_close): Block input while calling XftFontClose.
10679 (xftfont_prepare_face): Don't block input while calling
10680 xftfont_get_colors. Adjusted for the change of struct font.
10681 (xftfont_shape): Return value of error case fixed.
10682
10683 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10684
10685 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10686 conditionals.
10687 (FONT_WIDTH): Return (f)->max_width.
10688 (struct x_display_info): Delete member `font'.
10689 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10690 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10691 (struct x_output): Change type of `font' to `struct font *'.
10692
10693 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10694 conditionals. Don't check enable_font_backend. Delete all codes
10695 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10696 (x_per_char_metric, x_encode_char): Deleted.
10697 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10698 (x_compute_glyph_string_overhangs): Adjusted for the change of
10699 `struct face'.
10700 (x_draw_glyph_string_foreground)
10701 (x_draw_composite_glyph_string_foreground): Likewise.
10702 (x_draw_glyph_string): Likewise. Use font->underline_position and
10703 font->underline_thickness.
10704 (x_new_font): Renamed from x_new_fontset2.
10705 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10706 (x_check_font): Call `check' method of a font driver.
10707 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10708 (x_query_font, x_get_font_repertory): Deleted.
10709 (x_find_ccl_program): Renamed and moved to xfont.c.
10710 (x_redisplay_interface): Adjusted for the change of `struct
10711 redisplay_interface'.
10712
10713 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10714 conditionals. Don't check enable_font_backend. Delete all codes
10715 used only when USE_FONT_BACKEND is not defined. Surround non-used
10716 code by "#ifdef OLD_FONT" and "endif".
10717 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10718
10719 * w32font.h (struct w32font_info): New member.
10720 (FONT_COMPAT): New macro.
10721 (w32font_open_internal): Prototype adjusted.
10722
10723 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10724 OLD_FONT" and "endif".
10725
10726 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10727 conditionals. Don't check enable_font_backend. Delete all codes
10728 used only when USE_FONT_BACKEND is not defined.
10729 (w32font_open): Return a font-object. Make a font-object by
10730 font_make_object. Adjusted for the change of struct w32font_info.
10731 (w32font_close): Don't free struct font. Adjusted for the change
10732 of struct w32font_info.
10733 (w32font_encode_char, w32font_text_extents, w32font_draw):
10734 Adjusted for the change of struct w32font_info.
10735 (w32font_draw): Likewise.
10736 (w32font_list_internal): Return a list, not vector.
10737 (w32font_open_internal): Change the 4th arg to font-object.
10738 Adjusted for the change of struct w32font_info and font-object format.
10739 (add_font_name_to_list): Don't downcase names.
10740 (w32_enumfont_pattern_entity): Make a font-entity by
10741 font_make_entity. Adjusted for the format change of font-entity.
10742 Use FONT_SET_STYLE to set a style-related font property. If a
10743 font is scalable, set avgwidth property to 0. Set font-entity
10744 property by font_put_extra.
10745 (font_matches_spec): Adjusted for the format change of font-entity.
10746 (w32_weight_table, w32_decode_weight): New variables.
10747 (w32_encode_weight): New function.
10748 (fill_in_logfont): Adjusted for the format change of font-spec.
10749 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10750 weight value.
10751 (w32font_driver): Adjusted for the change of struct font_driver.
10752
10753 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10754 conditionals. Don't check enable_font_backend. Surround non-used
10755 code by "#ifdef OLD_FONT" and "endif".
10756 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10757 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10758
10759 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10760 conditionals. Don't check enable_font_backend. Delete all codes
10761 used only when USE_FONT_BACKEND is not defined. Surround non-used
10762 code by "#ifdef OLD_FONT" and "endif".
10763
10764 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10765 (uniscribe_open): Return value changed to font-object.
10766 Adjusted for the format change of font-object.
10767 (uniscribe_otf_capability): Adjusted for the change of struct font.
10768 (add_opentype_font_name_to_list): Don't downcase names.
10769 (uniscribe_font_driver): Adjusted for the change of struct
10770 font_driver.
10771
107722008-05-13 Chong Yidong <cyd@stupidchicken.com>
10773
10774 * dispnew.c (update_frame_1): Check if tty output is still valid
10775 before flushing it.
10776
107772008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10778
10779 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10780 to Gtk+ menus.
10781
107822008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10783
10784 * dired.c (file_name_completion): Tweak the code so as to always do it
10785 in a single pass. Tighten the scope of some variables.
10786
10787 * dired.c (Qdefault_directory): New var.
10788 (file_name_completion): Use it instead of Fexpand_file_name.
10789 (syms_of_dired): Initialize it.
10790
107912008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10792
10793 * fileio.c (double_dollars): Remove dead code.
10794
107952008-05-10 Eli Zaretskii <eliz@gnu.org>
10796
10797 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10798 Mention w32-get-true-file-attributes in doc string.
10799
10800 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10801
108022008-05-09 Glenn Morris <rgm@gnu.org>
10803
10804 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10805 2008-04-23.
10806
108072008-05-09 Eli Zaretskii <eliz@gnu.org>
10808
10809 Support for reporting owner and group of each file on MS-Windows:
10810 * dired.c (stat_uname, stat_gname): New functions, with special
10811 implementation for w32.
10812 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10813
10814 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10815 (dflt_group_name): New static variable.
10816 (dflt_group): Rename from the_group.
10817 (init_user_info): Init dflt_group fields. Get user's group name
10818 from LookupAccountSid.
10819 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10820 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10821 New initialization states.
10822 (globals_of_w32): Initialize them to zero. Initialize the default
10823 group name to "None".
10824 (GetFileSecurity_Name): New global var, the name of the function
10825 to call for GetFileSecurity.
10826 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10827 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10828 (get_file_security, get_security_descriptor_owner)
10829 (get_security_descriptor_group, is_valid_sid)
10830 (get_file_security_desc, get_rid, get_name_and_id)
10831 (get_file_owner_and_group): New functions.
10832 (stat): Use get_file_security_desc and get_file_owner_and_group to
10833 report the owner and primary group of each file. Don't ignore the
10834 high 32 bits of file's size, now that st_size is 64-bit wide.
10835 Fix test when to get true file attributes.
10836 (init_user_info): Use get_rid instead of equivalent inline code.
10837 (fstat): Don't ignore the high 32 bits of file's size.
10838
108392008-05-09 Chong Yidong <cyd@stupidchicken.com>
10840
10841 * image.c (png_load): Use correct bit-depth for setting background
10842 color.
10843
108442008-05-08 Eli Zaretskii <eliz@gnu.org>
10845
10846 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10847 epa-hook.elc.
10848
108492008-05-08 Juanma Barranquero <lekktu@gmail.com>
10850
10851 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10852
108532008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10854
10855 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10856 because the original parameters are in pure storage now.
10857 (mac_window): Remove unused params. Update callers.
10858
108592008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10860
10861 * lread.c (substitute_object_recurse): Use lower-level primitives.
10862 Don't signal errors when traversing sub-char-tables.
10863 Don't loop over all the possible characters when traversing char-tables.
10864
10865 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10866 just like we do in print.c.
10867
108682008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10869
10870 * minibuf.c (Ftry_completion): Remove code left over from when we used
10871 scmp instead of Fcompare_strings.
10872
108732008-05-04 Juanma Barranquero <lekktu@gmail.com>
10874
10875 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10876
108772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10878
10879 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10880 Create bitmap context in native byte order.
10881
10882 * macterm.c (XDrawLine)
10883 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10884 context in native byte order.
10885
108862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10887
10888 * config.in: Regenerate.
10889
10890 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10891 New definitions for Image I/O support.
10892 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10893 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10894 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10895 (mac_data_provider_release_data, image_load_image_io)
10896 [USE_MAC_IMAGE_IO]: New functions.
10897 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10898 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10899 (init_image_func_pointer) [MAC_OSX]: Remove function.
10900 (image_load_quartz2d) [MAC_OSX]: Check availability of
10901 CGImageCreateWithPNGDataProvider at compile time.
10902 Use lowercase `false' for boolean constant.
10903 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10904 Use image_load_image_io.
10905 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10906 Don't check MyCGImageCreateWithPNGDataProvider.
10907 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10908 Don't call init_image_func_pointer.
10909
10910 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10911
10912 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10913 Make variable non-static.
10914 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10915 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10916
10917 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10918 (RED_FROM_ULONG): Mask off higher bits.
10919 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10920
10921 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10922 Include AvailabilityMacros.h.
10923 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10924 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10925
109262008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10927
10928 * chartab.c (Fset_char_table_range): If range is t, really set all
10929 chars to that value.
10930
109312008-05-03 Eli Zaretskii <eliz@gnu.org>
10932
10933 * dired.c (Ffile_attributes): Don't allow the device number become
10934 negative.
10935
109362008-05-02 Daiki Ueno <ueno@unixuser.org>
10937
10938 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10939
109402008-05-02 Juri Linkov <juri@jurta.org>
10941
10942 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10943 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10944 DEFAULT argument as a list of default values in docstrings.
10945
109462008-05-01 Chong Yidong <cyd@stupidchicken.com>
10947
10948 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10949
109502008-05-01 Martin Rudalics <rudalics@gmx.at>
10951
10952 * dispnew.c (change_frame_size_1): Preserve small windows when
10953 shrinking frames by calling set_window_height|width with third
10954 arg 2.
10955
10956 * window.h (struct window): Replace field too_small_ok by field
10957 resize_proportionally.
10958
10959 * window.c (make_window): Initialize resize_proportionally.
10960 (enlarge_window): Temporarily set resize_proportionally to make
10961 sure that shrink_windows does scale the window proportionally.
10962 (shrink_windows): When window has resize_proportionally set try
10963 to shrink it proportionally by stealing from other windows.
10964 (struct saved_window, Fset_window_configuration)
10965 (compare_window_configurations): Handle resize_proportionally.
10966 (WINDOW_TOTAL_SIZE): New macro.
10967 (window_min_size, shrink_windows, size_window): Use it.
10968 (check_min_window_sizes): Remove. Invalid values of
10969 window-min-height|width are handled by window_min_size_2 now.
10970 (size_window, Fsplit_window, enlarge_window)
10971 (adjust_window_trailing_edge, grow_mini_window): Don't call
10972 check_min_window_sizes.
10973 (window_min_size_2, window_min_size_1, window_min_size):
10974 New argument safe_p for retrieving "safe" minimum sizes.
10975 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10976 (adjust_window_trailing_edge, grow_mini_window):
10977 Adjust arguments of window_min_size... functions.
10978 (shrink_windows): Argument min_size removed. New argument
10979 safe_p allows shrinking windows to their safe minimum sizes.
10980 Calculate minimum size and decide whether a window shall be
10981 deleted for each window individually.
10982 (size_window): When nodelete_p equals 2, tell shrink_windows to
10983 delete windows only if their new minimum size is no more safe.
10984 (shrink_window_lowest_first): Call window_min_size_1 to make
10985 sure to preserve modeline of bottom-most window when resizing
10986 the minibuffer.
10987 (Fset_window_configuration, Fcurrent_window_configuration)
10988 (compare_window_configurations): Do not handle
10989 window-min-height|width any more.
10990 (syms_of_window): Clarify window-min-height|width doc-strings.
10991
109922008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10993
10994 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10995 some more. Copy some of the code from Ftry_completions.
10996 Remove special case code that dates back to initial revision when the
10997 slash was only added when necessary and that can't trigger nowadays.
10998
109992008-04-27 Kenichi Handa <handa@m17n.org>
11000
11001 * font.c (font_prop_validate): Signal `error' instead of `font'.
11002
110032008-04-29 Jason Rumney <jasonr@gnu.org>
11004
11005 * w32fns.c (Fw32_battery_status): New defun.
11006 (syms_of_w32fns): Defsubr it.
11007
110082008-04-28 Andreas Schwab <schwab@suse.de>
11009
11010 * dired.c (file_name_completion): Fix another mixing of encoded
11011 and decoded names.
11012
110132008-04-28 Juanma Barranquero <lekktu@gmail.com>
11014
11015 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11016
110172008-04-27 Juanma Barranquero <lekktu@gmail.com>
11018
11019 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11020
110212008-04-27 Andreas Schwab <schwab@suse.de>
11022
11023 * dired.c (file_name_completion): Fix inappropriate mixing of
11024 encoded and decoded names.
11025
11026 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11027
11028 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11029
110302008-04-26 Eli Zaretskii <eliz@gnu.org>
11031
11032 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11033 2008-03-31, it's not needed anymore with `struct stat' definition
11034 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11035 for the same reasons.
11036
110372008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11038
11039 * m/sparc.h: Additional redefinitions for GNU/Linux.
11040
110412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11042
11043 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11044 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11045 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11046 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11047 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11048 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11049 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11050 Likewise.
11051
11052 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11053 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11054 (mac_ax_number_of_characters): Add externs.
11055 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11056 [USE_MAC_TSM]: Likewise.
11057 (mac_handle_text_input_event) [MAC_OSX]:
11058 Handle kEventTextInputOffsetToPos for no active input area case.
11059 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11060 (mac_handle_document_access_event)
11061 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11062 (install_application_handler) [MAC_OSX]: Register handlers for
11063 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11064 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11065 Register mac_handle_document_access_event.
11066
11067 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11068 Make functions non-static.
11069
110702008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11071
11072 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11073 (read_file_name_completion_ignore_case, insert_default_directory)
11074 (Qdefault_directory): Move to minibuffer.el.
11075 (Fread_file_name): Call the new `read-file-name' instead.
11076
110772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11078
11079 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11080 Make function non-static.
11081 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11082 Remove function.
11083 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11084 Move to mactoolbox.c.
11085 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11086
11087 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11088 (mac_rect_make): New macro.
11089
11090 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11091 instead of float.
11092 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11093 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11094 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11095 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11096 CGRectMake.
11097 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11098 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11099 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11100 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11101 instead of WindowRef in argument type.
11102 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11103 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11104 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11105 instead of DISPLAY. All uses changed.
11106 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11107 (x_calc_absolute_position): Simplify so as not to use
11108 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11109
11110 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11111 instead of WindowRef in argument type.
11112 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11113 [TARGET_API_MAC_CARBON]: Remove externs.
11114 (create_apple_event, mac_event_parameters_to_lisp)
11115 [TARGET_API_MAC_CARBON]: Add externs.
11116
11117 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11118 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11119 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11120 is clicked.
11121 (x_activate_menubar): Remove extern for saved_menu_event_location.
11122 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11123 Move from mac.c.
11124
111252008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11126
11127 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11128 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11129
111302008-04-23 Jason Rumney <jasonr@gnu.org>
11131
11132 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11133 attributes only for local files.
11134
11135 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11136 default to Qlocal.
11137
111382008-04-22 Juri Linkov <juri@jurta.org>
11139
11140 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11141 read-buffer-to-switch instead of using the letter "B".
11142
111432008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11144
11145 * fileio.c (Qdefault_directory): New variable.
11146 (Fread_file_name): Use it to pass `dir' to the completion functions.
11147
111482008-04-20 Chong Yidong <cyd@stupidchicken.com>
11149
11150 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11151
111522008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11153
11154 * keyboard.c (Vpre_help_message): Remove.
11155 (show_help_echo): Remove default C code.
11156
11157 * dired.c (directory_files_internal, file_name_completion):
11158 Only call ENCODE_FILE if the string is indeed decoded.
11159
111602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11161
11162 * Makefile.in (TOOLKIT_DEFINES): Remove.
11163 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11164
111652008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11166
11167 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11168 (mactoolbox.o): New target.
11169
11170 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11171 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11172
11173 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11174 Use mac_set_frame_window_background instead of XSetWindowBackground.
11175 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11176 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11177 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11178 instead of SetWindowTitleWithCFString.
11179 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11180 Move function to mactoolbox.c.
11181 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11182 Use mac_set_window_modified instead of SetWindowModified.
11183 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11184 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11185 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11186 FrontNonFloatingWindow. Use mac_activate_window instead of
11187 ActivateWindow. Use mac_active_non_floating_window instead of
11188 ActiveNonFloatingWindow.
11189 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11190 Use mac_show_hourglass and mac_hide_hourglass.
11191 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11192 instead of GetGlobalMouse.
11193 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11194 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11195 Use mac_bring_window_to_front instead of BringToFront.
11196 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11197 mactoolbox.c.
11198 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11199 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11200 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11201 mactoolbox.c.
11202
11203 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11204 (XtPointer): Move typedef from macmenu.c.
11205 (enum button_type): Move enum from macmenu.c.
11206 (widget_value): Move typedef from macmenu.c.
11207 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11208 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11209 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11210 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11211 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11212 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11213 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11214 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11215 (Selection): Move typedef from macselect.c.
11216 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11217 macterm.c.
11218 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11219 (mac_is_window_collapsed, mac_bring_window_to_front)
11220 (mac_send_window_behind, mac_hide_window, mac_show_window)
11221 (mac_collapse_window, mac_front_non_floating_window)
11222 (mac_active_non_floating_window, mac_activate_window)
11223 (mac_move_window_structure, mac_move_window, mac_size_window)
11224 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11225
11226 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11227 (enum mac_menu_kind): Move enum to mactoolbox.c.
11228 (min_menu_id): Move variable to mactoolbox.c.
11229 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11230 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11231 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11232 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11233 [TARGET_API_MAC_CARBON]: Likewise.
11234 (XtPointer): Move typedef to macgui.h.
11235 (enum button_type): Move enum to macgui.h.
11236 (widget_value): Move typedef to macgui.h.
11237 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11238 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11239 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11240 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11241 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11242 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11243 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11244 (popup_activated_flag): Make variable non-static.
11245 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11246 (add_menu_item, fill_menu, dispose_menus):
11247 Move functions to mactoolbox.c.
11248 (restore_show_help_function, menu_target_item_handler)
11249 (install_menu_target_item_handler, mac_handle_dialog_event)
11250 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11251 [TARGET_API_MAC_CARBON]: Likewise.
11252 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11253 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11254 (find_and_call_menu_selection, name_is_separator): Make function
11255 non-static.
11256 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11257 to mactoolbox.c.
11258 (set_frame_menubar): Don't call install_menu_quit_handler.
11259 (menu_item_selection): New variable.
11260 (mac_menu_show): Use create_and_show_popup_menu.
11261 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11262 selection but set variable menu_item_selection. All uses changed.
11263 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11264 Call install_menu_quit_handler. Move to mactoolbox.c.
11265
11266 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11267 (Selection): Move typedef to macgui.h.
11268 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11269 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11270 Make variables non-static.
11271 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11272 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11273 Make functions non-static.
11274 (Vmac_service_selection) [MAC_OSX]: Likewise.
11275 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11276 (mac_valid_selection_target_p, mac_clear_selection)
11277 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11278 (mac_put_selection_value, mac_selection_has_target_p)
11279 (mac_get_selection_value, mac_get_selection_target_list)
11280 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11281 Move functions to mactoolbox.c.
11282 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11283 Likewise.
11284 (copy_scrap_flavor_data, mac_handle_service_event)
11285 (install_service_handler) [MAC_OSX]: Likewise.
11286 (syms_of_macselect) <Vmac_dnd_known_types>:
11287 Use mac_dnd_default_known_types.
11288
11289 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11290 Move to mactoolbox.c.
11291 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11292 (Fx_selection_owner_p): Add EXFUN.
11293 (install_window_handler, remove_window_handler, XSetWindowBackground):
11294 Remove externs.
11295 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11296 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11297 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11298 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11299 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11300 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11301 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11302 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11303 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11304 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11305 (mac_valid_selection_target_p, mac_clear_selection)
11306 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11307 (mac_put_selection_value, mac_selection_has_target_p)
11308 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11309 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11310 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11311 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11312 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11313 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11314 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11315 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11316 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11317
11318 * mactoolbox.c: New file.
11319
113202008-04-18 Jason Rumney <jasonr@gnu.org>
11321
11322 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11323
113242008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11325
11326 * character.c (Fmultibyte_char_to_unibyte):
11327 Return latin1 chars unchanged.
11328
11329 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11330 relocated if it points to `name'.
11331
113322008-04-17 Kenichi Handa <handa@m17n.org>
11333
11334 * data.c (Faset): Allow setting a multibyte character in an
11335 ASCII-only unibyte string.
11336
11337 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11338
113392008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11340
11341 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11342 done in config.h.
11343
113442008-04-16 Juanma Barranquero <lekktu@gmail.com>
11345
11346 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11347 (Fchar_direction): Add usage in the docstring.
11348
113492008-04-15 Chong Yidong <cyd@stupidchicken.com>
11350
11351 * keyboard.c (read_key_sequence): Remove always-true checks.
11352
113532008-04-14 Jason Rumney <jasonr@gnu.org>
11354
11355 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11356 compatibility struct, for better underline positioning.
11357
113582008-04-13 David Hansen <david.hansen@gmx.net>
11359
11360 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11361 string.
11362
113632008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11364
11365 * m/hp800.h (XUINT, XSET): Remove.
11366
113672008-04-12 Juanma Barranquero <lekktu@gmail.com>
11368
11369 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11370 previous change.
11371
113722008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11375 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11376
113772008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11378
11379 * keymap.h (map_keymap_canonical): Declare.
11380 * xmenu.c (single_keymap_panes): Use it.
11381
113822008-04-11 Glenn Morris <rgm@gnu.org>
11383
11384 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11385 set the target's value to that of the alias.
11386
113872008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11388
11389 * term.c (set_tty_color_mode): Left over typo.
11390
113912008-04-10 Michael Albinus <michael.albinus@gmx.de>
11392
11393 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11394 only after check for file name handler functions. Signal, when
11395 native functionality is not supported.
11396 (syms_of_fileio): Declare it unconditionally.
11397
113982008-04-10 Jason Rumney <jasonr@gnu.org>
11399
11400 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11401 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11402
11403 * w32.c (logon_network_drive): Also logon to remote drives that
11404 are mapped to drive letters.
11405
114062008-04-10 Glenn Morris <rgm@gnu.org>
11407
11408 * xdisp.c (truncate-partial-width-windows): Doc fix.
11409
114102008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11411
11412 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11413 Move functions to minibuffer.el.
11414 (syms_of_fileio): Don't declare them.
11415
114162008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11417
11418 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11419 (syms_of_minibuf): Remove its initialization.
11420
11421 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11422
114232008-04-09 Juanma Barranquero <lekktu@gmail.com>
11424
11425 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11426
114272008-04-09 Jason Rumney <jasonr@gnu.org>
11428
11429 * makefile.w32-in (distclean): Delete makefile too.
11430 (maintainer-clean): New target.
11431
11432 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11433
11434 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11435 for new font backend and composite cases.
11436
114372008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11438
11439 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11440 Most of the code moved to run_timers.
11441 (do_pending_atimers): Call run_timers.
11442 (run_timers): New function.
11443
11444 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11445 run atimers.
11446
11447 * process.c (wait_reading_process_output): The same as above.
11448
114492008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11450
11451 * minibuf.c (last_exact_completion): Remove variable.
11452 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11453 (complete_and_exit_1, complete_and_exit_2)
11454 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11455 (Fdisplay_completion_list, display_completion_list_1)
11456 (Fminibuffer_completion_help, Fself_insert_and_exit)
11457 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11458 minibuffer.el.
11459 (syms_of_minibuf): Remove corresponding initializations.
11460
11461 * keyboard.c (Qdeactivate_mark): New var.
11462 (command_loop_1): Use it to call `deactivate-mark'.
11463 (syms_of_keyboard): Initialize it.
11464
11465 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11466 to another frame.
11467 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11468 Don't call set_tty_color_mode.
11469 (store_frame_param): Reset previous_frame rather than call
11470 set_tty_color_mode.
11471 * term.c (set_tty_color_mode): Rewrite.
11472 * dispextern.h (set_tty_color_mode): New type.
11473 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11474
114752008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11476
11477 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11478 for generic chars, which do not exist any more in emacs-unicode.
11479
114802008-04-08 Michael Albinus <michael.albinus@gmx.de>
11481
11482 * coding.c (detect_coding_emacs_mule)
11483 (Ffind_operation_coding_system): Fix typo.
11484
114852008-04-08 Jason Rumney <jasonr@gnu.org>
11486
11487 * w32uniscribe.c (SNAME): Extract only symbol name.
11488
11489 * w32font.h (struct w32_metric_cache): New struct.
11490 (w32font_info): Use it.
11491 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11492 (CACHE_BLOCKSIZE): New constants.
11493
11494 * w32font.c (Qja, Qko, Qzh): New symbols.
11495 (syms_of_w32font): Initialise them.
11496 (font_matches_spec): Use them to filter by language.
11497 (recompute_cached_metrics): Remove function.
11498 (compute_metrics, clear_cached_metrics): New functions.
11499 (w32font_encode_char): Use them to manage metric cache.
11500 (w32font_text_extents): Cache metrics for all glyphs on demand.
11501 Delay converting glyph indices to WORD until needed.
11502 (w32font_open_internal): Initialize metric cache to empty.
11503 (registry_to_w32_charset): Charset should always be a symbol.
11504 (fill_in_logfont, list_all_matching_fonts): Family should
11505 always be a symbol.
11506
115072008-04-06 Jason Rumney <jasonr@gnu.org>
11508
11509 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11510 Give up if glyph indices not supported. Use uniscribe obtained
11511 ABC widths for individual metrics. Map glyph clusters back to
11512 characters using fClusterStart flag. Return number of glyphs
11513 produced, not chars processed.
11514 (uniscribe_shape): Map char at FROM to current glyph.
11515
115162008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11517
11518 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11519 Use SetMenuItemHierarchicalMenu.
11520
115212008-04-05 Jason Rumney <jasonr@gnu.org>
11522
11523 * image.c (pbm_load): Allow color values up to 65535.
11524 Throw an error if max_color_idx is outside the supported range.
11525 Report an error when image size is invalid.
11526 Read two bytes at a time when raw images have max_color_idx above 255.
11527
115282008-04-05 Eli Zaretskii <eliz@gnu.org>
11529
11530 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11531 cFileName a file name that includes `?' characters, use the 8+3
11532 alias in cAlternateFileName instead.
11533
115342008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11535
11536 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11537 append "CCL: Quitted" when the CCL program is quitted.
11538 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11539
11540 * ccl.h (struct ccl_program): New member quit_silently.
11541
115422008-04-05 Chong Yidong <cyd@stupidchicken.com>
11543
11544 * search.c (compile_pattern_1): Treat non-nil and non-string of
11545 search-spaces-regexp as nil.
11546
11547 * minibuf.c (Fassoc_string): Tweak docstring.
11548
115492008-04-05 Eli Zaretskii <eliz@gnu.org>
11550
11551 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11552 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11553 2008-03-14 to force inode be positive.
11554
11555 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11556 _S_* ones, since we now use our own sys/stat.h.
11557 (stat, fstat): Don't mangle the inode number.
11558 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11559
115602008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11561
11562 * frame.h (struct frame): Give one more bit to `visible' since we use
11563 values larger than 1 to indicate obscured frames on ttys.
11564
11565 * keymap.c (Qkeymap_canonicalize): New var.
11566 (Fmap_keymap_internal): New fun.
11567 (describe_map): Use keymap-canonicalize.
11568
11569 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11570 (Fundo_boundary): Set them.
11571 (syms_of_undo): Initialize them.
11572 (record_point): Use them instead of last_point_position*.
11573 (last_undo_buffer): Change type.
11574
115752008-04-04 Jason Rumney <jasonr@gnu.org>
11576
11577 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11578 (recompute_cached_metrics): Don't set ascent and descent per char.
11579
11580 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11581 (uniscribe_check_otf): Add GC protection before consing.
11582 Rearrange loop for counting features.
11583
115842008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11585
11586 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11587 buffer with byte-size of source buffer.
11588
115892008-04-03 Chong Yidong <cyd@stupidchicken.com>
11590
11591 * callint.c (Fcall_interactively): Handle temporary region even
11592 when shift-select-mode is off.
11593
115942008-04-03 Jason Rumney <jasonr@gnu.org>
11595
11596 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11597
115982008-04-03 Kenichi Handa <handa@m17n.org>
11599
11600 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11601 (CATEGORY_MASK_UTF_16): Likewise.
11602 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11603 binary file.
11604 (detect_coding): Add null-byte detection for a binary file.
11605 (detect_coding_system): Likewise.
11606
116072008-04-03 Jason Rumney <jasonr@gnu.org>
11608
11609 * w32uniscribe.c: New file.
11610
11611 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11612
11613 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11614
11615 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11616 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11617 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11618 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11619 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11620 (Qphonetic): New symbols.
11621 (syms_of_w32font): Initialize them.
11622 (font_supported_scripts): Use them.
11623 (w32font_list_family): List all charsets.
11624 (w32font_text_extents, recompute_cached_metrics): Fix metric
11625 calculations.
11626 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11627 Give opentype fonts their own format.
11628 (font_matches_spec): New arguments backend and logfont.
11629 Handle :otf spec for uniscribe backend.
11630 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11631 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11632
11633 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11634 font backend.
11635 (globals_of_w32fns): Initialize uniscribe font backend.
11636
11637 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11638 dependencies.
11639 (w32uniscribe.$(O)): New file to build.
11640 (FONT_OBJ): Include w32uniscribe.$(O).
11641 (LIBS): Add uniscribe libraries.
11642
11643 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11644
116452008-04-02 Chong Yidong <cyd@stupidchicken.com>
11646
11647 * callint.c (Vshift_select_mode): New var.
11648 (Finteractive): Document new ^ spec.
11649 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11650 is present.
11651
11652 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11653 (command_loop_1): Avoid running the direct display versions of
11654 forward-char and backward-char if shift-selection may occur.
11655 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11656 shift-translation takes place.
11657
11658 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11659 avoid clobbering by define-minor-mode.
11660
11661 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11662 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11663
11664 * syntax.c (Fforward_word): Add ^ interactive spec.
11665
11666 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11667 (Fscroll_right): Add ^ interactive spec.
11668
116692008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11670
11671 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11672
11673 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11674
11675 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11676
116772008-03-31 Juri Linkov <juri@jurta.org>
11678
11679 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11680
116812008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11682
11683 * gtkutil.c (xg_set_geometry): Fix indentation.
11684 (xg_resize_outer_widget): Remove.
11685 (x_wm_size_hint_off): Fix indentation.
11686 (xg_frame_set_char_size): Call flush_and_sync after
11687 gtk_window_resize.
11688 (x_wm_set_size_hint): Pass NULL as geometry window to
11689 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11690 Add menu bar and tool bar height to base height.
11691 (xg_update_frame_menubar, free_frame_menubar)
11692 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11693 (update_frame_tool_bar, free_frame_tool_bar):
11694 Change xg_resize_outer_widget to xg_frame_set_char_size.
11695
116962008-03-30 Michael Albinus <michael.albinus@gmx.de>
11697
11698 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11699 (Fdbus_call_method): New parameter TIMEOUT.
11700 (dbus-send-signal): Optimize UNGCPRO call.
11701
117022008-03-29 Juri Linkov <juri@jurta.org>
11703
11704 * window.c (Fdisplay_buffer): Move call to
11705 Vsplit_window_preferred_function out of conditions that check
11706 if window is eligible for vertical splitting.
11707 When Vsplit_window_preferred_function is non-nil, call it and use
11708 its non-nil return value as window. Otherwise, continue doing
11709 vertical splitting using Fsplit_window with arg horflag=nil.
11710 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11711 default value from `split-window' to nil.
11712
117132008-03-29 Juri Linkov <juri@jurta.org>
11714
11715 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11716 for interactive code letters 'b' and 'B'.
11717
117182008-03-29 Eli Zaretskii <eliz@gnu.org>
11719
11720 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11721 multibyte string.
11722
117232008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11724
11725 * keyboard.c (pending_funcalls): New var.
11726 (timer_check): Run it.
11727 (syms_of_keyboard): Initialize it.
11728 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11729 (Vdelete_terminal_functions): New vars.
11730 (syms_of_terminal): Initialize them.
11731 (Fdelete_terminal): Run delete-terminal-functions.
11732 * xdisp.c (safe_eval): Rewrite.
11733 (safe_call2): New fun.
11734 * frame.c (Qdelete_frame_functions): New var.
11735 (syms_of_frame): Initialize it.
11736 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11737 * lisp.h (safe_call2, pending_funcalls): Declare.
11738
117392008-03-28 Andreas Schwab <schwab@suse.de>
11740
11741 * indent.c (Fmove_to_column): Move declaration before statements.
11742
117432008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11746 (struct frame): Use bit fields for boolean vars.
11747
11748 * process.c (server_accept_connection): Simplify naming.
11749 (emacs_get_tty_pgrp): Use SDATA.
11750
11751 * coding.c (decode_coding_object): Fix last change.
11752
117532008-03-27 Jason Rumney <jasonr@gnu.org>
11754
11755 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11756
117572008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11758
11759 * charset.c (Fdefine_charset_internal): Change the way of
11760 registering charsets in Vcharset_order_list.
11761 (syms_of_charset): Make the charset `eight-bit' supplementary.
11762
117632008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11764
11765 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11766 operations, to avoid having the difference between pointers
11767 overflow.
11768
117692008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11770
11771 * indent.c (check_display_width): New fun.
11772 (scan_for_column): Use it.
11773
11774 * data.c (syms_of_data): Mark most-positive-fixnum and
11775 most-negative-fixnum as constants.
11776
11777 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11778
11779 * indent.c (scan_for_column): Extract from current_column_1.
11780 Merge with the same code from Fmove_to_column.
11781 (current_column_1, Fmove_to_column): Use it.
11782
117832008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11784
11785 * keymap.c (map_keymap_internal): New fun.
11786 (map_keymap): Use it.
11787 (Fmap_keymap_internal): New fun.
11788 (Fmap_keymap): Remove left-out test from before make_save_value.
11789
11790 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11791
11792 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11793 Use XCAR/XCDR.
11794
11795 * process.h (struct Lisp_Process): Remove filter_multibyte.
11796 * process.c (QCfilter_multibyte): Remove.
11797 (setup_process_coding_systems): Don't use filter_multibyte.
11798 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11799 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11800 (Fset_process_filter_multibyte): Change the coding-system to
11801 approximate the previous behavior.
11802 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11803 coding-system.
11804
11805 * coding.c (decode_coding_object): When not decoding into a buffer,
11806 obey the coding system's preference of (uni|multi)byte.
11807
118082008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11809
11810 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11811 every char is changed and has a different byte-length.
11812 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11813 Fix int -> EMACS_INT.
11814
118152008-03-23 David Hansen <david.hansen@gmx.net>
11816
11817 * dbusbind.c (xd_read_message): Remove extra copying of message
11818 strings. Check for NULL `interface' or `member'.
11819
118202008-03-22 Eli Zaretskii <eliz@gnu.org>
11821
11822 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11823 cFileName a file name that includes `?' characters, use the 8+3
11824 alias in cAlternateFileName instead.
11825
118262008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11827
11828 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11829
118302008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11831
11832 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11833 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11834 work on current_buffer only instead (that was already the case
11835 for some of the code anyway).
11836 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11837 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11838 (SET_PT, SET_PT_BOTH): Adjust.
11839 * intervals.h (set_point, temp_set_point, set_point_both)
11840 (temp_set_point_both): Remove redundant declarations.
11841
118422008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11843
11844 * fileio.c (Finsert_file_contents):
11845 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11846 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11847 when buffer != current_buffer anyway.
11848
118492008-03-20 Andreas Schwab <schwab@suse.de>
11850
11851 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11852 as default.
11853
118542008-03-19 Jason Rumney <jasonr@gnu.org>
11855
11856 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11857 (syms_of_w32fns): Initialize them.
11858 (HOURGLASS_ID): New constant.
11859 (x_window_to_frame): Don't check hourglass_window.
11860 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11861 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11862 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11863 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11864 Only change the cursor if hourglass is not active.
11865 (Fx_create_frame): Initialize frame's current_cursor.
11866 (hourglass_atimer): Remove.
11867 (hourglass_started): New function.
11868 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11869 (show_hourglass): Adapt to w32, changing argument to frame.
11870
11871 * w32term.h (struct w32_output): Remove hourglass_window.
11872 Add current_cursor.
11873
11874 * eval.c (call_debugger, Fsignal):
11875 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11876 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11877 (Fexecute_extended_command, cancel_hourglass_unwind):
11878 * minibuf.c (read_minibuf):
11879 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11880
118812008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11882
11883 * window.c (run_funs): New fun.
11884 (run_window_configuration_change_hook): Use it to run the buffer-local
11885 and the global part of the hook.
11886
11887 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11888 (unwind_format_mode_line): Restore selected window.
11889 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11890
118912008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11892
11893 * editfns.c (Fchar_equal): Check they are valid characters.
11894
11895 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11896
118972008-03-17 Andreas Schwab <schwab@suse.de>
11898
11899 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11900 against a charset.
11901
11902 * lisp.h (Fbuffer_list): Declare.
11903
119042008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11905
aac0c6e3
MR
11906 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11907 handlebox_widget is != 0.
11908
119092008-03-16 Juri Linkov <juri@jurta.org>
11910
11911 * callint.c (Fcall_interactively): For interactive code letters
11912 'b' and 'B' put the buffer list into the list of default "future"
11913 values of the minibuffer.
11914
119152008-03-16 Andreas Schwab <schwab@suse.de>
11916
11917 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11918 modifiers.
11919
11920 * regex.c (re_match_2_internal): Correct matching of a charset
11921 against latin-1 characters.
11922
119232008-03-16 Kenichi Handa <handa@m17n.org>
11924
11925 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11926 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11927 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11928 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11929 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11930 CHAR_STRING_ADVANCE.
11931 (produce_chars): Fix for the case that the source and the
11932 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11933 instead of CHAR_STRING_ADVANCE.
11934 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11935 STRING_CHAR_ADVANCE.
11936
119372008-03-15 Andreas Schwab <schwab@suse.de>
11938
11939 * regex.c (re_match_2_internal): Correct matching of eight bit
11940 characters in unibyte strings.
11941
119422008-03-15 Martin Rudalics <rudalics@gmx.at>
11943
11944 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11945 at end of range when it coincides with the end of the buffer.
11946
119472008-03-14 Eli Zaretskii <eliz@gnu.org>
11948
11949 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11950
11951 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11952
119532008-03-14 Jason Rumney <jasonr@gnu.org>
11954
11955 * editfns.c (initial_tz): New variable.
11956 (syms_of_editfns): Initialize it.
11957 (Fset_time_zone_rule): Set it when first called.
11958 Use it when TZSTRING is nil.
11959
11960 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11961 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11962 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11963 (globals_of_w32fns): Initialize them.
11964 (compute_tip_xy): Use them to position tooltips.
11965
119662008-03-14 Glenn Morris <rgm@gnu.org>
11967
11968 * emacs.c (main): Revert previous change.
11969 (standard_args): Revert -internal-script back to -scriptload,
11970 and remove the long-option form.
11971
119722008-03-13 Glenn Morris <rgm@gnu.org>
11973
11974 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11975 Remove option -enable-font-backend.
11976
119772008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11978
11979 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11980
119812008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11982
11983 * xterm.c (x_connection_closed): For GTK: If this is the last
11984 terminal just exit without closing the display.
11985
119862008-03-11 Jason Rumney <jasonr@gnu.org>
11987
11988 * w32font.c (w32font_full_name): Use floor to round.
11989
f0131492 119902008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11991
11992 * sound.c (alsa_configure): Declare vol at beginning of block.
11993
11994 * fontset.c (Ffontset_info): Remove extra semicolon.
11995
119962008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11999 size of resulting string.
12000
120012008-03-10 Jason Rumney <jasonr@gnu.org>
12002
12003 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12004
120052008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12006
12007 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12008 Don't pretend as if characters with display property haven't been
12009 consumed for string-replacing-string case.
12010
120112008-03-08 Kim F. Storm <storm@cua.dk>
12012
12013 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12014 (get_next_display_element, next_element_from_string)
12015 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12016
120172008-03-08 Andreas Schwab <schwab@suse.de>
12018
12019 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12020
120212008-03-06 Jason Rumney <jasonr@gnu.org>
12022
12023 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12024 when charset not specified. Only translate ANSI to unicode when
12025 font_type is truetype.
12026 (w32font_coverage_ok): New function.
12027 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12028
120292008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12030
12031 * lread.c (Fread_char): Resolve modifiers.
12032 (Fread_char_exclusive): Likewise.
12033
12034 * character.c (char_resolve_modifier_mask): New function.
12035 (char_string): Use char_resolve_modifier_mask.
12036 (Fchar_resolve_modifiers): New function.
12037 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12038 function.
12039
120402008-03-04 Jason Rumney <jasonr@gnu.org>
12041
12042 * makefile.w32-in: Always include w32font.c in the build.
12043 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12044
120452008-03-04 Andreas Schwab <schwab@suse.de>
12046
12047 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12048 (versionclean): Likewise.
12049
120502008-03-04 Juanma Barranquero <lekktu@gmail.com>
12051
12052 * .cvsignore: Add oo.
12053
120542008-03-03 Andreas Schwab <schwab@suse.de>
12055
12056 * coding.c (decode_coding_object): Inhibit gap shrinking while
12057 decoding in place.
12058
120592008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12060
12061 * w32term.c: Remove unused include "gnu.h".
12062 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12063
12064 * gnu.h: Rename to ...
12065 * emacs-icon.h: ... this.
12066 * xterm.c: Use emacs-icon.h instead of gnu.h.
12067 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12068
120692008-03-03 Juanma Barranquero <lekktu@gmail.com>
12070
12071 * w32font.c: Include math.h.
12072
120732008-03-03 Jason Rumney <jasonr@gnu.org>
12074
12075 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12076 Compute options separately.
12077 (w32font_open_internal): Set glyph_idx before caching metrics.
12078
12079 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12080 Define if system headers don't.
12081 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12082 (w32font_encode_char): Don't declare here.
12083
12084 * w32font.c (Quniscribe, QCformat): New symbols.
12085 (syms_of_w32font): Define them.
12086 (w32font_has_char): Indicate uncertainty.
12087 (w32font_encode_char): Encode as glyph point. Make static.
12088 (recompute_cached_metrics): New function.
12089 (w32font_open_internal): Use it. Set font to use glyph points
12090 initially. Set format based on type of font.
12091 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12092 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12093 on it. Set format based on information available here.
12094 (add_font_entity_to_list): Identify backend based on opentype_only.
12095
120962008-03-02 Andreas Schwab <schwab@suse.de>
12097
12098 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12099
12100 * coding.c (decode_coding_big5, produce_chars):
12101 Fix typos in last change.
12102
121032008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12104
12105 * gnu.h: New icon.
12106
121072008-03-02 Kenichi Handa <handa@m17n.org>
12108
12109 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12110 `dos', don't decode '\r' if that is the last in the source.
12111 (decode_coding_utf_16, decode_coding_emacs_mule)
12112 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12113 (decode_coding_raw_text, decode_coding_charset): Likewise.
12114 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12115
121162008-03-01 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12119
121202008-03-01 Kim F. Storm <storm@cua.dk>
12121
12122 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12123
121242008-03-01 Jason Rumney <jasonr@gnu.org>
12125
12126 * w32font.c (w32font_full_name): New function.
12127 (w32font_open_internal): Use it.
12128
121292008-03-01 Kim F. Storm <storm@cua.dk>
12130
12131 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12132
121332008-03-01 Jason Rumney <jasonr@gnu.org>
12134
12135 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12136
121372008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12138
12139 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12140 xg_frame_resized when the event is for the edit widget.
12141
12142 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12143
12144 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12145 set_char_size.
12146 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12147 operations on widgets here. Just set frame size if needed.
12148 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12149 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12150 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12151 the whole frame.
12152 (xg_create_tool_bar): Move attachment of the tool bar to
12153 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12154 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12155
121562008-03-01 Jason Rumney <jasonr@gnu.org>
12157
12158 * w32fns.c (w32_msg_pump): Disable debug code.
12159
121602008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12161
12162 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12163
121642008-02-29 Chong Yidong <cyd@stupidchicken.com>
12165
12166 * xdisp.c (next_overlay_string): Don't set
12167 overlay_strings_at_end_processed_p if we're currently reading from
12168 a display string.
12169
121702008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * xdisp.c (get_overlay_strings_1): Fix typo.
12173
121742008-02-29 Chong Yidong <cyd@stupidchicken.com>
12175
12176 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12177
121782008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12179
12180 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12181
12182 * xdisp.c (display_mode_element): Cancel the previous change.
12183 (decode_mode_spec): Likewise.
12184 (handle_auto_composed_prop): Don't make composition if it->string
12185 is a string.
12186
121872008-02-27 Kim F. Storm <storm@cua.dk>
12188
12189 * lisp.h (GLYPH): Change type from int to struct with separate char
12190 and face_id members.
12191 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12192 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12193 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12194 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12195 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12196 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12197 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12198 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12199 handle new Lisp glyph code encoding, either an integer or a cons.
12200
12201 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12202 (GLYPH_ALIAS): Delete.
12203 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12204 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12205 (GLYPH_FROM_CHAR): Replace macro by ...
12206 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12207
12208 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12209 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12210 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12211 (GLYPH_INVALID_P): New macro.
12212 (spec_glyph_lookup_face): Update prototype.
12213
12214 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12215 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12216 new glyph code encoding.
12217 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12218 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12219
12220 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12221 Adapt to new glyph type and new glyph code encoding.
12222
12223 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12224
12225 * indent.c (current_column, current_column_1, Fmove_to_column)
12226 (compute_motion): Adapt to new glyph code encoding.
12227
12228 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12229
122302008-02-27 Chong Yidong <cyd@stupidchicken.com>
12231
12232 * process.c (wait_reading_process_output): Check for window
12233 changes caused by timers.
12234 Suggested by Johan Bockgård.
12235
122362008-02-27 Glenn Morris <rgm@gnu.org>
12237
12238 * emacs.c (USAGE1): Add `--disable-font-backend'.
12239
122402008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12241
12242 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12243 is made to the buffer.
12244
122452008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12246
12247 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12248 (face_at_string_position):
12249 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12250 (face_at_string_position):
12251 * xdisp.c (display_string, next_overlay_change):
12252 * buffer.h (overlays_at):
12253 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12254 Update callers.
12255
122562008-02-26 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * editfns.c (Fformat): Doc fix.
12259
122602008-02-26 Juanma Barranquero <lekktu@gmail.com>
12261
12262 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12263 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12264 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12265
122662008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12267
12268 * buffer.c (Fbuffer_swap_text): New function.
12269 (syms_of_buffer): Defsubr it.
12270
122712008-02-25 Chong Yidong <cyd@stupidchicken.com>
12272
12273 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12274
122752008-02-25 Jason Rumney <jasonr@gnu.org>
12276
12277 * w32font.c (w32font_draw): Draw one character at a time when padding.
12278
122792008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12280
12281 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12282 Handle a nil arg. Use run_window_configuration_change_hook.
12283 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12284 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12285 Use run_window_configuration_change_hook.
12286
122872008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12288
12289 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12290 1-pixel width.
12291
122922008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12293
12294 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12295 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12296 if the glyph in the font is zero pixel with.
12297
12298 * dispextern.h (struct glyph_string): New member padding_p.
12299
12300 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12301
12302 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12303
12304 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12305
12306 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12307
12308 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12309
123102008-02-25 Jason Rumney <jasonr@gnu.org>
12311
12312 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12313
123142008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12315
12316 Allow fine-grained image-cache flushing.
12317 * dispextern.h (struct image): Add `dependencies' field.
12318 (clear_image_caches): Change arg to Lisp_Object.
12319 * image.c (make_image): Initialize `dependencies' field.
12320 (clear_image_cache): Change arg to allow fine-grained flushing.
12321 Perform the flush even if image-cache-eviction-delay is nil.
12322 (clear_image_caches): Change arg to Lisp_Object.
12323 (Fclear_image_cache): Expand meaning of the argument.
12324 (mark_image): Mark `dependencies' field.
12325 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12326 (lface_hash): Use XHASH rather than XFASTINT.
12327 (face_at_buffer_position): Fix int -> EMACS_INT position.
12328 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12329 (select_frame_for_redisplay): Remove code duplication.
12330 (redisplay_internal): Adapt arg to call to clear_image_caches.
12331
123322008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12333
12334 * s/vms4-0.h:
12335 * s/vms4-2.h:
12336 * s/vms4-4.h:
12337 * s/vms5-5.h: Remove, unused.
12338
12339 * s/irix5-2.h:
12340 * s/irix6-0.h:
12341 * s/riscos5.h:
12342 * s/mach-bsd4-3.h:
12343 * m/mips4.h: Remove files for obsolete systems.
12344
12345 * Makefile.in:
12346 * filelock.c:
12347 * unexmips.c:
12348 * m/hp9000s300.h:
12349 * m/iris4d.h:
12350 * s/aix3-1.h:
12351 * s/hpux.h:
12352 * s/msdos.h:
12353 * s/usg5-0.h:
12354 * s/usg5-2-2.h:
12355 * s/usg5-2.h:
12356 * s/usg5-3.h: Remove references to obsolete variables.
12357
12358 * s/irix5-0.h: Remove, move all the contents ...
12359 * s/irix6-5.h: ... here. Simplify.
12360 * config.in: Regenerate.
12361
123622008-02-24 Jason Rumney <jasonr@gnu.org>
12363
12364 * w32term.c (x_draw_glyph_string_background): Clear the background
12365 manually when cleartype is in use.
12366 (x_draw_glyph_string_foreground): Draw text transparently when
12367 cleartype is in use.
12368
12369 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12370 a font into it unless we have to.
12371
123722008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12373
12374 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12375 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12376
aac0c6e3
MR
123772008-02-18 Jason Rumney <jasonr@gnu.org>
12378
12379 * w32fns.c (Fw32_shell_execute): Encode parameters.
12380
123812008-02-09 Eli Zaretskii <eliz@gnu.org>
12382
12383 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12384
123852008-02-05 Juanma Barranquero <lekktu@gmail.com>
12386
12387 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12388
123892008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12390
12391 * xterm.c (x_set_offset): Don't change the gravity if
12392 CHANGE_GRAVITY is -1.
12393
123942008-02-23 Chong Yidong <cyd@stupidchicken.com>
12395
12396 * fileio.c (auto_save_error_occurred): New var.
12397 (auto_save_error): Set it.
12398 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12399 error occurred.
12400
124012008-02-23 Eli Zaretskii <eliz@gnu.org>
12402
12403 * w32.c (globals_of_w32): Add initializations for
12404 g_b_init_get_sid_sub_authority and
12405 g_b_init_get_sid_sub_authority_count.
12406
124072008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12408
12409 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12410 (font_parse_xlfd): Use them for sanity check.
12411 (Finternal_set_font_style_table): Make sure the table is bijective.
12412
12413 Consolidate the image_cache to the terminal struct.
12414 * termhooks.h (P_): Remove redundant def.
12415 (struct terminal): New field `image_cache'.
12416 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12417 of FRAME_X_IMAGE_CACHE.
12418 * xterm.h (struct x_display_info): Remove image_cache field.
12419 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12420 * w32term.h (struct w32_display_info): Remove image_cache field.
12421 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12422 * macterm.h (struct mac_display_info): Remove image_cache field.
12423 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12424 * xterm.c (x_term_init):
12425 * w32term.c (w32_term_init):
12426 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12427 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12428 Remove declarations.
12429 (clear_image_caches, mark_image_cache): New declarations.
12430 * xfaces.c (clear_face_cache):
12431 * xdisp.c (redisplay_internal): Use clear_image_caches.
12432 * image.c (clear_image_cache): Don't check that a frame is on
12433 a window-system before checking if it shares the same cache.
12434 (clear_image_caches): New function.
12435 (Fclear_image_cache): Use it.
12436 (mark_image): Move from allo.c.
12437 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12438 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12439 (mark_object): Don't call mark_image_cache for frames.
12440 (mark_terminals): Call mark_image_cache.
12441
12442 * lisp.h (Fdelete_terminal): Declare.
12443
12444 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12445 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12446 wrong_type_argument.
12447
124482008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12449
12450 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12451 malayalam.el, and tamil.el. Add sinhala.el.
12452
124532008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12454
12455 * xterm.c (x_connection_closed): Consolidate identical tests.
12456 (x_delete_terminal): Don't crash if called via x_connection_closed.
12457
124582008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12459
12460 * xdisp.c (decode_mode_spec): New arg string.
12461 (display_mode_element): Adjust for the above change.
12462
124632008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12464
12465 * callint.c (Fcall_interactively): Use AREF.
12466
124672008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12468
12469 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12470
124712008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12472
12473 * xfns.c (Fx_show_tip): Set string to " " if empty.
12474
124752008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12476
12477 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12478 with Qt.
12479
124802008-02-17 Kenichi Handa <handa@m17n.org>
12481
12482 * ftfont.c (ftfont_shape): Return Lispy number.
12483
12484 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12485 for GCs.
12486 (Finternal_set_font_selection_order): Call font_update_sort_order
12487 only when enable_font_backend is set.
12488 (realize_x_face): Set face->font_info to that of default face only
12489 when enable_font_backend is set.
12490
12491 * xdisp.c (handle_composition_prop): Set it->c to the fist
12492 character of the composed region.
12493 (fill_composite_glyph_string): Set base_face->font_info to
12494 s->font_info. Get a face for ascii from base_face->ascii_face.
12495 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12496 with a face already decided.
12497 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12498 non-negative.
12499 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12500 call font_prepare_composition unconditionally.
12501
12502 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12503
12504 * xterm.h (struct x_display_info): New member font.
12505
12506 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12507 (x_set_mouse_face_gc, x_new_font): Likewise.
12508 (x_term_init): Setup display_info->font.
12509 (x_delete_terminal): Free display_info->font.
12510
12511 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12512
12513 * ftxfont.c (ftxfont_default_fid): Delete it.
12514 (ftxfont_open): Set xfont->fid to 0.
12515 (ftxfont_end_for_frame): Clear data specific to the frame and the
12516 font-driver.
12517
12518 * xftfont.c (xftfont_default_fid): Delete it.
12519 (xftfont_open): Set xfont->fid to 0.
12520
12521 * fontset.c (FONTSET_OBJLIST): New macro.
12522 (fontset_find_font): Update font-object list of the fontset.
12523 (free_realized_fontset): New function.
12524 (free_face_fontset): Call free_realized_fontset.
12525 (Ffont_info): Call font_close_object only when enable_font_backend
12526 is set.
12527
12528 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12529 [HAVE_NTGUI]: Include w32term.h.
12530 [MAC_OS]: Include macterm.ch.
12531 (font_otf_ValueRecord): Use make_number.
12532 (font_finish_cache): Fix handling of reference count.
12533 (font_clear_cache): Update num_fonts.
12534 (font_open_entity): Update smallest_char_width and
12535 smallest_font_height of the frame.
12536 (font_close_object): Update num_fonts.
12537 (Fclear_font_cache): Fix finding the target cache data.
12538
125392008-02-16 Glenn Morris <rgm@gnu.org>
12540
12541 * fontset.c (Finternal_char_font): Fix compilation warning.
12542
125432008-02-16 Eli Zaretskii <eliz@gnu.org>
12544
12545 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12546 instead of char arrays. Enlarge the size of array passed to
12547 get_token_information.
12548
12549 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12550 warnings.
12551
125522008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12553
12554 * .gdbinit: Don't set `args', it breaks gdb --args.
12555
125562008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12557
12558 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12559 within a narrowed buffer.
12560
125612008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12562
12563 * coding.c (decode_coding_object, encode_coding_object):
12564 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12565
125662008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12567
12568 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12569 hardcoding 1.
12570 (detect_coding_system):
12571 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12572 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12573 * insdel.c (insert_from_gap):
12574 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12575 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12576 (string_to_multibyte):
12577 * character.c (chars_in_text, multibyte_chars_in_text):
12578 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12579
12580 * character.h (FETCH_STRING_CHAR_ADVANCE)
12581 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12582 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12583 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12584
12585 * casefiddle.c (casify_region): Only call after-change and composition
12586 functions on the part of the region that was changed.
12587
12588 * keyboard.c (read_avail_input):
12589 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12590
125912008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12592
12593 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12594 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12595
125962008-02-11 Juanma Barranquero <lekktu@gmail.com>
12597
12598 * w32menu.c (push_submenu_start, push_submenu_end)
12599 (push_left_right_boundary, push_menu_pane, push_menu_item):
12600 * keyboard.c (read_key_sequence): Don't pass args with side effects
12601 to AREF, it fails when compiling with -DENABLE_CHECKING.
12602
126032008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12604
12605 * Makefile.in (${lispsource}international/charprop.el):
12606 Delete this target.
12607
12608 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12609 emacs-unicode-2.
12610
126112008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12612
12613 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12614
126152008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12616
12617 * frame.c (Qnoelisp): New symbol.
12618 (syms_of_frame): Initialize it.
12619 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12620 harmless Elisp code, from a strong `force' from x_connection_closed.
12621 * frame.h (Qnoelisp): Declare.
12622 * xterm.c (x_connection_closed): Pass `noelisp'.
12623
12624 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12625 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12626 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12627 rather than `int' for the type of `type'.
12628
126292008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12630
12631 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12632
12633 * Makefile.in (GNUC): Remove support for gcc-1.x.
12634
126352008-02-10 Richard Stallman <rms@gnu.org>
12636
12637 * lisp.h (ASET): Use AREF, not ASLOT.
12638
126392008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12640
12641 * lisp.h (ASET): Check bounds.
12642
126432008-02-10 Glenn Morris <rgm@gnu.org>
12644
12645 * buffer.c (mode-name): Doc fix.
12646
126472008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12648
12649 * Makefile.in:
12650 * emacs.c:
12651 * gmalloc.c:
12652 * keyboard.c:
12653 * lisp.h:
12654 * m/ibm370aix.h:
12655 * process.c:
12656 * regex.c:
12657 * s/hpux.h:
12658 * sysdep.c:
12659 * sysselect.h:
12660 * systty.h:
12661 * unexec.c:
12662 * w32term.c:
12663 * xsmfns.c:
12664 * xterm.c: Remove code that deals with obsolete variables.
12665
12666 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12667
12668 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12669 nothing else needs it anymore.
12670
126712008-02-09 Eli Zaretskii <eliz@gnu.org>
12672
12673 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12674 instead of unibyte_char_to_multibyte.
12675
126762008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12677
12678 * s/gnu-linux.h: Remove commented out code.
12679
12680 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12681
12682 * Makefile.in: Update what RMS says about using autoconf.
12683 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12684 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12685 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12686 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12687
126882008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12689
12690 * keymap.c (Fkey_description): Move side effect outside of macro call.
12691
12692 * xfaces.c (Finternal_make_lisp_face):
12693 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12694
12695 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12696 (syms_of_fontset): Use ASET.
12697
12698 * fns.c (concat): Move side effect outside of macro call.
12699 (hash_clear): Use ASET.
12700
127012008-02-08 Richard Stallman <rms@gnu.org>
12702
12703 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12704 If FORCE, and frame has a surrogate minibuffer for another frame,
12705 delete the other frame first.
12706
127072008-02-07 Timo Savola <timo.savola@iki.fi>
12708
12709 * xterm.c (x_detect_focus_change): Handle embed client message.
12710 (handle_one_xevent): Ditto.
12711 (handle_one_xevent): If embedded and we get a button press/release,
12712 request focus.
12713 (xembed_set_info, xembed_send_message): New functions.
12714 (x_make_frame_visible): Call xembed_set_info if embedded.
12715 (x_make_frame_invisible): Call xembed_set_info if embedded.
12716 (x_term_init): Initialize Xatom_XEMBED.
12717 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12718 (x_iconify_frame): Ditto.
12719
12720 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12721 (enum xembed_info, enum xembed_message, enum xembed_focus)
12722 (enum xembed_modifier, enum xembed_accelerator): New.
12723 (xembed_set_info, xembed_send_message): Declare.
12724 (FRAME_X_EMBEDDED_P): New.
12725
12726 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12727 gtk_plug_new.
12728
12729 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12730 window ID of a frame.
12731 (x_window): Reparent frame if embedded.
12732 (Fx_create_frame): Don't set border width if embedded.
12733
12734 * emacs.c (USAGE3): Add --parent-id.
12735 (standard_args): Ditto.
12736
127372008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12738
12739 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12740
127412008-02-07 Jim Meyering <meyering@redhat.com>
12742
12743 Use "do...while (0)", not "if (1)...else" in macro definitions.
12744 The latter provokes a warning from gcc about the empty else, when
12745 followed by ";". Also, without that trailing semicolon, it would
12746 silently swallow up any following statement.
12747 * syntax.h (SETUP_SYNTAX_TABLE)
12748 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12749 * buffer.h (DECODE_POSITION): Likewise.
12750 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12751 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12752 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12753 (FETCH_CHAR_ADVANCE): Likewise.
12754 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12755
127562008-02-07 Jim Meyering <meyering@redhat.com>
12757
12758 * lread.c [lint]: Don't include <sys/inode.h>.
12759
127602008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12761
12762 * xselect.c (x_handle_dnd_message):
12763 * xmenu.c (digest_single_submenu, xmenu_show):
12764 * xdisp.c (with_echo_area_buffer_unwind_data)
12765 (format_mode_line_unwind_data, unwind_format_mode_line)
12766 (display_menu_bar):
12767 * eval.c (Ffetch_bytecode):
12768 * doc.c (store_function_docstring):
12769 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12770 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12771 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12772
127732008-02-07 Kenichi Handa <handa@m17n.org>
12774
12775 * ftxfont.c (ftxfont_open): Don't set
12776 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12777
12778 * ftfont.c (ftfont_open): Fix previous change.
12779
127802008-02-06 Jason Rumney <jasonr@gnu.org>
12781
12782 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12783 Use cached metrics for ASCII characters.
12784 (w32font_open_internal): Don't set font's owning_frame.
12785 Cache metrics for ASCII characters.
12786
12787 * w32font.h (struct w32font_info): Add ascii_metrics.
12788 Remove owning_frame.
12789
127902008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12791
12792 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12793 to negative value.
12794
12795 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12796
12797 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12798
12799 * charset.c (syms_of_charset): Set QCtest and Qeq.
12800
128012008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12802
12803 * process.c (Fstart_process):
12804 * callproc.c (Fcall_process): Handle the case where
12805 Funhandled_file_name_directory returns nil.
12806
12807 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12808 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12809 * font.c (check_gstring): Use them and AREF to access the vector before
12810 we know it's really a gstring.
12811 (Ffont_shape_text): Fix typo.
46e722a9 12812 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12813
12814 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12815 Declare.
12816
12817 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12818
128192008-02-05 Jason Rumney <jasonr@gnu.org>
12820
12821 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12822 Set smallest_font_height and smallest_char_width in display info.
12823
128242008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12825
12826 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12827
128282008-02-05 Miles Bader <miles@gnu.org>
12829
12830 * xfaces.c (get_lface_attributes, merge_named_face)
12831 (lookup_named_face, lookup_derived_face, realize_named_face):
12832 Revert 2008-02-01 change by cyd@stupidchicken.com.
12833
128342008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12835
12836 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12837 fallback fonts.
12838 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12839
128402008-02-04 Jason Rumney <jasonr@gnu.org>
12841
12842 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12843 set full_name.
12844 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12845
128462008-02-03 Jason Rumney <jasonr@gnu.org>
12847
12848 * makefile.w32-in (OBJ1): Include font.o here.
12849 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12850
128512008-02-02 Jason Rumney <jasonr@gnu.org>
12852
12853 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12854
128552008-02-01 Jason Rumney <jasonr@gnu.org>
12856
12857 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12858
12859 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12860
128612008-02-01 Andreas Schwab <schwab@suse.de>
12862
12863 * Makefile.in (shortlisp, lisp): Update for rename of
12864 ../lisp/language/myanmar.el.
12865
128662008-02-01 Chong Yidong <cyd@stupidchicken.com>
12867
12868 * xfaces.c (get_lface_attributes): Delete function.
12869 (merge_named_face, lookup_named_face, lookup_derived_face)
12870 (realize_named_face): Call lface_from_face_name directly, and use
12871 the fact that merge_face_vectors does not alter its FROM argument.
12872
128732008-02-01 Jason Rumney <jasonr@gnu.org>
12874
12875 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12876 input in the default locale. Handle non-Unicode multibyte input.
12877
128782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12879
12880 * fontset.c (reorder_font_vector): Exclude nil elements from the
12881 font group. Don't try multiple fonts.
12882 (fontset_font): Adjust for the above change.
12883 (Finternal_char_font): Return nil if the found font doesn't
12884 contain the character ch.
12885
12886 * Makefile.in (lisp, shortlisp): Add cham.el.
12887
128882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12889
12890 * font.h (FONTP): Make it return 1 also for a font-object.
12891
12892 * .gdbinit (xfontset): New function.
12893
12894 * font.c (font_find_for_lface): Check if the character C is
12895 supported or not only for the first font.
12896
12897 * fontset.c (reorder_font_vector): Fix typo.
12898 (fontset_find_font): Don't add a font-spec specifying a script.
12899 Use 0 (not Qt) for the indication of empty font-group. Change the
12900 format of RFONT-DEF. Return Qt if no font in the font-group
12901 support the character.
12902 (fontset_font): Adjust for the above change. If no font was
12903 found the character, remember that.
12904 (face_for_char): Adjust for the change of RFONT-DEF.
12905 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12906 no font for the target.
12907 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12908
129092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12910
12911 * font.c (font_load_for_face): Handle the case that the font in
12912 face->lface is a string.
12913
129142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12915
12916 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12917
129182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12919
12920 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12921 Fix previous change. If the frame is not on a window system,
12922 signal an error.
12923
129242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12925
12926 * coding.c (decode_coding_object, encode_coding_object): Adjust
12927 marker positions after conversion.
12928
12929 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12930
129312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12932
12933 * font.c (font_find_for_lface): Fix the handling of the return
12934 value of font_has_char.
12935 (Ffont_shape_text): Fix previous change.
12936
12937 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12938 (fontset_ref_and_range): Delete it.
12939 (fontset_find_font): Call char_table_ref_and_range instead of
12940 FONTSET_REF_AND_RANGE.
12941 (make_fontset): Don't setup font groups of Latin here.
12942 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12943 (new_fontset_from_font): Make the specified font the default for
12944 all Latin characters.
12945
129462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12947
12948 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12949 is on a window system before accessing the fontset of the frame.
12950
129512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12952
12953 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12954
12955 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12956 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12957
12958 * font.c (Ffont_shape_text): If the font driver doesn't have a
12959 shaper function, make zero-width glyphs to have at least one-pixel
12960 width. Fix setting of `to' field of glyphs.
12961
129622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12963
12964 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12965 glyphs.
12966
12967 * font.h (struct font_driver): Improve docstring of member `shape'.
12968
129692008-02-01 Kenichi Handa <handa@m17n.org>
12970
12971 * composite.c (syms_of_composite): Fix docstring of
12972 auto-composition-function.
12973
12974 * font.h (LGLYPH_SIZE): New macro.
12975
12976 * font.c (Ffont_fill_gstring): Stop filling when a character not
12977 supported by the font is found.
12978 (Ffont_shape_text): When a shape callback function returns nil,
12979 try at most two more times with larger gstring.
12980 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12981
12982 * xdisp.c (handle_auto_composed_prop): Change the argument to
12983 auto-composition-function.
12984
12985 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12986 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12987 Lispy glyph and store it in the lgstring.
12988
12989 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12990
12991 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12992
129932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12994
12995 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12996
12997 * fontset.c (Vfont_encoding_charset_alist): New variable.
12998 (syms_of_fontset): DEFVAR it.
12999 (reorder_font_vector, fontset_find_font): Optimize for the case of
13000 no need of reordering.
13001 (face_for_char): Map the charset property by
13002 Vfont_encoding_charset_alist.
13003
130042008-02-01 Jason Rumney <jasonr@gnu.org>
13005
13006 * w32font.c (logfonts_match): Don't check adstyle here.
13007 (font_matches_spec): Check here against physical font instead.
13008 (add_font_entity_to_list): Avoid some substitutions.
13009
13010 * font.c (font_parse_fcname): Default weight and slant to normal.
13011 (font_score): Prefer normal fonts if weight or slant unspecified.
13012 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13013 match freetype scores.
13014
130152008-02-01 Jason Rumney <jasonr@gnu.org>
13016
13017 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13018 font, as it may have been deleted.
13019 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13020 most common hyphenless variation.
13021 (logfonts_match): Check generic family.
13022 (font_matches_spec): Don't check generic family here.
13023 (fill_in_logfont): Set generic family based on adstyle.
13024
13025 * w32font.h (w32font_get_cache): Update declaration.
13026
130272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13028
13029 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13030
13031 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13032 If none of the new drivers are available, call font_update_drivers
13033 with the old drivers.
13034
13035 * w32font.c (w32font_get_cache): Adjust the argument type.
13036
13037 * xfont.c (xfont_get_cache): Adjust the argument type.
13038
13039 * font.h (struct font_driver): Change argument type of get_cache.
13040
13041 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13042
13043 * font.c (Ffont_get): Fix arguments to Fassoc.
13044 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13045 (font_clear_cache): New function.
13046 (font_list_entities, font_matching_entity): Use font_get_cache.
13047 (font_update_drivers): Call font_clear_cache when finishing a driver.
13048
13049 * fontset.c (fontset_find_font): Fix previous change.
13050
130512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13052
13053 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13054 dpyinfo->font_table.
13055 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13056 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13057
13058 * font.c (font_at): Handle the case that the arg C is negative.
13059 Handle the unibyte case.
13060 (Ffont_at): Call font_at with the arg C -1.
13061
13062 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13063 the position here, and call font_at with the arg C -1.
13064 Don't check the range of the existing composition at the point.
13065
130662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13067
13068 * fontset.c (fontset_add): New args charset_id and family.
13069 Change caller.
13070 (load_font_get_repertory, fontset_find_font): Assume that
13071 font_spec is always a font-spec object.
13072 (Fset_fontset_font): Always store a font-spec object in a fontset.
13073
13074 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13075 instead of get_property_and_range.
13076
130772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13078
13079 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13080 (xftfont_open): Don't keep locking face.
13081 (xftfont_close): Don't unlock face.
13082 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13083
13084 * fontset.c (fontset_find_font): Don't prefer a font of
13085 supplementary charset.
13086
130872008-02-01 Kenichi Handa <handa@m17n.org>
13088
13089 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13090 script, langsys_tag to langsys, new member script.
13091 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13092 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13093 listing to the script specified in that property. Fix arg to
13094 OTF_check_features.
13095
130962008-02-01 Jason Rumney <jasonr@gnu.org>
13097
13098 * w32font.h: New file.
13099
13100 * w32font.c: Include it.
13101 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13102 (w32font_open): Set owning_frame.
13103 (w32font_text_extents): Use owning_frame.
13104 (struct font_callback_data): Add opentype_only field.
13105 (add_font_entity_to_list): Use it to filter fonts.
13106 Don't check against full name.
13107 (w32font_list_internal): New function.
13108 (w32font_list): Use it.
13109 (w32font_match_internal): New function.
13110 (w32font_match): Use it.
13111 (w32font_open_internal): New function.
13112 (w32font_open): Use it.
13113 (w32font_get_cache, w32font_close, w32font_has_char)
13114 (w32font_encode_char, w32font_text_extents, w32font_draw):
13115 Make non-static.
13116
13117 * makefile.w32-in (w32font.o): Depend on w32font.h.
13118
131192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13120
13121 * charset.c (Fdefine_charset_internal): Record a supplementary
13122 charset at the tail of Vcharset_order_list.
13123
13124 * font.c (Ffont_shape_text): Fix the return value.
13125
13126 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13127
13128 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13129
131302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13131
13132 * ftfont.c (struct OpenTypeSpec): New struct.
13133 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13134 (ftfont_get_open_type_spec): New function.
13135 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13136
13137 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13138
131392008-02-01 Jason Rumney <jasonr@gnu.org>
13140
13141 * w32font.c (add_font_entity_to_list): Compare only the beginning
13142 of full name.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13147 Never return HANDLED_RECOMPUTE_PROPS.
13148
131492008-02-01 Kenichi Handa <handa@m17n.org>
13150
13151 * font.c (font_gstring_produce): Delete it.
13152
13153 * composite.h (COMPOSITION_METHOD):
13154 Handle COMPOSITION_WITH_GLYPH_STRING.
13155
131562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13157
13158 * xfont.c (Qx): Delete.
13159 (syms_of_xfont): Don't initialize Qx.
13160
13161 * composite.h (enum composition_method):
13162 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13163
131642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13165
13166 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13167 (choose_face_font): Accept new form of font-spec.
13168
13169 * frame.h (font_driver_list): Declare it unconditionally.
13170 (struct frame): Define members font_driver_list and font_data_list
13171 unconditionally.
13172
13173 * fontset.c: Include "font.h" unconditionally.
13174 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13175 (Fset_fontset_font): Accept a font-spec object.
13176
13177 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13178 PIXEL_SIZE part a wild card.
13179
13180 * dispextern.h (struct glyph_string): Define members clip and
13181 num_clips unconditionally.
13182 (struct face): Define members font_info and extra unconditionally.
13183
13184 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13185 ftfont_info only when HAVE_LIBOTF is defined.
13186
131872008-02-01 Andreas Schwab <schwab@suse.de>
13188
13189 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13190 and end.
13191
131922008-02-01 Jason Rumney <jasonr@gnu.org>
13193
13194 * w32font.c (w32font_driver): Add new fields.
13195
131962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13197
13198 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13199 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13200 (LIBES): Add @M17N_FLT_CFLAGS@.
13201
13202 * composite.c (compose_text): Don't treat the new style
13203 composition specially.
13204
13205 * emacs.c (main): Call syms_of_font unconditionally.
13206
13207 * font.h (FONT_ENTITY_NOT_LOADABLE)
13208 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13209 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13210 (struct font_driver): New member shape.
13211 (font_registry_charsets): Extern it.
13212 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13213 (font_otf_capability, font_drive_otf): Delete their externs.
13214
13215 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13216 (font_charset_alist, font_registry_charsets): Move from xfont.c
13217 and rename.
13218 (font_prop_validate_otf): New function.
13219 (font_property_table): Register it for QCotf.
13220 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13221 (font_drive_otf): Delete.
13222 (font_prepare_composition): New arg F. Adjust for the change of
13223 lispy gstring.
13224 (font_find_for_lface): New arg C.
13225 (font_load_for_face): Adjust for the change of font_find_for_lface.
13226 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13227 lispy gstring.
13228 (Ffont_shape_text): New function.
13229 (Fopen_font): If the font size is not given, use 12-pixel.
13230 (Ffont_at): New arg STRING.
13231 (syms_of_font): Initalize font_charset_alist.
13232 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13233 conditionally.
13234
13235 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13236 fonts of the same font-spec. Change the format of RFONT-DEF.
13237 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13238 Adjust for the change of RFONT-DEF.
13239 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13240
13241 * ftfont.h: New file.
13242
13243 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13244 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13245 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13246 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13247 font_otf_capability and font_drive_otf, set ftfont_shape.
13248 (ftfont_list): Adjust for the change of :otf property value.
13249 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13250 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13251 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13252 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13253 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13254 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13255
13256 * w32term.c (x_draw_composite_glyph_string_foreground):
13257 Adjust for the change of lispy gstring.
13258
13259 * xdisp.c (handle_composition_prop): Adjust for the change of
13260 lispy gstring. Call a function for auto-composition with the
13261 third arg it->window.
13262 (fill_composite_glyph_string): Adjust for the change of lispy string.
13263 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13264
13265 * xfaces.c (set_font_frame_param): Adjust for the change of
13266 font_find_for_lface.
13267
13268 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13269 (xfont_registry_charsets): Likewise. Change caller.
13270 (syms_of_xfont): Don't handle x_font_charset_alist.
13271
13272 * xftfont.c: Include "ftfont.h".
13273 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13274 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13275 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13276 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13277 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13278 Set xftfont_driver.shape to xftfont_shape.
13279
13280 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13281 the change of lispy gstring.
13282
132832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13284
13285 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13286
132872008-02-01 Jason Rumney <jasonr@gnu.org>
13288
13289 * w32font.c (w32font_draw): Fill background manually.
13290
132912008-02-01 Jason Rumney <jasonr@gnu.org>
13292
13293 * font.c (Qfontp): Remove unused symbol.
13294 (QCantialias): New symbol.
13295 (syms_of_font): Define it.
13296 (font_property_table): Set a validator for QCantialias.
13297
13298 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13299 Define if not already.
13300 (QCfamily): Share with xfaces.c.
13301 (Qstandard, Qsubpixel, Qnatural): New symbols.
13302 (syms_of_w32font): Define them. Don't define QCfamily here.
13303 (w32_antialias_type, lispy_antialias_type): New functions.
13304 (w32_enumfont_pattern_entity): New arg requested_font.
13305 Set antialias parameter if non-default was requested.
13306 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13307
133082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13309
13310 * lread.c (read1): Undo the previous change.
13311
133122008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13313
13314 * frame.c (Fdelete_frame): Call font_update_drivers only when
13315 USE_FONT_BACKEND is defined.
13316
133172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13318
13319 * font.h (struct font_bitmap): New member bits_per_pixel.
13320 (struct font_driver): New members start_for_frame and end_for_frame.
13321 (struct font_data_list): New struct.
13322 (font_put_frame_data, font_get_frame_data): Extern them.
13323
13324 * frame.h (struct frame): New member font_data_list.
13325
13326 * font.c (font_update_drivers): Call driver->start_for_frame and
13327 driver->end_for_frame at proper timings.
13328 (font_put_frame_data, font_get_frame_data): New functions.
13329 (Ffont_spec): Add usage in the docstring.
13330
13331 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13332 (Fdelete_frame): Call font_update_drivers.
13333
13334 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13335 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13336 (xftfont_get_xft_draw): New function.
13337 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13338 (xftfont_end_for_frame): New function.
13339 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13340
13341 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13342 Change argument. Cache GCs in the per-frame data.
13343 (struct ftxfont_frame_data): New struct.
13344 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13345 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13346 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13347 (ftxfont_end_for_frame): New function.
13348 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13349
13350 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13351
133522008-02-01 Kenichi Handa <handa@m17n.org>
13353
13354 * xselect.c (Vselection_coding_system)
13355 (Vnext_selection_coding_system): Delete them.
13356 (syms_of_xselect): Don't declare selection-coding-system and
13357 next-selection-coding-system. They are declared in select.el.
13358
133592008-02-01 Jason Rumney <jasonr@gnu.org>
13360
13361 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13362
13363 * w32fns.c: Include imm.h.
13364 (get_composition_string_fn, get_ime_context_fn): New optional
13365 system functions.
13366 (globals_of_w32fns): Load them from imm32.dll.
13367 (ignore_ime_char): New flag.
13368 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13369 WM_IME_ENDCOMPOSITION messages.
13370
13371 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13372 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13373
133742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13375
13376 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13377 (READCHAR_REPORT_MULTIBYTE): New macro.
13378 (readchar): New 2nd arg MULTIBYTE.
13379 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13380 Make symbol's name multibyte according to the multibyteness of the
13381 source.
13382
133832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13384
13385 * xfaces.c (face_for_overlay_string): Call lookup_face with
13386 correct arguments (fix of synching with the trunk).
13387
133882008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13391 (font_prop_validate_non_neg, font_prop_validate_spacing):
13392 Delete argument prop_index.
13393 (font_property_table): Change arguments to validater. Change Callers.
13394 (font_lispy_object): Delete.
13395 (font_at): Use font_find_object instead fo font_lispy_object.
13396
133972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13398
13399 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13400 and file names.
13401
134022008-02-01 Jason Rumney <jasonr@gnu.org>
13403
13404 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13405 (font_matches_spec): Remove debug output.
13406 (add_font_entity_to_list): Avoid using substituted fonts.
13407
134082008-02-01 Jason Rumney <jasonr@gnu.org>
13409
13410 * doc.c (Fsnarf_documentation):
13411 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13412
134132008-02-01 Miles Bader <miles@gnu.org>
13414
13415 * dispextern.h (struct glyph_row): Only define "clip" field if
13416 HAVE_WINDOW_SYSTEM is defined.
13417
134182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13419
13420 Fix up multi-tty merge.
13421
13422 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13423 and indentation.
13424
13425 * xfaces.c (free_realized_face, clear_face_gcs):
13426 Include font_done_for_face in the input_blocked section, just in case.
13427
13428 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13429 (get_char_face_and_encoding): Undo last change and remove the *other*
13430 duplicate definition (i.e. keep the one that's better scoped and that
13431 includes code for the font-backend).
13432
13433 * terminal.c (create_terminal): Default keyboard_coding to
13434 `no-conversion' and terminal_coding to `undecided'.
13435
13436 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13437
13438 * fontset.c (free_realized_fontsets): Check that the table entry does
13439 contain a fontset before trying to compare it to `base'.
13440
13441 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13442 syms_of_charset, and syms_of_coding earlier because init_window_once
13443 now needs Vcoding_system_hash_table to be setup.
13444
13445 * coding.h (default_buffer_file_coding): Remove.
13446
13447 * coding.c (default_buffer_file_coding): Remove.
13448 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13449 than ->symbol, and use the terminal-local coding system.
13450 (syms_of_coding): Don't setup the coding-systems that are not
13451 terminal-local.
13452 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13453
13454 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13455 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13456
13457 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13458 in chartab.c and were re-added here by mistake.
13459 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13460
13461 * doc.c (Fsnarf_documentation):
13462 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13463 src to etc.
13464
13465 * ChangeLog.10: Add mistakenly removed entry.
13466
134672008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13468
13469 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13470
134712008-02-01 Miles Bader <miles@gnu.org>
13472
13473 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13474 Add extra args to FACE_FOR_CHAR.
13475
134762008-02-01 Kenichi Handa <handa@m17n.org>
13477
13478 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13479 in sequence.
13480
13481 * chartab.c (map_sub_char_table, map_char_table): If the range
13482 contains just one character, call the function with that character
13483 even if the depth is not 3.
13484
134852008-02-01 Jason Rumney <jasonr@gnu.org>
13486
13487 * w32font.c (w32font_text_extents): Calculate metrics for the
13488 whole string.
13489
134902008-02-01 Jason Rumney <jasonr@gnu.org>
13491
13492 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13493
134942008-02-01 Jason Rumney <jasonr@gnu.org>
13495
13496 * w32term.c (x_set_glyph_string_clipping): Use
13497 get_glyph_string_clip_rects.
13498 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13499 Adjust for the change of struct glyph_string.
13500
13501 * w32font.c (w32font_draw): Do clipping here.
13502
135032008-02-01 Kenichi Handa <handa@m17n.org>
13504
13505 * xftfont.c (xftfont_draw): Adjust for the change of struct
13506 glyph_string.
13507
13508 * xterm.c (x_set_glyph_string_clipping): Use
13509 get_glyph_string_clip_rects.
13510 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13511 Adjust for the change of struct glyph_string.
13512
13513 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13514 the resulting clip(s}.
13515 (expose_overlaps): Add arg r. Change callers. Set it to
13516 row->clip temporarily.
13517 (expose_window): Redraw rows overlapping the exposed area.
13518
13519 * dispextern.h (struct glyph_row): New member clip.
13520 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13521 clip_height, new member clip, and num_clips.
13522
135232008-02-01 Kenichi Handa <handa@m17n.org>
13524
13525 * data.c (Fchar_or_string_p): Fix docstring.
13526
135272008-02-01 Kenichi Handa <handa@m17n.org>
13528
13529 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13530 create a temporary XftDraw object.
13531
135322008-02-01 Kenichi Handa <handa@m17n.org>
13533
13534 * font.c (Ffontp): Fix docstring.
13535
13536 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13537 strong evidence of ISO-2022.
13538
135392008-02-01 Kenichi Handa <handa@m17n.org>
13540
13541 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13542 SYNTAX_ENTRY_FOLLOW_PARENT.
13543
135442008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13545
13546 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13547 its type.
13548 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13549 Update to the new type of weak_hash_tables and next_weak.
13550
13551 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13552 a plain C pointer to Lisp_Hash_Table.
13553
13554 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13555 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13556 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13557 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13558 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13559 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13560 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13561 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13562 (GC_EQ): Remove since they've been identical to their non-GC_
13563 alter-egos ever since the markbit was eradicated.
13564
13565 * alloc.c:
13566 * buffer.c:
13567 * buffer.h:
13568 * data.c:
13569 * fileio.c:
13570 * filelock.c:
13571 * fns.c:
13572 * frame.h:
13573 * lisp.h:
13574 * macterm.c:
13575 * print.c:
13576 * process.c:
13577 * w32fns.c:
13578 * w32menu.c:
13579 * w32term.c:
13580 * xfns.c:
13581 * xmenu.c:
13582 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13583
135842008-02-01 Kenichi Handa <handa@m17n.org>
13585
13586 * chartab.c (map_sub_char_table): Make it work for the top-level
13587 char-table. Fix handling of parent char-table.
13588 (map_char_table): Adjust for the above change.
13589
135902008-02-01 Jason Rumney <jasonr@gnu.org>
13591
13592 * w32font.c (Qgdi): Rename from Qw32.
13593
135942008-02-01 Jason Rumney <jasonr@gnu.org>
13595
13596 * w32bdf.c (get_quoted_string): Make function static.
13597
135982008-02-01 Kenichi Handa <handa@m17n.org>
13599
13600 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13601 bigger ascent and descent than those of the font, use them as
13602 font's ascent and descent.
13603
136042008-02-01 Kenichi Handa <handa@m17n.org>
13605
13606 * Makefile.in (${lispsource}international/charprop.el): Move this
13607 target within "#ifdef HAVE_UNIDATA" and "#endif".
13608
136092008-02-01 Kenichi Handa <handa@m17n.org>
13610
13611 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13612 (shortlisp): Add ../lisp/language/tai-viet.el.
13613
136142008-02-01 Ulrich Mueller <ulm@gentoo.org>
13615
13616 * Makefile.in (${lispsource}international/charprop.el): Depend on
13617 temacs${EXEEXT}.
13618
136192008-02-01 Jason Rumney <jasonr@gnu.org>
13620
13621 * w32font.c (w32font_close): Delete the GDI font object.
13622
13623 * w32menu.c: Include character.h.
13624
13625 * w32proc.c: Likewise.
13626
13627 * w32select.c: Likewise.
13628
13629 * makefile.w32-in (w32proc.o): Depend on character.h.
13630
136312008-02-01 Jason Rumney <jasonr@gnu.org>
13632
13633 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13634
13635 * w32menu.c (syms_of_w32menu): Likewise.
13636
13637 * w32proc.c (syms_of_ntproc): Likewise.
13638
13639 * w32select.c (syms_of_w32select): Likewise.
13640
13641 * w32term.c (syms_of_w32term): Likewise.
13642
136432008-02-01 Jason Rumney <jasonr@gnu.org>
13644
13645 * w32font.c (w32font_draw): Delete brush after using it.
13646
136472008-02-01 Jason Rumney <jasonr@gnu.org>
13648
13649 * w32font.c (w32font_open): Don't set font_idx.
13650 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13651 to font settings.
13652 (w32font_draw): Fill background explicitly.
13653
136542008-02-01 Jason Rumney <jasonr@gnu.org>
13655
13656 * w32term.c (w32_initialize): Don't call w32font_initialize.
13657
13658 * w32font.c (w32font_info): Remove subranges.
13659 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13660 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13661 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13662 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13663 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13664 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13665 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13666 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13667 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13668 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13669 New symbols.
13670 (font_callback_data): New struct.
13671 (w32font_list, w32font_match): Use it.
13672 (w32font_open): Don't populate subranges.
13673 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13674 (w32font_encode_char): Always return unicode code-point as-is.
13675 (w32font_text_extents): Supply a transformation matrix to
13676 GetGlyphOutline. Never look up by glyph index. Avoid looping
13677 twice. Use unicode version of GetTexExtentPoint32 instead of
13678 glyph index version.
13679 (set_fonts_frame): Remove.
13680 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13681 set frame parameter. Use backward compatible fake foundries.
13682 Save generic family in extra slot under QCfamily. Make width slot
13683 constant. Save QCspacing value. Save list of scripts instead of
13684 binary subranges.
13685 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13686 (add_font_entity_to_list): Use font_callback_data struct. Filter
13687 unwanted fonts.
13688 (add_one_font_entity_to_list): Use font_callback_data struct.
13689 (w32_registry): Default to iso10646_1.
13690 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13691 string font registries. Don't fill in font name if it is a generic
13692 family name, fill family instead. Use spacing, family and script
13693 extra info to fill pitch, family and charset fields.
13694 (list_all_matching_fonts): Use font_callback_data struct.
13695 (unicode_range_for_char): Remove.
13696 (font_supported_scripts): New function.
13697 (w32font_initialize): Remove.
13698 (syms_of_w32font): Update which symbols are defined.
13699
137002008-02-01 Jason Rumney <jasonr@gnu.org>
13701
13702 * font.c (font_pixel_size): Reverse assq_no_quit args.
13703
13704 * w32term.h (FONT_WIDTH): Report max width, not average.
13705 (FONT_MAX_WIDTH): Remove.
13706 (FONT_AVG_WIDTH): New macro.
13707
13708 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13709 redefinition of FONT_WIDTH.
13710
13711 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13712 (w32_cache_char_metrics): Use FONT_WIDTH.
13713
13714 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13715
137162008-02-01 Jason Rumney <jasonr@gnu.org>
13717
13718 * w32font.c (w32font_open): Make lfHeight negative.
13719
13720 * w32fns.c (x_default_font_parameter): Use new style font name.
13721 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13722
137232008-02-01 Jason Rumney <jasonr@gnu.org>
13724
13725 * w32font.c (QCsubranges): New symbol.
13726 (w32font_open, w32font_has_char): Get subranges from subproperty
13727 of extra.
13728 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13729 (syms_of_w32font): Define :subranges symbol.
13730
13731 * font.c (font_put_extra): Expose externally.
13732
13733 * font.h (font_put_extra): Move declaration from font.c.
13734
13735 * font.c (Ffont_get): Use font driver to determine otf capability.
13736 (adjust_anchor): Check if driver defines anchor_point before using.
13737
13738 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13739 (w32font_draw): Use options.
13740 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13741 Fix detection of truetype fonts.
13742 (registry_to_w32_charset): Handle charsets other than iso8859-1
13743 expressed as lisp symbols.
13744 (w32_registry): Express charset as lisp symbol.
13745 (fill_in_logfont): Reverse pixel and point height logic.
13746 Don't set width here. Set quality to default.
13747
13748 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13749 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13750
13751 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13752 Remove redundant loop and allocation.
13753
13754 * makefile.w32-in (font.o, w32font.o): New objects.
13755 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13756 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13757
13758 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13759 STORE_XCHARB a valid l-value.
13760
13761 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13762 calculations for non-Truetype fonts.
13763 (x_draw_glyph_string): Sync with xterm.c.
13764 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13765 Remove redundant code.
13766 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13767
13768 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13769 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13770
13771 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13772 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13773
13774 * w32font.c: New file for w32 font backend.
13775
137762008-02-01 Kenichi Handa <handa@m17n.org>
13777
13778 * term.c: Don't include "buffer.h" twice.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * character.c (Funibyte_string): New function.
13783 (syms_of_character): Defsubr it.
13784
137852008-02-01 Jason Rumney <jasonr@gnu.org>
13786
13787 * w32term.c [USE_FONT_BACKEND]:
13788 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13789 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13790 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13791 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13792 (x_free_frame_resources): Sync with xterm.c.
13793
137942008-02-01 Andreas Schwab <schwab@suse.de>
13795
13796 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13797 char-table size.
13798
137992008-02-01 Kenichi Handa <handa@m17n.org>
13800
13801 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13802
138032008-02-01 Kenichi Handa <handa@m17n.org>
13804
13805 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13806 font_otf_gpos, add font_drive_otf.
13807
13808 * fontset.c (fontset_find_font): Pay attention to font size
13809 specified for a font.
13810 (reorder_font_vector): Check contents of font_def.
13811
13812 * font.c (struct otf_list): Delete it.
13813 (otf_list): Make it a lisp variable.
13814 (otf_open): Use lispy otf_list.
13815 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13816 (check_otf_features): New function.
13817 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13818 New functions.
13819 (font_drive_otf): New function merging font_otf_gsub and
13820 font_otf_gpos.
13821 (font_open_for_lface): New arg spec. Change argument order.
13822 (font_load_for_face): Adjust for the change of font_open_for_lface.
13823 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13824 Ffont_otf_gpos.
13825 (syms_of_font): Staticpro otf_list. Delete defsubr of
13826 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13827
13828 * xfaces.c (set_font_frame_param): Adjust for the change of
13829 font_open_for_lface.
13830
13831 * font.h (font_open_for_lface): Adjust prototype.
13832 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13833 member otf_drive.
13834 (font_otf_gsub, font_otf_gpos): Delete externs.
13835 (font_drive_otf): Extern it.
13836
138372008-02-01 Kenichi Handa <handa@m17n.org>
13838
13839 * font.c (font_at): If the window W is not on a window system,
13840 return Qnil.
13841
13842 * coding.c (produce_chars, encode_coding): Don't call
13843 insert_from_gap if no characters to produce.
13844
138452008-02-01 Kenichi Handa <handa@m17n.org>
13846
13847 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13848 Fclear_face_cache.
13849
13850 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13851
138522008-02-01 Miles Bader <miles@gnu.org>
13853
13854 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13855 Parse "--disable-font-backend" option.
13856 (standard_args): Add "--disable-font-backend" option.
13857
138582008-02-01 Kenichi Handa <handa@m17n.org>
13859
13860 * fontset.c (fontset_find_font): New function.
13861 (fontset_font): Use fontset_find_font.
13862 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13863 Register the specified font for all Latin characters.
13864 (new_fontset_from_font): Register the specified font for all Latin
13865 characters.
13866 (dump_fontset): For a realized fontset, include the base fontset
13867 name in the returned vector.
13868
138692008-02-01 Kenichi Handa <handa@m17n.org>
13870
13871 * character.h (CHAR_STRING): Cast C to unsigned on calling
13872 char_string.
13873
13874 * character.c (char_string): Type of arg C changed to unsigned.
13875 Signal an error if C is an invalid character code.
13876
13877 * editfns.c (general_insert_function, Fchar_to_string):
13878 Use CHARACTERP, not INTEGERP.
13879
138802008-02-01 Kenichi Handa <handa@m17n.org>
13881
13882 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13883 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13884
13885 * regex.c (analyse_first): Fix for multibyte characters in "case
13886 charset:" and "case categoryspec:".
13887
138882008-02-01 Andreas Schwab <schwab@suse.de>
13889
13890 * Makefile.in (LIBES): Move standard libraries to the end.
13891
138922008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13895 nonzero, don't shrink the buffer nextb.
13896
13897 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13898
13899 * coding.c (coding_alloc_by_making_gap): New arg offset.
13900 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13901 offset.
13902 (decode_coding_iso_2022): Update coding->safe_charsets.
13903 (decode_coding_gap): Temporarily set
13904 current_buffer->text->inhibit_shrinking to 1.
13905
139062008-02-01 Kenichi Handa <handa@m17n.org>
13907
13908 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13909 indexing into elements of s->cmp and s->char2b.
13910
139112008-02-01 Juanma Barranquero <lekktu@gmail.com>
13912
13913 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13914
139152008-02-01 Kenichi Handa <handa@m17n.org>
13916
13917 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13918 target_multibyte instead of multibyte.
13919 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13920 (bcmp_translate): Change the argument name from multibyte to
13921 target_multibyte.
13922
139232008-02-01 Kenichi Handa <handa@m17n.org>
13924
13925 These changes are to compile a regexp into a pattern that can be
13926 used both for multibyte and unibyte targets.
13927
13928 * Makefile.in (search.o): Depend on charset.h.
13929
13930 * character.c (multibyte_char_to_unibyte_safe): New function.
13931
13932 * search.c: Include "charset.h".
13933 (compile_pattern_1): Delete argument multibyte. Don't set
13934 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13935 (compile_pattern): Don't compare cp->buf.target_multibyte.
13936 Compare cp->buf.charset_unibyte.
13937 (compile_pattern): Set cp->buf.target_multibyte.
13938
13939 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13940
13941 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13942
13943 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13944 multibyte. Change callers.
13945 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13946 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13947 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13948 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13949 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13950 (regex_compile): Make the compiled pattern usable both for
13951 multibyte and unibyte targets.
13952 (analyse_first): Make the fastmap usable both for multibyte and
13953 unibyte targets.
13954 (TRANSLATE_VIA_MULTIBYTE): Delete.
13955 (re_match_2_internal): Pay attention to the case that the
13956 multibyteness of bufp and target may be different.
13957
139582008-02-01 Kenichi Handa <handa@m17n.org>
13959
13960 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13961 empty box occupy at least one column width.
13962
139632008-02-01 Miles Bader <miles@gnu.org>
13964
13965 * Makefile.in: Remove redundant HAVE_XFT clause.
13966
139672008-02-01 Kenichi Handa <handa@m17n.org>
13968
13969 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13974 being nil.
13975
139762008-02-01 Kenichi Handa <handa@m17n.org>
13977
13978 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13979
139802008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13983
139842008-02-01 Kenichi Handa <handa@m17n.org>
13985
13986 * search.c (simple_search): Fix previous change.
13987
139882008-02-01 Kenichi Handa <handa@m17n.org>
13989
13990 * xftfont.c (ftfont_font_format): Extern declaration.
13991
13992 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13993
13994 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13995 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13996
13997 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13998 (ftfont_font_format): Fix previous change.
13999
14000 * font.h (Ffont_xlfd_name): EXFUN it.
14001
14002 * font.c (font_parse_xlfd): Fix the array size of `f'.
14003 (register_font_driver): Use EQ to compare driver->type.
14004
14005 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14006 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14007 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14008
140092008-02-01 Kenichi Handa <handa@m17n.org>
14010
14011 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14012 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14013
140142008-02-01 Kenichi Handa <handa@m17n.org>
14015
14016 * xfont.c (xfont_open): Set font->format.
14017
14018 * xftfont.c (xftfont_open): Set font->format.
14019
14020 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14021 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14022 (ftfont_open): Set font->format.
14023 (ftfont_font_format): New function.
14024
14025 * font.h (struct font): New member format.
14026
14027 * font.c (Qopentype): New variable.
14028 (syms_of_font): Defsym it.
14029 (Fquery_font): Change the format of the last element of the return
14030 value.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14035 last resort.
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * coding.c (detect_coding_charset): Fix detection of multi-byte
14040 charset.
14041
140422008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14043
14044 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14045
140462008-02-01 Kenichi Handa <handa@m17n.org>
14047
14048 * xdisp.c (get_next_display_element): Set it->face_id for the
14049 first component of a composition.
14050 (x_produce_glyphs): Check if the font is changed or not for composition.
14051
140522008-02-01 Kenichi Handa <handa@m17n.org>
14053
14054 * fontset.c (Qlatin): New variable.
14055 (syms_of_fontset): Define it as a lisp symbol.
14056 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14057
140582008-02-01 Kenichi Handa <handa@m17n.org>
14059
14060 * font.c (font_unparse_fcname): Pay attention to the case that
14061 some of font property is a null string.
14062
140632008-02-01 Kenichi Handa <handa@m17n.org>
14064
14065 * term.c: Include "composite.h".
14066 (encode_terminal_code): Output all components of composition.
14067 Check the size of encode_terminal_src.
14068 (produce_glyphs): For composition, call produce_composite_glyph.
14069 (append_composite_glyph, produce_composite_glyph): New functions.
14070
14071 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14072 is not found, get font_info from the current ascii face.
14073
140742008-02-01 Kenichi Handa <handa@m17n.org>
14075
14076 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14077 buffer-file-name to Qnil before calling insert_from_buffer.
14078
14079 * font.c (font_unparse_fcname): Pay attention to the case that
14080 foundry is a null string.
14081
140822008-02-01 Kenichi Handa <handa@m17n.org>
14083
14084 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14085
14086 * font.c (Qunicode_sip): New variable.
14087 (syms_of_font): Declare it as a Lisp symbol.
14088
14089 * font.h (Qunicode_sip): Extern it.
14090
140912008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * composite.c (get_composition_id): Pay attention to TAB component.
14094
14095 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14096 TAB. Adjust for the change of s->char2b which always points to
14097 the first element of allocated memory.
14098
14099 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14100
14101 * xdisp.c (handle_composition_prop): Set it->c to the first
14102 non-TAB component.
14103 (fill_composite_glyph_string): Change argument.
14104 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14105 (x_produce_glyphs): Fix handling of left/right padding.
14106
141072008-02-01 Kenichi Handa <handa@m17n.org>
14108
14109 * coding.c (detect_coding_system): Fix for handling off
14110 inhibit_iso_escape_detection. Fix for the case that no coding
14111 system is defined for a specific coding category.
14112
141132008-02-01 Kenichi Handa <handa@m17n.org>
14114
14115 * font.c (font_matching_entity): Delete unused local var.
14116
14117 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14118 opening a font.
14119
14120 * fileio.c (Finsert_file_contents): On recovering a file, assume
14121 Unix-like eol.
14122 (choose_write_coding_system): On auto-saving a file, force
14123 Unix-like eol.
14124
14125 * coding.c (setup_coding_system): Fix setting of
14126 coding->common_flags based on eol_type.
14127 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14128 inherit from it.
14129
141302008-02-01 Kenichi Handa <handa@m17n.org>
14131
14132 * alloc.c (NSTATICS): Increas to 0x600.
14133
141342008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14137 (ftfont_list): Don't check :name property.
14138 (ftfont_match): New function.
14139 (ftfont_pattern_entity): If the pattern doesn't contain
14140 FC_SPACING, don't assume FC_MONO.
14141
14142 * font.h (struct font_driver): New member `match'.
14143 (font_update_drivers): Adjust prototype.
14144
14145 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14146 property of FONT.
14147 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14148 them unconditionally.
14149 (font_matching_entity): New function.
14150 (font_open_by_name): Try font_matching_entity if exact match is
14151 not found.
14152 (font_update_drivers): Delete the arg FONT. Return a list of
14153 actually used backends. Don't free faces, font caches here.
14154 Don't store data in frame parameters. Don't call x_set_font.
14155 (Ffont_spec): Store :name property as is.
14156 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14157 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14158 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14159 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14160 Call font->driver->otf_gsub instead of font_otf_gsub.
14161
14162 * frame.c (x_set_font_backend): Do more works that were done in
14163 font_update_drivers before.
14164
14165 * xfont.c (xfont_match): New function.
14166 (xfont_driver): Set xfont_driver.match to xfont_match.
14167 (xfont_draw): Set font in GC if necessary.
14168
14169 * ftxfont.c (ftxfont_match): New function.
14170 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14171
14172 * xftfont.c (xftfont_match): New function.
14173 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14174
141752008-02-01 Kenichi Handa <handa@m17n.org>
14176
14177 * font.h (struct font): New member scalable.
14178 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14179 (font_otf_gsub): Adjust prototype.
14180
14181 * font.c (font_otf_capability): Fix handling of the default langsys.
14182 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14183 Check the contents of SPEC.
14184 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14185 (check_gstring): New function.
14186 (REPLACEMENT_CHARACTER): New macro.
14187 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14188 glyph codes of GSTRING.
14189 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14190 (font_prepare_composition): Set cmp->glyph_len.
14191 (font_open_entity): Set font->scalable.
14192 (Ffont_get): Handle :otf property.
14193 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14194 functions.
14195 (Fquery_font): Use font->font.full_name.
14196 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14197 Sfont_otf_alternates.
14198
14199 * ftfont.c (ftfont_open): Set font->font.full_name and
14200 font->font.name properly. Fix calculation of font->font.height
14201 and font->min_width.
14202
14203 * ftxfont.c (ftxfont_create_gcs): New function.
14204 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14205 (ftxfont_draw_backgrond): Fix filling region.
14206 (ftxfont_default_fid): New function.
14207 (ftxfont_open): Set xfont->fid to the return value of
14208 ftxfont_default_fid.
14209 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14210 (ftxfont_done_face): Free only GCs that are created by
14211 ftxfont_create_gcs.
14212 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14213
14214 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14215 Clip to src->width, etc (not src->clip_XXX).
14216
14217 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14218 FontBackend frame parameter.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * font.h (struct font_driver_list): New member `on'.
14223 (Fclear_font_cache): EXFUN it.
14224 (font_update_drivers): Extern it.
14225
14226 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14227 (font_list_entities): Check driver_list->on.
14228 (register_font_driver): Initalize `on' member to 0.
14229 (font_update_drivers): New function.
14230 (Fclear_font_cache): Check driver_list->on.
14231
14232 * frame.h (Qfont_backend): Extern it.
14233 (x_set_font_backend): Extern it.
14234
14235 * frame.c (Qfont_backend): New variable.
14236 (frame_parms): New element for font-backend.
14237 (x_set_font_backend): New function.
14238
14239 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14240 FontBackend frame parameter.
14241 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14242 x_set_font_backend.
14243
14244 * xfont.c (xfont_list): Don't try listing by :name property if the
14245 name is not for XLFD.
14246
142472008-02-01 Kenichi Handa <handa@m17n.org>
14248
14249 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14250 (LGLYPH_SET_TO): New macros.
14251 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14252 element of G is vector or not.
14253 (font_at): Extern it.
14254
14255 * font.c: Include window.h.
14256 (font_lispy_object): New function.
14257 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14258 end of valid glyph.
14259 (font_close_object): Fix getting (struct font *).
14260 (font_at): New function.
14261 (Ffont_get): If FONT is a font-object, get entity from it.
14262 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14263 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14264 range check.
14265 (Ffont_at): New function.
14266 (syms_of_font): Defsubr Sfont_at.
14267
14268 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14269 before the entry for Qcomposition.
14270 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14271 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14272 the font in gstring.
14273 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14274 LGLYPH_FORM (g) to detect the end of valid glyph.
14275 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14276 we are composing with gstring.
14277
14278 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14279 Check if adjustment is vector or not.
14280
14281 * Makefile.in (font.o): Make it depends on window.h.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14286 adjustment is vector or not.
14287
142882008-02-01 Miles Bader <miles@gnu.org>
14289
14290 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14291
142922008-02-01 Kenichi Handa <handa@m17n.org>
14293
14294 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14295 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14296 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14297
14298 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14299 (DEVICE_DELTA): Fix typo.
14300 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14301 LGLYPH format.
14302
14303 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14304 the change of LGLYPH format.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * ftfont.c (ftfont_list): Fix typo.
14309 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14310
143112008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14312
14313 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14314
14315 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14316 xftface_info is non-NULL.
14317
143182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14319
14320 * ftfont.c (ftfont_list): Move misplaced #endif.
14321
143222008-02-01 Kenichi Handa <handa@m17n.org>
14323
14324 * ftfont.c (ftfont_list): Pay attention to the case that
14325 FC_CAPABILITY is not defined.
14326
143272008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * xftfont.c (xftfont_open): Set charset related members to -1.
14330
14331 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14332 QCname.
14333 (ftfont_open): Set charset related members to -1.
14334
14335 * fontset.c (Votf_script_alist): New variable.
14336 (syms_of_fontset): Initialize it.
14337 (fontset_font): Delete unused variable.
14338
14339 * fontset.h (Votf_script_alist): Extern it.
14340
14341 * font.c (font_find_for_lface): Optimize code.
14342
14343 * font.h (font_close_object, font_merge_old_spec): Extern them.
14344
143452008-02-01 Kenichi Handa <handa@m17n.org>
14346
14347 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14348 (syms_of_font): Initialize them.
14349 (font_pixel_size): Allow float value in dpi.
14350 (font_prop_validate_type): Delete.
14351 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14352 Change caller.
14353 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14354 (font_prop_validate_extra): Delete.
14355 (font_prop_validate_spacing): New function.
14356 (font_property_table): Add elements for all known properties.
14357 (get_font_prop_index): Rename from check_font_prop_name. New
14358 argument FROM. Change caller.
14359 (font_prop_validate): Validate all known properties.
14360 (font_put_extra): Delete argument force. Change caller.
14361 (font_expand_wildcards): Make it static. Fix the way of shrinking
14362 the possible range.
14363 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14364 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14365 Change caller.
14366 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14367 (font_parse_fcname): Delete argument merge. Fix parsing of point
14368 size. Don't validate properties values here. Change caller.
14369 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14370 (font_open_by_name): Delete unused variable.
14371 (Ffont_spec): Likewise. Validate property values.
14372 (Ffont_match_p): New function.
14373
14374 * font.h (QCscalable): Extern it.
14375 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14376
14377 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14378
14379 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14380 (xfont_list_pattern): New function.
14381 (xfont_list): Use xfont_list_pattern.
14382
143832008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * font.h (Flist_fonts): EXFUN it.
14386
143872008-02-01 Jason Rumney <jasonr@gnu.org>
14388
14389 * w32term.c (w32_initialize): Add back smoothing_type and
14390 smoothing_enabled definitions.
14391
143922008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14395 s->face->font on determining underline position.
14396
143972008-02-01 Kenichi Handa <handa@m17n.org>
14398
14399 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14400 (font_has_char): Accept font-object too.
14401 (font_find_for_lface): Try at first with a size specified in face.
14402
144032008-02-01 Kenichi Handa <handa@m17n.org>
14404
14405 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14406 font_open_by_name.
14407
144082008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * font.h (QCspacing, QCdpi): Extern them.
14411 (enum font_spacing): New enum.
14412 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14413
14414 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14415 (QCspacing, QCdpi): New variables.
14416 (syms_of_font): Initialize them.
14417 (font_pixel_size): New function.
14418 (font_put_extra): New function.
14419 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14420 in FONT_EXTRA.
14421 (font_parse_fcname): Handle enumerated values (e.g. bold).
14422 Fix handling font size. Add QCname property that contains only
14423 unknown properties.
14424 (font_score): Change argument. Change caller. Pay attention to
14425 FONT_PIXEL_SIZE_QUANTUM.
14426 (font_sort_entites, font_list_entities, font_find_for_lface)
14427 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14428 (Ffont_spec): Add QCname property that contains only unknown properties.
14429
14430 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14431 include weight in listing pattern, instead check weight of each
14432 listed font. Don't include scalable in pattern. Pay attention to
14433 FONT_PIXEL_SIZE_QUANTUM.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * font.c (font_parse_fcname): Fix parsing of point-size.
14438 (font_unparse_fcname): Produce symbolic names for style properties.
14439 (font_list_entities): Handle float size correctly.
14440 (font_open_by_name): Prefer `normal' property values if the name
14441 doesn't specify them.
14442
14443 * fontset.c (Finternal_char_font): Use font_get_name, not
14444 Ffont_xlfd_name.
14445
14446 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14447 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14448 pattern. Don't force scalable.
14449
14450 * xftfont.c (xftfont_open): For generating a name, start from
14451 96-byte buffer.
14452
144532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14454
14455 * frame.h (x_new_fontset2): Fix prototype.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * font.h (struct font_driver): Delete member parse_name.
14460 (font_match_p, font_get_spec, font_parse_fcname)
14461 (font_unparse_fcname): Extern them.
14462 (font_get_name): Adjust prototype.
14463
14464 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14465 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14466 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14467 unnecessary checks for weight, slant, and swidth.
14468 (font_parse_fcname): New function.
14469 (font_unparse_fcname): New function.
14470 (font_parse_name): New function.
14471 (font_match_p): New function.
14472 (font_get_name): Change return value to Lisp string.
14473 (font_get_spec): New function.
14474 (Qunspecified, Qignore_defface): Don't extern them.
14475 (font_find_for_lface): Assume that LFACE is fully specified.
14476 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14477 object, use it for FACE.
14478 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14479 driver->parse_name.
14480 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14481
14482 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14483 prototype.
14484
14485 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14486 argument F. Don't call Fnew_fontset. Instead, directly call
14487 make_fontset.
14488
14489 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14490
14491 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14492 of x_new_fontset2.
14493
14494 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14495 (Qsans__serif): New variables.
14496 (ftfont_generic_family_list): New variable.
14497 (syms_of_ftfont): Initialize the above variables.
14498 (ftfont_pattern_entity): Delete argument NAME.
14499 (ftfont_list_generic_family): New function.
14500 (ftfont_parse_name): Delete this function.
14501 (ftfont_list): Try generic family only when FcFontList found no font.
14502 (ftfont_list_family): Fix args to FcObjectSetBuild.
14503
14504 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14505 object in attrs[LFACE_FONT_INDEX].
14506 (set_lface_from_font_name): Cancel all changes for font-backend.
14507 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14508 function.
14509 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14510 font object in QCfont attribute.
14511 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14512 (realize_default_face) [USE_FONT_BACKEND]: Call
14513 set_lface_from_font_and_fontset.
14514
14515 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14516 "fixed", and signal error here if no suitable font was found.
14517
14518 * xfont.c (xfont_parse_name): Delete this function.
14519
14520 * xftfont.c (xftfont_open): Change coding style of error
14521 handling. Generate fontconfig's fontname pattern.
14522
14523 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14524 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14525
14526 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14527 Both args FONTSET and FONT_OBJECT must be existing ones.
14528
145292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14530
14531 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14532
145332008-02-01 Kenichi Handa <handa@m17n.org>
14534
14535 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14536
14537 * font.h (struct font): Fix typo.
14538
14539 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14540 XLFD_XXX_INDEX.
14541 (enum xlfd_field_mask): New enum.
14542 (intern_font_field): Changed argument. Change caller. If digits
14543 are followed by non-digits, return a symbol.
14544 (font_expand_wildcards): New function.
14545 (font_parse_xlfd): Fix wildcard handling.
14546 (Ffont_spec): If :name is specified, reflect the info in the other
14547 properties.
14548
14549 * ftfont.c (ftfont_pattern_entity): Fix typo.
14550 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14551 locale.
14552
145532008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14556
14557 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14558 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14559 registry doesn't specify encoding part.
14560 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14561 (font_open_by_name): At first try parsing the name.
14562 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14563 as Lisp symbols.
14564
14565 * fontset.c (reorder_font_vector): Pay attention to the case that
14566 the 3rd element of font_def is nil.
14567 (fontset_font): For the default fontset, append one more fontset
14568 elements for a script-based font specification. Don't add script
14569 attribute on finding a font.
14570 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14571 font name.
14572 (fontset_ascii_font): If a font can't be opened, return nil.
14573
14574 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14575 (ftfont_pattern_entity): New function.
14576 (ftfont_get_cache): Assume that freetype_font_cache is already
14577 initialized.
14578 (ftfont_list): Handle the case that a file is specified in font
14579 name. Use ftfont_pattern_entity to generate entities.
14580 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14581 (syms_of_ftfont): Initialize freetype_font_cache.
14582
14583 * xftfont.c (xftfont_open): Make the font name fontconfig's
14584 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14585 (xftfont_close): Free font->font.name if not NULL.
14586
14587 * xfont.c (xfont_list): If script is specified for a font, return
14588 null_vector.
14589 (xfont_list_family): Declare argument type.
14590
14591 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14592 name, set LFACE_FONT (lface) to nil.
14593
14594 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14595 return Qnil.
14596
145972008-02-01 Kenichi Handa <handa@m17n.org>
14598
14599 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14600 (standard_args): Add "-enable-font-backend".
14601
146022008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14605 (struct xftdraw_list, xftdraw_list): Delete them.
14606 (register_xftdraw, check_xftdraw): Delete them.
14607 (xftfont_prepare_face): Don't call register_xftdraw.
14608 (xftfont_done_face): Don't call check_xftdraw.
14609 (xftfont_draw): Get background color only when with_background is
14610 nonzero.
14611
14612 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14613
146142008-02-01 Kenichi Handa <handa@m17n.org>
14615
14616 These changes are for the new font handling codes.
14617
14618 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14619 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14620 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14621 (FONTSRC, FONTOBJ): New variables.
14622 (obj): Add $(FONTOBJ).
14623 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14624 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14625 @LIBOTF_LIBS@.
14626 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14627 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14628
14629 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14630
14631 * character.h (Vscript_representative_chars): Extern it.
14632
14633 * character.c (Vscript_representative_chars): New variable.
14634 (syms_of_character): Declare it as a Lisp variable.
14635
14636 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14637 enable_font_backend is nonzero, accept the composition method
14638 COMPOSITION_WITH_GLYPH_STRING.
14639
14640 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14641 enumeration COMPOSITION_WITH_GLYPH_STRING.
14642
14643 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14644 members clip_x, clip_y, clip_width, and clip_height.
14645 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14646
14647 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14648 --enable-font-backend. Call syms_of_font.
14649
14650 * fns.c (assoc_no_quit): New function.
14651
14652 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14653 (face_for_font, new_fontset_from_font)
14654 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14655
14656 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14657 (fontset_font, fontset_ascii, face_for_char)
14658 (make_fontset_for_ascii_face, Ffont_info)
14659 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14660 is nonzero, use font-backend mechanism.
14661 (find_font_encoding): Make it non-static.
14662 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14663 New functions.
14664
14665 * frame.h (struct frame): New members resx and resy.
14666 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14667 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14668
14669 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14670 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14671
14672 * lisp.h (assoc_no_quit): Extern it.
14673
14674 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14675 Through out the file, use FONT_INFO_FROM_FACE instead of
14676 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14677 rif->per_char_metric.
14678 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14679 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14680 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14681 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14682 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14683 nonzero, use font-backend mechanism.
14684 (get_per_char_metric): New function.
14685
14686 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14687 (set_lface_from_font_name)
14688 (set_font_frame_param, free_realized_face)
14689 (prepare_face_for_display, clear_face_gcs)
14690 (Finternal_set_font_selection_order, realize_x_face)
14691 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14692 font-backend mechanism.
14693 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14694 (load_face_font) [USE_FONT_BACKEND]: Abort.
14695 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14696 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14697
14698 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14699 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14700 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14701 nonzero, register all available font drivers. Call
14702 x_default_font_parameter for deciding a font.
14703 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14704
14705 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14706 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14707 (x_set_glyph_string_clipping_exactly)
14708 (x_compute_glyph_string_overhangs)
14709 (x_draw_glyph_string_foreground)
14710 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14711 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14712 enable_font_backend is nonzero, use font-backend mechanism.
14713 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14718 system_eol_type.
14719 (syms_of_coding): Initialize system_eol_type.
14720
14721 * process.c (Fset_process_coding_system): Inherit system's eol
14722 format if necessary.
14723
147242008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14725
14726 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14727
147282008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * coding.c (decode_eol): Pay attention to buffer relocation in
14731 del_range_2.
14732 (decode_coding): Call decode_eol before restoring undo_list.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * charset.c (Fdefine_charset_internal): Fix setting of
14737 emacs_mule_bytes.
14738
147392008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * keyboard.c (read_char): Check if C is a character or not before
14742 looking up Vkeyboard_translate_table.
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14747 condition to terminate the loop.
14748
147492008-02-01 Kenichi Handa <handa@m17n.org>
14750
14751 * coding.c (produce_composition): Compare charbuf[i] instead of
14752 args[i] against 0.
14753 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14754
147552008-02-01 Kenichi Handa <handa@m17n.org>
14756
14757 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14758 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14759 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14760 detect_coding.
14761 (emacs_mule_char): Handle old style (Emacs 20) component character
14762 of a composition.
14763 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14764 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14765 composition rule.
14766 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14767
147682008-02-01 Kenichi Handa <handa@m17n.org>
14769
14770 * coding.c (encode_coding_ccl): Allocate destination dynamically
14771 when necessary.
14772
147732008-02-01 Kenichi Handa <handa@m17n.org>
14774
14775 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14776 the loop. When quitted, show a proper error message.
14777
147782008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14781 src->clip_head and src->clip_tail temporarily instead of src->hl.
14782
14783 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14784 character sequence.
14785 (Fccl_execute_on_string): Use ASET, not XSET.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14790
147912008-02-01 Kenichi Handa <handa@m17n.org>
14792
14793 * coding.c (decode_coding): Fix the condition of terminating the
14794 decoding loop.
14795
147962008-02-01 Kenichi Handa <handa@m17n.org>
14797
14798 * data.c (Faset): On setting a character bigger than 255 in a
14799 unibyte string, signal an error instead of make the string multibyte.
14800
148012008-02-01 Kenichi Handa <handa@m17n.org>
14802
14803 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14804 made by a mapping table.
14805
148062008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14809 not.
14810 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14811 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14812
14813 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14814 s->face is NULL or not.
14815
148162008-02-01 Kenichi Handa <handa@m17n.org>
14817
14818 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14819 (x_draw_glyph_string): Fix drawing of right_overhang and
14820 left_overhang around/on cursor.
14821
14822 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14823
148242008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14827
148282008-02-01 Kenichi Handa <handa@m17n.org>
14829
14830 * coding.c (Fdefine_coding_system_internal)
14831 (Fdefine_coding_system_alias): Avoid a duplicated element in
14832 Vcoding_system_alist.
14833
148342008-02-01 Kenichi Handa <handa@m17n.org>
14835
14836 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14837
14838 * coding.c (Qcoding_system_define_form): New variable.
14839 (syms_of_coding): Intern and staticpro it.
14840 (Fcoding_system_p): Check Qcoding_system_define_form.
14841 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14842
14843 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14844 Fcoding_system_p.
14845 (CHECK_CODING_SYSTEM): If ID is not available, call
14846 Fcheck_coding_system.
14847 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14848 Try also Fcheck_coding_system.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * coding.c (code_conversion_restore): GCPRO arg.
14853
148542008-02-01 Kenichi Handa <handa@m17n.org>
14855
14856 * character.c (lisp_string_width): Check multibyteness of STRING.
14857
148582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14859
14860 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14861 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14862 (decode_mac_font_name): Use decode_coding_c_string instead of
14863 decode_coding.
14864 (x_load_font): Initialize fontp->fontset to -1. Set
14865 fontp->encoding_type.
14866
148672008-02-01 Kenichi Handa <handa@m17n.org>
14868
14869 * search.c (search_buffer): Give up BM search on case-fold-search
14870 if one of a target character has a case-equivalence of different
14871 byte length even if that target charcter is an ASCII.
14872 (simple_search): Fix calculation of byte length of matched text.
14873 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14874
148752008-02-01 Kenichi Handa <handa@m17n.org>
14876
14877 * coding.c (decode_coding): Fix handling of invalid bytes.
14878
148792008-02-01 Kenichi Handa <handa@m17n.org>
14880
14881 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14882 Unicode characters.
14883
148842008-02-01 Kenichi Handa <handa@m17n.org>
14885
14886 * coding.c (encode_coding_object): If a pre-write-conversion
14887 function makes a new buffer, kill it.
14888
148892008-02-01 Kenichi Handa <handa@m17n.org>
14890
14891 * coding.c (QCascii_compatible_p): New variable.
14892 (syms_of_coding): Initialize it.
14893 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14894 calling string_char.
14895 (record_conversion_result): Add `default:' case.
14896 (coding_charset_list): Delete unused variable `coding_type'.
14897 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14898 property in the plist of the coding system.
14899 (Fcoding_system_put): Check QCascii_compatible_p.
14900
149012008-02-01 Miles Bader <miles@gnu.org>
14902
14903 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14904 removed calculation of frame `f', as it's now used.
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14909 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14910 (UNIDATA): New variable.
14911 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14912 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14913 $(RUN_TEMACS) unconditionally.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14918 (admindir): New variable.
14919 ($(lispsource)international/charprop.el): New target.
14920
149212008-02-01 Miles Bader <miles@gnu.org>
14922
14923 * character.c (chars-in-region): Remove obsolete function.
14924 (syms_of_character): Remove its initialization.
14925
149262008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14927
14928 * w32select.c (validate_coding_system)
14929 (setup_windows_coding_system): New functions.
14930 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14931 setup_windows_coding_system.
14932 (setup_config, Fw32_get_clipboard_data): Use
14933 validate_coding_system.
14934 (Fx_selection_exists): Move call to setup_config to a place
14935 where signals are allowed.
14936
14937 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14938 (Fcheck_coding_system): Add declarations.
14939
149402008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14943
149442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14945
14946 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14947 string as the second argument for x_new_fontset.
14948
149492008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14952 (encode_coding_object): Use safe_call instead of call2.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14957
14958 * Makefile.in (lisp): Include charprop.el.
14959
149602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14961
14962 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14963 Not sure if it's unnecessary.
14964
149652008-02-01 Steven Tamm <steventamm@mac.com>
14966
14967 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14968 some possibly unnecessary fontset checking code that crashed
14969 when creating a new frame.
14970
149712008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14974 lookup_face.
14975
14976 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14977
14978 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14979
149802008-02-01 Kenichi Handa <handa@m17n.org>
14981
14982 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14983 (coding_charset_list): New function.
14984
14985 * coding.h (coding_charset_list): Extern it.
14986
149872008-02-01 Kenichi Handa <handa@m17n.org>
14988
14989 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14990 concatenation of family and registry.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * character.h (BYTE8_STRING): Fix typo.
14995
14996 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14997 string to multibyte (sync to HEAD).
14998
14999 * casefiddle.c (casify_region): Handle changes in byte-length
15000 using replace_range_2 (sync to HEAD).
15001
150022008-02-01 Andreas Schwab <schwab@suse.de>
15003
15004 * chartab.c (map_char_table): GCPRO table and arg.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15009 already at limit.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15014 instead of fast_c_string_match_ignore_case.
15015 (find_font_encoding): Change argument to Lisp_Object. Use
15016 fast_string_match_ignore_case instead of
15017 fast_c_string_match_ignore_case. Change caller.
15018
150192008-02-01 Kenichi Handa <handa@m17n.org>
15020
15021 * xdisp.c (get_next_display_element): In unibyte case, decide to
15022 display in octal form by checking a character by
15023 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15024
15025 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15026
15027 * character.c (unibyte_has_multibyte_table): New variable.
15028
15029 * character.h (unibyte_has_multibyte_table): Extern it.
15030 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * coding.c (encode_coding_iso_2022): Fix handling of charset
15035 annotation.
15036
150372008-02-01 Kenichi Handa <handa@m17n.org>
15038
15039 * coding.c (setup_coding_system): If coding_system is nil, use
15040 Qundecided.
15041 (Fterminal_coding_system): Return nil if terminal coding system is
15042 `undecided'.
15043 (syms_of_coding): Define coding-system `undecided' here. Setup
15044 terminal_coding as `undecided'.
15045
150462008-02-01 Kenichi Handa <handa@m17n.org>
15047
15048 * xdisp.c (message_dolog, set_message_1): Call
15049 unibyte_char_to_multibyte with arg type int.
15050
15051 * lread.c (read1): Fix reading of a char-table.
15052
15053 * print.c (print_object): Include sub char-table in circularities
15054 detection.
15055
150562008-02-01 Kenichi Handa <handa@m17n.org>
15057
15058 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15059 Append the found sequences in car of ARGS instead of prepending.
15060
150612008-02-01 Kenichi Handa <handa@m17n.org>
15062
15063 * fileio.c (report_file_error): Make a unibyte string from
15064 strerror (errorno).
15065 (Fsubstitute_in_file_name): Fix the arg to
15066 unibyte_char_to_multibyte. It is evaluated twice.
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15071
150722008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15075 BOM is not found.
15076 (detect_coding, detect_coding_system): Optimization for ISO-2022
15077 when no 8-bit data is found.
15078
150792008-02-01 Jason Rumney <jasonr@gnu.org>
15080
15081 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15082
150832008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15086 CHARS.
15087
150882008-02-01 Steven Tamm <steventamm@mac.com>
15089
15090 * macterm.c (mac_encode_char): Add charset argument and update
15091 to use encoding_type.
15092 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15093 switch to pure fontset.
15094 (decode_mac_font_name): Temporarily remove decoding.
15095 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15096 (x_load_font): Temporarily remove encoding.
15097
150982008-02-01 Kenichi Handa <handa@m17n.org>
15099
15100 * xfaces.c (Fface_font): If frame is not on a window system,
15101 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15102 refer to face->font.
15103 (split_font_name_into_vector, build_font_name_from_vector)
15104 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15105 when HAVE_WINDOW_SYSTEM is defined.
15106
151072008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15110 (x_produce_glyphs): Fix setting of members of cmp in case
15111 cmp->glyph_len is zero.
15112
15113 * fontset.c (Fset_fontset_font): Fix docstring.
15114 (Ffontset_info): Make it backward compatible. New arg ALL.
15115
151162008-02-01 Kim F. Storm <storm@cua.dk>
15117
15118 * process.c (read_process_output): Grow decoding_buf when needed;
15119 this could cause a crash in allocate_string and compact_small_strings.
15120
151212008-02-01 Kenichi Handa <handa@m17n.org>
15122
15123 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15124
151252008-02-01 Kenichi Handa <handa@m17n.org>
15126
15127 * coding.c (setup_coding_system): Set coding->common_flags
15128 correctly for raw-text.
15129 (consume_chars): On encoding unibyte text by raw-text, don't check
15130 multibyte form.
15131 (encode_coding): On encoding by raw-text, never use translation tables.
15132
15133 * fileio.c (e_write): Short cut for the case of no encoding.
15134
151352008-02-01 Kenichi Handa <handa@m17n.org>
15136
15137 * coding.c (detect_coding, detect_coding_system): Delete unused
15138 variables.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15143 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * coding.c (Ffind_coding_systems_region_internal): Include
15148 raw-text and no-conversion in the result.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15153 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15154 FONT_DEF.
15155 (font_def_arg, add_arg, from_arg, to_arg): New args.
15156 (set_fontset_font): Change argument.
15157 (Fset_fontset_font): Fix for the case that TARGET is a script
15158 name and charset name.
15159 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * fontset.c (fontset_font): Rename from fontset_face. Change return
15164 value.
15165 (face_suitable_for_char_p, face_for_char): Adjust for the change
15166 of fontset_font.
15167 (make_fontset_for_ascii_face): Fix setting of the fontset element
15168 for ASCII.
15169 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15170 to get a font name.
15171 (Ffontset_info): Adjust for the change of fontset_font.
15172
15173 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15174
15175 * character.h (LEADING_CODE_LATIN_1_MIN)
15176 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15177
151782008-02-01 Kenichi Handa <handa@m17n.org>
15179
15180 * editfns.c (check_translation): New function.
15181 (Ftranslate_region_internal): Handle M:N mapping.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15186
151872008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15190 goto invalid_code.
15191 (decode_coding_iso_2022): Fix handling of invalid designation.
15192
15193 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15194 after calling code_conversion_save.
15195
151962008-02-01 Kenichi Handa <handa@m17n.org>
15197
15198 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15199
15200 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15201
15202 * fontset.c: Include "intervals.h".
15203 (fontset_face): Fix comparing of Lisp_Objects.
15204 (free_face_fontset, new_fontset_from_font_name): Fix
15205 Lisp_Object/int mixup.
15206
15207 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15208
15209 * coding.c: Add many prototypes for static functions.
15210 (get_translation_table): Allow max_lookup to be NULL.
15211 (decode_coding, Ffind_coding_systems_region_internal)
15212 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15213 get_translation_table with max_lookup NULL.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * coding.c (get_translation_table): Declare it as Lisp_Object.
15218 (LOOKUP_TRANSLATION_TABLE): New macro.
15219 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15220 instead of CHAR_TABLE_REF.
15221
152222008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15225 annotation data format.
15226 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15227 Change arguments FROM and TO to single argument NCHARS. Change caller.
15228 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15229 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15230 (decode_coding_ccl, decode_coding_charset): Pay attention to
15231 coding->charbuf_used.
15232 (get_translation): New function.
15233 (produce_chars): New arguments translation_table and last_block.
15234 Translate characters here. Return number of carryover chars.
15235 Change caller.
15236 (produce_composition): New argument pos. Change caller.
15237 Adjust for the change of annotation data format.
15238 (produce_charset, produce_annotation): Likewise.
15239 (decode_coding, encode_coding): Don't call translate_chars.
15240 (consume_chars): New arg translation_table. Change caller.
15241 (translate_chars): Delete.
15242 (syms_of_coding): Make translation-table's number of extra slots 2.
15243
152442008-02-01 Kenichi Handa <handa@m17n.org>
15245
15246 * search.c (simple_search): Fix setting this_pos_byte in backward
15247 search.
15248
15249 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15250 byte sequence.
15251 (detect_coding_ccl): Fix setting of the variable valids.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15256
15257 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15258
15259 * editfns.c (Ftranslate_region_internal): Rename from
15260 Ftranslate_region. Accept a char-table in TABLE.
15261 (syms_of_editfns): Defsubr Stranslate_region_internal.
15262
15263 * xfaces.c (set_lface_from_font_name): If a font is specified for
15264 a frame, generate a fontset from the font.
15265 (build_scalable_font_name): If the scalable font is requested for
15266 a specific size, don't change that size.
15267 (try_font_list): Try a scalable font also in the case that a
15268 pattern string is specified.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * xfaces.c (Fface_font): New optional arg CHARACTER.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * charset.h (CHARSET_OFFSET): New macro.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15281
15282 * fontset.c (fontset_face): Handle the case that repertory is a
15283 char-table.
15284 (find_font_encoding): Return nil for unknown encoding.
15285 (Fset_fontset_font): Ignore a font of unknown encoding.
15286
152872008-02-01 Kenichi Handa <handa@m17n.org>
15288
15289 * keymap.c (describe_vector): Handle default value of a char table.
15290
15291 * fontset.c (fontset_face): Handle fallback fonts correctly.
15292 (Ffontset_info): Return infomation about fallback fonts.
15293
152942008-02-01 Kenichi Handa <handa@m17n.org>
15295
15296 * fontset.c (FONTSET_DEFAULT): New macro.
15297 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15298 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15299 the case that it is nil.
15300 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15301 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15302
15303 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15304 subset or superset.
15305
153062008-02-01 Kenichi Handa <handa@m17n.org>
15307
15308 * emacs.c (main): Call init_charset after syms_of_XXX.
15309
15310 * charset.c (Vcharset_map_directory): Delete.
15311 (Vcharset_map_path): New variable.
15312 (load_charset_map_from_file): Use Vcharset_map_path instead.
15313 (init_charset): Initialize Vcharset_map_path.
15314 (syms_of_charset): Delete declaration of "charset-map-directory",
15315 add declaration of "charset-map-path".
15316
153172008-02-01 Kenichi Handa <handa@m17n.org>
15318
15319 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15320 ASCII only string.
15321
15322 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15323
15324 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15325 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15326
153272008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15330
15331 * coding.c (QCmnemonic, QCdefalut_char)
15332 (QCdecode_translation_table, QCencode_translation_table)
15333 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15334 (get_translation_table): Return a list of translation tables if
15335 necessary.
15336 (decode_coding): Call get_translation_table with ENCODEP 0.
15337 (char_encodable_p): If translation_table is non-nil, always call
15338 translate_char.
15339 (Fdefine_coding_system_internal): Accept list of translation
15340 tables as :encode-translation-table and :decode-translation-table.
15341 (Fcoding_system_put): New function.
15342 (syms_of_coding): Declare new symbols. Defsubr
15343 Scoding_system_put.
15344 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15345 typically JISX0212.
15346
15347 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15348 when the charset is superset type.
15349
15350 * character.c (translate_char): Accept list of translation tables.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15355 (CODING_ATTR_TRANS_TBL): New macro.
15356
15357 * coding.c (get_translation_table): New function.
15358 (translate_chars): Fix the bug of skipping annotation data.
15359 (decode_coding, encode_coding): Utilize get_translation_table.
15360 (char_encodable_p, Funencodable_char_position): Translate char if
15361 necessary.
15362 (Ffind_coding_systems_region_internal)
15363 (Fcheck_coding_systems_region): Setup translation table for encode
15364 in a coding system attribute vector in advance.
15365 (Fdefine_coding_system_internal): Allow a symbol as translation
15366 table. For shift-jis type coding system, allow 4th charset.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15371
15372 * xdisp.c (get_next_display_element): Pass -1 as POS to
15373 FACE_FOR_CHAR if displaying a C-string.
15374
153752008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * composite.c (get_composition_id): Handle xoff and yoff in a
15378 composition rule.
15379
15380 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15381 (struct composition): New member lbearing and rbearing.
15382
15383 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15384 (x_get_glyph_overhangs): Handle a composition glyph.
15385 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15386
15387 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15388 composition glyph.
15389
153902008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * print.c: Include charset.h.
15393 (Vprint_charset_text_property): New variable.
15394 (Qdefault): Extern it.
15395 (PRINT_STRING_NON_CHARSET_FOUND)
15396 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15397 (print_check_string_result): New variable.
15398 (print_check_string_charset_prop): New function.
15399 (print_prune_charset_plist): New variable.
15400 (print_prune_string_charset): New function.
15401 (print_object): Call print_prune_string_charset if
15402 Vprint_charset_text_property is not t.
15403 (print_interval): Print nothing if interval->plist is nil.
15404 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15405 variable. Init and staticpro print_prune_charset_plist.
15406
154072008-02-01 Kenichi Handa <handa@m17n.org>
15408
15409 * fontset.c (new_fontset_from_font_name): Use the specified font
15410 for all characters in the new fontset.
15411
15412 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15413 OBJECT args.
15414
15415 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15416 OBJECT args for composition too.
15417
15418 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15419 OBJECT args.
15420
154212008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15424
15425 * fontset.c (reorder_font_vector): Adjust for the change of
15426 FONT_DEF format.
15427 (fontset_face): New arg id. Change caller.
15428 (face_for_char): New args pos and object.
15429 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15430 (fs_query_fontset): Check NAME by Fassoc too.
15431 (Fset_fontset_font): Allow non-XLFD font name.
15432 (Ffontset_info): Adjust for the change of FONT_DEF format.
15433
15434 * fontset.h (face_for_char): Adjust prototype.
15435
15436 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15437 (append_space, extend_face_to_end_of_line)
15438 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15439 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15440
15441 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15442 POS and OBJECT args.
15443
15444 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15445 POS and OBJECT args.
15446
154472008-02-01 Jason Rumney <jasonr@gnu.org>
15448
15449 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15450 of GlobalAlloc'ed memory.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15455
15456 * charset.h (charset_table_used): Delete extern.
15457
15458 * charset.c (charset_table_used): Make it static.
15459 (map_charset_chars): Fix args to c_function with.
15460
15461 * chartab.c (map_sub_char_table_for_charset): Fix args to
15462 c_function with.
15463
15464 * coding.h (enum coding_result_code): Delete
15465 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15466
15467 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15468 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15469 (Vlast_code_conversion_error): New variables.
15470 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15471 (ONE_MORE_BYTE): Record error if any instead of signaling an
15472 error. If non-ASCII multibyte char is found, return the negative
15473 value of the code. All callers changed to check it.
15474 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15475 (record_conversion_result): New function. Change all codes setting
15476 coding->result to call this function.
15477 (detect_coding_utf_8, decode_coding_utf_8)
15478 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15479 Don't use the local variable incomplete.
15480 (emacs_mule_char): Change the second arg to `const'.
15481 (decode_coding): Fix of flushing out unprocessed data.
15482 (make_conversion_work_buffer): Fix making of a work buffer.
15483 (decode_coding_object): Return coding->dst_object.
15484
15485 * fontset.c (set_fontset_font): Fix args.
15486
15487 * lisp.h (CHARACTERBITS): Define as 22.
15488
15489 * process.c (send_process): Be sure to set coding->src_multibyte.
15490
15491 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * xdisp.c (handle_auto_composed_prop): Give limit to
15496 Fnext_single_char_property_change.
15497
154982008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * composite.c (syms_of_composite): Don't make the composition hash
15501 table weak.
15502
15503 * fontset.c (Fset_fontset_font): Fix docstring.
15504
15505 * lisp.h (detect_coding_system): Adjust prototype.
15506
15507 * fileio.c (kill_workbuf_unwind): Delete this function.
15508 (Finsert_file_contents): Adjust the call of detect_coding_system.
15509 Get conversion_buffer by code_conversion_save. Use the macro
15510 CODING_MAY_REQUIRE_DECODING. After decoding, update
15511 coding_system.
15512
15513 * coding.h (make_conversion_work_buffer): Delete extern.
15514 (code_conversion_save): Extern it.
15515
15516 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15517 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15518 (decode_coding_utf_8): Don't do eol converion.
15519 (detect_coding_utf_16): Check coding->src_chars, not
15520 coding->src_bytes. Add heuristics for those that have no signature.
15521 (decode_coding_emacs_mule, decode_coding_iso_2022)
15522 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15523 Don't do eol converion.
15524 (adjust_coding_eol_type): Return a new coding system.
15525 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15526 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15527 each change.
15528 (decode_coding): Pay attention to undo_list. Do eol conversion for
15529 all types of coding-systems (if necessary).
15530 (Vcode_conversion_work_buf_list): Delete it.
15531 (Vcode_conversion_reused_workbuf): Rename from
15532 Vcode_conversion_reused_work_buf.
15533 (Vcode_conversion_workbuf_name): New variable.
15534 (reused_workbuf_in_use): New variable.
15535 (make_conversion_work_buffer): Delete the arg DEPTH.
15536 (code_conversion_restore): Change argument to cons.
15537 (code_conversion_save): Delete the argument BUFFER. Change callers.
15538 (detect_coding_system): New argument src_chars. Change callers.
15539 Fix for utf-16 detection.
15540 (init_coding_once): Don't use ISO_carriage_return.
15541 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15542 reused_workbuf_in_use.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * keymap.c (store_in_keymap): Pay attention to the case that idx
15547 is a cons specifying a character range.
15548
155492008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15552 HANDLED_RECOMPUTE_PROPS.
15553
15554 * coding.c (Fdefine_coding_system_internal): Fix checking of
15555 ascii compatibility.
15556
155572008-02-01 Kenichi Handa <handa@m17n.org>
15558
15559 * charset.c (find_charsets_in_text): Delete unused locale variable.
15560 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15561
15562 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15563 Resync charset_list to Vemacs_mule_charset_list.
15564
15565 * keymap.c (store_in_keymap): Pay attention to the case that idx
15566 is a cons specifying a character range.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * composite.c (update_compositions): Bind inhibit-read-only, etc
15571 to t before calling remove-list-of-text-properties.
15572
15573 * print.c (print_object): Always print ASCII chars as is.
15574
155752008-02-01 Kenichi Handa <handa@m17n.org>
15576
15577 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15578
15579 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15580 is a char table.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * xfaces.c (set_lface_from_font_name): Fix for the case that
15589 FONTNAME is not fontset name.
15590
155912008-02-01 Kenichi Handa <handa@m17n.org>
15592
15593 * fns.c (base64_encode_1): Fix previous change.
15594
155952008-02-01 Kenichi Handa <handa@m17n.org>
15596
15597 * fontset.c (set_fontset_font): New function.
15598 (Fset_fontset_font): If a font is specified for a charset, use
15599 map_charset_chars to store the font spec in a fontset.
15600
156012008-02-01 Kenichi Handa <handa@m17n.org>
15602
15603 * fontset.c (fontset_face): Create a fallback fontset on demand.
15604 (make_fontset): Don't create a fallback fontset here.
15605 (free_face_fontset): Free a fallback fontset (if any) too.
15606 (n_auto_fontsets): Delete this variable.
15607 (auto_fontset_alist): New variable.
15608 (new_fontset_from_font_name): Check auto_fontset_alist.
15609 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15610 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15611 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15612 Defsubr Sfontset_list_all.
15613
156142008-02-01 Kenichi Handa <handa@m17n.org>
15615
15616 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15617
156182008-02-01 Kenichi Handa <handa@m17n.org>
15619
15620 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15621
156222008-02-01 Kenichi Handa <handa@m17n.org>
15623
15624 * editfns.c (Fgoto_char): Fix docstring.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * insdel.c (insert_from_gap): Adjust intervals correctly.
15629
156302008-02-01 Jason Rumney <jasonr@gnu.org>
15631
15632 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15633 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15634 (w32_initialize): Try to load it.
15635 (x_get_font_repertory): Use it if available.
15636 (w32_encode_char): Add shortcut for unicode output.
15637
15638 * w32fns.c (w32_load_system_font): Default charset to -1.
15639 (x_to_w32_charset): Match all fonts for unicode.
15640 (w32_to_x_charset): New parameter matching. Don't return partial
15641 or wildcard charsets.
15642 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15643 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15644 (w32_to_x_font): Match charset to real charset.
15645 (enum_font_cb2): Always list unicode versions.
15646
15647 * makefile.w32-in (temacs): Increase EMHEAP.
15648
156492008-02-01 Jason Rumney <jasonr@gnu.org>
15650
15651 * w32term.c (w32_encode_char): New charset parameter.
15652 font_info.encoding becomes encoding_type.
15653 (x_get_font_repertory): New function. Warning: stub only!
15654 (x_new_font): Return quickly if font already set.
15655 (x_new_fontset): fontsetname parameter is Lisp_Object.
15656 Use new fs_query_fontset. Try new_fontset_from_font_name.
15657 Use fontset_name for return value.
15658
15659 * w32term.h: Declare x_get_font_repertory.
15660
15661 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15662 place of find_charset_in_text. Use encode_coding_object in place
15663 of encode_coding.
15664 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15665 decode_coding.
15666
15667 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15668 of x_new_fontset.
15669 (w32_load_system_font): Initialize charset as unicode.
15670 font_info.encoding becomes encoding_type.
15671 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15672 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15673 (syms_of_w32fns): Set get_font_repertory_func.
15674
15675 * w32console.c: Include character.h. Use terminal_encode_buffer
15676 from term.c.
15677 (write_glyphs): Use new version of encode_terminal_code. Use
15678 encode_coding_object in place of encode_coding.
15679
15680 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15681 encoding becomes encoding_type.
15682
15683 * term.c (terminal_encode_buffer): Make externally visible.
15684
15685 * makefile.w32-in: Add character.h dependancies.
15686 (character.o, chartab.o): New targets.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15691 CODING_ID_EOL_TYPE.
15692
156932008-02-01 Andreas Schwab <schwab@suse.de>
15694
15695 * coding.c (produce_chars): Revert last change.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * charset.h (charset_unicode): Extern it.
15700
15701 * charset.c (string_xstring_p): Check by (C >= 0x100).
15702 (find_charsets_in_text): Change format of the arc CHARSETS. New
15703 arg MULTIBYTE.
15704 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15705 change of find_charsets_in_text.
15706 (Fsplit_char): Fix doc. Never return unknown.
15707
15708 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15709
15710 * coding.c (Fdefine_coding_system_alias): Update
15711 Vcoding_system_list.
15712
15713 * fontset.c (load_font_get_repertory): Pay attention to the case
15714 that ENCODING of a font is specified by a char-table.
15715
15716 * xterm.c (x_get_font_repertory): Handle the case that the
15717 encoding of font is other than Unicode.
15718
157192008-02-01 Kenichi Handa <handa@m17n.org>
15720
15721 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15722 if a character is encodable by the terminal coding system. If
15723 not, produces proper number of `?'s. Update
15724 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15725 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15726
157272008-02-01 Kenichi Handa <handa@m17n.org>
15728
15729 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15730 variables.
15731 (encode_terminal_code): Change argument. Encode multiple
15732 characters at once. Store the result of encoding in
15733 terminal_encode_buffer.
15734 (write_glyphs, insert_glyphs): Adjust for the change of
15735 encode_terminal_code.
15736 (term_init): Initialize terminal_encode_buffer and
15737 terminal_encode_buf_size.
15738
15739 * coding.c (consume_chars): If coding->src_object is nil, don't
15740 check annotation.
15741
157422008-02-01 Kenichi Handa <handa@m17n.org>
15743
15744 * character.c (char_string): Use ASCII_CHAR_P instead of
15745 SINGLE_BYTE_CHAR_P.
15746
157472008-02-01 Kenichi Handa <handa@m17n.org>
15748
15749 * xdisp.c (handle_auto_composed_prop): Check if the last
15750 characters of auto-composed region is newly composed with the
15751 following characters.
15752 (handle_composition_prop): Fix checking of point being inside
15753 composition.
15754
157552008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * fns.c (concat): Don't change multibyteness of the result by
15758 concatenating an 8-bit character.
15759
15760 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15761 multibyteness of the result when newelt is an 8-bit character.
15762
157632008-02-01 Dave Love <fx@gnu.org>
15764
15765 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15766 EMACS_INT.
15767
15768 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15769
15770 * xfaces.c (face_numeric_value): Declare dim size_t.
15771 (Finternal_lisp_face_equal_p): Remove unused f.
15772
15773 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15774 (MATRIX_ROW): Remove unused vars.
15775 (draw_glyphs, x_insert_glyphs, fast_find_position)
15776 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15777 byte/char counts.
15778
15779 * regex.c (regex_compile): Remove unused var.
15780
15781 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15782
15783 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15784 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15785
15786 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15787
15788 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15789
15790 * fileio.c (Fwrite_region): Remove unused var.
15791
15792 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15793 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15794
15795 * composite.c (Fremove_list_of_text_properties): Declare.
15796
15797 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15798 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15799 (coding_inherit_eol_type): Remove unused attrs.
15800 (detect_coding): Cast arg of detect_eol.
15801
15802 * charset.c (syms_of_charset): Remove unused var p.
15803 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15804 byte/char counts.
15805
15806 * casetab.c (set_case_table): Remove unused var.
15807
15808 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15809 unused vars.
15810
158112008-02-01 Dave Love <fx@gnu.org>
15812
15813 * xterm.c (x_bitmap_mask): Declare.
15814
158152008-02-01 Dave Love <fx@gnu.org>
15816
15817 * xterm.c (x_term_init): Fix type error.
15818
15819 * lisp.h: Add Funibyte_char_to_multibyte.
15820
15821 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15822 (Fset_coding_system_priority): Doc fix.
15823
15824 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15825
15826 * indent.c (check_composition): Make start and end EMACS_INT.
15827
15828 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15829
15830 * xdisp.c (handle_composition_prop, check_point_in_composition):
15831 Make buffer positions EMACS_INT.
15832
15833 * composite.c (find_composition, run_composition_function)
15834 (update_compositions, Ffind_composition_internal): Make buffer
15835 positions EMACS_INT.
15836
15837 * composite.h (find_composition, update_compositions): Make
15838 position args EMACS_INT.
15839
15840 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15841
15842 * intervals.c (get_property_and_range):
15843 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15844
15845 * unexalpha.c: Don't include varargs.h.
15846
158472008-02-01 Dave Love <fx@gnu.org>
15848
15849 * coding.h (ENCODE_UTF_8): New.
15850
15851 * Makefile.in (gtkutil.o): Depend on coding.h.
15852
15853 * coding.c (Fset_coding_system_priority): Doc fix.
15854
158552008-02-01 Kenichi Handa <handa@m17n.org>
15856
15857 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15858 the case of auto saving.
15859
158602008-02-01 Andreas Schwab <schwab@suse.de>
15861
15862 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15863 `range' from GC.
15864
158652008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * fileio.c (choose_write_coding_system): Return a decided coding system.
15872 (Fwrite_region): Set Vlast_coding_system_used to the return value
15873 of choose_write_coding_system.
15874
158752008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * charset.c (Fset_charset_priority): Pay attention to duplicated
15878 arguments.
15879
15880 * coding.c (QCcategory): New variable.
15881 (syms_of_coding): Defsym it. Set all elements of
15882 Vcoding_category_table and their symbol values.
15883 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15884 coding-category-XXX, and coding-category-list.
15885 (Fdefine_coding_system_internal): Add category in the plist.
15886
158872008-02-01 Kenichi Handa <handa@m17n.org>
15888
15889 * callproc.c (Fcall_process): Handle carryover correctly.
15890
15891 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15892 (raw_text_coding_system): Check NILP (coding_system).
15893 (coding_inherit_eol_type): Check NILP (coding_system) and
15894 NILP (parent).
15895 (consume_chars): Fix for the case of raw-text.
15896
15897 * process.c (read_process_output): Handle carryover correctly.
15898
158992008-02-01 Dave Love <fx@gnu.org>
15900
15901 * regex.c (re_search_2): Fix last change.
15902
159032008-02-01 Kenichi Handa <handa@m17n.org>
15904
15905 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15906 target_multibyte. Even in a unibyte case, return a converted
15907 multibyte char.
15908 (GET_CHAR_AFTER): New macro.
15909 (PATFETCH): Translate via multibyte char.
15910 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15911 (SETUP_MULTIBYTE_RANGE): New macro.
15912 (regex_compile): Setup compiled code so that its multibyteness
15913 matches that of a target. Fix the handling of "[X-YZ]" using
15914 SETUP_MULTIBYTE_RANGE.
15915 (analyse_first) <charset>: For filling fastmap for all multibyte
15916 characters, don't check by BASE_LEADING_CODE_P.
15917 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15918 the same as RE_MULTIBYTE_P (bufp) now.
15919 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15920 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15921 (TRANSLATE_VIA_MULTIBYTE): New macro.
15922 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15923 It is the same as RE_MULTIBYTE_P (bufp) now.
15924 <exactn>: Translate via multibyte.
15925 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15926 translate it.
15927 <charset, charset_not>: Fetch a character by
15928 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15929 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15930 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15931 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15932 by GET_CHAR_AFTER.
15933 (bcmp_translate): Likewise.
15934
15935 * search.c (compile_pattern): Check the member target_multibyte,
15936 not the member multibyte of buf.
15937
15938 * lread.c (read1): While reading a string, set force_singlebyte
15939 and force_multibyte correctly.
15940
15941 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15942 up of unibyte_to_multibyte_table.
15943
159442008-02-01 Kenichi Handa <handa@m17n.org>
15945
15946 * coding.c (setup_coding_system): If coding has
15947 post-read-conversion or pre-write-conversion, set
15948 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15949 respectively.
15950 (decode_coding_gap): Run post-read-conversion if any.
15951
15952 * fileio.c (Finsert_file_contents): Even if we read into a
15953 unibyte buffer, check if we must decode the result or not.
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * coding.c (make_conversion_work_buffer): Change the work buffer
15958 name to the same one as that of Emacs 21.
15959
159602008-02-01 Kenichi Handa <handa@m17n.org>
15961
15962 * coding.h (make_conversion_work_buffer): Adjust prototype.
15963 (code_conversion_restore): Don't extern it.
15964
15965 * coding.c (detected_mask): Delete unused variable.
15966 (decode_coding_iso_2022): Pay attention to the byte sequence of
15967 CTEXT extended segment, and retain those bytes as is.
15968 (decode_coding_ccl): Delete unused variable `valids'.
15969 (setup_coding_system): Delete unused variable `category'.
15970 (consume_chars): Delete unused variable `category'. Make it work
15971 for non-multibyte case.
15972 (make_conversion_work_buffer): Change argument.
15973 (saved_coding): Delete unused variable.
15974 (code_conversion_restore): Don't check saved_coding->destination.
15975 (code_conversion_save): New function.
15976 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15977 instead of record_unwind_protect.
15978 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15979 (detect_coding_system): Delete unused variable `mask'.
15980 (Fdefine_coding_system_internal): Delete unused variable id.
15981
15982 * fileio.c (kill_workbuf_unwind): New function.
15983 (Finsert_file_contents): On replacing, call
15984 make_conversion_work_buffer with correct args, and call
15985 record_unwind_protect with the first arg kill_workbuf_unwind.
15986
15987 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15988
159892008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15992 (fontset_add): Fix for the case that TO is less than TO1.
15993 (Ffontset_info): Don't use fallback fontset on checking the
15994 default fontset.
15995 (dump_fontset): New function for debugging.
15996
15997 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15998 coding_type is Qcharset.
15999
160002008-02-01 Kenichi Handa <handa@m17n.org>
16001
16002 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16003 (map_char_table): Don't inherit the value from the parent on
16004 initializing VAL. Adjust for the above change.
16005
160062008-02-01 Kenichi Handa <handa@m17n.org>
16007
16008 * coding.c (Qsignature, Qendian): Delete these variables.
16009 (syms_of_coding): Don't initialize them.
16010 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16011 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16012 detect_info->found.
16013 (decode_coding_utf_16): Don't detect BOM here.
16014 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16015 is NOT utf_16_without_bom.
16016 (setup_coding_system): For a coding system of type utf-16, check
16017 if the attribute :endian is Qbig or not (not nil or not), and set
16018 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16019 (detect_coding): If coding type is utf-16 and BOM detection is
16020 required, detect it.
16021 (Fdefine_coding_system_internal): For a coding system of type
16022 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * coding.c (coding_set_source): Fix for the case that the current
16027 buffer is different from coding->src_object.
16028 (decode_coding_object): Don't use the conversion work buffer if
16029 DST_OBJECT is a buffer.
16030
160312008-02-01 Dave Love <fx@gnu.org>
16032
16033 * lread.c (read_emacs_mule_char) [len==2]: Index
16034 emacs_mule_charset correctly.
16035
160362008-02-01 Dave Love <fx@gnu.org>
16037
16038 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16039 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16040 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16041 treated specially.)
16042 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16043 (detected_mask): Remove Big5 bits.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 The following changes are to make the font rescaling facility
16048 compatible with Emacs 21.
16049
16050 * xfaces.c (Vface_font_rescale_alist): Rename from
16051 Vface_resizing_fonts.
16052 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16053 (font_rescale_ratio): Rename from font_resizing_ratio.
16054 (split_font_name): Set font->rescale_ratio.
16055 (better_font_p): Pay attention to font->rescale_ratio.
16056 (build_scalable_font_name): Likewise. Change RESX, and RESY
16057 fields.
16058 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16059
160602008-02-01 Kenichi Handa <handa@m17n.org>
16061
16062 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16063 (Qutf_16_le): Remove these variables.
16064 (syms_of_coding): Don't DEFSYM them.
16065 (decode_coding_utf_16): Fix handling of BOM.
16066 (encode_coding_utf_16): Fix handling of BOM.
16067
160682008-02-01 Kenichi Handa <handa@m17n.org>
16069
16070 * fileio.c (Finsert_file_contents): On replacing, before decoding
16071 the file into the work buffer, set point of the work buffer to the end.
16072
160732008-02-01 Dave Love <fx@gnu.org>
16074
16075 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16076
160772008-02-01 Dave Love <fx@gnu.org>
16078
16079 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16080 and fix C types.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * xdisp.c (SKIP_GLYPHS): New macro.
16085 (set_cursor_from_row): Pay attention to string display properties.
16086
16087 * category.c (copy_category_entry): Fix for the case that RANGE
16088 is an integer.
16089
16090 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16091
16092 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16093
160942008-02-01 Kenichi Handa <handa@m17n.org>
16095
16096 * charset.c (Fcharset_id_internal): New function.
16097 (syms_of_charset): Defsubr it.
16098
16099 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16100 with the last arg charset_list acquired from coding.
16101 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16102 the attribute coding_attr_ccl_valids.
16103
16104 * coding.h (enum define_coding_ccl_arg_index): Set the first
16105 member coding_arg_ccl_decoder to coding_arg_max.
16106
16107 * ccl.h (ccl_driver): Adjust prototype.
16108
16109 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16110 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16111 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16112 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16113 last arg Qnil.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16118 call encode_char.
16119
16120 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16121
161222008-02-01 Dave Love <fx@gnu.org>
16123
16124 * composite.c (syms_of_composite): Make composition_hash_table weak.
16125
161262008-02-01 Kenichi Handa <handa@m17n.org>
16127
16128 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16129 (font_name_registry): Don't extern them.
16130 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16131
16132 * fontset.h (Qfontset): Don't extern it.
16133 (new_fontset_from_font_name): Extern it.
16134
16135 * fontset.c: Give 8 extra slots to fontset objects.
16136 (Qfontset_info): New variable.
16137 (syms_of_fontset): Defsym it.
16138 (FONTSET_FALLBACK): New macro.
16139 (fontset_face): Try also the default fontset.
16140 (make_fontset): Realize a fallback fontset from the default fontset.
16141 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16142 using split_font_name_into_vector and build_font_name_from_vector.
16143 (Fset_fontset_font): Access the elements of font_spec by enum
16144 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16145 name by using split_font_name_into_vector.
16146 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16147 generate a proper font name from the fontset name. Update
16148 Vfontset_alias_alist.
16149 (n_auto_fontsets): New variable.
16150 (new_fontset_from_font_name): New function.
16151 (Ffont_info): Store the information about fonts generated from the
16152 default fontset in the first extra slot of the returned char-table.
16153
16154 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16155 (font_name_registry): Delete function.
16156 (split_font_name_into_vector): New function.
16157 (build_font_name_from_vector): New function.
16158 (font_list): The argument REGISTRY is now a list of registry names.
16159 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16160 specifies an explicit font name, return the name as is. Make a
16161 list of registy names.
16162
16163 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16164 of x_new_fontset.
16165 (Fx_create_frame): Don't call x_new_fontset here. Just use
16166 x_list_fonts to check the existence of fonts.
16167
16168 * xterm.h (x_new_fontset): Adjust prototype.
16169
16170 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16171 string. Use new_fontset_from_font_name to create a fontset from a
16172 font name.
16173
161742008-02-01 Kenichi Handa <handa@m17n.org>
16175
16176 * syntax.c (Vfind_word_boundary_function_table): New name for
16177 Vnext_word_boundary_function_table.
16178 (find-word-boundary-function-table): New name for
16179 next-word-boundary-function-table.
16180
161812008-02-01 Dave Love <fx@gnu.org>
16182
16183 * Makefile.in: Fix some dependencies.
16184
16185 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16186 set it to nil before returning.
16187
16188 * composite.c (update_compositions): Fix type error.
16189
16190 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * xterm.c (x_new_font): Optimize for the case that the font is
16195 already set for the frame.
16196
161972008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * chartab.c (char_table_ascii): Check if the char table contents
16200 is sub-char-table or not.
16201 (char_table_set, char_table_set_range): Fix argument to
16202 char_table_ascii.
16203
16204 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16205 (detect_coding_utf_8, detect_coding_utf_16)
16206 (detect_coding_emacs_mule, detect_coding_iso_2022)
16207 (detect_coding_sjis, detect_coding_big5)
16208 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16209 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16210 sequence is valid in this coding system. Change callers.
16211 (MAX_ANNOTATION_LENGTH): New macro.
16212 (ADD_ANNOTATION_DATA): New macro.
16213 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16214 ADD_ANNOTATION_DATA. Change the format of annotation data.
16215 (ADD_CHARSET_DATA): New macro.
16216 (emacs_mule_char): New argument ID. Change callers.
16217 (decode_coding_emacs_mule, decode_coding_iso_2022)
16218 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16219 Produce charset annotation data in coding->charbuf.
16220 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16221 to charset annotation data in coding->charbuf.
16222 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16223 coding->common_flags if the coding system is iso-2022 based and
16224 uses designation.
16225 (produce_composition): Adjust for the new annotation data format.
16226 (produce_charset): New function.
16227 (produce_annotation): Handle charset annotation.
16228 (handle_composition_annotation, handle_charset_annotation): New
16229 functions.
16230 (consume_chars): Handle charset annotation. Utilize the above two
16231 functions.
16232 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16233 buffer, get the deleted text as a string and set
16234 coding->src_object to that string.
16235 (detect_coding, detect_coding_system): Use the new struct
16236 coding_detection_info.
16237
16238 * coding.h (struct coding_detection_info): New structure.
16239 (struct coding_system): Adjust prototype of the member `detector'.
16240 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16245
162462008-02-01 Dave Love <fx@gnu.org>
16247
16248 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16249 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16250 to new local and nullify apropos_accumulate before returning.
16251 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16252
162532008-02-01 Kenichi Handa <handa@m17n.org>
16254
16255 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16256 correctly.
e3eea1fc 16257
aac0c6e3
MR
162582008-02-01 Dave Love <fx@gnu.org>
16259
16260 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 The following changes are to make character composition happen
16265 automatically on displaying.
16266
16267 * Makefile.in (lisp, shortlisp): Add composite.elc.
16268
16269 * composite.h (Qauto_composed, Vauto_composition_function)
16270 (Qauto_composition_function): Extern them.
16271
16272 * composite.c (Vcomposition_function_table)
16273 (Qcomposition_function_table): Delete variables.
16274 (Qauto_composed, Vauto_composition_function)
16275 (Qauto_composition_function): New variables.
16276 (run_composition_function): Don't call
16277 compose-chars-after-function.
16278 (update_compositions): Clear `auto-composed' text property.
16279 (compose_chars_in_text): Delete this function.
16280 (syms_of_composite): Staticpro Qauto_composed and
16281 Qauto_composition_function. Declare Vauto_composition_function as
16282 a Lisp variable.
16283
16284 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16285
16286 * xdisp.c (it_props): Add an entry for Qauto_composed.
16287 (handle_auto_composed_prop): New function.
16288
16289 * xselect.c (selection_data_to_lisp_data): Don't call
16290 compose_chars_in_text.
16291
162922008-02-01 Dave Love <fx@gnu.org>
16293
16294 * keyboard.c (read_char): Modify checking around use of
16295 Vkeyboard_translate_table.
16296
16297 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16298 and fix C types.
16299
163002008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16303 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16304 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16305 the case that the last byte is '\r' correctly.
16306 (decode_coding): Flush out the unprocessed data correctly.
16307 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16308
163092008-02-01 Dave Love <fx@gnu.org>
16310
16311 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16312 Add XK_ISO... case.
16313 (xaw_scroll_callback): Revert last change.
16314
163152008-02-01 Kenichi Handa <handa@m17n.org>
16316
16317 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * xfaces.c (Vface_resizing_fonts): New variable.
16322 (struct font_name): New member `resizing_ratio'.
16323 (font_resizing_ratio): New function.
16324 (split_font_name): Set font->resizing_ratio.
16325 (better_font_p): Pay attention to font->resizing_ratio.
16326 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16327 RESX, and RESY fields.
16328 (try_alternative_families): Try scalable fonts if
16329 Vscalable_fonts_allowed is not Qt.
16330 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16331
163322008-02-01 Dave Love <fx@gnu.org>
16333
16334 * xterm.c (xaw_scroll_callback): Cast correctly.
16335
163362008-02-01 Dave Love <fx@gnu.org>
16337
16338 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16339 (lispy_kana_keys): Comment out.
16340 (make_lispy_event) [XK_kana_A]: Comment out.
16341
16342 * xterm.c (xaw_scroll_callback): Cast call_data.
16343 (XTread_socket): Deal with ASCII keysyms.
16344 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16345
163462008-02-01 Dave Love <fx@gnu.org>
16347
16348 * xterm.c (Vx_keysym_table): New.
16349 (syms_of_xterm): Initialize it.
16350 (XTread_socket): Use it.
16351 From head: Eliminate incorrect optimization that tried to avoid
16352 decoding the output of X*LookupString.
16353 (x_get_font_repertory): Delete charset declaration.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16358 return 0.
16359 (Fdefine_coding_system_internal): Setup
16360 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16361
163622008-02-01 Dave Love <fx@gnu.org>
16363
16364 * coding.c (Fcheck_coding_system): Doc fix.
16365
16366 * editfns.c (Finsert_byte): Return a proper value.
16367
163682008-02-01 Kenichi Handa <handa@m17n.org>
16369
16370 * coding.c (decode_coding): Fix args to translate_chars. Pay
16371 attention to Vstandard_translation_table_for_decode.
16372 (encode_coding): Fix args to translate_chars. Pay attention to
16373 Vstandard_translation_table_for_encode.
16374
16375 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16376 SINGLE_BYTE_CHAR_P.
16377
16378 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16379 not by SINGLE_BYTE_CHAR_P.
16380
16381 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16382 SINGLE_BYTE_CHAR_P.
16383
16384 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16385 SINGLE_BYTE_CHAR_P.
16386
16387 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16388 by SINGLE_BYTE_CHAR_P.
16389
16390 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16391 SINGLE_BYTE_CHAR_P.
16392
163932008-02-01 Dave Love <fx@gnu.org>
16394
16395 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16396
163972008-02-01 Dave Love <fx@gnu.org>
16398
16399 * fns.c (Flanginfo): Fix typo.
16400
16401 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16402
164032008-02-01 Kenichi Handa <handa@m17n.org>
16404
16405 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16406 (detect_coding_emacs_mule, detect_coding_iso_2022)
16407 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16408 incomplete byte sequence. Don't update *mask when correctly detected.
16409 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16410 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16411 (detect_coding, detect_coding_system): Adjust for the changes above.
16412
164132008-02-01 Kenichi Handa <handa@m17n.org>
16414
16415 * character.c (char_string): Rename from
16416 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16417 (string_char): Rename from string_char.
16418
16419 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16420 if C is greater than MAX_3_BYTE_CHAR.
16421 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16422 string_char instead of string_char_with_unification.
16423
164242008-02-01 Dave Love <fx@gnu.org>
16425
16426 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16427
164282008-02-01 Kenichi Handa <handa@m17n.org>
16429
16430 * keymap.c (push_key_description): Pay attention to force_multibyte.
16431
16432 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16433
164342008-02-01 Dave Love <fx@gnu.org>
16435
16436 * charset.c (define_charset_internal): Rename `supprementary'.
16437
16438 * Makefile.in (lisp, shortlisp): Remove latin-N.
16439
164402008-02-01 Dave Love <fx@gnu.org>
16441
16442 * xfns.c (x_window, x_window): Use use_xim.
16443
16444 * xterm.c (use_xim): Initialize.
16445 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16446 (x_term_init): Maybe set use_xim.
16447
16448 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16449
164502008-02-01 Kenichi Handa <handa@m17n.org>
16451
16452 * search.c (search_buffer): Fix case-fold-search of multibyte
16453 characters.
16454 (boyer_moore): Rename the last argument to char_high_bits.
16455
164562008-02-01 Kenichi Handa <handa@m17n.org>
16457
16458 * xdisp.c (display_string): Fix for the case of zero width glyph.
16459
16460 * xfns.c (x_set_font): Change the error message of the case that
16461 x_new_fontset returns Qt.
16462
16463 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16464 (Finternal_set_lisp_face_attribute): Use signal_error for the
16465 error of invalid fontset.
16466
16467 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16468 fontset, return Qt.
16469
164702008-02-01 Dave Love <fx@gnu.org>
16471
16472 * unexelf.c (unexec): Make .got handling not SGI-specific.
16473
16474 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16475
16476 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16477
16478 * keyboard.c (read_key_sequence): Fix type error.
16479
16480 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16481 type error.
16482
16483 * fontset.c (fontset_add): Return Lisp_Object.
16484
164852008-02-01 Dave Love <fx@gnu.org>
16486
16487 * charset.h (charset_ordered_list_tick): Declare extern.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 The following changes (and some of 2008-02-01 changes of mine) are
16492 for handling syntax, category, and case conversion for unibyte
16493 characters by converting them to multibyte on the fly. With these
16494 changes, we don't have to setup syntax and case tables for unibyte
16495 characters in each language environment.
16496
16497 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16498 multibyte if necessary.
16499
16500 * bytecode.c (Fbyte_code): Likewise.
16501
16502 * character.h (LEADING_CODE_LATIN_1_MIN)
16503 (LEADING_CODE_LATIN_1_MAX): New macros.
16504 (unibyte_to_multibyte_table): Extern it.
16505 (unibyte_char_to_multibyte): New macro.
16506 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16507 (CHAR_LEADING_CODE): New macro.
16508 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16509
16510 * character.c (unibyte_to_multibyte_table): New variable.
16511 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16512 (multibyte_char_to_unibyte): If C is an eight-bit character,
16513 convert it to the corresponding byte value.
16514
16515 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16516 not 1, signals an error. Update the elements of
16517 unibyte_to_multibyte_table.
16518 (init_charset_once): Initialize unibyte_to_multibyte_table.
16519 (syms_of_charset): Define the charset `iso-8859-1'.
16520
16521 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16522 as is without converting it to unibyte. In a unibyte buffer,
16523 convert C to multibyte before checking the syntax.
16524
16525 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16526
16527 * minibuf.c (Fminibuffer_complete_word): Use the macro
16528 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16529
16530 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16531
16532 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16533 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16534 that is zero, convert an eight-bit char to multibyte.
16535 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16536 non-emacs case.
16537 (PATFETCH): Convert an eight-bit char to multibyte.
16538 (HANDLE_UNIBYTE_RANGE): New macro.
16539 (regex_compile): Setup the compiled pattern for multibyte chars
16540 even if the given regex string is unibyte. Use PATFETCH_RAW
16541 instead of PATFETCH in many places. To handle `charset'
16542 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16543 only for ASCII chars.
16544 (analyse_first) <exactn>: Simplify because the compiled pattern
16545 is multibyte.
16546 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16547 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16548 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16549 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16550 multibyte always 1.
16551 (re_search_2): In emacs, set the locale variable multibyte to 1,
16552 otherwise to 0. New local variable target_multibyte. Check it
16553 to decide the multibyteness of STR1 and STR2. If
16554 target_multibyte is zero, convert unibyte chars to multibyte
16555 before translating and checking fastmap.
16556 (TARGET_CHAR_AND_LENGTH): New macro.
16557 (re_match_2_internal): In emacs, set the locale variable multibyte
16558 to 1, otherwise to 0. New local variable target_multibyte. Check
16559 it to decide the multibyteness of STR1 and STR2. Use
16560 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16561 <charset, charset_not>: If multibyte is nonzero, check fastmap
16562 only for ASCII chars. Call bcmp_translate with
16563 target_multibyte, not with multibyte.
16564 <begline>: Declare the local variable C as `unsigned'.
16565 (bcmp_translate): Change the last arg name to target_multibyte.
16566
16567 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16568 the regexp pattern and the matching target. Set cp->buf.multibyte
16569 to the multibyteness of the regexp pattern. Set
16570 cp->but.target_multibyte to the multibyteness of the matching target.
16571 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16572 FETCH_STRING_CHAR_ADVANCE.
16573 (Freplace_match): Convert unibyte chars to multibyte.
16574
16575 * syntax.c (char_quoted, back_comment, scan_words)
16576 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16577 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16578 unibyte chars to multibyte.
16579 (skip_chars): Delete the arg syntaxp, and move the code for
16580 handling syntaxes to skip_syntaxes. Change callers.
16581 Fix the case that the multibyteness of STRING and the current
16582 buffer doesn't match.
16583 (skip_syntaxes): New function.
16584 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16585 SINGLE_BYTE_CHAR_P.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * xfaces.c (QCfontset): New variable.
16590 (LFACE_FONTSET): New macro.
16591 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16592 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16593 (Finternal_set_lisp_face_attribute)
16594 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16595 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16596 check also LFACE_FONTSET_INDEX.
16597 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16598 attrs[LFACE_FONT_INDEX].
16599 (syms_of_xfaces): Intern and staticpro QCfontset.
16600
16601 * dispextern.h (enum lface_attribute_index): New member
16602 LFACE_FONTSET_INDEX.
16603
16604 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16605
166062008-02-01 Kenichi Handa <handa@m17n.org>
16607
16608 * coding.c (coding_set_destination): Fix coding->destination for
16609 the case converting a region.
16610 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16611 (encode_coding_object): Fix coding->dst_pos and
16612 coding->dst_pos_byte for the case converting a region.
16613
16614 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16615
16616 * character.h (BYTE8_STRING): New macro.
16617
16618 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16619
166202008-02-01 Kenichi Handa <handa@m17n.org>
16621
16622 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16623 characters by octal form.
16624
16625 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16626
16627 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16628 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16629 _fetch_multibyte_char_len.
16630 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16631
16632 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16633
16634 * casefiddle.c (casify_object): Simplify. Handle the case that
16635 the case conversion change the byte length.
16636 (casify_region): Likewise.
16637
16638 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16639
16640 * character.c (_fetch_multibyte_char_len): Delete this variable.
16641 (syms_of_character): Setup Vprintable_chars.
16642
16643 * editfns.c (Fchar_equal): Fix for the unibyte case.
16644 (Finsert_byte): New function.
16645 (syms_of_editfns): Defsubr it.
16646
16647 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16648 of direct code 0x3ffff.
16649
16650 * search.c (Freplace_match): Fix for the unibyte case.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * lread.c (safe_to_load_p): Fix the logic.
16655
16656 * syntax.c (scan_words): Don't treat characters belonging to
16657 different scripts as constituting a word.
16658
16659 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16660
16661 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16662
16663 * emacs.c (main): In the case of --unibyte, instead of aborting on
16664 finding non-empty buffer, make it unibyte.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16669 to create a fontset.
16670
166712008-02-01 Dave Love <fx@gnu.org>
16672
16673 * character.c (Funibyte_char_to_multibyte): Doc fix.
16674
16675 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * fontset.c (fontset_add): Make the type `int'.
16680 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16681
16682 * character.c (unibyte_char_to_multibyte)
16683 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16684 charset_unibyte, not charset_primary.
16685
16686 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16687
16688 * charset.c (charset_unibyte): Rename from charset_primary.
16689 (Funibyte_charset): Rename from Fprimary_charset.
16690 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16691 (syms_of_charset): Adjust for the above changes.
16692
16693 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16694 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16695 it->multibyte_p is zero.
16696
16697 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16698 Delete extern.
16699
167002008-02-01 Kenichi Handa <handa@m17n.org>
16701
16702 * coding.c (Fdefine_coding_system_internal): Fix category setting
16703 for a coding system of type iso-2022.
16704
167052008-02-01 Kenichi Handa <handa@m17n.org>
16706
16707 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16708
167092008-02-01 Kenichi Handa <handa@m17n.org>
16710
16711 * syntax.c (Vnext_word_boundary_function_table): New variable.
16712 (next-word-boundary-function-table): Declare it as a Lisp variable
16713 in syms_of_syntax.
16714 (scan_words): Call functions in Vnext_word_boundary_function_table
16715 if any.
16716
16717 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16718
16719 * fontset.c (fs_load_font): If fontp->charset is not negative,
16720 return fontp without setting its members.
16721
167222008-02-01 Dave Love <fx@gnu.org>
16723
16724 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16725
16726 * m/sparc.h (HAVE_ALLOCA): Delete.
16727
16728 * s/irix6-5.h: Don't include strings.h.
16729 (bcopy, bzero, bcmp): Don't undef.
16730
16731 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16732
16733 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16734 (TIOCSIGSEND): Don't test IRIX6.
16735 (bcopy, bzero, bcmp): Define conditionally.
16736
167372008-02-01 Kenichi Handa <handa@m17n.org>
16738
16739 * buffer.c (Qas, Qmake, Qto): New variables.
16740 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16741 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16742
16743 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16744 we are inserting a process output into a multibyte buffer.
16745
16746 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16747 multibyte_char_to_unibyte.
16748
16749 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16750 by the primary charset, make it eight-bit char.
16751 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16752
16753 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16754 (charset_8_bit__control, charset_8_bit_graphic)
16755 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16756 (define_charset_internal): New function.
16757 (syms_of_charset): Call define_charset_internal for pre-defined
16758 charsets.
16759
16760 * charset.h (charset_8_bit): Extern it.
16761
16762 * coding.c (make_conversion_work_buffer): Adjust for the change
16763 of Fset_buffer_multibyte.
16764 (encode_coding_raw_text): Increment p0 in the loop.
16765
16766 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16767
16768 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16769 for the change of Fset_buffer_multibyte.
16770
16771 * fns.c (Fstring_to_multibyte): New function.
16772 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16773
167742008-02-01 Dave Love <fx@gnu.org>
16775
16776 * xfns.c (x_put_x_image): Declare args.
16777
16778 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16779 (try_font_list): Declare an arg.
16780
16781 * xdisp.c (message2_nolog, set_message): Declare an arg.
16782
16783 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16784
16785 * syntax.c (scan_sexps_forward): Declare an arg.
16786
16787 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16788 Declare an arg.
16789
16790 * lisp.h (Fnew_fontset): Declare.
16791
16792 * keymap.c (push_key_description): Call CHARACTERP correctly.
16793
16794 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16795 (face_for_char): Delete unused vars.
16796 (Fset_fontset_font): Doc fix. Delete unused vars.
16797
16798 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16799
16800 * composite.c (update_compositions): Declare arg.
16801
16802 * cm.c (calccost, cmgoto): Declare args.
16803
16804 * charset.c: Remove `emacs' conditional. Doc fixes.
16805 (map_char_table_for_charset): Declare.
16806
16807 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16808
16809 * ccl.c: Remove `emacs' conditional.
16810
168112008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 The following changes are to allow specifying multiple font
16814 patterns for a character range (specified by script or charset).
16815
16816 * Makefile.in (abbrev.o): Depend on syntax.h.
16817 (xfaces.o): Depend on charset.h.
16818
16819 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16820 SINGLE_BYTE_CHAR_P.
16821
16822 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16823
16824 * character.h (Vchar_script_table): Extern it.
16825
16826 * character.c (Vscript_alist): Delete.
16827 (Vchar_script_table, Qchar_script_table): New variable.
16828 (syms_of_character): Declare Vchar_script_table as a lisp variable
16829 and initialize it.
16830
16831 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16832 have property char-table-extra-slots, make no extra slot.
16833
16834 * dispextern.h (struct face): Delete member `charset'.
16835 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16836 SINGLE_BYTE_CHAR_P.
16837 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16838 Add prototypes.
16839 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16840 (generate_ascii_font_name): Rename from generate_ascii_font.
16841
16842 * fontset.h (get_font_repertory_func): New prototype.
16843 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16844 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16845
16846 * fontset.c (Qprepend, Qappend): New variables.
16847 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16848 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16849 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16850 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16851 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16852 (load_font_get_repertory): New functions.
16853 (fontset_set): Delete.
16854 (fontset_face): New arg FACE. Return face ID, not face.
16855 Complete re-write to handle new fontset structure. Change caller.
16856 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16857 (face_for_char): Don't call lookup_face.
16858 (make_fontset_for_ascii_face): New arg FACE.
16859 (fs_load_font): New arg CHARSET_ID. Don't check
16860 Vfont_encoding_alist here.
16861 (find_font_encoding): New function.
16862 (list_fontsets): Use STRINGP, not ! NILP.
16863 (accumulate_script_ranges): New function.
16864 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16865 re-written to handle new fontset structure.
16866 (Ffontset_font): Return a copy of element.
16867 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16868 docstring of font-encoding-alist.
16869
16870 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16871 (Fset_fotset_font): Fix arguments to 5.
16872
16873 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16874
16875 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16876 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16877 (highlight_trailing_whitespace): Adjust for the change of
16878 lookup_named_face.
16879
16880 * xfaces.c: Include charset.h.
16881 (load_face_font): Delete argument C. Change caller.
16882 (generate_ascii_font_name): Rename from generate_ascii_font.
16883 (font_name_registry): New function.
16884 (cache_face): Store ascii faces before non-ascii faces in buckets.
16885 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16886 Lookup only ascii faces.
16887 (lookup_non_ascii_face): New function.
16888 (lookup_named_face): Delete argument C. Change caller.
16889 (lookup_derived_face): Delete argument C. Change caller.
16890 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16891 a string, just call font_list with it.
16892 (choose_face_font): Delete arguments FACE and C. New arg
16893 FONT_SPEC. Change caller.
16894 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16895 Change caller.
16896 (realize_non_ascii_face): New function.
16897 (realize_x_face): Call load_face_font here.
16898 (realize_tty_face): Delete argument C. Change caller.
16899 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16900 get a face ID.
16901 (dump_realized_face): Don't print charset of FACE.
16902
16903 * xfns.c (x_set_font): Always call x_new_fontset and
16904 store_frame_parameter.
16905 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16906 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16907
16908 * xterm.h (x_get_font_repertory): Extern it.
16909
16910 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16911 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16912 it->multibyte_p is zero.
16913 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16914 (x_new_fontset): If FONTSETNAME doesn't match any existing
16915 fontsets, create a new one.
16916 (x_get_font_repertory): New function.
16917
169182008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * coding.c (Ffind_coding_systems_region_internal): Detect an
16921 ASCII only string correctly.
16922
16923 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16924 version is 0.
16925
169262008-02-01 Kenichi Handa <handa@m17n.org>
16927
16928 * lread.c: Include "coding.h".
16929 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16930 (load_each_byte, unread_char): New variables.
16931 (readchar_backlog): Delete.
16932 (readchar): Return a character unless load_each_byte is nonzero.
16933 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16934 cons. If unread_char is not -1, simply return it.
16935 (unreadchar): Handle the case that readcharfun is
16936 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16937 (read_multibyte): Delete.
16938 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16939 (read_emacs_mule_char): New functions.
16940 (Fload): Even if the file doesn't have the extension ".elc", if
16941 safe_to_load_p returns a positive version number, assume that the
16942 file contains bytecompiled code. If the version is less than 22,
16943 load the file while decoding multibyte sequences by emacs-mule.
16944 (readevalloop): Don't use readchar_backlog.
16945 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16946 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16947 (read_escape): Delete the arg BYTEREP.
16948 (read1): Set load_each_byte to 1 temporarily while handling
16949 #@NUMBER. Don't call read_multibyte.
16950 (read_vector): Call Fread with a cons. If readcharfun is
16951 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16952 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16953 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16954 and Qload_force_doc_strings.
16955
169562008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * xdisp.c (face_before_or_after_it_pos): Call
16959 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16960
169612008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * character.h (TRAILING_CODE_P): New macro.
16964 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16965 (string_char_with_unification): Fix prototype.
16966 (Vscript_alist): Extern it.
16967
16968 * character.c (Vscript_alist): New variable.
16969 (string_char_with_unification, str_as_unibyte)
16970 (string_escape_byte8): Add `const' to local variables.
16971 (syms_of_character): Declare script-alist as a Lisp variable.
16972
16973 * charset.h (Vcharset_ordered_list): Extern it.
16974 (charset_ordered_list_tick): Extern it.
16975 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16976 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16977 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16978 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16979 (Funify_charset): Adjust for the change of Funify_charset.
16980
16981 * charset.c (charset_ordered_list_tick): New variable.
16982 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16983 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16984 deunify intead of unify a charset.
16985 (string_xstring_p): Add `const' to local variables.
16986 (find_charsets_in_text): Add `const' to arguments and local variables.
16987 (encode_char): Adjust for the change of Funify_charset. Fix
16988 detecting of invalid code.
16989 (Fset_charset_priority): Increment charset_ordered_list_tick.
16990 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16991 and TO_CODE.
16992
16993 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16994 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16995 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16996 (decode_coding_ccl, consume_chars)
16997 (Ffind_coding_systems_region_internal)
16998 (Fcheck_coding_systems_region): Add `const' to local variables.
16999
17000 * print.c (print_object): Use octal form for printing the
17001 contents of a bool vector.
17002
170032008-02-01 Dave Love <fx@gnu.org>
17004
17005 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17006 <version == 20>: Refuse to load.
17007
170082008-02-01 Dave Love <fx@gnu.org>
17009
17010 * fns.c: Move coding.h.
17011 (Qcodeset, Qdays, Qmonths): New.
17012 (concat): Use CHARACTERP instead of INTEGERP.
17013 (Flocale_codeset): Delete.
17014 (Flanginfo): New function.
17015 (syms_of_fns): Change accordingly.
17016
17017 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17018
170192008-02-01 Dave Love <fx@gnu.org>
17020
17021 * casetab.c (init_casetab_once, init_casetab_once): Fix
17022 CHAR_TABLE_SET call.
17023
17024 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17025
17026 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17027
17028 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17029 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17030 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17031
17032 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17033
17034 * coding.c (ENCODE_DESIGNATION, decode_eol)
17035 (make_conversion_work_buffer, code_conversion_restore)
17036 (Fdefine_coding_system_internal): Convert Lisp types.
17037 (code_conversion_restore): Use EQ, not ==.
17038 (Fencode_coding_string): Fix code_convert_string call.
17039
17040 * coding.h (code_convert_region): Fix prototype.
17041
17042 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17043
17044 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17045 (Ffontset_info): Convert Lisp types.
17046
17047 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17048
17049 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17050
17051 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17052
17053 * chartab.c: Include "...h", not <...h> in some cases.
17054
17055 * callproc.c (Fcall_process): Remove unused variables.
17056
170572008-02-01 Dave Love <fx@gnu.org>
17058
17059 * coding.c (Fset_coding_system_priority): Allow null arg list.
17060
170612008-02-01 Dave Love <fx@gnu.org>
17062
17063 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17064 (Fself_insert_and_exit): Use CHARACTERP.
17065
17066 * callproc.c (Fcall_process): Remove unused vars.
17067
17068 * xterm.c (XTread_socket): Add extra dead keysyms.
17069
17070 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17071
17072 * dispextern.h: Remove prototypes for redraw_frame,
17073 redraw_garbaged_frames.
17074
17075 * cmds.c (Fself_insert_command): Use CHARACTERP.
17076
17077 * chartab.c (make_sub_char_table): Remove unused var.
17078 (Fset_char_table_default, Fmap_char_table): Doc fix.
17079
17080 * keymap.c (access_keymap): Remove generic char code.
17081 (push_key_description): Use CHARACTERP.
17082
170832008-02-01 Dave Love <fx@gnu.org>
17084
17085 * charset.c: Doc fixes.
17086 (Funify_charset): Extra checking.
17087
170882008-02-01 Dave Love <fx@gnu.org>
17089
17090 * lread.c: Remove some unused variables.
17091 (safe_to_load_p): If safe, return the magic number version byte.
17092 (Fload): Maybe use load-with-code-conversion.
17093
170942008-02-01 Kenichi Handa <handa@m17n.org>
17095
17096 * category.c (Fmodify_category_entry): Don't modify the contents
17097 of category_set for characters out of the range. Avoid
17098 unnecessary modification.
17099
17100 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17101 Vchar_unify_table. The default value of the table is now nil.
17102
17103 * character.c (syms_of_character): Setup Vchar_width_table for
17104 eight-bit-control and raw-byte chars.
17105
17106 * charset.h (enum define_charset_arg_index): Delete
17107 charset_arg_parents and add charset_arg_subset and
17108 charset_arg_superset.
17109 (enum charset_attr_index): Delete charset_parents and add
17110 charset_subset and charset_superset.
17111 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17112 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17113 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17114 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17115 (CHARSET_SUPERSET): New macros.
17116 (charset_work): Extern it.
17117 (ENCODE_CHAR): Use charset_work.
17118 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17119 (map_charset_chars): Extern it.
17120
17121 * charset.c (load_charset_map): Set the default value of encoder
17122 and deunifier char-tables to nil.
17123 (map_charset_chars): Change argument. Change callers. Use
17124 map_char_table_for_charset instead of map_char_table.
17125 (Fmap_charset_chars): New optional args from_code and to_code.
17126 (Fdefine_charset_internal): Adjust for the change of
17127 `define-charset' (:parents -> :subset or :superset).
17128 (charset_work): New variable.
17129 (encode_char, syms_of_charset): Adjust for the change of
17130 Fdefine_charset_internal.
17131 (Ffind_charset_string): Setup the vector `charsets' correctly.
17132
17133 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17134 the previous change.
17135 (char_table_ref_and_range): Adjust for the above change.
17136 (map_sub_char_table_for_charset): New function.
17137 (map_char_table_for_charset): New function.
17138
17139 * keymap.c (describe_vector): Handle a char-table directly here.
17140 (describe_char_table): Delete.
17141
17142 * lisp.h (map_charset_chars): Delete.
17143
171442008-02-01 Dave Love <fx@gnu.org>
17145
17146 * fns.c (count_combining): Comment out (unused).
17147 (Flocale_codeset): New.
17148 (syms_of_fns): Defsubr it.
17149
17150 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17151 (size_t): Remove.
17152
171532008-02-01 Dave Love <fx@gnu.org>
17154
17155 * Makefile.in (chartab.o): Depend on charset.h.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * character.c (syms_of_character): Set the default value of
17160 Vprintable_chars to Qnil.
17161
171622008-02-01 Dave Love <fx@gnu.org>
17163
17164 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17165
171662008-02-01 Kenichi Handa <handa@m17n.org>
17167
17168 * charset.c (load_charset_map): Handle the case that from < to
17169 correctly.
17170
17171 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17172 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17173 Pay attention to raw-8-bit chars.
17174
171752008-02-01 Kenichi Handa <handa@m17n.org>
17176
17177 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17178 It is not bytecompiled now.
17179
17180 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17181 (charset_jisx0208): New variables.
17182 (Fdefine_charset_internal): Setup them if appropriate.
17183 (init_charset_once): Initialize them to -1.
17184
17185 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17186 (charset_jisx0208): Extern them.
17187
17188 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17189 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17190 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17191 (setup_iso_safe_charsets): Fix arguments to Fassq.
17192 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17193 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17194 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17195 (encode_coding_iso_2022): Change the 1st arg to
17196 ENCODE_ISO_CHARACTER to a variable.
17197
171982008-02-01 Kenichi Handa <handa@m17n.org>
17199
17200 * charset.h (enum define_charset_arg_index): New enums
17201 charset_arg_min_code and charset_arg_max_code.
17202 (struct charset): New member char_index_offset.
17203
17204 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17205 Take charset->char_index_offset into account.
17206 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17207 args[charset_arg_max_code]. Setup charset.char_index_offset.
17208 (syms_of_charset): Fix args to Fdefine_charset_internal.
17209
172102008-02-01 Dave Love <fx@gnu.org>
17211
17212 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17213
172142008-02-01 Dave Love <fx@gnu.org>
17215
17216 * coding.c: Doc fixes.
17217 (Fcoding_system_aliases): Fix return value.
17218 (Qmac): Remove (duplicated) definition.
17219
172202008-02-01 Dave Love <fx@gnu.org>
17221
362654a6
JB
17222 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17223 New functions.
aac0c6e3
MR
17224
17225 * character.c (Fstring): Doc fix.
17226
17227 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17228
362654a6 17229 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17230 (font-encoding-alist): Doc fix.
17231
172322008-02-01 Dave Love <fx@gnu.org>
17233
17234 * term.c (costs_set): Declare static, non-initialized for pcc.
17235 (encode_terminal_code): Remove unused var.
17236
17237 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17238 for K&R.
17239
17240 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17241
17242 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17243 (suffixes): Move out of make_subsidiaries for K&R.
17244
17245 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17246
17247 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17248
172492008-02-01 Dave Love <fx@gnu.org>
17250
17251 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17252
17253 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17254
172552008-02-01 Yong Lu <lyongu@asia-infonet.com>
17256
17257 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17258
17259 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17264 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17265
172662008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * coding.c (decode_coding_charset): Adjust for the change of
17269 Fdefine_coding_system_internal.
17270 (Fdefine_coding_system_internal): For a coding system of
17271 `charset' type, store a list of charset IDs in
17272 `charset_attr_charset_valids' element of coding attributes.
17273
172742008-02-01 Kenichi Handa <handa@m17n.org>
17275
17276 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17277 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17278 caller. Handle 2-byte and 3-byte charsets correctly.
17279 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17280 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17281 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17282 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17283 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17284 sequence.
17285 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17286 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17287 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17288 and alt&rule composition.
17289 (decode_coding_iso_2022): Handle composition correctly.
17290 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17291
17292 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17293 re-defining a charset. If the charset has :emacs-mule-id, setup
17294 emacs_mule_bytes.
17295 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17296
172972008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17300 (encode_coding_big5, encode_coding_charset): If coding requires safe
17301 encoding, produce a character specified by
17302 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17303
173042008-02-01 Dave Love <fx@gnu.org>
17305
17306 * xterm.c (XSetIMValues): Declare.
17307
17308 * process.c: Conditionally include sys/wait.h, pty.h.
17309
17310 * print.c (print_object): Fix print format for 64-bit systems.
17311
17312 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17313
17314 * buffer.c (emacs_strerror): Declare.
17315
17316 * fontset.c (Fclear_face_cache): Declare.
17317 (accumulate_font_info): Comment-out (unused).
17318 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17319 variables.
17320
17321 * character.h (string_escape_byte8): Declare.
17322
17323 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17324 unused vars.
17325 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17326 (Fmap_charset_chars): Doc fix.
17327
17328 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17329 (Fset_coding_system_priority, Fset_coding_system_priority)
17330 (Fdefine_coding_system_internal): Doc fix.
17331
173322008-02-01 Dave Love <fx@gnu.org>
17333
17334 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17335
173362008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * character.c (string_escape_byte8): Make multibyte string with
17339 correct size.
17340
17341 * charset.c (Fmake_char): Delete unnecessary code.
17342
173432008-02-01 Kenichi Handa <handa@m17n.org>
17344
17345 * xfns.c (x_encode_text): Allocate coding.destination here, and
17346 call encode_coding_object with dst_object Qnil.
17347
17348 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17349 multibyte form correctly.
17350
17351 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17352 against Vfont_encoding_alist.
17353
17354 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17355 handling of charset list.
17356 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17357 (decode_coding_object): Move point to coding->dst_pos before
17358 calling post-read-conversion function.
17359 (encode_coding_object): Give correct arguments to
17360 pre-write-conversion. Ignore the return value of
17361 pre-write-conversion function. Pay attention to the case that
17362 pre-write-conversion changes the current buffer. If dst_object is
17363 Qt, even if coding->src_bytes is zero, allocate at least one byte
17364 to coding->destination.
17365
17366 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17367
17368 * charset.c (Fmake_char): Make it more backward compatible.
17369 (Fmap_charset_chars): Fix docstring.
17370
173712008-02-01 Dave Love <fx@gnu.org>
17372
17373 * coding.c: Doc fixes.
17374 (Fdefine_coding_system_alias): Use names, not symbols, in
17375 coding-system-alist.
17376
173772008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17380 of calling free_realized_face.
17381
173822008-02-01 Yong Lu <lyongu@asia-infonet.com>
17383
17384 * charset.c (read_hex): Don't treat SPC as a comment starter.
17385 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17386 (Fdecode_char): Fix typo.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * charset.h (struct charset): New member `code_space_mask'.
17391
17392 * coding.c (coding_set_source): Delete the local variable beg_byte.
17393 (encode_coding_charset, Fdefine_coding_system_internal):
17394 Delete the local variable charset.
17395 (Fdefine_coding_system_internal): Setup
17396 attrs[coding_attr_charset_valids] correctly.
17397
17398 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17399 member to check if CODE is valid or not.
17400 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17401 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17402 is within the range of charset->min_code and carset->max_code.
17403
174042008-02-01 Dave Love <fx@gnu.org>
17405
17406 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17407
17408 * dispextern.h (generate_ascii_font): Fix return type.
17409
17410 * xfaces.c (generate_ascii_font): Fix arg declaration.
17411
17412 * coding.c (coding_inherit_eol_type)
17413 (Fset_terminal_coding_system_internal)
17414 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17415
174162008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17419 multiple charsets correctly.
17420
174212008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * search.c (boyer_moore): Fix handling of multibyte character
17424 translation.
17425
17426 * xdisp.c (display_mode_element): When the variable `elt' is
17427 changed, update `this' and `lisp_string'.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17432
17433 * callproc.c (Fcall_process): Be sure to give the current buffer
17434 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17435
17436 * charset.c (struct charset_map_entries): New struct.
17437 (load_charset_map): Rename from parse_charset_map. New args
17438 entries and n_entries. Change caller.
17439 (load_charset_map_from_file): Rename from load_charset_map.
17440 Change caller. New arg control_flag. Call load_charset_map at
17441 the tail.
17442 (load_charset_map_from_vector): New function.
17443 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17444 (encode_char): If the charset is compact, change a character index
17445 to a code point.
17446
17447 * coding.c (coding_alloc_by_making_gap): Check the case that the
17448 source and destination are the same correctly.
17449 (decode_coding_raw_text): Set coding->consumed_char and
17450 coding->consumed to 0.
17451 (produce_chars): If coding->chars_at_source is nonzero, update
17452 coding->consumed_char and coding->consumed before calling
17453 alloc_destination.
17454 (Fdefine_coding_system_alias): Register ALIAS in
17455 Vcoding_system_alist.
17456 (syms_of_coding): Define `no-conversion' coding system at the tail.
17457
17458 * fileio.c (Finsert_file_contents): Set coding_system instead of
17459 val. If the current buffer is multibyte, always call
17460 decode_coding_gap.
17461
17462 * xfaces.c (try_font_list): Give higher priority to fontset's
17463 family than face's family.
17464
174652008-02-01 Kenichi Handa <handa@m17n.org>
17466
17467 * callproc.c (Fcall_process): Be sure to give the current buffer
17468 to decode_coding_c_string.
17469
17470 * xfaces.c (try_font_list): Give a family specified in a fontset
17471 higher priority than a family specified in a face.
17472
174732008-02-01 Kenichi Handa <handa@m17n.org>
17474
17475 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17476 Fix arguments to insert_from_buffer.
17477
17478 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17479
174802008-02-01 Kenichi Handa <handa@m17n.org>
17481
17482 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17483 (decode_coding_gap): Set coding->dst_multibyte correctly.
17484
174852008-02-01 Kenichi Handa <handa@m17n.org>
17486
17487 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17488 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17489 (encode_coding_utf_16): Substitute coding->default_char for
17490 non-Unicode characters.
17491 (decode_coding): Don't call record_insert here.
17492 (setup_coding_system): Initialize `surrogate' of
17493 coding->spec.utf_16 to 0.
17494 (EMIT_ONE_BYTE): Fix for multibyte case.
17495
17496 * insdel.c (insert_from_gap): Call record_insert.
17497
174982008-02-01 Kenichi Handa <handa@m17n.org>
17499
17500 * casefiddle.c (casify_region): Fix multibyte case.
17501
17502 * character.c (c_string_width): Add return type `int'.
17503 (char_string_with_unification): Delete arg ADVANCED.
17504
17505 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17506 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17507 (CHAR_STRING_ADVANCE): Make it do-while statement.
17508
17509 * chartab.c (sub_char_table_set_range): Optimize for the case
17510 DEPTH == 3. Add workaround code for a GCC optimization bug.
17511
17512 * charset.c (parse_charset_map): Remove an unused variable.
17513
17514 * coding.c: Delete unused variables.
17515
17516 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17517 earlier. If inserted is zero and the coding system doesn't
17518 require flushing, don't call decode_coding_gap.
17519
17520 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17521
175222008-02-01 Kenichi Handa <handa@m17n.org>
17523
17524 The following changes are for using Unicode as an internal
17525 character model, and use UTF-8 format for buffer/string
17526 representation.
17527
17528 * .gdbinit (xchartable): Adjust for the change of char table structure.
17529 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17530
17531 * Makefile.in (obj): Add character.o and chartab.o.
17532 (lisp, shortlisp): Remove utf-8.elc.
17533 (*.o): For many files, change dependency on charset.h to
17534 character.h, and add dependency on character.h.
17535 (character.o, chartab.o): New targets.
17536
17537 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17538 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17539 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17540 of "charset.h".
17541
17542 * dired.c, filelock.c: Include "character.h".
17543
17544 * alloc.c: Include "character.h" instead of "charset.h".
17545 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17546 (syms_of_alloc): Remove defsubr for Smake_char_table.
17547
17548 * buffer.c: Include "character.h" instead of "charset.h", don't
17549 include "coding.h".
17550 (Fset_buffer_multibyte): Adjust for UTF-8.
17551
17552 * buffer.h: EXFUN Fbuffer_live_p.
17553
17554 * callproc.c: Include "character.h" instead of "charset.h".
17555 (Fcall_process): Big change for the new code-conversion APIs.
17556
17557 * casetab.c: Include "character.h" instead of "charset.h".
17558 (set_canon, set_identity, shuffle): Adjust for the new
17559 map_char_table spec.
17560 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17561 accessing the char table structure.
17562
17563 * chartab.c: New file that implements char table.
17564
17565 * category.c: Include "character.h".
17566 (copy_category_entry): New function.
17567 (copy_category_table): Call map_char_table and copy_category_entry.
17568 (Fmake_category_table): Initialize all top-level slots.
17569 (char_category_set): New function.
17570 (modify_lower_category_set): Delete.
17571 (Fmodify_category_entry): Call char_table_ref_and_range.
17572
17573 * category.h (CATEGORY_SET): Just call char_category_set.
17574
17575 * ccl.c: Include "character.h".
17576 (Qccl, Qcclp): New variables.
17577 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17578 it's less than 256.
17579 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17580 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17581 and DST type.
17582 (ccl_driver): Change types of argument, adjust code accordingly.
17583 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17584 ccl_driver.
17585 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17586
17587 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17588 New members src_multibyte, dst_multibyte, consumed, and produced.
17589 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17590 (CODING_SPEC_CCL_PROGRAM): New macro.
17591 (ccl_driver): Update prototype.
17592 (Qccl, Qcclp, Fccl_program_p): Extern them.
17593 (CHECK_CCL_PROGRAM): New macro.
17594
17595 * character.c, character.h, chartab.c: New files.
17596
17597 * charset.c: Mostly re-written. Move character and multibyte sequence
17598 handling codes to character.c.
17599
17600 * charset.h: Mostly re-written. Move character and multibyte sequence
17601 handling codes to character.h.
17602
17603 * coding.c, coding.h: Mostly re-written.
17604
17605 * composite.c: Include "character.h" instead of "charset.h".
17606 (CHAR_WIDTH): Move to character.h.
17607 (HASH_KEY, HASH_VALUE): Delete.
17608
17609 * composite.h (enum composition_method): Change order of enumeration
17610 symbols.
17611
17612 * data.c: Include "character.h" instead of "charset.h".
17613 (Faref): Call CHAR_TABLE_REF for a char table.
17614 (Faset): Call CHAR_TABLE_SET for a char table.
17615
17616 * dispextern.h (free_realized_face, check_face_attribytes)
17617 (generate_ascii_font): Extern them.
17618 (free_realized_multibyte_face): Delete extern.
17619
17620 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17621 table structure.
17622
17623 * editfns.c: Include "character.h" instead of "charset.h".
17624 (Fchar_to_string): Always call CHAR_STRING.
17625
17626 * emacs.c (main): Call init_charset_once, init_charset,
17627 syms_of_chartab, and syms_of_character.
17628
17629 * fileio.c: Include "character.h" instead of "charset.h".
17630 (Finsert_file_contents): Big change for the new code-conversion API.
17631 (choose_write_coding_system, Fwrite_region): Likewise.
17632 (build_annotations_2): Delete.
17633 (e_write): Big change for the new code-conversion API.
17634
17635 * fns.c: Include "character.h" instead of "charset.h".
17636 (copy_sub_char_table): Move to chartab.c.
17637 (Fcopy_sequence): Call copy_char_table for a char table.
17638 (concat): Delete codes calling count_multibyte.
17639 (string_char_to_byte, string_byte_to_char): Adjust for the new
17640 multibyte form.
17641 (internal_equal): Adjust for the change of char table structure.
17642 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17643 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17644 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17645 (char_table_translate, optimize_sub_char_table)
17646 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17647 chartab.c.
17648 (char_table_ref_and_index): Delete.
17649 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17650 (Fmd5): Call preferred_coding_system instead of accessing
17651 Vcoding_category_list. Adjust for the new code-conversion API.
17652 (syms_of_fns): Move defsubr for char table related functions to
17653 chartab.c.
17654
17655 * fontset.c: Mostly re-written.
17656
17657 * fontset.h (struct font_info): Change type of the member encoding_type.
17658 (enum FONT_SPEC_INDEX): New enum.
17659 (fontset_font_pattern, fs_load_font): Update prototype.
17660 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17661
17662 * indent.c: Include "character.h" instead of "charset.h".
17663 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17664
17665 * insdel.c: Include "character.h" instead of "charset.h".
17666 (copy_text): Don't refer to Vnonascii_translation_table.
17667 (insert_from_gap): New function.
17668
17669 * keyboard.c: Include "character.h" instead of "charset.h".
17670 (command_loop_1): Never call direct_output_forward_char before
17671 a non-ASCII character.
17672 (read_char): If Vkeyboard_translate_table is a char table, always
17673 translate a character.
17674
17675 * keymap.c: Include "character.h".
17676 (store_in_keymap): Handle the case that IDX is a cons.
17677 (Fdefine_key): Handle the case that KEY is a cons and the car part
17678 is also a cons (range).
17679 (push_key_description): Adjust for the new character code.
17680 (describe_vector): Call describe_char_table for a char table.
17681 (describe_char_table): New function.
17682
17683 * keymap.h (describe_char_table): Extern it.
17684
17685 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17686 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17687 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17688 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17689 Delete.
17690 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17691 structure.
17692 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17693 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17694 (CHARTAB_SIZE_BITS_3): New macros.
17695 (chartab_size): Extern it.
17696 (struct Lisp_Char_Table): Re-design.
17697 (struct Lisp_Sub_Char_Table): New structure.
17698 (HASH_KEY, HASH_VALUE): Move from fns.c.
17699 (CHARACTERBITS): Define as 22.
17700 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17701 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17702 (GC_SUB_CHAR_TABLE_P): New macro.
17703 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17704 (code_convert_string_norecord): Deleted extern.
17705 (init_character_once, syms_of_character, init_charset)
17706 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17707
17708 * lread.c: Include "character.h".
17709 (read_multibyte): New arg NBYTES.
17710 (read_escape): Change the meaning of returned *BYTEREP.
17711 (to_multibyte): Delete.
17712 (read1): Adjust the handling of char table and string.
17713
17714 * print.c: Include "character.h" instead of "charset.h".
17715 (print_string): Convert 8-bit raw bytes to octal form by
17716 string_escape_byte8.
17717 (print_object): Adjust for the new multibyte form. Print 8-bit
17718 raw bytes always in octal form. Handle sub char table correctly.
17719
17720 * process.c: Include "character.h" instead of "charset.h".
17721 (read_process_output, send_process): Adjust for the new
17722 code-conversion API.
17723
17724 * puresize.h (BASE_PURESIZE): Increase.
17725
17726 * regex.c: Include "character.h" instead of "charset.h".
17727 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17728 (regex_compile): Accept a range whose starting and ending
17729 character have different leading bytes.
17730 (analyse_first): Adjust for the above change.
17731
17732 * search.c: Include "character.h" instead of "charset.h".
17733 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17734 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17735
17736 * syntax.c: Include "character.h" instead of "charset.h".
17737 (syntax_parent_lookup): Delete.
17738 (Fmodify_syntax_entry): Accept a cons as CHAR.
17739 (skip_chars): Adjust for the new multibyte form.
17740 (init_syntax_once): Call char_table_set_range instead of directly
17741 accessing the structure of a char table.
17742
17743 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17744 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17745 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17746 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17747
17748 * term.c: Include "buffer.h" and "character.h".
17749 (encode_terminal_code, write_glyphs): Adjust for the new
17750 code-conversion API.
17751 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17752
17753 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17754
17755 * xdisp.c: Include "character.h".
17756 (get_next_display_element): Adjust for the new multibyte form.
17757 (disp_char_vector): Adjust for the new char table structure.
17758 (decode_mode_spec_coding): Adjust for the new structure of
17759 coding system.
17760 (decode_mode_spec): Adjust for the new code-conversion API.
17761
17762 * xfaces.c: Include "character.h" instead of "charset.h".
17763 (load_face_font): Adjust for the change of choose_face_font and
17764 FS_LOAD_FONT.
17765 (generate_ascii_font): New function.
17766 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17767 (set_font_frame_param): Adjust for the change of choose_face_font.
17768 (free_realized_face): Make it public.
17769 (free_realized_faces_for_fontset): Rename from
17770 free_realized_multibyte_face. Free also faces realized for ASCII.
17771 (choose_face_font): Change arguments. Adjust for the change of
17772 fontset_font_pattern and FS_LOAD_FONT.
17773
17774 * xfns.c: Include "character.h".
17775 (x_encode_text): Adjust for the new code-conversion API.
17776
17777 * xselect.c: Don't include "charset.h".
17778 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17779
17780 * xterm.c: Include "character.h".
17781 (x_encode_char): New argument CHARSET. Change caller.
17782 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17783 Call ENCODE_CHAR instead of SPLIT_CHAR.
17784 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17785 CHAR_WIDTH instead of CHARSET_WIDTH.
17786 (XTread_socket): Adjust for the new code-conversion API.
17787 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17788 (x_load_font): Adjust for the change of struct font.
17789
177902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17791
17792 * xfaces.c (face_at_buffer_position): Remove unused vars.
17793
177942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17795
17796 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17797 Fix overflow checking.
17798
177992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17800
17801 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17802 Cancel previous change.
17803
178042008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17805
17806 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17807 ccl->eight_bit_control. Fix check for buffer overflow.
17808 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17809 (ccl_driver): Initialize extra_bytes to 0.
17810
178112008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17812
17813 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17814 return it ORed with ctrl_modifier.
17815
178162008-01-29 Miles Bader <miles@gnu.org>
17817
17818 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17819
178202008-01-28 Jason Rumney <jasonr@gnu.org>
17821
17822 * w32.c (stat): Don't double check for networked drive.
17823
178242008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17825
17826 * window.c (run_window_configuration_change_hook): New function.
17827 Code extracted from set_window_buffer. Set the selected frame.
17828 (set_window_buffer): Use it.
17829 * window.h (run_window_configuration_change_hook): Declare.
17830 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17831
17832 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17833
178342008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17835
17836 * Makefile.in: Remove references to unused macros.
17837
178382008-01-26 Eli Zaretskii <eliz@gnu.org>
17839
17840 * w32.c (g_b_init_get_sid_sub_authority)
17841 (g_b_init_get_sid_sub_authority_count): New static variables.
17842 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17843 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17844 (init_user_info): Use them to retrieve uid and gid.
17845 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17846 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17847 st_uid and st_gid of the file.
17848
178492008-01-26 Jason Rumney <jasonr@gnu.org>
17850
17851 * w32.c (logon_network_drive): New function.
17852 (stat): Use it.
17853
178542008-01-26 Chong Yidong <cyd@stupidchicken.com>
17855
17856 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17857 invisible text covered with an ellipsis.
17858
178592008-01-25 Richard Stallman <rms@gnu.org>
17860
17861 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17862 jump back to beginning. Move some other initializations after that.
17863 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17864 New variables.
17865 (syms_of_xdisp): Init them.
17866
17867 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17868
17869 * buffer.c (reset_buffer_local_variables):
17870 Implement `permanent-local-hook'.
17871 (Qpermanent_local_hook): New variable.
17872 (syms_of_buffer): Init and staticpro it.
17873
178742008-01-25 Michael Albinus <michael.albinus@gmx.de>
17875
17876 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17877
178782008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17879
17880 * fns.c (Fclrhash): Return TABLE.
17881
178822008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17883
17884 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17885 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17886 is set even without positional changes.
17887 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17888
17889 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17890
178912008-01-23 Jason Rumney <jasonr@gnu.org>
17892
17893 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17894
17895 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17896 the unicode range available in MULE by locale-coding-system.
17897 Improve dbcs lead byte detection. Set event timestamp and modifiers
17898 earlier.
17899
179002008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17901
17902 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17903 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17904 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17905 when used on child processes.
17906
179072008-01-21 Michael Albinus <michael.albinus@gmx.de>
17908
17909 * dbusbind.c (Fdbus_method_return_internal): Rename from
17910 Fdbus_method_return.
17911 (Fdbus_unregister_object): Move to dbus.el.
17912 (Fdbus_call_method, Fdbus_method_return_internal)
17913 (Fdbus_send_signal): Improve debug messages.
17914
179152008-01-20 Martin Rudalics <rudalics@gmx.at>
17916
17917 * undo.c (undo_inhibit_record_point): New variable.
17918 (syms_of_undo): Initialize it.
17919 (record_point): Don't record point when undo_inhibit_record_point
17920 is set.
17921
179222008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17923
17924 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17925
17926 * xdisp.c (Qauto_hscroll_mode): New var.
17927 (syms_of_xdisp): Initialize it.
17928 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17929 window's buffer.
17930 (hscroll_windows): Don't check automatic_hscrolling_p here.
17931
17932 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17933 vscroll if we're setting window-buffer to the value it already has.
17934
179352008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17936
17937 * m/intel386.h: Remove references to XENIX.
17938
179392008-01-17 Andreas Schwab <schwab@suse.de>
17940
17941 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17942 instead of HAVE_X86_64_LIB64_DIR.
17943 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17944
179452008-01-17 Glenn Morris <rgm@gnu.org>
17946
17947 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17948 to HAVE_X86_64_LIB64_DIR.
17949
179502008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17951
17952 * s/irix3-3.h:
17953 * s/irix4-0.h:
17954 * s/386-ix.h:
17955 * s/domain.h:
17956 * s/hpux9-x11r4.h:
17957 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17958
17959 * sysdep.c: Remove code containing references to symbols defined
17960 by unsupported systems.
17961
179622008-01-16 Glenn Morris <rgm@gnu.org>
17963
17964 * coding.c (select-safe-coding-system-function): Doc fix.
17965
179662008-01-15 Glenn Morris <rgm@gnu.org>
17967
17968 * config.in: Revert 2008-01-13 change: this is a generated file.
17969
179702008-01-13 Tom Tromey <tromey@redhat.com>
17971
17972 * lisp.h: Fix typo.
17973
179742008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17975
17976 * m/sequent-ptx.h:
17977 * m/sequent.h:
17978 * s/ptx.h:
17979 * s/ptx4-2.h:
17980 * s/ptx4.h: Remove files for systems no longer supported.
17981
17982 * callproc.c (Fcall_process): Fix previous change.
17983
179842008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17985
17986 * unexsunos4.c: Remove file, system not supported anymore.
17987
17988 * m/mips.h:
17989 * m/intel386.h:
17990 * callproc.c:
17991 * config.in:
17992 * ecrt0.c:
17993 * emacs.c:
17994 * fileio.c:
17995 * frame.c:
17996 * getpagesize.h:
17997 * keyboard.c:
17998 * lread.c:
17999 * process.c:
18000 * puresize.h:
18001 * sysdep.c:
18002 * systty.h:
18003 * syswait.h:
18004 * unexec.c:
18005 * xdisp.c:
18006 * alloc.c: Remove code containing references to symbols defined by
18007 unsupported systems.
18008
180092008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18010
18011 * coding.c (detect_coding_mask): Fix previous change.
18012
180132008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18014
18015 * coding.c (detect_coding_iso2022): New arg
18016 latin_extra_code_state. Allow Latin extra codes only
18017 when *latin_extra_code_state is nonzero.
18018 (detect_coding_mask): If there is a NULL byte, detect the encoding
18019 as UTF-16 or binary. If Latin extra codes exist, detect the
18020 encoding as ISO-2022 only when there's no other proper encoding is
18021 found.
18022
180232008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18024
18025 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18026 #ifdef MAC_OS.
18027
180282008-01-08 Richard Stallman <rms@gnu.org>
18029
18030 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18031
180322008-01-06 Nick Roberts <nickrob@snap.net.nz>
18033
18034 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18035 menu bar in parentheses.
18036
180372008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18038
18039 * m/7300.h:
18040 * m/acorn.h:
18041 * m/alliant-2800.h:
18042 * m/alliant.h:
18043 * m/alliant1.h:
18044 * m/alliant4.h:
18045 * m/altos.h:
18046 * m/amdahl.h:
18047 * m/apollo.h:
18048 * m/att3b.h:
18049 * m/aviion-intel.h:
18050 * m/aviion.h:
18051 * m/celerity.h:
18052 * m/clipper.h:
18053 * m/cnvrgnt.h:
18054 * m/convex.h:
18055 * m/cydra5.h:
18056 * m/delta88k.h:
18057 * m/dpx2.h:
18058 * m/dual.h:
18059 * m/elxsi.h:
18060 * m/f301.h:
18061 * m/gould-np1.h:
18062 * m/gould.h:
18063 * m/i860.h:
18064 * m/ibmps2-aix.h:
18065 * m/ibmrt-aix.h:
18066 * m/ibmrt.h:
18067 * m/irist.h:
18068 * m/is386.h:
18069 * m/isi-ov.h:
18070 * m/mega68.h:
18071 * m/mg1.h:
18072 * m/news-r6.h:
18073 * m/news-risc.h:
18074 * m/news.h:
18075 * m/nh3000.h:
18076 * m/nh4000.h:
18077 * m/ns16000.h:
18078 * m/ns32000.h:
18079 * m/nu.h:
18080 * m/orion.h:
18081 * m/orion105.h:
18082 * m/paragon.h:
18083 * m/pfa50.h:
18084 * m/plexus.h:
18085 * m/pyramid.h:
18086 * m/pyrmips.h:
18087 * m/sh3el.h:
18088 * m/sps7.h:
18089 * m/sr2k.h:
18090 * m/stride.h:
18091 * m/sun1.h:
18092 * m/sun2.h:
18093 * m/sun3-68881.h:
18094 * m/sun3-fpa.h:
18095 * m/sun3-soft.h:
18096 * m/sun3.h:
18097 * m/sun386.h:
18098 * m/symmetry.h:
18099 * m/tad68k.h:
18100 * m/tahoe.h:
18101 * m/targon31.h:
18102 * m/tek4300.h:
18103 * m/tekxd88.h:
18104 * m/tower32.h:
18105 * m/tower32v3.h:
18106 * m/ustation.h:
18107 * m/wicat.h:
18108 * m/xps100.h:
18109 * s/cxux.h:
18110 * s/cxux7.h:
18111 * s/dgux.h:
18112 * s/dgux4.h:
18113 * s/dgux5-4-3.h:
18114 * s/dgux5-4r2.h:
18115 * s/esix.h:
18116 * s/esix5r4.h:
18117 * s/hiuxmpp.h:
18118 * s/hiuxwe2.h:
18119 * s/iris3-5.h:
18120 * s/iris3-6.h:
18121 * s/isc2-2.h:
18122 * s/isc3-0.h:
18123 * s/isc4-0.h:
18124 * s/isc4-1.h:
18125 * s/newsos5.h:
18126 * s/newsos6.h:
18127 * s/osf1.h:
18128 * s/osf5-0.h:
18129 * s/riscix1-1.h:
18130 * s/riscix12.h:
18131 * s/sco4.h:
18132 * s/sco5.h:
18133 * s/sunos4-0.h:
18134 * s/sunos4-1.h:
18135 * s/sunos413.h:
18136 * s/sunos4shr.h:
18137 * s/umax.h:
18138 * s/unipl5-2.h:
18139 * s/xenix.h:
18140 * cxux-crt0.s:
18141 * unexapollo.c:
18142 * unexconvex.c:
18143 * unexenix.c:
18144 * unexsni.c: Remove files for systems no longer supported.
18145
18146 * m/intel386.h: Remove references to unsupported systems.
18147
18148 * w32.c (get_emacs_configuration): Remove reference to i860.
18149
18150 * sysdep.c: Remove dead code.
18151
181522008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18153
18154 * s/rtu.h:
18155 * m/masscomp.h: Remove files. Platform is obsolete.
18156
181572008-01-04 Michael Albinus <michael.albinus@gmx.de>
18158
18159 * dbusbind.c (Fdbus_method_return): New function.
18160 (xd_read_message): Add the serial number to the event.
18161 (Fdbus_register_method): Activate the function.
18162
181632008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18164
18165 * keyboard.c (read_key_sequence): Fix typo.
18166
181672008-01-03 Michael Albinus <michael.albinus@gmx.de>
18168
18169 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18170 (xd_signature, xd_append_arg): Handle element type detection for
18171 empty arrays.
18172 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18173 SDATA () calls; this must be solved more general.
18174 (Fdbus_register_signal): Use SBYTES instead of strlen.
18175
181762008-01-03 Magnus Henoch <magnus@zemdatav>
18177
18178 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18179 unsigned int for byte values (necessary for big-endian platform).
18180 (Fdbus_call_method): Handle the case of no returned arguments.
18181
181822007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18183
18184 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18185
181862007-12-31 Magnus Henoch <mange@freemail.hu>
18187
18188 * dbusbind.c (xd_signature): Signature of variant is just "v".
18189
181902007-12-30 Michael Albinus <michael.albinus@gmx.de>
18191
18192 * dbusbind.c: Fix several errors and compiler warnings.
18193 Reported by Tom Tromey <tromey@redhat.com>.
18194 (XD_ERROR, XD_DEBUG_MESSAGE)
18195 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18196 (xd_append_arg): Part for basic D-Bus types rewritten.
18197 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18198 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18199 appropriate.
18200 (xd_read_message): Return Qnil. Don't signal an error; it is not
18201 useful during event reading.
18202 (Fdbus_register_signal): Signal an error if the check for
18203 FUNCTIONP fails.
18204 (Fdbus_register_method): New function. The implementation is not
18205 complete, the call of the function signals an error therefore.
18206 (Fdbus_unregister_object): New function, renamed from
18207 Fdbus_unregister_signal. The initial check signals an error, if
18208 the object is not well formed.
18209
182102007-12-30 Richard Stallman <rms@gnu.org>
18211
18212 * textprop.c (get_char_property_and_overlay):
18213 Signal error if POSITION is out of range in a buffer.
18214
182152007-12-29 Martin Rudalics <rudalics@gmx.at>
18216
18217 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18218 because the original parameters are in pure storage now.
18219
182202007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18221
18222 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18223
182242007-12-22 Eli Zaretskii <eliz@gnu.org>
18225
18226 * callint.c (syms_of_callint) <command-history>: Add reference to
18227 history-length in the doc string.
18228
182292007-12-17 Jason Rumney <jasonr@gnu.org>
18230
18231 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18232 before passing as wParam.
18233
182342007-12-22 Michael Albinus <michael.albinus@gmx.de>
18235
18236 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18237 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18238 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18239 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18240 as number.
18241 (Fdbus_call_method): Fix docstring.
18242
182432007-12-21 Michael Albinus <michael.albinus@gmx.de>
18244
18245 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18246 New macros.
18247 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18248 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18249 Simplify.
18250 (xd_signature): New function.
18251 (xd_append_arg): Compute also signatures. Major rewrite.
18252 (xd_retrieve_arg): Make debug messages friendly.
18253 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18254 Check for signatures of arguments.
18255
182562007-12-19 Michael Albinus <michael.albinus@gmx.de>
18257
18258 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18259 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18260 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18261 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18262 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18263 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18264 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18265 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18266 (xd_retrieve_value): Remove. Functionality included in ...
18267 (xd_append_arg): New function.
18268 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18269
182702007-12-16 Michael Albinus <michael.albinus@gmx.de>
18271
18272 * dbusbind.c (top): Include <stdio.h>.
18273 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18274 dbus_message_new_method_call and dbus_message_new_signal.
18275 (Fdbus_register_signal): Rename unique_name to uname.
18276 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18277 non-existing unique name. Fix typos in matching rule. Return an
18278 object which is useful in Fdbus_unregister_signal.
18279 (Fdbus_unregister_signal): Reimplementation, in order to remove
18280 only the corresponding entry.
18281 (Vdbus_registered_functions_table): Change the order of entries.
18282 Apply these changes in xd_read_message and Fdbus_register_signal.
18283
182842007-12-16 Andreas Schwab <schwab@suse.de>
18285
18286 * fileio.c (Finsert_file_contents): Fix overflow check to not
18287 depend on undefined integer overflow.
18288
182892007-12-14 Jason Rumney <jasonr@gnu.org>
18290
18291 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18292 for characters above 127.
18293
182942007-12-13 Jason Rumney <jasonr@gnu.org>
18295
18296 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18297 before dereferencing array.
18298 (lookup_vk_code): Remove zero comparison.
18299
183002007-12-14 Michael Albinus <michael.albinus@gmx.de>
18301
18302 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18303 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18304 Use `unsigned int' instead of `uint'.
18305 (xd_read_message, Fdbus_register_signal): Split expressions into
18306 multiple lines before operators "&&" and "||", according to the
18307 GNU Coding Standards.
18308
183092007-12-14 Eli Zaretskii <eliz@gnu.org>
18310
18311 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18312
183132007-12-12 Juri Linkov <juri@jurta.org>
18314
18315 * buffer.c (Frename_buffer): In interactive spec replace
18316 `read-buffer' with `read-string' that uses `buffer-name-history'
18317 as history, and the current buffer's name as default.
18318
183192007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18320
18321 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18322 manipulating the backtrace manually.
18323 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18324 (struct backtrace, backtrace_list): Remove.
18325 (command_loop_1): Remove dead var `no_direct'.
18326
18327 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18328 preserve non-built-in buffer-local variables.
18329 (Fkill_all_local_variables): Don't re-create&re-set permanent
18330 buffer-local variables.
18331
183322007-12-09 Juri Linkov <juri@jurta.org>
18333
18334 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18335 Lisp code that uses `read-buffer' with current buffer as default.
18336
183372007-12-08 Michael Albinus <michael.albinus@gmx.de>
18338
18339 * dbusbind.c (xd_read_message): Generate an event for every
18340 registered handler. There might be several handlers registered
18341 for the same signal.
18342 (Fdbus_register_signal): Don't overwrite a registration for the
18343 same signal. Add a new registration if handlers are different.
18344 (Vdbus_registered_functions_table): Rework doc string.
18345
183462007-12-07 Michael Albinus <michael.albinus@gmx.de>
18347
18348 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18349 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18350 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18351 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18352 Unify argument lists.
18353 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18354 arguments and hash table keys. Use unique name for service.
18355 (Fdbus_unregister_signal): Remove checks.
18356 (Vdbus_registered_functions_table): Fix doc string.
18357
183582007-12-05 Magnus Henoch <mange@freemail.hu>
18359
18360 * process.c (make_process): Initialize pty_flag to 0.
18361
183622007-12-05 Jason Rumney <jasonr@gnu.org>
18363
18364 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18365 specified XBMs.
18366
183672007-12-05 Richard Stallman <rms@gnu.org>
18368
18369 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18370
183712007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18372
18373 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18374 New variable.
18375 (mac_try_close_socket) [MAC_OSX]: New function.
18376 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18377 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18378
18379 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18380 Use mac_try_close_socket.
18381
183822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18383
18384 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18385 reloc_base.
18386 (copy_dysymtab): Compute relocation base here.
18387 (rebase_reloc_address) [__ppc64__]: New function.
18388 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18389 changed.
18390
183912007-12-05 Jason Rumney <jasonr@gnu.org>
18392
18393 * w32proc.c (sys_spawnve): Quote args with wildcards.
18394
183952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18396
18397 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18398 __objc_* sections.
18399 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18400
184012007-12-05 Michael Albinus <michael.albinus@gmx.de>
18402
18403 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18404 Move check for Vdbus_registered_functions_table to
18405 xd_read_queued_messages.
18406 (xd_read_queued_messages): Protect xd_read_message calls by
18407 internal_condition_case_1.
18408
184092007-12-04 Michael Albinus <michael.albinus@gmx.de>
18410
18411 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18412 Qdbus_system_bus and Qdbus_session_bus, respectively.
18413 (Vdbus_intern_symbols): Remove.
18414 (Vdbus_registered_functions_table): New hash table.
18415 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18416 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18417 Rewrite in order to manage registered functions by hash table
18418 Vdbus_registered_functions_table.
18419
184202007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18421
18422 * xterm.c: Update URL to Window Manager Specification in comment.
18423
184242007-12-02 Michael Albinus <michael.albinus@gmx.de>
18425
18426 * config.in (HAVE_DBUS): Add.
18427
18428 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18429 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18430 (obj): Add $(DBUS_OBJ).
18431 (LIBES): Add $(DBUS_LIBS).
18432 (dbusbind.o): New target.
18433
18434 * dbusbind.c: New file.
18435
18436 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18437
18438 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18439 (Qdbus_event): New Lisp symbol.
18440 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18441 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18442 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18443
18444 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18445
184462007-12-01 Richard Stallman <rms@gnu.org>
18447
18448 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18449
184502007-11-30 Jason Rumney <jasonr@gnu.org>
18451
18452 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18453 (w32con_reset_terminal_modes): Clear screen buffer.
18454 (w32_face_attributes): Don't use color indexes that are out of range.
18455 Only reverse the default colors.
18456
18457 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18458 WINDOWSNT.
18459
18460 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18461
184622007-11-29 Jason Rumney <jasonr@gnu.org>
18463
18464 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18465 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18466 if the terminal colors are initialized.
18467 (unspecified_fg, unspecified_bg): Remove unused declarations.
18468
184692007-11-29 Andreas Schwab <schwab@suse.de>
18470
18471 * keyboard.c (apply_modifiers): Fix typo.
18472
184732007-11-29 Richard Stallman <rms@gnu.org>
18474
18475 * keymap.c (Fcurrent_local_map): Doc fix.
18476
184772007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18478
18479 * s/gnu-kfreebsd.h: New file.
18480
184812007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18482
18483 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18484 Don't cast redundantly.
18485
18486 * keyboard.c (KEY_TO_CHAR): New macro.
18487 (parse_modifiers, apply_modifiers): Accept integer arguments.
18488 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18489 for chars and symbol keys.
18490 After doing such remapping, apply function-key-map again.
18491
184922007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18493
18494 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18495 compiled anymore.
18496
184972007-11-26 Andreas Schwab <schwab@suse.de>
18498
18499 * process.c (list_processes_1): Fix indentation level of the
18500 command column.
18501
185022007-11-23 Andreas Schwab <schwab@suse.de>
18503
18504 * editfns.c (Fformat): Handle %c specially since it requires the
18505 argument to be of type int.
18506
185072007-11-23 Markus Triska <markus.triska@gmx.at>
18508
18509 * emacs.c (main): Call init_editfns before init_process, since
18510 init_process sets Vprocess_connection_type depending on OS release.
18511
185122007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18513
18514 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18515 (find_symbol_value): Use do_symval_forwarding.
18516
18517 * data.c (set_internal): Set the value in the `cons-cell' (for
18518 Buffer_Local_values) not only for frame-local variables.
18519
185202007-11-22 Andreas Schwab <schwab@suse.de>
18521
18522 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18523 values to sprintf.
18524 * keymap.c (Fsingle_key_description): Likewise.
18525 * print.c (print_object): Likewise.
18526
185272007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18528
18529 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18530 file for image is nil.
18531
185322007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18533
18534 * term.c: Include stdarg.h.
18535 (fatal): Implement using varargs.
18536 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18537
185382007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18539
18540 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18541 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18542 Update call to buffer_slot_type_mismatch.
18543 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18544 (buffer_slot_type_mismatch): Update.
18545 * buffer.c (buffer_local_types): Remove.
18546 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18547 (defvar_per_buffer): Set the type in the buffer_objfwd.
18548
185492007-11-21 Jason Rumney <jasonr@gnu.org>
18550
18551 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18552 CreateFileMapping returns NULL on failure.
18553
185542007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18555
18556 * search.c (Fset_match_data): Remove the `evaporate' feature.
18557 (unwind_set_match_data): Don't use the `evaporate' feature.
18558
185592007-11-21 Jason Rumney <jasonr@gnu.org>
18560
18561 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18562
18563 * w32console.c (w32con_write_glyphs): Remove unused variables.
18564
185652007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18566
18567 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18568
18569 * s/darwin.h (MULTI_KBOARD): Remove.
18570
18571 * macfns.c (x_create_tip_frame, Fx_create_frame)
18572 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18573
185742007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18575
18576 * buffer.c (Fbuffer_local_value): Remove redundant test.
18577 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18578 than in `current-buffer' to match the comment.
18579 Do the swap using swap_in_global_binding.
18580
18581 * data.c (store_symval_forwarding, set_internal):
18582 * eval.c (specbind): Remove dead code.
18583
18584 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18585 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18586 Since we do not want to see internal Lisp_*fwd objects here.
18587
185882007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18589
18590 * sysdep.c (init_system_name): Use getaddrinfo if available.
18591
18592 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18593 (x_scroll_bar_note_movement): start, end, with, height in struct
18594 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18595
185962007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18597
18598 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18599
186002007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18601
18602 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18603 This undoes Richard's change of 14-Oct-2002.
18604
18605 * alloc.c (allocate_other_vector):
18606 * lisp.h (allocate_other_vector): Remove.
18607
18608 * window.c (struct save_window_data): Move non-lisp data to the end
18609 and make it `int' rather than Lisp_Object.
18610 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18611 Done wrap/unwrap integer values.
18612 (Fset_window_configuration, compare_window_configurations):
18613 Update use of fields to their new types.
18614
18615 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18616 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18617 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18618 (SET_SCROLL_BAR_X_WINDOW): Remove.
18619 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18620 Access the new x_window field directly.
18621 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18622 Don't wrap/unwrap integers into Lisp_Objects.
18623 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18624 (x_scroll_bar_report_motion):
18625 Don't wrap/unwrap integers into Lisp_Objects.
18626 (x_term_init): Use SDATA.
18627 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18628 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18629 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18630 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18631 * xfns.c (x_set_background_color):
18632 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18633 Access the new x_window field directly.
18634
18635 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18636 (allocate_pseudovector): Make non-static.
18637
18638 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18639 (allocate_pseudovector): Declare.
18640 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18641
186422007-11-15 Andreas Schwab <schwab@suse.de>
18643
18644 * editfns.c (Fformat): Correctly format EMACS_INT values.
18645 Also take precision into account when formatting an integer.
18646
18647 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18648
186492007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18650
18651 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18652 (syms_of_keyboard): Defsubr it.
18653
18654 * data.c (swap_in_global_binding): Fix longstanding bug where
18655 store_symval_forwarding was not called with the right second argument,
18656 thus causing objfwd-ing from being dropped.
18657
186582007-11-14 Juanma Barranquero <lekktu@gmail.com>
18659
18660 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18661 (Fx_display_pixel_height, Fx_display_planes)
18662 (Fx_display_color_cells, Fx_server_max_request_size)
18663 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18664 (Fx_display_visual_class, Fx_display_save_under):
18665 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18666 (Fx_display_pixel_height, Fx_display_planes)
18667 (Fx_display_color_cells, Fx_server_max_request_size)
18668 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18669 (Fx_display_mm_height, Fx_display_mm_width)
18670 (Fx_display_backing_store, Fx_display_visual_class)
18671 (Fw32_select_font, Fx_display_save_under):
18672 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18673 (Fx_display_pixel_height, Fx_display_planes)
18674 (Fx_display_color_cells, Fx_server_max_request_size)
18675 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18676 (Fx_display_save_under): Fix typos in docstrings.
18677
186782007-11-14 Juanma Barranquero <lekktu@gmail.com>
18679
18680 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18681 corresponding to deleted entries; they are an implementation detail.
18682 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18683 Remove variables.
18684 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18685 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18686 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18687 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18688 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18689 (Fw32_define_rgb_color, Fw32_load_color_file)
18690 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18691 Fix typos in docstrings.
18692 (Fx_server_version): Reflow docstring.
18693 (Fw32_shell_execute): Doc fixes.
18694
186952007-11-13 Juanma Barranquero <lekktu@gmail.com>
18696
18697 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18698 if w32_parse_hot_key returned nil.
18699
187002007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18701
18702 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18703
187042007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18705
aac0c6e3
MR
18706 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18707
18708 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18709
18710 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18711 Remove W32_SCROLL_BAR_CLICK_EVENT.
18712
18713 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18714 Add MULTIMEDIA_KEY_EVENT.
18715
18716 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18717 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18718 (make_lispy_event) [WINDOWSNT]: Use it to translate
18719 MULTIMEDIA_KEY_EVENT.
18720
18721 * w32term.h (WM_APPCOMMAND): Define if not already.
18722 (GET_APPCOMMAND_LPARAM): Likewise.
18723
18724 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18725 WM_APPCOMMAND.
18726
18727 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18728 (syms_of_w32fns): Export and initialize it.
18729 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18730
187312007-11-09 Chong Yidong <cyd@stupidchicken.com>
18732
18733 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18734 twice.
18735
18736 * xdisp.c (handle_face_prop): Fix last change.
18737
187382007-11-09 Richard Stallman <rms@gnu.org>
18739
18740 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18741 not just for after-strings and before-strings.
18742 Call face_for_overlay_string and pass the overlay to it.
18743 (handle_display_prop): Determine whether property came from an overlay.
18744 Pass OVERLAY arg to handle_single_display_spec.
18745 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18746 (load_overlay_strings): Fill in it->string_overlays.
18747 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18748
18749 * xfaces.c (face_for_overlay_string): Function renamed from
18750 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18751
18752 * dispextern.h (struct it): New elt string_overlays.
18753 New elt from_overlay, also in stack.
18754 Rearrange a few elements.
18755 (face_for_overlay_string): Decl renamed from
18756 face_at_buffer_position_no_overlays, and add argument.
18757
187582007-11-09 Richard Stallman <rms@gnu.org>
18759
18760 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18761 to get the base face for an overlay string.
18762
18763 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18764
18765 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18766
18767 * xdisp.c (handle_stop): Move some code out of loop.
18768
187692007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18770
18771 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18772 Fix conversion from Lisp object to ATSUFontID.
18773
187742007-11-09 Jason Rumney <jasonr@gnu.org>
18775
18776 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18777
187782007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18779
18780 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18781 Don't assume regions are aligned to page boundary.
18782 (print_load_command_name): Add LC_UUID if defined.
18783
187842007-11-09 Richard Stallman <rms@gnu.org>
18785
18786 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18787
187882007-11-07 Jason Rumney <jasonr@gnu.org>
18789
18790 * s/windows95.h: Remove.
18791
187922007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18793
18794 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18795 abort with a message on unhandled store_type values.
18796
187972007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18798
18799 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18800 Remove HAVE_X11R5 and HAVE_X11R4.
18801
188022007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18803
18804 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18805
188062007-11-01 Johan Bockgård <bojohan@gnu.org>
18807
18808 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18809 Don't set s->stippled_p here, since it has already been set by
18810 x_set_glyph_string_gc from x_draw_glyph_string.
18811
188122007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18813
18814 * sunfns.c: Remove file.
18815
18816 * m/sun386.h:
18817 * m/sun2.h:
18818 * m/sparc.h: Remove Sun windows code.
18819
188202007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18821
18822 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18823 (init_keyboard): Set current_kboard's window-system to nil.
18824 (tty_read_avail_input): Typo.
18825 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18826
188272007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18828
18829 * s/usg5-4.h:
18830 * s/usg5-3.h:
18831 * s/ptx.h:
18832 * m/is386.h:
18833 * m/ibmps2-aix.h:
18834 * Makefile.in: Remove all mentions of X10.
18835
18836 * dispnew.c (syms_of_display): Don't mention version 10.
18837
188382007-10-28 Juanma Barranquero <lekktu@gmail.com>
18839
18840 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18841 ($(BLD)/abbrev.$(O)): Remove.
18842
188432007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18844
18845 Rewrite abbrev.c in Elisp.
18846 * image.c (Qcount): Don't declare as extern.
18847 (syms_of_image): Initialize and staticpro `Qcount'.
18848 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18849 * emacs.c (main): Don't call syms_of_abbrev.
18850 * Makefile.in (obj): Remove abbrev.o.
18851 (abbrev.o): Remove.
18852 * abbrev.c: Remove.
18853
188542007-10-26 Martin Rudalics <rudalics@gmx.at>
18855
18856 * window.c (window_min_size_2): Don't count header-line.
18857
188582007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18859
18860 * frame.h (struct frame): Move all bit fields after the first bit
18861 field to take advantage of the available space. Group all the
18862 chars together to reduce wasted space due to padding.
18863
188642007-10-26 Juanma Barranquero <lekktu@gmail.com>
18865
18866 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18867
18868 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18869 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18870 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18871 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18872 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18873 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18874 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18875 (last_marked, mark_object_loop_halt): Make static.
18876
18877 * frame.c (syms_of_frame) <delete-frame-functions>:
18878 Fix typo in docstring.
18879
188802007-10-25 Juanma Barranquero <lekktu@gmail.com>
18881
18882 * w32.c (init_environment): Fix tiny memory leak.
18883 (w32_get_resource): Remove unused variable `ok'.
18884
188852007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18886
18887 Make `window-system' into a keyboard-local variable (rather than
18888 frame-local as done originally by multi-tty).
18889
18890 * keyboard.h (struct kboard): Add Vwindow_system.
18891 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18892 (mark_kboards): Mark Vwindow_system.
18893
18894 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18895 (init_display): Don't set the obsolete `window-system' frame-param.
18896
18897 * xterm.c (x_term_init):
18898 * w32term.c (w32_create_terminal):
18899 * term.c (init_tty): Set Vwindow_system.
18900 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18901 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18902
18903 * xfns.c (Fx_create_frame, x_create_tip_frame):
18904 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18905 * macfns.c (Fx_create_frame):
18906 Don't set the obsolete `window-system' frame-param.
18907
18908 * frame.h (Qwindow_system): Remove.
18909 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18910 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18911
189122007-10-24 Richard Stallman <rms@gnu.org>
18913
18914 * frame.c (x_figure_window_size): For fullscreen case,
18915 set USPosition | PPosition without clobbering rest of window_prompting.
18916
18917 * keyboard.c (Fcurrent_idle_time): Doc fix.
18918
18919 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18920
189212007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18922
18923 * process.c (unwind_request_sigio): Only define if __ultrix__.
18924
18925 * callproc.c (child_setup): Remove spurious *.
18926
18927 * lisp.h (Fget_text_property): Declare.
18928 (have_menus_p): Declare it here rather than in sys-dep header files.
18929 * macterm.h (have_menus_p):
18930 * msdos.h (have_menus_p):
18931 * xterm.h (have_menus_p): Remove.
18932
18933 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18934 (Fmake_variable_frame_local): Just check the variable's const-ness
18935 rather than checking nil or t.
18936
189372007-10-22 Jason Rumney <jasonr@gnu.org>
18938
18939 * w32fns.c: Include math.h.
18940 (w32_abort): Declaration moved to nt/config.nt.
18941
18942 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18943 (abort): Redefinition moved to nt/config.nt.
18944
18945 * m/windowsnt.h: Remove.
18946
189472007-10-22 Juanma Barranquero <lekktu@gmail.com>
18948
18949 * emacs.c (Fdump_emacs): Fix typo in message.
18950 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18951 <installation-directory>: Reflow docstring.
18952
189532007-10-22 Juri Linkov <juri@jurta.org>
18954
18955 * minibuf.c: Allow minibuffer default to be a list of default values.
18956 With empty input use the first element of this list as returned default.
18957 (string_to_object)
18958 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18959 (read_minibuf): If defalt is cons, set histstring to its car.
18960 (Fread_string): If default_value is cons, set val to its car.
18961 (Fread_buffer): If def is cons, use its car.
18962 (Fcompleting_read): If defalt is cons, set val to its car.
18963
189642007-10-21 Michael Albinus <michael.albinus@gmx.de>
18965
18966 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18967
189682007-10-20 Juanma Barranquero <lekktu@gmail.com>
18969
18970 * doc.c (Fdocumentation): Check for advice in all cases.
18971
189722007-10-19 Chong Yidong <cyd@stupidchicken.com>
18973
18974 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18975
189762007-10-19 Richard Stallman <rms@gnu.org>
18977
18978 * doc.c (Fdocumentation): Check for and handle an advised function.
18979
189802007-10-19 Juanma Barranquero <lekktu@gmail.com>
18981
18982 * process.c (Fset_process_filter): Doc fix.
18983
189842007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18985
18986 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18987 which caused key-translation-map to applied repeatedly (thus breaking
18988 double-mode).
18989
189902007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18991
18992 * xselect.c (x_own_selection, x_handle_selection_clear)
18993 (x_clear_frame_selections):
18994 * w32menu.c (list_of_panes, list_of_items):
18995 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18996 * textprop.c (validate_plist, interval_has_all_properties)
18997 (interval_has_some_properties, interval_has_some_properties_list)
18998 (add_properties, text_property_list):
18999 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19000 * minibuf.c (Fassoc_string):
19001 * macselect.c (x_own_selection, x_clear_frame_selections)
19002 (Fx_disown_selection_internal):
19003 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19004 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19005
190062007-10-17 Chong Yidong <cyd@stupidchicken.com>
19007
19008 * process.c: Link to libs for calling res_init() if available.
19009 (Fmake_network_process): Call res_init() before getaddrinfo or
19010 gethostbyname, if possible.
19011
190122007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19013
19014 * lread.c (read1): Set pvectype for char_tables.
19015
19016 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19017 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19018 Add type checks.
19019 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19020
19021 * alloc.c (free_misc): Use XMISCTYPE.
19022 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19023
190242007-10-17 Glenn Morris <rgm@gnu.org>
19025
19026 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19027 (syms_of_minibuf): Add Qcompletion_ignore_case.
19028 * dired.c (Qcompletion_ignore_case): Change to external.
19029 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19030 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19031 (Fread_file_name): Use it rather than intern'ing.
19032
19033 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19034 (Fread_coding_system): Ignore case of user input.
19035
190362007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19037
19038 * xdisp.c (handle_display_prop): Ignore display specs after
19039 replacing one when string text is being replaced.
19040 (handle_single_display_spec): Pretend as if characters with display
19041 property haven't been consumed only when buffer text is being replaced.
19042
190432007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19044
19045 * xfns.c (Fx_create_frame, Fx_display_list):
19046 * window.c (window_fixed_size_p, enlarge_window)
19047 (shrink_window_lowest_first):
19048 * macterm.c (init_font_name_table):
19049 * macfns.c (Fx_create_frame, Fx_display_list):
19050 * lread.c (close_load_descs):
19051 * keyboard.c (read_char_x_menu_prompt):
19052 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19053 * coding.c (code_convert_region_unwind): Test the type of an object
19054 rather than just !NILP before extracting data from it.
19055
19056 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19057
19058 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19059 (XMISCANY): New macro.
19060 (XMISCTYPE): Use it.
19061 (struct Lisp_Misc_Any): New type.
19062 (union Lisp_Misc): Use it.
19063 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19064 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19065 (find_symbol_value, set_internal, default_value, Fset_default)
19066 (Fmake_variable_buffer_local, Fmake_local_variable)
19067 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19068 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19069 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19070 * alloc.c (allocate_buffer): Set the size and tag.
19071 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19072 Use XMISCANY.
19073 (die): Follow the GNU convention for error messages.
19074 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19075 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19076 tag any more.
19077 (set_buffer_internal_1):
19078 * frame.c (store_frame_param):
19079 * eval.c (specbind):
19080 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19081
19082 * doc.c (Fsnarf_documentation): Simplify.
19083
190842007-10-14 Juanma Barranquero <lekktu@gmail.com>
19085
19086 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19087 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19088
190892007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19092
190932007-10-14 Juanma Barranquero <lekktu@gmail.com>
19094
19095 * eval.c (do_autoload): Don't save autoloads.
19096
19097 * data.c (Ffset): Save autoload of the function being set.
19098
190992007-10-07 John Paul Wallington <jpw@pobox.com>
19100
19101 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19102 parameter before setting up faces.
19103
191042007-10-13 Eli Zaretskii <eliz@gnu.org>
19105
19106 * ccl.c (Fregister_code_conversion_map):
19107 * keyboard.c (append_tool_bar_item): Reformat last change.
19108
19109 * lisp.h (eabs): Rename from `abs'. All callers changed.
19110
191112007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19112
19113 * buffer.c (add_overlay_mod_hooklist):
19114 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19115 * fontset.c (make_fontset):
19116 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19117 (append_tool_bar_item):
19118 * macmenu.c (grow_menu_items):
19119 * w32menu.c (grow_menu_items):
19120 * xmenu.c (grow_menu_items): Use larger_vector.
19121
191222007-10-13 Eli Zaretskii <eliz@gnu.org>
19123
19124 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19125 selected frame'' on MSDOS).
19126
191272007-10-12 Martin Rudalics <rudalics@gmx.at>
19128
19129 * frame.c (Qexplicit_name): New variable.
19130 (x_report_frame_params): Report it in parameter alist.
19131 (syms_of_frame): Intern and staticpro it.
19132
191332007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19134
19135 * macfns.c (x_create_tip_frame): Set terminal for frame.
19136
191372007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19138
19139 * frame.c (Qenvironment): Remove.
19140 (syms_of_frame) <Qenvironment>: Don't initialize.
19141 (Fdelete_frame): Don't treat the `environment' param specially.
19142 * frame.h (Qenvironment): Don't declare.
19143 * callproc.c (set_initial_environment): Don't set unused frame param.
19144
19145 * frame.c (Fframe_with_environment): Remove.
19146 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19147
19148 * lisp.h (Fframe_with_environment): Don't declare.
19149
191502007-10-10 Juanma Barranquero <lekktu@gmail.com>
19151
19152 * indent.c (indent_tabs_mode, last_known_column)
19153 (last_known_column_modified): Make static.
19154 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19155
191562007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19157
19158 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19159
191602007-10-09 Jason Rumney <jasonr@gnu.org>
19161
19162 * w32term.c (x_set_window_size): Disable code that attempts to tell
19163 Lisp code about a size change before it actually happens.
19164
191652007-10-09 Richard Stallman <rms@gnu.org>
19166
19167 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19168 return HANDLED_RETURN.
19169
191702007-10-08 Martin Rudalics <rudalics@gmx.at>
19171
19172 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19173 when there's an unread command event.
19174
19175 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19176 window autoselection act appropriately when leaving selected frame.
19177 (syms_of_frame): Initialize focus_follows_mouse.
19178 * frame.h (focus_follows_mouse): Extern it.
19179 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19180 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19181 * msdos.c (dos_rawgetc): Likewise.
19182 * w32term.c (w32_read_socket): Likewise.
19183 * xterm.c (handle_one_xevent): Likewise.
19184 * xdisp.c (syms_of_xdisp): In doc-string of
19185 mouse-autoselect-window mention focus-follows-mouse.
19186
191872007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19188
19189 * macterm.c (mac_load_query_font): Fix missing return value.
19190 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19191 Add BLOCK_INPUT.
19192
191932007-10-08 Richard Stallman <rms@gnu.org>
19194
19195 * xdisp.c (get_window_cursor_type): Implement documented behavior
19196 for cursor-in-non-selected-windows = t.
19197
191982007-10-08 Jason Rumney <jasonr@gnu.org>
19199
19200 * w32.c (w32_get_resource): Always close registry keys.
19201
192022007-10-08 Jason Rumney <jasonr@gnu.org>
19203
19204 * makefile.w32-in (LIBS): Add COMCTL32.
19205
19206 * w32fns.c (globals_of_w32fns): Init common controls.
19207
192082007-10-08 Richard Stallman <rms@gnu.org>
19209
19210 * image.c (our_memory_buffer): Rename from omfib_buffer.
19211
192122007-10-08 Richard Stallman <rms@gnu.org>
19213
19214 * buffer.c (Foverlays_at): Doc fix.
19215
192162007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19217
19218 * fns.c (Fplist_put): Preserve uneven tail data.
19219
192202007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19221
19222 * termhooks.h (enum event_kind): Remove trailing comma.
19223
19224 * frame.h (enum): Remove trailing comma.
19225
192262007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19227
19228 * w32proc.c (delete_child): Don't terminate threads of zombies.
19229
192302007-10-08 Martin Rudalics <rudalics@gmx.at>
19231
19232 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19233
19234 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19235 last-repeatable-command.
19236 (init_kboard): Initialize Vlast_repeatable_command.
19237 (command_loop_1): Set it to real_this_command unless that was
19238 bound to an input event.
19239 (mark_kboards): Mark it.
19240
192412007-10-08 Richard Stallman <rms@gnu.org>
19242
19243 * eval.c (condition-case): Doc fix.
19244
192452007-10-08 Masatake YAMATO <jet@gyve.org>
19246
19247 * xfaces.c (tty_supports_face_attributes_p): Fix code
19248 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19249 was copied and not edited.
19250
192512007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19252
19253 Add new `input-decode-map' keymap and use it for terminal
19254 escape sequences.
19255 * keyboard.h (struct kboard): Add Vinput_decode_map.
19256 Remove Vlocal_key_translation_map.
19257 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19258 (init_kboard): Init input-decode-map.
19259 Replace local-key-translation-map back with key-translation-map.
19260 (syms_of_keyboard): Declare input-decode-map.
19261 Remove local-key-translation-map. Update docstrings.
19262 (mark_kboards): Mark Vinput_decode_map.
19263 Don't mark Vlocal_key_translation_map.
19264 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19265 Replace local-key-translation-map back with key-translation-map.
19266 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19267 Bind in input-decode-map rather than function-key-map.
19268
19269 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19270 This was made redundant by the previous introduction of XSETPVECTYPE.
19271
192722007-10-09 Richard Stallman <rms@gnu.org>
19273
19274 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19275
192762007-09-29 Richard Stallman <rms@gnu.org>
19277
19278 * eval.c (internal_condition_case_2, internal_condition_case_1)
19279 (internal_condition_case): Reenable abort if x_catching_errors ()
19280 to see if that really happens and why.
19281
192822007-10-06 Andreas Schwab <schwab@suse.de>
19283
19284 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19285
192862007-10-04 Juanma Barranquero <lekktu@gmail.com>
19287
19288 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19289
192902007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19291
19292 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19293
192942007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19295
19296 * window.h (struct window):
19297 * window.c (struct save_window_data, struct saved_window):
19298 * termhooks.h (struct terminal):
19299 * process.h (struct Lisp_Process):
19300 * frame.h (struct frame):
19301 * buffer.h (struct buffer):
19302 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19303 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19304 The size field of (pseudo)vectors is now unsigned.
19305 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19306
19307 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19308 Turn `count' into an integer.
19309
19310 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19311 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19312 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19313 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19314 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19315
19316 * alloc.c (allocate_pseudovector): New fun.
19317 (ALLOCATE_PSEUDOVECTOR): New macro.
19318 (allocate_window, allocate_terminal, allocate_frame)
19319 (allocate_process): Use it.
19320 (mark_vectorlike): New function.
19321 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19322 (mark_terminals): Use it.
19323 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19324 (Fmake_byte_code): Use XSETPVECTYPE.
19325
19326 * frame.c (Fframe_parameters): Minor simplification.
19327
19328 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19329
19330 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19331
19332 * buffer.c (Fget_buffer_create, init_buffer_once):
19333 * lread.c (defsubr):
19334 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19335
19336 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19337 defined differently in the m/*.h files.
19338 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19339 (XSETPVECTYPE): New macro.
19340 (XSETPSEUDOVECTOR): Use it.
19341
19342 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19343 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19344
19345 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19346 * lread.c (defvar_per_buffer):
19347 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19348
19349 * window.c (candidate_window_p): Only consider as visible frames that
19350 are on the same terminal.
19351
19352 * m/ibms390x.h (MARKBIT): Remove unused macro.
19353
193542007-10-01 Juanma Barranquero <lekktu@gmail.com>
19355
19356 * lread.c (Fload): Fix typo in docstring.
19357
193582007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19359
19360 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19361 of a non-zero value can't yield zero.
19362
193632007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19364
19365 * term.c (term_clear_mouse_face, term_mouse_highlight)
19366 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19367
19368 * print.c (safe_debug_print): Use XHASH.
19369
19370 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19371 Lisp elements such as tags.
19372 (XHASH): New macro.
19373 (EQ): Use it.
19374 (SREF, SSET, STRING_COPYIN): Use SDATA.
19375 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19376
19377 * alloc.c (mark_terminal): Remove left-over declaration.
19378 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19379 (allocate_vectorlike): Remove type argument. Adjust callers.
19380 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19381 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19382
19383 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19384 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19385 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19386 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19387 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19388 Use them.
19389
19390 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19391 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19392 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19393
193942007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19395
19396 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19397 loaded by default.
19398
193992007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19400
19401 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19402 on this tty.
19403 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19404
19405 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19406 Update all users.
19407 (handle_one_term_event): Use Gpm_DrawPointer.
19408 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19409 Signal errors instead of returning nil. Always return nil.
19410 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19411 Make it a noop if gpm-mouse was not activated.
19412 (syms_of_term): Update names.
19413
194142007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19415
19416 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19417 (init_sys_modes): Check that gpm_tty is the current tty.
19418
19419 * alloc.c (allocate_terminal): Set the vector size to only count the
19420 lisp fields. Initialize those to nil.
19421 (mark_object): Don't treat terminals specially.
19422 (mark_terminal): Remove.
19423 (mark_terminals): Use mark_object instead.
19424
19425 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19426 the GC to the beginning.
19427
19428 * indent.h:
19429 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19430
19431 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19432
194332007-09-25 Jason Rumney <jasonr@gnu.org>
19434
19435 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19436
19437 * w32console.c (create_w32cons_output): Remove.
19438
19439 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19440
19441 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19442 (reset_sys_modes): Use reset_terminal_modes_hook.
19443
194442007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19445
19446 * eval.c (do_autoload): Don't output any message.
19447
194482007-09-24 Juri Linkov <juri@jurta.org>
19449
19450 * emacs.c (standard_args): Change priority of "--no-splash"
19451 from 40 to 3. Add "--no-desktop" with the same priority.
19452
194532007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19454
19455 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19456 and optimize the case where they are all 1.
19457
194582007-09-23 Johannes Weiner <hannes@saeurebad.de>
19459
19460 * lisp.h (abs): Define if not defined.
19461 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19462 Don't define `abs', since it's defined in lisp.h.
19463
194642007-09-22 Eli Zaretskii <eliz@gnu.org>
19465
19466 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19467 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19468 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19469 (init_tty): Use DEV_TTY instead of "/dev/tty".
19470 [WINDOWSNT]: No need to protect from NAME arg being null.
19471
194722007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19473
19474 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19475 up the tty state.
19476
194772007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19478
19479 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19480 (gpm_tty): Change its type.
19481 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19482 (gpm_tty): Change its type and initialize it.
19483 (Fterm_open_connection): Check the frame is indeed a tty.
19484 Use the new gpm_tty.
19485 (Fterm_close_connection): Use the new gpm_tty.
19486 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19487 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19488
194892007-09-21 Juanma Barranquero <lekktu@gmail.com>
19490
19491 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19492 underline_color, to draw strike-through.
19493
194942007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19495
19496 * lisp.h (allocate_terminal): Declare.
19497
19498 * window.c (candidate_window_p): Consider frames that are being placed
19499 by the user as somewhere between visible and iconified.
19500 (window_loop): Prefer windows on the current frame.
19501 (Fselect_window): Move the use of select-frame to the beginning so we
19502 can just delegate all the work (it'll call us back anyway).
19503
19504 * frame.c (Qdisplay_environment_variable):
19505 * frame.h (Qdisplay_environment_variable): Delete.
19506
19507 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19508 of the first arg, since that value may be a union.
19509
19510 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19511 parameter rather than Qdisplay_environment_variable. If all else
19512 fails, look for DISPLAY in initial-environment.
19513
195142007-09-21 Glenn Morris <rgm@gnu.org>
19515
19516 * Makefile.in (emacstool): Remove target.
19517 (lisp, shortlisp): Remove termdev.elc.
19518
195192007-09-21 Markus Triska <markus.triska@gmx.at>
19520
19521 * xterm.c (x_delete_display): Compile session management conditionally.
19522
195232007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19524
19525 * callproc.c (getenv_internal_1): New function.
19526 (getenv_internal): Use it.
19527 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19528
19529 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19530 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19531 (Fset_terminal_parameter): Work with dead terminals as well.
19532 (Fmodify_terminal_parameters): Remove.
19533
19534 * terminal.c (get_terminal): Handle terminals.
19535 Make sure the terminal returned is live.
19536 (create_terminal): Use allocate_terminal.
19537 (mark_terminals): Move to alloc.c.
19538 (delete_terminal): Use terminal->name as liveness status.
19539 NULL out fields after freeing their contents.
19540 Don't deallocate the object.
19541 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19542 rather than an int.
19543 (Fterminal_live_p): Accept non-integer arguments.
19544 (Fterminal_list): Return terminal objects rather than an ints.
19545
19546 * alloc.c (enum mem_type): New member for `terminal' objects.
19547 (allocate_terminal): New function.
19548 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19549 Handle terminals.
19550 (mark_terminal): New fun.
19551 (mark_terminals): Move from terminal.c.
19552
19553 * term.c (get_tty_terminal): Don't treat output_initial specially.
19554 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19555 (delete_tty): Use terminal->name as liveness status.
19556
19557 * termhooks.h (struct terminal): Make it into a pseudovector.
19558 Remove `deleted' replaced by checking `name's nullness.
19559
19560 * print.c (print_object): Handle terminals.
19561
19562 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19563 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19564
19565 * frame.c (make_terminal_frame):
19566 * keyboard.c (tty_read_avail_input):
19567 * w32term.c (x_delete_terminal):
19568 * xfns.c (Fx_create_frame, x_create_tip_frame):
19569 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19570
195712007-09-20 Glenn Morris <rgm@gnu.org>
19572
19573 * process.c (Fmake_network_process): Doc fix.
19574
195752007-09-19 Jason Rumney <jasonr@gnu.org>
19576
19577 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19578
195792007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19580
19581 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19582 Fix a C warning regarding variable constness.
19583
19584 * xterm.c (handle_one_xevent): Fix a C warning.
19585
195862007-09-18 Jason Rumney <jasonr@gnu.org>
19587
19588 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19589
195902007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19591
19592 * gtkutil.c (gdpy_def): New variable.
19593 (xg_initialize): Initialize gdpy_def.
19594 (xg_display_close): If no other display exists, set gdpy_def to a
19595 new connection.
19596
195972007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19598
19599 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19600 when we have no file name for the icon.
19601 (xg_tool_bar_expose_callback): Remove.
19602 (xg_create_tool_bar): Don't connect expose signal to
19603 xg_tool_bar_expose_callback.
19604 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19605
196062007-09-16 Andreas Schwab <schwab@suse.de>
19607
19608 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19609 values instead of zapping them.
19610
196112007-09-14 Glenn Morris <rgm@gnu.org>
19612
19613 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19614 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19615 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19616 scope and rename to omfib_buffer for clarity.
19617 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19618
196192007-09-14 Kenichi Handa <handa@m17n.org>
19620
19621 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19622
196232007-09-13 Jason Rumney <jasonr@gnu.org>
19624
19625 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19626
19627 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19628
19629 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19630 (mac_term_init): Call here instead, passing rif.
19631
196322007-09-13 Glenn Morris <rgm@gnu.org>
19633
19634 * s/hpux.h: No longer define `static' as nothing.
19635
196362007-09-13 Johan Bockgård <bojohan@gnu.org>
19637
19638 * callint.c (Fcall_interactively): Remove unused var `fun'.
19639
196402007-09-12 Romain Francoise <romain@orebokech.com>
19641
19642 * window.c (prefer_window_split_horizontally, display_buffer):
19643 Revert 2007-09-08 change.
19644
196452007-09-12 Glenn Morris <rgm@gnu.org>
19646
19647 * alloca.c: Remove file.
19648 * Makefile.in (alloca): Do not undef.
19649 (allocaobj, alloca.o): Remove.
19650 (otherobj): Remove allocaobj.
19651 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19652 * regex.c (C_ALLOCA): Remove all references and code that was only
19653 used when this was defined.
19654 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19655 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19656 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19657
19658 * Makefile.in (SOURCES, unlock, relock): Delete.
19659
19660 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19661 (menu_grab_callback): All uses changed.
19662
19663 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19664 (x_reply_selection_request): All uses changed.
19665
196662007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19667
19668 * lread.c (load_warn_old_style_backquotes): Change message to look
19669 better when it appears in the middle of byte-compiler messages.
19670
196712007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19672
19673 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19674
19675 * xterm.c (x_create_terminal): Add comment.
19676
19677 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19678
196792007-09-10 Richard Stallman <rms@gnu.org>
19680
19681 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19682
196832007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19684
19685 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19686 (DEFUN): Document `intspec', use it instead of `prompt'.
19687
19688 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19689
19690 * data.c (Finteractive_form): If the interactive specification starts
19691 with a `(', use it as a Lisp form.
19692
19693 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19694 name and file modes.
19695
19696 * callint.c (Fcall_interactively): Comment fixes.
19697
196982007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19699
19700 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19701 and compiled functions.
19702
197032007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19704
19705 * window.c (prefer_window_split_horizontally): New variable.
19706 (display_buffer): Consider splitting window horizontally depending
19707 on prefer_window_split_horizontally.
19708
197092007-09-08 Eli Zaretskii <eliz@gnu.org>
19710
19711 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19712
197132007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19716
19717 * frame.c (x_set_frame_parameters): Check number is positive before
19718 using XFASTINT.
19719
19720 * window.c (freeze_window_start): Don't presume selected_window holds
19721 a window object.
19722 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19723
197242007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19725
19726 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19727
197282007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19729
19730 * window.c (Vsplit_window_preferred_function): New var.
19731 (Fdisplay_buffer): Use it.
19732 (syms_of_window): Export, and initialize it.
19733
197342007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19735
19736 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19737
197382007-09-06 Glenn Morris <rgm@gnu.org>
19739
19740 * gtkutil.c (menu_grab_callback) <cnt>:
19741 * xselect.c (x_reply_selection_request) <cnt>: Move static
19742 variable to file scope.
19743
197442007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19745
19746 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19747 consistent values of selected_frame and selected_window.
19748
197492007-09-04 Jason Rumney <jasonr@gnu.org>
19750
19751 * w32console.c (initialize_w32_display): Zero unused hooks.
19752
197532007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19754
19755 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19756 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19757
197582007-09-04 Jason Rumney <jasonr@gnu.org>
19759
19760 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19761 in w32console.c. Set up input. Remove XXX comments that have been
19762 confirmed as correct.
19763
19764 * s/ms-w32.h (MULTI_KBOARD): Define.
19765
19766 * w32console.c (one_and_only_w32cons): Remove.
19767 (initialize_w32_display): Take terminal argument.
19768
19769 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19770 initialize_w32_display.
19771 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19772
19773 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19774
19775 * keyboard.c (discard_mouse_events): Discard it.
19776 (make_lispy_event): Translate it to a lisp event.
19777 (lispy_wheel_names): Add wheel-left and right events.
19778 (syms_of_keyboard): Enlarge wheel_syms.
19779
19780 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19781 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19782
19783 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19784
19785 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19786 from WM_MOUSEHWHEEL.
19787 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19788
19789 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19790 terminal.
19791
19792 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19793 keyboard for the terminal.
19794
197952007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19796
19797 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19798 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19799 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19800 and resume-tty-function to resume-tty-hook.
19801 (Fsuspend_tty, Fresume_tty): Use new names.
19802
198032007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19804
19805 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19806 if it starts with "n:".
19807
198082007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19809
19810 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19811
198122007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19813
19814 * frame.h:
19815 * frame.c (Qterm_environment_variable): Remove.
19816 (syms_of_frame): Don't init and staticpro it.
19817
19818 * callproc.c (getenv_internal): Remove special case for $TERM.
19819
19820 * callproc.c (Vinitial_environment): New variable.
19821 (set_initial_environment): Initialize it.
19822 (syms_of_callproc): Declare it.
19823 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19824 TERM under which a process runs is never related to the TERM in which
19825 Emacs is running.
19826
198272007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19828
19829 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19830 * s/darwin.h: ... do it here.
19831
198322007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19833
19834 * lisp.h (set_initial_environment): Rename from set_global_environment.
19835
19836 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19837 removed by mistake on the multi-tty branch.
19838
19839 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19840 (Fmodify_frame_parameters): Return a value.
19841
19842 * image.c (png_load): Comment-out var only used in commented-out code.
19843
19844 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19845 before passing it to mark_object.
19846
19847 * xfaces.c (internal_resolve_face_name): Return a value.
19848 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19849
19850 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19851 (x_icon): Comment-out var only used in commented-out code.
19852
198532007-08-29 Romain Francoise <romain@orebokech.com>
19854
19855 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19856 QUIT hasn't been provided.
19857
198582007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19859
19860 * callproc.c (child_setup, getenv_internal): Use the
19861 display-environment-variable and term-environment-variable frame params.
19862 (set_initial_environment): Initialise Vprocess_environment.
19863
19864 * config.in: Disable multi-keyboard support on a mac.
19865
19866 * frame.c (Qterm_environment_variable)
19867 (Qdisplay_environment_variable): New variables.
19868 (syms_of_frame): Intern and staticpro them.
19869 (Fmake_terminal_frame): Disable output method test.
19870
19871 * frame.h: Declare them here.
19872
19873 * macfns.c (x_set_mouse_color): Get rif from the frame.
19874 (x_set_tool_bar_lines): Don't use updating_frame.
19875 (mac_window): Add 2 new parameters for consistency with other systems.
19876 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19877 frame parameters following what is done in X11 and w32. Don't use
19878 FRAME_MAC_DISPLAY_INFO.
19879 (Fx_open_connection, start_hourglass): Remove window-system check.
19880 (x_create_tip_frame): Get the keyboard from the terminal.
19881
19882 * macmenu.c: Reorder includes.
19883 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19884
19885 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19886 terminal parameter.
19887 (x_clear_frame): Add a frame parameter.
19888 (note_mouse_movement): Get rif from the frame.
19889 (mac_term_init): Initialize the terminal.
19890 (mac_initialize): Make static and move terminal initialization ...
19891 (mac_create_terminal): ... to this new function.
19892
19893 * macterm.h (struct mac_display_info): Add terminal.
19894 (mac_initialize): Delete declaration.
19895
19896 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19897
19898 * sysdep.c: Comment out text after #endif.
19899
19900 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19901 is defined. Better initialize ttys in windows. Use terminal
19902 specific mouse_position_hook.
19903
19904 * termhooks.h (union display_info): Add mac_display_info.
19905
19906 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19907 Set the default minibuffer frame, window_system and the rest of the
19908 frame parameters following what is done in X11.
19909
19910 * w32term.c (w32_initialize): Make static.
19911
19912 * xselect.c (x_handle_selection_clear): Only access
19913 terminal->kboard when MULTI_KBOARD is defined.
19914
19915 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19916 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19917
199182007-08-29 Jason Rumney <jasonr@gnu.org>
19919
19920 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19921 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19922
19923 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19924 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19925
19926 * keyboard.c (restore_kboard_configuration): Only define when
19927 MULTI_KBOARD defined.
19928
19929 * makefile.w32-in: Update dependancies from Makefile.in.
19930 (OBJ1): Add terminal.$(O)
19931
19932 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19933 Don't define function body.
19934 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19935
19936 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19937
19938 * w32.c (request_sigio, unrequest_sigio): Remove.
19939
19940 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19941 (w32con_clear_frame, w32con_clear_end_of_line)
19942 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19943 (w32con_delete_glyphs, w32con_set_terminal_window)
19944 (scroll_line, w32_sys_ring_bell): Add frame arg.
19945 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19946 Add terminal arg.
19947 (PICK_FRAME): Remove.
19948 (w32con_write_glyphs): Use frame specific terminal coding.
19949 (one_and_only_w32cons): New global variable.
19950 (initialize_w32_display): Use it for storing hooks.
19951 (create_w32cons_output): New function.
19952
19953 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19954 arg a frame.
19955
19956 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19957 Set window_system.
19958 (x_set_tool_bar_lines): Don't use updating_frame.
19959 (Fx_create_frame): Set terminal and ref count.
19960 (Fx_open_connection): Remove window-system check.
19961
19962 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19963
19964 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19965 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19966 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19967 Add frame arg.
19968 (x_delete_terminal, w32_create_terminal): New functions.
19969 (w32_term_init): Create a terminal.
19970 (w32_initialize): Move terminal specific initialization to
19971 w32_create_terminal.
19972
19973 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19974 (w32_clear_rect, w32_clear_area): Use background from frame.
19975 (w32_display_info): Add terminal.
19976 (w32_sys_ring_bell, x_delete_display): Declare here.
19977
19978 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19979
19980 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19981
199822007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19983
19984 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19985 Fix get_named_tty calls for the controlling tty.
19986
199872007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19988
19989 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19990
199912007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19992
19993 * term.c (tty_insert_glyphs): Add missing first parameter.
19994
199952007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19996
19997 * buffer.c (Fbuffer_list, Fbury_buffer):
19998 Take frame->buried_buffer_list into account.
19999
20000 * cm.c (current_tty): New variable, for cmputc().
20001 (cmputc): Use it.
20002 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20003 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20004 (cmgoto): Add tty parameter. Pass it on to calccost().
20005 Use emacs_tputs() instead of tputs().
20006
20007 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20008 tputs().
20009 (current_tty): New variable, for cmputc().
20010 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20011
20012 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20013 (internal_condition_case, internal_condition_case_1)
20014 (internal_condition_case_2): Don't abort when x_catching_errors.
20015
20016 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20017 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20018 prevent crashes caused by bogus longjmps in read_char.
20019
20020 * keymap.h (Fset_keymap_parent): Add EXFUN.
20021
20022 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20023 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20024 Remove redundant definition.
20025
20026 * macfns.c (x_set_mouse_color, x_make_gc):
20027 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20028
20029 * w32term.c (x_free_frame_resources):
20030 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20031 (w32_initialize): Use the accessor macros for terminal characteristics.
20032
20033 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20034 Use the accessor macros for terminal characteristics.
20035 * msdos.c (internal_terminal_init): Use the accessor macros for
20036 terminal characteristics.
20037 (ScreenVisualBell, internal_terminal_init):
20038 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20039
20040 * termopts.h (no_redraw_on_reenter): Declare.
20041
20042 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20043 (mark_terminals, mark_ttys): Declare.
20044 (Fgarbage_collect): Call them.
20045 (mark_object): Mark buried_buffer_list.
20046
20047 * prefix-args.c: Include stdlib.h for exit.
20048
20049 * syssignal.h: Add comment.
20050
20051 * indent.c: Include stdio.h.
20052
20053 * window.h (Vinitial_window_system): Declare.
20054 (Vwindow_system): Delete declaration.
20055
20056 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20057
20058 * image.c (lookup_image): Don't initialize `c' until the xasserts
20059 have been run.
20060
20061 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20062 FRAME_FOREGROUND_PIXEL.
20063
20064 * print.c (print_preprocess): Don't lose print_depth levels while
20065 iterating.
20066
20067 * widget.c (update_from_various_frame_slots):
20068 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20069
20070 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20071 frames.
20072 (window_internal_height): Remove bogus make_number call.
20073 (init_window_once): Call make_terminal_frame with two zero parameters.
20074
20075 * fileio.c (Fread_file_name): Update comment.
20076
20077 * callint.c (Fcall_interactively):
20078 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20079 Make sure it is correctly unwound.
20080
20081 * xsmfns.c (x_session_close): New function.
20082
20083 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20084 Delete declarations.
20085
20086 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20087 (x_output): Remove background_pixel and foreground_pixel fields.
20088 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20089 (x_delete_device, x_session_close): Declare.
20090
20091 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20092 (read_filtered_event): Call `read_char' with a local
20093 `wrong_kboard_jmpbuf'.
20094
20095 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20096 Don't call single_kboard_state. Use FRAME_RIF.
20097
20098 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20099 systems.
20100
20101 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20102 (Fframe_with_environment, Fset_input_meta_mode)
20103 (Fset_quit_char): EXFUN.
20104 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20105 (init_sys_modes, reset_sys_modes): Update prototypes.
20106 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20107
20108 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20109 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20110 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20111 Delete declarations.
20112 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20113 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20114 New declarations.
20115
20116 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20117 already does that during init_display(). Call syms_of_keymap
20118 before syms_of_keyboard. Call `syms_of_terminal'.
20119 Call set_initial_environment, not set_process_environment.
20120 (shut_down_emacs): Call reset_all_sys_modes() instead of
20121 reset_sys_modes().
20122
20123 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20124 (internal_resolve_face_name, resolve_face_name_error): New functions.
20125 (resolve_face_name): Protect against loops and errors thrown by Fget.
20126 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20127 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20128
20129 * scroll.c: Replace CURTTY() with local variables throughout the
20130 file (where applicable).
20131 (calculate_scrolling, calculate_direct_scrolling)
20132 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20133 characteristics.
20134
20135 * keymap.c (Vfunction_key_map): Remove.
20136 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20137 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20138 (Vkey_translation_map): Remove.
20139 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20140 (Fdescribe_buffer_bindings)
20141 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20142 Update for terminal-local key-translation-map.
20143
20144 * Makefile.in (callproc.o): Update dependencies.
20145 (lisp, shortlisp): Add termdev.elc.
20146 (obj): Add terminal.o.
20147 (terminal.o): Add dependencies.
20148 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20149 (data.o, fns.o): Add termhooks.h dependency.
20150 (SOME_MACHINE_LISP): Add dnd.elc.
20151 (minibuf.o): Fix typo.
20152 Update dependencies.
20153
20154 * data.c (do_symval_forwarding, store_symval_forwarding)
20155 (find_symbol_value): Use the selected frame's keyboard, not
20156 current_kboard.
20157
20158 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20159 Vwindow_system.
20160
20161 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20162 Fmenu_bar_open.
20163 (syms_of_xmenu): Update defsubr.
20164 (mouse_position_for_popup, Fx_popup_menu)
20165 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20166 (set_frame_menubar, free_frame_menubar)
b97439ce 20167 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20168 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20169 an X frame.
20170
20171 * xselect.c (x_own_selection): Abort if not an X frame.
20172 (some_frame_on_display): Check if it is an X frame.
20173 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20174
20175 * coding.c: Include frame.h and termhooks.h.
20176 (terminal_coding, keyboard_coding): Delete.
20177 (Fset_terminal_coding_system_internal)
20178 (Fset_keyboard_coding_system_internal)
20179 (Fkeyboard_coding_system)
20180 (Fterminal_coding_system): Add a terminal parameter.
20181 Get terminal_coding from the terminal.
20182 (init_coding_once): Don't call setup_coding_system here.
20183
20184 * dispextern.h (set_scroll_region, turn_off_insert)
20185 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20186 (tty_clear_end_of_line, tty_setup_colors)
20187 (delete_tty, updating_frame)
20188 (produce_special_glyphs, produce_glyphs, write_glyphs)
20189 (insert_glyphs): Remove.
20190 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20191 (tty_turn_off_highlight, get_tty_size): Add declaration.
20192 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20193
20194 * frame.h (enum output_method): Add output_initial.
20195 (struct x_output): Delete.
20196 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20197 Access foreground_pixel and background_pixel directly from the frame.
20198 (tty_display): Delete.
20199 (struct frame): Add buried_buffer_list, foreground_pixel,
20200 background_pixel and terminal. Delete kboard.
20201 (union output_data): Add tty.
20202 (FRAME_KBOARD): Get the kboard from the terminal.
20203 (FRAME_INITIAL_P): New macro.
20204 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20205 (Qterm_environment_variable, Qdisplay_environment_variable)
20206 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20207 New declarations.
20208
20209 * termchar.h (tty_output, tty_display_info): New structures.
20210 (tty_list): Declare.
20211 (FRAME_TTY, CURTTY): New macros.
20212 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20213 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20214 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20215 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20216
20217 * callproc.c: Include frame.h and termhooks.h, for terminal
20218 parameters.
20219 (add_env): New function.
20220 (child_setup): Use it.
20221 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20222 (getenv_internal): Fix get_terminal_param call.
20223 (Fgetenv_internal, egetenv): Update doc.
20224 (syms_of_callproc): Initialize Vprocess_environment to nil.
20225 Register and initialize them. Remove obsolete defvars. Update doc
20226 strings.
20227 (child_setup): Handle Vlocal_environment_variables.
20228 (getenv_internal): Add terminal parameter.
20229 Handle Vlocal_environment_variables.
20230 (Fgetenv_internal): Add terminal parameter.
20231 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20232 environment in a frame (not terminal) parameter. Update doc strings.
20233 (set_initial_environment): Rename from set_global_environment.
20234 Store Emacs environment in initial frame parameter.
20235
20236 * xdisp.c (redisplay_internal): Update references to
20237 `previous_terminal_frame'.
20238 (display_mode_line, Fformat_mode_line): Replace calls to
20239 `push_frame_kboard' with `push_kboard'.
20240 (get_glyph_string_clip_rects): Add extra parentheses and
20241 braces to prevent compiler warnings.
20242 (calc_pixel_width_or_height): Add xassert to check that the
20243 frame is alive. Don't call `lookup_image' on a termcap frame.
20244 (message2_nolog, message3_nolog, redisplay_internal)
20245 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20246 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20247 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20248 (Fx_display_pixel_width, Fx_display_pixel_height)
20249 (Fx_display_planes, Fx_display_color_cells)
20250 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20251 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20252 (Fx_display_backing_store, Fx_display_visual_class)
20253 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20254 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20255
20256 * xfns.c (x_set_foreground_color x_set_background_color)
20257 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20258 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20259 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20260 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20261 terminal that is being deleted.
20262 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20263 frame parameter, and make sure it overrides any user-supplied setting.
20264 (Fx_close_connection, Fx_synchronize): Unify argument names with
20265 the rest of the DEFUNs.
20266
20267 * dispnew.c (Fsend_string_to_terminal): Update call to
20268 `get_tty_terminal'.
20269 (Fredraw_frame, Fsend_string_to_terminal)
20270 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20271 FRAME_TERMCAP_P and FRAME_TTY.
20272 (window_change_signal): Don't believe width/height values that are
20273 impossibly small.
20274 (Vinitial_window_system): Rename from Vwindow_system.
20275 (termscript, Wcm, rif): Delete.
20276
20277 * termhooks.h (struct terminal): New struct containing the
20278 previously global text display hooks and new members NAME,
20279 DELETED and PARAM_ALIST.
20280 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20281 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20282 (FRAME_RIF): New macros.
20283 (get_terminal_param, get_device): New declarations.
20284 (termscript): Delete declaration.
20285
20286 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20287 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20288 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20289 FRAME_FOREGROUND_PIXEL.
20290 (x_fully_uncatch_errors): Disable definition.
20291 (x_scroll_bar_expose): Fix reference to foreground pixel.
20292 (XTread_socket): Disable loop on all X displays.
20293 (x_delete_terminal): Don't set terminal->deleted and let
20294 delete_terminal delete the frames on the terminal.
20295 (x_delete_display): Doc update to reflect changes in
20296 delete_terminal.
20297 (x_display_info) <terminal>: Move member earlier in the struct.
20298 (deleting_tty): Remove old variable.
20299 (Fsuspend_tty): Call clear_tty_hooks.
20300 (Fresume_tty, init_tty): Call set_tty_hooks.
20301 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20302 errors on X frames.
20303 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20304 (handle_one_xevent): Initialize `f' to NULL.
20305 (x_delete_terminal, x_create_terminal): New functions.
20306 (XTset_terminal_modes, XTreset_terminal_modes)
20307 (XTread_socket, x_connection_closed, x_term_init)
20308 (x_term_init, x_delete_display): Add terminal parameter.
20309 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20310 X connections.
20311
20312 * frame.c: Include termchar.h.
20313 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20314 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20315 (Qdisplay_environment_variable): New vars.
20316 (Fframep): Deal with output_initial.
20317 (Fframe-live-p): Doc fix.
20318 (Fwindow-system): New function.
20319 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20320 (make_terminal_frame): Don't create frames on a terminal that is
20321 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20322 (store_frame_param): Check for found_for_frame before calling XFRAME.
20323 (Fmake_terminal_frame): Handle NULL tty names correctly.
20324 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20325 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20326 frames to refer to a deleted frame in their 'environment parameter.
20327 (Fframe_with_environment): New function.
20328 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20329 (get_future_frame_param): New function.
20330 (Fmake_terminal_frame): Use it.
20331 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20332
20333 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20334 * sysdep.c (reset_sys_modes): Update for renames.
20335
20336 * keyboard.c (tty_read_avail_input): New function.
20337 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20338 (syms_of_keyboard): Defsubr them.
20339 (Fset_input_meta_mode, Fset_quit_char): New functions.
20340 (Fset_input_mode): Split to above functions.
20341 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20342 parameter. Use it in call to `read_char'.
20343 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20344 Set wrong_kboard_jmpbuf correctly in recursive calls.
20345 Use current_kboard to access Vkeyboard_translate_table.
20346 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20347 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20348 Update longjmp invocations. Remember the original current_kboard,
20349 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20350 changes it. Comment out unnecessary calls to
20351 `record_single_kboard_state' and `any_kboard_state'.
20352 Update recursive calls.
20353 (wrong_kboard_jmpbuf): Remove global variable.
20354 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20355 Handle deleted interrupted_kboards correctly; that is a legal
20356 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20357 and read_char calls. Abort if interrupted_kboard died in read_char.
20358 (any_kboard_state, single_kboard_state)
20359 (push_frame_kboard): Remove function.
20360 (pop_kboard): Switch out of single_kboard mode if the kboard has
20361 been deleted. Remove unused variable. Help debugging by not
20362 changing current_kboard unnecessarily. Set current_kboard to the
20363 kboard of the selected frame when the stored kboard object has
20364 been deleted before pop_kboard.
20365 (temporarily_switch_to_single_kboard): Change first parameter to a
20366 frame pointer. Throw an error when caller wants to change kboards
20367 while in single_kboard mode. Don't push_kboard if we weren't in
20368 single kboard state. Don't pop_kboard if we popped into any
20369 kboard state.
20370 (restore_kboard_configuration): Abort if pop_kboard changed the
20371 kboard in single_kboard mode. Call pop_kboard only after setting
20372 up single_kboard mode.
20373 (Frecursive_edit): Switch to single_kboard mode only in nested
20374 command loops.
20375 (cmd_error, command_loop, command_loop_1, timer_check):
20376 Comment out unnecessary call to `any_kboard_state' and
20377 `record_single_kboard_state'.
20378 (delete_kboard): Exit single_kboard mode if we have just deleted
20379 that kboard. Use FRAME_KBOARD.
20380 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20381 `fatal_error_signal'.
20382 (record_single_kboard_state): Don't push_kboard if we weren't in
20383 single kboard state. Don't pop_kboard if we popped into any
20384 kboard state.
20385 (push_frame_kboard): Rename to push_kboard.
20386 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20387 (read_avail_input): Read input from all terminals.
20388 (mark_kboards): Also mark Vkeyboard_translate_table.
20389 (kbd_buffer_store_event_hold): Simplify condition.
20390 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20391 (Vkeyboard_translate_table): Move to struct kboard.
20392 (init_kboard): Initialize Vkeyboard_translate_table.
20393 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20394 Vkeyboard_translate_table. Update doc strings. Update docs of
20395 local-function-key-map and function-key-map.
20396
20397 * terminal.c: New file.
20398
20399 * term.c: Include errno.h.
20400 (Vring_bell_function, device_list, initial_device)
20401 (next_device_id, ring_bell, update_begin, update_end)
20402 (set_terminal_window, cursor_to, raw_cursor_to)
20403 (clear_to_end, clear_frame, clear_end_of_line)
20404 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20405 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20406 (syms_of_term): Move their initialization to terminal.c.
20407 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20408 (Ftty_display_color_cells)
20409 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20410 (clear_tty_hooks, set_tty_hooks)
20411 (init_tty, maybe_fatal): New functions.
20412 (Ftty_type): Return nil if terminal is not on a tty instead of
20413 throwing an error. Doc update.
20414 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20415 Doc update. Initialize new subrs and variables.
20416 (delete_tty): Use terminal->deleted.
20417 (tty_set_terminal_modes): Rename from set_terminal_modes.
20418 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20419 (set_scroll_region): Rename to `tty_set_scroll_region'.
20420 (turn_on_insert): Rename to `tty_turn_on_insert'.
20421 (turn_off_insert): Rename to `tty_turn_off_insert'.
20422 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20423 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20424 (toggle_highligh): Rename to `tty_toggle_highlight'.
20425 (background_highlight): Rename to `tty_background_highlight'.
20426 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20427 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20428 (tty_set_scroll_region, tty_background_highlight)
20429 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20430 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20431 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20432 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20433 Add static modifier.
20434 (tty_reset_terminal_modes, tty_set_terminal_window)
20435 (tty_set_scroll_region, tty_background_highlight)
20436 (tty_highlight_if_desired, tty_cursor_to)
20437 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20438 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20439 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20440 renames.
20441
204422007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20443
20444 * keyboard.c: Qrtl is new.
20445 (parse_tool_bar_item): Handle :rtl keyword.
20446 (syms_of_keyboard): Intern :rtl keyword.
20447
20448 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20449
20450 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20451 so no Lisp code is executed.
20452 (file_for_image, find_rtl_image): New functions.
20453 (xg_get_image_for_pixmap): Use file_for_image.
20454 (update_frame_tool_bar): If direction is RTL, use RTL image if
20455 defined. Use Gtk stock images if defined.
20456
204572007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20458
20459 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20460 for nonexistent or zero-width glyph in composition glyph.
20461
204622007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20463
20464 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20465
20466 * xdisp.c (Finvisible_p): New function.
20467 (syms_of_xdisp): defsubr it.
20468
204692007-08-24 Juanma Barranquero <lekktu@gmail.com>
20470
20471 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20472 Doc fixes.
20473
204742007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20475
20476 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20477
204782007-08-24 Martin Rudalics <rudalics@gmx.at>
20479
20480 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20481 whether decoding has modified buffer contents.
20482
204832007-08-24 Jason Rumney <jasonr@gnu.org>
20484
20485 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20486 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20487 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20488 (init_svg_functions) [HAVE_NTGUI]: New function.
20489 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20490 (svg_load_image): Use them.
20491 (svg_load_image) [HAVE_NTGUI]: Implement background.
20492
204932007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20494
20495 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20496 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20497 (LIBX): Remove @RSVG_LIBS@.
20498 (LIBES): Add $(RSVG_LIBS).
20499
20500 * image.c (svg_load_image): Blend with specified background if exists.
20501 Use IMAGE_BACKGROUND. Add Mac OS Support.
20502
20503 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20504 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20505 Remove macros.
20506 [MAC_OSX] (socket_callback): Do nothing.
20507 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20508 ReceiveNextEvent.
20509 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20510 socket_callback.
20511 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20512
205132007-08-22 Glenn Morris <rgm@gnu.org>
20514
20515 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20516
205172007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20518
20519 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20520
20521 * image.c: Add support for SVG images. Some additional comments
20522 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20523 (svg_image_p): New function to test for SVG image.
20524 (svg_load): New function to load SVG image.
20525 (svg_load_image): New function, helper for svg_load.
20526 (Qsvg): New Lisp_object.
20527 (svg_keyword_index): New enum.
20528 (svg_format): New static `image_keyword' struct.
20529 (svg_type): New static `image_type' struct.
20530 (librsvg/rsvg.h): Include it.
20531
205322007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20533
20534 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20535
205362007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20537
20538 * lread.c (Qold_style_backquotes): New var.
20539 (syms_of_lread): Init and staticpro it.
20540 (load_warn_old_style_backquotes): New fun.
20541 (Fload): Use them to warn about old style backquotes.
20542 (end_of_file_error, Fload): Remove unused vars.
20543
20544 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20545
20546 * lread.c (Vold_style_backquotes): New var.
20547 (syms_of_lread): Init and export it to Elisp.
20548 (read1): Set it when we find an old-style (back)quote.
20549
205502007-08-22 Jason Rumney <jasonr@gnu.org>
20551
20552 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20553
205542007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20555
20556 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20557
205582007-08-19 Richard Stallman <rms@gnu.org>
20559
20560 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20561
205622007-08-19 Andreas Schwab <schwab@suse.de>
20563
20564 * alloc.c (pure): Round PURESIZE up.
20565
205662007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20567
20568 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20569 active frame.
20570
205712007-08-16 Richard Stallman <rms@gnu.org>
20572
20573 * eval.c (Fcommandp): Add parens to clarify.
20574
20575 * minibuf.c (Fall_completions): Use enum for type of table.
20576
20577 * emacs.c (USAGE2): Improve text.
20578
205792007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20580
20581 * term.c (tty_default_color_capabilities): Declare static
20582 variables in file scope, to avoid HPUX compiler problem.
20583
205842007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20585
20586 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20587 to gtk_toolbar_insert.
20588
205892007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20590
20591 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20592
20593 * insdel.c (reset_var_on_error): New fun.
20594 (signal_before_change, signal_after_change):
20595 Use it to reset (after|before)-change-functions to nil in case of error.
20596 Bind inhibit-modification-hooks to t.
20597 Don't bind (after|before)-change-functions to nil while they run.
20598
205992007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20600
20601 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20602 filling pixmap with stippled background.
20603
206042007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20605
20606 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20607 Don't use invisible frame as parent window for repositioning.
20608
206092007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20610
20611 * print.c (new_backquote_output): Rename from old_backquote_output.
20612 (print): Inverse its logic (according to its name) so as to match the
20613 behavior of new_backquote_flag in lread.c.
20614
206152007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20616
20617 * gmalloc.c (posix_memalign): New function.
20618
20619 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20620 ActivateControl/DeactivateControl here.
20621 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20622 frame-notice-user-settings is non-nil.
20623 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20624 for kEventParamFMFontStyle.
20625 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20626 mac_pass_command_to_system and mac_pass_control_to_system here.
20627 (XTread_socket): Call ActivateControl/DeactivateControl here.
20628 (XTread_socket) [TARGET_API_MAC_CARBON]:
20629 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20630 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20631 for window repositioning.
20632
206332007-08-08 Glenn Morris <rgm@gnu.org>
20634
20635 * Replace `iff' in doc-strings and comments.
20636
206372007-08-07 Chong Yidong <cyd@stupidchicken.com>
20638
20639 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20640
206412007-08-07 Martin Rudalics <rudalics@gmx.at>
20642
20643 * fileio.c (Finsert_file_contents): Run format-decode and
20644 after_insert_file_functions on entire buffer when REPLACE is
20645 non-nil and inhibit modification_hooks and point_motion_hooks.
20646 For consistency, run after_insert_file_functions iff something
20647 got inserted. Move signal_after_change and update_compositions
20648 after code running after_insert_file_functions. Make sure that
20649 undo_list doesn't record intermediate steps of the decoding process.
20650
206512007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20652
20653 * emacs.c (main)
20654 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20655 Call malloc_enable_thread on interactive startup.
20656
20657 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20658 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20659 [USE_PTHREAD]: Conditionalize with it.
20660 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20661 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20662 New functions.
20663
206642007-08-06 Chong Yidong <cyd@stupidchicken.com>
20665
20666 * xdisp.c (redisplay_window): When restoring original buffer
20667 position, make sure it is still valid.
20668
20669 * image.c (png_load): Ignore png-supplied background color.
20670
206712007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20672
20673 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20674 Use kCFAbsoluteTimeIntervalSince1970.
20675
20676 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20677 New variable.
20678 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20679 event loop should be quit.
20680 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20681 Quit dialog event loop if quit_dialog_event_loop is set.
20682
20683 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20684 (Selection): New typedef. Use instead of ScrapRef.
20685 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20686 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20687 (mac_clear_selection): Rename from clear_scrap.
20688 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20689 scrap_has_target_type. All uses changed.
20690 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20691 (mac_selection_has_target_p): New functions.
20692 (mac_put_selection_value): Rename from put_scrap_string.
20693 (mac_get_selection_value): Rename from get_scrap_string.
20694 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20695 (put_scrap_private_timestamp, scrap_has_target_type)
20696 (get_scrap_private_timestamp): Remove functions.
20697 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20698 (x_own_selection, x_get_local_selection):
20699 Use mac_valid_selection_value_p.
20700 (x_own_selection): Don't use put_scrap_private_timestamp.
20701 Record OWNERSHIP-INFO into Vselection_alist instead.
20702 (x_get_local_selection): Don't check type if request is local.
20703 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20704 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20705
207062007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20707
20708 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20709 add comment explaining why.
20710
207112007-08-03 Richard Stallman <rms@gnu.org>
20712
20713 * fileio.c (Fvisited_file_modtime): Use make_time.
20714
207152007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20716
20717 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20718 build.
20719
207202007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20721
20722 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20723
207242007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20725
20726 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20727
207282007-07-30 Richard Stallman <rms@gnu.org>
20729
20730 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20731
207322007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20733
20734 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20735
207362007-07-28 Nick Roberts <nickrob@snap.net.nz>
20737
20738 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20739 remote default-directory.
20740
20741 * buffer.c (mode-line-format): Update doc string.
20742
207432007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20744
20745 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20746 scroll bar gap.
20747 (x_scroll_bar_create): Set bar->fringe_extended_p.
20748 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20749 on frame edge. Check fringe background extension. Don't clear
20750 extended fringe background area.
20751
20752 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20753 (w32_fill_area): Enclose multiple statements with do ... while (0).
20754
20755 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20756 Extend fringe background to scroll bar gap.
20757 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20758 Set bar->fringe_extended_p.
20759 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20760 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20761 background extension. Don't clear extended fringe background area.
20762
20763 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20764 New member fringe_extended_p.
20765
207662007-07-25 Glenn Morris <rgm@gnu.org>
20767
20768 * Relicense all FSF files to GPLv3 or later.
20769
20770 * COPYING: Switch to GPLv3.
20771
207722007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20773
20774 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20775
20776 * data.c (Finteractive_form): Check for the presence of an
20777 `interactive-form' symbol property more thoroughly.
20778
20779 * data.c (Finteractive_form): Use an `interactive-form' property if
20780 present, analogous to the function-documentation property.
20781
207822007-07-24 Jason Rumney <jasonr@gnu.org>
20783
20784 * w32fns.c (x_real_positions): Get real position from OS instead of
20785 calculating it.
20786
207872007-07-23 Jason Rumney <jasonr@gnu.org>
20788
20789 * filelock.c (current_lock_owner): Allow for @ sign in username.
20790
207912007-07-22 Nick Roberts <nickrob@snap.net.nz>
20792
20793 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20794 remote default-directory.
20795
20796 * buffer.c (mode-line-format): Describe above case in doc string.
20797
207982007-07-20 Eli Zaretskii <eliz@gnu.org>
20799
20800 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20801 Define if not defined.
20802
208032007-07-18 Jason Rumney <jasonr@gnu.org>
20804
20805 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20806
208072007-07-18 Richard Stallman <rms@gnu.org>
20808
20809 * data.c (Fsetq_default): Doc fix.
20810
20811 * eval.c (Fsetq): Doc fix.
20812
208132007-07-18 Juanma Barranquero <lekktu@gmail.com>
20814
20815 * coding.c (Ffind_operation_coding_system):
20816 * eval.c (For, Fand): Doc fixes.
20817 Reported by Johan Bockgård.
20818
208192007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20820
20821 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20822
20823 * xterm.h: Declare x_ewmh_activate_frame.
20824
20825 * xterm.c (x_ewmh_activate_frame): New function.
20826 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20827
208282007-07-17 Martin Rudalics <rudalics@gmx.at>
20829
20830 * window.c (Fdisplay_buffer): If largest or LRU window is the
20831 only window, split it even if it is not eligible for splitting.
20832 This restores the original behavior broken by the 2007-07-15
20833 change.
20834
208352007-07-17 Glenn Morris <rgm@gnu.org>
20836
20837 * abbrev.c (abbrev_check_chars): New function.
20838 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20839 Call abbrev_check_chars to check abbrev characters are word
20840 constituents. Doc fix.
20841
208422007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20843
20844 * process.c (Fstart_process, Fmake_network_process)
20845 (read_process_output): Fix up last changes.
20846
208472007-07-16 Eli Zaretskii <eliz@gnu.org>
20848
20849 * makefile.w32-in (clean): Don't delete *~.
20850
208512007-07-16 Andreas Schwab <schwab@suse.de>
20852
20853 * window.c (Fdisplay_buffer): Use NILP.
20854 (Fset_window_scroll_bars): Likewise.
20855
208562007-07-15 Martin Rudalics <rudalics@gmx.at>
20857
20858 * window.c (window_min_size_2): New function.
20859 (window_min_size_1, size_window, Fdisplay_buffer)
20860 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20861 windows without mode- or header-lines when window-min-height is
20862 too small.
20863 (size_window): Reset nodelete_p after testing it, following an
20864 earlier note by Kim F. Storm.
20865 (display_buffer): Do not set split_height_threshold to twice the
20866 value of window_min_height to avoid changing the value of a
20867 customizable variable. Rather explicitly check whether the
20868 height of the window that shall be splitted is at least as large
20869 as split_height_threshold.
20870 (Fwindow_full_width_p): New defun.
20871 (syms_of_window): Defsubr it.
20872
20873 * window.h: Add EXFUN for Fwindow_full_width_p.
20874
208752007-07-14 Jason Rumney <jasonr@gnu.org>
20876
20877 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20878
208792007-07-14 Richard Stallman <rms@gnu.org>
20880
20881 * eval.c (maybe_call_debugger): New function.
20882 (find_handler_clause): Use maybe_call_debugger.
20883 Call it when the handler says `debug'.
20884 Eliminate DEBUGGER_VALUE_PTR.
20885 (Fsignal): Eliminate debugger_value.
20886 (Qdebug): New variable.
20887 (syms_of_eval): Initialize it.
20888
208892007-07-14 Juanma Barranquero <lekktu@gmail.com>
20890
20891 * eval.c (Fprogn):
20892 * keyboard.c (Ftrack_mouse):
20893 * print.c (Fwith_output_to_temp_buffer):
20894 * window.c (Fsave_window_excursion): Doc fix.
20895
208962007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20897
20898 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20899
209002007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20901
20902 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20903 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20904 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20905 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20906 Remove unused encoding_carryover.
20907 * process.c: Adjust all functions accordingly.
20908
209092007-07-12 Richard Stallman <rms@gnu.org>
20910
20911 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20912
209132007-07-11 Jason Rumney <jasonr@gnu.org>
20914
20915 * makefile.w32-in (LIBS): Include OLE32.
20916
20917 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20918 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20919
209202007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20921
20922 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20923 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20924 from a Lisp_Object into a bare pointer.
20925 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20926 Adjust the code correspondingly.
20927
20928 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20929
20930 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20931 (term_show_mouse_face): Remove unused var `j'.
20932 (handle_one_term_event): Remove unused vars `i' and `j'.
20933 Don't cast return value of ttyname since it's not necessary.
20934
209352007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20936
20937 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20938 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20939
20940 * fns.c (map_char_table): Use an array of int for `indices' rather than
20941 an array of Lisp_Objects (which are only ever integers anyway).
20942 (Fmap_char_table): Update caller.
20943 * lisp.h: Update prototype.
20944 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20945 * fontset.c (Ffontset_info):
20946 * casetab.c (set_case_table): Update callers.
20947
20948 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20949
20950 * keymap.c (struct accessible_keymaps_data)
20951 (struct where_is_internal_data): New structures.
20952 (accessible_keymaps_1, where_is_internal_1): Use them to change
20953 interface to adhere to the one used by map_keymap.
20954 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20955 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20956
20957 * keymap.h (map_keymap_function_t): More informative prototype.
20958
209592007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20960
20961 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20962 (looking_at_1): Don't change search_regs and last_thing_searched
20963 if `inhibit-changing-match-data' is non-nil.
20964 (string_match_1, search_buffer, set_search_regs): Likewise.
20965 (syms_of_search): Add Lisp level definition for
20966 `inhibit-changing-match-data' and set it to nil.
20967 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20968 start and end of the match, instead of using values in search_regs.
20969
209702007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20971
20972 * minibuf.c (Fcompleting_read): New value `confirm-only'
20973 for `require-match'.
20974
209752007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20976
20977 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20978 part of the 2007-06-27 change to syms_of_fileio.
20979
209802007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20981
20982 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20983 Check WINDOWP before using XWINDOW. Consolidate return statements.
20984
209852007-06-27 Richard Stallman <rms@gnu.org>
20986
20987 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20988
209892007-06-27 Juanma Barranquero <lekktu@gmail.com>
20990
20991 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20992
209932007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20994
20995 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20996 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20997 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20998 (_free_internal, memalign): Use them.
20999 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21000 Initialize to PTHREAD_MUTEX_INITIALIZER.
21001 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21002 (morecore_nolock): Rename from morecore. All uses changed.
21003 Use only nolock versions of internal allocation functions.
21004 (_malloc_internal_nolock, _realloc_internal_nolock)
21005 (_free_internal_nolock): New functions created from
21006 _malloc_internal, _realloc_internal, and _free_internal.
21007 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21008 Copy hook value to automatic variable before its use.
21009 (memalign): Copy hook value to automatic variable before its use.
21010
210112007-06-26 Kenichi Handa <handa@m17n.org>
21012
21013 * coding.c (Ffind_operation_coding_system): Docstring improved.
21014 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21015
210162007-06-25 David Kastrup <dak@gnu.org>
21017
21018 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21019 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21020 cater for additional parameter.
21021
21022 * keymap.h: Adjust number of parameters to `current-active-maps'.
21023
21024 * doc.c (Fsubstitute_command_keys): Adjust call of
21025 `current-active-maps'.
21026
210272007-06-25 David Kastrup <dak@gnu.org>
21028
21029 * callint.c (Fcall_interactively): Make the parsing of interactive
21030 specs somewhat more readable.
21031
210322007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21033
21034 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21035 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21036 if extended background has already been filled.
21037
210382007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21039
21040 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21041 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21042
21043 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21044 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21045 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21046 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21047 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21048 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21049 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21050 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21051 Run timers during dialog popup.
21052 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21053
210542007-06-21 Jason Rumney <jasonr@gnu.org>
21055
21056 * image.c (convert_mono_to_color_image): Swap fore and background.
21057
210582007-06-20 Jason Rumney <jasonr@gnu.org>
21059
21060 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21061 (w32_free_bdf_font): Unmap memory not handle.
21062
210632007-06-20 Sam Steingold <sds@gnu.org>
21064
21065 * gmalloc.c (__morecore): Fix the declaration to comply with the
21066 definition.
21067
210682007-06-20 Juanma Barranquero <lekktu@gmail.com>
21069
21070 * w32term.c (w32_delete_display): Remove leftover declaration.
21071 (w32_define_cursor, w32_initialize): Make static.
21072
21073 * w32.c (_wsa_errlist): Fix typo in error message.
21074 (init_environment): Ignore any environment variable from the
21075 registry having a null value.
21076
210772007-06-20 Glenn Morris <rgm@gnu.org>
21078
21079 * Makefile.in (LIBGIF): Default to -lgif.
21080
210812007-06-17 Jason Rumney <jasonr@gnu.org>
21082
21083 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21084 unicode strings.
21085
210862007-06-16 Juanma Barranquero <lekktu@gmail.com>
21087
21088 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21089 Fix typo in docstring.
21090
210912007-06-16 Eli Zaretskii <eliz@gnu.org>
21092
21093 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21094 and their keybindings.
21095
210962007-06-15 Chong Yidong <cyd@stupidchicken.com>
21097
21098 * composite.c (update_compositions): Fix last fix.
21099
211002007-06-14 Jason Rumney <jasonr@gnu.org>
21101
21102 * w32.c (get_process_times_fn): New function pointer.
21103 (globals_of_w32): Intialize it if present in kernel32.dll.
21104 (w32_get_internal_run_time): New function.
21105
21106 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21107
211082007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21109
21110 * composite.c (update_compositions): Check the validness of
21111 compositions.
21112
211132007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21114
21115 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21116 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21117
21118 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21119 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21120
21121 * macgui.h (USE_MAC_TOOLBAR): New define.
21122
21123 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21124 Return immediately unless popup is activated.
21125
21126 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21127 background to scroll bar gap.
21128 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21129 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21130 scroll bars on frame edge. Check fringe background extension.
21131 Don't clear extended fringe background area.
21132 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21133 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21134 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21135 [USE_MAC_TOOLBAR]: New macros.
21136 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21137 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21138 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21139 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21140 [USE_MAC_TOOLBAR]: New functions.
21141 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21142 manually if previous repositioning has failed.
21143 (mac_handle_keyboard_event): Use precomputed event kind.
21144 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21145 as tool bar item click. Handle mouse movement over tool bar items.
21146
21147 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21148 toolbar_win_gravity.
21149 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21150 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21151 Add externs.
21152
21153 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21154 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21155
211562007-06-14 Chong Yidong <cyd@stupidchicken.com>
21157
21158 * image.c (search_image_cache): Remove unused variable.
21159
211602007-06-13 Chong Yidong <cyd@stupidchicken.com>
21161
21162 * xfns.c, xmenu.c: Link to xaw3d if available.
21163
211642007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21165
21166 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21167 frame_foreground and frame_background.
21168
21169 * image.c (lookup_image): Save frame foreground and background colors.
21170 (search_image_cache): Check if saved and current frame colors match.
21171
211722007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21173
21174 * regex.c (regex_compile): Remove the `regnum' counter.
21175 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21176
211772007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21178
21179 * term.c: Include intervals.h to declare Fget_text_property.
21180
211812007-06-10 Jason Rumney <jasonr@gnu.org>
21182
21183 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21184
211852007-06-08 Juanma Barranquero <lekktu@gmail.com>
21186
21187 * callint.c (Fcall_interactively):
21188 * editfns.c (Fdelete_and_extract_region):
21189 * fileio.c (Fread_file_name):
21190 * fns.c (Fmapconcat):
21191 * keyboard.c (cmd_error_internal):
21192 * keymap.c (Fkey_description):
21193 * lread.c (openp):
21194 * minibuf.c (read_minibuf):
21195 * search.c (wordify):
21196 * sunfns.c (sel_read):
21197 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21198 * xfns.c (x_default_scroll_bar_color_parameter):
21199 * xmenu.c (menu_help_callback):
21200 * xselect.c (Fx_get_atom_name):
21201 * xterm.c (x_term_init): Use empty_unibyte_string.
21202
212032007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21204
21205 * alloc.c (init_strings): Initialize canonical empty strings.
21206 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21207 canonical empty string when the requested size is 0.
21208
21209 * emacs.c (empty_unibyte_string): Rename from empty_string.
21210 (empty_multibyte_string): New canonical empty string.
21211 (syms_of_emacs): Don't initialize empty_string.
21212
21213 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21214 string, if appropriate.
21215 (empty_unibyte_string, empty_multibyte_string): New externs.
21216 (empty_string): Remove extern.
21217
21218 * lread.c (syms_of_lread): Use empty_unibyte_string.
21219
212202007-06-07 Jason Rumney <jasonr@gnu.org>
21221
21222 * s/ms-w32.h: Don't define HAVE_TZNAME.
21223
21224 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21225
212262007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21227
21228 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21229
21230 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21231 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21232
21233 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21234 Don't call next handler.
21235 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21236 Remove argument. Install handler to application.
21237 (set_frame_menubar): Don't change deep_p.
21238 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21239 FRAME_OUTER_TO_INNER_DIFF_Y.
21240 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21241 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21242 [HAVE_DIALOGS]: New macros.
21243 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21244 Use them.
21245 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21246
21247 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21248 init_service_handler. All callers changed. Return OSStatus value.
21249
21250 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21251 All callers changed so as not to call SetPortWindowPort.
21252 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21253 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21254 mac_draw_string_common.
21255 (mac_draw_image_string_qd): Likewise.
21256 (mac_draw_string_common): Use them. Add INLINE.
21257 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21258 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21259 GetGlobalMouse.
21260 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21261 and FRAME_OUTER_TO_INNER_DIFF_Y.
21262 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21263 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21264 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21265 repositioning window to mac_handle_window_event.
21266 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21267 saving window location to mac_handle_window_event
21268 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21269 (install_menu_target_item_handler): Remove argument in extern.
21270 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21271 Also accept command events.
21272 (do_keystroke): New function created from XTread_socket.
21273 (init_command_handler): Remove functions.
21274 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21275 and save window location by kEventWindowShowing and kEventWindowHiding
21276 handlers here. Don't call next handler for window state change and
21277 focus events.
21278 (mac_handle_application_event, mac_handle_keyboard_event)
21279 [TARGET_API_MAC_CARBON]: New functions.
21280 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21281 kEventWindowShowing and kEventWindowHiding events. Move installation
21282 of mouse, font, text input and menu target item handlers to
21283 install_application_handler.
21284 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21285 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21286 New function.
21287 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21288 Register it.
21289 (XTread_socket) [TARGET_API_MAC_CARBON]:
21290 Consolidate SendEventToEventTarget calls.
21291 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21292 Move application activation handler to mac_handle_application_event.
21293 Move keyboard handler to mac_handle_keyboard_event.
21294 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21295 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21296 init_command_handler. Call install_application_handler.
21297
21298 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21299 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21300
213012007-06-07 Glenn Morris <rgm@gnu.org>
21302
21303 * emacs.c (main): Use `emacs-copyright' in --version output.
21304
213052007-06-06 Chong Yidong <cyd@stupidchicken.com>
21306
21307 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21308
213092007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21310
21311 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21312
21313 * macgui.h: Replace WindowPtr with WindowRef.
21314
21315 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21316 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21317 Replace ControlHandle with ControlRef.
21318 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21319
21320 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21321 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21322 Replace ControlHandle with ControlRef.
21323 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21324 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21325
21326 * macterm.h (struct scroll_bar): Rename member control_handle_low
21327 and control_handle_high to control_ref_low and control_ref_high.
21328 All uses changed.
21329 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21330 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21331 respectively. All uses changed.
21332 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21333 (install_window_handler, remove_window_handler): Replace WindowPtr
21334 with WindowRef in externs.
21335
213362007-06-05 Juanma Barranquero <lekktu@gmail.com>
21337
21338 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21339
213402007-06-03 Nick Roberts <nickrob@snap.net.nz>
21341
21342 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21343
21344 * frame.c (Fmouse_position, Fmouse_pixel_position):
21345 Condition on HAVE_GPM too.
21346
21347 * term.c (term_mouse_highlight): Remove unused variables.
21348 (Fterm_open_connection): Set gpm_zerobased to 1.
21349 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21350 Use zero based co-ordinates.
21351 (handle_one_term_event): Report a drag as mouse movement too.
21352
21353 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21354
213552007-06-03 Chong Yidong <cyd@stupidchicken.com>
21356
21357 * image.c (search_image_cache): New function. Require background
21358 color match if background color is unspecified in the image spec.
21359 (uncache_image, lookup_image): Use it.
21360
213612007-06-01 Juanma Barranquero <lekktu@gmail.com>
21362
21363 * window.c (Fshrink_window): Reflow docstring.
21364
213652007-06-02 Chong Yidong <cyd@stupidchicken.com>
21366
21367 * Version 22.1 released.
21368
213692007-06-01 Richard Stallman <rms@gnu.org>
21370
21371 * xfns.c (x_encode_text): Add GCPRO.
21372
213732007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21374
21375 * xfns.c (x_set_name_internal): Save encoded name before
21376 x_encode_text in case string data is relocated.
21377
213782007-05-31 Richard Stallman <rms@gnu.org>
21379
21380 * buffer.c (syms_of_buffer): Doc fix.
21381
213822007-05-30 Nick Roberts <nickrob@snap.net.nz>
21383
21384 * sysdep.c (init_sys_modes): Add rather than replace with
21385 O_NONBLOCK.
21386
21387 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21388 term_mouse_moveto.
21389
21390 * termhooks.h (term_mouse_moveto): New extern.
21391
21392 * term.c (mouse_face_window): Rename...
21393 (Qmouse_face_window): ...to this.
21394 (term_show_mouse_face, term_clear_mouse_face)
21395 (term_mouse_highlight): Use Qmouse_face_window.
21396 (term_mouse_moveto): New function.
21397 (term_mouse_position): Make it work.
21398 (syms_of_term): Uncomment assignment to mouse_position_hook.
21399 Staticpro Qmouse_face_window.
21400
214012007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21402
21403 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21404 around current_column call.
21405
214062007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21407
21408 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21409 * xdisp.c (next_element_from_buffer):
21410 * window.c (delete_window):
21411 * term.c (term_mouse_highlight):
21412 * msdos.c (getdefdir):
21413 * macterm.c (mac_create_bitmap_from_bitmap_data)
21414 (init_font_name_table):
21415 * fns.c (Fsxhash):
21416 * data.c (Fmake_local_variable):
21417 * ccl.c (ccl_driver): Likewise.
21418
214192007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21420
21421 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21422 Call mac_wakeup_from_rne on window size change.
21423
214242007-05-25 Chong Yidong <cyd@stupidchicken.com>
21425
21426 * image.c (uncache_image): Fix typo.
21427
214282007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21429
21430 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21431
214322007-05-22 Richard Stallman <rms@gnu.org>
21433
21434 * xterm.c (x_connection_closed): Remove NO_RETURN.
21435
214362007-05-22 Martin Rudalics <rudalics@gmx.at>
21437
21438 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21439
214402007-05-21 Chong Yidong <cyd@stupidchicken.com>
21441
21442 * image.c (uncache_image): New function.
21443 (Fimage_refresh): New function.
21444
214452007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21446
21447 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21448
214492007-05-20 Nick Roberts <nickrob@snap.net.nz>
21450
21451 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21452 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21453
214542007-05-20 Nick Roberts <nickrob@snap.net.nz>
21455
21456 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21457 conditional on [HAVE_GPM_H].
21458
214592007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21460
21461 * syntax.c (skip_chars): Update syntax-table only after we checked that
21462 the new location is valid.
21463
214642007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21465
21466 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21467 mac_get_window_bounds.
21468
214692007-05-20 Nick Roberts <nickrob@snap.net.nz>
21470
21471 * Makefile.in (LIBGPM): Allow it to be set from configure.
21472 If set then link Emacs with it.
21473
21474 * config.in: Regenerate.
21475
21476 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21477 New externs.
21478
21479 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21480 Include gpm.h.
21481 (handle_one_term_event, term_gpm): New externs.
21482
21483 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21484 and allow it to be interrupted by SIGIO.
21485
21486 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21487 (wait_reading_process_output): Wait on gpm_fd too.
21488 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21489 (add_gpm_wait_descriptor_called_flag): New variable.
21490 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21491
21492 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21493 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21494 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21495 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21496 (make_lispy_event): Add case GPM_CLICK_EVENT.
21497 (read_avail_input): Handle mouse input.
21498
21499 * term.c (write_glyphs_with_face): New function.
21500 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21501 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21502 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21503 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21504 (last_mouse_x, last_mouse_y): New variables.
21505 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21506 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21507 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21508 (Fterm_close_connection): New functions.
21509 (term_init): Initialise mouse_face_window.
21510
215112007-05-19 Chong Yidong <cyd@stupidchicken.com>
21512
21513 * xdisp.c (redisplay_window): If first window line is a
21514 continuation line, recompute the new window start instead of
21515 recentering.
21516
215172007-05-18 Glenn Morris <rgm@gnu.org>
21518
21519 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21520 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21521
215222007-05-17 Glenn Morris <rgm@gnu.org>
21523
21524 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21525
215262007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21527
21528 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21529 dead key repeat and up events.
21530
215312007-05-14 Chong Yidong <cyd@stupidchicken.com>
21532
21533 * image.c (pbm_load): Check image size for monochrome pbm.
21534
215352007-05-13 Chong Yidong <cyd@stupidchicken.com>
21536
21537 * xterm.c (XTread_socket): Revert last change.
21538
215392007-05-12 Chong Yidong <cyd@stupidchicken.com>
21540
21541 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21542
21543 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21544
215452007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21546
21547 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21548 mixup (YAILOM).
21549
215502007-05-07 Andreas Schwab <schwab@suse.de>
21551
21552 * keymap.c (Flookup_key): Fix typo in last change.
21553
215542007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21555
21556 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21557 mapping for unibyte strings.
21558
215592007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21560
21561 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21562 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21563
215642007-04-29 Richard Stallman <rms@gnu.org>
21565
21566 * insdel.c (replace_range): For undo, record insertion first.
21567
215682007-04-29 Andreas Schwab <schwab@suse.de>
21569
21570 * lisp.h (VECSIZE): Use OFFSETOF.
21571
215722007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21573
21574 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21575 disabled lines.
21576
215772007-04-28 Richard Stallman <rms@gnu.org>
21578
21579 * lread.c (read_escape): In a string, \s is always space.
21580
215812007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21582
21583 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21584
21585 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21586 submenu for menu bar items.
21587
21588See ChangeLog.10 for earlier changes.
21589
21590;; Local Variables:
21591;; coding: utf-8
21592;; add-log-time-zone-rule: t
aac0c6e3
MR
21593;; End:
21594
e3eb1dae 21595 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21596
21597 This file is part of GNU Emacs.
21598
21599 GNU Emacs is free software: you can redistribute it and/or modify
21600 it under the terms of the GNU General Public License as published by
21601 the Free Software Foundation, either version 3 of the License, or
21602 (at your option) any later version.
21603
21604 GNU Emacs is distributed in the hope that it will be useful,
21605 but WITHOUT ANY WARRANTY; without even the implied warranty of
21606 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21607 GNU General Public License for more details.
21608
21609 You should have received a copy of the GNU General Public License
21610 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21611
21612;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40