Regenate ja-dic.el.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
98599f74
JD
12010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2
471e4f04 3 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4 bug #5571.
471e4f04
JD
5 (XTflash): Use Gdk-routines if USE_GTK so scroll bars doesn't get
6 overdrawn.
98599f74 7
182659ae
JD
82010-02-10 Jan Djärv <jan.h.d@swipnet.se>
9
10 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
11 doing_interact here.
12 (ice_connection_closed): New function.
13 (x_session_check_input, smc_die_CB, ice_io_error_handler)
14 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
15 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
16 returns I/O error.
17 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
18 bug #5512.
19
9be32c4e 202010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
21
22 * nsfont.m (nsfont_open): The system's value for the font descent
23 is negative, so round it down to avoid clipping.
24
a2f3eb19
CY
252010-02-06 Chong Yidong <cyd@stupidchicken.com>
26
27 * charset.c (load_charset_map_from_file)
28 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 29 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 30
3088147c
CY
312010-02-05 Chong Yidong <cyd@stupidchicken.com>
32
33 * charset.c (load_charset_map_from_file): Allocate large
34 charset_map_entries structure on the heap rather than the stack.
35 (Bug#5526).
36
b57d9029
KH
372010-01-31 Kenichi Handa <handa@m17n.org>
38
39 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 40 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 41
c67d885b
CY
422010-01-31 Chong Yidong <cyd@stupidchicken.com>
43
44 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
45 <deactivated@gmail.com> (Bug#3605).
46
8fab2362
CY
472010-01-31 David De La Harpe Golden <david@harpegolden.net>
48
49 * fileio.c (Frename_file): Correctly rename symlinks to
50 directories (Bug#5496).
51
cb2a62f2
CY
522010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
53
54 * nsterm.m (ns_ring_bell): Handle visible bell like X.
55
944c7a26
AS
562010-01-30 Andreas Schwab <schwab@linux-m68k.org>
57
58 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
59
c024ac08
CY
602010-01-29 Chong Yidong <cyd@stupidchicken.com>
61
62 * frame.c (DEFAULT_ROWS): Change default to 35.
63
64 * xfns.c (x_default_font_parameter): Change default XFT font to
65 monospace-10 (Bug#3643).
66
af93af83
EZ
672010-01-29 Eli Zaretskii <eliz@gnu.org>
68
69 * w32inevt.c (key_event): Remove unnecessary comparison of
70 event->uChar.AsciiChar with 128.
71
ca0eb708
CY
722010-01-28 Chong Yidong <cyd@stupidchicken.com>
73
b242dbfc
CY
74 * fileio.c (Frename_file): Fix last change (Bug#5487).
75
ca0eb708
CY
76 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
77
78 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
79
45d45af5
JD
802010-01-28 Jan Djärv <jan.h.d@swipnet.se>
81
82 * xfns.c (Fx_create_frame): Remove window size matching code from
83 2010-01-15.
84 (x_get_current_desktop, x_get_desktop_workarea): Remove
85
7e233730
JR
862010-01-27 Jason Rumney <jasonr@gnu.org>
87
88 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 89 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 90
86e893e3
KH
912010-01-27 Kenichi Handa <handa@m17n.org>
92
93 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 94 pattern string (Bug#4209).
86e893e3 95
8719abec
CY
962010-01-27 David De La Harpe Golden <david@harpegolden.net>
97
98 * fileio.c (Frename_file): Call copy-directory and
99 delete-directory for directories, in order to handle cross-device
100 renaming (Bug#3353).
101
844794c8
JD
1022010-01-25 Jan Djärv <jan.h.d@swipnet.se>
103
aa3e13b5 104 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 105 sizes 24 and 10. Bug #3643.
844794c8 106
bd4b5750
SM
1072010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
108
8dc1adf6 109 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
110 * keymap.c (shadow_lookup): Add `remap' arg.
111 (describe_map, describe_vector): Update calls to shadow_lookup.
112 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
113 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
114 perform remapping during shadow_lookup check of remapped_sequences.
115
285d07e2
CY
1162010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
117
118 * image.c (png_load): Use png_sig_cmp instead of the obsolete
119 png_check_sig, which has been removed in libpng 1.4.
120
c6d09b8d
CY
1212010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
122
123 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
124 lacks this header file).
125
3d782998
YM
1262010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
127
128 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
129 as in Emacs 22.
130
2aff7c53
YM
1312010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
132
133 * lisp.h (make_pure_string): String pointer arg now points to const.
134
135 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
136 args now point to const.
137
74327f7a
EZ
1382010-01-22 Eli Zaretskii <eliz@gnu.org>
139
140 * lread.c (Fload): Don't treat files without .elc extension as
141 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
142 them. (bug#5303)
143
4d1e6632
KH
1442010-01-20 Kenichi Handa <handa@m17n.org>
145
146 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
147 treat the source as actual byte sequence.
148
1fdede8f
AM
1492010-01-19 Alan Mackenzie <acm@muc.de>
150
151 Fix spurious before-change-functions invocation from (insert ?\n).
152 * textprop.c (set_text_properties): rename parameter
153 `signal_after_change_p' to `coherent_change_p', and make the
154 invocation of `modify_region' conditional on it.
155
67477f30
JD
1562010-01-19 Jan Djärv <jan.h.d@swipnet.se>
157
158 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
159 for debug purpose.
160 (syms_of_xsettings): Declare xft-settings.
161
244b023e
CY
1622010-01-18 Chong Yidong <cyd@stupidchicken.com>
163
164 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
165
617364fe
CY
1662010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
167
168 * xterm.c (event_handler_gdk): Block input (Bug#5037).
169
4fe22cdf
CY
1702010-01-16 Chong Yidong <cyd@stupidchicken.com>
171
172 * emacs.c (standard_args): Adjust arg priorities to reflect how
173 they are processed in startup.el.
174
e118d2be
AS
1752010-01-16 Andreas Schwab <schwab@linux-m68k.org>
176
177 * Makefile.in (lisp, shortlisp): Update.
178
523ae620
SM
1792010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
180
181 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
182 code, link the new kboard into all_kboard before running Lisp code,
183 and protect the new terminal with GCPRO (Bug#5365).
184 (x_term_init): Remove unused var `atom'.
185 (x_delete_display, x_delete_terminal): Remove unused var `i'.
186
f0d13888
JD
1872010-01-15 Jan Djärv <jan.h.d@swipnet.se>
188
189 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
190 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
191 to find out usable size of the desktop. Don't make frames larger than
ac146f82 192 this. Bug #3643.
f0d13888 193
cc320f07
KH
1942010-01-15 Kenichi Handa <handa@m17n.org>
195
196 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
197
7ffdf101
CY
1982010-01-15 Chong Yidong <cyd@stupidchicken.com>
199
200 * nsterm.m (Qnone): Define.
201
202 * nsfns.m (Qnone): Move definition to nsterm.m.
203
d12bd917
KH
2042010-01-14 Kenichi Handa <handa@m17n.org>
205
206 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
207 systems.
208
d9a7c140
KH
2092010-01-14 Kenichi Handa <handa@m17n.org>
210
211 Make auto-composition work on all buffers even if they are
212 fundamental mode.
213
214 * composite.c (Vauto_composition_mode): New variable.
215 (composition_compute_stop_pos): Check Vauto_composition_mode
216 instead of Vauto_composition_function.
217 (composition_adjust_point, Ffind_composition_internal): Likewise.
218 (syms_of_composite): Declare Lisp variable
219 "auto-composition-mode" here.
220
63286bb2
CY
2212010-01-13 Chong Yidong <cyd@stupidchicken.com>
222
223 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
224 during call to vendor-specific-keysyms (Bug#5365).
225
c2623ee7
YM
2262010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
227
228 * keyboard.c (input_available_signal) [SYNC_INPUT]:
229 Call SIGNAL_THREAD_CHECK (Bug#5333).
230
231 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
232 Call SIGNAL_THREAD_CHECK.
233
0b5397c2
SM
2342010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
235
236 Try to fix bug#5314. This is probably not the final word, tho.
237 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
238 recent-auto-save-p as a side-effect.
239 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
240 * buffer.c (Fkill_buffer, reset_buffer):
241 * editfns.c (Fsubst_char_in_region):
242 * fileio.c (Finsert_file_contents, Fdo_auto_save)
243 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
244
dc954cb2
KH
2452010-01-13 Kenichi Handa <handa@m17n.org>
246
247 Display buffer name, etc. in mode line by composing correctly.
248
249 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
250 STRING is not nil.
0b5397c2 251 (display_mode_element): Adjust for the change of
dc954cb2
KH
252 decode_mode_spec and display_line.
253 (decode_mode_spec): Change arg MULTIBYTE to STRING.
254 (display_string): Handle the case that STRING is non-null and
255 LISP_STRING is not nil.
256
0b5397c2
SM
257 * xterm.c (x_draw_composite_glyph_string_foreground):
258 Pay attention to s->face->overstrike.
dc954cb2
KH
259
260 * composite.c (composition_reseat_it): Don't check PT if STRING is
261 non nil.
262
4a00eaca
YM
2632010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
264
265 * keyboard.c (read_char): Don't apply previous change when current
266 buffer is unchanged by command execution.
267
60abb287
JD
2682010-01-12 Jan Djärv <jan.h.d@swipnet.se>
269
270 * keyboard.c (read_char): Return after executing from special map.
271
893db5bc
GM
2722010-01-12 Glenn Morris <rgm@gnu.org>
273
274 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
275 bug-gnu-emacs rather than emacs-pretest-bug.
276
4d03ece0
CY
2772010-01-11 Chong Yidong <cyd@stupidchicken.com>
278
279 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
280 initializing the Lisp variables that depend on them.
281
1df47e38
YM
2822010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
283
284 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
285 Clear areas that will not be updated after change of menu bar lines.
286 Clear the menu bar window's current matrix when the window gets empty.
287
2f1c6384
CY
2882010-01-09 Chong Yidong <cyd@stupidchicken.com>
289
e398c61c
CY
290 * intervals.h, textprop.c (extend_property_ranges): Return value
291 and args changed. Discard properties that begin at or after the
292 new end (Bug#5306).
293
294 * editfns.c (Fformat): Caller changed.
295
e5a29a10
CY
296 * nsterm.m (ns_set_default_prefs): Delete function.
297 (syms_of_nsterm): Initialize ns_command_modifier,
298 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
299 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
300
2f1c6384
CY
301 * xdisp.c (pos_visible_p): Check for invisible text at the correct
302 position (Bug#4040).
303
d427a9fa
EZ
3042010-01-09 Eli Zaretskii <eliz@gnu.org>
305
306 * editfns.c (Ffloat_time): Doc fix.
307
21b9df2f
JD
3082010-01-09 Jan Djärv <jan.h.d@swipnet.se>
309
310 * xfns.c (Fx_create_frame): Don't create frame larger than display
311 by default bug#3643.
312
4b00d3b1
YM
3132010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
314
315 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
316 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
317 windows above internal border.
318
319 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
320 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
321 windows above internal border.
322
323 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
324 tool bar windows specially.
325
326 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
327
328 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
329 specially.
330 (XTflash): Take account of menu bar height.
331
332 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
333 specially.
334
5075d853
JD
3352010-01-08 Jan Djärv <jan.h.d@swipnet.se>
336
ac146f82 337 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
338 also be true before we can return early (bug #5339).
339
474217c8
CY
3402010-01-06 David Reitter <david.reitter@gmail.com>
341
342 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
343 (Fns_display_usable_bounds): Rewrite, computing bounds properly
344 (Bug#3233).
345
c0e6d47d
JD
3462010-01-06 Jan Djärv <jan.h.d@swipnet.se>
347
d0cf45b7
JD
348 * font.c (font_open_entity): Enable chache and call cached_font_ok
349 for the driver if defined.
350 (QCuser_spec): New symbol.
351 (font_spec_from_name): Save name as user-spec.
352 (font_load_for_lface): Keep user-spec instead of name.
353 (font_open_by_name): Save name as user-spec.
354 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 355 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
356
357 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
358 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
359 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
360
361 * font.h (struct font_driver): Add cached_font_ok.
362
c0e6d47d
JD
363 * xterm.c (x_clear_frame): Queue draw for scroll bars.
364
7c583cd8
JD
3652010-01-05 Jan Djärv <jan.h.d@swipnet.se>
366
367 * xterm.c (x_new_font): Move code for setting rows/cols before
368 resizing ...
ac146f82 369 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
370
371 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
372 (xg_frame_resized, xg_frame_set_char_size):
373 Call xg_clear_under_internal_border.
7c583cd8 374 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 375
03f77f0a
CY
3762010-01-05 Chong Yidong <cyd@stupidchicken.com>
377
378 * keyboard.c (read_key_sequence): Catch keyboard switch after
379 making a new tty frame (Bug#5095).
380
2a1ef5be
KH
3812010-01-05 Kenichi Handa <handa@m17n.org>
382
383 * fontset.c (fontset_find_font): Fix getting the frame pointer.
384
e3eb1dae
SM
3852010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
386
387 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
388 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
389 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
390
777013f2
MA
3912010-01-03 Michael Albinus <michael.albinus@gmx.de>
392
393 * dbusbind.c (xd_add_watch): Improve debug message.
394 (xd_remove_watch): Improve debug message. If DATA is the session
395 bus, unset D-Bus session environment.
396 (Fdbus_init_bus): Pass the bus as argument to
397 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 398
8932b1c2
CY
3992010-01-01 Chong Yidong <cyd@stupidchicken.com>
400
87231e2c
CY
401 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
402
4801c5fa
CY
403 * lread.c (syms_of_lread): Make it clearer that these are the
404 names of loaded files (Bug#5068).
405
8932b1c2
CY
406 * eval.c (run_hook_with_args): Handle the case where the global
407 value has the obsolete single-function form (Bug#5026).
408
11e3c684
CY
4092009-12-27 Chong Yidong <cyd@stupidchicken.com>
410
411 * minibuf.c (Fall_completions): Minor optimization.
412
5b28ce35
EZ
4132009-12-26 Eli Zaretskii <eliz@gnu.org>
414
5ce6e4f4
JB
415 * .gdbinit (pgx): Fix display of composite glyphs.
416 Display cmp.from and cmp.to as well.
417 (pitx): Fix last change.
5b28ce35 418
bcffff46
KH
4192009-12-25 Kenichi Handa <handa@m17n.org>
420
421 * composite.h (composition_adjust_point): Update prototype.
422
423 * composite.c (composition_reseat_it): Don't make a composition
424 spanning over point.
425 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
426 composable characters.
427 (composition_adjust_point): New arg NEW_PT. Callers changed.
428
429 * keyboard.c (command_loop_1): Force redisplay if the last point
430 was within a composition.
431 (adjust_point_for_property): Don't adjust point for automatic
432 composition when called after buffer modification.
433
3f670e9a
EZ
4342009-12-19 Eli Zaretskii <eliz@gnu.org>
435
5ce6e4f4
JB
436 * .gdbinit (pitx): Don't use enum names, use their values.
437 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
438 (pgx): Don't use enum names, use their values.
439 (pitmethod): New helper command.
440 (pitx): Use it to display iteration method.
441 (pgrowit): New command.
442
ad903955
EZ
443 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
444
3f670e9a
EZ
445 Update dependencies in Makefile.in.
446
447 * Makefile.in (alloc.o): Depend on termhooks.h.
448 (atimer.o): Depend on blockinput.h.
449 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
450 and frame.h.
451 (callint.o): Depend on systime.h, coding.h, and composite.h.
452 (callproc.o): Depend on buffer.h.
453 (casefiddle.o): Don't depend on charset.h.
454 (casetab.o): Depend on character.h.
455 (ccl.o): Depend on composite.h.
456 (chartab.o): Depend on ccl.h.
457 (cm.o): Depend on dispextern.h.
458 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
459 (coding.o): Don't depend on $(INTERVALS_H).
460 (composite.o): Don't depend on dispextern.h explicitly (it's in
461 $(INTERVALS_H)). Depend on ccl.h.
462 (data.o): Depend on systime.h, coding.h, composite.h,
463 dispextern.h, font.h, and ccl.h.
464 (dired.o): Depend on composite.h.
465 (dispnew.o): Depend on coding.h. Don't depend explicitly on
466 composite.h (it's in $(INTERVALS_H)).
467 (doc.o): Depend on systime.h, coding.h, and composite.h.
468 (editfns.o): Don't depend explicitly on dispextern.h.
469 (emacs.o): Depend on frame.h and coding.h.
470 (eval.o): Depend on coding.h, composite.h, and xterm.h.
471 (fileio.o): Depend on frame.h and commands.h. Don't depend
472 explicitly on dispextern.h.
473 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
474 composite.h.
475 (fns.o): Don't depend on termhooks.h.
476 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
477 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
478 coding.h, $(INTERVALS_H), window.h, xterm.h.
479 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
480 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
481 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
482 fontset.h, ccl.h, and ftfont.h.
483 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
484 (gtkutil.o): Depend on dispextern.h and composite.h.
485 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
486 termhooks.h, and ccl.h.
487 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
488 (intervals.o): Depend on systime.h and coding.h.
489 (keyboard.o): Depend on composite.h and coding.h.
490 (keymap.o): Depend on coding.h and frame.h.
491 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
492 (macros.o): Depend on systime.h, coding.h, and composite.h.
493 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
494 and atimer.h.
495 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
496 dispextern.h explicitly.
0b5397c2
SM
497 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
498 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
499 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
500 (regex.o): Don't depend on charset.h.
501 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
502 (search.o): Don't depend explicitly on composite.h.
503 (sound.o): Depend on atimer.h and systime.h.
504 (syntax.o): Don't depend explicitly on composite.h.
505 (sysdep.o): Depend on coding.h and composite.h.
506 (term.o): Depend on xterm.h and buffer.h.
507 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
508 (textprop.o): Don't depend on dispextern.h explicitly.
509 (undo.o): Depend on dispextern.h.
510 (window.o): Depend on coding.h and termhooks.h. Don't depend on
511 dispextern.h and composite.h explicitly.
512 (xdisp.o): Depend on ccl.h.
513 (xfaces.o): Depend on coding.h and ccl.h.
514 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
515 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
516 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
517 ftfont.h.
518 (xgselect.o): New dependency.
519 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
520 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
521 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
522 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
523 (xsmfns.o): Depend on frame.h and dispextern.h.
524 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
525 sysselect.h.
526
7a6f7fea
AS
5272009-12-19 Andreas Schwab <schwab@linux-m68k.org>
528
529 * font.c (Fclear_font_cache): Pass correct cache argument to
530 font_clear_cache.
531
f4c21026
AS
5322009-12-16 Andreas Schwab <schwab@linux-m68k.org>
533
534 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
535 twice.
536
f7ab0997
CY
5372009-12-15 Chong Yidong <cyd@stupidchicken.com>
538
539 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
540 calling file-remote-p. Reported by Jim Meyering.
541
fa8e045a
MA
5422009-12-15 Michael Albinus <michael.albinus@gmx.de>
543
544 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 545 avoid compiler warnings. (Bug #5217)
fa8e045a 546
a63dba42
KH
5472009-12-14 Kenichi Handa <handa@m17n.org>
548
549 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
550 in 8-bit encoding.
551
5ce6e4f4 5522009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
553
554 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
555 tooltip windows.
556
223e5fc6
JD
5572009-12-13 Jan Djärv <jan.h.d@swipnet.se>
558
36acb2a7
JD
559 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
560 Xatom_net_window_type.
561
562 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
563 Xatom_net_window_type.
564
b8f00677
JD
565 * xterm.c (my_log_handler): New function.
566 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 567 so we can filter out buggy messages. (Bug #5120).
b8f00677 568
e5f0bc9a
JD
569 * xterm.c (xg_scroll_callback): Parameter list changed,
570 use parameter GtkScrollType to determine scroll/line/page.
571 Only allow dragging if a button < 4 is grabbed (bug #5177).
572 (xg_end_scroll_callback): New function.
573 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
574 xg_create_scroll_bar.
575
576 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
577 (scroll_end_callback): Remove.
578 (xg_create_scroll_bar): Add parameter end_callback, bind it to
579 button-release-event. Replace value-changed event with change-value,
580 bug #5177,
581 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
582 bug #5177.
583
584 * gtkutil.h (XG_LAST_SB_DATA): Remove.
585 (xg_create_scroll_bar): Add GCallback end_callback.
586
223e5fc6
JD
587 * xftfont.c (QClcdfilter): New variable.
588 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
589 (syms_of_xftfont): Initialize QClcdfilter.
590
3c055b77
JD
5912009-12-12 Jan Djärv <jan.h.d@swipnet.se>
592
593 * xsettings.c (struct xsettings): Add member seen.
594 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 595 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
596 (apply_xft_settings): Only update Xft settings with what member seen
597 indicates as new.
598
05fe33ff
EZ
5992009-12-12 Eli Zaretskii <eliz@gnu.org>
600
601 * dispextern.h (struct text_pos): Use EMACS_INT;
602 (struct glyph): Use EMACS_INT for charpos.
603 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
604 region_beg_charpos, region_end_charpos,
605 redisplay_end_trigger_charpos, and also for
606 iterator_stack_entry.end_charpos and
607 iterator_stack_entry.stop_charpos.
608
e8d7886a
JD
6092009-12-12 Jan Djärv <jan.h.d@swipnet.se>
610
5ce6e4f4 611 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
612 (xg_create_scroll_bar): Call scroll_end_callback on button release
613 event (bug #5177).
614 (xg_event_is_for_scrollbar): != replaced with ==.
615
d0db2ec8
KH
6162009-12-12 Kenichi Handa <handa@m17n.org>
617
618 * ftfont.c (struct ftfont_info): New member matrix.
619 (ftfont_open): Setup xftfont_info->matrix.
620 (MFLTFontFT): New member matrix.
621 (FLOOR, CEIL, ROUND): New macros.
622 (ftfont_get_metrics): Handle matrix transformation.
623 (ftfont_shape_by_flt): New arg matrix. Callers changed.
624
625 * xftfont.c (struct xftfont_info): New member matrix.
626 (xftfont_open): Setup xftfont_info->matrix.
627
6282009-12-10 Kenichi Handa <handa@m17n.org>
629
630 * xdisp.c (append_space_for_newline): Consider face-remapping.
631
2cc7b62f
AS
6322009-12-09 Andreas Schwab <schwab@linux-m68k.org>
633
b87dd913
AS
634 * xsettings.c: Include "keyboard.h".
635
eba5eb94
AS
636 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
637
2cc7b62f
AS
638 Fix implicit function declarations.
639 * cmds.c: Include "frame.h".
640 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
641 * frame.h: Move declaration of delete_frame outside of
642 HAVE_WINDOW_SYSTEM.
643
a4ef73c8
CY
6442009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
645
646 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
647
648 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
649 GTK builds.
650
944a300c
AS
6512009-12-07 Andreas Schwab <schwab@linux-m68k.org>
652
653 * unexelf.c (unexec): Don't search for .data twice.
654
022eef62
CY
6552009-12-05 Chong Yidong <cyd@stupidchicken.com>
656
426ac949
CY
657 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
658 if push failed.
659 (handle_line_prefix): Set avoid_cursor_p here. Check return value
660 of push_display_prop (Bug#5000).
661
022eef62
CY
662 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
663 value of font_list_entities (Bug#5085).
664
be95bee9
JB
6652009-12-04 Juanma Barranquero <lekktu@gmail.com>
666
667 Fix `string-to-number' to deal consistently with integers and floats.
668 * lread.c (isfloat_string): New argument ignore_trailing to accept all
669 trailing characters, not just whitespace.
670 (read1): Pass new arg 0 to keep old behavior.
671 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
672 trailing chars, as it is already done for integers. Doc fixes.
673 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
674
24c2d7ce
EZ
6752009-12-04 Eli Zaretskii <eliz@gnu.org>
676
0b5397c2
SM
677 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
678 Delete unused enumeration value.
24c2d7ce 679
7e694795
EZ
6802009-12-03 Eli Zaretskii <eliz@gnu.org>
681
682 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
683
84b31826
SM
6842009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
685
686 * process.c (Fmake_network_process): Fix up the tests for
687 "connectionless socket", so they DTRT for seqpacket sockets as well.
688
f00c449b
SM
6892009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
690
691 * process.c (Qseqpacket): New symbol.
692 (HAVE_SEQPACKET): New macro.
693 (Fmake_network_process): Accept new :type `seqpacket'.
694 (init_process): Add `seqpacket' feature when applicable.
695 (syms_of_process): Initialize Qseqpacket.
696
8096a0ff
YM
6972009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
698
699 * font.c (font_load_for_lface, font_open_by_name): Don't store name
700 if entity is Qnil.
701
3e0de07f
SM
7022009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
703
704 * print.c (print_preprocess): Preprocess the key_and_value table of
705 hashtables, even tho they're "hidden" (bug#5082).
706
abeafb2a
JD
7072009-11-29 Jan Djärv <jan.h.d@swipnet.se>
708
709 * frame.c (frame_make_pointer_invisible)
710 (frame_make_pointer_visible): Declare f before statements.
711
4bf47195
EZ
7122009-11-28 Eli Zaretskii <eliz@gnu.org>
713
714 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
715 omitted dependencies on lisp.h.
716
c525b3f2
JD
7172009-11-27 Jan Djärv <jan.h.d@swipnet.se>
718
ece2d4ed
JD
719 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
720 is NULL.
721
722 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
723
724 * frame.c (frame_make_pointer_invisible)
3e0de07f 725 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
726 frame.
727
c525b3f2
JD
728 * search.c (simple_search): Remove warning by making *p const.
729
2f00e299
DN
7302009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
731
732 * xdisp.c (power_letter): Remove duplicate const.
733
084b049b
JD
7342009-11-25 Jan Djärv <jan.h.d@swipnet.se>
735
a1fadc6f
JD
736 * term.c (delete_tty): Remove check for last terminal (bug#4970).
737
5ce6e4f4 738 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
739 defaults (bug #5025).
740
28259cac
SM
7412009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
742
743 * insdel.c (adjust_markers_for_delete): Move it in the
744 right direction! (bug#4803)
745
e8e14166
YM
7462009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
747
748 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
749
750 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
751
86677b58
GM
7522009-11-24 Glenn Morris <rgm@gnu.org>
753
754 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
755
581e51e8
JD
7562009-11-23 Jan Djärv <jan.h.d@swipnet.se>
757
cfc86c7a
JD
758 * Makefile.in: Must create deps for ecrt0.o in its rule.
759
581e51e8
JD
760 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
761 because that is what Gtk+ font dialog understands.
762
763 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
764 of Fcopy_sequence.
765 (font_open_by_name): Put name given into QCname for font-object returned.
766
767 * frame.c (x_set_font): Save original font name as frame parameter
768 font-parameter.
769
770 * xsettings.c (set_default_xft_settings): New function.
771 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
772 is found.
773
8b264ecb
AS
7742009-11-22 Andreas Schwab <schwab@linux-m68k.org>
775
776 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
777 searching backwards through multibyte buffer.
778
872870b2
JD
7792009-11-21 Jan Djärv <jan.h.d@swipnet.se>
780
781 * xterm.c: #include xgselect.h.
782 (x_initialize): Call xgselect_initialize.
783
784 * xsettings.c (something_changedCB): C++ comments => C comments.
785 (init_gconf): Do not deal with any GLib file descriptors, xg_select
786 does that now.
787
788 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
789 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
790 (scroll_bar_button_cb): Remove.
5ce6e4f4 791 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
792 event.
793 (xg_create_scroll_bar): Don't bind button-press-event and
794 button-release-event.
795
796 * process.c: Include xgselect.h if defined (USE_GTK) ||
797 defined (HAVE_GCONF).
798 (wait_reading_process_output): Call xg_select for the same condition.
799
800 * xgselect.c (xg_select): New function to better integrate with
801 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
802
803 * xgselect.h: New file, declare xg_select, xgselect_initialize.
804
805 * Makefile.in (XOBJ): Add xgselect.o.
806
62a6e103
AS
8072009-11-21 Andreas Schwab <schwab@linux-m68k.org>
808
0b5397c2
SM
809 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
810 Remove ignored second argument. All callers changed.
62a6e103
AS
811 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
812 (RE_STRING_CHAR_AND_LENGTH): Likewise.
813 * xdisp.c (string_char_and_length): Likewise.
814
b0ca0f33
DN
8152009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
816
817 * xterm.c (x_new_font):
818 * print.c (print_object):
819 * cmds.c (Fself_insert_command): Move declarations before statements.
820
dd5a6279
CY
8212009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
822
823 * s/cygwin.h: Remove unneeded linker flags.
824
4a8e097d
JD
8252009-11-20 Jan Djärv <jan.h.d@swipnet.se>
826
0d1d0d26
JD
827 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
828
829 * xsettings.h: Declare xsettings_get_system_font.
830
831 * xsettings.c (xsettings_get_system_font): New function.
832 (init_gconf): No use initiating gconf unless we have Xft also.
833 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
834 HAVE_GCONF.
835
4a8e097d
JD
836 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
837 add a blank entry so it doesn't collapse into nothing.
838
8ab1650e
SM
8392009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
840
841 * lread.c (Funintern): Comment out last change.
842
82c602f0
RS
8432009-11-19 Richard Stallman <rms@gnu.org>
844
845 * lread.c (Funintern): Error if symbol is t or nil.
846
87e32266
SM
8472009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
848
849 * insdel.c (make_gap_larger): Don't make as many assumptions about the
850 representation of Lisp integers.
851 Reported by MJ Chan <mjchan.inbox@gmail.com>.
852
1b9ac145
AS
8532009-11-17 Andreas Schwab <schwab@linux-m68k.org>
854
855 * lisp.h: Remove declaration of Ffont_get_system_font.
856 * xfns.c: Move include of "xsettings.h".
857 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
858
dfb3c4c6
JD
8592009-11-17 Jan Djärv <jan.h.d@swipnet.se>
860
87e32266
SM
861 * xsettings.c (something_changedCB, Ffont_get_system_font):
862 Check use_system_font.
dfb3c4c6
JD
863 (syms_of_xsettings): DEFVAR font-use-system-font.
864
9370c1d8
AS
8652009-11-17 Andreas Schwab <schwab@linux-m68k.org>
866
25fe851a
AS
867 * xfns.c (x_default_font_parameter): Remove dead assignment.
868
9370c1d8
AS
869 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
870
637fa988
JD
8712009-11-17 Jan Djärv <jan.h.d@swipnet.se>
872
87e32266 873 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 874 not have FC_LCD_*. #define them if not there.
a6eb20d8 875
87e32266 876 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 877
637fa988
JD
878 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
879
880 * xterm.c (handle_one_xevent): Call xft_settings_event for
881 ClientMessage, PropertyNotify and DestroyNotify.
882 (x_term_init): If we have XFT, get DPI from Xft.dpi.
883 Call xsettings_initialize.
884
885 * xftfont.c (xftfont_fix_match): New function.
886 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
887 Call xftfont_fix_match after XftFontMatch.
888
889 * xfont.c (xfont_driver): Initialize all members.
890
87e32266
SM
891 * xfns.c (x_default_font_parameter):
892 Try font from Ffont_get_system_font.
637fa988
JD
893 Do not get font from x_default_parameter if we got one from
894 Ffont_get_system_font.
87e32266 895 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
896
897 * w32font.c (w32font_driver): Initialize all members.
898
899 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
900
901 * lisp.h: Declare syms_of_xsettings.
902
87e32266
SM
903 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
904 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
905
906 * ftfont.c (ftfont_filter_properties): New function.
907
908 * frame.c (x_set_font): Remove unused variable lval.
909
87e32266 910 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
911
912 * font.c (font_put_extra): Don't return if val is nil, it means
913 boolean option is off.
914 (font_parse_fcname): Collect all extra properties in extra_props
915 and call filter_properties for all drivers with extra_props and
916 font as parameter.
87e32266
SM
917 (font_open_entity): Do not use cache, it does not pick up new
918 fontconfig settings like hinting.
637fa988
JD
919 (font_load_for_lface): If spec had a name in it, store it in entity.
920
921 * emacs.c (main): Call syms_of_xsettings
922
923 * config.in: HAVE_GCONF is new.
924
925 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
926 xsettings.o is new.
927
5a942932
KH
9282009-11-17 Kenichi Handa <handa@m17n.org>
929
930 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
931 back to the default font in case that no suitable font is found.
932
b7c7a4d1
SM
9332009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
934
935 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
936 Suggested by Chad Brown <yandros@mit.edu>.
937 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
938
072f1e39
JD
9392009-11-16 Jan Djärv <jan.h.d@swipnet.se>
940
941 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
942
5d1e70a2
AS
9432009-11-14 Andreas Schwab <schwab@linux-m68k.org>
944
87e32266 945 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 946
a53cfbe5
JD
9472009-11-14 Jan Djärv <jan.h.d@swipnet.se>
948
473a99b7
JD
949 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
950 has a parent.
951
a53cfbe5 952 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 953 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
954
955 * config.in: Generated (AUTO_DEPEND).
956
f04bb9b2
MA
9572009-11-13 Michael Albinus <michael.albinus@gmx.de>
958
b7c7a4d1 959 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
960 Vdbus_registered_functions_table, because it contains also
961 properties. Fix docstring.
b7c7a4d1 962 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 963
8f11f7ec
SM
9642009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
965
966 * alloc.c (mark_object): Don't reprocess marked strings.
967 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
968 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
969
8a605fe8
KH
9702009-11-13 Kenichi Handa <handa@m17n.org>
971
8f11f7ec 972 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
973 semantics of Vword_combining_categories.
974 (Vword_combining_categories): Describe the slight change of the
975 semantics.
976
241c4680
EZ
9772009-11-13 Eli Zaretskii <eliz@gnu.org>
978
979 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
980
981 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
982
5d58e44c
SM
9832009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
984
985 * xdisp.c (syms_of_xdisp): Fix typo in last change.
986
5e13f9d3
JB
9872009-11-12 Juanma Barranquero <lekktu@gmail.com>
988
989 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
990
cf54c754
DR
9912009-11-11 David Reitter <david.reitter@gmail.com>
992
993 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
994 variables to fix 2009-11-09 change.
995
a4ada374
DN
9962009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
997
91433552
DN
998 * process.c (ifflag_def): Make flag_sym constant.
999 (Fnetwork_interface_info): Use a constant pointer.
1000 (ifflag_table):
1001 * xfns.c (cursor_bits):
1002 * xdisp.c (power_letter):
1003 * termcap.c (speeds, esctab):
1004 * sysdep.c (baud_convert):
1005 * keyboard.c (lispy_accent_codes, modifier_names):
1006 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1007 (jpeg_format, tiff_format, gif_format, svg_format)
1008 (interlace_start, interlace_increment, gs_format):
1009 * gtkutil.c (separator_names):
1010 * fringe.c (swap_nibble):
1011 * fns.c (base64_value_to_char, base64_char_to_value):
1012 * fileio.c (make_temp_name_tbl):
1013 * coding.c (suffixes): Make constant.
1014
f4265f6c
DN
1015 * frame.c (make_initial_frame):
1016 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1017 build_string.
1018 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1019
04420943
DN
1020 * s/freebsd.h:
1021 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1022
0a5d24ae
DN
1023 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1024 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1025
a4ada374
DN
1026 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1027 * xterm.c (syms_of_xterm):
1028 * xfaces.c (syms_of_xfaces):
1029 * xdisp.c (syms_of_xdisp):
1030 * lread.c (syms_of_lread):
1031 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1032 build_string.
91433552 1033
a4ada374
DN
1034 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1035
af98fc7f
SM
10362009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1037
8ab1650e 1038 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1039
e90292a9
JD
10402009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1041
1042 * keyboard.h: Declare timer_check.
1043
1044 * keyboard.c (timer_check_2): New function that does what the old
1045 timer_check did.
1046 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1047 returned, i.e. don't return -1 with timers pending.
1048
1049 * process.c: Remove extern declaration of timer_check.
1050
1051 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1052 even if timer_check returned -1.
1053
af98fc7f
SM
1054 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1055 xg_dialog_data.
e90292a9
JD
1056 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1057 the event loop.
1058 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1059 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1060 Destroy the dialog after xg_dialog_run.
1061
045b83c0
SM
10622009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1063
1064 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1065
1fb99a3a
JD
10662009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1067
1068 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1069
04e452cb
JB
10702009-11-09 Juanma Barranquero <lekktu@gmail.com>
1071
1072 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1073
ef7417fd
SM
10742009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1075
1076 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1077 w32menu.c, and nsmenu.m.
1078 Simplify the obsolete case where position is nil.
1079 (cleanup_popup_menu): New function, moved from nsmenu.m.
1080 (struct skp): Remove slot `notreal'.
1081 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1082 adjust callers.
1083 (single_menu_item): Adjust call to parse_menu_item.
1084 (syms_of_menu): Defsubr x-popup-menu.
1085 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1086 (keymap_panes): Don't export any more.
1087 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1088 (xmenu_show): Declare.
1089 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1090 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1091 * keyboard.h (parse_menu_item): Update declaration.
1092 * xmenu.c (Fx_popup_menu): Remove.
1093 (syms_of_xmenu): Don't defsubr x-popup-menu.
1094 * w32menu.c (Fx_popup_menu): Remove.
1095 (syms_of_w32menu): Don't defsubr x-popup-menu.
1096 * nsmenu.m (cleanup_popup_menu): Remove.
1097 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1098 moved to menu.c's Fx_popup_menu.
1099 (Fx_popup_menu): Remove.
1100 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1101 menu_items (it's done in menu.c already).
1102
424d6179
SM
11032009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1104
1105 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1106 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1107
c0df13a6 11082009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1109
1110 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1111 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1112 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1113 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1114
2de9f71c
SM
11152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1116
1117 Let integers use up 2 tags to give them one extra bit and thus double
1118 their range.
1119 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1120 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1121 New macros.
1122 (enum Lisp_Type): Use them. Give explicit values.
1123 (Lisp_Type_Limit): Remove.
1124 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1125 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1126 Pay attention to USE_2_TAGS_FOR_INTS.
1127 (INTEGERP): Use LISP_INT_TAG_P.
1128 * fns.c (internal_equal): Simplify the default case.
1129 (sxhash): Use case_Lisp_Int.
1130 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1131 any more.
1132 (Ftype_of): Use case_Lisp_Int.
1133 (store_symval_forwarding): Take into account the fact that Ints can
1134 now have more than one tag.
1135 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1136 buffer_slot_type_mismatch):
1137 * xfaces.c (face_attr_equal_p):
1138 * print.c (print_object):
1139 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1140 Use case_Lisp_Int.
1141
323637a2
EZ
11422009-11-06 Eli Zaretskii <eliz@gnu.org>
1143
7ac65b38
EZ
1144 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1145
323637a2
EZ
1146 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1147 warning.
1148
e511451f
JD
11492009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1150
1151 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1152
1153 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1154
1155 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1156 ButtonPressRelease and MotionNotify (bug#4870).
1157
5e2327cf
DN
11582009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1159
5adc433e
DN
1160 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1161
d67b4f80
DN
1162 * xterm.c (syms_of_xterm):
1163 * xselect.c (syms_of_xselect):
1164 * xmenu.c (syms_of_xmenu):
1165 * xfns.c (syms_of_xfns):
1166 * xfaces.c (syms_of_xfaces):
1167 * xdisp.c (syms_of_xdisp):
1168 * window.c (syms_of_window):
1169 * w32fns.c (syms_of_w32fns):
1170 * undo.c (syms_of_undo):
1171 * textprop.c (syms_of_textprop):
1172 * terminal.c (syms_of_terminal):
1173 * syntax.c (syms_of_syntax):
1174 * sound.c (syms_of_sound):
1175 * search.c (syms_of_search):
1176 * print.c (syms_of_print):
1177 * minibuf.c (syms_of_minibuf):
1178 * macros.c (syms_of_macros):
1179 * keymap.c (syms_of_keymap, initial_define_key)
1180 (initial_define_lispy_key):
1181 * keyboard.c (syms_of_keyboard):
1182 * insdel.c (syms_of_insdel):
1183 * image.c (syms_of_image):
1184 * fringe.c (syms_of_fringe):
1185 * frame.c (syms_of_frame):
1186 * fontset.c (syms_of_fontset):
1187 * fns.c (syms_of_fns):
1188 * fns.c (syms_of_fns):
1189 * fileio.c (syms_of_fileio):
1190 * fileio.c (syms_of_fileio):
1191 * eval.c (syms_of_eval):
1192 * doc.c (syms_of_doc):
1193 * dispnew.c (syms_of_display):
1194 * dired.c (syms_of_dired):
1195 * dbusbind.c (syms_of_dbusbind):
1196 * data.c (syms_of_data):
1197 * composite.c (syms_of_composite):
1198 * coding.c (syms_of_coding):
1199 * cmds.c (syms_of_cmds):
1200 * charset.c (define_charset_internal, syms_of_character):
1201 * ccl.c (syms_of_ccl):
1202 * category.c (syms_of_category, init_category_once):
1203 * casetab.c (syms_of_casetab):
1204 * casefiddle.c (syms_of_casefiddle):
1205 * callint.c (syms_of_callint):
1206 * bytecode.c (syms_of_bytecode):
1207 * buffer.c (keys_of_buffer, syms_of_buffer):
1208 * alloc.c (syms_of_alloc):
1209 * process.c (syms_of_process, init_process):
1210 * lread.c (syms_of_lread, init_obarray):
1211 * font.c (build_style_table):
1212 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1213 intern_c_string, calls to make_pure_string with
1214 make_pure_c_string. Use pure_cons instead of Fcons.
1215
5e2327cf
DN
1216 * process.c (socket_options): Make it const.
1217 (set_socket_option, init_process): Use a const pointer.
1218
1219 * lread.c (intern_c_string): New function.
1220 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1221 (defvar_int): Uset it. Make the name const char*.
1222
1223 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1224 (defvar_int): Update prototypes.
1225 (DEFUN, EXFUN): Support for prototypes is now required.
1226 (intern_c_string): New prototype.
1227 (struct Lisp_Subr): Make symbol_name constant.
1228
1229 * font.c (struct table_entry): Remove unused member. Make NAMES
1230 constant.
1231 (weight_table, slant_table, width_table): Make constant.
1232
1233 * emacs.c (struct standard_args): Make name and longname constant.
1234
1235 * character.h (DEFSYM): Use intern_c_string.
1236
a56eaaef
DN
12372009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1238
1239 * alloc.c (make_pure_c_string): New function.
1240
1241 * eval.c (Fautoload): Purecopy all arguments.
1242
f6a07420
KH
12432009-11-05 Kenichi Handa <handa@m17n.org>
1244
1245 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1246 the buffer in case of replace.
1247
5d28d4b1
DN
12482009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1249
1250 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1251
b349d111
SM
12522009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1253
d528b1ce
SM
1254 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1255 when applicable (bug#4851).
1256
b349d111
SM
1257 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1258 (P_): Support for prototypes is now required.
1259
c38eb027
CY
12602009-10-31 Chong Yidong <cyd@stupidchicken.com>
1261
1262 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1263 (Bug#4827).
1264
0405f8d9
EZ
12652009-10-30 Eli Zaretskii <eliz@gnu.org>
1266
d528b1ce 1267 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1268
ca0a881a
DN
12692009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1270
1271 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1272
d528b1ce
SM
1273 * lread.c (Fload): Purecopy the file name when building
1274 Vpreloaded_file_list.
ca0a881a 1275
47e0e0e4
JR
12762009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1277
1278 * w32fns.c (syms_of_w32fns): Change default value of
1279 w32-scroll-lock-modifier to nil. (Bug#2827)
1280
057bce6f
JB
12812009-10-26 Juanma Barranquero <lekktu@gmail.com>
1282
782a943e 1283 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1284
242bc74c
AS
12852009-10-26 Andreas Schwab <schwab@redhat.com>
1286
1287 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1288
522d013a
JB
12892009-10-26 Juanma Barranquero <lekktu@gmail.com>
1290
1291 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1292 For delta < 0, skip check that only makes sense when the mini-window
1293 is going to be enlarged. (Bug#4534)
1294
18060980
CY
12952009-10-25 Chong Yidong <cyd@stupidchicken.com>
1296
1297 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1298 string in menu maps (Bug#4471).
1299
fec8f0fe
CY
13002009-10-24 Chong Yidong <cyd@stupidchicken.com>
1301
1302 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1303 FRAME_NS_VIEW on terminal frames (Bug#4765).
1304
10d66ec0
AS
13052009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1306
1cae01f7
AS
1307 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1308 DBUS_TYPE_UINTnn separately to get proper sign extension.
1309
58a12889
AS
1310 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1311 can properly handle unsigned types.
d528b1ce 1312 (make_uid, make_gid): Remove.
58a12889 1313
987c9327
AS
1314 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1315 types again.
1316
522d013a 1317 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1318 (system_process_attributes): Likewise.
1319
905a9ed3
DN
13202009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1321
1322 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1323
1324 * eval.c (Fautoload): Purecopy the filename. Simplify.
1325
1326 * category.c (Fdefine_category): Purecopy docstring.
1327
a599b3e8
AS
13282009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1329
7b792fc9
AS
1330 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1331
a599b3e8
AS
1332 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1333
b35ac83e
CY
13342009-10-23 Chong Yidong <cyd@stupidchicken.com>
1335
1336 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1337 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1338 (Bug#4775).
1339
e8903e00
SM
13402009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1341
1342 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1343 (init_fileio_once):
1344 * lisp.h (init_fileio_once): Remove.
1345 * emacs.c (main): Don't call init_fileio_once.
1346
8f43cbf3
DN
13472009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1348
1349 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1350
26898943
AS
13512009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1352
1353 * doprnt.c (doprnt): Fix overflow check.
1354
5c646d5a
JD
13552009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1356
3132a7ea
JD
1357 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1358
5c646d5a
JD
1359 * xterm.h (x_wait_for_event): Declare it.
1360
1361 * xterm.c (pending_event_wait): New variable.
1362 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1363 see pending_event_wait.eventtype.
1364 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1365 (x_new_font): Call change_frame_size with new rows/columns before we
1366 try to resize the frame.
5c646d5a 1367 (x_wait_for_event): New function.
d528b1ce
SM
1368 (x_set_window_size_1): Don't change gravity unless change_gravity
1369 is set.
5c646d5a
JD
1370 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1371 don't change frame size, instead wait for the ConfigureNotify.
1372 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1373 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1374 (x_initialize): Initialize pending_event_wait.
1375
1376 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1377 size.
1378
1379 * widget.c (EmacsFrameSetValues): Add comment.
1380 (EmacsFrameSetCharSize): Just call x_set_window_size.
1381
1382 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1383 x_wait_for_event.
d528b1ce 1384 (flush_and_sync): Remove again.
5c646d5a
JD
1385 (xg_get_font_name): Suggest monospace if no previous font is known.
1386
e9c1637d
SM
13872009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1388
1389 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1390 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1391
5a72cccb
YM
13922009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1393
1394 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1395 processing pending events when event is filtered for input method.
ab04798f 1396 (Bug#3681)
5a72cccb 1397
2629aa37
JB
13982009-10-20 Juanma Barranquero <lekktu@gmail.com>
1399
1400 * fns.c: Add #endif accidentally removed in previous change.
1401
c3417a74
DN
14022009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1403
1404 * fns.c: Remove code for unsupported system: MAC_OS.
1405 * image.c: Likewise. Include setjmp.h.
1406
9685cef2
JD
14072009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1410 pixel -1 (bug #4742).
1411
d7306fe6
DN
14122009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1413
019d2c4c
DN
1414 * process.c (create_pty): Remove conditionals for no longer
1415 supported systems: UNIPLUS and RTU.
1416
ee6bacd4
DN
1417 * xterm.c:
1418 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1419
d7306fe6
DN
1420 * alloc.c: Do not define struct catchtag.
1421 * eval.c: Move struct catchtag definition ...
1422 * lisp.h: ... here.
1423
1424 * image.c: Move png.h #include earlier to avoid warnings.
1425
1426 * xterm.c:
1427 * xsmfns.c:
1428 * xselect.c:
1429 * xrdb.c:
1430 * xmenu.c:
1431 * xftfont.c:
1432 * xfont.c:
1433 * xfns.c:
1434 * xfaces.c:
1435 * xdisp.c:
1436 * window.c:
1437 * widget.c:
1438 * w32xfns.c:
1439 * w32uniscribe.c:
1440 * w32term.c:
1441 * w32select.c:
1442 * w32reg.c:
1443 * w32proc.c:
1444 * w32menu.c:
1445 * w32inevt.c:
1446 * w32heap.c:
1447 * w32font.c:
1448 * w32fns.c:
1449 * w32console.c:
1450 * w32.c:
1451 * w16select.c:
1452 * vm-limit.c:
1453 * unexsol.c:
1454 * unexec.c:
1455 * unexcw.c:
1456 * unexaix.c:
1457 * undo.c:
1458 * tparam.c:
1459 * textprop.c:
1460 * terminfo.c:
1461 * terminal.c:
1462 * termcap.c:
1463 * term.c:
1464 * syntax.c:
1465 * sound.c:
1466 * sheap.c:
1467 * search.c:
1468 * scroll.c:
1469 * region-cache.c:
1470 * regex.c:
1471 * ralloc.c:
1472 * process.c:
1473 * print.c:
b024548b
DN
1474 * nsterm.m:
1475 * nsselect.m:
1476 * nsmenu.m:
1477 * nsimage.m:
1478 * nsfont.m:
1479 * nsfns.m:
d7306fe6
DN
1480 * msdos.c:
1481 * minibuf.c:
1482 * menu.c:
1483 * marker.c:
1484 * macros.c:
1485 * keymap.c:
1486 * keyboard.c:
1487 * intervals.c:
1488 * insdel.c:
1489 * indent.c:
1490 * gtkutil.c:
1491 * ftxfont.c:
1492 * ftfont.c:
1493 * fringe.c:
1494 * frame.c:
1495 * fontset.c:
1496 * font.c:
1497 * fns.c:
1498 * floatfns.c:
1499 * filelock.c:
1500 * fileio.c:
1501 * emacs.c:
1502 * editfns.c:
1503 * dosfns.c:
1504 * doprnt.c:
1505 * doc.c:
1506 * dispnew.c:
1507 * dired.c:
1508 * dbusbind.c:
1509 * data.c:
1510 * composite.c:
1511 * coding.c:
1512 * cmds.c:
1513 * cm.c:
1514 * chartab.c:
1515 * charset.c:
1516 * character.c:
1517 * ccl.c:
1518 * category.c:
1519 * casetab.c:
1520 * casefiddle.c:
1521 * callproc.c:
1522 * callint.c:
1523 * bytecode.c:
1524 * buffer.c:
1525 * atimer.c: Include setjmp.h. (Bug#4643)
1526
fd5f21e6
SM
15272009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1528
4c0354d7
SM
1529 Remove leftover table unibyte_to_multibyte_table.
1530 * character.c (unibyte_to_multibyte_table): Remove.
1531 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1532 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1533 * character.h (UNIBYTE_TO_CHAR): New macro.
1534 (MAKE_CHAR_MULTIBYTE): Use it.
1535 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1536 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1537 (message_dolog, set_message_1):
1538 * search.c (Freplace_match):
1539 * editfns.c (Fcompare_buffer_substrings):
1540 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1541 (concat):
1542 * insdel.c (copy_text, count_size_as_multibyte):
1543 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1544 * term.c (produce_glyphs):
1545 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1546 * regex.c (RE_CHAR_TO_MULTIBYTE):
1547 * cmds.c (internal_self_insert):
1548 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1549
fd5f21e6
SM
1550 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1551
4418646e
DN
15522009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1553
1554 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1555
35f5c1d2
JB
15562009-10-16 Juanma Barranquero <lekktu@gmail.com>
1557
1558 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1559
a0cd8f6b
AR
15602009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1561
1562 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1563 still needed under Tiger.
1564
1565 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1566
1567 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1568 __Apple__.
1569
1570 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1571
01a8d3fa
KH
15722009-10-15 Kenichi Handa <handa@m17n.org>
1573
1574 * print.c (print_object): Escape a symbol like "2E10" too.
1575
bf6c75c9 15762009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1577
1578 Cleanups and changes for 64-bit compile under Snow Leopard.
1579 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1580
1581 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1582
c5959062 1583 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1584 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1585 cast argument.
1586 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1587 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1588
1589 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1590
1591 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1592 where appropriate.
1593
1594 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1595 where appropriate.
6e4780c5
JB
1596 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1597 Use stringWithUTF8String.
bf6c75c9
AR
1598 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1599
6e4780c5
JB
1600 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1601 Add formal protocol mention to inheritance.
bf6c75c9
AR
1602 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1603
6e4780c5
JB
1604 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1605 Fix printf format.
bf6c75c9
AR
1606 (ns_query_color): Use CGFloat where appropriate.
1607 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1608 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1609 argument.
1610
3d87f118
AR
1611 * config.in (NS_HAVE_NSINTEGER): Drop.
1612
a95c8102
AR
1613 * dbusbind.c (dbus-method-return-internal)
1614 (dbus-method-error-internal): Use long format in printf, and cast
1615 argument.
1616
1617 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1618 in printf, and cast argument.
1619
6873acca 1620 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1621 cast argument.
1622
9ec6f100
GM
16232009-10-11 Glenn Morris <rgm@gnu.org>
1624
1625 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1626
5be883cd
JD
16272009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1628
1629 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1630 menu bar with a small width so it doesn't enlarge the frame.
1631
d7a39b51
JB
16322009-10-08 Juanma Barranquero <lekktu@gmail.com>
1633
1634 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1635
0c2b6f8e
GM
16362009-10-06 Glenn Morris <rgm@gnu.org>
1637
1638 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1639 SOME_MACHINE_LISP (this enters indirectly via DOC).
1640
e02131a2
EZ
16412009-10-05 Eli Zaretskii <eliz@gnu.org>
1642
1643 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1644
b4744254
EZ
16452009-10-04 Eli Zaretskii <eliz@gnu.org>
1646
1647 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1648 Doc fix.
1649
dbf64827
JB
16502009-10-03 Martin Rudalics <rudalics@gmx.at>
1651
1652 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1653
e9a0aef8
MA
16542009-10-02 Michael Albinus <michael.albinus@gmx.de>
1655
d528b1ce 1656 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1657 used anymore outside fileio.c.
1658
1659 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1660
64eb2b56
JB
16612009-10-01 Juanma Barranquero <lekktu@gmail.com>
1662
1663 * lisp.h (Qdelete_directory_internal):
1664 Declare, instead of Qdelete_directory.
1665
1666 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1667
9d28c33e
SM
16682009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1669
1670 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1671
9d8f3bd9
MA
16722009-10-01 Michael Albinus <michael.albinus@gmx.de>
1673
9d28c33e 1674 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1675 Fdelete_directory. It is not a command anymore. It has no file
1676 name handler.
1677
9694740b
SM
16782009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1679
1680 * xdisp.c (get_next_display_element): Use an enum in last change.
1681
748e162f
KH
16822009-09-28 Kenichi Handa <handa@m17n.org>
1683
9694740b 1684 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1685 unibyte_display_via_language_environment in handling
1686 Vnobreak_char_display.
1687
17efd58d
AR
16882009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1689
1690 * nsterm.h (ns_app_name): New extern variable.
1691
1692 * nsterm.m (ns_app_name): New variable.
1693 (ns_term_init): Set and use it.
1694 (ns_term_shutdown): Use it.
1695
1696 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1697 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1698
1699 * nsfns.m (ns_set_name_iconic, ns_set_name)
1700 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1701 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1702
9694740b
SM
1703 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1704 Remove double-casting in client_data comparison.
31c2d412 1705
3208cb35
YM
17062009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1707
1708 * keyboard.c (make_lispy_event): Remember last wheel direction.
1709 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1710
b7d552d6
GM
17112009-09-26 Glenn Morris <rgm@gnu.org>
1712
1713 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1714 internal.elc. Add term/pc-win.elc.
1715 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1716 term/x-win.elc.
1717 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1718 term/w32-win.elc.
1719 (NS_SUPPORT): New.
1720 (lisp): Add NS_SUPPORT.
1721 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1722
4ff670a8
DR
17232009-09-25 David Reitter <david.reitter@gmail.com>
1724
1725 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1726 on Mac OS X 10.6+ (bug#4513).
1727
feabfb6c
JB
17282009-09-24 Juanma Barranquero <lekktu@gmail.com>
1729
1730 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1731 some parts of Emacs code (like font selection) don't grok them.
1732 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1733
de59072a
AS
17342009-09-24 Andreas Schwab <schwab@redhat.com>
1735
1736 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1737
a489517b
JB
17382009-09-24 Juanma Barranquero <lekktu@gmail.com>
1739
1740 * dired.c (Fdirectory_files): Fix typo in docstring.
1741
0592970c
AR
17422009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1743
1744 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1745 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1746 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1747 under GNUstep.
1748 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1749
1750 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1751 glyph advancement.
1752
48e8a88b
AR
17532009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1754
1755 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1756 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1757
1758 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1759 deleted (bug #4492).
1760
e14f0a78
AR
1761 * nsfont.m (Vns_reg_to_script): New lisp variable.
1762 (syms_of_nsfont): Declare it.
1763 (ns_registry_to_script): New function.
1764 (ns_get_req_script): Call it.
1765 (ns_findfonts): Don't give up on non-unicode registry.
1766
1767 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1768
5b650faa
SM
17692009-09-20 Tom Tromey <tromey@redhat.com>
1770
1771 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1772 batch mode (bug#4228).
1773
a489517b 17742009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1775
1776 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1777 carefully. (Bug #4339)
0bae4e09 1778
fcfe06f3
CY
17792009-09-18 Chong Yidong <cyd@stupidchicken.com>
1780
d798ba87 1781 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1782
31642728
AR
17832009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1784
1785 * emacs.c (inhibit_x_resources): Update doc string for NS.
1786 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1787 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1788
1789 * nsterm.h (ns_no_defaults): Remove.
1790
1791 * nsterm.m (ns_no_defaults): Remove.
1792 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1793 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1794 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1795 don't update the NSWindow itself.
1796 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1797 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1798
1799 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1800 ns_use_qd_smoothing.
1801
1802 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1803 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1804 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1805 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1806
8686ac71
JB
18072009-09-17 Juanma Barranquero <lekktu@gmail.com>
1808
1809 * emacs.c (inhibit_x_resources): New variable.
1810 (main) [HAVE_NS]: Don't process --quick command line option.
1811 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1812
1813 * lisp.h (inhibit_x_resources): Declare it extern.
1814
1815 * w32reg.c (x_get_string_resource):
1816 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1817
e227ba05
EZ
18182009-09-17 Eli Zaretskii <eliz@gnu.org>
1819
362654a6
JB
1820 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1821 Add lisp/term/internal.elc.
e227ba05 1822
742d40e8
SM
18232009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1824
1825 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1826 (bug#4461).
1827
005bd5a2
DN
18282009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1829
1830 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1831
1832 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1833 (OBJECTS_MACHINE): Remove, unused.
1834
f9af9719
SM
18352009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1836
1837 * frame.c (x_get_resource_string): Remove unused.
1838
0307c7d2
JD
18392009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1840
1841 * xterm.c (x_new_font): Call change_frame_size before calling
1842 x_set_window_size, in case frame size won't change.
1843
1844 * frame.c (x_set_font): Remove dead code.
1845
428b13d6
SM
18462009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1847
1848 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1849
5766c380
SM
18502009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1851
1852 * lread.c (Fload): Don't output a message after loading an obsolete
1853 package any more (done in Lisp now).
1854
2fd0161b
CY
18552009-09-12 Chong Yidong <cyd@stupidchicken.com>
1856
1857 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1858
bc5e75b6
SM
18592009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1860
1861 * keymap.c (Fwhere_is_internal): Use nconc2.
1862
c31c985e
AM
18632009-09-11 Alan Mackenzie <acm@muc.de>
1864
1865 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1866 batch mode.
1867
78012bd2
AS
18682009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1869
1870 * xdisp.c (display_mode_element): Detect cycles.
1871
9d889332
SM
18722009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1873
1874 * keymap.c (where_is_internal): Don't erroneously return nil right after
1875 filling the cache.
1876 (where_is_internal_1): Fix up typo.
1877
7ab5d780
GM
18782009-09-11 Glenn Morris <rgm@gnu.org>
1879
1880 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1881 share a common doc-string.
1882
5238a749
SM
18832009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1884
66d77eda
SM
1885 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1886 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1887
5238a749
SM
1888 * keymap.c (QCadvertised_binding): New constant.
1889 (syms_of_keymap): Initialize it.
1890 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1891 if applicable.
1892
19f48442
SM
18932009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1894
50d4ba39
SM
1895 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1896 (parse_menu_item): Streamline since bindings are recomputed all the
1897 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1898 more and don't support lmenu's menu-alias any more either.
1899
a88a5372
SM
1900 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1901 (where_is_internal): Strip it down to only traverse the keymaps.
1902 Move the cache handling from Fwhere_is_internal to here.
1903 (Fwhere_is_internal): Move the handling of remapping and the choice of
1904 the best binding from where_is_internal to here.
1905 Unify the cached/noncached paths, so remapping is also handled
1906 correctly when the cache is used, and so the cache can be used to
1907 speed up remap-handling when applicable.
1908 Give preference to non-remapped bindings.
1909 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1910 non-remapped bindings.
1911 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1912 command remapping.
1913
19f48442
SM
1914 * xdisp.c (display_mode_element): Move list length limit from 50 to
1915 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1916
599498c3 19172009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1918
1919 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1920
f9b7b5ac
SM
19212009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1922
a53af587
JB
1923 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1924 (Bug#4334)
1925
f9b7b5ac
SM
1926 * keymap.c (where_is_internal): Filter out shadowed remappings.
1927 Assume that where_is_internal returns unshadowed bindings to simplify
1928 the code and get rid of the gotos. Use ASIZE.
1929
04f4b72d
JD
19302009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1931
4da146f2
JD
1932 * xterm.c (x_focus_changed): If we get a focusout and pointer
1933 is invisible, make it visible.
1934
04f4b72d
JD
1935 * xterm.h: Remove condition for declaration of
1936 x_*_window_to_frame.
1937
7cef7ce3
SM
19382009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1939
1940 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1941 initial terminal as well.
1942
a54fa5b7
JD
19432009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1944
1945 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1946 x_menubar_window_to_frame.
a54fa5b7
JD
1947
1948 * xterm.c: Remove declarations also in xterm.h
1949 (XTmouse_position): Do not return valid positions
1950 for clicks in the menubar and the toolbar for Gtk+.
1951
1952 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1953 if the widget for the event has the same top level as a frame,
1954 return the frame.
1955 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1956 internal windows, bug #4122.
1957 (x_non_menubar_window_to_frame): Remove.
1958
5a021dd0
GM
19592009-09-02 Glenn Morris <rgm@gnu.org>
1960
1961 * buffer.c (default-major-mode): Move most of the doc from here...
1962 (major-mode): ... to here.
1963
548fe2f3
NR
19642009-08-30 Nick Roberts <nickrob@snap.net.nz>
1965
1966 * process.c (wait_reading_process_output): Keep the descriptor
1967 when pty is used by a non-child process, e.g., in I/O buffer of
1968 GDB this allows inferior to be restarted.
1969
e0840eef
EZ
19702009-08-29 Eli Zaretskii <eliz@gnu.org>
1971
1972 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1973 both branches into one.
1974
82e98df4
SM
19752009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1976
1977 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1978 (main): Use enable-multibyte-characters rather than
1979 default-enable-multibyte-characters. Output a warning message when
1980 running a unibyte session.
1981
890617cb
YM
19822009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1983
1984 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1985 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1986 (copy_data_segment): Also copy __program_vars section.
1987 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1988 (dump_it) [LC_DYLD_INFO]: Use it.
1989
1990 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1991
e7adeadc
EZ
19922009-08-28 Eli Zaretskii <eliz@gnu.org>
1993
1994 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1995 $(SRC)/buildobj.h.
1996 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1997 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1998 $(SRC)/buildobj.h.
1999 (clean): Add buildobj.h.
2000
3ed8bbdc
TZ
20012009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2002
2003 * print.c (print_object): Set escapeflag to 1 when printing
2004 hashtable keys and values.
2005
155a6764
SM
20062009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2007
2008 * lread.c (read_integer): Use doubles (and potentially return a float
2009 number) as we do in string-to-number.
2010 (read1): Use strtol to read integers, signal errors on strtol's
2011 overflow and use floats if strtol's output is too large for
2012 Elisp integers.
2013
877610de
EZ
20142009-08-27 Eli Zaretskii <eliz@gnu.org>
2015
2016 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2017 (make-buildobj-SH): Fix last change.
2018 (SRC): Move to before where it's first used.
2019
ef73e7be
KH
20202009-08-27 Kenichi Handa <handa@m17n.org>
2021
550c8289
KH
2022 * process.c (send_process): Use encode_coding_object instead of
2023 encode_coding_string to perform eol-conversion even if the string
2024 is unibyte.
2025
60afa08d
KH
2026 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2027 character.
2028
ef73e7be 2029 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2030 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2031
7b3a82d7
DN
20322009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2033
5654bf63
DN
2034 * callproc.c (Fcall_process): Remove always true #if.
2035
7b3a82d7
DN
2036 * lisp.h: Replace #if 0 code for checking with text pointing to
2037 the --enable-checking configure flag.
2038
2039 * emacs.c (main): Mention the --enable-profiling configure flag
2040 instead of using CFLAGS.
2041
878bde49
KR
20422009-08-26 Ken Raeburn <raeburn@raeburn.org>
2043
2044 * Makefile.in (buildobj.h): New target.
2045 (doc.o): Depend on it.
2046 (temacs${EXEEXT}): Don't generate buildobj.lst.
2047 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2048 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2049 ($(BLD)/doc.$(O)): Depend on it.
2050 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2051 provided by Eli Zaretskii.)
2052 ($(TEMACS)): Don't generate buildobj.lst.
2053 * doc.c: Include buildobj.h.
2054 (buildobj): New static variable.
2055 (Fsnarf_documentation): Use it, instead of opening and reading
2056 buildobj.lst.
2057
1574224c
MA
20582009-08-25 Michael Albinus <michael.albinus@gmx.de>
2059
2060 * dbusbind.c (Fdbus_call_method)
2061 (Fdbus_call_method_asynchronously): Use English numeric format for
2062 timeout values in doc string.
2063
d9da2f45
KH
20642009-08-25 Kenichi Handa <handa@m17n.org>
2065
ef73e7be
KH
2066 * alloc.c (mark_char_table): New function.
2067 (mark_object): Use mark_char_table for a char-table.
2068
d9da2f45
KH
2069 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2070 (CHAR_TABLE_REF): Use it.
2071
c8edcc01
KR
20722009-08-23 Ken Raeburn <raeburn@raeburn.org>
2073
2074 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2075 before invoking the newly build emacs to check for load-path
2076 shadowing.
2077
7763401b
GM
20782009-08-22 Glenn Morris <rgm@gnu.org>
2079
2080 * Makefile.in (bootstrap_exe): New variable.
2081 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2082 Use ${bootstrap_exe}.
2083
729eadda
EZ
20842009-08-22 Eli Zaretskii <eliz@gnu.org>
2085
2086 * coding.h (encode_coding_string): Don't encode unibyte strings.
2087 (Bug#4047)
2088
eb4c6ace
MA
20892009-08-22 Michael Albinus <michael.albinus@gmx.de>
2090
2091 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2092
2093 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2094 intended as hotfix only.
2095 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2096
36e34d1b
AR
20972009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2098
2099 * nsterm.m (ns_get_color): Update documentation properly for last
2100 change, and clean up loose ends in the code left by it. Fix
2101 longstanding bug with 16-bit hex parsing, and add support for
2102 yet another X11 format (rgb:r/g/b) for compatibility.
2103 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2104 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2105
f983eb8a
SM
21062009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2107
2108 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2109
3f56d3c6
MA
21102009-08-20 Michael Albinus <michael.albinus@gmx.de>
2111
2112 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2113 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2114 (xd_initialize, xd_pending_messages): Check, whether
2115 $DBUS_SESSION_BUS_ADDRESS is set.
2116
fb641d68
YM
21172009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2118
2119 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2120
2121 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2122
cf59a374
GM
21232009-08-20 Glenn Morris <rgm@gnu.org>
2124
2125 * emacs.c (system-type): Doc fix.
2126
1373f3be
SM
21272009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2128
2129 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2130 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2131
058ed861
MA
21322009-08-18 Michael Albinus <michael.albinus@gmx.de>
2133
1373f3be
SM
2134 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2135 New functions.
058ed861
MA
2136 (xd_initialize): Revert change from 2009-08-16.
2137
563a866e 21382009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2139
2140 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2141 font-group vector, return nil.
5fc05db0 2142
e42bdf01
CY
21432009-08-17 Chong Yidong <cyd@stupidchicken.com>
2144
2145 * process.c (status_notify): Don't perform redisplay.
2146 (Fdelete_process, list_processes_1, process_send_signal):
2147 Expliticly perform redisplay.
2148 (wait_reading_process_output): Always check process status, but
2149 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2150
4230ab74
KR
21512009-08-17 Ken Raeburn <raeburn@raeburn.org>
2152
1373f3be 2153 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2154 (XFLOAT_INIT): New macro for storing a float value.
2155 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2156 * fns.c (sxhash): Copy out the value of a float in order to
2157 examine its bytes.
2158 * dbusbind.c (xd_append_arg): Likewise.
2159
4230ab74
KR
2160 * emacs.c (main): Don't call syms_of_data twice.
2161
a0645cdd
MA
21622009-08-16 Michael Albinus <michael.albinus@gmx.de>
2163
2164 * dbusbind.c (xd_initialize): Add connection file descriptor to
2165 input_wait_mask, in order to let select() detect, whether a new
2166 message has been arrived.
ca4f31ea 2167 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2168
485db0ba
MA
21692009-08-15 Michael Albinus <michael.albinus@gmx.de>
2170
1373f3be
SM
2171 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2172 New functions.
485db0ba
MA
2173
2174 * lisp.h (xd_pending_messages): Declare.
2175
2176 * keyboard.c (readable_events): Call xd_pending_messages.
2177
b5b98ff4
CY
21782009-08-15 Chong Yidong <cyd@stupidchicken.com>
2179
1373f3be 2180 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2181
f8354c6e
CY
2182 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2183
b5b98ff4
CY
2184 * buffer.c (set_buffer_internal_1)
2185 (swap_out_buffer_local_variables): Check for unbound local
2186 variables (Bug#4138).
2187
8b9fc636
EZ
21882009-08-14 Eli Zaretskii <eliz@gnu.org>
2189
2190 * process.c (create_pty): Fix last change.
2191
ce959360
CY
21922009-08-13 Chong Yidong <cyd@stupidchicken.com>
2193
2194 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2195 (xbm_load_image): Caller changed.
64b807c9 2196 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2197
c7baf7e9
NR
21982009-08-13 Nick Roberts <nickrob@snap.net.nz>
2199
2200 * process.c (create_pty): New function.
2201 (Fstart_process): Use it to allow Emacs to just associate a pty
2202 with the buffer. See associated change in gdb-mi.el.
2203 (list_processes_1): Deal with no program name.
2204 (start_process_unwind): Use pid == -2 to mean no process.
2205
1ac9108a
SM
22062009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2207
2208 * cmds.c (nonundocount): New global variable.
2209 (keys_of_cmds): Initialize it.
2210 (Fself_insert_command): Use it to combine upto 20 sequential chars
2211 into a single undo entry, just like the Qself_insert_command code in
2212 keyboard.c does.
2213 Call frame_make_pointer_invisible, also like the Qself_insert_command
2214 code in keyboard.c does.
2215 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2216 than its own local replacement for it.
2217
e267324c
KR
22182009-08-10 Ken Raeburn <raeburn@raeburn.org>
2219
1ac9108a 2220 * fns.c (concat): Don't re-set string length to its current value.
77437343 2221
1ac9108a
SM
2222 * coding.h (decode_coding_string, encode_coding_string):
2223 Use SBYTES macro.
f0bed503 2224
1ac9108a 2225 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2226 (doprnt): Merge with doprnt1, discarding lispstrings code.
2227 * lisp.h (doprnt_lisp): Don't declare.
2228
416e006d
JL
22292009-08-07 Juri Linkov <juri@jurta.org>
2230
2231 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2232
6f7d5780
DN
22332009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2234
2235 * print.c (syms_of_print): Undo previous change.
2236
f19a0f5b
TZ
22372009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2238
2239 * lread.c (read1, syms_of_lread): Read hashtables back from the
2240 readable format.
2241
2242 * print.c (print_preprocess, print_object): Print hashtables fully
2243 and readably.
2244 (syms_of_print): Provide 'hashtable-print-readable.
2245
b9173dc2
AR
22462009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2247
2248 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2249 no family set.
2250 (nsfont_open): Handle case when entity has no family.
2251
1586503c
AR
22522009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2253
2254 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2255 element, not a list, for match case.
2256
087048cd
KH
22572009-07-28 Kenichi Handa <handa@m17n.org>
2258
2259 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2260 rigidly.
2261
2262 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2263 font_parse_xlfd. Check font properties more rigidly.
2264
780c2506
DN
22652009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2266
31fd7c5c
JB
2267 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2268 bsd-common.h.
780c2506 2269
a8c0cc18
KH
22702009-07-27 Kenichi Handa <handa@m17n.org>
2271
2272 * xfaces.c (face_with_height): Call font_clear_prop.
2273
4fbe2306
CY
22742009-07-26 Chong Yidong <cyd@stupidchicken.com>
2275
111d9af3
CY
2276 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2277
2278 * xterm.c (x_term_init): Use Qx.
2279
4fbe2306
CY
2280 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2281
1ac9108a 2282 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2283 (ns_get_color): Revert 2009-07-16 change.
2284
beb0b7f9
EZ
22852009-07-25 Eli Zaretskii <eliz@gnu.org>
2286
2287 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2288 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2289
2baf5e76
KR
22902009-07-25 Ken Raeburn <raeburn@raeburn.org>
2291
1ac9108a
SM
2292 * coding.h (decode_coding_string, encode_coding_string):
2293 Use SCHARS macro.
8890e5f5 2294
2baf5e76 2295 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2296 (load_depth): Delete.
2baf5e76
KR
2297 (Qload_in_progress): New variable.
2298 (load_unwind): Don't reference load_depth or load_in_progress.
2299 (Fload): Likewise; specbind Qload_in_progress instead.
2300 (init_lread): Don't initialize load_depth.
2301 (syms_of_lread): Initialize and protect Qload_in_progress.
2302
1395c6f5
AR
23032009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2304
2305 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2306
4e2f36cf
AR
23072009-07-23 Yavor Doganov <yavor@gnu.org>
2308
2309 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2310
5dd9a6f7
AR
23112009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2312
2313 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2314 Bugs 3792, 3720, 2402.
2315 (ns_lookup_indexed_color): Check for bad index.
2316 (ns_index_color): Init unused slot to 0.
2317 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2318 Bug 3714, possibly 3082.
5dd9a6f7 2319
c902b920
JR
23202009-07-22 Jason Rumney <jasonr@gnu.org>
2321
1ac9108a
SM
2322 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2323 Position IME window at cursor (Bug#2570).
c902b920
JR
2324 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2325 (globals_of_w32fns): Dynamically load functions required above.
2326
2327 * w32term.c (w32_draw_window_cursor): Send message to reposition
2328 any IME window.
2329
090101cf
CY
23302009-07-21 Chong Yidong <cyd@stupidchicken.com>
2331
2332 * fileio.c: Revert 2009-07-16 changes.
2333 (Vauto_save_include_big_deletions): New variable.
2334 (Fdo_auto_save): Disable auto-save only if
2335 auto-save-include-big-deletions is nil.
2336
e6583e3d
CY
23372009-07-21 Chong Yidong <cyd@stupidchicken.com>
2338
2339 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2340 the overflowed pixels into account (Bug#3879).
2341
ece435a5
KR
23422009-07-21 Ken Raeburn <raeburn@raeburn.org>
2343
2344 * lread.c (load_depth): New variable.
2345 (Fload, load_unwind, init_lread): Set it to the load recursion
2346 depth; set load_in_progress as a simple boolean based on the
2347 current load_depth. (Bug#3892)
2348
40b2d973
AR
23492009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2350
2351 * nsfont.m (ns_has_attribute): Remove.
2352 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2353
10be7e0d
JL
23542009-07-18 Juri Linkov <juri@jurta.org>
2355
2356 * process.c (Fset_process_query_on_exit_flag): Mention killing
2357 a buffer in docstring.
2358
fa055055
KH
23592009-07-17 Kenichi Handa <handa@m17n.org>
2360
2361 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2362
042f7b69
YM
23632009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2364
2365 * nsfns.m (Fns_set_alpha): Remove function.
2366 (syms_of_nsfns): Don't defsubr it.
2367
2368 * nsterm.m (ns_get_color): Remove incompatible color formats.
2369 (ns_color_to_lisp): Generate #rrggbb color format string.
2370
4be941e3
RS
23712009-07-16 Richard Stallman <rms@gnu.org>
2372
2373 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2374 (Fset_buffer_auto_saved): Handle save_length = -2.
2375
4e6b227d
CY
23762009-07-16 Chong Yidong <cyd@stupidchicken.com>
2377
2378 * xterm.c (Qx_gtk_map_stock): New var.
2379
2380 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2381 of calling intern each time.
2382
a1856973
YM
23832009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2384
2385 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2386 does tiling.
2387
2388 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2389
497e54d8
KH
23902009-07-14 Kenichi Handa <handa@m17n.org>
2391
72d36834
KH
2392 * font.c (font_vconcat_entity_vectors): New function.
2393 (struct font_sort_data): New member font_driver_preference.
2394 (font_compare): Check font_driver_preference.
2395 (font_sort_entities): The format of the first argument changed.
2396 (font_delete_unmatched): Likewise.
2397 (font_list_entities): The return type changed.
2398 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2399 (font_find_for_lface): Adjuste for the above changes.
2400 Don't suppress the checking of C even if the repertory supports it.
2401 (Flist_fonts): Adjust for the above changes.
72d36834 2402
1ac9108a
SM
2403 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2404 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2405 Reject a font who has adstyle property that is different from a
2406 langname derived from registry property.
1ac9108a 2407 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2408
b6046155
EZ
24092009-07-13 Eli Zaretskii <eliz@gnu.org>
2410
2411 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2412 local copy of dirfilename.
2413
fb6b6049
KH
24142009-07-13 Kenichi Handa <handa@m17n.org>
2415
e2402a5e
KH
2416 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2417 against max_char.
2418
fb6b6049
KH
2419 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2420 calling XSYMBOL (sym).
2421
65156807
EZ
24222009-07-11 Eli Zaretskii <eliz@gnu.org>
2423
1ac9108a
SM
2424 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2425 New function.
2426 (directory_files_internal) [WINDOWSNT]:
2427 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2428 the filesystem of the directory is fast or slow.
2429
2430 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2431 file name.
2432 (is_slow_fs): New function.
2433 (stat): Use it to determine whether to issue more system calls to
2434 get accurate file attributes, when w32-get-true-file-attributes is
2435 `local'.
2436
e0ab5fcf
JD
24372009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2438
2439 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2440 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2441 parameter font-parameter as default to the font dialog.
2442
784ceded
KH
24432009-07-10 Kenichi Handa <handa@m17n.org>
2444
2445 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2446
fb8edc0b
EZ
24472009-07-09 Eli Zaretskii <eliz@gnu.org>
2448
1ac9108a 2449 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2450
fb8edc0b
EZ
2451 * w32.c (stat): Treat UNC file names as residing on remote
2452 drives. (Bug#3542)
2453
635c75b1
KH
24542009-07-09 Kenichi Handa <handa@m17n.org>
2455
2456 * fontset.c (fontset_find_font): Fix previous change.
2457
c1d5ce94
MA
24582009-07-08 Michael Albinus <michael.albinus@gmx.de>
2459
2460 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2461 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2462 error flag.
2463
edb61b39
KH
24642009-07-08 Kenichi Handa <handa@m17n.org>
2465
374bf7e4
KH
2466 * fontset.c (fontset_find_font): Fix the logic of handling
2467 charset_matched.
2468 (font_for_char): Delete unused var.
2469 (generate_ascii_font_name): Delete it.
2470
edb61b39
KH
2471 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2472
2473 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2474 (encode_coding_sjis): Fix the code range check.
2475
0f3f018c
CY
24762009-07-07 Chong Yidong <cyd@stupidchicken.com>
2477
2478 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2479 (Fexpand_file_name): Copy string data properly (Bug#3772).
2480
fcaf6f3a
JD
24812009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2482
2483 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2484 first MapNotify.
2485
6809ca75
KH
24862009-07-07 Kenichi Handa <handa@m17n.org>
2487
2488 * character.h (unibyte_has_multibyte_table): Delete extern.
2489 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2490
2491 * charset.c (Fset_charset_priority): Update charset_unibyte.
2492 (syms_of_charset): Initialize charset_unibyte.
2493
2494 * character.c (unibyte_has_multibyte_table): Delete it.
2495 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2496 charset_unibyte.
2497 (multibyte_char_to_unibyte_safe): Likewise.
2498 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2499
1ac9108a 2500 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2501 (x_produce_glyphs): Likewise.
2502
2503 * .gdbinit (xcharset): Fix the treating $arg0.
2504
ad9e2d54
EZ
25052009-07-04 Eli Zaretskii <eliz@gnu.org>
2506
2507 Emulation of `getloadavg' on MS-Windows.
2508 * w32.c: Include float.h
2509 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2510 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2511 (get_native_system_info, get_system_times): New functions.
2512 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2513 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2514 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2515 g_b_init_get_system_times, and num_of_processors.
2516
0a3472c7
JR
25172009-07-03 Jason Rumney <jasonr@gnu.org>
2518
2519 * w32term.c (w32_initialize): Use standard types.
2520
80904120
EZ
25212009-07-03 Eli Zaretskii <eliz@gnu.org>
2522
2523 * dired.c (Ffile_attributes): Decode user and group names by the
2524 locale's encoding. (Bug#3443)
2525
6978862d
DN
25262009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2527
f8d23104
DN
2528 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2529 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2530
2531 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2532
2533 * term.c (init_tty): Remove spurious #ifdef.
2534
6978862d
DN
2535 * m/mips.h: Mention this file is also used for netbsd.
2536 * m/pmax.h: Remove file.
2537
e044e4fc
JD
25382009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2539
2540 * xterm.h (struct x_display_info): Add invisible_cursor.
2541 (struct x_output): Add current_cursor.
2542
2543 * xterm.c (XTtoggle_invisible_pointer): New function.
2544 (x_define_frame_cursor): Don't define cursor if invisible or the
2545 same as before. Set current_cursor.
2546 (x_create_terminal): Set toggle_invisible_pointer_hook.
2547
2548 * xfns.c (make_invisible_cursor): New function.
2549 (x_set_mouse_color): Call make_invisible_cursor.
2550 Set current_cursor.
2551 (x_window): Set current_cursor.
2552
2553 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2554
2555 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2556 inserting a character.
2557 (read_avail_input): Call frame_make_pointer_visible.
2558
2559 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2560 (frame_make_pointer_invisible, frame_make_pointer_visible):
2561 New functions.
e044e4fc
JD
2562 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2563
2564 * frame.h: Declare frame_make_pointer_invisible and
2565 frame_make_pointer_visible.
2566 (struct frame): Add pointer_invisible.
2567
574c8efa
JD
25682009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2569
7b507248
JD
2570 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2571 frame isn't visible.
2572 (xg_frame_resized): If width/height is -1, get size of window
2573 from X server.
2574
2575 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2576 for MapNotify.
2577
835bdaa7 2578 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2579 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2580 (flush_and_sync): Reintroduce.
574c8efa 2581
3f1c6666 25822009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2583
31fd7c5c 2584 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2585
2586 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2587 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2588
2589 * frame.h: Declare Qsticky.
2590
cad9ef74
JD
2591 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2592
2593 * nsfns.m (ns_frame_parm_handlers): Ditto.
2594
2595 * frame.c: Declare Qsticky.
2596 (frame_parms): Add sticky.
2597
2598 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2599
2600 * xterm.h: Declare x_set_sticky.
2601
2602 * xterm.c (x_set_sticky): New function.
2603
69b16610
JD
2604 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2605 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2606 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2607
2608 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2609
2610 * frame.c: Qmaximized is new.
2611 (x_set_frame_parameters): Do not handle fullscreen specially.
2612 Only set width and height if explicitly set.
2613 (x_set_fullscreen): Handle Qmaximized.
2614 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2615 (syms_of_frame): Initialize Qmaximized.
2616
1ac9108a
SM
2617 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2618 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2619
2620 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2621 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2622 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2623 set gravity to NorthWestGravity when USE_GTK.
2624 (set_wm_state): New function.
31fd7c5c 2625 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2626 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2627 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2628 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2629 to x_real_positions and x_fullscreen_adjust.
2630
2631 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2632 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2633 flush_and_sync.
2634 (xg_height_changed): New function.
2635 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2636 and gtk_window_set_policy. Set frame gravity after parsing the
2637 geometry string.
3f1c6666
JD
2638 (xg_update_frame_menubar, free_frame_menubar)
2639 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2640 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2641 Remove calls to xg_frame_set_char_size.
2642
fd503d99
KH
26432009-07-01 Kenichi Handa <handa@m17n.org>
2644
2645 * keyboard.c (decode_keyboard_code): New function.
2646 (tty_read_avail_input): Decode the input bytes if necessary.
2647
1ac9108a
SM
2648 * coding.c (setup_coding_system):
2649 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2650 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2651 use Qno_conversion.
2652
24ed93fb
YM
26532009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2654
2655 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2656
99061dfc
CY
26572009-06-30 Chong Yidong <cyd@stupidchicken.com>
2658
1ac9108a 2659 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2660
ff90fbde
JR
26612009-06-30 Jason Rumney <jasonr@gnu.org>
2662
2663 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2664 is already loaded.
2665 Set user model ID if supported (bug#1849).
2666
5f445726
JM
26672009-06-29 Jim Meyering <meyering@redhat.com>
2668
2669 Remove useless if-before-xfree test.
2670 * nsfont.m (nsfont_close): Remove useless test.
2671 * term.c (delete_tty): Likewise.
2672 * w32.c (system_process_attributes): Likewise.
2673 * w32font.c (w32font_close): Likewise.
2674 * xfaces.c (x_free_gc): Likewise.
2675 * xselect.c (buffer): Likewise.
2676
b9607587
AS
26772009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2678
2679 * process.c (send_process): Keep decoded string in a local
2680 variable and protect it from GC. (Bug#3521)
2681
89ba96f4
EZ
26822009-06-28 Eli Zaretskii <eliz@gnu.org>
2683
2684 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2685 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2686
098a1589
CY
26872009-06-28 Chong Yidong <cyd@stupidchicken.com>
2688
485422be
CY
2689 * xdisp.c (start_display, handle_face_prop)
2690 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2691 (redisplay_window, try_window_id, produce_image_glyph):
2692 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2693
098a1589
CY
2694 * xterm.c (x_update_window_begin, x_new_focus_frame)
2695 (x_scroll_bar_handle_click, handle_one_xevent)
2696 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2697 (x_make_frame_visible, x_make_frame_invisible)
2698 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2699 code chunks that are now obsolete.
2700
78c38319
MA
27012009-06-28 Michael Albinus <michael.albinus@gmx.de>
2702
2703 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2704 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2705 for hours, when optimzation is enabled.
2706 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2707 (xd_read_message): Make them static.
2708
4189ed40
CY
27092009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2710
2711 * term.c (turn_on_face): Allow simultaneously bold and dim
2712 terminal faces (Bug#3530).
2713
cd9b5e16
CY
27142009-06-27 Chong Yidong <cyd@stupidchicken.com>
2715
4e23bedb
CY
2716 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2717
cd9b5e16
CY
2718 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2719 truncation glyphs (Bug#3686).
2720
07cc3c35
GM
27212009-06-27 Glenn Morris <rgm@gnu.org>
2722
2723 * m/pmax.h: Restore file, with only netbsd portions.
2724
31fd7c5c 27252009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2726
cd9b5e16 2727 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2728
42d4a64f
KH
27292009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2730
2731 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2732 the arg FORCE_SYMBOL.
2733
930fe55b 27342009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2735
2736 * fontset.c (fontset_find_font): When a usable rfont_def is found
2737 in a fallback font-group, make it the first element of the group.
2738
57ebc3fd
CY
27392009-06-24 Chong Yidong <cyd@stupidchicken.com>
2740
2741 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2742
f084f942
KH
27432009-06-24 Kenichi Handa <handa@m17n.org>
2744
2745 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2746 set for C.
2747 (fontset_font): Record the availability of a font for C both in
2748 the realized fontsets of the current one and the default one.
2749
2f686c87
DN
27502009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2751
2752 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2753 conditional, it is always defined on AIX.
2754
666e158e
MB
27552009-06-23 Miles Bader <miles@gnu.org>
2756
2757 * window.c (Vrecenter_redisplay): New variable.
2758 (syms_of_window): Initialize it.
2759 (Qtty): New extern declaration.
2760 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2761
c6da7cd2
JM
27622009-06-23 Jim Meyering <meyering@redhat.com>
2763
1ac9108a
SM
2764 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2765 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2766 pointer dereferences are guaranteed to be valid.
c6da7cd2 2767
678dca3d
KH
27682009-06-23 Kenichi Handa <handa@m17n.org>
2769
74d75424
KH
2770 * emacs.c (main): Call init_font ().
2771
2772 * font.h (Vfont_log): Extern it.
2773 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2774
2775 * font.c (font_sort_entities, font_list_entities)
2776 (font_matching_entity, font_open_entity)
2777 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2778 (Vfont_log): Delete static.
2779 (font_log_env_checked): Delete this variable.
2780 (font_add_log): Don't check font_log_env_checked.
2781 (font_deferred_log): Check Vfont_log.
2782 (init_font): New function.
2783
678dca3d
KH
2784 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2785
2786 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2787
2788 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2789
2790 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2791
2792 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2793 (face_for_char): Don't call font_deferred_log here.
2794 (font_for_char): Likewise.
2795
8a668709
CY
27962009-06-22 Chong Yidong <cyd@stupidchicken.com>
2797
9a01ee33
CY
2798 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2799 rather than its background_width for drawing the overline and
2800 underline (Bug#489).
2801
2802 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2803 rather than its background_width for drawing the overline and
2804 underline (Bug#489).
ec7c9926
CY
2805 (xg_default_icon_file): New variable.
2806 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2807 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2808
8a668709
CY
2809 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2810 (load_overlay_strings): Remove externs.
2811 (fast_find_position): Function deleted.
2812 (mouse_face_from_buffer_pos): New function, based on
2813 fast_find_position. Correctly handle before-strings,
2814 display-strings, and after-strings (Bug#1220).
2815 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2816
4d4c02d8
CY
28172009-06-21 Chong Yidong <cyd@stupidchicken.com>
2818
1ac9108a 2819 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2820 (move_it_in_display_line_to, move_it_in_display_line_to)
2821 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2822
70243478
CY
28232009-06-21 Chong Yidong <cyd@stupidchicken.com>
2824
2825 * Branch for 23.1.
2826
13087e59
JR
28272009-06-21 Jason Rumney <jasonr@gnu.org>
2828
2829 * w32term.c (keyboard_codepage): New static variable.
2830 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2831 (w32_read_socket) [WM_CHAR]: Use it to decode character
2832 input (bug#3237).
2833 (w32_initialize): Initialize it.
2834 (codepage_for_locale): New function.
2835
4735b74e
KR
28362009-06-20 Ken Raeburn <raeburn@raeburn.org>
2837
2838 * process.c (status_message): Pass Faset index argument as a lisp
2839 object, so as to work with USE_LISP_UNION_TYPE.
2840
0e727afa
YM
28412009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2842
2843 * coding.c (Ffind_coding_systems_region_internal):
2844 Cache checked characters.
2845
cf299835
KH
28462009-06-18 Kenichi Handa <handa@m17n.org>
2847
1ac9108a 2848 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2849
90f20d94
AS
28502009-06-18 Andreas Schwab <aschwab@redhat.com>
2851
2852 * xdisp.c (redisplay_internal): Check that the frame is still
2853 live after redisplay of its windows.
2854 (redisplay_windows): Check that the window is still live.
2855
7f1faf1c
KH
28562009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2857
2858 * coding.c (detect_coding_utf_16): Fix previous change.
2859
cc13543e
KH
28602009-06-16 Kenichi Handa <handa@m17n.org>
2861
2862 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2863 UTF-16 by checking the dispersion of Eth and Oth bytes.
2864
977b85f4
AS
28652009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2866
2867 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2868
66bd43d1
KH
28692009-06-15 Kenichi Handa <handa@m17n.org>
2870
2871 * process.c (status_message): Fix previous change. Be sure to
2872 decode a localized string.
2873
cb5ca9c5
YM
28742009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2875
2876 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2877 add comment explaining why.
2878
ec7709ba 28792009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2880
ec7709ba 2881 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2882
4b7f335c
AR
28832009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2884
2885 * nsfont.m (ns_attribute_value): Remove.
2886 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2887 (ns_has_attribute): Shrink the normal range.
2888 (ns_findfonts): Don't worry about requested spec in determining
2889 need for synthItal.
e41820ee 2890 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2891
73b26103
SZ
28922009-06-14 Seiji Zenitani <zenitani@mac.com>
2893
2894 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2895
5753e4da
KH
28962009-06-11 Kenichi Handa <handa@m17n.org>
2897
2898 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2899 overhang for the static composition case.
2900
3561b671
KH
29012009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2902
5753e4da
KH
2903 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2904 overhang for the automatic composition case.
2905
3561b671
KH
2906 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2907 composition case.
2908
852bbd41
CY
29092009-06-10 Chong Yidong <cyd@stupidchicken.com>
2910
2911 * xdisp.c (get_next_display_element): When handling wrap-prefix
2912 and line-prefix, treat \n as a control character (bug#3502).
2913
9903d1e6
KH
29142009-06-10 Kenichi Handa <handa@m17n.org>
2915
2916 * font.c (font_parse_family_registry): Fix for one-char foundry.
2917 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2918
0bcbaaaa
CY
29192009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2920
2921 * process.c (status_message): Fix handling of multibyte signal
2922 string (Bug#3499).
2923
40aa3f13
JM
29242009-06-09 Jim Meyering <meyering@redhat.com>
2925
1f80c7e2
CY
2926 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2927 color name is missing.
40aa3f13 2928
72d51285
KH
29292009-06-09 Kenichi Handa <handa@m17n.org>
2930
2931 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2932 FROM-CODE and TO-CODE are codepoints of CHARSET.
2933
c1d04d84
AR
29342009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2935
2936 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2937
29382009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2939
2940 Changes to support :script/:lang/:otf in NS font driver.
2941 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2942 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2943 indicate not part of font driver interface, and change callers.
2944 (ns_get_family): Remove pointless null check.
2945 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2946 ns_spec_to_descriptor, ns_descriptor_to_entity.
2947 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2948 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2949 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2950 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2951 (ns_get_req_script, ns_accumulate_script_ranges)
2952 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2953 New functions.
2954 (nsfont_list, nsfont_match): Use ns_findfonts.
2955 (nsfont_open): Use font descriptor instead of traits.
2956 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2957 (dump_glyphstring): Rename to ns_dump_glyphstring.
2958
c7eb9816
AR
2959 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2960
c1d04d84
AR
2961 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2962
2963 * fontset.c (fontset_from_font): Remove NS-specific code.
2964
ec7709ba 29652009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2966
2967 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2968 nonactive windows.
2969
31fd7c5c 29702009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2971
1ac9108a 2972 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2973
68852c13 29742009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2975
2976 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2977
6756cd1d
CY
29782009-06-07 Chong Yidong <cyd@stupidchicken.com>
2979
2980 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2981 account for the overflowing of newlines into the last glyph on the
2982 display line (Bug#3482).
2983
28bf482a
DR
29842009-06-05 David Reitter <david.reitter@gmail.com>
2985
ec7709ba
JB
2986 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2987 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2988 Fns_selection_exists_p, Fns_selection_owner_p.
2989
fdb55376
JR
29902009-06-03 Jason Rumney <jasonr@gnu.org>
2991
2992 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2993 available. (Bug#3379)
2994
05129fbe
KH
29952009-05-29 Kenichi Handa <handa@m17n.org>
2996
1ac9108a
SM
2997 * coding.c (get_translation_table):
2998 Check Venable_character_translation.
05129fbe 2999
ec7709ba 30002009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3001
ec7709ba
JB
3002 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3003 (x_make_frame_visible): Move frame to front rather than calling
15891144 3004 ns_raise_frame().
ec7709ba 3005 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3006 isn't key window.
ec7709ba 3007 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3008 drawRect may be called by NSView even if the frame is hidden.
3009
ec7709ba
JB
3010 * nsfns.m (Fx_create_frame): Follow other ports in
3011 determining visibility; default to t. Ensure async_visible is set.
15891144 3012
21f73755
EZ
30132009-05-23 Eli Zaretskii <eliz@gnu.org>
3014
3015 * dired.c (Ffile_attributes): Doc fix.
3016
34001e41
CY
30172009-05-22 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3020
46306a17
SM
30212009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3022
3023 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3024 and xfont_scratch_props.
3025 (syms_of_xfont): Do it here instead.
3026 (xfont_find_ccl_program): Delete, unused.
3027 (xfont_open): Delete unused var `i'.
3028
ef6e0694
KH
30292009-05-21 Kenichi Handa <handa@m17n.org>
3030
3031 * fontset.c (Qlatin): Don't make it static.
3032
46306a17
SM
3033 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3034 New functions.
ef6e0694
KH
3035 (xfont_scripts_cache, xfont_scratch_props): New variables.
3036 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3037 (xfont_list_pattern): Argument changed. Callers changed.
3038 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3039 (xfont_list): Don't reject a font spec with :script property.
3040 (xfont_has_char): Fix setting of encoding.
3041 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3042 xfont_scratch_props.
3043
30442009-05-19 Kenichi Handa <handa@m17n.org>
3045
46306a17 3046 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3047 Callers changed.
3048
30492009-05-18 Kenichi Handa <handa@m17n.org>
3050
3051 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3052
ac71ced7
SM
30532009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3054
3055 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3056 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3057
1c6d1051
YM
30582009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3059
3060 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3061 (x_delete_terminal): Dissociate resource database from display and
3062 then call XrmDestroyDatabase before closing display.
3063
9b9b779c
AR
30642009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3065
3066 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3067 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3068 whether selected frame is viable before raising it (based on patch
3069 by David Reitter), and improve commentary.
3070 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3071
cccd42d5
KH
30722009-05-15 Kenichi Handa <handa@m17n.org>
3073
3074 * font.c (Ffont_spec): Check arguments.
3075
337fbd17
CY
30762009-05-14 Chong Yidong <cyd@stupidchicken.com>
3077
3078 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3079 weight when testing attributes (Bug#3282).
3080
47a6002f
JD
30812009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3082
3083 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3084 what we expect to get in the next ConfigureNotify event.
3085
9cb363db
YM
3086 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3087 before Xft one (Bug#1696).
3088
b9126609
CY
30892009-05-07 David Reitter <david.reitter@gmail.com>
3090
3091 * nsfns.m (Fx_display_planes): Compute bitplanes using
3092 NSBitsPerPixelFromDepth (Bug#3207).
3093
27a69fd9
CY
30942009-05-10 Chong Yidong <cyd@stupidchicken.com>
3095
3096 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3097
00f37552
TTN
30982009-05-10 Ulrich Mueller <ulm@gentoo.org>
3099
3100 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3101
2d82a920
DR
31022009-05-07 David Reitter <david.reitter@gmail.com>
3103
ec7709ba
JB
3104 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3105 Respect mouse face background.
2d82a920 3106
46b0d52d
DR
31072009-05-07 David Reitter <david.reitter@gmail.com>
3108
ec7709ba
JB
3109 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3110 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3111 in ns_update_begin and ns_update_end.
3112
ce1b23bb
SM
31132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3114
5996e1b7
SM
3115 * nsfns.m (ns_get_screen): Rewrite.
3116 Don't presume selected-frame is of type `ns'.
3117
ba98e3a0
SM
3118 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3119 all drivers.
3120
ce1b23bb
SM
3121 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3122
bcda200f
YM
31232009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3124
3125 * keyboard.h (add_user_signal): Fix typo in extern.
3126
3127 * lisp.h (add_user_signal): Remove extern.
3128
3129 * unexelf.c (unexec): Consider a section to precede the .bss section
3130 if its addresses overlap that of .bss.
3131 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3132 instead of dumping process.
3133
864660a2
SM
31342009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3135
3136 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3137
50da4e56
SM
31382009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3139
3140 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3141
51520a1a
DN
31422009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3143
3144 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3145 any statements.
3146
409ea3a1
AS
31472009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3148
59c4c60f
AS
3149 * process.c (read_process_output): Make sure the current buffer is
3150 always restored.
3151
409ea3a1
AS
3152 * coding.c (record_conversion_result): Don't modify
3153 Vlast_code_conversion_error for successful result.
3154 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3155
56f00ed2
KH
31562009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3157
3158 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3159 (load_charset_map): Remove unnecessary code.
56f00ed2 3160
4491c9d2
DR
31612009-04-30 David Reitter <david.reitter@gmail.com>
3162
35f5b128 3163 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3164 through f24.
3165
6970f632
CY
31662009-04-30 Chong Yidong <cyd@stupidchicken.com>
3167
3168 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3169
3170 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3171 face_at_buffer_position.
3172 (face_before_or_after_it_pos, get_next_display_element)
3173 (note_mouse_highlight): Update face_at_buffer_position call.
3174
3175 * term.c (term_mouse_highlight):
3176 * msdos.c (IT_note_mouse_highlight):
3177 * fontset.c (Finternal_char_font):
35f5b128 3178 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3179
3180 * dispextern.h (face_at_buffer_position): Update prototype.
3181
0c616f63
KH
31822009-04-30 Kenichi Handa <handa@m17n.org>
3183
35f5b128 3184 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3185
ad3aaf33
AS
31862009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3187
3188 * callproc.c (Fcall_process): Fix GC protection. Make sure
3189 current buffer is always restored.
3190
c3c963a0
YM
31912009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3192
3193 * atimer.c (init_atimer): Also clear stopped_atimers.
3194
3195 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3196
7e3386cb
YM
3197 * process.c (create_process): Clean up merger residues of
3198 2008-07-17 change.
3199
91f68422
CY
32002009-04-29 Ulrich Mueller <ulm@gentoo.org>
3201
3202 * lread.c (Vread_circle): New variable.
3203 (read1): Disable recursive read if Vread_circle is nil.
3204
24b34550
KH
32052009-04-29 Kenichi Handa <handa@m17n.org>
3206
3207 * fontset.h (set_default_ascii_font): Delete extern.
3208
3209 * fontset.c (set_default_ascii_font): Delete this unused function.
3210
3211 * frame.c (x_set_font): When ARG is a font-object, check if the
3212 font-object matches with the ASCII font-spec of the frame's
9c358bda 3213 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3214
77bf07e1
AS
32152009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3216
3217 * fns.c (Flocale_info): Protect vector from GC during decoding.
3218
3219 * process.c (Fstart_process): Protect argv strings from GC during
3220 encoding.
3221
2c55aacf
AS
32222009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3223
3224 * sysdep.c: Include <ctype.h>.
3225
b892d3c9
DR
32262009-04-27 David Reitter <david.reitter@gmail.com>
3227
35f5b128 3228 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3229 Remove commented-out code.
3230
9d0644c4
JB
32312009-04-26 Johan Bockgård <bojohan@gnu.org>
3232
3233 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3234
b7053016
JR
32352009-04-25 Jason Rumney <jasonr@gnu.org>
3236
3237 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3238
4e8231f3
YM
32392009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3240
3241 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3242 Swap bytes in short integer if fringe bitmap width > 8.
3243
493dcf2c
KH
32442009-04-23 Kenichi Handa <handa@m17n.org>
3245
3246 * xfaces.c (Fx_list_fonts): If a font size is specified in
3247 PATTERN, set it in returned scalable fonts.
3248
401e9e57
CY
32492009-04-22 Chong Yidong <cyd@stupidchicken.com>
3250
708e05dc
CY
3251 * keyboard.c (Fset_input_meta_mode): Doc fix.
3252
3253 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3254
1ac9108a 3255 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3256
3257 * coding.c (Fterminal_coding_system): Doc fix.
3258
3259 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3260 (Fx_display_pixel_height, Fx_display_planes)
3261 (Fx_display_color_cells, Fx_server_max_request_size)
3262 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3263 (Fx_display_mm_height, Fx_display_mm_width)
3264 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3265 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3266 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3267 (check_x_display_info): Handle terminal objects instead of
3268 terminal ids.
3269
401e9e57
CY
3270 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3271 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3272 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3273 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3274
df80c7f0
KH
32752009-04-21 Kenichi Handa <handa@m17n.org>
3276
5a8f12af 3277 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3278 (font_score): Check AVGWIDTH too.
908567ef 3279
df80c7f0
KH
3280 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3281 worst case.
1ac9108a
SM
3282 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3283 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3284
705af33f
JR
32852009-04-19 Jason Rumney <jasonr@gnu.org>
3286
3287 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3288 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3289
3290 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3291 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3292 get_phys_cursor_geometry.
3293
b71ac3dd 3294 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3295 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3296 using get_phys_cursor_geometry.
3297
3298 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3299 correctly calculated.
3300
dc2933eb
JD
33012009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3302
1ac9108a
SM
3303 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3304 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3305 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3306 is deprecated.
3307
973e7849
AS
33082009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3309
3310 * font.c (font_put_frame_data): Use xfree instead of free.
3311
314d66f4
JB
33122009-04-17 Juanma Barranquero <lekktu@gmail.com>
3313
3314 * w32font.c (Qja, Qko): Remove declarations.
3315 (syms_of_w32font): Don't DEFSYM them.
3316
cf702558
CY
33172009-04-17 Chong Yidong <cyd@stupidchicken.com>
3318
3319 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3320
3321 * font.h (Qja, Qko): Extern them.
3322
3323 * ftfont.c (Qja, Qko): Remove declarations.
3324
3325 * xfont.c (Qja, Qko): Remove declarations.
3326
b50504f5
KH
33272009-04-17 Kenichi Handa <handa@m17n.org>
3328
bde25748
KH
3329 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3330 string from a vector to handle Latin-1 characters correctly.
3331
b50504f5
KH
3332 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3333 entity even if the cache hits.
3334
f4646fff
AS
33352009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3336
3337 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3338 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3339
e7deaab0
AS
3340 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3341 * lisp.h: Adjust prototypes.
3342
0a0e7d49
CY
33432009-04-16 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3346 change (Bug#3003).
3347
3c908a57
KH
33482009-04-16 Kenichi Handa <handa@m17n.org>
3349
1ac9108a 3350 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3351
3352 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3353 adstyle.
3354
3355 * ftfont.c (Qja, Qko): Don't make them static.
3356 (enum ftfont_cache_for): New enum.
3357 (fc_charset_table): Undo the previous change.
3358 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3359 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3360 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3361 non-scarable font, try to get AVERAGE_WIDTH.
3362 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3363 Change ft_face_cache from a list of a hash-table. Don't check
3364 `ja' and `ko' adstyle here.
3365 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3366 FTFONT_CACHE_FOR_CHARET.
3367 (ftfont_get_charset): Undo the previous change.
1ac9108a 3368 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3369 (ftfont_close): Likewise.
3370 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3371
3372 * font.c (font_sort_entites): Change the meaning of the arg
3373 BEST-ONLY. Don't optimize for VEC of lenght 1.
3374 (font_select_entity): Just return the value of font_sort_entites.
3375
3376 * xfaces.c (merge_face_vectors): Reflect font properties in
3377 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3378 font_clear_prop if a face attribute doesn't change.
3379
3c908a57
KH
3380 * charset.h (charset_ksc5601): Extern it.
3381
3382 * charset.c (charset_ksc5601): New variable.
3383 (Fdefine_charset_internal): Set charset_ksc5601.
3384 (init_charset_once): Initialize charset_ksc5601 to -1.
3385
d65859c3
DN
33862009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3387
3388 * fileio.c (history_delete_duplicates): Remove unused declaration.
3389
3390 * callint.c (history_delete_duplicates): New declaration.
3391 (Fcall_interactively): Remove command history duplicates when
3392 history_delete_duplicates is true.
3393
3ba010e5
EZ
33942009-04-14 Eli Zaretskii <eliz@gnu.org>
3395
3396 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3397
06f19b91
KH
33982009-04-14 Kenichi Handa <handa@m17n.org>
3399
3400 * font.c (Ffont_info): Fix docstring. Fix the second element of
3401 the returned value (bug#2949).
3402
2cce8bfc
CY
34032009-04-14 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3406
d156542d
KH
34072009-04-14 Kenichi Handa <handa@m17n.org>
3408
3409 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3410 encoding charset is ascii_compatible.
3411
3412 * charset.c (Fdefine_charset_internal): Make charset
3413 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3414 code_offset is 0, and covers all ASCII characters.
3415
86fa089e
SM
34162009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3417
3418 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3419 (ns_string_to_pasteboard_internal):
3420 * nsmenu.m (process_dialog):
3421 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3422 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3423 * lisp.h (Fx_load_color_file): Declare.
3424
a8a3728b
KH
34252009-04-13 Kenichi Handa <handa@m17n.org>
3426
1ac9108a 3427 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3428 (font_select_entity): Suppress the code to optimize for the same
3429 kind of fonts.
3430 (font_load_for_lface): Get a font that supports at least ASCII
3431 characters.
3432
3433 * ftfont.c (Qja, Qko): New variables.
3434 (fc_charset_table): Delete uniquifier data for iso8859-1.
3435 (ftfont_get_latin1_charset): New function.
3436 (get_adstyle_property): New function.
3437 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3438 bitmap fonts.
3439 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3440 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3441 `ko' or `ja'.
3442 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3443 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3444 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3445 property.
3446 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3447 (syms_of_ftfont): DEFSYM Qja and Qko.
3448
483670b5
KH
34492009-04-09 Kenichi Handa <handa@m17n.org>
3450
12b55765
KH
3451 * charset.c (map_charset_chars): For a charset of `superset'
3452 method, fix calculation of code range.
3453
483670b5
KH
3454 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3455 from the list of extra properties.
3456 (font_clear_prop): Be sure to delete `:name' font property.
3457
57d3b93b
KH
34582009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3459
b4b2c2ca
YM
3460 * dispnew.c (redraw_overlapping_rows): Fix detection of
3461 overlapping for topmost and bottommost rows.
3462
1ac9108a 3463 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3464
472c3609
JR
34652009-04-06 Jason Rumney <jasonr@gnu.org>
3466
3467 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3468
ab193662
KH
34692009-04-06 Kenichi Handa <handa@m17n.org>
3470
3471 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3472
3473 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3474
0c26f026
KH
34752009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3476
3477 * ftfont.c (ftfont_open): Fix checking of the return value of
3478 FT_Load_Char. Fix setting font->underline_thickness.
3479
e173bbce
CY
34802009-04-04 Chong Yidong <cyd@stupidchicken.com>
3481
3482 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3483 (Fterminal_parameters, Fterminal_parameter)
3484 (Fset_terminal_parameter): In doc string, refer to terminal
3485 objects rather than terminal ids.
3486
693a2698
EZ
34872009-04-04 Eli Zaretskii <eliz@gnu.org>
3488
3489 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3490 ret_lim_data. (Bug#2867)
3491
d5221487
CY
34922009-04-03 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3495 so they don't get wider than the window, matching 2006-01-23
3496 change to the partner function in xdisp.c (Bug#2800).
3497
223509a3
KH
34982009-04-03 Kenichi Handa <handa@m17n.org>
3499
3500 * print.c (print_object): Make each lowest sub_char_table start a
3501 new line (Bug#2866).
3502
74fcd0b1
KH
35032009-04-02 Kenichi Handa <handa@m17n.org>
3504
3505 * fontset.c (fontset_font): Record no-font when a fontset
3506 explicitly tells not to try another font-specs.
3507
c542407d
SM
35082009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3509
3510 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3511
e3869731
KH
35122009-03-30 Kenichi Handa <handa@m17n.org>
3513
d8d2f142
KH
3514 * fontset.c (fontset_from_font): Specify only registry in a
3515 font-spec for all characters supported by that registry.
3516
e3869731
KH
3517 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3518 even if HAVE_M17N_FLT is not defined.
3519
5da5f805
CY
35202009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3521
3522 * ftfont.c: Conditionalize prototyping and use of
3523 ftfont_variation_glyphs.
3524
ab226c50
SM
35252009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3526
9628fed7
SM
3527 * frame.c (delete_frame): Work around compiler bug.
3528
3529 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3530 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3531 Some more EMACS_INT.
3532 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3533
3534 * xdisp.c (dump_glyph): Fix typo.
3535
ae19ba7c
SM
3536 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3537 (adjust_markers_gap_motion, adjust_markers_for_delete)
3538 (adjust_markers_for_insert, adjust_point)
3539 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3540 (make_gap, copy_text, count_size_as_multibyte, insert)
3541 (insert_and_inherit, insert_before_markers)
3542 (insert_before_markers_and_inherit, insert_1)
3543 (count_combining_before, count_combining_after, insert_1_both)
3544 (insert_from_string, insert_from_string_before_markers)
3545 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3546 (insert_from_buffer_1, adjust_after_replace)
3547 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3548 (replace_range_2, del_range, del_range_1, del_range_byte)
3549 (del_range_both, del_range_2, modify_region)
3550 (prepare_to_modify_buffer, signal_before_change)
3551 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3552 for buffer positions and sizes.
3553 * lisp.h: Adjust prototypes accordingly.
3554
3555 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3556 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3557 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3558
ab226c50
SM
3559 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3560
46dfb8fb
JD
35612009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3562
3563 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3564 lines and columns so we keep the same pixel height and width.
3565
3566 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3567 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3568 (x_handle_net_wm_state): New function to update frame parameter
3569 fullscreen.
3570 (x_term_init): Initialize atoms for _NET_WM_STATE.
3571
3572 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3573
d347e494
SM
35742009-03-27 Kevin Ryde <user42@zip.com.au>
3575
3576 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3577 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3578 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3579 (Fgpm_mouse_stop): Pass that new parameter.
3580 * termhooks.h (close_gpm): Adjust prototype.
3581
84db11d6
SM
35822009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3583
c95a5008
SM
3584 * lisp.h (Fx_focus_frame): Declare.
3585
84db11d6
SM
3586 * callint.c (Fcall_interactively): For '^' just delegate the work to
3587 handle-shift-selection.
3588 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3589
0a1958d6
CY
35902009-03-24 Chong Yidong <cyd@stupidchicken.com>
3591
0bfdff23
CY
3592 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3593
0a1958d6
CY
3594 * data.c (Qinteractive_form): New variable.
3595 (Finteractive_form): Use it.
3596
3597 * eval.c (Fcommandp): Use Qinteractive_form.
3598
58aec0d6
JR
35992009-03-24 Jason Rumney <jasonr@gnu.org>
3600
3601 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3602 Calculate total size precisely. Decode environment variables
3603 before substituting. (Bug#38)
3604
553dd618
KH
36052009-03-24 Kenichi Handa <handa@m17n.org>
3606
3607 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3608 encoding (Bug#2722).
553dd618 3609
c39ea606
JD
36102009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3611
3612 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3613 that gdpy is set.
3614
bc9b2b5e
AM
36152009-03-22 Alan Mackenzie <acm@muc.de>
3616
3617 * callint.c (Finteractive): Clarify the doc string - even
3618 promptless elements need \n separators.
3619
9f995a76
JR
36202009-03-22 Jason Rumney <jasonr@gnu.org>
3621
3622 * w32term.c (syms_of_w32term): Doc fix for
3623 x-use-underline-position-properties.
3624
22749e9a
EZ
36252009-03-21 Eli Zaretskii <eliz@gnu.org>
3626
3627 * w32.c (getpwuid): Change argument type to unsigned.
3628 (struct w32_id): Change type of `rid' member to unsigned.
3629 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3630 argument ID to unsigned. All callers changed.
3631 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3632
e00553bf
EZ
36332009-03-20 Eli Zaretskii <eliz@gnu.org>
3634
3635 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3636 negative, produce a float value.
3637
3638 * dired.c (make_uid, make_gid): New functions.
3639 (Ffile_attributes): Use them to avoid negative UID and GID.
3640
f761d6b6
JB
36412009-03-20 Juanma Barranquero <lekktu@gmail.com>
3642
3643 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3644 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3645 Fix typos in docstrings.
3646
d507f8d7
KH
36472009-03-19 Kenichi Handa <handa@m17n.org>
3648
3649 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3650 changed, use font_load_for_lface to get a new font object.
3651 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3652
3653 * frame.c (x_set_font): Handle the case that ARG is a cons.
3654
c68845e0
GM
36552009-03-19 Glenn Morris <rgm@gnu.org>
3656
3657 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3658
bfa49dd1
CY
36592009-03-19 Chong Yidong <cyd@stupidchicken.com>
3660
3661 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3662
8458d4c1
KH
36632009-03-19 Kenichi Handa <handa@m17n.org>
3664
3665 * charset.c (load_charset_map_from_file): When a mapfile can't be
3666 loaded, signal an error.
3667
78e7d1fe
EZ
36682009-03-18 Eli Zaretskii <eliz@gnu.org>
3669
3670 * dired.c (Ffile_attributes): Make sure UID and GID are always
3671 positive, even if the value is too large for a positive EMACS_INT.
3672 Doc fix.
3673
3674 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3675
5da9fdfa
YM
36762009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3677
3678 * xmenu.c (xdialog_show): Move Fredisplay call ...
3679 (Fx_popup_dialog): ... here.
3680
7519c40d
SM
36812009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3682
3683 * dired.c (file_name_completion): Disable the first optimization just
3684 installed, since it is not implemented correctly.
3685
2cd298e2
SM
36862009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3687
3688 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3689 only if the entry can affect bestmatch.
2cd298e2
SM
3690 Stop the search early, as Ftry_completion already does.
3691
48d37adf
CY
36922009-03-17 Chong Yidong <cyd@stupidchicken.com>
3693
e10c9c93 3694 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3695
9286b16a
CY
36962009-03-15 Chong Yidong <cyd@stupidchicken.com>
3697
3698 * keyboard.c (parse_menu_item): Don't display remappings as menu
3699 equivalent bindings (Bug#788).
3700
f7b146dc
JR
37012009-03-15 Jason Rumney <jasonr@gnu.org>
3702
3703 * w32term.h (WM_EMACS_PAINT): New message.
3704 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3705 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3706 before passing to lisp thread. (Bug#950)
3707
f761d6b6 37082009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3709
d93f9575
CY
3710 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3711 variable as it was never reset.
3712 (ns_term_init): Remove initialization of Lisp-settable defaults
3713 and ns_expand_space.
3714 (-setPanelFromDefaultValues): Remove ns_expand_space.
3715 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3716 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3717 i.e. no additional spacing, similar to Carbon port.
3718
d93f9575
CY
3719 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3720 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3721
305018ec
JD
37222009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3723
3724 * sound.c (alsa_configure): Remove call to deprecated
3725 snd_pcm_sw_params_set_xfer_align.
3726
f761d6b6 37272009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3728
3729 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3730 after clicking in a detached tool bar.
3731 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3732
46e722a9
SM
37332009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3734
348db3dd
SM
3735 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3736 int/Lisp_Object mixup).
46e722a9 3737
a3d16f39
KH
37382009-03-13 Kenichi Handa <handa@m17n.org>
3739
3740 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3741 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3742 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3743 (set_fontset_font): Change ARG to a vector. Handle range_list in
3744 ARG correctly.
3745 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3746 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3747 the above change.
3748 (fontset_from_font): Fix previous change.
fe24f56a 3749 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3750 entry. If FONTSET is the default fontset, don't set the extra
3751 slot of the returning char-table.
3752
b066e6b6
JB
37532009-03-12 Juanma Barranquero <lekktu@gmail.com>
3754
3755 * nsfns.m (Fx_close_connection): Doc fix.
3756 (Fns_do_applescript): Reflow docstring.
3757 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3758 (Fx_display_pixel_width, Fx_display_pixel_height)
3759 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3760 Fix typos in docstrings.
3761 (Fns_set_alpha): Fix typos in error messages.
3762
d472514e 37632009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3764
d472514e 3765 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3766 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3767 were used for such events.
3768
d472514e
JB
3769 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3770 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3771
d472514e 3772 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3773 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3774
fb930676
KH
37752009-03-11 Kenichi Handa <handa@m17n.org>
3776
ff85581a
KH
3777 * font.h (font_open_by_spec): Extern it.
3778
c50b7e98
KH
3779 * font.c (font_open_by_spec): New function.
3780 (font_open_by_name): Use font_open_by_spec.
3781
fb930676
KH
3782 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3783 fontset of the frame.
3784
3785 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3786 modify the default font of frames that use this fontset.
3787 (num_auto_fontsets): New variable.
3788 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3789 name. Be sure to set FONTSET_ASCII to the correct font name.
3790 (update_auto_fontset_alist): New function.
3791
df4e8455
JB
37922009-03-11 Juanma Barranquero <lekktu@gmail.com>
3793
3794 * makefile.w32-in: Update dependencies.
3795
0a375797
AR
37962009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3797
3798 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3799
61313fa3
SM
38002009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3801
3802 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3803
b55103fb
CY
38042009-03-10 Chong Yidong <cyd@stupidchicken.com>
3805
3806 * lread.c (Feval_buffer): Doc fix.
3807
dde2559c
KH
38082009-03-09 Kenichi Handa <handa@m17n.org>
3809
3810 * charset.c (Qfile_name_handler_alist): Extern it.
3811 (load_charset_map_from_file): Temporarily bind
3812 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3813
df4e8455 38142009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3815
47f588bb
GM
3816 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3817 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3818
4ddf94bd
AR
38192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3820
4c9bdfc2
AR
3821 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3822 (x_set_window_size): Change back to calculated method of setting
3823 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3824 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3825 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3826
fe41ae9e
AR
3827 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3828
4c9bdfc2
AR
3829 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3830 accelerator in parens under GNUstep.
3831
825d0875
KH
38322009-03-06 Kenichi Handa <handa@m17n.org>
3833
3834 These changes are to detect incorrect composition sequence without
f3b3be74 3835 looking ahead the source. (Bug#2370)
825d0875
KH
3836
3837 * coding.h: Include "composite.h".
3838 (enum compisition_state): New enum.
3839 (struct compisition_status): New struct.
3840 (struct iso_2022_spec): New member cmp_status.
3841 (struct emacs_mule_spec): New struct.
3842 (struct coding_system): New members ctext_extended_segment_len and
3843 embedded_utf_8. Change the union member
3844 spec.emacs_mule_full_support to spec.emacs_mule.
3845
3846 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3847 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3848 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3849 (ADD_COMPOSITION_DATA): New arg nbytes.
3850 (emacs_mule_char): New arg cmp_status.
3851 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3852 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3853 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3854 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3855 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3856 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3857 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3858 (EMACS_MULE_COMPOSITION_END): New macro.
3859 (emacs_mule_finish_composition): New function.
3860 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3861 (decode_coding_emacs_mule): Avoid long looking ahead while
3862 handling composition.
3863 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3864 (ENCODE_COMPOSITION_RULE): New macro.
3865 (finish_composition): New function.
3866 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3867 (DECODE_COMPOSITION_START): New implementation.
3868 (DECODE_COMPOSITION_END): Likewise.
3869 (STORE_COMPOSITION_RULE): New macro.
3870 (decode_coding_iso_2022): Avoid long looking ahead while handling
3871 composition, CTEXT extended segment, and embedded UTF-8.
3872 (setup_coding_system): For a coding of type iso-2022, reset
3873 CODING_ISO_EXTSEGMENT_LEN (coding) and
3874 CODING_ISO_EMBEDDED_UTF_8 (coding).
3875 (get_translation): Delete arguments last_block, from_nchars,
3876 to_nchars. Callers changed.
3877 (produce_chars): Don't modify charbuf. Adjusted for the change of
3878 get_translation.
98a326f7 3879 (produce_composition): Adjust for the new annotation sequence.
825d0875 3880 (handle_composition_annotation): Likewise.
98a326f7 3881 (consume_chars): Adjust for the change of get_translation.
825d0875 3882
ccbc4452
AR
38832009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3884
4ddf94bd 3885 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3886
988a7ddb
KH
38872009-03-05 Kenichi Handa <handa@m17n.org>
3888
3889 * font.c (font_select_entity): New function.
3890 (font_find_for_lface): Use font_select_entity to select a font.
3891
3892 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3893 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3894 font with C restriction.
3895
98a326f7 38962009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3897
be1bce46 3898 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3899
10ea2b82
JR
39002009-03-04 Jason Rumney <jasonr@gnu.org>
3901
2c93b248 3902 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3903 characters that have already been read. (Bug#2569)
2c93b248 3904
10ea2b82
JR
3905 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3906 Log an error message if check_image_size failed.
3907 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3908 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3909
71a0c011
EZ
39102009-03-02 Eli Zaretskii <eliz@gnu.org>
3911
3912 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3913 when decoding process output.
3914
2f63bba8
RS
39152009-03-01 Richard M Stallman <rms@gnu.org>
3916
3917 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3918
3919 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3920
0a9564cb
EZ
39212009-02-28 Eli Zaretskii <eliz@gnu.org>
3922
3923 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3924 (decode_coding_emacs_mule, decode_coding_iso_2022)
3925 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3926 (decode_coding_raw_text, decode_coding_charset)
3927 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3928 Honor inhibit-eol-conversion. (Bug #2186)
3929
449148b3
JR
39302009-02-28 Jason Rumney <jasonr@gnu.org>
3931
3932 * coding.c (detect_coding_charset): If not checking latin extra,
3933 fail on characters between 0x80 and 0xA0. (Bug#2354)
3934
a4aee864
EZ
39352009-02-28 Eli Zaretskii <eliz@gnu.org>
3936
3937 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3938 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3939
d88bee5a
GM
39402009-02-27 Glenn Morris <rgm@gnu.org>
3941
3942 * callint.c (Finteractive): Doc fix.
3943
a808f22d
KH
39442009-02-27 Kenichi Handa <handa@m17n.org>
3945
3946 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3947
caf8d60c
CY
39482009-02-27 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * font.c (font_style_to_value): Set value for unknown symbols to
3951 100 instead of 255.
b61137ea
CY
3952 (weight_table, slant_table, width_table): Treat "unspecified" as
3953 the default value.
caf8d60c 3954
1a0de25c
JB
39552009-02-26 Juanma Barranquero <lekktu@gmail.com>
3956
3957 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3958
8fc45744
JB
39592009-02-25 Juanma Barranquero <lekktu@gmail.com>
3960
107bd7d1
JB
3961 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3962 error as soon as a recursive load is detected.
8fc45744 3963
f097e223
AR
39642009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3965
3966 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3967 before caching.
3968
8810a12f
KH
39692009-02-24 Kenichi Handa <handa@m17n.org>
3970
3971 * fontset.c (fontset_find_font): Fix the condition for checking
3972 unavailable font.
3973
2c7d1565
GM
39742009-02-24 Glenn Morris <rgm@gnu.org>
3975
3976 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3977 whitespace that confuses documentation.
3978
a20878b6
MB
39792009-02-23 Miles Bader <miles@gnu.org>
3980
3981 * process.c (Flist_system_processes, Fprocess_attributes)
3982 (syms_of_process): Rename `system-process-attributes' to
3983 `process-attributes'.
3984
b3b58c01
AS
39852009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3986
1b3b981b
AS
3987 * coding.h (struct coding_system): Make safe_charsets a pointer to
3988 unsigned char.
3989 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3990 being 255.
3991 (SAFE_CHARSET_P): Likewise.
3992 (setup_iso_safe_charsets): Properly setup safe_charsets.
3993 (Fdefine_coding_system_internal): Likewise.
3994 (setup_coding_system): Likewise. Remove unneeded casts.
3995 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3996 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3997 unneeded casts.
3998
b3b58c01
AS
3999 * insdel.c (del_range_2): Don't modify gap contents when called
4000 from decode_coding_object. (Bug#1809)
4001
0b6f228c
CY
40022009-02-21 Chong Yidong <cyd@stupidchicken.com>
4003
4004 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4005 Qfont_object.
4006 (Ftype_of): Recognize font objects.
4007
4008 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4009
4010 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4011 moved to data.c.
4012
52f8870b
AR
40132009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4014
4015 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4016 async_iconified. Based on a patch by Christian Lynbech
4017 <christian.lynbech@tieto.com>.
4018 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4019
7087d5e9
GM
40202009-02-20 Glenn Morris <rgm@gnu.org>
4021
4022 * syntax.c (Fskip_chars_forward): Fix doc typo.
4023
41d2ceef
CY
40242009-02-20 Chong Yidong <cyd@stupidchicken.com>
4025
4026 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4027
1a3b7ca6
CY
40282009-02-19 Chong Yidong <cyd@stupidchicken.com>
4029
4030 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4031
73cce38d
KH
40322009-02-19 Kenichi Handa <handa@m17n.org>
4033
4034 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4035 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4036
a51092ee
DN
40372009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4038
4039 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4040
c423ecca
KH
40412009-02-18 Kenichi Handa <handa@m17n.org>
4042
4043 * font.c (font_check_otf_features): Fix handling of `nil' element.
4044 (Ffont_spec): Describe :lang and :otf in the docstring.
4045
4c1958f4
AS
40462009-02-16 Andreas Schwab <schwab@suse.de>
4047
4048 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4049 string.
4050
5704f39a
KH
40512009-02-16 Kenichi Handa <handa@m17n.org>
4052
4053 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4054 (Bug#1723)
5704f39a 4055
8f0085aa
CY
40562009-02-14 Chong Yidong <cyd@stupidchicken.com>
4057
a057d86a 4058 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4059
4060 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4061 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4062
aff01dd9
EZ
40632009-02-14 Eli Zaretskii <eliz@gnu.org>
4064
4065 * msdos.c (MAX_SCREEN_BUF): New macro.
4066 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4067 Encode the entire run of glyphs sharing the same face, instead of
4068 doing that one glyph at a time (fixes a bug with displaying
4069 double-size characters).
4070
ba301db3
AR
40712009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4072
4073 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4074
4075 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4076 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4077 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4078
4079 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4080 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4081
51d861de
SM
40822009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4083
ac146f82 4084 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4085 invisible areas.
4086
7fed8996
JR
40872009-02-12 Jason Rumney <jasonr@gnu.org>
4088
631ea4fb
JR
4089 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4090 (add_font_entity_to_list): Call check_face_name even when family
4091 is unspecified.
4092
cb4a3e42
JR
4093 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4094 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4095 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4096
7fed8996 4097 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4098 raster fonts. (Bug#2219)
7fed8996 4099
895416e3
KH
41002009-02-12 Kenichi Handa <handa@m17n.org>
4101
4102 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4103 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4104 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4105 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4106 (find_automatic_composition): While looking forward and backward,
4107 check static composition. Fix where to stop looking forward.
4108 (composition_adjust_point): Fix checking of static composition.
4109 (Fcomposition_get_gstring): Pay attention to
1dacf998 4110 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4111
4112 * lisp.h (fast_looking_at): Extern it.
4113
4114 * search.c (fast_looking_at): New function.
4115
51d861de 4116 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4117 <struct glyph>.u.cmp.to.
4118 (append_composite_glyph): Likewise.
4119
51d861de 4120 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4121 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4122 composition.
51d861de 4123 (append_composite_glyph): Adjust for the change of
895416e3
KH
4124 <strcut glyph>.u.cmp.to.
4125
8510724d
JB
41262009-02-11 Juanma Barranquero <lekktu@gmail.com>
4127
4128 * casetab.c (init_casetab_once):
4129 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4130 * font.c (font_update_lface):
4131 * fontset.c (Fnew_fontset):
4132 * ftfont.c (ftfont_drive_otf):
4133 * xfont.c (xfont_open):
4134 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4135
294fa707
SM
41362009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4137
4138 * fileio.c (Fwrite_region): !NILP -> CONSP.
4139
b5bfebec
AS
41402009-02-10 Andreas Schwab <schwab@suse.de>
4141
4142 * process.c (send_process): Properly relocate pointer into data
adab88bd 4143 when using encoded data. (Bug#2272)
b5bfebec 4144
cb84a2be
KH
41452009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4146
4147 * coding.c (detect_coding_charset): Fix previous change.
4148
89e09428
JR
41492009-02-08 Jason Rumney <jasonr@gnu.org>
4150
4151 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4152 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4153
4470a277
AS
41542009-02-07 Andreas Schwab <schwab@suse.de>
4155
4156 * unexelf.c (unexec): Fix error message.
4157
3175b12a
AR
41582009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4159
4160 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4161 when modal window is active. (Bug #2152)
3175b12a
AR
4162 (applicationShouldTerminate:): Remove now-unneeded while loop
4163 around NSRunAlertPanel.
4164
4165 * nsmenu.m (popupSession): New file-global variable.
4166 (pop_down_menu): End the popupSession before closing dialog.
4167 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4168 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4169 don't query NSApp for events (just sleep instead).
4170
8434d0b8
EZ
41712009-02-07 Eli Zaretskii <eliz@gnu.org>
4172
51d861de
SM
4173 * coding.c (syms_of_coding) <translation-table-for-input>:
4174 Modify doc string to discourage use for character code unification.
8434d0b8 4175
aa82edfd
CY
41762009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4177
4178 * atimer.c (run_timers): Update pending_atimers.
4179
2d283c7c
CY
41802009-02-06 Chong Yidong <cyd@stupidchicken.com>
4181
eb306cab
CY
4182 * image.c (svg_load_image): Fix last change.
4183
2d283c7c
CY
4184 * xfns.c (Fx_create_frame): Signal an error if no font is
4185 found (Bug#2147).
4186
4d8e170e
JB
41872009-02-05 Juanma Barranquero <lekktu@gmail.com>
4188
4189 * character.c (syms_of_character) <script-representative-chars>:
4190 Fix typo in docstring.
4191
c96169a0
AR
41922009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4193
4194 * nsmenu.m (pop_down_menu): New function.
4195 (ns_popup_dialog): Call it on unwind.
4196 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4197 call timer_check() (Bug#2154).
4198 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4199 handling_signal is set.
4200 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4201
31fd7c5c 4202 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4203
4204 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4205
4206 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4207
51d861de
SM
4208 * keyboard.c (poll_for_input_1, handle_async_input):
4209 Set handling_signal under HAVE_NS.
c96169a0 4210
aacd8ba1
GM
42112009-02-04 Glenn Morris <rgm@gnu.org>
4212
4213 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4214
4cb75c4b
KH
42152009-02-04 Kenichi Handa <handa@m17n.org>
4216
4217 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4218
4219 * charset.c (Fchar_charset): New optional arg restriction.
4220
4221 * coding.h (coding_system_charset_list): Extern it.
4222
4223 * coding.c (coding_system_charset_list): New function.
4224
4225 * composite.c: Include coding.h and termhooks.h.
4226 (composition_gstring_p): Fix for the terminal case.
4227 (composition_gstring_width): Likewise.
4228 (fill_gstring_body): Likewise.
4229 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4230 the frame.
4231 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4232 is within a composition.
867d4bb3 4233 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4234
4235 * term.c (encode_terminal_code): Fix handling of composition.
4236 (produce_composite_glyph): For static composition, get pixel_width
4237 from struct composition.
4238
826ba17e
AS
42392009-02-02 Andreas Schwab <schwab@suse.de>
4240
4241 * unexelf.c (unexec): Handle unaligned bss offset.
4242
8ad093db
AR
42432009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4244
4245 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4246 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4247
8ad093db
AR
4248 * keyboard.c (handle_interrupt): Don't call
4249 quit_throw_to_read_char() under NS.
d0a76a6e 4250
8ad093db
AR
4251 * blockinput.h: Remove NS-specific code.
4252
4d18a7a2
DN
42532009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4254
db878925
DN
4255 * dispnew.c (window_change_signal): Don't try to get the size of a
4256 suspended tty frame.
4257 * term.c (Fresume_tty): Resize if the size has changed while the
4258 tty was suspended.
4259
4d18a7a2
DN
4260 * alloc.c (mark_stack): Properly conditionalize previous change.
4261
8984df7c
JB
42622009-01-30 Juanma Barranquero <lekktu@gmail.com>
4263
4264 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4265 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4266 Remove; this code is not used on Windows.
4267
75f4f1ac
EZ
42682009-01-30 Eli Zaretskii <eliz@gnu.org>
4269
4270 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4271 EOLs that also has stray ^M characters.
4272
07a1e794
JB
42732009-01-30 Juanma Barranquero <lekktu@gmail.com>
4274
4275 * atimer.c (run_timers, alarm_signal_handler):
4276 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4277 * w32inevt.c (w32_console_read_socket):
4278 * w32term.c (w32_read_socket):
4279 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4280
a8b11cc9
CY
42812009-01-30 Chong Yidong <cyd@stupidchicken.com>
4282
4283 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4284 Initialize it as a relative filename pattern.
4285 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4286 (Fcall_process_region): Simplify temp file creation using
4287 temporary-file-directory.
4288
c279587b
EZ
42892009-01-29 Eli Zaretskii <eliz@gnu.org>
4290
4291 * msdos.c: Rename pending_signals to msdos_pending_signals.
4292 (sig_suspender, sigprocmask): Adjust.
4293
a8fe3242
CY
42942009-01-29 Chong Yidong <cyd@stupidchicken.com>
4295
4296 * keyboard.c (pending_signals): New var.
4297 (poll_for_input, input_available_signal, init_keyboard): Set it.
4298 (process_pending_signals): New function.
4299
4300 * lisp.h (QUIT): Check pending_signals instead of
4301 interrupt_input_pending. Use process_pending_signals.
4302
51d861de 4303 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4304
51d861de 4305 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4306
4307 * sysdep.c (emacs_write): Use process_pending_signals.
4308
4309 * xterm.c (XTread_socket): Update pending_signals.
4310
4311 * w32term.c (w32_read_socket): Update pending_signals.
4312
4313 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4314
6570a1c4
KH
43152009-01-29 Kenichi Handa <handa@m17n.org>
4316
4317 * xftfont.c (xftfont_has_char): New function.
4318 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4319
d72a4afa
AR
43202009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4321
4322 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4323 under GNUstep.
4324 (ns_query_color): New declaration.
4325
4326 * nsterm.m (ns_confirm_quit): New variable.
4327 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4328 (EmacsApp-applicationShouldTerminate:): Use it.
4329 (EmacsPrefsController): Let user set it.
4330 (ns_query_color): New function.
4331 (ns_defined_color): Use it.
4332 (ns_initialize): Drop.
4333 (ns_term_init): Add two lines from ns_initialize(), and set
4334 input_interrupt_mode to nil.
4335
4336 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4337 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4338
9fe78804
KH
43392009-01-28 Kenichi Handa <handa@m17n.org>
4340
4341 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4342 (fontset_get_font_group): Remember that no font-group is specified
4343 for C.
9fe78804 4344
fa57de36
CY
43452009-01-27 Chong Yidong <cyd@stupidchicken.com>
4346
930600e9
CY
4347 * fns.c (concat): Check for string overflow (bug#1787).
4348
fa57de36
CY
4349 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4350 Quadruple undo limits (bug#1501).
4351
7179ce7b
KH
43522009-01-27 Kenichi Handa <handa@m17n.org>
4353
4354 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4355 directly use GT_Get_Char_index.
4356
4357 * xftfont.c (struct xftfont_info): New member `index'.
4358
4359 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4360 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4361
5be8fcc0
CY
43622009-01-26 Kenichi Handa <handa@m17n.org>
4363
4364 * fontset.c (fontset_find_font): Fix handling of non-cons return
4365 value of fontset_get_font_group.
4366 (fontset_font): Revert last change.
4367
19ae3e61
JR
43682009-01-26 Jason Rumney <jasonr@gnu.org>
4369
4370 * w32font.c (w32font_list_internal): Return quickly if registry is
4371 unknown. Simplify final return.
4372 (add_font_entity_to_list): Break complex logic down into more
4373 manageable chunks. Move unknown registry check to
4374 w32font_list_internal.
4375
8612b71a
AR
43762009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4377
4378 Changes to remove Feval calls from GUI under NS.
4379
d8038940
JB
4380 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4381 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4382 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4383
4384 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4385 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4386 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4387 instead of NON_ASCII_KEYSTROKE_EVENT.
4388 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4389 (EmacsApp-applicationShouldTerminate:): Query user.
4390 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4391 instead of Feval.
4392
4393 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4394
4395 * keyboard.c (kbd_buffer_get_event): Check for it.
4396 (keys_of_keyboard): Define lispy keys for
4397 ns-put/unput-working-text.
4398
4399 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4400 versions.
4401 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4402
6288ae55
CY
44032009-01-25 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4406 setting current_buffer directly. (Bug#2044)
6288ae55 4407
289e7f8f
CY
44082009-01-24 Chong Yidong <cyd@stupidchicken.com>
4409
5ce87308 4410 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4411 any work. (Bug#1952, bug#1990).
5ce87308 4412
64cc3cf6 4413 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4414
b3243e6f
AR
44152009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4416
4417 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4418 (ns_no_defaults): New declaration.
4419 (main): Use it.
e0d2e69a 4420
d900b2af 4421 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4422
d900b2af 4423 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4424
d900b2af
AR
4425 * nsterm.m (ns_no_defaults): New variable.
4426 (ns_initialize): Don't read defaults when ns_no_defaults.
4427 (EmacsView-readSelectionFromPasteboard:)
4428 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4429 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4430 (ns_dumpglyphs_stretch): New function.
4431 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4432 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4433
e0d2e69a
AR
4434 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4435
3ac71f5d
CY
44362009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4437
4438 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4439 call for Sparc64.
4440
3fe53a83
AR
44412009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4442
4443 * nsfns.m:
4444 * nsgui.h:
4445 * nsmenu.m:
4446 * nsselect.m:
4447 * nsterm.h:
4448 * nsterm.m: Remove '23' comments that indicated code added during
4449 update from emacs-20 -> emacs-23.
4450
10f87c6f 44512009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4452
4453 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4454 ns_alternate_modifier. (Bug#1217)
a3b53a85 4455
c7cef62d
AR
4456 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4457 Display all shortcuts, including those w/o super modifier.
4458
575fb8bd
AR
4459 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4460
918b848b
CY
44612009-01-22 Chong Yidong <cyd@stupidchicken.com>
4462
4463 * fileio.c (Vwrite_region_post_annotation_function)
4464 (Vwrite_region_annotation_buffers): New vars.
4465 (build_annotations_unwind): Just reset
4466 Vwrite_region_annotation_buffers.
4467 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4468 Call write-region-post-annotation-function.
4469 (build_annotations): Add to Vwrite_region_annotation_buffers if
4470 buffer changes.
4471
a39e2539
AR
44722009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4473
4474 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4475 Tiger.
51d861de
SM
4476 * nsfns.m (ns_do_applescript):
4477 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4478
35ed44db
AR
44792009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4480
4481 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4482
cbe0b5bf
AR
44832009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4484
4485 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4486
6049d3a0
AR
4487 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4488
4489 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4490 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4491 handle Ctrl-tab. (Bug#1841)
4492 (ns_get_color): Use unsigned long long for scanned hex string value.
4493 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4494 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4495 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4496 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4497 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4498 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4499 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4500
d3810c21 4501 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4502 DPI. (Bug#1316)
d3810c21
AR
4503 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4504 values in onTiger section.
4c7077c3 4505
e301e634
CY
45062009-01-19 Chong Yidong <cyd@stupidchicken.com>
4507
7f82490b
CY
4508 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4509 Check return value of font_spec_from_name.
64cc3cf6 4510 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4511
4512 * font.c (font_spec_from_name): Return Qnil if font name could not
4513 be parsed.
4514 (font_parse_name): Treat a `?' character as part of an XLFD.
4515
e301e634
CY
4516 * fns.c (Fsubstring): Doc fix.
4517
1c0db158
KH
45182009-01-19 Kenichi Handa <handa@m17n.org>
4519
51d861de 4520 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4521 (ftfont_list): Likewise.
4522
acf20901
JB
45232009-01-18 Juanma Barranquero <lekktu@gmail.com>
4524
fff4e459
JB
4525 * dbusbind.c (Fdbus_register_signal):
4526 * process.c (conv_sockaddr_to_lisp):
4527 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4528
acf20901
JB
4529 * callproc.c (Fgetenv_internal): Doc fix.
4530
e7abcdfb
CY
45312009-01-16 Chong Yidong <cyd@stupidchicken.com>
4532
4533 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4534 it is not even used.
4535
b60861e6
GM
45362009-01-16 Glenn Morris <rgm@gnu.org>
4537
4538 * font.c (Ffont_variation_glyphs): Silence compiler.
4539
8db52afe
JB
45402009-01-15 Juanma Barranquero <lekktu@gmail.com>
4541
4542 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4543 Reported by David Robinow <drobinow@gmail.com>.
4544
4cddb209
KH
45452009-01-15 Kenichi Handa <handa@m17n.org>
4546
51d861de 4547 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4548
f247f67b
JR
45492009-01-14 Jason Rumney <jasonr@gnu.org>
4550
4551 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4552 never a fontset. (Bug#1562)
f247f67b 4553
f56a4450
KH
45542009-01-14 Kenichi Handa <handa@m17n.org>
4555
4556 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4557 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4558
4e99855e
CY
45592009-01-13 Chong Yidong <cyd@stupidchicken.com>
4560
4561 * font.c (font_clear_prop): If clearing the family, clear the font
4562 width index too.
4563
fff4e459 4564 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4565
24f01470
JB
45662009-01-12 Juanma Barranquero <lekktu@gmail.com>
4567
4568 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4569 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4570 functions, use sizeof.
4571
a41240a3
MR
45722009-01-12 Martin Rudalics <rudalics@gmx.at>
4573
4574 * keyboard.c (read_char): Fix case where last_nonmenu_event
4575 returned a bad value with submenus. (Bug#447)
4576
944636b8
CY
45772009-01-12 Chong Yidong <cyd@stupidchicken.com>
4578
4579 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4580 family, clear the font width index too.
4581
0dad7c6f
JR
45822009-01-11 Jason Rumney <jasonr@gnu.org>
4583
4584 * keyboard.c (cmd_error_internal): Exit when errors occur before
4585 frame creation and not in daemon mode. (Bug#1836)
4586
7c2363af
CY
45872009-01-10 Chong Yidong <cyd@stupidchicken.com>
4588
4589 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4590 of a display vector, backtrack.
4591 (try_window_reusing_current_matrix): Check glyph type before
4592 referencing charpos member.
4593
97b1b294
EZ
45942009-01-10 Eli Zaretskii <eliz@gnu.org>
4595
4596 Fix Bug #876:
4597
4598 * coding.c (inhibit_null_byte_detection): New variable.
4599 (detect_coding, detect_coding_system): Don't pay attention to null
4600 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4601 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4602 <inhibit-iso-escape-detection>: Doc fix.
4603
4624b6e3
JR
46042009-01-09 Jason Rumney <jasonr@gnu.org>
4605
4606 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4607 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4608 Only report Unicode Plane 2 fonts as unicode-sip.
4609
323b840c
CY
46102009-01-09 Chong Yidong <cyd@stupidchicken.com>
4611
51d861de
SM
4612 * xfaces.c (Fx_font_family_list): Delete function.
4613 Move compatibility version to faces.el.
323b840c 4614
51d861de 4615 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4616
eba7400d
MR
46172009-01-09 Martin Rudalics <rudalics@gmx.at>
4618
4619 * frame.c (x_set_frame_parameters): Remember requested value for
4620 fullscreen before it's reset by the parameter handler.
4621
4b09796d
GM
46222009-01-09 Glenn Morris <rgm@gnu.org>
4623
4624 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4625 (last_command_event): ... and update all users.
4b09796d
GM
4626 (last_input_char): For clarity, rename to...
4627 (last_input_event): ... and update all users.
4628 (last-command-char, last-input-char): Move to subr.el as aliases.
4629 * cmds.c, commands.h: Update for last_command_char rename.
4630
14ccea62
CY
46312009-01-08 Chong Yidong <cyd@stupidchicken.com>
4632
51d861de 4633 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4634
5f004711
JR
46352009-01-08 Jason Rumney <jasonr@gnu.org>
4636
4637 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4638 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4639 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4640 Don't declare.
fff4e459 4641 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4642 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4643
b71f6f73
KH
46442009-01-07 Kenichi Handa <handa@m17n.org>
4645
50b06221 4646 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4647 remember the coding system used for decoding in
50b06221
KH
4648 coding_system (Bug#1039).
4649
b71f6f73 4650 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4651 breaking the loop. (Bug#870)
b71f6f73
KH
4652 (decode_coding_utf_16, decode_coding_emacs_mule)
4653 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4654 (decode_coding_charset): Likewise.
4655
56f668f7
MR
46562009-01-05 Martin Rudalics <rudalics@gmx.at>
4657
4658 * frame.c (x_set_frame_parameters): Make sure height (width) get
4659 applied when fullwidth (fullheight) is set. (Bug#1522)
4660
5da9424d
JB
46612009-01-04 Juanma Barranquero <lekktu@gmail.com>
4662
4663 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4664 (utc_base): Declare as ULONGLONG, not long double.
4665 (convert_time_raw): Delete.
4666 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4667 (initialize_utc_base): New function.
4668 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4669 (convert_from_time_t): Use initialize_utc_base; compute result with
4670 64-bit arithmetic.
4671 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4672
c4605e09
EZ
46732009-01-03 Eli Zaretskii <eliz@gnu.org>
4674
9acef61c 4675 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4676 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4677 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4678 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4679 [!subprocesses]: Define.
4680 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4681 (Flist_system_processes, Fsystem_process_attributes)
4682 [!subprocesses]: Call list_system_processes and
4683 system_process_attributes instead of returning Qnil.
4684
9acef61c
JB
4685 * dosfns.c (system_process_attributes, list_system_processes):
4686 New functions.
c4605e09
EZ
4687
4688 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4689
4690 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4691 Don't use the default (no-op) implementation.
4692
8b7d0a16
JR
46932009-01-03 Jason Rumney <jasonr@gnu.org>
4694
a6d46bc1
JR
4695 * keyboard.c (parse_modifiers_uncached): Wheel events are
4696 clicks (bug#687).
4697
8b7d0a16
JR
4698 * w32term.c (x_query_colors, x_query_color): New functions.
4699
4700 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4701 (svg_load_image): Cast returned pointers from dynamically loaded
4702 functions. Eliminate W32 specific code.
4703
bfe11752
DN
47042009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4705
89e2438a
DN
4706 * nsfns.m (x_set_foreground_color, x_set_background_color)
4707 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4708 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4709 x_ prefix instead of ns_. Update references.
4710 (syms_of_nsfns): Add a FIXME comment.
4711
4712 * nsterm.m (x_set_cursor_type): New prototype.
4713 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4714
bfe11752
DN
4715 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4716 for Solaris instead of incorrectly providing Qutime and Qcutime.
4717
031da700
EZ
47182009-01-02 Eli Zaretskii <eliz@gnu.org>
4719
4720 * w32.c (process_times): Compute sum of utime and stime.
4721 (system_process_attributes): Add Qtime to the alist.
4722
4723 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4724 and add them to the alist.
4725
4726 * process.c (top level) <Qtime, Qctime>: New variables.
4727 (syms_of_process): staticpro them.
4728 (Fsystem_process_attributes): Add their documentation to the doc
4729 string.
4730
4731 * process.h: Declare Qtime and Qctime.
4732
df23bf08
JR
47332009-01-02 Jason Rumney <jasonr@gnu.org>
4734
9acef61c 4735 * image.c (Qgobject): New symbol.
df23bf08
JR
4736 (syms_of_image): Initialize it.
4737 (init_svg_functions): Load some functions from gobject library.
4738
5bbdf7aa
DN
47392009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4740
4741 * frame.c (make_terminal_frame): Remove redundant code and useless
4742 block.
4743
63136da6
AS
47442009-01-01 Andreas Schwab <schwab@suse.de>
4745
4746 * process.c (conv_sockaddr_to_lisp): Add workaround for
4747 getsockname bug on BSD.
4748
9ef69046
CY
47492009-01-01 Chong Yidong <cyd@stupidchicken.com>
4750
d6fafbe0
CY
4751 * xfns.c (x_create_tip_frame): Set border width of the X window.
4752
51d861de 4753 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4754
f9c34147
JR
47552009-01-01 Jason Rumney <jasonr@gnu.org>
4756
9acef61c 4757 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4758 Don't block input, as per earlier xterm.c changes.
4759
f5497e45
AR
47602008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4761
4762 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4763 (ns_appkit_version_int): New function.
4764 (x-server-version): Use ns_appkit_version_int and follow 21+
4765 convention of returning 3 integers.
4766
c19cab20
KH
47672008-12-30 Kenichi Handa <handa@m17n.org>
4768
4769 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4770 (CHAR_SURROGATE_PAIR_P): New macro.
4771
4772 * font.h (struct font_driver): New member get_variation_glyphs.
4773
9acef61c 4774 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4775 (Ffont_variation_glyphs): New function.
4776 (syms_of_font): Defsubr it.
4777
4778 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4779 ftfont_variation_glyphs.
4780 (setup_otf_gstring): New function.
4781 (ftfont_drive_otf): Use it.
4782 (ftfont_shape_by_flt): Handle variation selector.
4783 (ftfont_variation_glyphs): New function.
4784
28cd591f
MR
47852008-12-30 Martin Rudalics <rudalics@gmx.at>
4786
4787 * frame.c (Vemacs_iconified): Remove.
4788
7f714baf
JR
47892008-12-30 Jason Rumney <jasonr@gnu.org>
4790
4791 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4792 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4793
9d2d22ab
CY
47942008-12-30 Chong Yidong <cyd@stupidchicken.com>
4795
4796 * indent.c (Fvertical_motion): Don't advance iterator if we have
4797 reseated to the desired position.
4798
4799 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4800 checking for pos match.
4801
545312c2
KH
48022008-12-30 Kenichi Handa <handa@m17n.org>
4803
1ede3eb6
KH
4804 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4805 just get the low 8-bit of the code.
4806
545312c2
KH
4807 * font.c (font_intern_prop): Validate str as multibyte.
4808
bd7bbf29
DN
48092008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4810
31e0750e
DN
4811 * dispextern.h (struct face): Move lface and hash from the middle
4812 of bitfields.
4813
bd7bbf29
DN
4814 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4815
b5672e7c
DN
48162008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4817
4818 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4819 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4820 instead of intervals.h.
4821
d704470f
AS
48222008-12-26 Andreas Schwab <schwab@suse.de>
4823
4824 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4825 cons.
4826
54b33868
MR
48272008-12-26 Martin Rudalics <rudalics@gmx.at>
4828
4829 * textprop.c (Qminibuffer_prompt): New variable.
4830 (syms_of_textprop): Initialize it.
4831 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4832 in minibuffer-prompt face. (Bug#1662)
4833
40b615d6
JR
48342008-12-25 Jason Rumney <jasonr@gnu.org>
4835
4836 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4837
baae5c2d
JR
48382008-12-24 Jason Rumney <jasonr@gnu.org>
4839
4840 * ralloc.c (r_alloc_reset_variable): New function.
4841
4842 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4843 record of what points where. (Bug#716)
baae5c2d 4844
a9051c88
DN
48452008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4846
4847 * minibuf.c (read_minibuf): Follow the non-interactive case when
4848 running as a daemon, before detaching.
4849
8b146312
AS
48502008-12-22 Andreas Schwab <schwab@suse.de>
4851
4852 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4853 * gtkutil.c (free_widget_value): Use xfree instead of free.
4854
56f2de10
MR
48552008-12-22 Martin Rudalics <rudalics@gmx.at>
4856
4857 * frame.c (delete_frame): New function derived from
4858 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4859 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4860 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4861 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4862 * frame.h: Extern delete_frame.
4863 * window.c (window_loop):
4864 * terminal.c (delete_terminal):
4865 * xterm.c (x_connection_closed):
4866 * xfns.c (Fx_hide_tip):
9acef61c 4867 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4868
1fc200d6
JR
48692008-12-21 Jason Rumney <jasonr@gnu.org>
4870
4871 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4872 when character maps to .notdef character.
4873
5e252df2
SM
48742008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4875
4876 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4877
99b72cc4
JR
48782008-12-20 Jason Rumney <jasonr@gnu.org>
4879
4880 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4881 a graphical frame on Windows. (Bug#1325)
99b72cc4 4882
acc49a52
JD
48832008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4884
4885 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4886
6ea15123
CY
48872008-12-20 Chong Yidong <cyd@stupidchicken.com>
4888
4889 * minibuf.c (Fread_buffer): Doc fix.
4890
b2dab6c8
JR
48912008-12-20 Jason Rumney <jasonr@gnu.org>
4892
54ea0c87 4893 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4894 server name in UNC paths. (Bug#719)
54ea0c87 4895
b2dab6c8 4896 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4897 charbuf. (Bug#1035)
b2dab6c8 4898
6d1921be
DN
48992008-12-19 Daniel Engeler <engeler@gmail.com>
4900
4901 * sysdep.c (serial_configure): Fix typo.
4902
53934c98
DN
49032008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4904
4905 * sysdep.c: Include alloca.h.
f4f634e8
DN
4906 (system_process_attributes): Add implementation for Solaris.
4907
4908 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4909
06e111a6
DN
49102008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4911
4912 Reorganize implementation of Flist_system_processes and
4913 Fsystem_process_attributes. No functional changes.
4914 * process.c: Don't #include pwd.h, grp.h and limits.h.
4915 (Flist_system_processes): Just call list_system_processes.
4916 (Fsystem_process_attributes): Just call system_process_attributes.
4917 (procfs_list_system_processes, time_from_jiffies)
4918 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4919 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4920
4921 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4922 (list_system_processes): Rename from
4923 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4924 Provide a do nothing implementation.
4925 (system_process_attributes): Rename from
4926 procfs_list_system_processes.
4927 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4928 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4929
4930 * w32.c (list_system_processes): Rename from
4931 w32_list_system_processes.
4932 (system_process_attributes): Rename from
4933 w32_system_process_attributes.
4934
4935 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4936
4937 * process.h (w32_list_system_processes)
4938 (w32_system_process_attributes): Remove.
362654a6
JB
4939 (list_system_processes, system_process_attributes):
4940 New prototypes.
06e111a6 4941
6a705b23
KH
49422008-12-19 Kenichi Handa <handa@m17n.org>
4943
4944 * xfont.c (xfont_decode_coding_xlfd): New function.
4945 (xfont_encode_coding_xlfd): New function.
4946 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4947 (xfont_list): Decode and encode XLFD by iso-8859-1.
4948 (xfont_match): Likewise.
4949 (xfont_list_family): Likewise.
4950 (xfont_open): Likewise.
4951
d66c0241 4952 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4953 names are utf-8.
4954
d66c0241 4955 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4956 names are utf-8.
4957
5a130941
JD
49582008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4959
4960 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4961 changed.
bfd20325
JD
4962 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4963 clicked on a detached tool bar button.
5a130941 4964
fd95644b
DN
49652008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4966
4967 * emacs.c (main): Print and error and exit when no data is read
4968 from the pipe.
4969
e6eee6ae
JR
49702008-12-17 Jason Rumney <jasonr@gnu.org>
4971
4972 * w32font.c (w32font_has_char): Always return -1.
4973
a35dd56b
KH
49742008-12-16 Kenichi Handa <handa@m17n.org>
4975
4976 * font.c (font_open_entity): Fix previous change.
4977
0e3635c2
DN
49782008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4979
4980 * process.c: Include <limits.h>.
4981
d4835507 49822008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4983
4984 * font.c (font_update_drivers): Fix mistake in reconstructing the
4985 driver list.
4986
49872008-12-16 Chong Yidong <cyd@stupidchicken.com>
4988
4989 * font.c (font_clear_cache): Fix format of font cache data.
4990
e2cbc401
CY
49912008-12-15 Chong Yidong <cyd@stupidchicken.com>
4992
4993 * xftfont.c (xftfont_open): Free Xft font pattern if
4994 XftFontOpenPattern fails.
4995
4996 * xterm.c (x_free_frame_resources): Remove extraneous call to
4997 free_frame_faces.
4998
b131d535
CY
49992008-12-13 Chong Yidong <cyd@stupidchicken.com>
5000
5001 * xterm.c (x_delete_display): Move xim_close_dpy call to
5002 x_delete_terminal.
5003 (x_delete_terminal): Call xim_close_dpy.
5004
e6df5336
JR
50052008-12-13 Jason Rumney <jasonr@gnu.org>
5006
5007 * w32font.c (intern_font_name): New function.
5008 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5009 (w32font_open_internal, Fx_select_font): Decode font name.
5010 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5011
5012 * w32font.h (intern_font_name): Declare new function.
5013
5014 * w32uniscribe.c (add_opentype_font_name_to_list):
5015 Use intern_font_name.
5016
20d68145
CY
50172008-12-13 Chong Yidong <cyd@stupidchicken.com>
5018
9f2554de
CY
5019 * frame.c (Fdelete_frame): Call free_font_driver_list.
5020
3d9bec9a
CY
5021 * font.c (free_font_driver_list): Implement missing function.
5022
20d68145
CY
5023 * w32term.c (w32_term_init): Don't initialize the image cache
5024 here; it will be done in init_frame_faces.
5025
5026 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5027 (struct x_display_info): Remove unused member null_pixel. New
5028 member xim_callback_data.
5029
5030 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5031 (xim_initialize): Save pointer to callback function data.
5032 (xim_close_dpy): Free callback function data. Call XCloseIM,
5033 reverting 2008-11-04 change by David Smith.
5034 (x_term_init): Don't initialize the image cache here; it will be
5035 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5036 (x_delete_display): Free x_dnd_atoms member.
5037
96f9306b
KH
50382008-12-13 Kenichi Handa <handa@m17n.org>
5039
6dec9044
JB
5040 * font.c (font_rescale_ratio): Moved from xfaces.c.
5041 Argument type changed. Handle a font-spec too.
96f9306b 5042 (font_score): Check Vface_font_rescale_alist.
6dec9044 5043 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5044
5045 * xfaces.c (font_rescale_ratio): Moved to font.c.
5046
8d5b4964
CY
50472008-12-13 Chong Yidong <cyd@stupidchicken.com>
5048
5049 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5050
e6df5336
JR
50512008-12-12 Jason Rumney <jasonr@gnu.org>
5052
5053 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5054 Vwindow_system_version to the real w32 major version.
5055
97c6058a
DN
50562008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5057
5058 * term.c (init_tty): Move setting the terminal name before the
5059 potential user: maybe_fatal.
5060
ec4e88d7
CY
50612008-12-11 Chong Yidong <cyd@stupidchicken.com>
5062
d4835507
JB
5063 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5064 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5065
b4233ec9
JR
50662008-12-11 Jason Rumney <jasonr@gnu.org>
5067
8ec71e23 5068 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5069 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5070
b4233ec9 5071 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5072 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5073
011a0143
JB
50742008-12-11 Juanma Barranquero <lekktu@gmail.com>
5075
5076 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5077
3c309f34
JB
50782008-12-11 Juanma Barranquero <lekktu@gmail.com>
5079
5080 * process.c (Fsystem_process_attributes, syms_of_process):
5081 Fix typo in name of Ssystem_process_attributes.
5082 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5083
fedc6ab5
JB
50842008-12-11 Juanma Barranquero <lekktu@gmail.com>
5085
5086 * syntax.c (Fmodify_syntax_entry): Doc fix.
5087
ba3de0e8
JB
50882008-12-10 Juanma Barranquero <lekktu@gmail.com>
5089
5090 * font.c (Ffont_spec): Move usage to end of docstring.
5091
174f1c74
JR
50922008-12-10 Jason Rumney <jasonr@gnu.org>
5093
5094 * w32font.c (Qcham): New symbol.
5095 (font_supported_scripts): Add cham, and comments for other new
5096 scripts in bitfield from OpenType spec.
9d32f818
JR
5097 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5098 contain characters beyond the bmp.
174f1c74 5099
7b649478
KH
51002008-12-10 Kenichi Handa <handa@m17n.org>
5101
5102 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5103 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5104 Qunicode_sip.
5105
2133e2d1
JB
51062008-12-10 Juanma Barranquero <lekktu@gmail.com>
5107
5108 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5109 (Fcoding_system_put): Use QCdefault_char.
5110 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5111
9af886ee
CY
51122008-12-09 Chong Yidong <cyd@stupidchicken.com>
5113
74d819eb
CY
5114 * xftfont.c (syms_of_xftfont): Fix typo.
5115
4ccfa1c0 5116 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5117
7c19d3ae
DN
51182008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5119
5120 * emacs.c (main): Close daemon_pipe on exec.
5121
567826bb
CY
51222008-12-08 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * termchar.h (struct tty): New members termcap_term_buffer and
5125 termcap_strings_buffer.
5126
5127 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5128 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5129 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5130 All callers changed.
5131 (init_tty): Store termcap data and string buffers in new struct
5132 tty members termcap_term_buffer and termcap_strings_buffer.
5133 (delete_tty): Free them.
4ccfa1c0 5134 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5135
aa96c42b
SZ
51362008-12-07 Seiji Zenitani <zenitani@mac.com>
5137
5138 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5139 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5140
b7e1d896
CY
51412008-12-06 Chong Yidong <cyd@stupidchicken.com>
5142
5143 * coding.c (make_conversion_work_buffer): Disable buffer
5144 modification hooks in the work buffer.
5145
b5ec91a5
EZ
51462008-12-05 Eli Zaretskii <eliz@gnu.org>
5147
5148 * process.c (procfs_system_process_attributes): If `nread' has a
5149 negative value, assign zero to it.
5150
a5d2a52b
CY
51512008-12-05 Chong Yidong <cyd@stupidchicken.com>
5152
68c5540b 5153 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5154
7bf1bb21
KH
51552008-12-05 Kenichi Handa <handa@m17n.org>
5156
5157 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5158 second character is a combining character.
5159
2fdc7d00
EZ
51602008-12-05 Eli Zaretskii <eliz@gnu.org>
5161
5162 * process.c (procfs_system_process_attributes): Don't use cmd,
5163 cmdsize, and q without initializing them first.
5164
bf6bfba8
JR
51652008-12-04 Jason Rumney <jasonr@gnu.org>
5166
5167 * w32font.c (w32font_draw): Initialize orig_clip before getting
5168 it, and delete it when finished.
5169
a3b1a468
DN
51702008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5171
5172 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5173 case when running as a daemon before detaching.
5174
8b8be8eb
JB
51752008-12-03 Juanma Barranquero <lekktu@gmail.com>
5176
805f2638 5177 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5178
b1bde622
KH
51792008-12-03 Kenichi Handa <handa@m17n.org>
5180
e500c47d
KH
5181 * font.c (font_at): Set `multibyte' at first.
5182
ca516334
KH
5183 * coding.c (decode_coding_charset): Check type of an element of
5184 vector VALIDS.
7bf1bb21 5185 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5186
4ccfa1c0 5187 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5188 (font_for_char): Likewise.
5189
1e5ecd37
CY
51902008-12-03 Chong Yidong <cyd@stupidchicken.com>
5191
d5b01609 5192 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5193 (font_update_lface): Handle fonts with corrupted size specs,
5194 i.e. non-int and non-float.
d5b01609 5195
11e3a6e4 5196 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5197 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5198 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5199
ab06788b
CY
5200 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5201
1e5ecd37 5202 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5203 underline_minimum_offset for underline position.
1e5ecd37 5204
63c125ab
DN
52052008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5206
5207 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5208
5209 * character.c (c_string_width): Specify the type for LEN.
5210
3a8406e1
KH
52112008-12-03 Kenichi Handa <handa@m17n.org>
5212
4ccfa1c0 5213 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5214 (decode_coding_utf_8): Likewise.
4ccfa1c0 5215 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5216 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5217
651df7d9
CY
52182008-12-02 Chong Yidong <cyd@stupidchicken.com>
5219
5220 * keyboard.c (make_lispy_position): Only use PT if the selected
5221 window is current.
5222
1f625c6c
AS
52232008-12-02 Andreas Schwab <schwab@suse.de>
5224
f7741ce9
AS
5225 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5226
1f625c6c
AS
5227 * doprnt.c (doprnt1): Fix size of charbuf.
5228
92bc2678
CY
52292008-12-02 Chong Yidong <cyd@stupidchicken.com>
5230
5231 * keyboard.c (timer_check): Revert last change.
5232
93b9e8cc
JB
52332008-12-02 Juanma Barranquero <lekktu@gmail.com>
5234
5235 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5236
fd7a37d5
JB
52372008-12-01 Juanma Barranquero <lekktu@gmail.com>
5238
5239 * makefile.w32-in: Update dependencies.
5240 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5241
c115043b
AS
52422008-12-01 Andreas Schwab <schwab@suse.de>
5243
5244 * font.c (register_font_driver): Use xmalloc.
5245 (font_put_frame_data): Likewise.
5246
f5668d2a
CY
52472008-12-01 Chong Yidong <cyd@stupidchicken.com>
5248
860d96be
CY
5249 * xfaces.c (realize_x_face): Make abort condition clearer.
5250
f5668d2a
CY
5251 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5252
379c17e7
CY
52532008-11-30 Chong Yidong <cyd@stupidchicken.com>
5254
5255 * keyboard.c (timer_check): After a timer runs, ensure that the
5256 selected window's buffer is current.
5257
35f36d65
JB
52582008-11-30 Juanma Barranquero <lekktu@gmail.com>
5259
f952c61c
JB
5260 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5261 It was accidentally restored by the Unicode merge.
5262
35f36d65
JB
5263 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5264
b23077df
JB
52652008-11-29 Juanma Barranquero <lekktu@gmail.com>
5266
5267 * w32proc.c: Include "coding.h".
5268 (Fw32_short_file_name): Encode filename passed to Windows API.
5269 (Fw32_long_file_name): Encode filename passed to Windows API and
5270 decode back the result. (Bug#1433)
5271
b8ebe9dd
KH
52722008-11-29 Kenichi Handa <handa@m17n.org>
5273
8cc53f96
KH
5274 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5275 not before accessing it.
5276
b8ebe9dd
KH
5277 * charset.c (Fdefine_charset_internal): After calculating
5278 min_char, max_char, and fastmap, copy the charset structure again.
5279 (encode_char): Fix the previous change.
5280
59bc82c0
SZ
52812008-11-28 Seiji Zenitani <zenitani@mac.com>
5282
5283 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5284
5285 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5286
5287 * nsterm.m (x_set_frame_alpha): New function.
5288
32247e3d
EZ
52892008-11-27 Eli Zaretskii <eliz@gnu.org>
5290
5291 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5292
b003e5ff
JB
52932008-11-27 Juanma Barranquero <lekktu@gmail.com>
5294
5295 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5296 pointer to check_face_name.
5297
708550f5
KH
52982008-11-27 Kenichi Handa <handa@m17n.org>
5299
5300 * category.h (SET_CATEGORY_SET): Call set_category_set.
5301 (set_category_set): Extern it.
5302
5303 * category.c (hash_get_category_set): New function.
5304 (Fmodify_category_entry): Adjusted for the change of
5305 char_table_ref_and_range. Call hash_get_category_set to get a
5306 category set to store in the table.
5307
5308 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5309 Funify_charset.
5310
2ae37cf0 5311 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5312 (DECODE_CHAR): Check if the decoder vector is ready.
5313 (ENCODE_CHAR): Check if the encoder char-table is ready.
5314 (maybe_unify_char): Extern it.
5315
5316 * charset.c (Vchar_unified_charset_table): Delete it.
5317 (inhibit_load_charset_map): New variable.
5318 (temp_charset_work): New variable.
5319 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5320 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5321 New macros.
5322 (load_charset_map): Meaning of control_flag changed. If
5323 inhibit_load_charset_map is nonzero, setup a table in
5324 temp_charset_work.
5325 (load_charset): New argument control_flag.
5326 (map_charset_for_dump): New function.
5327 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5328 map_charset_for_dump.
5329 (Fdefine_charset_internal): If the charset method is MAP, load
5330 mapping tables by calling load_charset.
5331 (Funify_charset): Don't load a mapping table but directly set
5332 Vchar_unify_table.
5333 (maybe_unify_char): New function.
5334 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5335 Handle the case of inhibit_load_charset_map being nonzero.
5336 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5337 Handle the case of inhibit_load_charset_map being nonzero.
5338 (Fclear_charset_maps): Just free temp_charset_work.
5339 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5340 variable.
5341
5342 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5343 change of char_table_ref_and_range.
5344 (char_table_ref_and_range): Change the meaning of argument FROM
5345 and TO. Now the caller must provide initial values for *FROM
5346 and *TO.
5347
5348 * fontset.c (fontset_add): Adjusted for the change of
5349 char_table_ref_and_range.
5350 (fontset_get_font_group): Likewise.
5351 (Ffontset_info): Likewise.
5352
5353 * keymap.c (describe_vector): Adjusted for the change of
5354 char_table_ref_and_range. For char-table, put boundary between
5355 non-ASCII and 8-bit characters.
5356
5357 * print.c (print_object): For bool-vector, delete unnecessary
5358 check of ASCII_BYTE_P.
5359
9196133b
JR
53602008-11-26 Jason Rumney <jasonr@gnu.org>
5361
5362 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5363 leading in font height. (Bug#879)
9196133b 5364
9f688acf
GM
53652008-11-26 Glenn Morris <rgm@gnu.org>
5366
5367 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5368 redefinition with ifdef. (Bug#1383)
5369
90d19aff
AR
53702008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5371
5372 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5373
4ccfa1c0 53742008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5375
5376 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5377 New EmacsView methods.
5378 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5379 Fixes bug #1048,1357,1414.
5380
53812008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5382
5383 Fix bug #1362.
5384 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5385 is not an indexed color.
5386 * nsterm.m (free_indexed_color): Add argument checking.
5387 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5388
e7d5ecb3
CY
53892008-11-24 Chong Yidong <cyd@stupidchicken.com>
5390
5391 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5392 Document confirm-after-completion value for
5393 minibuffer-completion-confirm.
5394
c285743c
JR
53952008-11-24 Jason Rumney <jasonr@gnu.org>
5396
5397 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5398 warning.
5399
b0857706
JR
54002008-11-23 Jason Rumney <jasonr@gnu.org>
5401
5402 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5403 restored before returning.
5404
5405 * w32font.c (check_face_name): New function.
5406 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5407 fonts. (Bug#642)
b0857706 5408
ee50ff07
MR
54092008-11-22 Martin Rudalics <rudalics@gmx.at>
5410
5411 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5412 confirm-nonexistent-file-or-buffer in doc-string.
5413
b8ff72fa
SM
54142008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5415
5416 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5417 Fix copy/paste typo. Add checks.
5418
cee53ed4
KH
54192008-11-21 Kenichi Handa <handa@m17n.org>
5420
5421 * coding.c (detect_coding_iso_2022): Reject invalid composition
5422 sequence.
5423 (DECODE_COMPOSITION_START): If the current source is the last
5424 block, and the current composition doesn't end, regard this
5425 sequence as invalid.
5426 (decode_coding_iso_2022): Handle invalid composition sequence.
5427
f6ef1e65
MR
54282008-11-20 Martin Rudalics <rudalics@gmx.at>
5429
5430 * window.c (coordinates_in_window): Don't return
5431 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5432 line when the window is not the rightmost one. (Bug#1372)
5433
e08b1705
MR
54342008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5435
5436 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5437
ad98e89f
EZ
54382008-11-15 Eli Zaretskii <eliz@gnu.org>
5439
5440 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5441 and bright_bg if noninteractive is non-zero.
5442
fb098a4b
CY
54432008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5444
5445 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5446 x_draw_glyph_string_background.
5447
5448 * w32term.c (x_draw_glyph_string): Likewise.
5449
ce952b6e
CY
54502008-11-15 Chong Yidong <cyd@stupidchicken.com>
5451
5452 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5453 the next glyph string once past the overhang width.
5454
5455 * nsterm.m (ns_draw_glyph_string): Likewise.
5456
5457 * w32term.c (x_draw_glyph_string): Likewise.
5458
26ea7079
CY
54592008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5460
5461 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5462 double file close.
5463
1c33c906
MR
54642008-11-14 Martin Rudalics <rudalics@gmx.at>
5465
5466 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5467 dedicated status of window before attempting to display another
5468 buffer in it.
5469
8fc29035
JB
54702008-11-14 Juanma Barranquero <lekktu@gmail.com>
5471
5472 * msdos.c (Fmsdos_long_file_names):
5473 (syms_of_msdos) <dos-unsupported-char-glyph>:
5474 * dosfns.c (Fint86): Fix typos in docstrings.
5475
55fb4286
EZ
54762008-11-14 Eli Zaretskii <eliz@gnu.org>
5477
5478 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5479
3fda0315
KY
54802008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5481
5482 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5483
7e849c17
CY
54842008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5485
5486 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5487
5488 * frame.h: Negative alpha means "don't touch".
5489
5490 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5491
5492 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5493
b9fd67bd
DN
54942008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5495
5496 * hftctl.c:
5497 * chpdef.h:
5498 * acldef.h: Remove files used only for systems no longer supported.
5499
5500 * Makefile.in: Fix .o alphabetical ordering.
5501 (hftctl.o): Remove dependency, file removed.
5502 (keymap.o, print.o): Depend on charset.h.
5503
d5998e03
KH
55042008-11-10 Kenichi Handa <handa@m17n.org>
5505
2ae37cf0 5506 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5507
be70e183
CY
55082008-11-08 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * dired.c (file_name_completion): If completion_ignore_case is
5511 enabled, ignore case when checking completion-regexp-list.
5512
7cf94eac
EZ
55132008-11-08 Eli Zaretskii <eliz@gnu.org>
5514
5515 * vm-limit.c (get_lim_data): Fix last change.
5516
ee107a89
KH
55172008-11-08 Kenichi Handa <handa@m17n.org>
5518
5519 * character.c (Fget_byte): New function.
5520 (syms_of_character): Defsubr Fget_byte.
5521
5fd15622
CY
55222008-11-07 Chong Yidong <cyd@stupidchicken.com>
5523
5524 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5525 cursor position is valid after scrolling.
5526
13d62fad
JB
55272008-11-06 Juanma Barranquero <lekktu@gmail.com>
5528
5529 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5530
a1dd2936
GM
55312008-11-06 Glenn Morris <rgm@gnu.org>
5532
5533 * xterm.c (handle_one_xevent): Don't let popup menus cause
5534 mouse-autoselect-window related window switching. (Bug#1261)
5535
860cd236
CY
55362008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5537
5538 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5539
653a3150
AS
55402008-11-04 Andreas Schwab <schwab@suse.de>
5541
5542 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5543
870f5cac
CY
55442008-11-03 Chong Yidong <cyd@stupidchicken.com>
5545
5546 * xfns.c (Fx_wm_set_size_hint): New function.
5547
1e02f3cb
MR
55482008-11-03 Martin Rudalics <rudalics@gmx.at>
5549
5550 * textprop.c (Fprevious_single_char_property_change): Return 0
5551 when there's no change in a string. (Bug#1301)
5552
e630dfc6
MR
55532008-11-02 Martin Rudalics <rudalics@gmx.at>
5554
5555 * frame.c (do_switch_frame): New argument NORECORD passed to
5556 Fselect_window.
5557 (Fselect_frame): New argument NORECORD passed to
5558 do_switch_frame.
5559 (Fset_frame_selected_window): New argument NORECORD passed to
5560 Fselect_frame.
5561 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5562 in call of do_switch_frame.
5563 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5564 Handle NORECORD argument in call of Fselect_frame.
5565 * lisp.h (do_switch_frame, Fselect_frame)
5566 (Fset_frame_selected_window): Adjust declarations.
5567 * window.c (select_frame_norecord): New function.
5568 (run_window_configuration_change_hook): Use it and call
5569 Fselect_frame with NORECORD set.
5570 (Fselect_window): Pass NORECORD to Fselect_frame.
5571 (Fset_window_configuration): Handle NORECORD argument in call of
5572 do_switch_frame.
5573 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5574 Fset_frame_selected_window.
5575 * keyboard.c (command_loop_1): Handle NORECORD in call of
5576 Fselect_frame (currently ifdefd).
5577
9020b223
GM
55782008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5579
5580 * emacs.c (USAGE2): Untabify.
5581
793ffee8
SM
55822008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5583
5584 * composite.c (fill_gstring_header): Fix copy/paste typo.
5585
ab6d1131
MR
55862008-10-31 Martin Rudalics <rudalics@gmx.at>
5587
5588 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5589 (Fother_window): Rename argument and rewrite doc-string.
5590 (select_window_norecord): Fix return value. (Bug#1276)
5591
601a9cf1
JB
55922008-10-30 Juanma Barranquero <lekktu@gmail.com>
5593
5594 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5595 new frames overriding foreground for tooltips. Based on similar patch
5596 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5597
813b0652
CY
55982008-10-29 Chong Yidong <cyd@stupidchicken.com>
5599
5600 * emacs.c (Fdaemon_initialized): Initialize nfd.
5601
4414f58f
MR
56022008-10-29 Martin Rudalics <rudalics@gmx.at>
5603
5604 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5605 (Fwindow_text_height): Clarify doc-strings.
5606 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5607 doc-string of window-scroll-functions.
5608
ecdcaa09
RS
56092008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5610
5611 * category.c (syms_of_category): Fix typo in docstring.
5612
23fe745a
JB
56132008-10-28 Juanma Barranquero <lekktu@gmail.com>
5614
5615 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5616 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5617 Fix typos in docstrings.
5618
ff808935
DN
56192008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5620
5621 * emacs.c (daemon_pipe): Make non-static.
5622 (IS_DAEMON): Move definition ...
5623 * lisp.h (IS_DAEMON): ... here.
5624 (daemon_pipe): Declare.
5625 (is_daemon): Remove.
5626 * dispnew.c (init_display): Use IS_DAEMON.
5627
fc012771
SM
56282008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5629
5630 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5631 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5632
5633 * emacs.c (is_daemon): Remove.
5634 (main): Don't set is_daemon.
5635 (IS_DAEMON): New macro.
5636 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5637 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5638 parent exits.
5639 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5640
d8bdbe6f
CY
56412008-10-27 Chong Yidong <cyd@stupidchicken.com>
5642
d1a072bf
CY
5643 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5644 over-sized glyph, draw it with the default glyph width.
5645
e2e325aa
CY
5646 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5647 glyph, draw it with the default glyph width.
5648
5649 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5650 glyph, draw it with the default glyph width.
5651
d8bdbe6f
CY
5652 * xdisp.c (try_scrolling): When computing the distance from the
5653 scroll margin to PT, try moving some distance past the window
5654 bottom before giving up.
5655
7bfac547
MR
56562008-10-27 Martin Rudalics <rudalics@gmx.at>
5657
5658 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5659 (Fset_window_buffer): Explain in doc-string that a window can be
5660 "strongly" dedicated to its buffer.
5661
4ff029f6
DN
56622008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5663
5664 * emacs.c (daemon_name): New variable.
5665 (main): Deal with --daemon=SERVER_NAME.
5666 (Fdaemonp): Return a name if one was passed to --daemon.
5667
5790ef40
DN
56682008-10-26 Romain Francoise <romain@orebokech.com>
5669
f9bd0df9 5670 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5671 (main): Create a pipe before forking, make the parent exit only after
5672 the child has closed its end of the pipe. Move closing the
5673 descriptors ...
5674 (Fdaemon_initialized): ... here. New function.
5675
f5385255
SM
56762008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5677
4d632321
SM
5678 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5679 the previous unoptimized table.
5680
f5385255
SM
5681 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5682 the distinction between non-nil and non-t value of `dedicated'.
5683
6c56a0f3
CY
56842008-10-25 Chong Yidong <cyd@stupidchicken.com>
5685
5686 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5687 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5688
fec89261
MR
56892008-10-25 Martin Rudalics <rudalics@gmx.at>
5690
5691 * window.c (Fget_buffer_window, Fdelete_windows_on)
5692 (Freplace_buffer_in_windows): Make buffer argument optional and
5693 rename to buffer_or_name.
5694
34fcddd0
CY
56952008-10-24 Chong Yidong <cyd@stupidchicken.com>
5696
f5385255
SM
5697 * xdisp.c (handle_single_display_spec, handle_display_prop):
5698 Undo 2005-05-16 change.
34fcddd0
CY
5699 (handle_stop): Pop iterator if it's loaded with an empty string.
5700 (get_overlay_strings_1): Don't save iterator if it's loaded with
5701 an empty string (bug#1201).
5702
064766f2
KH
57032008-10-24 Kenichi Handa <handa@m17n.org>
5704
5705 * ftfont.c (ftfont_otf_features): Fix previous change.
5706 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5707 calling ftfont_otf_features.
5708
f9bd0df9 57092008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5710
5711 * font.c (font_match_p): Fix for the case that a vector of
5712 characters is in script-representative-chars.
5713
1dae9197
MA
57142008-10-24 Michael Albinus <michael.albinus@gmx.de>
5715
5716 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5717 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5718 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5719 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5720 macro. (Bug#1186)
1dae9197 5721
f9bd0df9 57222008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5723
5724 * s/sol2-10.h: New file.
5725
878a4584
JB
57262008-10-23 Juanma Barranquero <lekktu@gmail.com>
5727
5728 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5729 poor beast has survived 9+ years and the jump from xterm.c!).
5730
cd265ca6
MR
57312008-10-23 Martin Rudalics <rudalics@gmx.at>
5732
5733 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5734 Reword doc-string.
f5385255 5735 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5736
472a4dc9
JB
57372008-10-23 Juanma Barranquero <lekktu@gmail.com>
5738
5739 * character.c (syms_of_character) <script-representative-chars>:
5740 <unicode-category-table>: Doc fixes.
5741
159bd5a2
NF
57422008-10-23 Noah Friedman <friedman@splode.com>
5743
5744 * coding.c (make_conversion_work_buffer): Check that
5745 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5746 Fget_buffer_create.
5747
49f9c344
KH
57482008-10-23 Kenichi Handa <handa@m17n.org>
5749
5750 * font.c (font_add_log): Check the values of extra properties.
5751
12bb3111
MR
57522008-10-22 Martin Rudalics <rudalics@gmx.at>
5753
5754 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5755 Reword doc-string.
5756 (Fset_window_parameter): Use NILP.
5757 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5758 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5759
bbeb4e99
JB
57602008-10-22 Juanma Barranquero <lekktu@gmail.com>
5761
5762 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5763
57642008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5765
5766 * nsfns.m (ns_appkit_version): New function.
5767 (x-server-version): Use it.
5768 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5769 (x-server-vendor): Don't check_ns().
5770
5771 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5772
a9b555d3
JB
57732008-10-22 Juanma Barranquero <lekktu@gmail.com>
5774
5775 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5776 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5777
4626499f
KH
57782008-10-22 Kenichi Handa <handa@m17n.org>
5779
e3681952
KH
5780 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5781 scripts.
5782
4626499f
KH
5783 * category.c (word_boundary_p): Check scripts instead of charset.
5784 Handle nil value in word-separating-categories and
5785 word-combining-categories.
5786 (syms_of_category): Fix docstrings of word-separating-categories
5787 and word-combining-categories.
5788
1560f91a
EZ
57892008-10-21 Eli Zaretskii <eliz@gnu.org>
5790
5791 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5792 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5793
f4668441
MR
57942008-10-21 Martin Rudalics <rudalics@gmx.at>
5795
5796 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5797 Rename arg "buffer" to "buffer_or_name".
5798 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5799 it optional.
5800 (no_switch_window): Remove since the return value is not used.
a9b555d3 5801 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5802 Consider window as dedicated when Fwindow_dedicated_p returns a
5803 non-nil value.
5804 * lisp.h: Remove prototype for no_switch_window.
5805
fd75ddb2
JD
58062008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5807
5808 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5809 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5810
07295713
KH
58112008-10-21 Kenichi Handa <handa@m17n.org>
5812
5813 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5814 check Vlatin_extra_code_table.
5815
712adc82
EZ
58162008-10-20 Eli Zaretskii <eliz@gnu.org>
5817
5818 * fileio.c (Fset_file_modes): Doc fix.
5819
f549eb0b
MA
58202008-10-19 Michael Albinus <michael.albinus@gmx.de>
5821
5822 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5823 in arrays.
5824
aac0c6e3
MR
58252008-10-19 Martin Rudalics <rudalics@gmx.at>
5826
5827 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5828 Mention kill-buffer in doc-string.
5829 (Fset_window_buffer): Reinsert tem check removed in last commit.
5830 (Fenlarge_window, Fshrink_window): Have argument names and
5831 doc-string follow Elisp manual more closely.
5832
58332008-10-18 Eli Zaretskii <eliz@gnu.org>
5834
5835 * fileio.c (Fset_file_modes): Doc fix.
5836
58372008-10-18 Martin Rudalics <rudalics@gmx.at>
5838
5839 * window.c (Fwindow_width, Fset_window_start)
5840 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5841 (Fdelete_windows_on, Freplace_buffer_in_windows):
5842 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5843 (Fwindow_dedicated_p): Make window argument optional.
5844 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5845 (Fset_window_buffer): Respect any non-nil dedicated value for
5846 window. Rename "buffer" argument to "buffer_or_name".
5847
58482008-10-18 Ulrich Mueller <ulm@gentoo.org>
5849
5850 * m/sh3.h: New file, machine description for SuperH.
5851
58522008-10-17 Martin Rudalics <rudalics@gmx.at>
5853
5854 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5855
58562008-10-17 Kenichi Handa <handa@m17n.org>
5857
5858 * ftfont.c (ftfont_otf_features): Fix indexing
5859 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5860
58612008-10-16 Magnus Henoch <mange@freemail.hu>
5862
5863 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5864 (Fdbus_call_method_asynchronously): Ditto.
5865 This change makes C-h f display the argument list.
5866
58672008-10-16 Chong Yidong <cyd@stupidchicken.com>
5868
5869 * fileio.c (Fexpand_file_name): Doc fix.
5870
5871 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5872 of :foreground and :background equivalent to unspecified (20.x
5873 compatibility).
5874
58752008-10-15 Eli Zaretskii <eliz@gnu.org>
5876
5877 * buffer.c (syms_of_buffer): Doc fix.
5878
58792008-10-14 Kenichi Handa <handa@m17n.org>
5880
5881 * font.c (font_clear_prop): When clearing font width, clear the
5882 average width field too.
5883
58842008-10-12 Andreas Schwab <schwab@suse.de>
5885
5886 * ftfont.c (ftfont_shape_by_flt): Make static.
5887 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5888
5889 * font.c: Don't include <m17n-flt.h>.
5890
58912008-10-10 Eli Zaretskii <eliz@gnu.org>
5892
5893 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5894
58952008-10-09 Eli Zaretskii <eliz@gnu.org>
5896
5897 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5898 away code.
5899
59002008-10-09 Chong Yidong <cyd@stupidchicken.com>
5901
5902 * dispnew.c (update_text_area): Avoid looping due to large glyph
5903 overhangs (bug#1070).
5904
59052008-10-09 Kenichi Handa <handa@m17n.org>
5906
5907 * fontset.c (face_for_char): If face->fontset is negative, just
5908 return ascii_face.
5909
f5385255
SM
5910 * font.c (font_delete_unmatched): Fix previous change.
5911 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5912
59132008-10-09 Martin Rudalics <rudalics@gmx.at>
5914
5915 * frame.c (Fraise_frame): On text-only terminals select frame in
5916 order to make it visible. (Bug#1061)
5917
59182008-10-08 Chong Yidong <cyd@stupidchicken.com>
5919
5920 * fontset.c (fontset_find_font): Check frame validity.
5921
59222008-10-07 Chong Yidong <cyd@stupidchicken.com>
5923
a9b555d3 5924 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5925 (xg_display_close): Allow Emacs to close all displays (bug#985).
5926
59272008-10-06 Andreas Schwab <schwab@suse.de>
5928
f5385255 5929 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5930
59312008-10-06 Chong Yidong <cyd@stupidchicken.com>
5932
f5385255 5933 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5934
a9b555d3 5935 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5936
5937 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5938 during initialization.
5939
59402008-10-04 Eli Zaretskii <eliz@gnu.org>
5941
5942 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5943 whole thing on MSDOS frames as well as on a TTY.
5944
5945 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5946 well as for TTY.
5947 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5948 well as on a TTY.
5949
5950 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5951 as well as for TTY.
5952
5953 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5954
5955 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5956 MSDOS frames as well.
5957
59582008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5959
5960 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5961 correct arguments.
b71ac3dd 5962 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5963
59642008-10-03 Glenn Morris <rgm@gnu.org>
5965
5966 * emacs.c (USAGE1): Add --daemon.
5967
59682008-10-02 Eli Zaretskii <eliz@gnu.org>
5969
5970 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5971 100, so it's in percents as advertised.
5972
59732008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5974
5975 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5976 (ns_output.current_cursor, ns_output.desired_cursor)
5977 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5978 (FRAME_NEW_CURSOR_COLOR): Remove.
5979
5980 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5981 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5982 enumeration (HOLLOW_BOX_CURSOR, etc.).
5983
5984 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5985 (draw_window_cursor): Simplify code.
f5385255
SM
5986 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5987 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5988 updates manually.
a9b555d3
JB
5989 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5990 Use core Emacs cursor types.
aac0c6e3 5991
b8ff72fa 5992 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5993
59942008-10-02 Martin Rudalics <rudalics@gmx.at>
5995
5996 * process.c (Faccept_process_output): Fix doc-string.
5997
59982008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5999
6000 * gmalloc.c (__sbrk): Also define for uClibc.
6001
6002 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6003 for uClibc.
6004
60052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6006
6007 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6008 styles.
6009 (nsfont_open): Reenable the cache.
6010
60112008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6012
6013 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6014 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6015
60162008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6017
6018 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6019 a suspended terminal.
6020
60212008-09-30 Michael Albinus <michael.albinus@gmx.de>
6022
6023 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6024
60252008-09-30 Eli Zaretskii <eliz@gnu.org>
6026
6027 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6028
60292008-09-30 Chong Yidong <cyd@stupidchicken.com>
6030
6031 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6032 in a continued line coincides with a line beginning.
6033
60342008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6035
6036 * nsfont.m (nsfont_trait_distance): Fix bug.
6037 (nsfont_list): Return a list rather than a vector (syncs with Handa
6038 changes of 2008-05-14).
6039 (nsfont_open): Improve logging.
6040
60412008-09-29 Andreas Schwab <schwab@suse.de>
6042
6043 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6044
60452008-09-28 Martin Rudalics <rudalics@gmx.at>
6046
6047 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6048 name as char-resolve-modifiers.
6049 Reported by: Markus Triska <markus.triska@gmx.at>
6050
60512008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6052
6053 * dispnew.c (init_display): Return earlier when running as a daemon.
6054
60552008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6056
6057 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6058
60592008-09-27 Eli Zaretskii <eliz@gnu.org>
6060
6061 * composite.c (Fcomposition_get_gstring)
6062 (Fcompose_region_internal, Fcompose_string_internal)
6063 (Ffind_composition_internal): Doc fix.
6064 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6065 (syms_of_composite) <auto-composition-function>: Doc fix.
6066 (syms_of_composite) <composition-function-table>: Doc fix.
6067
60682008-09-25 Chong Yidong <cyd@stupidchicken.com>
6069
6070 * search.c (wordify): New argument for lax word-ends.
6071 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6072
60732008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6074
6075 * lisp.h (is_daemon): Declare.
6076 * dispnew.c (init_display): Do not try to initialize the terminal
6077 when running as a daemon.
6078
60792008-09-22 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6082 x_display_pixel_height.
6083
60842008-09-22 Martin Rudalics <rudalics@gmx.at>
6085
6086 * undo.c (record_point): Don't call Fundo_boundary for first
6087 change. (Bug#731)
6088
60892008-09-22 Juanma Barranquero <lekktu@gmail.com>
6090
6091 * emacs.c (Fdaemonp): Doc fix.
6092
60932008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6094
6095 * emacs.c (main): Place #ifdef in the proper place.
6096
60972008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6098
6099 * emacs.c (standard_args): Add --daemon.
6100 (main): Disconnect from the terminal when --daemon is passed.
6101 (is_daemon): New variable.
6102 (Fdaemonp): New function.
6103 (syms_of_emacs): Defsubr it.
6104
61052008-09-20 Chong Yidong <cyd@stupidchicken.com>
6106
6107 * xdisp.c (get_next_display_element): Handle string display
6108 correctly when checking for the end of a box run.
6109
61102008-09-20 Glenn Morris <rgm@gnu.org>
6111
6112 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6113 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6114 (Frename_file): Avoid copying to trash if a rename involves
6115 a delete. (Bug#964).
6116
61172008-09-20 Eli Zaretskii <eliz@gnu.org>
6118
6119 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6120 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6121 frames as well as termcap frames.
6122 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6123 get_named_tty.
6124
61252008-09-19 Eli Zaretskii <eliz@gnu.org>
6126
6127 * process.c (procfs_system_process_attributes): Fix cmdline in
6128 case /proc/PID/cmdline is empty.
6129
6130 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6131 x_display_pixel_height.
6132
61332008-09-19 Juanma Barranquero <lekktu@gmail.com>
6134
6135 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6136
6137 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6138 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6139
61402008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6141
6142 * dispextern.h (struct it): Move line_wrap away from the middle of
6143 bitfields. Move voffset in struct iterator_stack_entry after the
6144 bitfields. Move tab_width near after another short.
6145
61462008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6147
6148 * frame.h (struct frame): Move alpha from the middle of bitfields.
6149
6150 * window.h (struct window): Move frozen_window_start_p after the
6151 rest of the bitfields to reduce padding.
6152
61532008-09-18 Chong Yidong <cyd@stupidchicken.com>
6154
6155 * xterm.h (x_display_info): Remove `height' and `width' members.
6156
6157 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6158
6159 * w32term.h (w32_display_info): Remove `height', `width',
6160 `height_in', and `width_in' members.
6161
b8ff72fa
SM
6162 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6163 New functions.
aac0c6e3
MR
6164 (x_calc_absolute_position): Use them.
6165 (x_term_init): Omit removed `height' and `width' members.
6166
b8ff72fa
SM
6167 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6168 New functions.
aac0c6e3
MR
6169 (w32_read_socket, x_calc_absolute_position): Use them.
6170 (w32_initialize_display_info, w32_term_init): Omit removed members
6171 of w32_display_info.
6172
b8ff72fa
SM
6173 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6174 New functions.
6175 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6176
b8ff72fa
SM
6177 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6178 New functions.
aac0c6e3
MR
6179 (x_calc_absolute_position): Use them.
6180 (x_term_init): Omit removed `height' and `width' members.
6181
6182 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6183 (compute_tip_xy):
6184 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6185 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6186 x_display_pixel_width.
6187
61882008-09-18 Kenichi Handa <handa@m17n.org>
6189
6190 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6191 (composition_compute_stop_pos): Fix handling of static composition.
6192 (Fcomposition_get_gstring): Check FROM and TO at first.
6193
61942008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6195
46e722a9 6196 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6197 mixup (YAILOM).
6198
61992008-09-17 Chong Yidong <cyd@stupidchicken.com>
6200
6201 * indent.c (Fvertical_motion): Use position reported by iterator
6202 instead of PT for determining screen motion (bug#943).
6203
62042008-09-17 Romain Francoise <romain@orebokech.com>
6205
6206 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6207
62082008-09-17 Kenichi Handa <handa@m17n.org>
6209
6210 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6211
6212 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6213 if necessary.
6214
62152008-09-16 Kenichi Handa <handa@m17n.org>
6216
6217 * coding.c (make_conversion_work_buffer): Avoid calling
6218 Fget_buffer_create if it is not necessary.
6219
62202008-09-15 Martin Rudalics <rudalics@gmx.at>
6221
6222 * window.c (Fselect_window): Don't update window_select_count and
6223 use_time when norecord is not nil.
6224
62252008-09-14 Kenichi Handa <handa@m17n.org>
6226
6227 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6228 specpdl_ptr.
6229
62302008-09-12 Kenichi Handa <handa@m17n.org>
6231
6232 * indent.c (scan_for_column): Don't handle automatic composition
6233 if the current buffer is not associated with a window.
6234
6235 * composite.c (composition_reseat_it): If the current buffer is
6236 not associated with a window, ignore the automatic composition.
6237 (find_automatic_composition): Likewise.
6238
62392008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6240
6241 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6242 (Fgpm_mouse_stop): Use it.
6243 * termhooks.h (close_gpm): Declare.
6244 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6245 connection if Gpm_GetEvent fails.
6246
6247 * window.c (set_window_buffer): Always preserve current-buffer.
6248
62492008-09-12 Glenn Morris <rgm@gnu.org>
6250
6251 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6252
62532008-09-11 Glenn Morris <rgm@gnu.org>
6254
6255 * charset.c (charset-map-path): Doc fix.
6256
62572008-09-10 Kenichi Handa <handa@m17n.org>
6258
6259 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6260
6261 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6262 compose a grapheme cluster with the preceding base glyph.
6263
6264 * composite.c (composition_compute_stop_pos): Fix previous change.
6265 Reset cmp_it->id to -1 at first.
6266
62672008-09-10 Glenn Morris <rgm@gnu.org>
6268
6269 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6270
62712008-09-09 Chong Yidong <cyd@stupidchicken.com>
6272
6273 * keyboard.c (read_key_sequence): Reapply translation maps when
6274 switching keyboards.
6275
62762008-09-09 Kenichi Handa <handa@m17n.org>
6277
6278 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6279 characters.
6280
6281 * composite.c (FORWARD_CHAR): Fix calculation
6282 of (POSITION).pos_byte.
6283 (composition_compute_stop_pos): Limit the search of composition to
6284 at most 500 characters ahead. If we reach the limit or find a
6285 newline, set cmp_it->ch to -2 and return 0.
6286 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6287
62882008-09-08 Kenichi Handa <handa@m17n.org>
6289
6290 * indent.c (Fvertical_motion): Be sure to set
6291 it_overshoot_expected if it.cmp_it.id is non-negative.
6292
62932008-09-07 Andreas Schwab <schwab@suse.de>
6294
6295 * callproc.c (Fcall_process): Don't hold references to string data
6296 across garbage collection. Move initialisation of new_argv down
6297 to avoid compiler bug.
6298
62992008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6300
6301 * process.c (Fsystem_process_attributes): Doc fix.
6302
63032008-09-07 Chong Yidong <cyd@stupidchicken.com>
6304
6305 * callproc.c (Fcall_process): Canonicalize current directory name.
6306
6307 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6308 iterator advances to the next line if the current line ends in a
6309 continued tab.
6310
63112008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6312
6313 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6314 member to point to cmp_from.
6315
6316 * xdisp.c: Doc fix for references to gidx data member.
6317
63182008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6319
6320 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6321
63222008-09-07 Kenichi Handa <handa@m17n.org>
6323
6324 * composite.c (FORWARD_CHAR): Check STOP after
6325 incrementing (POSITION).pos.
6326
63272008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6328
6329 * process.c (Fsystem_process_attributes): Doc fix.
6330
63312008-09-06 Chong Yidong <cyd@stupidchicken.com>
6332
6333 * keyboard.c (Ftop_level): Doc fix.
6334
63352008-09-06 Eli Zaretskii <eliz@gnu.org>
6336
6337 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6338 minibuffer, don't let lower part of menu invade the echo area.
6339
6340 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6341 "char *q" to access menu text and advance through it. Revert the
6342 change that displayed ">" instead of ASCII character 0x10.
6343
63442008-09-05 Eli Zaretskii <eliz@gnu.org>
6345
6346 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6347 toggle boxes and radio buttons on MS-DOS as well.
6348
63492008-09-05 Kenichi Handa <handa@m17n.org>
6350
6351 * composite.c (autocmp_chars): Check lookback count.
6352 (composition_compute_stop_pos): Set cmp_it->lookback.
6353 (composition_reseat_it): Check lookback count.
6354 (struct position_record): New struct.
6355 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6356 (find_automatic_composition): New function.
6357 (composition_adjust_point): Use find_automatic_composition.
6358
6359 * dispextern.h (struct composition_it): New member lookback.
6360
63612008-09-02 Chong Yidong <cyd@stupidchicken.com>
6362
6363 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6364 if moving by a single line.
6365
63662008-09-02 Andreas Schwab <schwab@suse.de>
6367
6368 * xterm.c (x_delete_display): Fix merge error.
6369
6370 * fileio.c (Fexpand_file_name): Remove unused variables.
6371
63722008-09-02 Eli Zaretskii <eliz@gnu.org>
6373
6374 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6375 storage on all platforms, not just on DOS_NT.
6376
63772008-09-02 Jason Rumney <jasonr@gnu.org>
6378
b8ff72fa
SM
6379 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6380 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6381
63822008-09-01 Chong Yidong <cyd@stupidchicken.com>
6383
6384 * xfaces.c (Finternal_set_alternative_font_family_alist)
6385 (Finternal_set_alternative_font_registry_alist): Properly copy
6386 entire alist structure.
6387
63882008-09-01 Kenichi Handa <handa@m17n.org>
6389
d66c0241 6390 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6391 representative chars of the script is a vector.
d66c0241
JB
6392 (ftfont_list): Handle the case where the representative chars of
6393 the script is a vector.
aac0c6e3
MR
6394
6395 * character.c (syms_of_character): Docstring of
6396 script-representative-chars fixed.
6397
63982008-08-31 Eli Zaretskii <eliz@gnu.org>
6399
6400 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6401 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6402 the menu. Allocate larger buffer for `text', to account for
6403 possible ^C characters.
6404
64052008-08-31 Martin Rudalics <rudalics@gmx.at>
6406
6407 * xdisp.c (prepare_menu_bars): Don't call
6408 Vwindow_size_change_functions with arg Qt.
6409
64102008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6411
6412 * font.h (font_range):
6413 * fileio.c (report_file_error):
46e722a9
SM
6414 * composite.c (composition_update_it): Yet another int/Lisp_Object
6415 mixup (YAILOM).
aac0c6e3
MR
6416
64172008-08-30 Glenn Morris <rgm@gnu.org>
6418
6419 * data.c (Fmake_variable_frame_local): Doc fix.
6420
6421 * frame.c (Fmodify_frame_parameters): Doc fix.
6422
64232008-08-30 Eli Zaretskii <eliz@gnu.org>
6424
6425 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6426 needed by GetTokenInformation.
6427 (w32_system_process_attributes): Check return values of all system
6428 APIs.
6429
6430 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6431 only when the state changes.
6432 (IT_update_begin, IT_update_end): Add termscript trace.
6433
6434 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6435 clipboard is unavailable. Set dst to NULL if it doesn't point to
6436 malloc'ed data.
6437 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6438 passing random values to xfree.
6439
6440 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6441 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6442
64432008-08-29 Jason Rumney <jasonr@gnu.org>
6444
6445 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6446
64472008-08-29 Eli Zaretskii <eliz@gnu.org>
6448
6449 * composite.c (fill_gstring_body): Avoid compiler warnings.
6450
6451 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6452 LGLYPH_SET_CODE to avoid compiler warnings.
6453
2ae37cf0 6454 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6455
6456 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6457
6458 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6459 LGLYPH_SET_CODE.
6460
64612008-08-29 Kenichi Handa <handa@m17n.org>
6462
6463 * fileio.c (report_file_error): Don't downcase the first character
6464 of errstring if it is still unibyte.
6465
64662008-08-29 Kenichi Handa <handa@m17n.org>
6467
6468 These changes are to re-implement the automatic composition so
6469 that it doesn't use text properties.
6470
6471 * Makefile.in (ftfont.o): Depend on composite.h.
6472 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6473
6474 * character.h (Vunicode_category_table): Extern it.
6475
6476 * character.c (Vunicode_category_table): New variable.
6477 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6478
6479 * chartab.c (optimize_sub_char_table): Perform more greedy
6480 optimization.
6481
b8ff72fa
SM
6482 * composite.h (enum composition_method):
6483 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6484 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6485 (Vcomposition_function_table): Extern it.
6486 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6487 (composition_gstring_put_cache, composition_gstring_from_id)
6488 (composition_gstring_p, composition_gstring_width)
6489 (composition_compute_stop_pos, composition_reseat_it)
6490 (composition_update_it, composition_adjust_point): Extern them.
6491 (Fcomposition_get_gstring): EXFUN it.
6492
d66c0241 6493 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6494 (Vcomposition_function_table)
6495 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6496 (gstring_hash_table, gstring_work, gstring_work_headers):
6497 New variables.
aac0c6e3
MR
6498 (gstring_lookup_cache, composition_gstring_put_cache)
6499 (composition_gstring_from_id, composition_gstring_p)
6500 (composition_gstring_width, fill_gstring_header)
6501 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6502 (composition_reseat_it, composition_update_it)
b8ff72fa 6503 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6504 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6505 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6506 Defsubr compostion_get_gstring.
6507
6508 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6509 cmp_id.
6510 (struct glyph_string): Delete the member gidx. New members
6511 cmp_id, cmp_from, and cmp_to.
6512 (enum it_method): Delete GET_FROM_COMPOSITION.
6513 (struct composition_it): New struct.
6514 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6515 Delete c, len, cmp_id, cmp_len in u.comp.
6516
6517 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6518 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6519 (enum lglyph_indices): Likewise.
b8ff72fa 6520 (font_range): Adjust extern.
aac0c6e3
MR
6521 (font_fill_lglyph_metrics): Extern it.
6522
6523 * font.c (QCf): New variable.
6524 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6525 (font_prepare_composition): Delete this function.
6526 (font_range): Type and arguments changed.
6527 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6528 (font_fill_lglyph_metrics): New function.
b8ff72fa 6529 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6530 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6531 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6532 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6533
6534 * fontset.h (font_for_char): Extern it.
6535
6536 * fontset.c (font_for_char): New function.
6537
6538 * ftfont.c: Include composite.h.
6539 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6540 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6541
6542 * indent.c: Include composite.h and dispextern.h.
6543 (check_composition): Delete this function.
6544 (scan_for_column): Handle composition by
6545 composition_compute_stop_pos, composition_reseat_it, and
6546 composition_update_it.
6547 (compute_motion): Likewise.
6548 (Fvertical_motion): Fix checking of composition.
6549
6550 * keyboard.c (adjust_point_for_property): Check composition by
6551 composition_adjust_point.
6552
b8ff72fa 6553 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6554 struct glyph_string.
6555
b8ff72fa
SM
6556 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6557 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6558 struct glyph.
6559 (produce_composite_glyph): Likewise.
6560
b8ff72fa
SM
6561 * w32term.c (x_draw_composite_glyph_string_foreground):
6562 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6563 (x_draw_glyph_string): Likewise.
6564
6565 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6566 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6567
6568 * xdisp.c: Include font.h.
6569 (it_props): Delete the entry for Qauto_composed.
6570 (init_iterator): Initialize it->cmp_it.id to -1.
6571 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6572 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6573 (handle_auto_composed_prop): Delete it.
6574 (handle_composition_prop): Handle only static composition.
6575 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6576 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6577 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6578 (pop_it): Likewise.
6579 (get_next_element): Delete next_element_from_composition.
6580 (CHAR_COMPOSED_P): New macro.
6581 (get_next_display_element): For automatic composition, get a face
6582 from the font in the glyph-string.
6583 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6584 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6585 (next_element_from_string): Check if the character at the current
6586 position is composed by CHAR_COMPOSED_P.
6587 (next_element_from_buffer): Likewise.
d66c0241
JB
6588 (next_element_from_composition): Adjust for the change of struct it.
6589 Update it->cmp_it.
b8ff72fa
SM
6590 (dump_glyph): Adjust for the change of struct glyph.
6591 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6592 it and struct glyph. Don't handle automatic composition here.
6593 (fill_gstring_glyph_string): New function.
6594 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6595 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6596 (BUILD_GSTRING_GLYPH_STRING): New macro.
6597 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6598 automatic composition.
b8ff72fa 6599 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6600 struct glyph.
b8ff72fa 6601 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6602
b8ff72fa 6603 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6604 the change of struct glyph_string.
6605 (x_draw_glyph_string): Likewise.
6606
66072008-08-29 Glenn Morris <rgm@gnu.org>
6608
6609 * buffer.c (word-wrap): Doc fix.
6610 * xdisp.c (truncate-partial-width-windows): Doc fix.
6611 Increase default to 50.
6612
66132008-08-29 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * xdisp.c (update_tool_bar_unwind): New function.
6616 (update_tool_bar): Temporarily set selected frame before building
6617 tool-bar items.
6618
66192008-08-28 Michael Albinus <michael.albinus@gmx.de>
6620
6621 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6622 snprintf, respectively.
6623 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6624
66252008-08-28 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6628 LDFLAGS to GNUstep CC invocation.
6629
66302008-08-27 Chong Yidong <cyd@stupidchicken.com>
6631
6632 * indent.c (Fvertical_motion): Revert last change. Handle the
6633 general case where we are moving forward, and PT spans multiple
6634 screen lines.
6635
6636 * eval.c (find_handler_clause): Temporarily increase
6637 max-lisp-eval-depth while printing the backtrace buffer, to
6638 guarantee that help-mode code can run.
6639
66402008-08-27 Eli Zaretskii <eliz@gnu.org>
6641
6642 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6643 colors under -rv.
6644 (IT_set_frame_parameters): Don't swap foreground and background
6645 colors if `(reverse . t)' is present in the frame properties.
6646 (internal_terminal_init): Call init_frame_faces only for the
6647 initial frame.
6648
66492008-08-27 Andreas Schwab <schwab@suse.de>
6650
6651 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6652
66532008-08-27 Andreas Schwab <schwab@suse.de>
6654
6655 * search.c (search_buffer): Set char_base to zero only at the end.
6656
66572008-08-27 Kenichi Handa <handa@m17n.org>
6658
b8ff72fa 6659 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6660
66612008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6662
6663 * xterm.c (x_term_init): Temporarily hide the partially
6664 initialized terminal while calling vendor-specific-keysyms.
6665
66662008-08-26 Eli Zaretskii <eliz@gnu.org>
6667
6668 * msdos.c (internal_terminal_init): Most initializations done only
6669 once, especially initial_screen_colors[] and termscript open.
6670
66712008-08-26 Chong Yidong <cyd@stupidchicken.com>
6672
6673 * eval.c (Fcondition_case): Doc fix.
6674
6675 * widgetprv.h (EmacsFramePart): Change font member to the new font
6676 struct.
6677
6678 * widget.c: Include character.h and font.h for XSETFONT.
6679 (setup_frame_gcs): Compute X font id from font struct, just once.
6680
66812008-08-26 Eli Zaretskii <eliz@gnu.org>
6682
6683 * term.c (get_named_tty): Fix last change.
6684
66852008-08-26 Chong Yidong <cyd@stupidchicken.com>
6686
6687 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6688 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6689
66902008-08-25 Eli Zaretskii <eliz@gnu.org>
6691
6692 * frame.c (do_switch_frame): Mark previously displayed frame as
6693 obscured for FRAME_MSDOS_P frames as well.
6694
66952008-08-24 Eli Zaretskii <eliz@gnu.org>
6696
6697 * frame.c (make_terminal_frame): Initialize f->terminal,
6698 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6699 Set the top frame to newly created frame.
6700 (Fmake_terminal_frame): Reuse the_only_display_info.
6701
6702 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6703 estimating available memory.
6704
b97439ce 67052008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6706
6707 * nsterm.m (ns_draw_window_cursor): Don't call
6708 NSDisableScreenUpdates and NSEnableScreenUpdates on
6709 non-NS_IMPL_COCOA systems.
6710
67112008-08-23 Andreas Schwab <schwab@suse.de>
6712
6713 * process.c (procfs_system_process_attributes): Fix use of
6714 uninitialized variables.
6715
67162008-08-23 Eli Zaretskii <eliz@gnu.org>
6717
6718 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6719
6720 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6721 calling tty-set-up-initial-frame-faces.
6722
b8ff72fa
SM
6723 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6724 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6725
6726 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6727 addition to output_termcap.
6728
6729 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6730
6731 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6732 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6733 highlight.
6734
6735 * process.c [!subprocesses]: Define QCname.
6736 (syms_of_process): Intern and staticpro it.
6737
6738 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6739 Adjust for changes in encoding/decoding routines.
6740 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6741 encode_coding and decode_coding.
6742
b8ff72fa 6743 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6744
6745 * dosfns.c: Include frame.h before termhooks.h.
6746 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6747 variable termscript.
6748
6749 * s/msdos.h (USER_FULL_NAME): Define.
6750 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6751
6752 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6753 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6754 pw->pw_gecos.
6755
6756 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6757 SELECTED_FRAME as additional (1st) argument.
6758 (tty_read_avail_input): Handle output_msdos_raw in
6759 addition to output_termcap.
6760
6761 * msdos.c: Include frame.h before termhooks.h.
6762 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6763 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6764 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6765 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6766 (IT_set_terminal_modes, IT_reset_terminal_modes)
6767 (IT_set_frame_parameters): Use tty->termscript instead of a global
6768 variable termscript.
6769 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6770 global variable terminal_coding. Don't refer to
6771 Vnonascii_translation_table.
6772 (internal_terminal_init): Set Vwindow_system in current_kboard.
6773 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6774 Announce date and time of session start, if termscript is open.
6775 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6776 term.c:init_tty). Open termscript only of not already open.
6777 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6778 here instead of dos_ttraw. Don't initialize display if this is an
6779 initial tty. Don't set FRAME_FONT.
6780 (Vwindow_system_version): Bump to 23.
6781 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6782 is available, set up mouse_position_hook.
6783 (dos_ttraw, IT_set_terminal_modes): If called with initial
6784 terminal, do nothing.
6785 (IT_set_frame_parameters): Handle the Qtty_type frame
6786 parameter by calling internal_terminal_init.
6787 (dos_set_window_size, show_mouse_face)
6788 (clear_mouse_face, IT_note_mode_line_highlight)
6789 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6790 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6791 (initialize_msdos_display): New function.
6792 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6793 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6794 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6795 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6796 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6797 (request_sigio, unrequest_sigio): Don't define, now defined on
6798 sysdep.c.
6799 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6800
6801 * term.c [MSDOS]: Include msdos.h.
6802 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6803 conditional to DOS_NT. Allow only one call to this function in a
6804 session. Don't allocate a new struct tty_display_info; instead,
6805 reuse the_only_display_info. Call get_tty_size to get screen
6806 dimensions. Call init_baud_rate to set bad_rate.
6807 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6808 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6809 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6810 (get_tty_terminal, get_named_tty, Ftty_type)
6811 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6812 output_termcap.
b8ff72fa
SM
6813 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6814 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6815 only when subprocesses are supported.
aac0c6e3
MR
6816
6817 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6818 f->output_data.x.
6819 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6820 terminal devices.
6821
5582fbc7 6822 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6823 x_output.
6824 (FRAME_FONT): Use output_data.tty.
6825 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6826 (struct x_display_info): Rename from display_info. Update all users in
6827 msdos.c.
aac0c6e3 6828 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6829 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6830 (dos_ttraw): Update prototype.
6831
6832 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6833 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6834
68352008-08-23 Jason Rumney <jasonr@gnu.org>
6836
6837 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6838 (fn_TIFFSetDirectory): New library function used.
6839 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6840 (tiff_load): Use :index to select among multiple images. Set count
6841 property when multiple images exist.
6842 (gif_format): Use :index, not :image.
6843
68442008-08-23 Chong Yidong <cyd@stupidchicken.com>
6845
6846 * xdisp.c (try_scrolling): Check INT_MAX instead of
6847 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6848 to obtain INT_MAX.
6849
68502008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6851
6852 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6853
68542008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6855
6856 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6857 GNUstep library location.
6858
68592008-08-21 Chong Yidong <cyd@stupidchicken.com>
6860
6861 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6862 before using it.
6863
6864 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6865
68662008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6867
6868 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6869 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6870 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6871 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6872 (EmacsApp-cursor_blink_handler): Remove declaration.
6873 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6874 match 01 Feb 2008 changes in xterm.c.
6875 (ns_read_socket): Add cast to avoid warning.
6876 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6877 GNUstep.
6878
68792008-08-20 Chong Yidong <cyd@stupidchicken.com>
6880
6881 * xselect.c (x_get_foreign_selection): Return nil if desired
6882 selection could not be obtained, instead of signalling an error.
6883
68842008-08-20 David Reitter <david.reitter@gmail.com>
6885
6886 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6887 * nsterm.m: Remove ns-specific code for cursor blinking.
6888 (ns_draw_window_cursor): Clear cursor properly rather than
6889 redrawing the area. Respect width of bar cursors.
6890 These changes enable the use of generic blink-cursor-mode and
6891 generic cursor types in NS and support smooth cursor movements (do
6892 not blink off after command).
6893 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6894 Nextstep, too.
6895
68962008-08-19 Kenichi Handa <handa@m17n.org>
6897
6898 * font.c (Vfont_log_deferred): New variable.
6899 (font_add_log): Check Vfont_log_deferred.
6900 (font_deferred_log): New function.
6901
6902 * font.h (font_deferred_log): Extern it.
6903
6904 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6905 for sorting.
6906 (face_for_char): Use deferred log.
6907
69082008-08-18 Kenichi Handa <handa@m17n.org>
6909
6910 * fontset.c (face_for_char): Add font log.
6911
6912 * font.c (font_add_log): Add the font properties :script, :lang,
6913 and :otf in the log.
6914
69152008-08-17 Chong Yidong <cyd@stupidchicken.com>
6916
6917 * xdisp.c: Remove dead code.
6918 (handle_invisible_prop, next_overlay_string): Defer call to
6919 setup_for_ellipsis.
6920 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6921
69222008-08-15 Chong Yidong <cyd@stupidchicken.com>
6923
6924 * xfaces.c (lookup_derived_face): Properly handle possible zero
6925 return value of get_lface_attributes.
6926 (merge_faces): Don't tell lookup_derived_face to signal an error
6927 if face is not found.
6928
6929 * dired.c (Fdirectory_files): Doc fix.
6930
6931 * process.c (make_process): Initialize kill_without_query struct
6932 member.
6933
69342008-08-15 Eli Zaretskii <eliz@gnu.org>
6935
6936 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6937 Alternative calculation of totphys for Visual Studio 6.
6938
6939 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6940
6941 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6942 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6943 All users changed.
6944 (stat): Only root directory passed to GetDriveType. Allow RAM
6945 disk as well as local fixed disk when w32-get-true-file-attributes
6946 is set to `local'.
6947 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6948 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6949 (w32_cached_id, w32_add_to_cache): New functions.
6950 (get_name_and_id): Look account names in the cache before calling
6951 lookup_account_sid.
6952 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6953 New initialization flags.
6954 (globals_of_w32): Initialize them to zero.
6955 (w32_system_process_attributes): Use w32_cached_id and
6956 w32_add_to_cache.
6957
69582008-08-14 Lawrence Mitchell <wence@gmx.li>
6959
6960 * lread.c (Fread_char, Fread_char_exclusive): If no character
6961 event is read before timeout is reached, return nil, rather than
6962 converting to a number.
6963
69642008-08-14 Chong Yidong <cyd@stupidchicken.com>
6965
6966 * fns.c (use_dialog_box): Doc fix.
6967
6968 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6969 on OS X.
6970
69712008-08-13 Chong Yidong <cyd@stupidchicken.com>
6972
6973 * frame.c (Qns_parse_geometry): New var.
6974 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6975
69762008-08-11 Chong Yidong <cyd@stupidchicken.com>
6977
6978 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6979 space character in calculating tabs.
6980
69812008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6982
6983 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6984
69852008-08-10 Glenn Morris <rgm@gnu.org>
6986
6987 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6988 silence gcc "limited range of data type" warnings in some
6989 make_fixnum_or_float calls.
6990
69912008-08-09 Eli Zaretskii <eliz@gnu.org>
6992
6993 * w32.c (w32_system_process_attributes): If the process does not
6994 exist, return nil.
6995
6996 * w32.c: Include thelp32.h, psapi.h and coding.h.
6997 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6998 declarations.
6999 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7000 (Process32Next_Proc): New typedefs.
7001 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7002 (g_b_init_process32_next, g_b_init_open_thread_token)
7003 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7004 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7005 (g_b_init_get_process_working_set_size)
7006 (g_b_init_global_memory_status_ex): New static variables.
7007 (globals_of_w32): Initialize them.
7008 (create_toolhelp32_snapshot, process32_first, process32_next)
7009 (open_thread_token, impersonate_self, revert_to_self)
7010 (get_process_memory_info, get_process_working_set_size)
7011 (global_memory_status, global_memory_status_ex): New wrapper
7012 functions.
7013 (w32_list_system_processes, w32_system_process_attributes)
7014 (enable_privilege, restore_privilege, ltime, process_times):
7015 New functions.
7016 (convert_time_raw): New function.
7017 (convert_time): Remove conversion of FILETIME into time in 100
7018 nsec units, call convert_time_raw instead.
7019
7020 * process.h (w32_list_system_processes, w32_system_process_attributes):
7021 Add prototypes.
7022 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7023 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7024 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7025 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7026
7027 * process.c (Fsystem_process_attributes): Doc fix.
7028
70292008-08-08 Chong Yidong <cyd@stupidchicken.com>
7030
7031 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7032 a continued multi-char glyph; if so, advance to the actual glyph.
7033
70342008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7035
7036 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7037
7038 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7039 (.m.o): Use it.
7040 * config.in: Regenerate.
7041
70422008-08-07 Chong Yidong <cyd@stupidchicken.com>
7043
7044 * xdisp.c (redisplay_window): Revert last change.
7045 (try_window): Check bottom scroll margin too.
7046
70472008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7048
7049 * config.in: Regenerate.
7050
7051 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7052 -list-load-path-shadows'.
7053 (nsgui.h): Reduce number of things depending on it.
7054
70552008-08-06 Chong Yidong <cyd@stupidchicken.com>
7056
7057 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7058 instead of window-end which does the wrong thing at eob.
7059 (try_cursor_movement): Minor optimization.
7060 (redisplay_window): If scroll margin is defined, don't assume
7061 window doesn't need scrolling.
7062
70632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7064
7065 * config.in: Regenerate.
7066
7067 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7068 (mostlyclean): Don't delete *.d under NS.
7069
7070 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7071
70722008-08-06 Kenichi Handa <handa@m17n.org>
7073
7074 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7075
70762008-08-06 Andreas Schwab <schwab@suse.de>
7077
7078 * config.in: Regenerate.
7079
70802008-08-05 Chong Yidong <cyd@stupidchicken.com>
7081
7082 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7083 forcing a window start.
7084
7085 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7086 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7087
70882008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7089
7090 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7091 argument.
7092
70932008-08-05 Juanma Barranquero <lekktu@gmail.com>
7094
7095 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7096 <scroll-down-aggressively, before-change-functions>:
7097 <after-change-functions>: Reflow docstrings.
7098
70992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7100 Ken Raeburn <raeburn@gnu.org>
7101
7102 Dock menu customization, based on a patch by Ken Raeburn, plus some
7103 other fixes.
7104 * nsmenu.m (dockMenu): New variable.
7105 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7106
7107 * nsterm.h (dockMenu): Declare.
7108
7109 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7110 (ns_term_init): Initialize dockMenu.
7111 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7112 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7113 left.
7114
7115 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7116
71172008-08-04 Chong Yidong <cyd@stupidchicken.com>
7118
7119 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7120
7121 * config.in: Regenerate.
7122
71232008-08-04 Seiji Zenitani <zenitani@mac.com>
7124
7125 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7126
71272008-08-04 Chong Yidong <cyd@stupidchicken.com>
7128
7129 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7130
71312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7132
7133 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7134
7135 * keyboard.h: Comment an #endif.
7136
7137 * lisp.h (have_menus_p): Adjust comment.
7138
7139 * menu.c (find_and_return_menu_selection): Fix comparison with
7140 client_data.
7141
7142 * nsmenu.m (popup_activated_flag): New variable.
7143 (popup_activated): New function.
7144 (menu-or-popup-active-p): New exported lisp definition.
7145 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7146 when popup done.
7147 (ns_popup_dialog): Set popup_activated_flag.
7148
7149 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7150 version for GNUstep (handled by conditional typedef in nsterm.m).
7151 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7152 in rgb.txt).
7153
7154 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7155
7156 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7157
7158 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7159
7160 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7161 shortcircuit if popup_activated like GTK and X toolkit.
7162
7163 * m/inter386.h: Change DARWIN to DARWIN_OS.
7164
7165 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7166 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7167 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7168 comment on NO_SOCK_SIGIO.
7169
71702008-08-03 Chong Yidong <cyd@stupidchicken.com>
7171
7172 * nsterm.m (windowDidResize): Remove stopModal call.
7173
71742008-08-03 Andreas Schwab <schwab@suse.de>
7175
7176 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7177 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7178
71792008-08-02 Chong Yidong <cyd@stupidchicken.com>
7180
7181 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7182 Don't use uninitialized pointer variable when using getrlimit.
7183
71842008-08-02 Jason Rumney <jasonr@gnu.org>
7185
7186 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7187
71882008-08-02 Eli Zaretskii <eliz@gnu.org>
7189
7190 * alloc.c (NSTATICS): Bump to 0x640.
7191
7192 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7193
7194 * lisp.h: Add prototype for directory_files_internal.
7195
7196 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7197 New functions.
7198 (syms_of_process): Defsubr them. Add initializations for various
7199 Q* symbols used in procfs_system_process_attributes.
7200 (procfs_list_system_processes, procfs_system_process_attributes)
7201 [HAVE_PROCFS]: New functions.
7202 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7203 (procfs_get_total_memory): New functions.
7204
72052008-08-01 Juanma Barranquero <lekktu@gmail.com>
7206
7207 * xfaces.c (Fx_load_color_file): Fix previous change;
7208 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7209
72102008-08-01 Michael Albinus <michael.albinus@gmx.de>
7211
7212 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7213
72142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7215
7216 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7217
72182008-08-01 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7221
7222 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7223 define NSApplicationDelegateReplySuccess.
7224 (EmacsView -converstationIdentifier): Use long instead of
7225 NSInteger for GNUstep, since it doesn't have NSInteger.
7226
7227 * xmenu.c: Revert last change.
7228
7229 * keyboard.h: Fix last change.
7230
72312008-08-01 Juanma Barranquero <lekktu@gmail.com>
7232
7233 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7234 on Windows.
7235
72362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7237
7238 Warning clearing and clean-up in NS port.
7239 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7240 Add prototypes.
7241 * nsgui.h (FACE_DEFAULT): Remove, unused.
7242 (XGCValues): Change colors to unsigned long.
7243 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7244 nsterm.m.
7245 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7246 (ns_list_fonts): Remove, unused.
7247 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7248 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7249 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7250 (nsfont_draw): Compare face colors to 0, not nil.
7251 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7252 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7253 (-addSubmenuWithTitle:): Use NSMenuItem class.
7254 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7255 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7256 (ns_clip_to_row): Make gc arg a BOOL.
7257 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7258 ns_clip_to_row() call.
7259 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7260 used). Cast FRAME_FONT assignments.
7261 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7262 (ns_string_to_lispmod): Change arg to const char.
7263 (ns_term_init): Use NSMenuItem class.
7264 (EmacsApp -openFile:): Move to different section of file.
7265 (EmacsApp -application:openFiles:): Don't return a value, call
7266 -replyToOpenOrPrint:.
7267 (EmacsView -keyDown:): Fix up cast.
7268 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7269 (EmacsView -menuDown:): Cast tag in call to
7270 find_and_call_menu_selection().
7271 (ns_list_fonts): Remove, unused.
7272 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7273 (ns_fontname_to_xlfd): Make static.
7274 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7275 Remove prototypes (now in keyboard.h).
7276 (next_menubar_widget_id): Remove, unused.
7277 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7278 Remove prototypes (now in keyboard.h).
7279 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7280
72812008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7282
7283 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7284 (floatfns.o): Depend on syssignal.h.
7285 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7286
7287 * systty.h: Fix previous change that removed BSD_TERMIOS.
7288 Add comments to #ifdefs.
7289
72902008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7291
7292 * w32fns.c (w32-load-color-file): Remove.
7293 (x-open-connection): Use renamed Fx_load_color_file.
7294 * xfaces.c (x-load-color-file): Add.
7295 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7296 Emacs.clr.
7297 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7298
72992008-07-31 Michael Albinus <michael.albinus@gmx.de>
7300
7301 * dbusbind.c (Fdbus_call_method_asynchronously)
7302 (Fdbus_method_error_internal): New defuns.
7303 (xd_read_message): Handle also reply messages.
7304 (Vdbus_registered_functions_table): Extend docstring.
7305
73062008-07-31 Juanma Barranquero <lekktu@gmail.com>
7307
7308 * keyboard.c (gobble_input): Fix previous change.
7309
73102008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7311
7312 * bitmaps/README:
7313 * xfns.c:
7314 * termcap.c:
7315 * term.c:
7316 * syswait.h:
7317 * systty.h:
7318 * systime.h:
7319 * syssignal.h:
7320 * sysdep.c:
7321 * process.h:
7322 * process.c:
7323 * print.c:
7324 * ndir.h:
7325 * lread.c:
7326 * keyboard.c:
7327 * getpagesize.h:
7328 * floatfns.c:
7329 * fileio.c:
7330 * emacs.c:
7331 * doc.c:
7332 * dispnew.c:
7333 * dired.c:
7334 * data.c:
7335 * callproc.c:
7336 * buffer.c:
7337 * README:
7338 * Makefile.in:
7339 * s/template.h:
7340 * s/msdos.h:
7341 * m/vax.h: Remove VMS support.
7342 * s/vms.h:
7343 * vlimit.h:
7344 * uaf.h:
7345 * temacs.opt:
7346 * param.h:
7347 * ioctl.h: Remove file.
7348
73492008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7350
7351 * s/ms-w32.h (MULTI_KBOARD): Remove.
7352 * xterm.c:
7353 * xselect.c:
7354 * xfns.c:
7355 * window.c:
7356 * w32term.c:
7357 * w32fns.c:
7358 * terminal.c:
7359 * termhooks.h:
7360 * term.c:
7361 * sysdep.c:
7362 * keyboard.h:
7363 * keyboard.c:
7364 * frame.h:
7365 * frame.c:
7366 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7367 * config.in: Regenerate.
7368
73692008-07-30 Jason Rumney <jasonr@gnu.org>
7370
7371 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7372
7373 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7374 (w32font_open_internal): Get unicode version of textmetrics.
7375 Don't enable or disable glyph indices here.
7376 (w32font_open): Disable use of glyph indices.
7377
7378 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7379
73802008-07-30 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * minibuf.c (Vread_buffer_function): Doc fix.
7383
73842008-07-30 John Paul Wallington <jpw@pobox.com>
7385
7386 * minibuf.c (read_buffer_completion_ignore_case): New var.
7387 (Fread_buffer): Use it.
7388
73892008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7390
7391 * systty.h (sensemode): Remove empty #if. Remove reference to
7392 BSD_TERMIOS, unused.
7393
7394 * sysdep.c: Remove reference to DGUX.
7395 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7396
7397 * config.in: Regenerate.
7398
73992008-07-30 Jason Rumney <jasonr@gnu.org>
7400
7401 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7402
74032008-07-29 Jason Rumney <jasonr@gnu.org>
7404
7405 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7406 is populated.
7407 (uniscribe_encode_char): Always use uniscribe.
7408 Avoid using context if cache is populated.
7409
74102008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7411
7412 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7413 open menu.
7414
7415 * gtkutil.c (menu_nav_ended): Remove.
7416 (create_menus): Remove signal connect for menu_nav_ended.
7417
74182008-07-28 Chong Yidong <cyd@stupidchicken.com>
7419
7420 * xdisp.c (redisplay_window): Check return value of
7421 compute_window_start_on_continuation_line before forcing a window
7422 start.
7423
74242008-07-28 Jason Rumney <jasonr@gnu.org>
7425
7426 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7427
7428 * w32term.c (w32_enable_unicode_output, cleartype_active):
7429 Remove obsolete display options.
7430 (x_draw_glyph_string_background): Don't use old cleartype_active
7431 workaround.
7432 (w32_initialize): Remove cleartype_active initialization.
7433 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7434
74352008-07-28 Andreas Schwab <schwab@suse.de>
7436
7437 * lisp.h (init_weak_hash_tables, syms_of_font)
7438 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7439 (remove_hash_entry): Don't declare.
7440 * eval.c (maybe_call_debugger): Make static and move before use.
7441 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7442 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7443 * xterm.h (x_set_frame_alpha): Declare.
7444
74452008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7446
7447 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7448 (create_menus): Connect selection-done to menu_nav_ended.
7449
74502008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7451
7452 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7453 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7454 parameter with read of 'alpha' one.
7455 (Qns_frame_parameter): Remove.
5582fbc7 7456 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7457 (next-selection-coding-system, Vselection_coding_system)
7458 (Vnext_selection_coding_system): Drop.
7459
74602008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7461
7462 * nsfns.m (do-applescript, do_applescript): Rename to
7463 ns-do-applescript, ns_do_applescript, and move within file.
7464
74652008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7466
7467 Remove support for Mac Carbon.
7468 * mactoolbox.c:
7469 * macterm.h:
7470 * macterm.c:
7471 * macselect.c:
7472 * macmenu.c:
7473 * macgui.h:
7474 * macfns.c:
7475 * mac.c: Remove file.
7476 * s/darwin.h:
7477 * m/intel386.h:
7478 * xfaces.c:
7479 * xdisp.c:
7480 * window.c:
7481 * tparam.c:
7482 * termhooks.h:
7483 * termcap.c:
7484 * term.c:
7485 * syssignal.h:
7486 * sysselect.h:
7487 * sysdep.c:
7488 * process.c:
7489 * lread.c:
7490 * lisp.h:
7491 * keyboard.c:
7492 * image.c:
7493 * fringe.c:
7494 * frame.h:
7495 * frame.c:
7496 * fontset.c:
7497 * font.h:
7498 * font.c:
7499 * fns.c:
7500 * fileio.c:
7501 * emacs.c:
7502 * dispnew.c:
7503 * dispextern.h:
7504 * config.in:
7505 * atimer.c:
2ae37cf0 7506 * Makefile.in: Remove code for Carbon.
aac0c6e3 7507
f0131492 75082008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7509
7510 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7511
75122008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7513
7514 * macterm.h (kCGBitmapByteOrder32Host): New define for
7515 non-universal SDKs.
7516
7517 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7518 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7519
7520 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7521 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7522
75232008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7524
7525 * w32inevt.c: Include dispextern.h.
7526
75272008-07-26 Andreas Schwab <schwab@suse.de>
7528
7529 * print.c (print_object): Fix off-by-one in last change.
7530
75312008-07-25 Juanma Barranquero <lekktu@gmail.com>
7532
7533 * term.c (syms_of_term): Don't initialize default_orig_pair,
7534 default_set_foreground and default_set_background on Windows.
7535
75362008-07-25 Jason Rumney <jasonr@gnu.org>
7537
7538 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7539 ScriptItemize. Clean up return value checking. Remove unused
7540 variables.
7541 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7542 shaping engine.
7543
7544 * w32font.c (w32font_has_char): Handle the case where we can't
7545 determine the script for a character.
7546
75472008-07-25 Chong Yidong <cyd@stupidchicken.com>
7548
7549 * term.c (syms_of_term): Initialize default_orig_pair,
7550 default_set_foreground, and default_set_background.
7551
7552 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7553 clash (bug#86).
7554 (getloadavg): Callers changed.
7555
7556 * image.c (svg_load_image): Fix last change.
7557 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7558 image size is valid. Use g_object_unref instead of deprecated
7559 rsvg_handle_free to free rsvg handle.
7560 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7561
75622008-07-25 Jason Rumney <jasonr@gnu.org>
7563
7564 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7565 surrogates before looking up glyph index.
7566 (w32font_text_extents): Encode as surrogates if falling back to
7567 functions that need UTF-16 wide chars.
7568
7569 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7570 BMP as surrogates before looking up glyph index.
7571
75722008-07-25 Chong Yidong <cyd@stupidchicken.com>
7573
7574 * image.c (svg_load_image): Check for failure in return value of
7575 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7576
75772008-07-25 Jason Rumney <jasonr@gnu.org>
7578
7579 * w32font.c (Fx_select_font): Reverse sense of second arg.
7580
75812008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7582
7583 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7584 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7585
7586 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7587 (PURESIZE): Use it.
7588
75892008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7590
7591 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7592 * m/alpha.h (TEXT_END):
7593 * m/ibmrs6000.h (TEXT_END):
7594 * m/macppc.h (TEXT_END):
7595 * s/darwin.h (TEXT_END):
7596 * s/msdos.h (TEXT_END): Remove, unused.
7597 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7598 * s/cygwin.h: Remove comment.
7599
7600 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7601 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7602 * m/intel386.h (DOT_GLOBAL_START):
7603 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7604 (USG): Remove, file not used on USG platforms.
7605
7606 * Makefile.in (HAVE_X11): Remove empty #else.
7607
76082008-07-24 Andreas Schwab <schwab@suse.de>
7609
7610 * fileio.c (Finsert_file_contents): Properly adjust undo list
7611 after format conversion.
7612
76132008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7614
7615 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7616 (menu_nav_ended): Remove.
7617 (create_menus): Remove signal connect for menu_nav_ended.
7618 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7619 create_menus.
7620 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7621
76222008-07-23 Jason Rumney <jasonr@gnu.org>
7623
7624 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7625 with opened font.
7626 (w32font_open): Set font type to gdi.
7627
7628 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7629
76302008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7631
7632 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7633 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7634 defines it.
7635 * unexec.c (ADDR_CORRECT): Define unconditionally.
7636
7637 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7638
7639 * unexec.c: Remove code depending on !COFF and USG, the file is
7640 not used for such systems.
7641
7642 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7643 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7644 (LD_SWITCH_SYSTEM_1): Remove, update users.
7645
7646 * s/darwin.h (DATA_END):
7647 * m/intel386.h (DATA_END):
7648 * m/ibmrs6000.h (DATA_END):
7649 * m/alpha.h (DATA_END): Remove, unused.
7650
7651 * config.in: Regenerate.
7652 * s/ms-w32.h (subprocesses): Define unconditionally.
7653 * s/template.h (subprocesses): Update comment.
7654 * s/vms.h (subprocesses):
7655 * s/usg5-4.h (subprocesses):
7656 * s/hpux10-20.h (subprocesses):
7657 * s/gnu-linux.h (subprocesses):
7658 * s/cygwin.h (subprocesses):
7659 * s/bsd-common.h (subprocesses):
7660 * s/aix4-2.h (subprocesses):
7661 * s/darwin.h (subprocesses): Do not define, defined by default now.
7662
7663 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7664 Remove all references.
7665 (temacs): Add GNUstep specific ld flags.
7666
7667 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7668 similarly to what X does.
7669
76702008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7671
7672 * nsfns.m (x-list-fonts): Remove.
7673 (syms_of_nsfns): Drop the x-list-fonts declaration.
7674 * nsterm.m: Get rid of remaining "//" comments.
7675
76762008-07-22 Chong Yidong <cyd@stupidchicken.com>
7677
7678 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7679
7680 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7681 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7682 (Fns_own_selection_internal, Fx_disown_selection_internal)
7683 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7684
7685 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7686 ... */' style of docstrings. Doc fixes.
7687
76882008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7689
7690 * terminfo.c (UP, BC, PC): Undo previous change.
7691
7692 * nsfns.m: Rename ns prefixed functions/variables to the
7693 corresponding x versions. Update references.
7694
76952008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7696
7697 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7698
76992008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7700
7701 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7702 Remove forwarding functions.
7703 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7704 non-static.
7705 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7706 non-static.
7707 (ns_frame_parm_handlers): Use the new names.
7708 (syms_of_nsfns): Move to the end of file.
7709
7710 * nsterm.m (syms_of_nsterm): Move to the end of file.
7711
7712 * dispnew.c (init_display): Remove code for X10.
7713
77142008-07-22 Jason Rumney <jasonr@gnu.org>
7715
7716 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7717 bare drive.
7718
77192008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7720
7721 * nsterm.m (syms_of_nsterm): Remove debugging println.
7722
77232008-07-22 David Reitter <david.reitter@gmail.com>
7724
7725 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7726 Carbon implementation of the same functionality: execute arbitrary
7727 AppleScript code.
7728
77292008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7730
7731 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7732 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7733 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7734 (Fx_display_mm_height, Fx_display_mm_width)
7735 (Fx_display_backing_store, Fx_display_visual_class)
7736 (Fx_display_save_under, Fx_open_connection)
7737 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7738 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7739 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7740 (Fx_display_pixel_width, Fx_display_pixel_height)
7741 (Fx_display_usable_bounds, Fx_display_planes)
7742 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7743 ... */' style of docstrings.
7744
77452008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7746
7747 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7748 on this platform.
7749 (mips):
7750 * m/iris4d.h (mips): Do not define.
7751 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7752
7753 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7754
7755 * image.c:
7756 * nsfns.m:
7757 * nsselect.m:
7758 * nsterm.h:
7759 * nsterm.m: Rename ns prefixed functions/variables to the
7760 corresponding x versions. Update references.
7761
7762 * m/ibms390x.h (NO_REMAP): Do not undefine.
7763
7764 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7765
77662008-07-21 Chong Yidong <cyd@stupidchicken.com>
7767
7768 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7769 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7770 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7771 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7772 (Fns_display_mm_height, Fns_display_mm_width)
7773 (Fns_display_backing_store, Fns_display_visual_class)
7774 (Fns_display_save_under, Fns_open_connection)
7775 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7776 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7777 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7778 (Fns_display_pixel_width, Fns_display_pixel_height)
7779 (Fns_display_usable_bounds, Fx_display_planes)
7780 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7781
77822008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7783
7784 * print.c (print_object): Check print_depth before searching for
7785 circularities.
7786
77872008-07-21 Michael Albinus <michael.albinus@gmx.de>
7788
7789 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7790 only sprintf.
7791
77922008-07-21 Kenichi Handa <handa@m17n.org>
7793
7794 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7795
77962008-07-20 Andreas Schwab <schwab@suse.de>
7797
7798 * syntax.c (find_start_pos, find_start_value)
7799 (find_start_value_byte, find_start_begv, find_defun_start)
7800 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7801
78022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7803
7804 * s/sol2-3.h: Insert contents of s/sol2.h.
7805 (LD_SWITCH_SYSTEM): Remove redundant definition.
7806 * s/sol2.h: Remove, unused.
7807
78082008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7809
7810 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7811
78122008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7813
7814 * Makefile.in (ns_appdir): Fix typo in find command.
7815
78162008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7817
7818 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7819
7820 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7821 added not supported anymore.
7822
7823 * s/usg5-4-2.h (LIBS_SYSTEM):
7824 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7825
7826 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7827 * s/lynxos.h (GETPGRP_NO_ARG):
7828 * s/hpux10-20.h (NO_SIOCTL_H):
7829 * s/gnu.h (GETPGRP_NO_ARG):
7830 * s/gnu-linux.h (NO_SIOCTL_H):
7831 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7832 * s/cygwin.h (GETPGRP_NO_ARG):
7833 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7834 (C_DEBUG_SWITCH): Remove duplicate definition.
7835
7836 * m/ibms390.h: Remove boilerplate comments.
7837
7838 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7839
7840 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7841 (wait_reading_process_output): Remove code for SunOS, platform not
7842 supported anymore. Use SOLARIS2 instead of sun.
7843
78442008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7845
7846 * font.c (font_open_by_name): Under NS, default lface height to zero.
7847 (font_open_for_lface): Under NS, set size based on frame fontsize.
7848 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7849 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7850
78512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7852
7853 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7854 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7855 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7856 YES/NO.
7857 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7858 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7859 * Makefile.in (clean): Clear out build destination dir.
7860
78612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7862
7863 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7864 xterm, xselect.
7865 * lisp.h: Remove declaration of hash_remove.
7866 * nsgui.h: Remove redefinitions of hash_remove.
7867 * fns.c (hash_remove): Rename to hash_remove_from_table.
7868
78692008-07-19 Seiji Zenitani <zenitani@mac.com>
7870
7871 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7872 strdup() the family UTF8String before modifying it.
7873
78742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7875
7876 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7877 NS_FACE_BACKGROUND with 0 instead of nil.
7878 * nsfont.m (nsfont_draw): Same.
7879
78802008-07-19 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * nsfns.m (ns_set_background_color): Fix crash.
7883
78842008-07-18 Chong Yidong <cyd@stupidchicken.com>
7885
7886 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7887
78882008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7889
7890 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7891
78922008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7893
7894 * gtkutil.c: Include <config.h> instead of "config.h".
7895
7896 * lisp.h (Foverlay_buffer): Add EXFUN.
7897
7898 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7899 child process to complete child_setup. Undo 2005-09-21 change.
7900
7901 * s/darwin.h: Mention setsid after vfork.
7902
79032008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7904
7905 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7906 Depend on macgui.h.
7907
7908 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7909 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7910
7911 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7912 and f19.
7913 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7914
7915 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7916 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7917 Remove enumerators.
7918
7919 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7920 Check if FACE_FROM_ID returns NULL.
7921
79222008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7923
7924 * w32inevt.c (change_frame_size): Remove extern declaration.
7925 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7926 change_frame_size.
7927
79282008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7929
7930 * getloadavg.c: Revert last change (2008-07-15).
7931
79322008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7933
7934 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7935 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7936 from configure.
7937
79382008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7939
7940 * s/sol2.h:
7941 * s/sol2-4.h: Reorganize conditionals.
7942
7943 * ecrt0.c: Remove code depending on m68000, not used anymore.
7944
7945 * fns.c (hash_remove): Make static.
7946 * lisp.h (hash_remove): Don't prototype.
7947
7948 * m/ibmrs6000.h:
7949 * m/ibms390x.h:
7950 * m/macppc.h: Remove boilerplate comments.
7951
7952 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7953 Solaris, which does not need them.
7954
7955 * m/vax.h: Remove comments about unsupported systems.
7956
7957 * s/darwin.h: Reorganize ifdefs.
7958
79592008-07-17 Andreas Schwab <schwab@suse.de>
7960
7961 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7962
79632008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7964
7965 Use SDATA. Follow coding convention of placing operators at
7966 beginning of next line rather than end of previous line, and placing
7967 spaces around infix operators.
7968
7969 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7970 in case it was defined already.
7971 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7972 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7973 ns_default.
7974 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7975 Lisp_Objects.
7976 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7977 (ns_defined_color, ns_color_to_lisp): Declare.
7978 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7979 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7980 it's accepted even with USE_LISP_UNION_TYPE.
7981 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7982 (update_frame_tool_bar): Remove apparently obsolete tests for
7983 non-integerness of f->tool_bar_lines.
7984 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7985 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7986 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7987 (nsfont_open): Don't confuse NULL for Qnil.
7988 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7989 * menu.h (find_and_call_menu_selection):
7990 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7991 (find_and_return_menu_selection): Always return something.
7992 * frame.h: Include dispextern.h for Display_Info.
7993 (display_x_get_resource): Declare.
7994
79952008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7996
7997 * syntax.c: Remove stdio.h include accidentally introduced in
7998 Emacs.app commit.
7999 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8000 NS_IMPL_COCOA.
8001 * keyboard.c (handle_async_input, input_available_signal): Remove
8002 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8003
80042008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8005
8006 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8007 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8008 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8009 Use SDATA.
8010
8011 * keymap.c: Remove all NS-specific code.
8012 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8013 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8014 where_is_preferred_modifier, return a different value depending on how
8015 preferred is the binding.
8016 (where_is_internal): Adjust accordingly.
8017 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8018 Adjust to new preferred_sequence_p.
8019 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8020 * keyboard.c (parse_solitary_modifier): Not static any more.
8021 * keyboard.h (parse_solitary_modifier): Declare.
8022
80232008-07-16 Andreas Schwab <schwab@suse.de>
8024
8025 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8026 of easymenu.
8027
80282008-07-16 Chong Yidong <cyd@stupidchicken.com>
8029
8030 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8031 that we don't move off the line.
8032
80332008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8034
8035 * keyboard.c (Qsuper): Remove.
8036 (parse_menu_item): Don't call where_is_internal specially for NS.
8037
80382008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8039
8040 * s/gnu-linux.h: Remove boilerplate comments.
8041
8042 * m/alpha.h (__ELF__): Consolidate conditions.
8043
8044 * m/m68k.h (linux): Use GNU_LINUX instead.
8045 Remove boilerplate comments.
8046
8047 * m/intel386.h: Undo refactoring from previous change.
8048 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8049 too, remove dead code.
8050 (linux): Use GNU_LINUX instead.
8051
80522008-07-16 Jason Rumney <jasonr@gnu.org>
8053
8054 * w32gui.h: Repeat 26 June changes lost by last change.
8055
80562008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8057
8058 * systty.h: Remove code for Aix on 386, unsupported platform.
8059
8060 * s/ms-w32.h: Remove boilerplate comments.
8061 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8062
8063 * s/gnu-linux.h (TERM): Remove support.
8064 (HAVE_SYSVIPC): Remove, unused.
8065 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8066 for this system.
8067
8068 * process.c: Remove support for IRIS, unused.
8069 Remove support for TERM, not relevant anymore.
8070
8071 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8072 used with the definition.
8073
8074 * s/aix4-2.h (static): Do not undef.
8075
8076 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8077 only used on Aix.
8078 (HAVE_SYSVIPC): Remove, unused.
8079
8080 * m/hp800.h (CANNOT_DUMP): Do not undef.
8081
8082 * m/alpha.h: Fix comment.
8083
8084 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8085 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8086 used by this configuration.
8087 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8088 * unexec.c: Remove code depending on HPUX and
8089 USG_SHARED_LIBRARIES, not used with this file. Remove code
8090 depending on IRIS, unused. Remove if 0-ed code.
8091
8092 * s/template.h: Remove comments about static.
8093
8094 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8095 Remove if 0-ed code.
8096 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8097 were the same as the default.
8098 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8099 Remove boilerplate comments.
8100 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8101 (HAVE_SYSVIPC): Remove, unused.
8102 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8103
8104 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8105 Remove boilerplate comments.
8106 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8107 Remove boilerplate comments.
8108 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8109 Remove boilerplate comments.
8110 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8111
8112 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8113 USG systems which do not use DATA_SEG_BITS.
8114 Refactor code. Remove boilerplate comments.
8115
8116 * m/ibms390.h:
8117 * m/m68k.h:
8118 * s/bsd-common.h:
8119 * s/cygwin.h:
8120 * s/darwin.h:
8121 * s/freebsd.h:
8122 * s/gnu.h:
8123 * s/msdos.h: Remove boilerplate comments.
8124
8125 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8126 do not use this file.
aac0c6e3
MR
8127 (IRIS_4D): Remove, unused.
8128
8129 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8130 do not use this file.
aac0c6e3
MR
8131 (SIGN_EXTEND_CHAR):
8132 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8133 * unexmips.c: Remove file, unused.
8134
8135 * editfns.c (Fuser_full_name): Replace the only use of
8136 USER_FULL_NAME with its value.
8137 * config.in: Regenerate.
8138
81392008-07-16 David Reitter <david.reitter@gmail.com>
8140
8141 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8142 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8143
81442008-07-16 Glenn Morris <rgm@gnu.org>
8145
8146 * emacs.c (system-type): Doc fix.
8147
81482008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8149
8150 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8151 If the cache doesn't work, let's fix it, rather than work around it.
8152
81532008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8154
8155 * Makefile.in: Correct additions for nsfont.o in last commit.
8156 * nsfont.m: New file (forgot last commit).
8157
81582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8159
8160 * callproc.c (set_initial_environment): Initialize
8161 Vprocess_environment under CANNOT_DUMP (fixes crash when
8162 batch-compiling for bootstrap).
8163
81642008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8165 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8166
8167 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8168 fix crash due to different init order.
8169
81702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8171
8172 Changes and additions for NeXTstep windowing system (Cocoa and
8173 GNUstep) support.
8174
8175 * Makefile.in:
8176 * config.in: Support defines and build commands for NS port.
8177 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8178 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8179 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8180 windowing.
8181 (struct face): Add synth_ital field.
8182 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8183 (init_display): Initialize Vinitial_window_system to "ns" when so
8184 compiled.
8185 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8186 (display_arg): Use under NS.
8187 (main): Under NS, allocate autorelease pool and handle command line
8188 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8189 (standard_args): Add NS-specific args.
8190 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8191 * font.c (DEFAULT_ENCODING): New variable.
8192 (font_find_for_lface): Use it.
8193 (syms_of_font): Load syms_of_nsfont under NS.
8194 * font.h: Declare nsfont_driver when compiled under NS.
8195 * fontset.c: When compiling under NS, include nsterm.h.
8196 (fontset_from_font): Autoconstruct fontset under NS.
8197 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8198 symbol, document and use it.
8199 (do_switch_frame): When for_deletion under Cocoa, add
8200 Fraise_frame(Qnil).
8201 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8202 (x_get_arg): Allow "yes" and "no" as boolean values.
8203 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8204 Qright under Cocoa.
8205 (focus-follows-mouse): Default to 0 under NS.
8206 * frame.h (enum output_method): Add output_ns.
8207 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8208 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8209 (FRAME_WINDOW_P): NS-specific definition.
8210 * fringe.c (max_used_fringe_bitmap): Make public.
8211 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8212 (getloadavg): Use NeXT code under descendant OS's.
8213 * image.c (includes and header section, x_create_bitmap_from_data)
8214 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8215 (image_background_transparent, x_clear_image_1)
8216 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8217 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8218 (x_to_xcolors, x_from_xcolors, x_disable_image)
8219 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8220 other GUIs, including XPM support using code originally written for
8221 Carbon GUI.
8222 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8223 using NS API.
8224 (image_ascent): Use font metrics macros instead of direct struct field
8225 access.
8226 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8227 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8228 Also, handle NS as GTK for menu bar purposes.
8229 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8230 toolkit where they differ.
8231 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8232 use cachelist, still needed under NS.
8233 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8234 (struct widget_value): Define it here for menu.c.
8235 * keymap.c (includes): Include modifier internals.
8236 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8237 NS.
8238 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8239 support for preferring sequences using certain modifiers, specified by
8240 the FIRSTONLY argument.
8241 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8242 under NS GNUstep implementation.
8243 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8244 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8245 * menu.c: Include nsterm.h under NS.
8246 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8247 (free_menubar_widget_tree_value, update_submenu_strings)
8248 (find_and_call_menu_selection): Treat NS as X and NT.
8249 (find_and_return_menu_selection): New function, used for popup menus.
8250 * nsgui.h:
8251 * nsterm.h:
8252 * nsfns.m:
8253 * nsimage.m:
8254 * nsmenu.m:
8255 * nsselect.m:
8256 * nsterm.m: New files.
8257 * process.c (wait_reading_process_output): Under NS, call ns_select()
8258 instead of plain select().
8259 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8260 beginning of buffer.
8261 * sysselect.h (init_process): Rename when compiling under Cocoa to
8262 avoid name conflict.
8263 * termhooks.h (display_info): Add ns_display_info to union.
8264 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8265 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8266 COCOA environment.
8267 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8268 unexec() signature. (Note, this will dump, but the resulting file
8269 crashes; unexosx is used instead; keeping around for reference and
8270 possible aid in getting dump working under GNUstep.)
8271 * w32gui.h (button_type, widget_value): Remove definitions (now in
8272 keyboard.h).
8273 * window.c: Include nsterm.h when compiling under NS.
8274 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8275 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8276 other GUI windowing systems.
8277 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8278 GTK.
8279 (x_consider_frame_title): Under NS, set icon type and frame
8280 modified-state indicator; use ns_set_name_as_filename() when using
8281 formatted title.
8282 (update_window_cursor): Make public when compiling under NS.
8283 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8284 (hourglass_atimer, Vhourglass_delay
8285 * xfaces.c (header section, init_frame_faces, clear_font_table)
8286 (defined_color, unload_color, x_face_list_fonts)
8287 (prepare_face_for_display): Add NS support parallel to other GUIs.
8288 Emulate GCs like other non-X GUIs.
8289 (split_font_name): Don't lowercase font name under NS.
8290 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8291 under NS.
8292 * s/darwin.h: Add support for compilation under NS.
8293
82942008-07-15 Jason Rumney <jasonr@gnu.org>
8295
8296 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8297 (w32_show_hourglass): Rename from show_hourglass.
8298 (w32_hide_hourglass): Rename from hide_hourglass.
8299 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8300 (Vhourglass_delay): Declare extern.
8301 (hourglass_started): Remove.
8302
8303 * xdisp.c (Vhourglass_delay): Remove static.
8304 (hourglass_started, start_hourglass, cancel_hourglass):
8305 Don't include these versions on WINDOWSNT.
8306
83072008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8308
8309 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8310 variables (formerly in xfns.c).
8311 (show_hourglass, hide_hourglass): New prototypes (same).
8312 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8313 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8314 in xfns.c).
8315 (syms_of_xdisp): Declare/initialize display-hourglass,
8316 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8317 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8318 formerly in xfns.c.
8319 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8320 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8321 (start_hourglass, cancel_hourglass): Remove.
8322 (show_hourglass, hide_hourglass): Remove prototypes and static
8323 modifiers.
8324 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8325 hourglass_atimer, hourglass_shown_p declaration/initialization.
8326 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8327 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8328 (start_hourglass, cancel_hourglass): Remove.
8329 (show_hourglass, hide_hourglass): Remove prototypes and static
8330 modifiers.
8331 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8332 hourglass_atimer, hourglass_shown_p declaration/initialization.
8333 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8334 (DEFAULT_HOURGLASS_DELAY): Remove.
8335 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8336 hourglass_shown_p declaration/initialization.
8337
83382008-07-14 Jason Rumney <jasonr@gnu.org>
8339
8340 * w32fns.c (w32_get_arg): Remove wrapper function.
8341 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8342 directly.
8343 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8344
83452008-07-14 Kenichi Handa <handa@m17n.org>
8346
8347 * xfont.c (xfont_open): Add workaround for X's bug.
8348
83492008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8350
8351 * fontset.c: Include <stdio.h> unconditionally.
8352
83532008-07-13 Michael Albinus <michael.albinus@gmx.de>
8354
8355 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8356 for filtering.
8357
83582008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8359
8360 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8361
8362 * m/macppc.h:
8363 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8364
8365 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8366 (SPECIAL_EMACS_INT):
8367 * m/ia64.h (SPECIAL_EMACS_INT):
8368 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8369 * s/gnu.h (NLIST_STRUCT):
8370 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8371 * s/gnu-linux.h (LINUX):
8372 * s/msdos.h (HAVE_FACES):
8373 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8374
8375 * systty.h:
8376 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8377 anymore.
8378
83792008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8380
8381 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8382 always defined as int.
8383
8384 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8385 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8386 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8387 * s/freebsd.h (HAVE_WAIT_HEADER):
8388 * s/bsd-common.h (HAVE_UNION_WAIT):
8389 * s/aix4-2.h (HAVE_WAIT_HEADER):
8390 * m/mips.h (HAVE_UNION_WAIT):
8391 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8392 (COFF, static): Do not define, they are undefined later in the file.
8393
8394 * process.c (update_status): Don't use a union.
8395 (status_convert):
8396 (sigchld_handler): Use int instead of WAITTYPE.
8397
83982008-07-12 Chong Yidong <cyd@stupidchicken.com>
8399
8400 * indent.c (Fvertical_motion): Restore hscroll before moving to
8401 goal column.
8402
84032008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8404
8405 * lisp.h: Remove left over code.
8406
84072008-07-11 Andreas Schwab <schwab@suse.de>
8408
8409 * lisp.h: Fix logic in last change.
8410
8411 * menu.h: New file.
8412 * menu.c: Include it.
8413 * xmenu.c: Likewise.
8414 * Makefile.in: Update dependencies.
8415
84162008-07-11 Kenichi Handa <handa@m17n.org>
8417
8418 * fontset.c (fontset_from_font): Cancel the previous change.
8419
84202008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8421
8422 * lisp.h:
8423 * w32heap.c:
8424 * emacs.c:
8425 * alloc.c: Replace all references of NO_UNION_TYPE with
8426 USE_LISP_UNION_TYPE.
8427
8428 * m/xtensa.h (NO_UNION_TYPE):
8429 * m/vax.h (NO_UNION_TYPE):
8430 * m/template.h (NO_UNION_TYPE):
8431 * m/sparc.h (NO_UNION_TYPE):
8432 * m/mips.h (NO_UNION_TYPE):
8433 * m/macppc.h (NO_UNION_TYPE):
8434 * m/m68k.h (NO_UNION_TYPE):
8435 * m/iris4d.h (NO_UNION_TYPE):
8436 * m/intel386.h (NO_UNION_TYPE):
8437 * m/ibms390x.h (NO_UNION_TYPE):
8438 * m/ibms390.h (NO_UNION_TYPE):
8439 * m/ibmrs6000.h (NO_UNION_TYPE):
8440 * m/ia64.h (NO_UNION_TYPE):
8441 * m/hp800.h (NO_UNION_TYPE):
8442 * m/arm.h (NO_UNION_TYPE):
8443 * m/amdx86-64.h (NO_UNION_TYPE):
8444 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8445 defining it the same.
8446
84472008-07-10 Chong Yidong <cyd@stupidchicken.com>
8448
8449 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8450
84512008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8452
8453 * fileio.c:
8454 * sysdep.c
8455 * systty.h:
8456 * m/ibmrs6000.h:
8457 * m/iris4d.h:
8458 * s/aix4-2.h:
8459 * s/freebsd.h:
8460 * s/gnu-linux.h:
8461 * s/hpux10-20.h:
8462 * s/hpux11.h:
8463 * s/netbsd.h:
8464 * s/sol2-3.h:
8465 * s/sol2-4.h:
8466 * s/sol2.h:
8467 * s/usg5-4.h:
8468 * s/vms.h: Remove references to unused variables.
8469
84702008-07-10 Andreas Schwab <schwab@suse.de>
8471
8472 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8473 pattern before matching the generic family.
8474
84752008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8476
8477 * unexec.c:
8478 * s/vms.h:
8479 * s/usg5-4-2.h:
8480 * s/sol2-5.h:
8481 * s/freebsd.h:
8482 * s/darwin.h: Remove dead code.
8483
8484 * m/template.h:
8485 * m/sparc.h:
8486 * m/mips.h:
8487 * m/m68k.h:
8488 * m/iris4d.h:
8489 * m/intel386.h:
8490 * m/ibms390x.h:
8491 * m/ibms390.h:
8492 * m/ia64.h:
8493 * m/hp800.h:
8494 * m/arm.h:
8495 * m/amdx86-64.h: Remove dead code and references to unused
8496 and compiler defined symbols.
8497
8498 * unexmips.c:
8499 * unexelf.c: Remove references to desupported systems.
8500
8501 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8502
8503 * m/powermac.h: Remove boilerplate comments.
8504 (NO_REMAP): Remove unused definition.
8505
8506 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8507 define them.
8508
85092008-07-10 Kenichi Handa <handa@m17n.org>
8510
8511 * xfont.c (xfont_open): Log the reason of failure.
8512
85132008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8514
8515 * fontset.c (fontset_get_font_group):
8516 * font.c (font_check_otf): Specify argument types.
8517
85182008-07-09 Kenichi Handa <handa@m17n.org>
8519
8520 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8521 non-ASCII char is found.
8522
8523 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8524 (reorder_font_vector): Change the arg preferred_family to font.
8525 Prefer the spec matching with font.
8526 (fontset_get_font_group): New function.
8527 (fontset_find_font): Change the format of an element of a realized
8528 fontset. Use fontset_get_font_group.
8529 (fontset_font): Try the current fontset, the default fontset, the
8530 fallbacks of the current fontset, and the fallbacks of the default
8531 fontset in this order.
8532 (face_for_char): Delete the shortcut to use the current font.
8533 (fontset_from_font): Don't set fonts for Latin in the fontset.
8534
8535 * font.h (font_make_object, font_match_p): Adjust prototypes.
8536
8537 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8538
8539 * font.c (font_make_object): New arg entity and pixelsize.
8540 (font_check_otf_features, font_check_otf): New functions.
8541 (font_match_p): Check :lang, :script, and :otf properties.
8542
8543 * xfont.c (xfont_open): Adjust it for the change of
8544 font_make_object.
8545 (xfont_text_extents): Fix initial setting of metrics.
8546
8547 * ftfont.c (struct ftfont_info): New member index, delete member
8548 fc_charset_idx. Make the member order compatible with struct
8549 xftfont_info.
8550 (fc_charset_table): Change charset names to registry names.
8551 (ftfont_pattern_entity): Delete the args registry and
8552 fc_charset_idx. Change the value of :font-entity property
8553 to (FONTNAME . INDEX). Always set :registry property to
8554 `iso10646-1'.
8555 (struct ftfont_cache_data): New struct.
8556 (ftfont_lookup_cache): New arg for_face.
8557 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8558 (ftfont_driver): Set the member otf_capability.
8559 (ftfont_get_charset): Adjust it for the change of
8560 fc_charset_table.
8561 (OTF_TAG_SYM): New macro.
8562 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8563 for the change of fc_charset_table.
8564 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8565 ftfont_pattern_entity. Add FC_INDEX to objset.
8566 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8567 and ftfont_pattern_entity.
8568 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8569 font_make_object, struct ftfont_info.
8570 (ftfont_has_char): Use ftfont_get_fc_charset.
8571 (ftfont_otf_features, ftfont_otf_capability): New functions.
8572 (ftfont_shape): Use ftfont_get_otf.
8573 (ftfont_text_extents): Fix initial setting of metrics.
8574
8575 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8576 member order compatible with struct ftfont_info.
8577 (xftfont_open): Add FC_CHARSET to the pattern. Set
8578 xftfont_info->ft_size. Don't unlock the face. Check BDF
8579 properties if appropriate.
8580 (xftfont_close): Unlock the face.
8581 (xftfont_anchor_point, xftfont_shape): Deleted.
8582 (syms_of_xftfont): Don't set members anchor_point and shape of
8583 xftfont_driver.
8584
8585 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8586 font_make_object.
8587
8588 * w32font.c (w32font_open): Adjust it for the change of
8589 font_make_object.
8590 (w32font_open_internal): Don't set properties of font_object here.
8591
85922008-07-08 Chong Yidong <cyd@stupidchicken.com>
8593
8594 * macfns.c (x_create_tip_frame):
8595 * w32fns.c (x_create_tip_frame):
8596 * xfns.c (x_create_tip_frame): Pass parameter argument to
8597 face-set-after-frame-default.
8598
8599 * xfaces.c (Finternal_merge_in_global_face): Save merged
8600 attributes for the default face back into the face vector.
8601
86022008-07-08 Andreas Schwab <schwab@suse.de>
8603
8604 * fontset.h: Declare fontset_from_font. Don't declare
8605 new_fontset_from_font and fontset_from_font_name.
8606 * xterm.c: Include "fontset.h".
8607 * Makefile.in (xterm.o): Update dependencies.
8608
86092008-07-08 Glenn Morris <rgm@gnu.org>
8610
8611 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8612 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8613
86142008-07-07 Chong Yidong <cyd@stupidchicken.com>
8615
8616 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8617 (x_set_frame_parameters): Don't bind it.
8618
86192008-07-07 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * w32fns.c (map_w32_filename): Declare extern.
8622
86232008-07-07 Jason Rumney <jasonr@gnu.org>
8624
8625 * w32term.c (WS_EX_LAYERED): Define if not already.
8626
86272008-07-06 Chong Yidong <cyd@stupidchicken.com>
8628
8629 * xfaces.c (set_font_frame_param): Don't try to set the font
8630 parameter if it is still unspecified in the lface.
8631
86322008-07-05 Chong Yidong <cyd@stupidchicken.com>
8633
8634 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8635 face if it didn't already exist.
8636
8637 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8638
86392008-07-05 Andreas Schwab <schwab@suse.de>
8640
8641 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8642
86432008-07-05 Chong Yidong <cyd@stupidchicken.com>
8644
8645 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8646 word-wrapping.
8647 (IT_DISPLAYING_WHITESPACE): New macro.
8648 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8649 when word-wrapping. Simplify word-wrapping logic. Use correct
8650 pixel positions when saving copies of the iterator.
8651 (display_line): Use proper wrap point if the last character on a
8652 line was preceded by whitespace.
8653
86542008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8655
8656 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8657
86582008-07-04 Kenichi Handa <handa@m17n.org>
8659
8660 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8661
8662 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8663
86642008-07-02 Jason Rumney <jasonr@gnu.org>
8665
8666 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8667 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8668
8669 * xdisp.c (next_element_from_display_vector): Move assignment out
8670 of if statement.
8671
86722008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8673
8674 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8675
8676 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8677 (syms_of_fileio): Initialize and export them.
8678 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8679
8680 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8681 (Fsystem_move_file_to_trash): New function.
8682 (syms_of_w32fns): Export it to lisp.
8683
86842008-07-01 Jason Rumney <jasonr@gnu.org>
8685
8686 * w32font.c (w32font_text_extents): Don't count overhang as part
8687 of width.
8688
86892008-06-30 Miles Bader <miles@gnu.org>
8690
8691 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8692 Add `avoid_cursor_p' field.
8693
8694 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8695 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8696 (append_glyph, append_composite_glyph, produce_image_glyph)
8697 (append_stretch_glyph): Initialize avoid_cursor_p.
8698 (get_it_property): Rename from `get_line_height_property'.
8699 (x_produce_glyphs): Use get_it_property.
8700 (handle_line_prefix, push_display_prop): New functions.
8701 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8702 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8703 New variables.
8704 (syms_of_xdisp): Initialize them.
8705
87062008-06-30 Kenichi Handa <handa@m17n.org>
8707
8708 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8709 XftDefaultSubstitute (they are called in XftFontMatch).
8710 (xftfont_open): Fix args to ftfont_font_format.
8711
8712 * ftfont.c (fc_charset_table): New member lang.
8713 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8714 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8715 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8716 (ftfont_open): Fix args to ftfont_font_format.
8717 (ftfont_font_format): New arg filename.
8718
87192008-06-30 Chong Yidong <cyd@stupidchicken.com>
8720
8721 * xfaces.c (Finternal_merge_in_global_face): If default face was
8722 modified, realize it again. Update the font face attribute.
8723
87242008-06-29 Jason Rumney <jasonr@gnu.org>
8725
8726 * w32term.c (x_set_frame_alpha): Fix logic.
8727
87282008-06-29 Kenichi Handa <handa@m17n.org>
8729
8730 * fontset.c (Finternal_char_font): Return font-object instead of
8731 font-name.
8732
8733 * composite.c (get_composition_id): Fix the width calculation for TAB.
8734
87352008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8736
8737 * indent.c (Fvertical_motion): Properly handle float column arg.
8738
87392008-06-28 Jason Rumney <jasonr@gnu.org>
8740
8741 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8742 (pfnSetLayeredWindowAttributes): New function pointer.
8743 (w32_initialize): Initialize it when supported.
8744 (x_set_frame_alpha): New function.
8745
8746 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8747 (w32_frame_parm_handlers): Set alpha handler.
8748
8749 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8750
87512008-06-27 Jason Rumney <jasonr@gnu.org>
8752
8753 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8754 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8755 (w32_to_x_charset, x_to_w32_charset)
8756 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8757 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8758 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8759 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8760 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8761 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8762 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8763 (Qw32_charset_unicode): Remove.
8764 (syms_of_w32fns): Update for above changes.
8765
8766 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8767 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8768 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8769 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8770 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8771 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8772 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8773 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8774 (syms_of_w32font): Update for above changes.
8775
87762008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8777
8778 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8779 removed #if.
8780 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8781
87822008-06-26 Juanma Barranquero <lekktu@gmail.com>
8783 Eli Zaretskii <eliz@gnu.org>
8784
8785 * makefile.w32-in (LOCAL_FLAGS):
8786 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8787
8788 * sysdep.c (_spawnlp, _getpid):
8789 Declare with explicit _cdecl instead of _CRTAPI1.
8790
8791 * editfns.c (Fget_internal_run_time):
8792 Check for WINDOWSNT with #ifdef, not #if.
8793
87942008-06-26 Jason Rumney <jasonr@gnu.org>
8795
8796 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8797
8798 * w32term.c (x_draw_glyph_string_foreground)
8799 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8800 Use FONT_HANDLE macro.
8801 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8802
8803 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8804 (uniscribe_encode_char): Use FONT_HANDLE macro.
8805
8806 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8807 (w32font_text_extents): Use precast w32_font.
8808 (w32font_close): Free cached metrics.
8809 (w32font_open_internal): Allocate space for name on stack.
8810
88112008-06-26 Chong Yidong <cyd@stupidchicken.com>
8812
8813 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8814
88152008-06-26 Jason Rumney <jasonr@gnu.org>
8816
8817 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8818 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8819
88202008-06-26 Juanma Barranquero <lekktu@gmail.com>
8821
8822 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8823
88242008-06-26 Jason Rumney <jasonr@gnu.org>
8825
8826 * w32bdf.c, w32bdf.h: Remove obsolete files.
8827
8828 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8829
8830 * w32gui.h: Don't include w32bdf.h.
8831 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8832 Remove obsolete font support.
8833
8834 * w32font.h (struct w32font_info): Remove compat_w32_font.
8835 Add hfont member.
8836 (FONT_COMPAT): Remove obsolete macro.
8837
8838 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8839 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8840 (w32font_open_internal): Remove compat code. Set new hfont member.
8841 (Fx_select_font): Use new hfont member.
8842
8843 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8844 (uniscribe_encode_char): Use new hfont member.
8845
8846 * w32term.c (x_draw_glyph_string_foreground)
8847 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8848 (x_draw_glyph_string): Use metrics in w32font_info.
8849
88502008-06-26 Kenichi Handa <handa@m17n.org>
8851
8852 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8853
88542008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8855
8856 * unexnext.c:
8857 * m/ews4800.h:
8858 * m/hp9000s300.h:
8859 * m/ibm370aix.h:
8860 * m/mips-siemens.h:
8861 * m/ncr386.h:
8862 * m/next.h:
8863 * m/pmax.h:
8864 * m/powerpcle.h:
8865 * m/tandem-s2.h:
8866 * s/386bsd.h:
8867 * s/bsd386.h:
8868 * s/bsd4-1.h:
8869 * s/bsd4-2.h:
8870 * s/bsdos2-1.h:
8871 * s/bsdos2.h:
8872 * s/bsdos3.h:
8873 * s/bsdos4.h:
8874 * s/nextstep.h:
8875 * s/ultrix4-3.h:
8876 * s/usg5-0.h:
8877 * s/usg5-2-2.h:
8878 * s/usg5-2.h:
8879 * s/usg5-4-3.h:
8880 * s/ux4800.h:
8881 * s/uxpds.h:
8882 * s/uxpv.h: Remove support for obsolete systems.
8883 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8884 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8885 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8886 Remove, insert contents in s/aix4-2.h.
8887 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8888 * s/bsd4-3.h: Rename to ...
8889 * s/bsd-common.h: ... this.
8890 * data.c:
8891 * doc.c:
8892 * ecrt0.c:
8893 * emacs.c:
8894 * fileio.c:
8895 * floatfns.c:
8896 * keyboard.c:
8897 * mem-limits.h:
8898 * print.c:
8899 * process.c:
8900 * sysdep.c:
8901 * syssignal.h:
8902 * systty.h:
8903 * syswait.h:
8904 * term.c:
8905 * unexec.c:
8906 * unexelf.c:
8907 * unexhp9k800.c:
8908 * m/hp800.h:
8909 * m/ibmrs6000.h:
8910 * m/mips.h:
8911 * m/vax.h:
8912 * s/darwin.h:
8913 * s/freebsd.h:
8914 * s/gnu.h:
8915 * s/ms-w32.h:
8916 * s/msdos.h:
8917 * s/netbsd.h:
8918 * s/template.h: Remove references to obsolete variables.
8919
8920 * Makefile.in: Add dependencies for all unexec files.
8921 (admindir): Remove unused variable.
8922 (UNEXEC_SRC): Remove references.
8923
89242008-06-25 Chong Yidong <cyd@stupidchicken.com>
8925
8926 * xfns.c (x_default_font_parameter): If Xft is available, first
8927 try Monospace-12 for the default font.
8928
89292008-06-25 Jason Rumney <jasonr@gnu.org>
8930
8931 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8932
89332008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8934
8935 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8936
8937 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8938
89392008-06-25 Juanma Barranquero <lekktu@gmail.com>
8940
8941 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8942 <scroll-conservatively>: Fix typo in docstring.
8943
8944 * xselect.c (Fx_send_client_event): Doc fix.
8945
89462008-06-25 Kenichi Handa <handa@m17n.org>
8947
8948 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8949
8950 * font.c (font_parse_fcname): Remove unused variables.
8951 (font_sort_entites): Delete the arg SPEC. Caller changed.
8952 Fix for the case of ! best_only.
8953 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8954
8955 * lisp.h (Fstring_to_unibyte): EXFUN it.
8956
8957 * character.h (str_to_unibyte): Extern it.
8958
8959 * character.c (str_to_unibyte): New function.
8960
8961 * fns.c (Fstring_to_unibyte): New function.
8962 (syms_of_fns): Defsubr it.
8963
89642008-06-24 Kenichi Handa <handa@m17n.org>
8965
8966 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8967 DPI too.
8968 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8969
89702008-06-24 Andreas Schwab <schwab@suse.de>
8971
8972 * Makefile.in (${lispsource}loaddefs.el): Rename from
8973 ../lisp/loaddefs.el.
8974 (bootstrap-clean): Do what distclean does but don't remove
8975 Makefile.
8976 (distclean): Depend on bootstrap-clean and remove Makefile.
8977
89782008-06-24 Chong Yidong <cyd@stupidchicken.com>
8979
8980 * buffer.h (struct buffer): New member word_wrap.
8981
8982 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8983 word-wrap.
8984 (init_buffer_once): Initialize them.
8985
8986 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8987 line_wrap enum possessing three possible values.
8988
8989 * termopts.h: Replace truncate_partial_width_windows with
8990 Vtruncate_partial_width_windows.
8991
8992 * dispnew.c (direct_output_for_insert): Avoid direct output when
8993 inserting a space with word wrap on.
8994
8995 * indent.c (compute_motion): Obey integer values of
8996 truncate-partial-width-windows.
8997
8998 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8999 replacing truncate_partial_width_windows.
9000 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9001 truncate only if the window width is below that integer.
9002 (start_display, resize_mini_window, produce_stretch_glyph)
9003 (display_string, move_it_in_display_line_to): Use line_wrap.
9004 (back_to_previous_visible_line_start, reseat_1): Reset
9005 string_from_display_prop_p.
9006 (display_line): Extend default face to end of line when wrapping.
9007
90082008-06-24 Kim F. Storm <storm@cua.dk>
9009
9010 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9011 to wrap continued lines at word boundaries.
9012
90132008-06-24 Jason Rumney <jasonr@gnu.org>
9014
9015 * font.c (Ffont_face_attributes): Multiply pixel size before point
9016 conversion to avoid multiplying rounding error.
9017
90182008-06-23 Jason Rumney <jasonr@gnu.org>
9019
9020 * w32term.c (x_draw_glyph_string_background)
9021 (x_draw_glyph_string): Remove old bdf font code.
9022
9023 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9024
90252008-06-22 Kenichi Handa <handa@m17n.org>
9026
9027 * font.c (font_find_for_lface): Try the adstyle specified in
9028 the property of LFACE_FONT of LFACE (if any).
9029
90302008-06-21 Seiji Zenitani <zenitani@mac.com>
9031 Ryo Yoshitake <ryo@shiftmode.net>
9032
9033 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9034
90352008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9036
9037 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9038 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9039 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9040 (witness-emacs): Remove.
9041 (lisp, shortlisp): Move loaddefs.el earlier.
9042 (mostlyclean): Forget about witness-emacs.
9043
90442008-06-22 Glenn Morris <rgm@gnu.org>
9045
9046 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9047 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9048
90492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9050
9051 * Makefile.in (PRECOMP): Remove.
9052 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9053 (witness-emacs): Run `compile-first'.
9054 (.el.elc): Use the new compile-onefile target.
9055
90562008-06-21 Kenichi Handa <handa@m17n.org>
9057
9058 * xftfont.c (xftfont_open): Handle QCembolden only when
9059 FC_EMBOLDEN is defined.
9060
90612008-06-21 Andreas Schwab <schwab@suse.de>
9062
9063 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9064 (.el.elc): Likewise.
9065
90662008-06-21 Miles Bader <miles@gnu.org>
9067
9068 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9069 build dir, not the lisp source dir.
9070
90712008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9072
9073 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9074 (bootstrapclean): Remove.
9075 (.el.elc): New rule.
9076 (PRECOMP): New var.
9077 (../lisp/subdirs.el): Remove.
9078 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9079 (witness-emacs): New target.
9080 (mostlyclean): Remove witness-emacs as well.
9081 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9082 Add witness-emacs dependency.
9083
90842008-06-20 Chong Yidong <cyd@stupidchicken.com>
9085
9086 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9087 defined by the font.
9088
90892008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9090
9091 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9092 (bootstrap-clean): New target that keeps TAGS around.
9093 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9094 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9095
90962008-06-20 Jason Rumney <jasonr@gnu.org>
9097
9098 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9099 Remove obsolete font code.
9100
9101 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9102 to determine language support.
9103
91042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9105
9106 * sysdep.c (cfsetspeed): New fun extracted from the code.
9107 (cfmakeraw): Move before first use.
9108
91092008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9110
9111 * sysdep.c (cfmakeraw): Provide fallback implementation.
9112 (serial_configure): Provide fallback implementation of cfsetspeed.
9113
91142008-06-20 Kenichi Handa <handa@m17n.org>
9115
9116 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9117 the pattern.
9118
9119 * fontset.c (fontset_from_font): Copy font_spec before changing
9120 the elements.
9121
9122 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9123
91242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9125
9126 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9127 for explicit `font' parameters.
9128
9129 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9130
91312008-06-19 Kenichi Handa <handa@m17n.org>
9132
9133 * frame.c: Include <ctype.h>.
9134 (x_set_font_backend): Allow spacing characters in the X resource
9135 for FontBackend.
9136
91372008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9138
9139 * w32fns.c, xfns.c (Qfont_param): New var.
9140 (syms_of_w32fns): Initialize it.
9141 (x_default_font_parameter): Record explicit `font' into
9142 `font-parameter'.
9143
91442008-06-18 Kenichi Handa <handa@m17n.org>
9145
9146 * font.c (font_parse_xlfd): Fix previous change.
9147 (font_parse_fcname): Don't use :fc-unknown-spec.
9148 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9149 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9150 (font_add_log): Prepend the driver name to the resulting fonts.
9151
9152 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9153 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9154 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9155
9156 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9157 (QCembolden): New variables.
9158 (syms_of_xftfont): DEFSYM them.
9159 (xftfont_open): Call XftFontMatch. Don't trust the result of
9160 XftTextExtents8 if the pixel_size is less than 5.
9161
91622008-06-18 Andreas Schwab <schwab@suse.de>
9163
9164 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9165 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9166
91672008-06-18 Jason Rumney <jasonr@gnu.org>
9168
9169 * w32font.c (w32font_list, w32font_match): Add logging.
9170
9171 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9172
91732008-06-17 Chong Yidong <cyd@stupidchicken.com>
9174
9175 * font.c (font_parse_fcname): Store divider characters for
9176 unknown-spec list. For known key symbols, intern using correct
9177 symbol name.
9178
91792008-06-17 Kenichi Handa <handa@m17n.org>
9180
9181 * xfaces.c (realize_default_face): If the frame is not on window
9182 system, set the fontset of face to nil.
9183
91842008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9185
9186 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9187
91882008-06-16 Juanma Barranquero <lekktu@gmail.com>
9189
9190 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9191 (build_font_name_from_vector): Delete externs.
9192
9193 * xfaces.c (struct font_name): Don't declare.
9194
91952008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9196
9197 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9198
91992008-06-16 Chong Yidong <cyd@stupidchicken.com>
9200
9201 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9202
92032008-06-16 Juanma Barranquero <lekktu@gmail.com>
9204
9205 * font.c (Ffont_spec): Fix usage in docstring.
9206 (Ffont_face_attributes): Doc fix.
9207
92082008-06-16 Andreas Schwab <schwab@suse.de>
9209
9210 * font.c (Ffont_face_attributes): Fix definition.
9211
92122008-06-16 Jason Rumney <jasonr@gnu.org>
9213
9214 * font.h (font_style_symbolic_from_value): Remove.
9215
9216 * font.c (font_style_symbolic_from_value): Remove.
9217 (font_style_symbolic): Revert to pre 2008-06-13 version.
9218
9219 * w32font.c (w32_to_fc_weight): New function.
9220 (w32font_full_name, logfont_to_fcname): Use it.
9221
92222008-06-16 Kenichi Handa <handa@m17n.org>
9223
9224 * font.c (font_check_object): Delete it.
9225 (font_clear_cache): Check if a font-object is alive.
9226 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9227 font-object to nil.
9228 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9229 (font_at): Don't call font_check_object.
9230 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9231
92322008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9233
9234 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9235
92362008-06-16 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9239
92402008-06-15 Chong Yidong <cyd@stupidchicken.com>
9241
9242 * font.c (font_parse_fcname): Only one decimal point.
9243 (font_unparse_fcname): Handle data in family and foundry indices
9244 as symbols, not strings.
9245 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9246
9247 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9248
9249 * font.h (font_unparse_gtkname): Add prototype.
9250
92512008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9252
9253 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9254
92552008-06-15 Andreas Schwab <schwab@suse.de>
9256
9257 * font.c (font_update_drivers): Fix crash when no drivers match.
9258
92592008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9262 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9263
92642008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9265
9266 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9267
92682008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * process.c (Fserial_process_configure, Fprocess_send_eof):
9271 Use EQ to compare Lisp_Objects.
9272
92732008-06-13 Jason Rumney <jasonr@gnu.org>
9274
9275 * w32fns.c (Fw32_select_font): Remove old font API function.
9276
9277 * w32font.c (logfont_to_fcname): New function.
9278 (Fx_select_font): New font dialog function compatible with
9279 GTK/fontconfig version.
9280
9281 * font.c (font_style_symbolic_from_value): New function.
9282 (font_style_symbolic): Use it.
9283
9284 * font.h (font_style_symbolic_from_value): Declare new function.
9285
92862008-06-13 Juanma Barranquero <lekktu@gmail.com>
9287
9288 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9289 <font-width-table>: Fix typos in docstrings.
9290
92912008-06-13 Daniel Engeler <engeler@gmail.com>
9292
9293 These changes add serial port access.
9294 * process.c: Add HAVE_SERIAL.
9295 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9296 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9297 (list_processes_1, select_wrapper, Fstop_process)
9298 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9299 (status_notify): Modify to handle serial processes.
9300 [HAVE_SERIAL] (Fserial_process_configure)
9301 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9302 New functions.
9303 * process.h (struct Lisp_Process): Add `type'.
9304 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9305 New functions.
9306 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9307 serial ports.
b71ac3dd 9308 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9309 * w32.h: Add FILE_SERIAL.
9310 (struct _child_process): Add ovl_read, ovl_write.
9311
93122008-06-13 Kenichi Handa <handa@m17n.org>
9313
9314 * dispextern.h (enum lface_attribute_index): New member
9315 LFACE_FOUNDRY_INDEX.
9316
9317 * font.c (font_score): Delete arg alternate_families. Check only
9318 weight, slant, width, and size. Ignore the difference of alias
9319 style symbols.
9320 (font_sort_entites): Adjust for the above change. Reflect the
9321 order of font-driver to scores.
9322 (font_list_entities): Don't check alternate_familes here.
9323 (font_clear_prop): Handle foundry.
9324 (font_update_lface): Don't parse "foundry-family" form here.
9325 Handle FONT_FOUNDRY_INDEX.
9326 (font_find_for_lface): Likewise. Handle alternate families here.
9327 If registry is nil, try iso8859-1 and ascii-0.
9328 (font_open_for_lface): Pay attention to size in ENTITY.
9329 (font_open_by_name): Simplify by calling font_load_for_lface.
9330 (free_font_driver_list): Delete it.
9331 (font_update_drivers): Preserve the order of backends.
9332 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9333 of font_score and font_sort_entites.
9334 (font_update_sort_order): Likewise.
9335
9336 * xfaces.c (LFACE_FOUNDRY): New macro.
9337 (check_lface_attrs): Check foundry.
9338 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9339 (merge_face_vectors): Check foundry.
9340 (merge_face_ref): Likewise.
9341 (Finternal_set_lisp_face_attribute): Likewise.
9342 (x_update_menu_appearance): Likewise.
9343 (Finternal_get_lisp_face_attribute): Likewise.
9344 (lface_hash): Likewise.
9345 (lface_same_font_attributes_p): Likewise.
9346 (x_supports_face_attributes_p): Likewise.
9347 (tty_supports_face_attributes_p): Likewise.
9348 (Finternal_set_alternative_font_family_alist): Intern strings.
9349 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9350 (realize_default_face): Set LFACE_FOUNDRY (lface).
9351
9352 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9353 font-driver at first.
9354
9355 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9356
93572008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9358
9359 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9360
93612008-06-12 Jim Meyering <meyering@redhat.com>
9362
9363 Make unexec_free handle NULL the same way free does.
9364 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9365
93662008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9367
9368 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9369 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9370 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9371 (WEAK_ALIAS): Simplify.
9372 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9373 when searching a unibyte buffer.
9374
93752008-06-12 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9378
93792008-06-12 Juanma Barranquero <lekktu@gmail.com>
9380
9381 * w32font.c: Include ctype.h.
9382
93832008-06-11 Jason Rumney <jasonr@gnu.org>
9384
9385 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9386 misreported as space.
9387 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9388 as aliases for registry iso10646-1.
9389
93902008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9391
9392 * buffer.c (clone_per_buffer_values): Skip `name'.
9393
93942008-06-11 Chong Yidong <cyd@stupidchicken.com>
9395
9396 * font.c (font_parse_fcname): Fix last change; accept decimal
9397 points in font size.
9398
93992008-06-10 Jason Rumney <jasonr@gnu.org>
9400
9401 * w32uniscribe.c (add_opentype_font_name_to_list):
9402 Skip non unicode fonts.
9403
94042008-06-10 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * xfns.c (Fx_font_dialog): New function.
9407
9408 * gtkutil.c (xg_dialog_response_cb): Rename from
9409 xg_file_response_callback.
9410 (pop_down_dialog): Rename from pop_down_file_dialog.
9411 (xg_get_file_name): Callers changed.
9412 (xg_get_font_name): New function.
9413
9414 * gtkutil.h (xg_get_font_name): Insert prototype.
9415
94162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9417
9418 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9419 x_underline_minimum_display_offset.
9420 (syms_of_xdisp): Declare it here rather than in xterm.c.
9421 * dispextern.h (underline_minimum_offset): Declare it.
9422 * w32term.c (x_draw_glyph_string): Use it.
9423 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9424 (syms_of_xterm): Don't declare it any more.
9425 (x_draw_glyph_string): Adjust to the new name.
9426
8719abec 94272008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9428
9429 * xterm.c (x_underline_minimum_display_offset): New var.
9430 (x_draw_glyph_string): Use it.
9431 (syms_of_xterm): Declare it.
9432
94332008-06-10 Chong Yidong <cyd@stupidchicken.com>
9434
9435 * font.c (font_parse_fcname): Accept GTK-style font names too.
9436
94372008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9438
9439 * dired.c (file_name_completion): Don't return t if the match is exact
9440 but with different capitalization.
9441 * minibuf.c (Ftry_completion): Simplify.
9442
9443 * window.c (Vwindow_point_insertion_type): New var.
9444 (set_window_buffer): Use it.
9445 (syms_of_window): Init and export it to Lisp.
9446
94472008-06-10 Kenichi Handa <handa@m17n.org>
9448
9449 * font.h (font_intern_prop): Prototype adjusted.
9450
9451 * font.c (font_intern_prop): New arg force_symbol.
9452 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9453 Adjust for the change of font_intern_prop.
9454
9455 * ftfont.c (ftfont_pattern_entity):
9456 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9457 (w32_registry):
9458 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9459 the change of font_intern_prop.
9460
94612008-06-09 Juanma Barranquero <lekktu@gmail.com>
9462
9463 * w32menu.c (digest_single_submenu): Declare extern.
9464
94652008-06-09 Jason Rumney <jasonr@gnu.org>
9466
9467 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9468
9469 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9470 (parse_single_submenu): Remove.
9471 (digest_single_submenu): Remove.
9472 (syms_of_w32menu): Don't initialise variables that have moved
9473 to menu.c.
9474 (set_frame_menubar): Sync with version in xmenu.c.
9475 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9476
9477 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9478 Make static again.
9479
94802008-06-09 Jason Rumney <jasonr@gnu.org>
9481
9482 Changes to w32 files related to the move of common menu code
9483 to menu.c on 2008-06-08 by Chong Yidong.
9484
9485 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9486 defs to w32gui.h.
9487 (single_keymap_panes, push_menu_item, push_menu_pane):
9488 Make globally visible.
9489
9490 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9491 (local_free, malloc_widget_value, free_widget_value)
9492 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9493 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9494 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9495 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9496 (menu_items, menu_items_allocated, menu_items_used)
9497 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9498 (init_menu_items, finish_menu_items, discard_menu_items)
9499 (grow_menu_items, push_submenu_start, push_submenu_end)
9500 (push_left_right_boundary, push_menu_pane, push_menu_item)
9501 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9502 (free_menubar_widget_tree_value, parse_single_submenu)
9503 (update_submenu_strings): Remove functions.
9504 (xmalloc_widget_value): Remove and declare extern.
9505
9506 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9507 (OBJ1): Build it.
9508
9509 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9510 (local_heap, local_alloc, local_free, malloc_widget_value)
9511 (free_widget_value): Define here.
9512
95132008-06-09 Kenichi Handa <handa@m17n.org>
9514
9515 * font.h (Qascii_0): Extern it.
9516
9517 * font.c (Qascii_0): New variable.
9518 (syms_of_font): DEFSYM it.
9519 (font_open_by_name): If the registry "iso8859-1" fails, try also
9520 "ascii-0".
9521
9522 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9523
95242008-06-08 Kenichi Handa <handa@m17n.org>
9525
9526 * .gdbinit (xfont): New command.
9527
95282008-06-08 Andreas Schwab <schwab@suse.de>
9529
9530 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9531 * Makefile.in (menu.o): Update dependencies.
9532
9533 * Makefile.in (obj): Always add menu.o.
9534 * emacs.c (main): Always call syms_of_menu.
9535 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9536
95372008-06-08 Chong Yidong <cyd@stupidchicken.com>
9538
9539 * Makefile.in: Compile menu.c.
9540
9541 * lisp.h: Declare syms_of_menu.
9542
9543 * emacs.c (main): Call syms_of_menu.
9544
9545 * keyboard.h: Relocate platform-independent menu definitions from
9546 xmenu.c.
9547
9548 * menu.c: New file. Relocate platform-independent menu
9549 definitions from xmenu.c. Suggested by Adrian Robert.
9550
9551 * xmenu.c: Remove platform-independent menu definitions.
9552 (menu_items menu_items_inuse, menu_items_allocated)
9553 (menu_items_used, menu_items_n_panes)
9554 (menu_items_submenu_depth): Move to keyboard.h.
9555 (init_menu_items, finish_menu_items, unuse_menu_items)
9556 (discard_menu_items, restore_menu_items, save_menu_items)
9557 (grow_menu_items, push_submenu_start, push_submenu_end)
9558 (push_left_right_boundary, push_menu_pane, push_menu_item)
9559 (keymap_panes, single_keymap_panes, single_menu_item)
9560 (list_of_panes, list_of_items, find_and_call_menu_selection)
9561 (xmalloc_widget_value, free_menubar_widget_value_tree)
9562 (parse_single_submenu, digest_single_submenu)
9563 (update_submenu_strings): Move to menu.c.
9564
95652008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9566
9567 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9568
95692008-06-06 Miles Bader <miles@gnu.org>
9570
9571 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9572 face, not frame default.
9573
95742008-06-05 Martin Rudalics <rudalics@gmx.at>
9575
9576 * window.c (pop_up_windows, pop_up_frames)
9577 (display_buffer_reuse_frames, Vpop_up_frame_function)
9578 (Vdisplay_buffer_function, Veven_window_heights)
9579 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9580 (Vspecial_display_function, Vsame_window_buffer_names)
9581 (Vsame_window_regexps, split_height_threshold)
9582 (Vsplit_window_preferred_function): Move those vars to window.el.
9583 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9584 (Fdisplay_buffer): Move those functions to window.el.
9585 (syms_of_window): Remove corresponding declarations.
9586 (display_buffer): New function.
9587 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9588 * dispnew.c (Flast_nonminibuf_frame): New function.
9589 * buffer.c (Fpop_to_buffer): Move to window.el.
9590
95912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9592
9593 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9594
95952008-06-05 Kenichi Handa <handa@m17n.org>
9596
9597 * coding.c (detect_coding): Fix previous change.
9598 (detect_coding_system): Likewise.
9599
96002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9601
9602 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9603
9604 * keymap.c (Vminibuffer_local_filename_must_match_map):
9605 Rename from Vminibuffer_local_must_match_filename_map.
9606 (syms_of_keymap):
9607 * minibuf.c (Fcompleting_read): Adjust accordingly.
9608 * commands.h: Rename declaration as well.
9609
96102008-06-05 Kenichi Handa <handa@m17n.org>
9611
9612 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9613 family name.
9614 (Ffont_put): Likewise.
9615
9616 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9617 current font-spec.
9618
9619 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9620 is unspecified.
9621
9622 * xfaces.c (realize_x_face): If the font-related face attributes
9623 are the same as those of default face, realize a new fontset from
9624 default->fontset.
9625 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9626
96272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9628
9629 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9630 (move_it_in_display_line): New wrapper.
9631
9632 * window.c (window_scroll_pixel_based_preserve_x)
9633 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9634 (window_scroll_pixel_based, window_scroll_line_based):
9635 Use them to preserve column positions.
9636 (syms_of_window): Initialize them.
9637
9638 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9639 (HPOS . VPOS) pair.
9640
9641 * dispextern.h (move_it_in_display_line): Declare.
9642
96432008-06-05 Juanma Barranquero <lekktu@gmail.com>
9644
9645 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9646 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9647 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9648
96492008-06-04 Juanma Barranquero <lekktu@gmail.com>
9650
9651 * window.c (Fset_window_parameter): Doc fix.
9652 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9653
96542008-06-04 Joakim Verona <joakim@verona.se>
9655
9656 * window.h (struct window): Add new member window_parameters.
9657
9658 * window.c (Fwindow_parameters, Fwindow_parameter)
9659 (Fset_window_parameter): New defuns.
9660 (syms_of_window): Defsubr the new defuns.
9661 (make_window): Initialize window_parameters to nil.
9662
96632008-06-04 John Paul Wallington <jpw@pobox.com>
9664
9665 * eval.c (Fdefmacro): Doc fix.
9666
96672008-06-04 Kenichi Handa <handa@m17n.org>
9668
9669 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9670 Be sure to call setup_coding_system when we find a proper coding system.
9671 (detect_coding_system): Fix handling of coding->head_ascii.
9672
96732008-06-03 Andreas Schwab <schwab@suse.de>
9674
9675 * font.c (font_prop_validate_spacing): Fix last change.
9676
96772008-06-03 Kenichi Handa <handa@m17n.org>
9678
9679 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9680 (font_parse_fcname): Fix handling of unknown key.
9681
9682 * xfont.c (xfont_list): Try an alias.
9683
9684 * charset.c (char_charset): Return NULL if the arg charset_list is
9685 specified and C doesn't belong to any of them.
9686
96872008-06-02 Chip Coldwell <coldwell@redhat.com>
9688
9689 * font.c (font_pixel_size): Don't take cdr of an integer.
9690
96912008-06-02 Jim Meyering <meyering@redhat.com>
9692
9693 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9694 * alloc.c (xfree): Return right away for a NULL arg.
9695 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9696 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9697 * mac.c (create_apple_event_from_event_ref): Likewise.
9698 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9699 Likewise.
9700 * doprnt.c (doprnt1): Likewise.
9701 * frame.c (frame): Likewise.
9702 * keyboard.c (wipe_kboard): Likewise.
9703 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9704 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9705 * term.c (tty_default_color_capabilities, maybe_fatal)
9706 (delete_tty): Likewise.
9707 * w16select.c (string): Likewise.
9708 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9709 * w32bdf.c (w32_free_bdf_font): Likewise.
9710 * w32fns.c (w32_unload_font): Likewise.
9711 * w32font.c (w32font_close): Likewise.
9712 * window.c (size_window): Likewise.
9713 * xselect.c (receive_incremental_selection): Likewise.
9714 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9715 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9716 * w32.c (stat): Likewise.
9717
9718 Remove useless if-before-free tests.
9719 * editfns.c (Fset_time_zone_rule): Likewise.
9720 * lread.c (nosuffix): Likewise.
9721 * ralloc.c (get_bloc): Likewise.
9722 * regex.c (reg_free): Likewise.
9723 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9724 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9725 * xsmfns.c (smc_save_yourself_CB): Likewise.
9726
97272008-06-02 Kenichi Handa <handa@m17n.org>
9728
9729 * font.c (font_find_for_lface): Handle float font size.
9730 (font_open_for_lface): Likewise.
9731
9732 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9733 comparing the properties.
9734
97352008-06-01 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9738 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9739 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9740 Don't add empty script list.
9741 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9742
97432008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9744
9745 * Makefile.in (dot, dotdot): Remove, update users.
9746 ".." has been used elsewhere in the file for a long time.
9747 (LIBXT_STATIC): Remove conditional based on unused variable.
9748
97492008-06-01 Miles Bader <miles@gnu.org>
9750
9751 * xfaces.c (Vface_remapping_alist): New variable.
9752 (syms_of_xfaces): Initialize it.
9753 (enum named_merge_point_kind): New type.
9754 (struct named_merge_point): Add `named_merge_point_kind' field.
9755 (push_named_merge_point): Make cycle detection respect different
9756 named-merge-point kinds.
9757 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9758 Remove face-name alias resolution.
9759 (lface_from_face_name): New definition using
9760 `lface_from_face_name_no_resolve'.
9761 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9762 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9763 (get_lface_attributes): New definition that layers face-remapping on
9764 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9765 (lookup_basic_face): New function.
9766 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9767 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9768 `get_lface_attributes'.
9769 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9770 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9771 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9772
9773 * xdisp.c (init_iterator): Pass base_face_id through
9774 `lookup_basic_face' when we actually use it as a face-id.
9775 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9776 DEFAULT_FACE_ID.
9777
9778 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9779 lookup the initial face-id.
9780
9781 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9782
97832008-06-01 Juanma Barranquero <lekktu@gmail.com>
9784
9785 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9786 (Fremove_text_properties): Fix typos in docstrings.
9787
97882008-05-31 Kenichi Handa <handa@m17n.org>
9789
9790 * font.c (font_list_entities): Fix the car part of data to be
9791 stored in the cache.
9792
9793 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9794
97952008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9796
9797 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9798 Add a `test' argument so another predicate than `equal' can be used.
9799 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9800 (map_char_table): Remove unused vars `c' and `i'.
9801 * lisp.h (Foptimize_char_table): Adjust declaration.
9802 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9803
98042008-05-30 Kenichi Handa <handa@m17n.org>
9805
9806 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9807 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9808 defined.
9809
98102008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9811
9812 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9813 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9814 frame-local settings for the same variable.
9815
98162008-05-30 Kenichi Handa <handa@m17n.org>
9817
9818 * fontset.c (Ffont_info): Move to font.c.
9819 (syms_of_fontset): Delete defsubr of Sfont_info.
9820
9821 * font.c (font_style_to_value, font_score): Delete casting of the
9822 args to xstcasecmp.
9823 (register_font_driver): Increment num_font_drivers only when
9824 registering the driver globally.
9825 (Ffont_info): Move from fontset.c. Handle a font object too.
9826 (syms_of_font): Defsubr Sfont_info.
9827
98282008-05-29 Kenichi Handa <handa@m17n.org>
9829
9830 * coding.h (enum define_coding_utf8_arg_index): New enum.
9831 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9832 coding_attr_utf_bom.
9833 (enum utf_bom_type): Rename from utf_16_bom_type.
9834 (struct utf_16_spec): Adjust for the above change.
9835 (struct coding_system): Add utf_8_bom in `spec' union.
9836
9837 * coding.c (CODING_UTF_8_BOM): New macro.
9838 (enum coding_category): Delete coding_category_utf_8, add
9839 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9840 coding_category_utf_8_sig.
9841 (CATEGORY_MASK_UTF_8): Delete it.
9842 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9843 (CATEGORY_MASK_UTF_8_SIG): New macros.
9844 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9845 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9846 CATEGORY_MASK_UTF_8_SIG.
9847 (CATEGORY_MASK_UTF_8): New macro.
9848 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9849 (detect_coding_utf_8): Check BOM.
9850 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9851 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9852 (encode_coding_utf_16): Likewise.
9853 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9854 (detect_coding, detect_coding_system): Handle utf-8-auto.
9855 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9856 (syms_of_coding): Fix setting up of Vcoding_category_table.
9857
98582008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9859
9860 * process.c (Faccept_process_output): If `millisec' is non-nil,
9861 `seconds' default to 0.
9862 (wait_reading_process_output): Also return non-nil if we read output
9863 from a non-running process.
9864
98652008-05-29 Jason Rumney <jasonr@gnu.org>
9866
9867 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9868 `raster' specified.
9869 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9870 in the uniscribe backend, but disallow any font that has no
9871 unicode subrange support.
9872
98732008-05-29 Juanma Barranquero <lekktu@gmail.com>
9874
9875 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9876 Fix typos in docstrings.
9877
98782008-05-29 Kenichi Handa <handa@m17n.org>
9879
9880 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9881 (Fx_family_fonts): Set frame correctly.
9882
98832008-05-28 Jason Rumney <jasonr@gnu.org>
9884
9885 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9886
98872008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9888
9889 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9890 calling build_annotations.
9891
98922008-05-28 Juanma Barranquero <lekktu@gmail.com>
9893
9894 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9895 (Fencode_coding_string):
9896 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9897 <latin-extra-code-table>: Fix typos in docstrings.
9898 (syms_of_coding) <coding-system-alist>: Doc fix.
9899 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9900
99012008-05-28 Kenichi Handa <handa@m17n.org>
9902
9903 * fontset.c (Ffont_info): Don't call font_close_object.
9904
9905 * font.c (font_parse_family_registry): Use Ffont_put to validate
9906 foundry and family.
9907 (font_delete_unmatched): Don't check spacing.
9908 (font_list_entities): Add spacing to the spec to list fonts.
9909
9910 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9911 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9912
9913 * coding.c (encode_coding_raw_text): Fix previous change.
9914 (encode_coding_object): When the dst_object is a buffer and is
9915 different from src_object, move gap to PT.
9916
99172008-05-27 Chong Yidong <cyd@stupidchicken.com>
9918
9919 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9920
99212008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9922
9923 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9924 all branches. Compute it differently.
9925
9926 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9927
99282008-05-27 Juanma Barranquero <lekktu@gmail.com>
9929
9930 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9931 into "else if () ... else ...".
9932
99332008-05-27 Jason Rumney <jasonr@gnu.org>
9934
9935 * w32font.c (w32font_open_internal): Determine if glyph indices
9936 are likely to work here.
9937
99382008-05-27 Chong Yidong <cyd@stupidchicken.com>
9939
9940 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9941 draw overlap glyphs with appropriate highlighting.
9942
99432008-05-27 Kenichi Handa <handa@m17n.org>
9944
9945 * xfont.c (xfont_open): Fix calculation of font->average_width.
9946
99472008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9948
9949 * casefiddle.c (casify_object): Try to guess better whether the
9950 argument is a byte or a char.
9951
99522008-05-26 Andreas Schwab <schwab@suse.de>
9953
9954 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9955 Always send multiples of format size.
9956
9957 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9958
99592008-05-26 Jason Rumney <jasonr@gnu.org>
9960
9961 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9962 (compute_metrics): Don't set failure if we just cleared the cache.
9963 (w32_weight_table): Remove unused variable.
9964 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9965 backwards compatibility.
9966
99672008-05-25 Kenichi Handa <handa@m17n.org>
9968
9969 * w32term.c (x_draw_glyph_string):
9970 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9971
9972 * xfaces.c: Delete unused function prototypes.
9973 (xstrlwr, font_frame): Delete them.
9974 (clear_face_cache): Delete unused variable.
9975
9976 * xftfont.c (xftfont_open): Delete unused variable.
9977 If underline_thickness is not 1, adjust underline_position.
9978
9979 * ftxfont.c (ftxfont_open): Delete unused variable.
9980
9981 * fontset.c (face_for_char): Optimize for the case of no charset
9982 property.
9983
9984 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9985 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9986 (otf_open, font_otf_capability, generate_otf_features)
9987 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9988 Comment out by surrounding "#if 0" and "#endif" for the moment.
9989 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9990 (syms_of_font): Codes for accessing above commented out.
9991
99922008-05-24 Eli Zaretskii <eliz@gnu.org>
9993
9994 * w32proc.c: Include dispextern.h.
9995
9996 * w32.c: Include dispextern.h.
9997
99982008-05-23 Juanma Barranquero <lekktu@gmail.com>
9999
10000 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10001 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10002 Fix typos in docstrings.
10003
100042008-05-23 Jason Rumney <jasonr@gnu.org>
10005
10006 * xsmfns.c: Remove includes that are already included by config.h.
10007
100082008-05-23 Kenichi Handa <handa@m17n.org>
10009
10010 * charset.c (Qemacs, charset_emacs): New variables.
10011 (char_charset): Fix for non-Unicode characters.
10012 (syms_of_charset): Define charset_emacs.
10013
10014 * w32term.c (x_draw_glyph_string): Be sure to update
10015 s->underline_thickness and s->underline_position. Be sure to draw
10016 underline within the current line area.
10017
10018 * xterm.c (x_draw_glyph_string): Be sure to update
10019 s->underline_thickness and s->underline_position. Be sure to draw
10020 underline within the current line area.
10021
10022 * fontset.c: Delete unused variables and add casting for char *
10023 throughout the file.
10024 (fontset_font): Try the fallback fonts of the current fontset
10025 before consulting the default fontset.
10026
10027 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10028
10029 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10030
100312008-05-22 Jason Rumney <jasonr@gnu.org>
10032
10033 * font.c: Don't include strings.h.
10034
10035 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10036
10037 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10038 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10039 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10040 to call xstrcasecmp.
10041
10042 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10043
10044 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10045
10046 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10047
10048 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10049
100502008-05-22 Kenichi Handa <handa@m17n.org>
10051
10052 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10053
10054 * font.c (font_prop_validate_style): Adjust for the format
10055 change of font_style_table.
10056
10057 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10058 two args.
10059
10060 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10061 two args.
10062
100632008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10064
10065 * minibuf.c (keys_of_minibuf): Delete.
10066 * lisp.h (keys_of_minibuf): Delete.
10067 * emacs.c (main): Don't call keys_of_minibuf.
10068
100692008-05-22 Kenichi Handa <handa@m17n.org>
10070
10071 * ftfont.c (ftfont_resolve_generic_family): Rename from
10072 ftfont_list_generic_family. Return a single family for each
10073 generic family.
10074 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10075 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10076 Call font_add_log.
10077 (ftfont_match): Call font_add_log.
10078
10079 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10080 (FONT_DEBUG): Define it.
10081 (font_add_log): Extern it.
10082 (font_assert): Rename from xassert.
10083
10084 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10085 (xfont_list_family): Call font_add_log.
10086 (xfont_match): Likewise.
10087 (memq_no_quit): Delete.
10088
10089 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10090 call of Ffont_xlfd_name.
10091
10092 * xfaces.c (struct table_entry, slant_table, weight_table)
10093 (swidth_table): Move to font.c.
10094
10095 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10096 xassert are changed to font_assert. Delete many unused variables.
10097 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10098 New variables.
10099 (struct table_entry): Move from xfaces.c and modified.
10100 (weight_table, slant_table, width_table): Move from xfaces.c and
10101 contents adjusted for the change of struct table_entry.
10102 (font_style_to_value, font_style_symbolic): Adjust for the
10103 format change of font_style_table.
10104 (font_parse_family_registry): Don't overwrite existing foundry and
10105 family of font_spec.
10106 (font_score): Fix calculation of diff for sizes.
10107 (font_sort_entites): Call font_add_log.
10108 (font_delete_unmatched): Return a newly created list.
10109 (font_list_entities): Fix previous change. Call font_add_log.
10110 (font_matching_entity, font_open_entity, font_close_entity):
10111 Call font_add_log.
10112 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10113 (Finternal_set_font_style_table): Delete.
10114 (BUILD_STYLE_TABLE): New macro.
10115 (build_style_table): New function.
10116 (Vfont_log, font_log_env_checked): New variables.
10117 (font_add_log): New function.
10118 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10119 Declare Lisp variables "font-weight-table", "font-slant-table",
10120 "font-width-table", and "font-log". Initialize font_style_table.
10121
101222008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10123
10124 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10125
101262008-05-21 Seiji Zenitani <zenitani@mac.com>
10127 Ryo Yoshitake <ryo@shiftmode.net>
10128
10129 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10130 (Vframe_alpha_lower_limit): New variable.
10131 (x_set_alpha): New function.
10132
10133 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10134
10135 * xfns.c (x-create-frame, Qalpha):
10136 Initialize the frame parameter `alpha'.
10137 * xterm.c (OPAQUE, OPACITY): New.
10138 (x_set_frame_alpha): New function.
10139 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10140
10141 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10142 * w32fns.c (w32_frame_parm_handlers): Likewise.
10143
101442008-05-20 Jason Rumney <jasonr@gnu.org>
10145
10146 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10147 truetype fonts to opentype list.
10148
101492008-05-20 Juanma Barranquero <lekktu@gmail.com>
10150
10151 * fontset.c (Ffontset_info): Doc fix.
10152 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10153 <ignore-relative-composition>: Fix typos in docstrings.
10154
10155 * font.c (syms-of-font) <font-encoding-alist>:
10156 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10157 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10158 (Ffont_otf_alternates): Doc fixes.
10159
101602008-05-20 Kenichi Handa <handa@m17n.org>
10161
10162 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10163 font.h through out the file.
10164 (FONT_DRIVERS): Rename from FONTOBJ.
10165 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10166 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10167
10168 * emacs.c (main): Call syms_of_font unconditionally.
10169
10170 * font.h (find_font_encoding): Extern it.
10171
10172 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10173 fontset.c.
10174 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10175 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10176 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10177 only when HAVE_WINDOW_SYSTEM is defined.
10178 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10179 when HAVE_WINDOW_SYSTEM is defined.
10180
10181 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10182 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10183
10184 * xfaces.c: Include font.h unconditionally.
10185 (merge_face_ref, merge_face_vectors)
10186 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10187
101882008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10189
10190 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10191 indirect_variable.
10192 * eval.c (lisp_indirect_variable): New fun.
10193 (Fuser_variable_p): Use it.
10194
101952008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10196
10197 * lisp.h (indirect_variable):
10198 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10199 Use Lisp_Symbol pointers rather than Lisp_Object.
10200 Adjust callers.
10201 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10202 To this end, change calling-convention.
10203
10204 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10205 if some non-hidden buffers are selected by string&pred.
10206
102072008-05-19 Chong Yidong <cyd@stupidchicken.com>
10208
10209 * process.c (wait_reading_process_output): Always check status
10210 when in batch mode.
10211
102122008-05-19 Kenichi Handa <handa@m17n.org>
10213
10214 * font.c (font_list_entities): Fix handling of cache.
10215 (font_matching_entity): Likewise.
10216
10217 * ftfont.c (cs_iso8859_1): Delete.
10218 (ft_face_cache): New variable.
10219 (struct ftfont_info): New member fc_charset_idx.
10220 (ftfont_build_basic_charsets): Delete.
10221 (fc_charset_table): New variable.
10222 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10223 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10224 Callers changed.
10225 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10226 (ftfont_spec_pattern): New argument fc_charset_idx.
10227 Check registry more rigidly. Change callers.
10228 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10229 change of :font-entity property of the font.
10230
10231 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10232 property of the font.
10233
102342008-05-18 Juanma Barranquero <lekktu@gmail.com>
10235
10236 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10237 (Funencodable_char_position, Fcheck_coding_systems_region)
10238 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10239 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10240 (Ffind_operation_coding_system, Fset_coding_system_priority)
10241 (Fcoding_system_eol_type): Doc fixes.
10242
102432008-05-17 Glenn Morris <rgm@gnu.org>
10244
10245 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10246
102472008-05-16 Eli Zaretskii <eliz@gnu.org>
10248
10249 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10250 and st_gid.
10251
10252 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10253 HAVE_WINDOW_SYSTEM is not defined.
10254
10255 * xfaces.c (merge_face_ref, merge_face_vectors)
10256 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10257 HAVE_WINDOW_SYSTEM is defined.
10258 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10259
102602008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10261
10262 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10263
102642008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10265
10266 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10267
102682008-05-15 Kenichi Handa <handa@m17n.org>
10269
10270 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10271 preference.
10272
102732008-05-15 Glenn Morris <rgm@gnu.org>
10274
10275 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10276
102772008-05-15 Chong Yidong <cyd@stupidchicken.com>
10278
10279 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10280 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10281
10282 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10283
102842008-05-15 Kenichi Handa <handa@m17n.org>
10285
10286 * ftfont.c (ftfont_list): Downcase family name to check generic
10287 families.
10288
10289 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10290 font-spec for QCfont value.
10291
10292 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10293 buffer. Check the return value of it.
10294
102952008-05-14 Jason Rumney <jasonr@gnu.org>
10296
10297 * w32term.c (w32_get_glyph_overhangs): Remove.
10298 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10299
103002008-05-14 Kenichi Handa <handa@m17n.org>
10301
10302 * font.c (font_prop_validate): Make nil a valid value.
10303 (font_clear_cache): Check if the cached vector of entities is nil
10304 or not.
10305
103062008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10307
10308 * emacs.c (main_thread): Conditionalize on
10309 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10310 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10311
10312 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10313 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10314 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10315
103162008-05-14 Kenichi Handa <handa@m17n.org>
10317
10318 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10319 has no corresponding coding system.
10320
103212008-05-14 Jason Rumney <jasonr@gnu.org>
10322
10323 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10324
10325 * w32font.h (w32font_open_internal): Update declaration.
10326
10327 * w32font.c (w32font_open_internal): Change last argument from
10328 w32font_info struct to font object. Fill in font object from
10329 font_entity. Get Outline metrics if possible. Use them to
10330 calculate underline position and thickness. Use xlfd name as name
10331 property. Don't set codepage.
10332 (w32font_open): Pass font_object to w32font_open_internal. Don't
10333 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10334 (w32font_draw): Use s->font.
10335 (clear_cached_metrics): Don't clear non-existent blocks.
10336
10337 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10338 font was not found.
10339 (x_draw_glyph_string): Use underline position and thickness from font.
10340
10341 * w32uniscribe.c (uniscribe_open): Pass font_object to
10342 w32font_open_internal.
10343
103442008-05-14 Kenichi Handa <handa@m17n.org>
10345
10346 These changes are to delete all legacy font-handling codes, and
10347 make Emacs use only font-backends.
10348
10349 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10350 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10351
10352 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10353
10354 * charset.h (Vcharset_non_preferred_head)
10355 (Vcurrent_iso639_language): Extern them.
10356
10357 * charset.c (Vcharset_non_preferred_head): New variable.
10358 (Vcurrent_iso639_language): New variable.
10359 (syms_of_charset): Declare it as a Lisp variable.
10360 (char_charset): Don't check non preferred charsets. As a last
10361 resort, return charset_unicode.
10362 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10363
10364 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10365 conditionals. Don't check enable_font_backend. Delete all codes
10366 used only when USE_FONT_BACKEND is not defined.
10367
10368 * dispextern.h (struct glyph_string): Change type of `font' to
10369 `struct font *'.
10370 (struct glyph_string): New member underline_position and
10371 underline_thickness.
10372 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10373 (struct face): Change type of `font' to `struct font *'. Remove
10374 members `font_name', `font_info_id'.
10375 (per_char_metric, encode_char): Delete externs.
10376 (calc_pixel_width_or_height): Adjust the prototype.
10377
10378 * emacs.c (enable_font_backend): Delete extern.
10379 (main): Don't set enable_font_backend. Don't check the command
10380 line argument "-disable-font-backend".
10381
10382 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10383 (enum font_property_index): New members FONT_DPI_INDEX,
10384 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10385 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10386 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10387 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10388 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10389 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10390 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10391 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10392 (struct font_spec, struct font_entity): New structs.
10393 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10394 (struct font): Many members from old "struct font_info" moved to
10395 here. Members font and entity deleted.
10396 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10397 the new font-related objects.
10398 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10399 (CHECK_FONT_GET_OBJECT): Likewise.
10400 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10401 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10402 (struct font_driver): New members case_sensitive anc check. Type
10403 of the member list and open changed.
10404 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10405 (font_symbolic_width, font_find_object, font_get_spec)
10406 (font_set_lface_from_name): Delete extern.
10407 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10408
10409 * font.c: Include <strings.h>.
10410 (enable_font_backend): Delete it.
10411 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10412 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10413 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10414 (null_string): Delete it.
10415 (null_vector): Make it static.
10416 (font_family_alist): Delete it.
10417 (Qnormal): Extern it.
10418 (QCextra, QClanguage): Delete it.
10419 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10420 (font_make_spec, font_make_entity, font_make_object)
10421 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10422 the string. Callers changed.
10423 (font_pixel_size): Adjusted for the format change of font-related
10424 objects.
10425 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10426 (font_style_to_value, font_style_symbolic): New function.
10427 (build_font_family_alist): Delete it.
10428 (font_registry_charsets): Use Fassoc_string instead of
10429 assq_no_quit.
10430 (font_prop_validate_symbol): Don't return null_string.
10431 (font_prop_validate_style): Adjusted for the change of
10432 style-related values in a font vector.
10433 (font_property_table): Delete entries for QClanguage and
10434 QCantialias, add entries for QCavgwidth.
10435 (get_font_prop_index): Delete the 2nd argument FROM.
10436 (font_prop_validate): Arguments changed.
10437 (font_put_extra): Adjusted for the change of font-related objects.
10438 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10439 (font_parse_fcname, font_unparse_fcname)
10440 (font_prepare_composition): Likewise.
10441 (font_parse_family_registry): Renamed from font_merge_old_spec.
10442 (otf_open): Delete the 1st arg entity.
10443 (font_otf_capability): Adjusted for the above change.
10444 (font_score): New arg alternate_families. Adjusted for the change
10445 of font-related objects.
10446 (font_sort_entites): New arg best_only.
10447 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10448 Delete them.
10449 (font_match_p): Check alternate families.
10450 (font_find_object): Delete it.
10451 (font_check_object): New function.
10452 (font_clear_cache): Adjusted for the change of font-related objects.
10453 (font_delete_unmatched): New arg.
10454 (font_list_entities): Call font_driver->list with a spec that
10455 doesn't specify style-related properties.
10456 (font_matching_entity): Arguments changed. Caller changed.
10457 (font_open_entity): Adjusted for the change of font-related objects.
10458 (font_close_object, font_has_char, font_encode_char)
10459 (font_get_name, font_get_spec): Likewise.
10460 (font_spec_from_name, font_clear_prop, font_update_lface):
10461 New functions.
10462 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10463 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10464 (font_at): Adjusted for the change of font-related objects.
10465 (font_range): New function.
10466 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10467 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10468 (Fcopy_font_spec, Fmerge_font_spec): New function.
10469 (Ffont_family_list): Renamed from list-families.
10470 (Finternal_set_font_style_table): Arguments changed.
10471 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10472 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10473 change of font-related objects.
10474 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10475
10476 * fontset.h (struct font_info): Delete it. Most members go to
10477 struct font.
10478 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10479 (enum FONT_SPEC_INDEX): Delete it.
10480 (font_info, list_fonts_func, load_font_func, query_font_func)
10481 (set_frame_fontset_func, find_ccl_program_func)
10482 (get_font_repertory_func, new_fontset_from_font_name): Delete
10483 externs.
10484 (fontset_from_font_name): Extern it.
10485 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10486 (FONT_INFO_FROM_FACE): Deleted.
10487 (face_for_font): Adjust prototype.
10488
10489 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10490 conditionals. Don't check enable_font_backend. Delete all codes
10491 used only when USE_FONT_BACKEND is not defined.
10492 (get_font_info_func, list_font_func, load_font_func)
10493 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10494 (get_font_repertory_func): Delete them.
10495 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10496 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10497 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10498 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10499 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10500 (fontset_compare_rfontdef): New function.
10501 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10502 rfont-defs by qsort. Adjusted for the change of font-group vector.
10503 (load_font_get_repertory): Deleted.
10504 (fontset_find_font): Use new macros to ref/set elements of
10505 font-def and rfont-def.
10506 (fontset_font): Fix the timing of remembering that no font for C.
10507 (free_face_fontset): Do nothing if the face has no fontset.
10508 (face_suitable_for_char_p): Use new macros to ref/set elements of
10509 rfont-def.
10510 (face_for_char): Likewise. Call face_for_char with font_object.
10511 (fs_load_font): Delete. Delete #pragma surrounding it.
10512 (fs_query_fontset): Use strcasecmp instead of strcmp.
10513 (generate_ascii_font_name): Adjusted for the format change of
10514 font-spec.
10515 (Fset_fontset_font): Likewise. Use new macros to set elements of
10516 font-def.
10517 (Fnew_fontset): Use font_unparse_xlfd to generate
10518 FONTSET_ASCII (fontset).
10519 (new_fontset_from_font_name): Deleted.
10520 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10521 a fontset is already created for the font. FIx updating of
10522 Vfontset_alias_alist.
10523 (fontset_ascii_font): Deleted.
10524 (Ffont_info): Adjusted for the format change of font-spec.
10525 (Finternal_char_font): Likewise.
10526 (Ffontset_info): Likewise.
10527 (syms_of_fontset): Don't check load_font_func.
10528
10529 * fns.c (internal_equal): Handle PREV_FONT.
10530
10531 * frame.h: Delete USE_FONT_BACKEND conditional.
10532
10533 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10534 conditionals. Don't check enable_font_backend. Delete all codes
10535 used only when USE_FONT_BACKEND is not defined.
10536 (x_set_font): Call x_new_font, not x_new_fontset2.
10537 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10538 already set for the frame.
10539
10540 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10541 a font-entity by font_make_entity. Use font_intern_prop instead
10542 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10543 font property. If a font is scalable, set avgwidth property to 0.
10544 Set font-entity property by font_put_extra.
10545 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10546 (ffont_driver): Adjusted for the change of struct font_driver.
10547 (ftfont_spec_pattern): New function.
10548 (ftfont_list): Return a list, not vector.
10549 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10550 (ftfont_list_family): Don't downcase names.
10551 (ftfont_free_entity): Deleted.
10552 (ftfont_open): Return a font-object. Adjusted for the change of
10553 struct font. Get underline_thickness and underline_position from
10554 font property. Don't update dpyinfo->smallest_font_height and
10555 dpyinfo->smallest_char_width.
10556 (ftfont_close): Don't free `struct font'.
10557 (ftfont_has_char): Adjusted for the format change of font-entity.
10558 (ftfont_encode_char, ftfont_text_extents): Likewise.
10559
10560 * ftxfont.c (ftxfont_list): Return a list, not vector.
10561 (ftxfont_open): Return a font-object. Adjusted for the change of
10562 struct font. Get underline_thickness and underline_position from
10563 font property. Don't update dpyinfo->smallest_font_height and
10564 dpyinfo->smallest_char_width.
10565 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10566 (ftxfont_draw): Adjusted for the change of struct font.
10567
10568 * image.c (image_ascent): Don't include "charset.h". Include
10569 "character.h" and "font.h".
10570
10571 * lisp.h (enum pvec_type): New member PREV_FONT.
10572 (Fassoc_string): EXFUN it.
10573
10574 * print.c: Include font.h.
10575 (print_object): Handle font-related objects.
10576
10577 * xdisp.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.
10580 (handle_auto_composed_prop): Do nothing if it->f is not on a
10581 window system. Check how many following characters can be
10582 displayed by the same font.
10583 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10584 'struct font *'.
10585 (get_char_face_and_encoding): Assign the whole encoding task to
10586 the `encode-char' method of a font driver.
10587 (fill_composite_glyph_string): Adjusted for the change of `struct
10588 face' and `struct glyph_string'.
10589 (fill_glyph_string): Likewise.
10590 (get_per_char_metric): Arguments changed.
10591 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10592 and `struct glyph_string'.
10593 (produce_stretch_glyph, calc_line_height_property)
10594 (x_produce_glyphs): Likewise.
10595
10596 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10597 conditionals. Don't check enable_font_backend. Delete all codes
10598 used only when USE_FONT_BACKEND is not defined. Use
10599 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10600 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10601 (Qp): Extern them.
10602 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10603 Deleted.
10604 (struct font_name): Deleted.
10605 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10606 (compare_fonts_by_sort_order): New function.
10607 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10608 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10609 Deleted.
10610 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10611 compare_fonts_by_sort_order.
10612 (Fx_font_family_list): Call Ffont_family_list.
10613 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10614 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10615 (face_symbolic_slant, face_symbolic_swidth)
10616 (split_font_name_into_vector, build_font_name_from_vector)
10617 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10618 (font_rescale_ratio, split_font_name, build_font_name)
10619 (free_font_names, sort_fonts, x_face_list_fonts)
10620 (face_font_available_p, sorted_font_list, cmp_font_names)
10621 (font_list_1, concat_font_list, font_list, remove_duplicates):
10622 Deleted.
10623 (Fx_list_fonts): Use Ffont_list.
10624 (LFACE_AVGWIDTH): Deleted.
10625 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10626 by FONTP.
10627 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10628 (set_lface_from_font_name): Delete it.
10629 (set_lface_from_font): Renamed from
10630 set_lface_from_font_and_fontset. Caller changed. Don't set
10631 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10632 for face.
10633 (merge_face_vectors): Copy font-spec if necessary.
10634 Clear properties of the font-spec if necessary.
10635 (merge_face_ref): Clear properties of the font-spec if necessary.
10636 (Finternal_set_lisp_face_attribute): Likewise.
10637 (set_font_frame_param): Use font_load_for_lface to load a
10638 font-object, and call Fmodify_frame_parameters with it.
10639 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10640 font name by Ffont_xlfd_name.
10641 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10642 QCslant, and QCwidth.
10643 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10644 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10645 Compare fonts by EQ.
10646 (lookup_non_ascii_face): Deleted.
10647 (face_for_font): The 2nd argument changed.
10648 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10649 Check atomic font properties by case insensitive.
10650 (realize_non_ascii_face): Set face->overstrike correctly.
10651 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10652 (dump_realized_face): Get font name from
10653 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10654
10655 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10656 conditionals. Don't check enable_font_backend. Delete all codes
10657 used only when USE_FONT_BACKEND is not defined.
10658 (xic_create_xfontset): Original code deleted and renamed from
10659 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10660 (x_make_gc): Don't set GCFont in GCs.
10661 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10662 opened by "fixed".
10663 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10664 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10665 get_font_repertory_func.
10666
10667 * xfont.c: Include <stdlib.h> and "ccl.h".
10668 (struct xfont_info): New structure.
10669 (xfont_query_font): Deleted.
10670 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10671 moved from xterm.c.
10672 (xfont_driver): Adjusted for the change of struct font_driver.
10673 (compare_font_names): New function.
10674 (xfont_list_pattern): Sort font names case insensitively. Make
10675 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10676 (xfont_list): Return a list, not vector.
10677 (xfont_match): If the font doesn't have QCname property, generate
10678 a name from the other font properties.
10679 (xfont_open): Return a font-object. Adjusted for the change of
10680 struct font. Get underline_thickness and underline_position from
10681 font property. Don't update dpyinfo->smallest_font_height and
10682 dpyinfo->smallest_char_width.
10683 (xfont_close): Don't free struct font.
10684 (xfont_prepare_face): Adjusted for the change of struct font.
10685 (xfont_done_face): Deleted.
10686 (xfont_has_char): Adjusted for the change of struct font.
10687 (xfont_encode_char, xfont_draw): Likewise.
10688 (xfont_check): New function.
10689
10690 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10691 callback function.
10692 (xftfont_match): Adjusted for the format change of font-entity.
10693 (xftfont_open): Adjusted for the format change of font-entity and
10694 font-object. Adjusted for the change of struct font. Return a
10695 font-object. Don't update dpyinfo->smallest_font_height and
10696 dpyinfo->smallest_char_width.
10697 (xftfont_close): Block input while calling XftFontClose.
10698 (xftfont_prepare_face): Don't block input while calling
10699 xftfont_get_colors. Adjusted for the change of struct font.
10700 (xftfont_shape): Return value of error case fixed.
10701
10702 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10703
10704 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10705 conditionals.
10706 (FONT_WIDTH): Return (f)->max_width.
10707 (struct x_display_info): Delete member `font'.
10708 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10709 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10710 (struct x_output): Change type of `font' to `struct font *'.
10711
10712 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10713 conditionals. Don't check enable_font_backend. Delete all codes
10714 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10715 (x_per_char_metric, x_encode_char): Deleted.
10716 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10717 (x_compute_glyph_string_overhangs): Adjusted for the change of
10718 `struct face'.
10719 (x_draw_glyph_string_foreground)
10720 (x_draw_composite_glyph_string_foreground): Likewise.
10721 (x_draw_glyph_string): Likewise. Use font->underline_position and
10722 font->underline_thickness.
10723 (x_new_font): Renamed from x_new_fontset2.
10724 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10725 (x_check_font): Call `check' method of a font driver.
10726 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10727 (x_query_font, x_get_font_repertory): Deleted.
10728 (x_find_ccl_program): Renamed and moved to xfont.c.
10729 (x_redisplay_interface): Adjusted for the change of `struct
10730 redisplay_interface'.
10731
10732 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10733 conditionals. Don't check enable_font_backend. Delete all codes
10734 used only when USE_FONT_BACKEND is not defined. Surround non-used
10735 code by "#ifdef OLD_FONT" and "endif".
10736 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10737
10738 * w32font.h (struct w32font_info): New member.
10739 (FONT_COMPAT): New macro.
10740 (w32font_open_internal): Prototype adjusted.
10741
10742 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10743 OLD_FONT" and "endif".
10744
10745 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10746 conditionals. Don't check enable_font_backend. Delete all codes
10747 used only when USE_FONT_BACKEND is not defined.
10748 (w32font_open): Return a font-object. Make a font-object by
10749 font_make_object. Adjusted for the change of struct w32font_info.
10750 (w32font_close): Don't free struct font. Adjusted for the change
10751 of struct w32font_info.
10752 (w32font_encode_char, w32font_text_extents, w32font_draw):
10753 Adjusted for the change of struct w32font_info.
10754 (w32font_draw): Likewise.
10755 (w32font_list_internal): Return a list, not vector.
10756 (w32font_open_internal): Change the 4th arg to font-object.
10757 Adjusted for the change of struct w32font_info and font-object format.
10758 (add_font_name_to_list): Don't downcase names.
10759 (w32_enumfont_pattern_entity): Make a font-entity by
10760 font_make_entity. Adjusted for the format change of font-entity.
10761 Use FONT_SET_STYLE to set a style-related font property. If a
10762 font is scalable, set avgwidth property to 0. Set font-entity
10763 property by font_put_extra.
10764 (font_matches_spec): Adjusted for the format change of font-entity.
10765 (w32_weight_table, w32_decode_weight): New variables.
10766 (w32_encode_weight): New function.
10767 (fill_in_logfont): Adjusted for the format change of font-spec.
10768 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10769 weight value.
10770 (w32font_driver): Adjusted for the change of struct font_driver.
10771
10772 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10773 conditionals. Don't check enable_font_backend. Surround non-used
10774 code by "#ifdef OLD_FONT" and "endif".
10775 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10776 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10777
10778 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10779 conditionals. Don't check enable_font_backend. Delete all codes
10780 used only when USE_FONT_BACKEND is not defined. Surround non-used
10781 code by "#ifdef OLD_FONT" and "endif".
10782
10783 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10784 (uniscribe_open): Return value changed to font-object.
10785 Adjusted for the format change of font-object.
10786 (uniscribe_otf_capability): Adjusted for the change of struct font.
10787 (add_opentype_font_name_to_list): Don't downcase names.
10788 (uniscribe_font_driver): Adjusted for the change of struct
10789 font_driver.
10790
107912008-05-13 Chong Yidong <cyd@stupidchicken.com>
10792
10793 * dispnew.c (update_frame_1): Check if tty output is still valid
10794 before flushing it.
10795
107962008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10797
10798 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10799 to Gtk+ menus.
10800
108012008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10802
10803 * dired.c (file_name_completion): Tweak the code so as to always do it
10804 in a single pass. Tighten the scope of some variables.
10805
10806 * dired.c (Qdefault_directory): New var.
10807 (file_name_completion): Use it instead of Fexpand_file_name.
10808 (syms_of_dired): Initialize it.
10809
108102008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10811
10812 * fileio.c (double_dollars): Remove dead code.
10813
108142008-05-10 Eli Zaretskii <eliz@gnu.org>
10815
10816 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10817 Mention w32-get-true-file-attributes in doc string.
10818
10819 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10820
108212008-05-09 Glenn Morris <rgm@gnu.org>
10822
10823 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10824 2008-04-23.
10825
108262008-05-09 Eli Zaretskii <eliz@gnu.org>
10827
10828 Support for reporting owner and group of each file on MS-Windows:
10829 * dired.c (stat_uname, stat_gname): New functions, with special
10830 implementation for w32.
10831 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10832
10833 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10834 (dflt_group_name): New static variable.
10835 (dflt_group): Rename from the_group.
10836 (init_user_info): Init dflt_group fields. Get user's group name
10837 from LookupAccountSid.
10838 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10839 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10840 New initialization states.
10841 (globals_of_w32): Initialize them to zero. Initialize the default
10842 group name to "None".
10843 (GetFileSecurity_Name): New global var, the name of the function
10844 to call for GetFileSecurity.
10845 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10846 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10847 (get_file_security, get_security_descriptor_owner)
10848 (get_security_descriptor_group, is_valid_sid)
10849 (get_file_security_desc, get_rid, get_name_and_id)
10850 (get_file_owner_and_group): New functions.
10851 (stat): Use get_file_security_desc and get_file_owner_and_group to
10852 report the owner and primary group of each file. Don't ignore the
10853 high 32 bits of file's size, now that st_size is 64-bit wide.
10854 Fix test when to get true file attributes.
10855 (init_user_info): Use get_rid instead of equivalent inline code.
10856 (fstat): Don't ignore the high 32 bits of file's size.
10857
108582008-05-09 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * image.c (png_load): Use correct bit-depth for setting background
10861 color.
10862
108632008-05-08 Eli Zaretskii <eliz@gnu.org>
10864
10865 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10866 epa-hook.elc.
10867
108682008-05-08 Juanma Barranquero <lekktu@gmail.com>
10869
10870 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10871
108722008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10873
10874 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10875 because the original parameters are in pure storage now.
10876 (mac_window): Remove unused params. Update callers.
10877
108782008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * lread.c (substitute_object_recurse): Use lower-level primitives.
10881 Don't signal errors when traversing sub-char-tables.
10882 Don't loop over all the possible characters when traversing char-tables.
10883
10884 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10885 just like we do in print.c.
10886
108872008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10888
10889 * minibuf.c (Ftry_completion): Remove code left over from when we used
10890 scmp instead of Fcompare_strings.
10891
108922008-05-04 Juanma Barranquero <lekktu@gmail.com>
10893
10894 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10895
108962008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10897
10898 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10899 Create bitmap context in native byte order.
10900
10901 * macterm.c (XDrawLine)
10902 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10903 context in native byte order.
10904
109052008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10906
10907 * config.in: Regenerate.
10908
10909 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10910 New definitions for Image I/O support.
10911 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10912 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10913 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10914 (mac_data_provider_release_data, image_load_image_io)
10915 [USE_MAC_IMAGE_IO]: New functions.
10916 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10917 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10918 (init_image_func_pointer) [MAC_OSX]: Remove function.
10919 (image_load_quartz2d) [MAC_OSX]: Check availability of
10920 CGImageCreateWithPNGDataProvider at compile time.
10921 Use lowercase `false' for boolean constant.
10922 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10923 Use image_load_image_io.
10924 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10925 Don't check MyCGImageCreateWithPNGDataProvider.
10926 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10927 Don't call init_image_func_pointer.
10928
10929 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10930
10931 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10932 Make variable non-static.
10933 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10934 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10935
10936 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10937 (RED_FROM_ULONG): Mask off higher bits.
10938 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10939
10940 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10941 Include AvailabilityMacros.h.
10942 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10943 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10944
109452008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10946
10947 * chartab.c (Fset_char_table_range): If range is t, really set all
10948 chars to that value.
10949
109502008-05-03 Eli Zaretskii <eliz@gnu.org>
10951
10952 * dired.c (Ffile_attributes): Don't allow the device number become
10953 negative.
10954
109552008-05-02 Daiki Ueno <ueno@unixuser.org>
10956
10957 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10958
109592008-05-02 Juri Linkov <juri@jurta.org>
10960
10961 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10962 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10963 DEFAULT argument as a list of default values in docstrings.
10964
109652008-05-01 Chong Yidong <cyd@stupidchicken.com>
10966
10967 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10968
109692008-05-01 Martin Rudalics <rudalics@gmx.at>
10970
10971 * dispnew.c (change_frame_size_1): Preserve small windows when
10972 shrinking frames by calling set_window_height|width with third
10973 arg 2.
10974
10975 * window.h (struct window): Replace field too_small_ok by field
10976 resize_proportionally.
10977
10978 * window.c (make_window): Initialize resize_proportionally.
10979 (enlarge_window): Temporarily set resize_proportionally to make
10980 sure that shrink_windows does scale the window proportionally.
10981 (shrink_windows): When window has resize_proportionally set try
10982 to shrink it proportionally by stealing from other windows.
10983 (struct saved_window, Fset_window_configuration)
10984 (compare_window_configurations): Handle resize_proportionally.
10985 (WINDOW_TOTAL_SIZE): New macro.
10986 (window_min_size, shrink_windows, size_window): Use it.
10987 (check_min_window_sizes): Remove. Invalid values of
10988 window-min-height|width are handled by window_min_size_2 now.
10989 (size_window, Fsplit_window, enlarge_window)
10990 (adjust_window_trailing_edge, grow_mini_window): Don't call
10991 check_min_window_sizes.
10992 (window_min_size_2, window_min_size_1, window_min_size):
10993 New argument safe_p for retrieving "safe" minimum sizes.
10994 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10995 (adjust_window_trailing_edge, grow_mini_window):
10996 Adjust arguments of window_min_size... functions.
10997 (shrink_windows): Argument min_size removed. New argument
10998 safe_p allows shrinking windows to their safe minimum sizes.
10999 Calculate minimum size and decide whether a window shall be
11000 deleted for each window individually.
11001 (size_window): When nodelete_p equals 2, tell shrink_windows to
11002 delete windows only if their new minimum size is no more safe.
11003 (shrink_window_lowest_first): Call window_min_size_1 to make
11004 sure to preserve modeline of bottom-most window when resizing
11005 the minibuffer.
11006 (Fset_window_configuration, Fcurrent_window_configuration)
11007 (compare_window_configurations): Do not handle
11008 window-min-height|width any more.
11009 (syms_of_window): Clarify window-min-height|width doc-strings.
11010
110112008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11012
11013 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11014 some more. Copy some of the code from Ftry_completions.
11015 Remove special case code that dates back to initial revision when the
11016 slash was only added when necessary and that can't trigger nowadays.
11017
110182008-04-27 Kenichi Handa <handa@m17n.org>
11019
11020 * font.c (font_prop_validate): Signal `error' instead of `font'.
11021
110222008-04-29 Jason Rumney <jasonr@gnu.org>
11023
11024 * w32fns.c (Fw32_battery_status): New defun.
11025 (syms_of_w32fns): Defsubr it.
11026
110272008-04-28 Andreas Schwab <schwab@suse.de>
11028
11029 * dired.c (file_name_completion): Fix another mixing of encoded
11030 and decoded names.
11031
110322008-04-28 Juanma Barranquero <lekktu@gmail.com>
11033
11034 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11035
110362008-04-27 Juanma Barranquero <lekktu@gmail.com>
11037
11038 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11039
110402008-04-27 Andreas Schwab <schwab@suse.de>
11041
11042 * dired.c (file_name_completion): Fix inappropriate mixing of
11043 encoded and decoded names.
11044
11045 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11046
11047 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11048
110492008-04-26 Eli Zaretskii <eliz@gnu.org>
11050
11051 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11052 2008-03-31, it's not needed anymore with `struct stat' definition
11053 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11054 for the same reasons.
11055
110562008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11057
11058 * m/sparc.h: Additional redefinitions for GNU/Linux.
11059
110602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11061
11062 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11063 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11064 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11065 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11066 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11067 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11068 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11069 Likewise.
11070
11071 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11072 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11073 (mac_ax_number_of_characters): Add externs.
11074 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11075 [USE_MAC_TSM]: Likewise.
11076 (mac_handle_text_input_event) [MAC_OSX]:
11077 Handle kEventTextInputOffsetToPos for no active input area case.
11078 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11079 (mac_handle_document_access_event)
11080 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11081 (install_application_handler) [MAC_OSX]: Register handlers for
11082 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11083 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11084 Register mac_handle_document_access_event.
11085
11086 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11087 Make functions non-static.
11088
110892008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11090
11091 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11092 (read_file_name_completion_ignore_case, insert_default_directory)
11093 (Qdefault_directory): Move to minibuffer.el.
11094 (Fread_file_name): Call the new `read-file-name' instead.
11095
110962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11097
11098 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11099 Make function non-static.
11100 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11101 Remove function.
11102 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11103 Move to mactoolbox.c.
11104 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11105
11106 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11107 (mac_rect_make): New macro.
11108
11109 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11110 instead of float.
11111 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11112 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11113 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11114 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11115 CGRectMake.
11116 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11117 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11118 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11119 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11120 instead of WindowRef in argument type.
11121 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11122 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11123 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11124 instead of DISPLAY. All uses changed.
11125 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11126 (x_calc_absolute_position): Simplify so as not to use
11127 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11128
11129 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11130 instead of WindowRef in argument type.
11131 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11132 [TARGET_API_MAC_CARBON]: Remove externs.
11133 (create_apple_event, mac_event_parameters_to_lisp)
11134 [TARGET_API_MAC_CARBON]: Add externs.
11135
11136 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11137 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11138 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11139 is clicked.
11140 (x_activate_menubar): Remove extern for saved_menu_event_location.
11141 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11142 Move from mac.c.
11143
111442008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11145
11146 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11147 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11148
111492008-04-23 Jason Rumney <jasonr@gnu.org>
11150
11151 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11152 attributes only for local files.
11153
11154 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11155 default to Qlocal.
11156
111572008-04-22 Juri Linkov <juri@jurta.org>
11158
11159 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11160 read-buffer-to-switch instead of using the letter "B".
11161
111622008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11163
11164 * fileio.c (Qdefault_directory): New variable.
11165 (Fread_file_name): Use it to pass `dir' to the completion functions.
11166
111672008-04-20 Chong Yidong <cyd@stupidchicken.com>
11168
11169 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11170
111712008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11172
11173 * keyboard.c (Vpre_help_message): Remove.
11174 (show_help_echo): Remove default C code.
11175
11176 * dired.c (directory_files_internal, file_name_completion):
11177 Only call ENCODE_FILE if the string is indeed decoded.
11178
111792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11180
11181 * Makefile.in (TOOLKIT_DEFINES): Remove.
11182 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11183
111842008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11185
11186 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11187 (mactoolbox.o): New target.
11188
11189 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11190 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11191
11192 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11193 Use mac_set_frame_window_background instead of XSetWindowBackground.
11194 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11195 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11196 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11197 instead of SetWindowTitleWithCFString.
11198 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11199 Move function to mactoolbox.c.
11200 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11201 Use mac_set_window_modified instead of SetWindowModified.
11202 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11203 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11204 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11205 FrontNonFloatingWindow. Use mac_activate_window instead of
11206 ActivateWindow. Use mac_active_non_floating_window instead of
11207 ActiveNonFloatingWindow.
11208 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11209 Use mac_show_hourglass and mac_hide_hourglass.
11210 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11211 instead of GetGlobalMouse.
11212 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11213 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11214 Use mac_bring_window_to_front instead of BringToFront.
11215 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11216 mactoolbox.c.
11217 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11218 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11219 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11220 mactoolbox.c.
11221
11222 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11223 (XtPointer): Move typedef from macmenu.c.
11224 (enum button_type): Move enum from macmenu.c.
11225 (widget_value): Move typedef from macmenu.c.
11226 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11227 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11228 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11229 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11230 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11231 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11232 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11233 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11234 (Selection): Move typedef from macselect.c.
11235 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11236 macterm.c.
11237 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11238 (mac_is_window_collapsed, mac_bring_window_to_front)
11239 (mac_send_window_behind, mac_hide_window, mac_show_window)
11240 (mac_collapse_window, mac_front_non_floating_window)
11241 (mac_active_non_floating_window, mac_activate_window)
11242 (mac_move_window_structure, mac_move_window, mac_size_window)
11243 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11244
11245 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11246 (enum mac_menu_kind): Move enum to mactoolbox.c.
11247 (min_menu_id): Move variable to mactoolbox.c.
11248 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11249 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11250 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11251 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11252 [TARGET_API_MAC_CARBON]: Likewise.
11253 (XtPointer): Move typedef to macgui.h.
11254 (enum button_type): Move enum to macgui.h.
11255 (widget_value): Move typedef to macgui.h.
11256 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11257 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11258 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11259 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11260 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11261 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11262 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11263 (popup_activated_flag): Make variable non-static.
11264 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11265 (add_menu_item, fill_menu, dispose_menus):
11266 Move functions to mactoolbox.c.
11267 (restore_show_help_function, menu_target_item_handler)
11268 (install_menu_target_item_handler, mac_handle_dialog_event)
11269 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11270 [TARGET_API_MAC_CARBON]: Likewise.
11271 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11272 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11273 (find_and_call_menu_selection, name_is_separator): Make function
11274 non-static.
11275 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11276 to mactoolbox.c.
11277 (set_frame_menubar): Don't call install_menu_quit_handler.
11278 (menu_item_selection): New variable.
11279 (mac_menu_show): Use create_and_show_popup_menu.
11280 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11281 selection but set variable menu_item_selection. All uses changed.
11282 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11283 Call install_menu_quit_handler. Move to mactoolbox.c.
11284
11285 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11286 (Selection): Move typedef to macgui.h.
11287 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11288 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11289 Make variables non-static.
11290 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11291 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11292 Make functions non-static.
11293 (Vmac_service_selection) [MAC_OSX]: Likewise.
11294 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11295 (mac_valid_selection_target_p, mac_clear_selection)
11296 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11297 (mac_put_selection_value, mac_selection_has_target_p)
11298 (mac_get_selection_value, mac_get_selection_target_list)
11299 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11300 Move functions to mactoolbox.c.
11301 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11302 Likewise.
11303 (copy_scrap_flavor_data, mac_handle_service_event)
11304 (install_service_handler) [MAC_OSX]: Likewise.
11305 (syms_of_macselect) <Vmac_dnd_known_types>:
11306 Use mac_dnd_default_known_types.
11307
11308 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11309 Move to mactoolbox.c.
11310 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11311 (Fx_selection_owner_p): Add EXFUN.
11312 (install_window_handler, remove_window_handler, XSetWindowBackground):
11313 Remove externs.
11314 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11315 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11316 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11317 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11318 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11319 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11320 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11321 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11322 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11323 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11324 (mac_valid_selection_target_p, mac_clear_selection)
11325 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11326 (mac_put_selection_value, mac_selection_has_target_p)
11327 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11328 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11329 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11330 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11331 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11332 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11333 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11334 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11335 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11336
11337 * mactoolbox.c: New file.
11338
113392008-04-18 Jason Rumney <jasonr@gnu.org>
11340
11341 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11342
113432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11344
11345 * character.c (Fmultibyte_char_to_unibyte):
11346 Return latin1 chars unchanged.
11347
11348 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11349 relocated if it points to `name'.
11350
113512008-04-17 Kenichi Handa <handa@m17n.org>
11352
11353 * data.c (Faset): Allow setting a multibyte character in an
11354 ASCII-only unibyte string.
11355
11356 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11357
113582008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11359
11360 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11361 done in config.h.
11362
113632008-04-16 Juanma Barranquero <lekktu@gmail.com>
11364
11365 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11366 (Fchar_direction): Add usage in the docstring.
11367
113682008-04-15 Chong Yidong <cyd@stupidchicken.com>
11369
11370 * keyboard.c (read_key_sequence): Remove always-true checks.
11371
113722008-04-14 Jason Rumney <jasonr@gnu.org>
11373
11374 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11375 compatibility struct, for better underline positioning.
11376
113772008-04-13 David Hansen <david.hansen@gmx.net>
11378
11379 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11380 string.
11381
113822008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11383
11384 * m/hp800.h (XUINT, XSET): Remove.
11385
113862008-04-12 Juanma Barranquero <lekktu@gmail.com>
11387
11388 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11389 previous change.
11390
113912008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11392
11393 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11394 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11395
113962008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11397
11398 * keymap.h (map_keymap_canonical): Declare.
11399 * xmenu.c (single_keymap_panes): Use it.
11400
114012008-04-11 Glenn Morris <rgm@gnu.org>
11402
11403 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11404 set the target's value to that of the alias.
11405
114062008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * term.c (set_tty_color_mode): Left over typo.
11409
114102008-04-10 Michael Albinus <michael.albinus@gmx.de>
11411
11412 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11413 only after check for file name handler functions. Signal, when
11414 native functionality is not supported.
11415 (syms_of_fileio): Declare it unconditionally.
11416
114172008-04-10 Jason Rumney <jasonr@gnu.org>
11418
11419 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11420 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11421
11422 * w32.c (logon_network_drive): Also logon to remote drives that
11423 are mapped to drive letters.
11424
114252008-04-10 Glenn Morris <rgm@gnu.org>
11426
11427 * xdisp.c (truncate-partial-width-windows): Doc fix.
11428
114292008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11430
11431 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11432 Move functions to minibuffer.el.
11433 (syms_of_fileio): Don't declare them.
11434
114352008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11436
11437 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11438 (syms_of_minibuf): Remove its initialization.
11439
11440 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11441
114422008-04-09 Juanma Barranquero <lekktu@gmail.com>
11443
11444 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11445
114462008-04-09 Jason Rumney <jasonr@gnu.org>
11447
11448 * makefile.w32-in (distclean): Delete makefile too.
11449 (maintainer-clean): New target.
11450
11451 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11452
11453 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11454 for new font backend and composite cases.
11455
114562008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11457
11458 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11459 Most of the code moved to run_timers.
11460 (do_pending_atimers): Call run_timers.
11461 (run_timers): New function.
11462
11463 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11464 run atimers.
11465
11466 * process.c (wait_reading_process_output): The same as above.
11467
114682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11469
11470 * minibuf.c (last_exact_completion): Remove variable.
11471 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11472 (complete_and_exit_1, complete_and_exit_2)
11473 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11474 (Fdisplay_completion_list, display_completion_list_1)
11475 (Fminibuffer_completion_help, Fself_insert_and_exit)
11476 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11477 minibuffer.el.
11478 (syms_of_minibuf): Remove corresponding initializations.
11479
11480 * keyboard.c (Qdeactivate_mark): New var.
11481 (command_loop_1): Use it to call `deactivate-mark'.
11482 (syms_of_keyboard): Initialize it.
11483
11484 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11485 to another frame.
11486 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11487 Don't call set_tty_color_mode.
11488 (store_frame_param): Reset previous_frame rather than call
11489 set_tty_color_mode.
11490 * term.c (set_tty_color_mode): Rewrite.
11491 * dispextern.h (set_tty_color_mode): New type.
11492 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11493
114942008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11495
11496 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11497 for generic chars, which do not exist any more in emacs-unicode.
11498
114992008-04-08 Michael Albinus <michael.albinus@gmx.de>
11500
11501 * coding.c (detect_coding_emacs_mule)
11502 (Ffind_operation_coding_system): Fix typo.
11503
115042008-04-08 Jason Rumney <jasonr@gnu.org>
11505
11506 * w32uniscribe.c (SNAME): Extract only symbol name.
11507
11508 * w32font.h (struct w32_metric_cache): New struct.
11509 (w32font_info): Use it.
11510 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11511 (CACHE_BLOCKSIZE): New constants.
11512
11513 * w32font.c (Qja, Qko, Qzh): New symbols.
11514 (syms_of_w32font): Initialise them.
11515 (font_matches_spec): Use them to filter by language.
11516 (recompute_cached_metrics): Remove function.
11517 (compute_metrics, clear_cached_metrics): New functions.
11518 (w32font_encode_char): Use them to manage metric cache.
11519 (w32font_text_extents): Cache metrics for all glyphs on demand.
11520 Delay converting glyph indices to WORD until needed.
11521 (w32font_open_internal): Initialize metric cache to empty.
11522 (registry_to_w32_charset): Charset should always be a symbol.
11523 (fill_in_logfont, list_all_matching_fonts): Family should
11524 always be a symbol.
11525
115262008-04-06 Jason Rumney <jasonr@gnu.org>
11527
11528 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11529 Give up if glyph indices not supported. Use uniscribe obtained
11530 ABC widths for individual metrics. Map glyph clusters back to
11531 characters using fClusterStart flag. Return number of glyphs
11532 produced, not chars processed.
11533 (uniscribe_shape): Map char at FROM to current glyph.
11534
115352008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11536
11537 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11538 Use SetMenuItemHierarchicalMenu.
11539
115402008-04-05 Jason Rumney <jasonr@gnu.org>
11541
11542 * image.c (pbm_load): Allow color values up to 65535.
11543 Throw an error if max_color_idx is outside the supported range.
11544 Report an error when image size is invalid.
11545 Read two bytes at a time when raw images have max_color_idx above 255.
11546
115472008-04-05 Eli Zaretskii <eliz@gnu.org>
11548
11549 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11550 cFileName a file name that includes `?' characters, use the 8+3
11551 alias in cAlternateFileName instead.
11552
115532008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11554
11555 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11556 append "CCL: Quitted" when the CCL program is quitted.
11557 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11558
11559 * ccl.h (struct ccl_program): New member quit_silently.
11560
115612008-04-05 Chong Yidong <cyd@stupidchicken.com>
11562
11563 * search.c (compile_pattern_1): Treat non-nil and non-string of
11564 search-spaces-regexp as nil.
11565
11566 * minibuf.c (Fassoc_string): Tweak docstring.
11567
115682008-04-05 Eli Zaretskii <eliz@gnu.org>
11569
11570 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11571 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11572 2008-03-14 to force inode be positive.
11573
11574 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11575 _S_* ones, since we now use our own sys/stat.h.
11576 (stat, fstat): Don't mangle the inode number.
11577 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11578
115792008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11580
11581 * frame.h (struct frame): Give one more bit to `visible' since we use
11582 values larger than 1 to indicate obscured frames on ttys.
11583
11584 * keymap.c (Qkeymap_canonicalize): New var.
11585 (Fmap_keymap_internal): New fun.
11586 (describe_map): Use keymap-canonicalize.
11587
11588 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11589 (Fundo_boundary): Set them.
11590 (syms_of_undo): Initialize them.
11591 (record_point): Use them instead of last_point_position*.
11592 (last_undo_buffer): Change type.
11593
115942008-04-04 Jason Rumney <jasonr@gnu.org>
11595
11596 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11597 (recompute_cached_metrics): Don't set ascent and descent per char.
11598
11599 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11600 (uniscribe_check_otf): Add GC protection before consing.
11601 Rearrange loop for counting features.
11602
116032008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11604
11605 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11606 buffer with byte-size of source buffer.
11607
116082008-04-03 Chong Yidong <cyd@stupidchicken.com>
11609
11610 * callint.c (Fcall_interactively): Handle temporary region even
11611 when shift-select-mode is off.
11612
116132008-04-03 Jason Rumney <jasonr@gnu.org>
11614
11615 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11616
116172008-04-03 Kenichi Handa <handa@m17n.org>
11618
11619 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11620 (CATEGORY_MASK_UTF_16): Likewise.
11621 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11622 binary file.
11623 (detect_coding): Add null-byte detection for a binary file.
11624 (detect_coding_system): Likewise.
11625
116262008-04-03 Jason Rumney <jasonr@gnu.org>
11627
11628 * w32uniscribe.c: New file.
11629
11630 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11631
11632 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11633
11634 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11635 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11636 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11637 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11638 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11639 (Qphonetic): New symbols.
11640 (syms_of_w32font): Initialize them.
11641 (font_supported_scripts): Use them.
11642 (w32font_list_family): List all charsets.
11643 (w32font_text_extents, recompute_cached_metrics): Fix metric
11644 calculations.
11645 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11646 Give opentype fonts their own format.
11647 (font_matches_spec): New arguments backend and logfont.
11648 Handle :otf spec for uniscribe backend.
11649 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11650 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11651
11652 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11653 font backend.
11654 (globals_of_w32fns): Initialize uniscribe font backend.
11655
11656 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11657 dependencies.
11658 (w32uniscribe.$(O)): New file to build.
11659 (FONT_OBJ): Include w32uniscribe.$(O).
11660 (LIBS): Add uniscribe libraries.
11661
11662 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11663
116642008-04-02 Chong Yidong <cyd@stupidchicken.com>
11665
11666 * callint.c (Vshift_select_mode): New var.
11667 (Finteractive): Document new ^ spec.
11668 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11669 is present.
11670
11671 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11672 (command_loop_1): Avoid running the direct display versions of
11673 forward-char and backward-char if shift-selection may occur.
11674 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11675 shift-translation takes place.
11676
11677 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11678 avoid clobbering by define-minor-mode.
11679
11680 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11681 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11682
11683 * syntax.c (Fforward_word): Add ^ interactive spec.
11684
11685 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11686 (Fscroll_right): Add ^ interactive spec.
11687
116882008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11689
11690 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11691
11692 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11693
11694 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11695
116962008-03-31 Juri Linkov <juri@jurta.org>
11697
11698 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11699
117002008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11701
11702 * gtkutil.c (xg_set_geometry): Fix indentation.
11703 (xg_resize_outer_widget): Remove.
11704 (x_wm_size_hint_off): Fix indentation.
11705 (xg_frame_set_char_size): Call flush_and_sync after
11706 gtk_window_resize.
11707 (x_wm_set_size_hint): Pass NULL as geometry window to
11708 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11709 Add menu bar and tool bar height to base height.
11710 (xg_update_frame_menubar, free_frame_menubar)
11711 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11712 (update_frame_tool_bar, free_frame_tool_bar):
11713 Change xg_resize_outer_widget to xg_frame_set_char_size.
11714
117152008-03-30 Michael Albinus <michael.albinus@gmx.de>
11716
11717 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11718 (Fdbus_call_method): New parameter TIMEOUT.
11719 (dbus-send-signal): Optimize UNGCPRO call.
11720
117212008-03-29 Juri Linkov <juri@jurta.org>
11722
11723 * window.c (Fdisplay_buffer): Move call to
11724 Vsplit_window_preferred_function out of conditions that check
11725 if window is eligible for vertical splitting.
11726 When Vsplit_window_preferred_function is non-nil, call it and use
11727 its non-nil return value as window. Otherwise, continue doing
11728 vertical splitting using Fsplit_window with arg horflag=nil.
11729 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11730 default value from `split-window' to nil.
11731
117322008-03-29 Juri Linkov <juri@jurta.org>
11733
11734 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11735 for interactive code letters 'b' and 'B'.
11736
117372008-03-29 Eli Zaretskii <eliz@gnu.org>
11738
11739 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11740 multibyte string.
11741
117422008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11743
11744 * keyboard.c (pending_funcalls): New var.
11745 (timer_check): Run it.
11746 (syms_of_keyboard): Initialize it.
11747 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11748 (Vdelete_terminal_functions): New vars.
11749 (syms_of_terminal): Initialize them.
11750 (Fdelete_terminal): Run delete-terminal-functions.
11751 * xdisp.c (safe_eval): Rewrite.
11752 (safe_call2): New fun.
11753 * frame.c (Qdelete_frame_functions): New var.
11754 (syms_of_frame): Initialize it.
11755 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11756 * lisp.h (safe_call2, pending_funcalls): Declare.
11757
117582008-03-28 Andreas Schwab <schwab@suse.de>
11759
11760 * indent.c (Fmove_to_column): Move declaration before statements.
11761
117622008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11763
11764 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11765 (struct frame): Use bit fields for boolean vars.
11766
11767 * process.c (server_accept_connection): Simplify naming.
11768 (emacs_get_tty_pgrp): Use SDATA.
11769
11770 * coding.c (decode_coding_object): Fix last change.
11771
117722008-03-27 Jason Rumney <jasonr@gnu.org>
11773
11774 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11775
117762008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11777
11778 * charset.c (Fdefine_charset_internal): Change the way of
11779 registering charsets in Vcharset_order_list.
11780 (syms_of_charset): Make the charset `eight-bit' supplementary.
11781
117822008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11783
11784 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11785 operations, to avoid having the difference between pointers
11786 overflow.
11787
117882008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * indent.c (check_display_width): New fun.
11791 (scan_for_column): Use it.
11792
11793 * data.c (syms_of_data): Mark most-positive-fixnum and
11794 most-negative-fixnum as constants.
11795
11796 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11797
11798 * indent.c (scan_for_column): Extract from current_column_1.
11799 Merge with the same code from Fmove_to_column.
11800 (current_column_1, Fmove_to_column): Use it.
11801
118022008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * keymap.c (map_keymap_internal): New fun.
11805 (map_keymap): Use it.
11806 (Fmap_keymap_internal): New fun.
11807 (Fmap_keymap): Remove left-out test from before make_save_value.
11808
11809 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11810
11811 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11812 Use XCAR/XCDR.
11813
11814 * process.h (struct Lisp_Process): Remove filter_multibyte.
11815 * process.c (QCfilter_multibyte): Remove.
11816 (setup_process_coding_systems): Don't use filter_multibyte.
11817 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11818 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11819 (Fset_process_filter_multibyte): Change the coding-system to
11820 approximate the previous behavior.
11821 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11822 coding-system.
11823
11824 * coding.c (decode_coding_object): When not decoding into a buffer,
11825 obey the coding system's preference of (uni|multi)byte.
11826
118272008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11828
11829 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11830 every char is changed and has a different byte-length.
11831 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11832 Fix int -> EMACS_INT.
11833
118342008-03-23 David Hansen <david.hansen@gmx.net>
11835
11836 * dbusbind.c (xd_read_message): Remove extra copying of message
11837 strings. Check for NULL `interface' or `member'.
11838
118392008-03-22 Eli Zaretskii <eliz@gnu.org>
11840
11841 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11842 cFileName a file name that includes `?' characters, use the 8+3
11843 alias in cAlternateFileName instead.
11844
118452008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11846
11847 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11848
118492008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11852 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11853 work on current_buffer only instead (that was already the case
11854 for some of the code anyway).
11855 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11856 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11857 (SET_PT, SET_PT_BOTH): Adjust.
11858 * intervals.h (set_point, temp_set_point, set_point_both)
11859 (temp_set_point_both): Remove redundant declarations.
11860
118612008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11862
11863 * fileio.c (Finsert_file_contents):
11864 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11865 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11866 when buffer != current_buffer anyway.
11867
118682008-03-20 Andreas Schwab <schwab@suse.de>
11869
11870 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11871 as default.
11872
118732008-03-19 Jason Rumney <jasonr@gnu.org>
11874
11875 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11876 (syms_of_w32fns): Initialize them.
11877 (HOURGLASS_ID): New constant.
11878 (x_window_to_frame): Don't check hourglass_window.
11879 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11880 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11881 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11882 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11883 Only change the cursor if hourglass is not active.
11884 (Fx_create_frame): Initialize frame's current_cursor.
11885 (hourglass_atimer): Remove.
11886 (hourglass_started): New function.
11887 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11888 (show_hourglass): Adapt to w32, changing argument to frame.
11889
11890 * w32term.h (struct w32_output): Remove hourglass_window.
11891 Add current_cursor.
11892
11893 * eval.c (call_debugger, Fsignal):
11894 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11895 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11896 (Fexecute_extended_command, cancel_hourglass_unwind):
11897 * minibuf.c (read_minibuf):
11898 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11899
119002008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11901
11902 * window.c (run_funs): New fun.
11903 (run_window_configuration_change_hook): Use it to run the buffer-local
11904 and the global part of the hook.
11905
11906 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11907 (unwind_format_mode_line): Restore selected window.
11908 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11909
119102008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11911
11912 * editfns.c (Fchar_equal): Check they are valid characters.
11913
11914 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11915
119162008-03-17 Andreas Schwab <schwab@suse.de>
11917
11918 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11919 against a charset.
11920
11921 * lisp.h (Fbuffer_list): Declare.
11922
119232008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11924
aac0c6e3
MR
11925 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11926 handlebox_widget is != 0.
11927
119282008-03-16 Juri Linkov <juri@jurta.org>
11929
11930 * callint.c (Fcall_interactively): For interactive code letters
11931 'b' and 'B' put the buffer list into the list of default "future"
11932 values of the minibuffer.
11933
119342008-03-16 Andreas Schwab <schwab@suse.de>
11935
11936 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11937 modifiers.
11938
11939 * regex.c (re_match_2_internal): Correct matching of a charset
11940 against latin-1 characters.
11941
119422008-03-16 Kenichi Handa <handa@m17n.org>
11943
11944 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11945 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11946 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11947 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11948 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11949 CHAR_STRING_ADVANCE.
11950 (produce_chars): Fix for the case that the source and the
11951 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11952 instead of CHAR_STRING_ADVANCE.
11953 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11954 STRING_CHAR_ADVANCE.
11955
119562008-03-15 Andreas Schwab <schwab@suse.de>
11957
11958 * regex.c (re_match_2_internal): Correct matching of eight bit
11959 characters in unibyte strings.
11960
119612008-03-15 Martin Rudalics <rudalics@gmx.at>
11962
11963 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11964 at end of range when it coincides with the end of the buffer.
11965
119662008-03-14 Eli Zaretskii <eliz@gnu.org>
11967
11968 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11969
11970 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11971
119722008-03-14 Jason Rumney <jasonr@gnu.org>
11973
11974 * editfns.c (initial_tz): New variable.
11975 (syms_of_editfns): Initialize it.
11976 (Fset_time_zone_rule): Set it when first called.
11977 Use it when TZSTRING is nil.
11978
11979 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11980 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11981 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11982 (globals_of_w32fns): Initialize them.
11983 (compute_tip_xy): Use them to position tooltips.
11984
119852008-03-14 Glenn Morris <rgm@gnu.org>
11986
11987 * emacs.c (main): Revert previous change.
11988 (standard_args): Revert -internal-script back to -scriptload,
11989 and remove the long-option form.
11990
119912008-03-13 Glenn Morris <rgm@gnu.org>
11992
11993 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11994 Remove option -enable-font-backend.
11995
119962008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11999
120002008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12001
12002 * xterm.c (x_connection_closed): For GTK: If this is the last
12003 terminal just exit without closing the display.
12004
120052008-03-11 Jason Rumney <jasonr@gnu.org>
12006
12007 * w32font.c (w32font_full_name): Use floor to round.
12008
f0131492 120092008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12010
12011 * sound.c (alsa_configure): Declare vol at beginning of block.
12012
12013 * fontset.c (Ffontset_info): Remove extra semicolon.
12014
120152008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12016
12017 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12018 size of resulting string.
12019
120202008-03-10 Jason Rumney <jasonr@gnu.org>
12021
12022 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12023
120242008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12025
12026 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12027 Don't pretend as if characters with display property haven't been
12028 consumed for string-replacing-string case.
12029
120302008-03-08 Kim F. Storm <storm@cua.dk>
12031
12032 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12033 (get_next_display_element, next_element_from_string)
12034 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12035
120362008-03-08 Andreas Schwab <schwab@suse.de>
12037
12038 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12039
120402008-03-06 Jason Rumney <jasonr@gnu.org>
12041
12042 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12043 when charset not specified. Only translate ANSI to unicode when
12044 font_type is truetype.
12045 (w32font_coverage_ok): New function.
12046 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12047
120482008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12049
12050 * lread.c (Fread_char): Resolve modifiers.
12051 (Fread_char_exclusive): Likewise.
12052
12053 * character.c (char_resolve_modifier_mask): New function.
12054 (char_string): Use char_resolve_modifier_mask.
12055 (Fchar_resolve_modifiers): New function.
12056 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12057 function.
12058
120592008-03-04 Jason Rumney <jasonr@gnu.org>
12060
12061 * makefile.w32-in: Always include w32font.c in the build.
12062 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12063
120642008-03-04 Andreas Schwab <schwab@suse.de>
12065
12066 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12067 (versionclean): Likewise.
12068
120692008-03-04 Juanma Barranquero <lekktu@gmail.com>
12070
12071 * .cvsignore: Add oo.
12072
120732008-03-03 Andreas Schwab <schwab@suse.de>
12074
12075 * coding.c (decode_coding_object): Inhibit gap shrinking while
12076 decoding in place.
12077
120782008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12079
12080 * w32term.c: Remove unused include "gnu.h".
12081 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12082
12083 * gnu.h: Rename to ...
12084 * emacs-icon.h: ... this.
12085 * xterm.c: Use emacs-icon.h instead of gnu.h.
12086 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12087
120882008-03-03 Juanma Barranquero <lekktu@gmail.com>
12089
12090 * w32font.c: Include math.h.
12091
120922008-03-03 Jason Rumney <jasonr@gnu.org>
12093
12094 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12095 Compute options separately.
12096 (w32font_open_internal): Set glyph_idx before caching metrics.
12097
12098 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12099 Define if system headers don't.
12100 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12101 (w32font_encode_char): Don't declare here.
12102
12103 * w32font.c (Quniscribe, QCformat): New symbols.
12104 (syms_of_w32font): Define them.
12105 (w32font_has_char): Indicate uncertainty.
12106 (w32font_encode_char): Encode as glyph point. Make static.
12107 (recompute_cached_metrics): New function.
12108 (w32font_open_internal): Use it. Set font to use glyph points
12109 initially. Set format based on type of font.
12110 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12111 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12112 on it. Set format based on information available here.
12113 (add_font_entity_to_list): Identify backend based on opentype_only.
12114
121152008-03-02 Andreas Schwab <schwab@suse.de>
12116
12117 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12118
12119 * coding.c (decode_coding_big5, produce_chars):
12120 Fix typos in last change.
12121
121222008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12123
12124 * gnu.h: New icon.
12125
121262008-03-02 Kenichi Handa <handa@m17n.org>
12127
12128 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12129 `dos', don't decode '\r' if that is the last in the source.
12130 (decode_coding_utf_16, decode_coding_emacs_mule)
12131 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12132 (decode_coding_raw_text, decode_coding_charset): Likewise.
12133 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12134
121352008-03-01 Jason Rumney <jasonr@gnu.org>
12136
12137 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12138
121392008-03-01 Kim F. Storm <storm@cua.dk>
12140
12141 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12142
121432008-03-01 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32font.c (w32font_full_name): New function.
12146 (w32font_open_internal): Use it.
12147
121482008-03-01 Kim F. Storm <storm@cua.dk>
12149
12150 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12151
121522008-03-01 Jason Rumney <jasonr@gnu.org>
12153
12154 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12155
121562008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12157
12158 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12159 xg_frame_resized when the event is for the edit widget.
12160
12161 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12162
12163 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12164 set_char_size.
12165 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12166 operations on widgets here. Just set frame size if needed.
12167 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12168 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12169 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12170 the whole frame.
12171 (xg_create_tool_bar): Move attachment of the tool bar to
12172 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12173 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12174
121752008-03-01 Jason Rumney <jasonr@gnu.org>
12176
12177 * w32fns.c (w32_msg_pump): Disable debug code.
12178
121792008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12180
12181 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12182
121832008-02-29 Chong Yidong <cyd@stupidchicken.com>
12184
12185 * xdisp.c (next_overlay_string): Don't set
12186 overlay_strings_at_end_processed_p if we're currently reading from
12187 a display string.
12188
121892008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * xdisp.c (get_overlay_strings_1): Fix typo.
12192
121932008-02-29 Chong Yidong <cyd@stupidchicken.com>
12194
12195 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12196
121972008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12198
12199 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12200
12201 * xdisp.c (display_mode_element): Cancel the previous change.
12202 (decode_mode_spec): Likewise.
12203 (handle_auto_composed_prop): Don't make composition if it->string
12204 is a string.
12205
122062008-02-27 Kim F. Storm <storm@cua.dk>
12207
12208 * lisp.h (GLYPH): Change type from int to struct with separate char
12209 and face_id members.
12210 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12211 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12212 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12213 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12214 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12215 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12216 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12217 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12218 handle new Lisp glyph code encoding, either an integer or a cons.
12219
12220 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12221 (GLYPH_ALIAS): Delete.
12222 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12223 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12224 (GLYPH_FROM_CHAR): Replace macro by ...
12225 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12226
12227 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12228 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12229 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12230 (GLYPH_INVALID_P): New macro.
12231 (spec_glyph_lookup_face): Update prototype.
12232
12233 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12234 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12235 new glyph code encoding.
12236 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12237 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12238
12239 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12240 Adapt to new glyph type and new glyph code encoding.
12241
12242 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12243
12244 * indent.c (current_column, current_column_1, Fmove_to_column)
12245 (compute_motion): Adapt to new glyph code encoding.
12246
12247 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12248
122492008-02-27 Chong Yidong <cyd@stupidchicken.com>
12250
12251 * process.c (wait_reading_process_output): Check for window
12252 changes caused by timers.
12253 Suggested by Johan Bockgård.
12254
122552008-02-27 Glenn Morris <rgm@gnu.org>
12256
12257 * emacs.c (USAGE1): Add `--disable-font-backend'.
12258
122592008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12260
12261 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12262 is made to the buffer.
12263
122642008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12265
12266 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12267 (face_at_string_position):
12268 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12269 (face_at_string_position):
12270 * xdisp.c (display_string, next_overlay_change):
12271 * buffer.h (overlays_at):
12272 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12273 Update callers.
12274
122752008-02-26 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * editfns.c (Fformat): Doc fix.
12278
122792008-02-26 Juanma Barranquero <lekktu@gmail.com>
12280
12281 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12282 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12283 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12284
122852008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12286
12287 * buffer.c (Fbuffer_swap_text): New function.
12288 (syms_of_buffer): Defsubr it.
12289
122902008-02-25 Chong Yidong <cyd@stupidchicken.com>
12291
12292 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12293
122942008-02-25 Jason Rumney <jasonr@gnu.org>
12295
12296 * w32font.c (w32font_draw): Draw one character at a time when padding.
12297
122982008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12299
12300 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12301 Handle a nil arg. Use run_window_configuration_change_hook.
12302 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12303 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12304 Use run_window_configuration_change_hook.
12305
123062008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12307
12308 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12309 1-pixel width.
12310
123112008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12312
12313 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12314 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12315 if the glyph in the font is zero pixel with.
12316
12317 * dispextern.h (struct glyph_string): New member padding_p.
12318
12319 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12320
12321 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12322
12323 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12324
12325 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12326
12327 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12328
123292008-02-25 Jason Rumney <jasonr@gnu.org>
12330
12331 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12332
123332008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12334
12335 Allow fine-grained image-cache flushing.
12336 * dispextern.h (struct image): Add `dependencies' field.
12337 (clear_image_caches): Change arg to Lisp_Object.
12338 * image.c (make_image): Initialize `dependencies' field.
12339 (clear_image_cache): Change arg to allow fine-grained flushing.
12340 Perform the flush even if image-cache-eviction-delay is nil.
12341 (clear_image_caches): Change arg to Lisp_Object.
12342 (Fclear_image_cache): Expand meaning of the argument.
12343 (mark_image): Mark `dependencies' field.
12344 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12345 (lface_hash): Use XHASH rather than XFASTINT.
12346 (face_at_buffer_position): Fix int -> EMACS_INT position.
12347 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12348 (select_frame_for_redisplay): Remove code duplication.
12349 (redisplay_internal): Adapt arg to call to clear_image_caches.
12350
123512008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12352
12353 * s/vms4-0.h:
12354 * s/vms4-2.h:
12355 * s/vms4-4.h:
12356 * s/vms5-5.h: Remove, unused.
12357
12358 * s/irix5-2.h:
12359 * s/irix6-0.h:
12360 * s/riscos5.h:
12361 * s/mach-bsd4-3.h:
12362 * m/mips4.h: Remove files for obsolete systems.
12363
12364 * Makefile.in:
12365 * filelock.c:
12366 * unexmips.c:
12367 * m/hp9000s300.h:
12368 * m/iris4d.h:
12369 * s/aix3-1.h:
12370 * s/hpux.h:
12371 * s/msdos.h:
12372 * s/usg5-0.h:
12373 * s/usg5-2-2.h:
12374 * s/usg5-2.h:
12375 * s/usg5-3.h: Remove references to obsolete variables.
12376
12377 * s/irix5-0.h: Remove, move all the contents ...
12378 * s/irix6-5.h: ... here. Simplify.
12379 * config.in: Regenerate.
12380
123812008-02-24 Jason Rumney <jasonr@gnu.org>
12382
12383 * w32term.c (x_draw_glyph_string_background): Clear the background
12384 manually when cleartype is in use.
12385 (x_draw_glyph_string_foreground): Draw text transparently when
12386 cleartype is in use.
12387
12388 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12389 a font into it unless we have to.
12390
123912008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12392
12393 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12394 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12395
aac0c6e3
MR
123962008-02-18 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32fns.c (Fw32_shell_execute): Encode parameters.
12399
124002008-02-09 Eli Zaretskii <eliz@gnu.org>
12401
12402 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12403
124042008-02-05 Juanma Barranquero <lekktu@gmail.com>
12405
12406 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12407
124082008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12409
12410 * xterm.c (x_set_offset): Don't change the gravity if
12411 CHANGE_GRAVITY is -1.
12412
124132008-02-23 Chong Yidong <cyd@stupidchicken.com>
12414
12415 * fileio.c (auto_save_error_occurred): New var.
12416 (auto_save_error): Set it.
12417 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12418 error occurred.
12419
124202008-02-23 Eli Zaretskii <eliz@gnu.org>
12421
12422 * w32.c (globals_of_w32): Add initializations for
12423 g_b_init_get_sid_sub_authority and
12424 g_b_init_get_sid_sub_authority_count.
12425
124262008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12427
12428 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12429 (font_parse_xlfd): Use them for sanity check.
12430 (Finternal_set_font_style_table): Make sure the table is bijective.
12431
12432 Consolidate the image_cache to the terminal struct.
12433 * termhooks.h (P_): Remove redundant def.
12434 (struct terminal): New field `image_cache'.
12435 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12436 of FRAME_X_IMAGE_CACHE.
12437 * xterm.h (struct x_display_info): Remove image_cache field.
12438 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12439 * w32term.h (struct w32_display_info): Remove image_cache field.
12440 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12441 * macterm.h (struct mac_display_info): Remove image_cache field.
12442 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12443 * xterm.c (x_term_init):
12444 * w32term.c (w32_term_init):
12445 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12446 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12447 Remove declarations.
12448 (clear_image_caches, mark_image_cache): New declarations.
12449 * xfaces.c (clear_face_cache):
12450 * xdisp.c (redisplay_internal): Use clear_image_caches.
12451 * image.c (clear_image_cache): Don't check that a frame is on
12452 a window-system before checking if it shares the same cache.
12453 (clear_image_caches): New function.
12454 (Fclear_image_cache): Use it.
12455 (mark_image): Move from allo.c.
12456 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12457 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12458 (mark_object): Don't call mark_image_cache for frames.
12459 (mark_terminals): Call mark_image_cache.
12460
12461 * lisp.h (Fdelete_terminal): Declare.
12462
12463 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12464 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12465 wrong_type_argument.
12466
124672008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12468
12469 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12470 malayalam.el, and tamil.el. Add sinhala.el.
12471
124722008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12473
12474 * xterm.c (x_connection_closed): Consolidate identical tests.
12475 (x_delete_terminal): Don't crash if called via x_connection_closed.
12476
124772008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12478
12479 * xdisp.c (decode_mode_spec): New arg string.
12480 (display_mode_element): Adjust for the above change.
12481
124822008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * callint.c (Fcall_interactively): Use AREF.
12485
124862008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12487
12488 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12489
124902008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12491
12492 * xfns.c (Fx_show_tip): Set string to " " if empty.
12493
124942008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12495
12496 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12497 with Qt.
12498
124992008-02-17 Kenichi Handa <handa@m17n.org>
12500
12501 * ftfont.c (ftfont_shape): Return Lispy number.
12502
12503 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12504 for GCs.
12505 (Finternal_set_font_selection_order): Call font_update_sort_order
12506 only when enable_font_backend is set.
12507 (realize_x_face): Set face->font_info to that of default face only
12508 when enable_font_backend is set.
12509
12510 * xdisp.c (handle_composition_prop): Set it->c to the fist
12511 character of the composed region.
12512 (fill_composite_glyph_string): Set base_face->font_info to
12513 s->font_info. Get a face for ascii from base_face->ascii_face.
12514 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12515 with a face already decided.
12516 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12517 non-negative.
12518 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12519 call font_prepare_composition unconditionally.
12520
12521 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12522
12523 * xterm.h (struct x_display_info): New member font.
12524
12525 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12526 (x_set_mouse_face_gc, x_new_font): Likewise.
12527 (x_term_init): Setup display_info->font.
12528 (x_delete_terminal): Free display_info->font.
12529
12530 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12531
12532 * ftxfont.c (ftxfont_default_fid): Delete it.
12533 (ftxfont_open): Set xfont->fid to 0.
12534 (ftxfont_end_for_frame): Clear data specific to the frame and the
12535 font-driver.
12536
12537 * xftfont.c (xftfont_default_fid): Delete it.
12538 (xftfont_open): Set xfont->fid to 0.
12539
12540 * fontset.c (FONTSET_OBJLIST): New macro.
12541 (fontset_find_font): Update font-object list of the fontset.
12542 (free_realized_fontset): New function.
12543 (free_face_fontset): Call free_realized_fontset.
12544 (Ffont_info): Call font_close_object only when enable_font_backend
12545 is set.
12546
12547 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12548 [HAVE_NTGUI]: Include w32term.h.
12549 [MAC_OS]: Include macterm.ch.
12550 (font_otf_ValueRecord): Use make_number.
12551 (font_finish_cache): Fix handling of reference count.
12552 (font_clear_cache): Update num_fonts.
12553 (font_open_entity): Update smallest_char_width and
12554 smallest_font_height of the frame.
12555 (font_close_object): Update num_fonts.
12556 (Fclear_font_cache): Fix finding the target cache data.
12557
125582008-02-16 Glenn Morris <rgm@gnu.org>
12559
12560 * fontset.c (Finternal_char_font): Fix compilation warning.
12561
125622008-02-16 Eli Zaretskii <eliz@gnu.org>
12563
12564 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12565 instead of char arrays. Enlarge the size of array passed to
12566 get_token_information.
12567
12568 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12569 warnings.
12570
125712008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12572
12573 * .gdbinit: Don't set `args', it breaks gdb --args.
12574
125752008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12576
12577 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12578 within a narrowed buffer.
12579
125802008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12581
12582 * coding.c (decode_coding_object, encode_coding_object):
12583 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12584
125852008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12586
12587 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12588 hardcoding 1.
12589 (detect_coding_system):
12590 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12591 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12592 * insdel.c (insert_from_gap):
12593 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12594 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12595 (string_to_multibyte):
12596 * character.c (chars_in_text, multibyte_chars_in_text):
12597 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12598
12599 * character.h (FETCH_STRING_CHAR_ADVANCE)
12600 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12601 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12602 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12603
12604 * casefiddle.c (casify_region): Only call after-change and composition
12605 functions on the part of the region that was changed.
12606
12607 * keyboard.c (read_avail_input):
12608 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12609
126102008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12611
12612 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12613 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12614
126152008-02-11 Juanma Barranquero <lekktu@gmail.com>
12616
12617 * w32menu.c (push_submenu_start, push_submenu_end)
12618 (push_left_right_boundary, push_menu_pane, push_menu_item):
12619 * keyboard.c (read_key_sequence): Don't pass args with side effects
12620 to AREF, it fails when compiling with -DENABLE_CHECKING.
12621
126222008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12623
12624 * Makefile.in (${lispsource}international/charprop.el):
12625 Delete this target.
12626
12627 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12628 emacs-unicode-2.
12629
126302008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12631
12632 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12633
126342008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * frame.c (Qnoelisp): New symbol.
12637 (syms_of_frame): Initialize it.
12638 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12639 harmless Elisp code, from a strong `force' from x_connection_closed.
12640 * frame.h (Qnoelisp): Declare.
12641 * xterm.c (x_connection_closed): Pass `noelisp'.
12642
12643 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12644 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12645 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12646 rather than `int' for the type of `type'.
12647
126482008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12649
12650 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12651
12652 * Makefile.in (GNUC): Remove support for gcc-1.x.
12653
126542008-02-10 Richard Stallman <rms@gnu.org>
12655
12656 * lisp.h (ASET): Use AREF, not ASLOT.
12657
126582008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12659
12660 * lisp.h (ASET): Check bounds.
12661
126622008-02-10 Glenn Morris <rgm@gnu.org>
12663
12664 * buffer.c (mode-name): Doc fix.
12665
126662008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12667
12668 * Makefile.in:
12669 * emacs.c:
12670 * gmalloc.c:
12671 * keyboard.c:
12672 * lisp.h:
12673 * m/ibm370aix.h:
12674 * process.c:
12675 * regex.c:
12676 * s/hpux.h:
12677 * sysdep.c:
12678 * sysselect.h:
12679 * systty.h:
12680 * unexec.c:
12681 * w32term.c:
12682 * xsmfns.c:
12683 * xterm.c: Remove code that deals with obsolete variables.
12684
12685 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12686
12687 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12688 nothing else needs it anymore.
12689
126902008-02-09 Eli Zaretskii <eliz@gnu.org>
12691
12692 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12693 instead of unibyte_char_to_multibyte.
12694
126952008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12696
12697 * s/gnu-linux.h: Remove commented out code.
12698
12699 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12700
12701 * Makefile.in: Update what RMS says about using autoconf.
12702 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12703 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12704 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12705 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12706
127072008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12708
12709 * keymap.c (Fkey_description): Move side effect outside of macro call.
12710
12711 * xfaces.c (Finternal_make_lisp_face):
12712 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12713
12714 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12715 (syms_of_fontset): Use ASET.
12716
12717 * fns.c (concat): Move side effect outside of macro call.
12718 (hash_clear): Use ASET.
12719
127202008-02-08 Richard Stallman <rms@gnu.org>
12721
12722 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12723 If FORCE, and frame has a surrogate minibuffer for another frame,
12724 delete the other frame first.
12725
127262008-02-07 Timo Savola <timo.savola@iki.fi>
12727
12728 * xterm.c (x_detect_focus_change): Handle embed client message.
12729 (handle_one_xevent): Ditto.
12730 (handle_one_xevent): If embedded and we get a button press/release,
12731 request focus.
12732 (xembed_set_info, xembed_send_message): New functions.
12733 (x_make_frame_visible): Call xembed_set_info if embedded.
12734 (x_make_frame_invisible): Call xembed_set_info if embedded.
12735 (x_term_init): Initialize Xatom_XEMBED.
12736 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12737 (x_iconify_frame): Ditto.
12738
12739 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12740 (enum xembed_info, enum xembed_message, enum xembed_focus)
12741 (enum xembed_modifier, enum xembed_accelerator): New.
12742 (xembed_set_info, xembed_send_message): Declare.
12743 (FRAME_X_EMBEDDED_P): New.
12744
12745 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12746 gtk_plug_new.
12747
12748 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12749 window ID of a frame.
12750 (x_window): Reparent frame if embedded.
12751 (Fx_create_frame): Don't set border width if embedded.
12752
12753 * emacs.c (USAGE3): Add --parent-id.
12754 (standard_args): Ditto.
12755
127562008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12757
12758 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12759
127602008-02-07 Jim Meyering <meyering@redhat.com>
12761
12762 Use "do...while (0)", not "if (1)...else" in macro definitions.
12763 The latter provokes a warning from gcc about the empty else, when
12764 followed by ";". Also, without that trailing semicolon, it would
12765 silently swallow up any following statement.
12766 * syntax.h (SETUP_SYNTAX_TABLE)
12767 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12768 * buffer.h (DECODE_POSITION): Likewise.
12769 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12770 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12771 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12772 (FETCH_CHAR_ADVANCE): Likewise.
12773 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12774
127752008-02-07 Jim Meyering <meyering@redhat.com>
12776
12777 * lread.c [lint]: Don't include <sys/inode.h>.
12778
127792008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12780
12781 * xselect.c (x_handle_dnd_message):
12782 * xmenu.c (digest_single_submenu, xmenu_show):
12783 * xdisp.c (with_echo_area_buffer_unwind_data)
12784 (format_mode_line_unwind_data, unwind_format_mode_line)
12785 (display_menu_bar):
12786 * eval.c (Ffetch_bytecode):
12787 * doc.c (store_function_docstring):
12788 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12789 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12790 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12791
127922008-02-07 Kenichi Handa <handa@m17n.org>
12793
12794 * ftxfont.c (ftxfont_open): Don't set
12795 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12796
12797 * ftfont.c (ftfont_open): Fix previous change.
12798
127992008-02-06 Jason Rumney <jasonr@gnu.org>
12800
12801 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12802 Use cached metrics for ASCII characters.
12803 (w32font_open_internal): Don't set font's owning_frame.
12804 Cache metrics for ASCII characters.
12805
12806 * w32font.h (struct w32font_info): Add ascii_metrics.
12807 Remove owning_frame.
12808
128092008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12810
12811 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12812 to negative value.
12813
12814 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12815
12816 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12817
12818 * charset.c (syms_of_charset): Set QCtest and Qeq.
12819
128202008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12821
12822 * process.c (Fstart_process):
12823 * callproc.c (Fcall_process): Handle the case where
12824 Funhandled_file_name_directory returns nil.
12825
12826 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12827 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12828 * font.c (check_gstring): Use them and AREF to access the vector before
12829 we know it's really a gstring.
12830 (Ffont_shape_text): Fix typo.
46e722a9 12831 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12832
12833 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12834 Declare.
12835
12836 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12837
128382008-02-05 Jason Rumney <jasonr@gnu.org>
12839
12840 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12841 Set smallest_font_height and smallest_char_width in display info.
12842
128432008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12844
12845 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12846
128472008-02-05 Miles Bader <miles@gnu.org>
12848
12849 * xfaces.c (get_lface_attributes, merge_named_face)
12850 (lookup_named_face, lookup_derived_face, realize_named_face):
12851 Revert 2008-02-01 change by cyd@stupidchicken.com.
12852
128532008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12854
12855 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12856 fallback fonts.
12857 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12858
128592008-02-04 Jason Rumney <jasonr@gnu.org>
12860
12861 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12862 set full_name.
12863 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12864
128652008-02-03 Jason Rumney <jasonr@gnu.org>
12866
12867 * makefile.w32-in (OBJ1): Include font.o here.
12868 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12869
128702008-02-02 Jason Rumney <jasonr@gnu.org>
12871
12872 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12873
128742008-02-01 Jason Rumney <jasonr@gnu.org>
12875
12876 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12877
12878 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12879
128802008-02-01 Andreas Schwab <schwab@suse.de>
12881
12882 * Makefile.in (shortlisp, lisp): Update for rename of
12883 ../lisp/language/myanmar.el.
12884
128852008-02-01 Chong Yidong <cyd@stupidchicken.com>
12886
12887 * xfaces.c (get_lface_attributes): Delete function.
12888 (merge_named_face, lookup_named_face, lookup_derived_face)
12889 (realize_named_face): Call lface_from_face_name directly, and use
12890 the fact that merge_face_vectors does not alter its FROM argument.
12891
128922008-02-01 Jason Rumney <jasonr@gnu.org>
12893
12894 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12895 input in the default locale. Handle non-Unicode multibyte input.
12896
128972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12898
12899 * fontset.c (reorder_font_vector): Exclude nil elements from the
12900 font group. Don't try multiple fonts.
12901 (fontset_font): Adjust for the above change.
12902 (Finternal_char_font): Return nil if the found font doesn't
12903 contain the character ch.
12904
12905 * Makefile.in (lisp, shortlisp): Add cham.el.
12906
129072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12908
12909 * font.h (FONTP): Make it return 1 also for a font-object.
12910
12911 * .gdbinit (xfontset): New function.
12912
12913 * font.c (font_find_for_lface): Check if the character C is
12914 supported or not only for the first font.
12915
12916 * fontset.c (reorder_font_vector): Fix typo.
12917 (fontset_find_font): Don't add a font-spec specifying a script.
12918 Use 0 (not Qt) for the indication of empty font-group. Change the
12919 format of RFONT-DEF. Return Qt if no font in the font-group
12920 support the character.
12921 (fontset_font): Adjust for the above change. If no font was
12922 found the character, remember that.
12923 (face_for_char): Adjust for the change of RFONT-DEF.
12924 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12925 no font for the target.
12926 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12927
129282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12929
12930 * font.c (font_load_for_face): Handle the case that the font in
12931 face->lface is a string.
12932
129332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12934
12935 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12936
129372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12938
12939 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12940 Fix previous change. If the frame is not on a window system,
12941 signal an error.
12942
129432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12944
12945 * coding.c (decode_coding_object, encode_coding_object): Adjust
12946 marker positions after conversion.
12947
12948 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12949
129502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12951
12952 * font.c (font_find_for_lface): Fix the handling of the return
12953 value of font_has_char.
12954 (Ffont_shape_text): Fix previous change.
12955
12956 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12957 (fontset_ref_and_range): Delete it.
12958 (fontset_find_font): Call char_table_ref_and_range instead of
12959 FONTSET_REF_AND_RANGE.
12960 (make_fontset): Don't setup font groups of Latin here.
12961 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12962 (new_fontset_from_font): Make the specified font the default for
12963 all Latin characters.
12964
129652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12966
12967 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12968 is on a window system before accessing the fontset of the frame.
12969
129702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12971
12972 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12973
12974 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12975 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12976
12977 * font.c (Ffont_shape_text): If the font driver doesn't have a
12978 shaper function, make zero-width glyphs to have at least one-pixel
12979 width. Fix setting of `to' field of glyphs.
12980
129812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12982
12983 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12984 glyphs.
12985
12986 * font.h (struct font_driver): Improve docstring of member `shape'.
12987
129882008-02-01 Kenichi Handa <handa@m17n.org>
12989
12990 * composite.c (syms_of_composite): Fix docstring of
12991 auto-composition-function.
12992
12993 * font.h (LGLYPH_SIZE): New macro.
12994
12995 * font.c (Ffont_fill_gstring): Stop filling when a character not
12996 supported by the font is found.
12997 (Ffont_shape_text): When a shape callback function returns nil,
12998 try at most two more times with larger gstring.
12999 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13000
13001 * xdisp.c (handle_auto_composed_prop): Change the argument to
13002 auto-composition-function.
13003
13004 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13005 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13006 Lispy glyph and store it in the lgstring.
13007
13008 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13009
13010 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13011
130122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13013
13014 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13015
13016 * fontset.c (Vfont_encoding_charset_alist): New variable.
13017 (syms_of_fontset): DEFVAR it.
13018 (reorder_font_vector, fontset_find_font): Optimize for the case of
13019 no need of reordering.
13020 (face_for_char): Map the charset property by
13021 Vfont_encoding_charset_alist.
13022
130232008-02-01 Jason Rumney <jasonr@gnu.org>
13024
13025 * w32font.c (logfonts_match): Don't check adstyle here.
13026 (font_matches_spec): Check here against physical font instead.
13027 (add_font_entity_to_list): Avoid some substitutions.
13028
13029 * font.c (font_parse_fcname): Default weight and slant to normal.
13030 (font_score): Prefer normal fonts if weight or slant unspecified.
13031 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13032 match freetype scores.
13033
130342008-02-01 Jason Rumney <jasonr@gnu.org>
13035
13036 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13037 font, as it may have been deleted.
13038 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13039 most common hyphenless variation.
13040 (logfonts_match): Check generic family.
13041 (font_matches_spec): Don't check generic family here.
13042 (fill_in_logfont): Set generic family based on adstyle.
13043
13044 * w32font.h (w32font_get_cache): Update declaration.
13045
130462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13047
13048 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13049
13050 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13051 If none of the new drivers are available, call font_update_drivers
13052 with the old drivers.
13053
13054 * w32font.c (w32font_get_cache): Adjust the argument type.
13055
13056 * xfont.c (xfont_get_cache): Adjust the argument type.
13057
13058 * font.h (struct font_driver): Change argument type of get_cache.
13059
13060 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13061
13062 * font.c (Ffont_get): Fix arguments to Fassoc.
13063 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13064 (font_clear_cache): New function.
13065 (font_list_entities, font_matching_entity): Use font_get_cache.
13066 (font_update_drivers): Call font_clear_cache when finishing a driver.
13067
13068 * fontset.c (fontset_find_font): Fix previous change.
13069
130702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13071
13072 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13073 dpyinfo->font_table.
13074 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13075 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13076
13077 * font.c (font_at): Handle the case that the arg C is negative.
13078 Handle the unibyte case.
13079 (Ffont_at): Call font_at with the arg C -1.
13080
13081 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13082 the position here, and call font_at with the arg C -1.
13083 Don't check the range of the existing composition at the point.
13084
130852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13086
13087 * fontset.c (fontset_add): New args charset_id and family.
13088 Change caller.
13089 (load_font_get_repertory, fontset_find_font): Assume that
13090 font_spec is always a font-spec object.
13091 (Fset_fontset_font): Always store a font-spec object in a fontset.
13092
13093 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13094 instead of get_property_and_range.
13095
130962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13097
13098 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13099 (xftfont_open): Don't keep locking face.
13100 (xftfont_close): Don't unlock face.
13101 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13102
13103 * fontset.c (fontset_find_font): Don't prefer a font of
13104 supplementary charset.
13105
131062008-02-01 Kenichi Handa <handa@m17n.org>
13107
13108 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13109 script, langsys_tag to langsys, new member script.
13110 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13111 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13112 listing to the script specified in that property. Fix arg to
13113 OTF_check_features.
13114
131152008-02-01 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32font.h: New file.
13118
13119 * w32font.c: Include it.
13120 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13121 (w32font_open): Set owning_frame.
13122 (w32font_text_extents): Use owning_frame.
13123 (struct font_callback_data): Add opentype_only field.
13124 (add_font_entity_to_list): Use it to filter fonts.
13125 Don't check against full name.
13126 (w32font_list_internal): New function.
13127 (w32font_list): Use it.
13128 (w32font_match_internal): New function.
13129 (w32font_match): Use it.
13130 (w32font_open_internal): New function.
13131 (w32font_open): Use it.
13132 (w32font_get_cache, w32font_close, w32font_has_char)
13133 (w32font_encode_char, w32font_text_extents, w32font_draw):
13134 Make non-static.
13135
13136 * makefile.w32-in (w32font.o): Depend on w32font.h.
13137
131382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13139
13140 * charset.c (Fdefine_charset_internal): Record a supplementary
13141 charset at the tail of Vcharset_order_list.
13142
13143 * font.c (Ffont_shape_text): Fix the return value.
13144
13145 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13146
13147 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13148
131492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13150
13151 * ftfont.c (struct OpenTypeSpec): New struct.
13152 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13153 (ftfont_get_open_type_spec): New function.
13154 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13155
13156 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13157
131582008-02-01 Jason Rumney <jasonr@gnu.org>
13159
13160 * w32font.c (add_font_entity_to_list): Compare only the beginning
13161 of full name.
13162
131632008-02-01 Kenichi Handa <handa@m17n.org>
13164
13165 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13166 Never return HANDLED_RECOMPUTE_PROPS.
13167
131682008-02-01 Kenichi Handa <handa@m17n.org>
13169
13170 * font.c (font_gstring_produce): Delete it.
13171
13172 * composite.h (COMPOSITION_METHOD):
13173 Handle COMPOSITION_WITH_GLYPH_STRING.
13174
131752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13176
13177 * xfont.c (Qx): Delete.
13178 (syms_of_xfont): Don't initialize Qx.
13179
13180 * composite.h (enum composition_method):
13181 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13182
131832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13184
13185 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13186 (choose_face_font): Accept new form of font-spec.
13187
13188 * frame.h (font_driver_list): Declare it unconditionally.
13189 (struct frame): Define members font_driver_list and font_data_list
13190 unconditionally.
13191
13192 * fontset.c: Include "font.h" unconditionally.
13193 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13194 (Fset_fontset_font): Accept a font-spec object.
13195
13196 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13197 PIXEL_SIZE part a wild card.
13198
13199 * dispextern.h (struct glyph_string): Define members clip and
13200 num_clips unconditionally.
13201 (struct face): Define members font_info and extra unconditionally.
13202
13203 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13204 ftfont_info only when HAVE_LIBOTF is defined.
13205
132062008-02-01 Andreas Schwab <schwab@suse.de>
13207
13208 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13209 and end.
13210
132112008-02-01 Jason Rumney <jasonr@gnu.org>
13212
13213 * w32font.c (w32font_driver): Add new fields.
13214
132152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13216
13217 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13218 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13219 (LIBES): Add @M17N_FLT_CFLAGS@.
13220
13221 * composite.c (compose_text): Don't treat the new style
13222 composition specially.
13223
13224 * emacs.c (main): Call syms_of_font unconditionally.
13225
13226 * font.h (FONT_ENTITY_NOT_LOADABLE)
13227 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13228 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13229 (struct font_driver): New member shape.
13230 (font_registry_charsets): Extern it.
13231 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13232 (font_otf_capability, font_drive_otf): Delete their externs.
13233
13234 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13235 (font_charset_alist, font_registry_charsets): Move from xfont.c
13236 and rename.
13237 (font_prop_validate_otf): New function.
13238 (font_property_table): Register it for QCotf.
13239 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13240 (font_drive_otf): Delete.
13241 (font_prepare_composition): New arg F. Adjust for the change of
13242 lispy gstring.
13243 (font_find_for_lface): New arg C.
13244 (font_load_for_face): Adjust for the change of font_find_for_lface.
13245 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13246 lispy gstring.
13247 (Ffont_shape_text): New function.
13248 (Fopen_font): If the font size is not given, use 12-pixel.
13249 (Ffont_at): New arg STRING.
13250 (syms_of_font): Initalize font_charset_alist.
13251 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13252 conditionally.
13253
13254 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13255 fonts of the same font-spec. Change the format of RFONT-DEF.
13256 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13257 Adjust for the change of RFONT-DEF.
13258 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13259
13260 * ftfont.h: New file.
13261
13262 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13263 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13264 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13265 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13266 font_otf_capability and font_drive_otf, set ftfont_shape.
13267 (ftfont_list): Adjust for the change of :otf property value.
13268 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13269 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13270 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13271 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13272 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13273 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13274
13275 * w32term.c (x_draw_composite_glyph_string_foreground):
13276 Adjust for the change of lispy gstring.
13277
13278 * xdisp.c (handle_composition_prop): Adjust for the change of
13279 lispy gstring. Call a function for auto-composition with the
13280 third arg it->window.
13281 (fill_composite_glyph_string): Adjust for the change of lispy string.
13282 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13283
13284 * xfaces.c (set_font_frame_param): Adjust for the change of
13285 font_find_for_lface.
13286
13287 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13288 (xfont_registry_charsets): Likewise. Change caller.
13289 (syms_of_xfont): Don't handle x_font_charset_alist.
13290
13291 * xftfont.c: Include "ftfont.h".
13292 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13293 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13294 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13295 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13296 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13297 Set xftfont_driver.shape to xftfont_shape.
13298
13299 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13300 the change of lispy gstring.
13301
133022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13303
13304 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13305
133062008-02-01 Jason Rumney <jasonr@gnu.org>
13307
13308 * w32font.c (w32font_draw): Fill background manually.
13309
133102008-02-01 Jason Rumney <jasonr@gnu.org>
13311
13312 * font.c (Qfontp): Remove unused symbol.
13313 (QCantialias): New symbol.
13314 (syms_of_font): Define it.
13315 (font_property_table): Set a validator for QCantialias.
13316
13317 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13318 Define if not already.
13319 (QCfamily): Share with xfaces.c.
13320 (Qstandard, Qsubpixel, Qnatural): New symbols.
13321 (syms_of_w32font): Define them. Don't define QCfamily here.
13322 (w32_antialias_type, lispy_antialias_type): New functions.
13323 (w32_enumfont_pattern_entity): New arg requested_font.
13324 Set antialias parameter if non-default was requested.
13325 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13326
133272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13328
13329 * lread.c (read1): Undo the previous change.
13330
133312008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13332
13333 * frame.c (Fdelete_frame): Call font_update_drivers only when
13334 USE_FONT_BACKEND is defined.
13335
133362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13337
13338 * font.h (struct font_bitmap): New member bits_per_pixel.
13339 (struct font_driver): New members start_for_frame and end_for_frame.
13340 (struct font_data_list): New struct.
13341 (font_put_frame_data, font_get_frame_data): Extern them.
13342
13343 * frame.h (struct frame): New member font_data_list.
13344
13345 * font.c (font_update_drivers): Call driver->start_for_frame and
13346 driver->end_for_frame at proper timings.
13347 (font_put_frame_data, font_get_frame_data): New functions.
13348 (Ffont_spec): Add usage in the docstring.
13349
13350 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13351 (Fdelete_frame): Call font_update_drivers.
13352
13353 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13354 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13355 (xftfont_get_xft_draw): New function.
13356 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13357 (xftfont_end_for_frame): New function.
13358 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13359
13360 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13361 Change argument. Cache GCs in the per-frame data.
13362 (struct ftxfont_frame_data): New struct.
13363 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13364 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13365 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13366 (ftxfont_end_for_frame): New function.
13367 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13368
13369 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13370
133712008-02-01 Kenichi Handa <handa@m17n.org>
13372
13373 * xselect.c (Vselection_coding_system)
13374 (Vnext_selection_coding_system): Delete them.
13375 (syms_of_xselect): Don't declare selection-coding-system and
13376 next-selection-coding-system. They are declared in select.el.
13377
133782008-02-01 Jason Rumney <jasonr@gnu.org>
13379
13380 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13381
13382 * w32fns.c: Include imm.h.
13383 (get_composition_string_fn, get_ime_context_fn): New optional
13384 system functions.
13385 (globals_of_w32fns): Load them from imm32.dll.
13386 (ignore_ime_char): New flag.
13387 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13388 WM_IME_ENDCOMPOSITION messages.
13389
13390 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13391 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13392
133932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13394
13395 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13396 (READCHAR_REPORT_MULTIBYTE): New macro.
13397 (readchar): New 2nd arg MULTIBYTE.
13398 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13399 Make symbol's name multibyte according to the multibyteness of the
13400 source.
13401
134022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13403
13404 * xfaces.c (face_for_overlay_string): Call lookup_face with
13405 correct arguments (fix of synching with the trunk).
13406
134072008-02-01 Kenichi Handa <handa@m17n.org>
13408
13409 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13410 (font_prop_validate_non_neg, font_prop_validate_spacing):
13411 Delete argument prop_index.
13412 (font_property_table): Change arguments to validater. Change Callers.
13413 (font_lispy_object): Delete.
13414 (font_at): Use font_find_object instead fo font_lispy_object.
13415
134162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13417
13418 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13419 and file names.
13420
134212008-02-01 Jason Rumney <jasonr@gnu.org>
13422
13423 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13424 (font_matches_spec): Remove debug output.
13425 (add_font_entity_to_list): Avoid using substituted fonts.
13426
134272008-02-01 Jason Rumney <jasonr@gnu.org>
13428
13429 * doc.c (Fsnarf_documentation):
13430 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13431
134322008-02-01 Miles Bader <miles@gnu.org>
13433
13434 * dispextern.h (struct glyph_row): Only define "clip" field if
13435 HAVE_WINDOW_SYSTEM is defined.
13436
134372008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13438
13439 Fix up multi-tty merge.
13440
13441 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13442 and indentation.
13443
13444 * xfaces.c (free_realized_face, clear_face_gcs):
13445 Include font_done_for_face in the input_blocked section, just in case.
13446
13447 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13448 (get_char_face_and_encoding): Undo last change and remove the *other*
13449 duplicate definition (i.e. keep the one that's better scoped and that
13450 includes code for the font-backend).
13451
13452 * terminal.c (create_terminal): Default keyboard_coding to
13453 `no-conversion' and terminal_coding to `undecided'.
13454
13455 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13456
13457 * fontset.c (free_realized_fontsets): Check that the table entry does
13458 contain a fontset before trying to compare it to `base'.
13459
13460 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13461 syms_of_charset, and syms_of_coding earlier because init_window_once
13462 now needs Vcoding_system_hash_table to be setup.
13463
13464 * coding.h (default_buffer_file_coding): Remove.
13465
13466 * coding.c (default_buffer_file_coding): Remove.
13467 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13468 than ->symbol, and use the terminal-local coding system.
13469 (syms_of_coding): Don't setup the coding-systems that are not
13470 terminal-local.
13471 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13472
13473 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13474 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13475
13476 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13477 in chartab.c and were re-added here by mistake.
13478 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13479
13480 * doc.c (Fsnarf_documentation):
13481 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13482 src to etc.
13483
13484 * ChangeLog.10: Add mistakenly removed entry.
13485
134862008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13487
13488 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13489
134902008-02-01 Miles Bader <miles@gnu.org>
13491
13492 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13493 Add extra args to FACE_FOR_CHAR.
13494
134952008-02-01 Kenichi Handa <handa@m17n.org>
13496
13497 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13498 in sequence.
13499
13500 * chartab.c (map_sub_char_table, map_char_table): If the range
13501 contains just one character, call the function with that character
13502 even if the depth is not 3.
13503
135042008-02-01 Jason Rumney <jasonr@gnu.org>
13505
13506 * w32font.c (w32font_text_extents): Calculate metrics for the
13507 whole string.
13508
135092008-02-01 Jason Rumney <jasonr@gnu.org>
13510
13511 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13512
135132008-02-01 Jason Rumney <jasonr@gnu.org>
13514
13515 * w32term.c (x_set_glyph_string_clipping): Use
13516 get_glyph_string_clip_rects.
13517 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13518 Adjust for the change of struct glyph_string.
13519
13520 * w32font.c (w32font_draw): Do clipping here.
13521
135222008-02-01 Kenichi Handa <handa@m17n.org>
13523
13524 * xftfont.c (xftfont_draw): Adjust for the change of struct
13525 glyph_string.
13526
13527 * xterm.c (x_set_glyph_string_clipping): Use
13528 get_glyph_string_clip_rects.
13529 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13530 Adjust for the change of struct glyph_string.
13531
13532 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13533 the resulting clip(s}.
13534 (expose_overlaps): Add arg r. Change callers. Set it to
13535 row->clip temporarily.
13536 (expose_window): Redraw rows overlapping the exposed area.
13537
13538 * dispextern.h (struct glyph_row): New member clip.
13539 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13540 clip_height, new member clip, and num_clips.
13541
135422008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * data.c (Fchar_or_string_p): Fix docstring.
13545
135462008-02-01 Kenichi Handa <handa@m17n.org>
13547
13548 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13549 create a temporary XftDraw object.
13550
135512008-02-01 Kenichi Handa <handa@m17n.org>
13552
13553 * font.c (Ffontp): Fix docstring.
13554
13555 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13556 strong evidence of ISO-2022.
13557
135582008-02-01 Kenichi Handa <handa@m17n.org>
13559
13560 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13561 SYNTAX_ENTRY_FOLLOW_PARENT.
13562
135632008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13564
13565 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13566 its type.
13567 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13568 Update to the new type of weak_hash_tables and next_weak.
13569
13570 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13571 a plain C pointer to Lisp_Hash_Table.
13572
13573 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13574 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13575 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13576 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13577 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13578 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13579 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13580 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13581 (GC_EQ): Remove since they've been identical to their non-GC_
13582 alter-egos ever since the markbit was eradicated.
13583
13584 * alloc.c:
13585 * buffer.c:
13586 * buffer.h:
13587 * data.c:
13588 * fileio.c:
13589 * filelock.c:
13590 * fns.c:
13591 * frame.h:
13592 * lisp.h:
13593 * macterm.c:
13594 * print.c:
13595 * process.c:
13596 * w32fns.c:
13597 * w32menu.c:
13598 * w32term.c:
13599 * xfns.c:
13600 * xmenu.c:
13601 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13602
136032008-02-01 Kenichi Handa <handa@m17n.org>
13604
13605 * chartab.c (map_sub_char_table): Make it work for the top-level
13606 char-table. Fix handling of parent char-table.
13607 (map_char_table): Adjust for the above change.
13608
136092008-02-01 Jason Rumney <jasonr@gnu.org>
13610
13611 * w32font.c (Qgdi): Rename from Qw32.
13612
136132008-02-01 Jason Rumney <jasonr@gnu.org>
13614
13615 * w32bdf.c (get_quoted_string): Make function static.
13616
136172008-02-01 Kenichi Handa <handa@m17n.org>
13618
13619 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13620 bigger ascent and descent than those of the font, use them as
13621 font's ascent and descent.
13622
136232008-02-01 Kenichi Handa <handa@m17n.org>
13624
13625 * Makefile.in (${lispsource}international/charprop.el): Move this
13626 target within "#ifdef HAVE_UNIDATA" and "#endif".
13627
136282008-02-01 Kenichi Handa <handa@m17n.org>
13629
13630 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13631 (shortlisp): Add ../lisp/language/tai-viet.el.
13632
136332008-02-01 Ulrich Mueller <ulm@gentoo.org>
13634
13635 * Makefile.in (${lispsource}international/charprop.el): Depend on
13636 temacs${EXEEXT}.
13637
136382008-02-01 Jason Rumney <jasonr@gnu.org>
13639
13640 * w32font.c (w32font_close): Delete the GDI font object.
13641
13642 * w32menu.c: Include character.h.
13643
13644 * w32proc.c: Likewise.
13645
13646 * w32select.c: Likewise.
13647
13648 * makefile.w32-in (w32proc.o): Depend on character.h.
13649
136502008-02-01 Jason Rumney <jasonr@gnu.org>
13651
13652 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13653
13654 * w32menu.c (syms_of_w32menu): Likewise.
13655
13656 * w32proc.c (syms_of_ntproc): Likewise.
13657
13658 * w32select.c (syms_of_w32select): Likewise.
13659
13660 * w32term.c (syms_of_w32term): Likewise.
13661
136622008-02-01 Jason Rumney <jasonr@gnu.org>
13663
13664 * w32font.c (w32font_draw): Delete brush after using it.
13665
136662008-02-01 Jason Rumney <jasonr@gnu.org>
13667
13668 * w32font.c (w32font_open): Don't set font_idx.
13669 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13670 to font settings.
13671 (w32font_draw): Fill background explicitly.
13672
136732008-02-01 Jason Rumney <jasonr@gnu.org>
13674
13675 * w32term.c (w32_initialize): Don't call w32font_initialize.
13676
13677 * w32font.c (w32font_info): Remove subranges.
13678 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13679 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13680 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13681 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13682 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13683 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13684 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13685 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13686 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13687 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13688 New symbols.
13689 (font_callback_data): New struct.
13690 (w32font_list, w32font_match): Use it.
13691 (w32font_open): Don't populate subranges.
13692 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13693 (w32font_encode_char): Always return unicode code-point as-is.
13694 (w32font_text_extents): Supply a transformation matrix to
13695 GetGlyphOutline. Never look up by glyph index. Avoid looping
13696 twice. Use unicode version of GetTexExtentPoint32 instead of
13697 glyph index version.
13698 (set_fonts_frame): Remove.
13699 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13700 set frame parameter. Use backward compatible fake foundries.
13701 Save generic family in extra slot under QCfamily. Make width slot
13702 constant. Save QCspacing value. Save list of scripts instead of
13703 binary subranges.
13704 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13705 (add_font_entity_to_list): Use font_callback_data struct. Filter
13706 unwanted fonts.
13707 (add_one_font_entity_to_list): Use font_callback_data struct.
13708 (w32_registry): Default to iso10646_1.
13709 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13710 string font registries. Don't fill in font name if it is a generic
13711 family name, fill family instead. Use spacing, family and script
13712 extra info to fill pitch, family and charset fields.
13713 (list_all_matching_fonts): Use font_callback_data struct.
13714 (unicode_range_for_char): Remove.
13715 (font_supported_scripts): New function.
13716 (w32font_initialize): Remove.
13717 (syms_of_w32font): Update which symbols are defined.
13718
137192008-02-01 Jason Rumney <jasonr@gnu.org>
13720
13721 * font.c (font_pixel_size): Reverse assq_no_quit args.
13722
13723 * w32term.h (FONT_WIDTH): Report max width, not average.
13724 (FONT_MAX_WIDTH): Remove.
13725 (FONT_AVG_WIDTH): New macro.
13726
13727 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13728 redefinition of FONT_WIDTH.
13729
13730 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13731 (w32_cache_char_metrics): Use FONT_WIDTH.
13732
13733 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13734
137352008-02-01 Jason Rumney <jasonr@gnu.org>
13736
13737 * w32font.c (w32font_open): Make lfHeight negative.
13738
13739 * w32fns.c (x_default_font_parameter): Use new style font name.
13740 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13741
137422008-02-01 Jason Rumney <jasonr@gnu.org>
13743
13744 * w32font.c (QCsubranges): New symbol.
13745 (w32font_open, w32font_has_char): Get subranges from subproperty
13746 of extra.
13747 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13748 (syms_of_w32font): Define :subranges symbol.
13749
13750 * font.c (font_put_extra): Expose externally.
13751
13752 * font.h (font_put_extra): Move declaration from font.c.
13753
13754 * font.c (Ffont_get): Use font driver to determine otf capability.
13755 (adjust_anchor): Check if driver defines anchor_point before using.
13756
13757 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13758 (w32font_draw): Use options.
13759 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13760 Fix detection of truetype fonts.
13761 (registry_to_w32_charset): Handle charsets other than iso8859-1
13762 expressed as lisp symbols.
13763 (w32_registry): Express charset as lisp symbol.
13764 (fill_in_logfont): Reverse pixel and point height logic.
13765 Don't set width here. Set quality to default.
13766
13767 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13768 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13769
13770 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13771 Remove redundant loop and allocation.
13772
13773 * makefile.w32-in (font.o, w32font.o): New objects.
13774 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13775 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13776
13777 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13778 STORE_XCHARB a valid l-value.
13779
13780 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13781 calculations for non-Truetype fonts.
13782 (x_draw_glyph_string): Sync with xterm.c.
13783 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13784 Remove redundant code.
13785 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13786
13787 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13788 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13789
13790 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13791 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13792
13793 * w32font.c: New file for w32 font backend.
13794
137952008-02-01 Kenichi Handa <handa@m17n.org>
13796
13797 * term.c: Don't include "buffer.h" twice.
13798
137992008-02-01 Kenichi Handa <handa@m17n.org>
13800
13801 * character.c (Funibyte_string): New function.
13802 (syms_of_character): Defsubr it.
13803
138042008-02-01 Jason Rumney <jasonr@gnu.org>
13805
13806 * w32term.c [USE_FONT_BACKEND]:
13807 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13808 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13809 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13810 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13811 (x_free_frame_resources): Sync with xterm.c.
13812
138132008-02-01 Andreas Schwab <schwab@suse.de>
13814
13815 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13816 char-table size.
13817
138182008-02-01 Kenichi Handa <handa@m17n.org>
13819
13820 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13821
138222008-02-01 Kenichi Handa <handa@m17n.org>
13823
13824 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13825 font_otf_gpos, add font_drive_otf.
13826
13827 * fontset.c (fontset_find_font): Pay attention to font size
13828 specified for a font.
13829 (reorder_font_vector): Check contents of font_def.
13830
13831 * font.c (struct otf_list): Delete it.
13832 (otf_list): Make it a lisp variable.
13833 (otf_open): Use lispy otf_list.
13834 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13835 (check_otf_features): New function.
13836 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13837 New functions.
13838 (font_drive_otf): New function merging font_otf_gsub and
13839 font_otf_gpos.
13840 (font_open_for_lface): New arg spec. Change argument order.
13841 (font_load_for_face): Adjust for the change of font_open_for_lface.
13842 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13843 Ffont_otf_gpos.
13844 (syms_of_font): Staticpro otf_list. Delete defsubr of
13845 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13846
13847 * xfaces.c (set_font_frame_param): Adjust for the change of
13848 font_open_for_lface.
13849
13850 * font.h (font_open_for_lface): Adjust prototype.
13851 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13852 member otf_drive.
13853 (font_otf_gsub, font_otf_gpos): Delete externs.
13854 (font_drive_otf): Extern it.
13855
138562008-02-01 Kenichi Handa <handa@m17n.org>
13857
13858 * font.c (font_at): If the window W is not on a window system,
13859 return Qnil.
13860
13861 * coding.c (produce_chars, encode_coding): Don't call
13862 insert_from_gap if no characters to produce.
13863
138642008-02-01 Kenichi Handa <handa@m17n.org>
13865
13866 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13867 Fclear_face_cache.
13868
13869 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13870
138712008-02-01 Miles Bader <miles@gnu.org>
13872
13873 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13874 Parse "--disable-font-backend" option.
13875 (standard_args): Add "--disable-font-backend" option.
13876
138772008-02-01 Kenichi Handa <handa@m17n.org>
13878
13879 * fontset.c (fontset_find_font): New function.
13880 (fontset_font): Use fontset_find_font.
13881 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13882 Register the specified font for all Latin characters.
13883 (new_fontset_from_font): Register the specified font for all Latin
13884 characters.
13885 (dump_fontset): For a realized fontset, include the base fontset
13886 name in the returned vector.
13887
138882008-02-01 Kenichi Handa <handa@m17n.org>
13889
13890 * character.h (CHAR_STRING): Cast C to unsigned on calling
13891 char_string.
13892
13893 * character.c (char_string): Type of arg C changed to unsigned.
13894 Signal an error if C is an invalid character code.
13895
13896 * editfns.c (general_insert_function, Fchar_to_string):
13897 Use CHARACTERP, not INTEGERP.
13898
138992008-02-01 Kenichi Handa <handa@m17n.org>
13900
13901 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13902 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13903
13904 * regex.c (analyse_first): Fix for multibyte characters in "case
13905 charset:" and "case categoryspec:".
13906
139072008-02-01 Andreas Schwab <schwab@suse.de>
13908
13909 * Makefile.in (LIBES): Move standard libraries to the end.
13910
139112008-02-01 Kenichi Handa <handa@m17n.org>
13912
13913 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13914 nonzero, don't shrink the buffer nextb.
13915
13916 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13917
13918 * coding.c (coding_alloc_by_making_gap): New arg offset.
13919 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13920 offset.
13921 (decode_coding_iso_2022): Update coding->safe_charsets.
13922 (decode_coding_gap): Temporarily set
13923 current_buffer->text->inhibit_shrinking to 1.
13924
139252008-02-01 Kenichi Handa <handa@m17n.org>
13926
13927 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13928 indexing into elements of s->cmp and s->char2b.
13929
139302008-02-01 Juanma Barranquero <lekktu@gmail.com>
13931
13932 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13933
139342008-02-01 Kenichi Handa <handa@m17n.org>
13935
13936 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13937 target_multibyte instead of multibyte.
13938 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13939 (bcmp_translate): Change the argument name from multibyte to
13940 target_multibyte.
13941
139422008-02-01 Kenichi Handa <handa@m17n.org>
13943
13944 These changes are to compile a regexp into a pattern that can be
13945 used both for multibyte and unibyte targets.
13946
13947 * Makefile.in (search.o): Depend on charset.h.
13948
13949 * character.c (multibyte_char_to_unibyte_safe): New function.
13950
13951 * search.c: Include "charset.h".
13952 (compile_pattern_1): Delete argument multibyte. Don't set
13953 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13954 (compile_pattern): Don't compare cp->buf.target_multibyte.
13955 Compare cp->buf.charset_unibyte.
13956 (compile_pattern): Set cp->buf.target_multibyte.
13957
13958 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13959
13960 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13961
13962 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13963 multibyte. Change callers.
13964 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13965 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13966 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13967 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13968 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13969 (regex_compile): Make the compiled pattern usable both for
13970 multibyte and unibyte targets.
13971 (analyse_first): Make the fastmap usable both for multibyte and
13972 unibyte targets.
13973 (TRANSLATE_VIA_MULTIBYTE): Delete.
13974 (re_match_2_internal): Pay attention to the case that the
13975 multibyteness of bufp and target may be different.
13976
139772008-02-01 Kenichi Handa <handa@m17n.org>
13978
13979 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13980 empty box occupy at least one column width.
13981
139822008-02-01 Miles Bader <miles@gnu.org>
13983
13984 * Makefile.in: Remove redundant HAVE_XFT clause.
13985
139862008-02-01 Kenichi Handa <handa@m17n.org>
13987
13988 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13989
139902008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13993 being nil.
13994
139952008-02-01 Kenichi Handa <handa@m17n.org>
13996
13997 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13998
139992008-02-01 Kenichi Handa <handa@m17n.org>
14000
14001 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14002
140032008-02-01 Kenichi Handa <handa@m17n.org>
14004
14005 * search.c (simple_search): Fix previous change.
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * xftfont.c (ftfont_font_format): Extern declaration.
14010
14011 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14012
14013 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14014 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14015
14016 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14017 (ftfont_font_format): Fix previous change.
14018
14019 * font.h (Ffont_xlfd_name): EXFUN it.
14020
14021 * font.c (font_parse_xlfd): Fix the array size of `f'.
14022 (register_font_driver): Use EQ to compare driver->type.
14023
14024 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14025 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14026 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14027
140282008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14031 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14032
140332008-02-01 Kenichi Handa <handa@m17n.org>
14034
14035 * xfont.c (xfont_open): Set font->format.
14036
14037 * xftfont.c (xftfont_open): Set font->format.
14038
14039 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14040 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14041 (ftfont_open): Set font->format.
14042 (ftfont_font_format): New function.
14043
14044 * font.h (struct font): New member format.
14045
14046 * font.c (Qopentype): New variable.
14047 (syms_of_font): Defsym it.
14048 (Fquery_font): Change the format of the last element of the return
14049 value.
14050
140512008-02-01 Kenichi Handa <handa@m17n.org>
14052
14053 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14054 last resort.
14055
140562008-02-01 Kenichi Handa <handa@m17n.org>
14057
14058 * coding.c (detect_coding_charset): Fix detection of multi-byte
14059 charset.
14060
140612008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14062
14063 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14064
140652008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * xdisp.c (get_next_display_element): Set it->face_id for the
14068 first component of a composition.
14069 (x_produce_glyphs): Check if the font is changed or not for composition.
14070
140712008-02-01 Kenichi Handa <handa@m17n.org>
14072
14073 * fontset.c (Qlatin): New variable.
14074 (syms_of_fontset): Define it as a lisp symbol.
14075 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14076
140772008-02-01 Kenichi Handa <handa@m17n.org>
14078
14079 * font.c (font_unparse_fcname): Pay attention to the case that
14080 some of font property is a null string.
14081
140822008-02-01 Kenichi Handa <handa@m17n.org>
14083
14084 * term.c: Include "composite.h".
14085 (encode_terminal_code): Output all components of composition.
14086 Check the size of encode_terminal_src.
14087 (produce_glyphs): For composition, call produce_composite_glyph.
14088 (append_composite_glyph, produce_composite_glyph): New functions.
14089
14090 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14091 is not found, get font_info from the current ascii face.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14096 buffer-file-name to Qnil before calling insert_from_buffer.
14097
14098 * font.c (font_unparse_fcname): Pay attention to the case that
14099 foundry is a null string.
14100
141012008-02-01 Kenichi Handa <handa@m17n.org>
14102
14103 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14104
14105 * font.c (Qunicode_sip): New variable.
14106 (syms_of_font): Declare it as a Lisp symbol.
14107
14108 * font.h (Qunicode_sip): Extern it.
14109
141102008-02-01 Kenichi Handa <handa@m17n.org>
14111
14112 * composite.c (get_composition_id): Pay attention to TAB component.
14113
14114 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14115 TAB. Adjust for the change of s->char2b which always points to
14116 the first element of allocated memory.
14117
14118 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14119
14120 * xdisp.c (handle_composition_prop): Set it->c to the first
14121 non-TAB component.
14122 (fill_composite_glyph_string): Change argument.
14123 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14124 (x_produce_glyphs): Fix handling of left/right padding.
14125
141262008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * coding.c (detect_coding_system): Fix for handling off
14129 inhibit_iso_escape_detection. Fix for the case that no coding
14130 system is defined for a specific coding category.
14131
141322008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * font.c (font_matching_entity): Delete unused local var.
14135
14136 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14137 opening a font.
14138
14139 * fileio.c (Finsert_file_contents): On recovering a file, assume
14140 Unix-like eol.
14141 (choose_write_coding_system): On auto-saving a file, force
14142 Unix-like eol.
14143
14144 * coding.c (setup_coding_system): Fix setting of
14145 coding->common_flags based on eol_type.
14146 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14147 inherit from it.
14148
141492008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * alloc.c (NSTATICS): Increas to 0x600.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14156 (ftfont_list): Don't check :name property.
14157 (ftfont_match): New function.
14158 (ftfont_pattern_entity): If the pattern doesn't contain
14159 FC_SPACING, don't assume FC_MONO.
14160
14161 * font.h (struct font_driver): New member `match'.
14162 (font_update_drivers): Adjust prototype.
14163
14164 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14165 property of FONT.
14166 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14167 them unconditionally.
14168 (font_matching_entity): New function.
14169 (font_open_by_name): Try font_matching_entity if exact match is
14170 not found.
14171 (font_update_drivers): Delete the arg FONT. Return a list of
14172 actually used backends. Don't free faces, font caches here.
14173 Don't store data in frame parameters. Don't call x_set_font.
14174 (Ffont_spec): Store :name property as is.
14175 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14176 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14177 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14178 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14179 Call font->driver->otf_gsub instead of font_otf_gsub.
14180
14181 * frame.c (x_set_font_backend): Do more works that were done in
14182 font_update_drivers before.
14183
14184 * xfont.c (xfont_match): New function.
14185 (xfont_driver): Set xfont_driver.match to xfont_match.
14186 (xfont_draw): Set font in GC if necessary.
14187
14188 * ftxfont.c (ftxfont_match): New function.
14189 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14190
14191 * xftfont.c (xftfont_match): New function.
14192 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14193
141942008-02-01 Kenichi Handa <handa@m17n.org>
14195
14196 * font.h (struct font): New member scalable.
14197 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14198 (font_otf_gsub): Adjust prototype.
14199
14200 * font.c (font_otf_capability): Fix handling of the default langsys.
14201 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14202 Check the contents of SPEC.
14203 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14204 (check_gstring): New function.
14205 (REPLACEMENT_CHARACTER): New macro.
14206 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14207 glyph codes of GSTRING.
14208 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14209 (font_prepare_composition): Set cmp->glyph_len.
14210 (font_open_entity): Set font->scalable.
14211 (Ffont_get): Handle :otf property.
14212 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14213 functions.
14214 (Fquery_font): Use font->font.full_name.
14215 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14216 Sfont_otf_alternates.
14217
14218 * ftfont.c (ftfont_open): Set font->font.full_name and
14219 font->font.name properly. Fix calculation of font->font.height
14220 and font->min_width.
14221
14222 * ftxfont.c (ftxfont_create_gcs): New function.
14223 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14224 (ftxfont_draw_backgrond): Fix filling region.
14225 (ftxfont_default_fid): New function.
14226 (ftxfont_open): Set xfont->fid to the return value of
14227 ftxfont_default_fid.
14228 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14229 (ftxfont_done_face): Free only GCs that are created by
14230 ftxfont_create_gcs.
14231 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14232
14233 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14234 Clip to src->width, etc (not src->clip_XXX).
14235
14236 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14237 FontBackend frame parameter.
14238
142392008-02-01 Kenichi Handa <handa@m17n.org>
14240
14241 * font.h (struct font_driver_list): New member `on'.
14242 (Fclear_font_cache): EXFUN it.
14243 (font_update_drivers): Extern it.
14244
14245 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14246 (font_list_entities): Check driver_list->on.
14247 (register_font_driver): Initalize `on' member to 0.
14248 (font_update_drivers): New function.
14249 (Fclear_font_cache): Check driver_list->on.
14250
14251 * frame.h (Qfont_backend): Extern it.
14252 (x_set_font_backend): Extern it.
14253
14254 * frame.c (Qfont_backend): New variable.
14255 (frame_parms): New element for font-backend.
14256 (x_set_font_backend): New function.
14257
14258 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14259 FontBackend frame parameter.
14260 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14261 x_set_font_backend.
14262
14263 * xfont.c (xfont_list): Don't try listing by :name property if the
14264 name is not for XLFD.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14269 (LGLYPH_SET_TO): New macros.
14270 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14271 element of G is vector or not.
14272 (font_at): Extern it.
14273
14274 * font.c: Include window.h.
14275 (font_lispy_object): New function.
14276 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14277 end of valid glyph.
14278 (font_close_object): Fix getting (struct font *).
14279 (font_at): New function.
14280 (Ffont_get): If FONT is a font-object, get entity from it.
14281 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14282 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14283 range check.
14284 (Ffont_at): New function.
14285 (syms_of_font): Defsubr Sfont_at.
14286
14287 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14288 before the entry for Qcomposition.
14289 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14290 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14291 the font in gstring.
14292 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14293 LGLYPH_FORM (g) to detect the end of valid glyph.
14294 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14295 we are composing with gstring.
14296
14297 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14298 Check if adjustment is vector or not.
14299
14300 * Makefile.in (font.o): Make it depends on window.h.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14305 adjustment is vector or not.
14306
143072008-02-01 Miles Bader <miles@gnu.org>
14308
14309 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14314 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14315 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14316
14317 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14318 (DEVICE_DELTA): Fix typo.
14319 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14320 LGLYPH format.
14321
14322 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14323 the change of LGLYPH format.
14324
143252008-02-01 Kenichi Handa <handa@m17n.org>
14326
14327 * ftfont.c (ftfont_list): Fix typo.
14328 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14329
143302008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14331
14332 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14333
14334 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14335 xftface_info is non-NULL.
14336
143372008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14338
14339 * ftfont.c (ftfont_list): Move misplaced #endif.
14340
143412008-02-01 Kenichi Handa <handa@m17n.org>
14342
14343 * ftfont.c (ftfont_list): Pay attention to the case that
14344 FC_CAPABILITY is not defined.
14345
143462008-02-01 Kenichi Handa <handa@m17n.org>
14347
14348 * xftfont.c (xftfont_open): Set charset related members to -1.
14349
14350 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14351 QCname.
14352 (ftfont_open): Set charset related members to -1.
14353
14354 * fontset.c (Votf_script_alist): New variable.
14355 (syms_of_fontset): Initialize it.
14356 (fontset_font): Delete unused variable.
14357
14358 * fontset.h (Votf_script_alist): Extern it.
14359
14360 * font.c (font_find_for_lface): Optimize code.
14361
14362 * font.h (font_close_object, font_merge_old_spec): Extern them.
14363
143642008-02-01 Kenichi Handa <handa@m17n.org>
14365
14366 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14367 (syms_of_font): Initialize them.
14368 (font_pixel_size): Allow float value in dpi.
14369 (font_prop_validate_type): Delete.
14370 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14371 Change caller.
14372 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14373 (font_prop_validate_extra): Delete.
14374 (font_prop_validate_spacing): New function.
14375 (font_property_table): Add elements for all known properties.
14376 (get_font_prop_index): Rename from check_font_prop_name. New
14377 argument FROM. Change caller.
14378 (font_prop_validate): Validate all known properties.
14379 (font_put_extra): Delete argument force. Change caller.
14380 (font_expand_wildcards): Make it static. Fix the way of shrinking
14381 the possible range.
14382 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14383 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14384 Change caller.
14385 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14386 (font_parse_fcname): Delete argument merge. Fix parsing of point
14387 size. Don't validate properties values here. Change caller.
14388 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14389 (font_open_by_name): Delete unused variable.
14390 (Ffont_spec): Likewise. Validate property values.
14391 (Ffont_match_p): New function.
14392
14393 * font.h (QCscalable): Extern it.
14394 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14395
14396 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14397
14398 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14399 (xfont_list_pattern): New function.
14400 (xfont_list): Use xfont_list_pattern.
14401
144022008-02-01 Kenichi Handa <handa@m17n.org>
14403
14404 * font.h (Flist_fonts): EXFUN it.
14405
144062008-02-01 Jason Rumney <jasonr@gnu.org>
14407
14408 * w32term.c (w32_initialize): Add back smoothing_type and
14409 smoothing_enabled definitions.
14410
144112008-02-01 Kenichi Handa <handa@m17n.org>
14412
14413 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14414 s->face->font on determining underline position.
14415
144162008-02-01 Kenichi Handa <handa@m17n.org>
14417
14418 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14419 (font_has_char): Accept font-object too.
14420 (font_find_for_lface): Try at first with a size specified in face.
14421
144222008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14425 font_open_by_name.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * font.h (QCspacing, QCdpi): Extern them.
14430 (enum font_spacing): New enum.
14431 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14432
14433 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14434 (QCspacing, QCdpi): New variables.
14435 (syms_of_font): Initialize them.
14436 (font_pixel_size): New function.
14437 (font_put_extra): New function.
14438 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14439 in FONT_EXTRA.
14440 (font_parse_fcname): Handle enumerated values (e.g. bold).
14441 Fix handling font size. Add QCname property that contains only
14442 unknown properties.
14443 (font_score): Change argument. Change caller. Pay attention to
14444 FONT_PIXEL_SIZE_QUANTUM.
14445 (font_sort_entites, font_list_entities, font_find_for_lface)
14446 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14447 (Ffont_spec): Add QCname property that contains only unknown properties.
14448
14449 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14450 include weight in listing pattern, instead check weight of each
14451 listed font. Don't include scalable in pattern. Pay attention to
14452 FONT_PIXEL_SIZE_QUANTUM.
14453
144542008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * font.c (font_parse_fcname): Fix parsing of point-size.
14457 (font_unparse_fcname): Produce symbolic names for style properties.
14458 (font_list_entities): Handle float size correctly.
14459 (font_open_by_name): Prefer `normal' property values if the name
14460 doesn't specify them.
14461
14462 * fontset.c (Finternal_char_font): Use font_get_name, not
14463 Ffont_xlfd_name.
14464
14465 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14466 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14467 pattern. Don't force scalable.
14468
14469 * xftfont.c (xftfont_open): For generating a name, start from
14470 96-byte buffer.
14471
144722008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14473
14474 * frame.h (x_new_fontset2): Fix prototype.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * font.h (struct font_driver): Delete member parse_name.
14479 (font_match_p, font_get_spec, font_parse_fcname)
14480 (font_unparse_fcname): Extern them.
14481 (font_get_name): Adjust prototype.
14482
14483 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14484 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14485 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14486 unnecessary checks for weight, slant, and swidth.
14487 (font_parse_fcname): New function.
14488 (font_unparse_fcname): New function.
14489 (font_parse_name): New function.
14490 (font_match_p): New function.
14491 (font_get_name): Change return value to Lisp string.
14492 (font_get_spec): New function.
14493 (Qunspecified, Qignore_defface): Don't extern them.
14494 (font_find_for_lface): Assume that LFACE is fully specified.
14495 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14496 object, use it for FACE.
14497 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14498 driver->parse_name.
14499 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14500
14501 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14502 prototype.
14503
14504 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14505 argument F. Don't call Fnew_fontset. Instead, directly call
14506 make_fontset.
14507
14508 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14509
14510 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14511 of x_new_fontset2.
14512
14513 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14514 (Qsans__serif): New variables.
14515 (ftfont_generic_family_list): New variable.
14516 (syms_of_ftfont): Initialize the above variables.
14517 (ftfont_pattern_entity): Delete argument NAME.
14518 (ftfont_list_generic_family): New function.
14519 (ftfont_parse_name): Delete this function.
14520 (ftfont_list): Try generic family only when FcFontList found no font.
14521 (ftfont_list_family): Fix args to FcObjectSetBuild.
14522
14523 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14524 object in attrs[LFACE_FONT_INDEX].
14525 (set_lface_from_font_name): Cancel all changes for font-backend.
14526 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14527 function.
14528 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14529 font object in QCfont attribute.
14530 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14531 (realize_default_face) [USE_FONT_BACKEND]: Call
14532 set_lface_from_font_and_fontset.
14533
14534 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14535 "fixed", and signal error here if no suitable font was found.
14536
14537 * xfont.c (xfont_parse_name): Delete this function.
14538
14539 * xftfont.c (xftfont_open): Change coding style of error
14540 handling. Generate fontconfig's fontname pattern.
14541
14542 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14543 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14544
14545 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14546 Both args FONTSET and FONT_OBJECT must be existing ones.
14547
145482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14549
14550 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14551
145522008-02-01 Kenichi Handa <handa@m17n.org>
14553
14554 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14555
14556 * font.h (struct font): Fix typo.
14557
14558 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14559 XLFD_XXX_INDEX.
14560 (enum xlfd_field_mask): New enum.
14561 (intern_font_field): Changed argument. Change caller. If digits
14562 are followed by non-digits, return a symbol.
14563 (font_expand_wildcards): New function.
14564 (font_parse_xlfd): Fix wildcard handling.
14565 (Ffont_spec): If :name is specified, reflect the info in the other
14566 properties.
14567
14568 * ftfont.c (ftfont_pattern_entity): Fix typo.
14569 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14570 locale.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14575
14576 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14577 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14578 registry doesn't specify encoding part.
14579 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14580 (font_open_by_name): At first try parsing the name.
14581 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14582 as Lisp symbols.
14583
14584 * fontset.c (reorder_font_vector): Pay attention to the case that
14585 the 3rd element of font_def is nil.
14586 (fontset_font): For the default fontset, append one more fontset
14587 elements for a script-based font specification. Don't add script
14588 attribute on finding a font.
14589 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14590 font name.
14591 (fontset_ascii_font): If a font can't be opened, return nil.
14592
14593 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14594 (ftfont_pattern_entity): New function.
14595 (ftfont_get_cache): Assume that freetype_font_cache is already
14596 initialized.
14597 (ftfont_list): Handle the case that a file is specified in font
14598 name. Use ftfont_pattern_entity to generate entities.
14599 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14600 (syms_of_ftfont): Initialize freetype_font_cache.
14601
14602 * xftfont.c (xftfont_open): Make the font name fontconfig's
14603 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14604 (xftfont_close): Free font->font.name if not NULL.
14605
14606 * xfont.c (xfont_list): If script is specified for a font, return
14607 null_vector.
14608 (xfont_list_family): Declare argument type.
14609
14610 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14611 name, set LFACE_FONT (lface) to nil.
14612
14613 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14614 return Qnil.
14615
146162008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14619 (standard_args): Add "-enable-font-backend".
14620
146212008-02-01 Kenichi Handa <handa@m17n.org>
14622
14623 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14624 (struct xftdraw_list, xftdraw_list): Delete them.
14625 (register_xftdraw, check_xftdraw): Delete them.
14626 (xftfont_prepare_face): Don't call register_xftdraw.
14627 (xftfont_done_face): Don't call check_xftdraw.
14628 (xftfont_draw): Get background color only when with_background is
14629 nonzero.
14630
14631 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14632
146332008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 These changes are for the new font handling codes.
14636
14637 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14638 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14639 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14640 (FONTSRC, FONTOBJ): New variables.
14641 (obj): Add $(FONTOBJ).
14642 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14643 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14644 @LIBOTF_LIBS@.
14645 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14646 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14647
14648 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14649
14650 * character.h (Vscript_representative_chars): Extern it.
14651
14652 * character.c (Vscript_representative_chars): New variable.
14653 (syms_of_character): Declare it as a Lisp variable.
14654
14655 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14656 enable_font_backend is nonzero, accept the composition method
14657 COMPOSITION_WITH_GLYPH_STRING.
14658
14659 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14660 enumeration COMPOSITION_WITH_GLYPH_STRING.
14661
14662 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14663 members clip_x, clip_y, clip_width, and clip_height.
14664 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14665
14666 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14667 --enable-font-backend. Call syms_of_font.
14668
14669 * fns.c (assoc_no_quit): New function.
14670
14671 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14672 (face_for_font, new_fontset_from_font)
14673 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14674
14675 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14676 (fontset_font, fontset_ascii, face_for_char)
14677 (make_fontset_for_ascii_face, Ffont_info)
14678 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14679 is nonzero, use font-backend mechanism.
14680 (find_font_encoding): Make it non-static.
14681 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14682 New functions.
14683
14684 * frame.h (struct frame): New members resx and resy.
14685 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14686 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14687
14688 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14689 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14690
14691 * lisp.h (assoc_no_quit): Extern it.
14692
14693 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14694 Through out the file, use FONT_INFO_FROM_FACE instead of
14695 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14696 rif->per_char_metric.
14697 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14698 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14699 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14700 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14701 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14702 nonzero, use font-backend mechanism.
14703 (get_per_char_metric): New function.
14704
14705 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14706 (set_lface_from_font_name)
14707 (set_font_frame_param, free_realized_face)
14708 (prepare_face_for_display, clear_face_gcs)
14709 (Finternal_set_font_selection_order, realize_x_face)
14710 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14711 font-backend mechanism.
14712 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14713 (load_face_font) [USE_FONT_BACKEND]: Abort.
14714 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14715 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14716
14717 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14718 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14719 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14720 nonzero, register all available font drivers. Call
14721 x_default_font_parameter for deciding a font.
14722 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14723
14724 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14725 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14726 (x_set_glyph_string_clipping_exactly)
14727 (x_compute_glyph_string_overhangs)
14728 (x_draw_glyph_string_foreground)
14729 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14730 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14731 enable_font_backend is nonzero, use font-backend mechanism.
14732 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14737 system_eol_type.
14738 (syms_of_coding): Initialize system_eol_type.
14739
14740 * process.c (Fset_process_coding_system): Inherit system's eol
14741 format if necessary.
14742
147432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14744
14745 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14746
147472008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * coding.c (decode_eol): Pay attention to buffer relocation in
14750 del_range_2.
14751 (decode_coding): Call decode_eol before restoring undo_list.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * charset.c (Fdefine_charset_internal): Fix setting of
14756 emacs_mule_bytes.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * keyboard.c (read_char): Check if C is a character or not before
14761 looking up Vkeyboard_translate_table.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14766 condition to terminate the loop.
14767
147682008-02-01 Kenichi Handa <handa@m17n.org>
14769
14770 * coding.c (produce_composition): Compare charbuf[i] instead of
14771 args[i] against 0.
14772 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14773
147742008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14777 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14778 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14779 detect_coding.
14780 (emacs_mule_char): Handle old style (Emacs 20) component character
14781 of a composition.
14782 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14783 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14784 composition rule.
14785 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * coding.c (encode_coding_ccl): Allocate destination dynamically
14790 when necessary.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14795 the loop. When quitted, show a proper error message.
14796
147972008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14800 src->clip_head and src->clip_tail temporarily instead of src->hl.
14801
14802 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14803 character sequence.
14804 (Fccl_execute_on_string): Use ASET, not XSET.
14805
148062008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * coding.c (decode_coding): Fix the condition of terminating the
14813 decoding loop.
14814
148152008-02-01 Kenichi Handa <handa@m17n.org>
14816
14817 * data.c (Faset): On setting a character bigger than 255 in a
14818 unibyte string, signal an error instead of make the string multibyte.
14819
148202008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14823 made by a mapping table.
14824
148252008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14828 not.
14829 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14830 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14831
14832 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14833 s->face is NULL or not.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14838 (x_draw_glyph_string): Fix drawing of right_overhang and
14839 left_overhang around/on cursor.
14840
14841 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14842
148432008-02-01 Kenichi Handa <handa@m17n.org>
14844
14845 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14846
148472008-02-01 Kenichi Handa <handa@m17n.org>
14848
14849 * coding.c (Fdefine_coding_system_internal)
14850 (Fdefine_coding_system_alias): Avoid a duplicated element in
14851 Vcoding_system_alist.
14852
148532008-02-01 Kenichi Handa <handa@m17n.org>
14854
14855 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14856
14857 * coding.c (Qcoding_system_define_form): New variable.
14858 (syms_of_coding): Intern and staticpro it.
14859 (Fcoding_system_p): Check Qcoding_system_define_form.
14860 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14861
14862 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14863 Fcoding_system_p.
14864 (CHECK_CODING_SYSTEM): If ID is not available, call
14865 Fcheck_coding_system.
14866 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14867 Try also Fcheck_coding_system.
14868
148692008-02-01 Kenichi Handa <handa@m17n.org>
14870
14871 * coding.c (code_conversion_restore): GCPRO arg.
14872
148732008-02-01 Kenichi Handa <handa@m17n.org>
14874
14875 * character.c (lisp_string_width): Check multibyteness of STRING.
14876
148772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14878
14879 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14880 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14881 (decode_mac_font_name): Use decode_coding_c_string instead of
14882 decode_coding.
14883 (x_load_font): Initialize fontp->fontset to -1. Set
14884 fontp->encoding_type.
14885
148862008-02-01 Kenichi Handa <handa@m17n.org>
14887
14888 * search.c (search_buffer): Give up BM search on case-fold-search
14889 if one of a target character has a case-equivalence of different
14890 byte length even if that target charcter is an ASCII.
14891 (simple_search): Fix calculation of byte length of matched text.
14892 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14893
148942008-02-01 Kenichi Handa <handa@m17n.org>
14895
14896 * coding.c (decode_coding): Fix handling of invalid bytes.
14897
148982008-02-01 Kenichi Handa <handa@m17n.org>
14899
14900 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14901 Unicode characters.
14902
149032008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * coding.c (encode_coding_object): If a pre-write-conversion
14906 function makes a new buffer, kill it.
14907
149082008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * coding.c (QCascii_compatible_p): New variable.
14911 (syms_of_coding): Initialize it.
14912 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14913 calling string_char.
14914 (record_conversion_result): Add `default:' case.
14915 (coding_charset_list): Delete unused variable `coding_type'.
14916 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14917 property in the plist of the coding system.
14918 (Fcoding_system_put): Check QCascii_compatible_p.
14919
149202008-02-01 Miles Bader <miles@gnu.org>
14921
14922 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14923 removed calculation of frame `f', as it's now used.
14924
149252008-02-01 Kenichi Handa <handa@m17n.org>
14926
14927 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14928 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14929 (UNIDATA): New variable.
14930 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14931 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14932 $(RUN_TEMACS) unconditionally.
14933
149342008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14937 (admindir): New variable.
14938 ($(lispsource)international/charprop.el): New target.
14939
149402008-02-01 Miles Bader <miles@gnu.org>
14941
14942 * character.c (chars-in-region): Remove obsolete function.
14943 (syms_of_character): Remove its initialization.
14944
149452008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14946
14947 * w32select.c (validate_coding_system)
14948 (setup_windows_coding_system): New functions.
14949 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14950 setup_windows_coding_system.
14951 (setup_config, Fw32_get_clipboard_data): Use
14952 validate_coding_system.
14953 (Fx_selection_exists): Move call to setup_config to a place
14954 where signals are allowed.
14955
14956 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14957 (Fcheck_coding_system): Add declarations.
14958
149592008-02-01 Kenichi Handa <handa@m17n.org>
14960
14961 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14962
149632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14964
14965 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14966 string as the second argument for x_new_fontset.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14971 (encode_coding_object): Use safe_call instead of call2.
14972
149732008-02-01 Kenichi Handa <handa@m17n.org>
14974
14975 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14976
14977 * Makefile.in (lisp): Include charprop.el.
14978
149792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14980
14981 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14982 Not sure if it's unnecessary.
14983
149842008-02-01 Steven Tamm <steventamm@mac.com>
14985
14986 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14987 some possibly unnecessary fontset checking code that crashed
14988 when creating a new frame.
14989
149902008-02-01 Kenichi Handa <handa@m17n.org>
14991
14992 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14993 lookup_face.
14994
14995 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14996
14997 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14998
149992008-02-01 Kenichi Handa <handa@m17n.org>
15000
15001 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15002 (coding_charset_list): New function.
15003
15004 * coding.h (coding_charset_list): Extern it.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15009 concatenation of family and registry.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * character.h (BYTE8_STRING): Fix typo.
15014
15015 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15016 string to multibyte (sync to HEAD).
15017
15018 * casefiddle.c (casify_region): Handle changes in byte-length
15019 using replace_range_2 (sync to HEAD).
15020
150212008-02-01 Andreas Schwab <schwab@suse.de>
15022
15023 * chartab.c (map_char_table): GCPRO table and arg.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15028 already at limit.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15033 instead of fast_c_string_match_ignore_case.
15034 (find_font_encoding): Change argument to Lisp_Object. Use
15035 fast_string_match_ignore_case instead of
15036 fast_c_string_match_ignore_case. Change caller.
15037
150382008-02-01 Kenichi Handa <handa@m17n.org>
15039
15040 * xdisp.c (get_next_display_element): In unibyte case, decide to
15041 display in octal form by checking a character by
15042 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15043
15044 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15045
15046 * character.c (unibyte_has_multibyte_table): New variable.
15047
15048 * character.h (unibyte_has_multibyte_table): Extern it.
15049 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15050
150512008-02-01 Kenichi Handa <handa@m17n.org>
15052
15053 * coding.c (encode_coding_iso_2022): Fix handling of charset
15054 annotation.
15055
150562008-02-01 Kenichi Handa <handa@m17n.org>
15057
15058 * coding.c (setup_coding_system): If coding_system is nil, use
15059 Qundecided.
15060 (Fterminal_coding_system): Return nil if terminal coding system is
15061 `undecided'.
15062 (syms_of_coding): Define coding-system `undecided' here. Setup
15063 terminal_coding as `undecided'.
15064
150652008-02-01 Kenichi Handa <handa@m17n.org>
15066
15067 * xdisp.c (message_dolog, set_message_1): Call
15068 unibyte_char_to_multibyte with arg type int.
15069
15070 * lread.c (read1): Fix reading of a char-table.
15071
15072 * print.c (print_object): Include sub char-table in circularities
15073 detection.
15074
150752008-02-01 Kenichi Handa <handa@m17n.org>
15076
15077 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15078 Append the found sequences in car of ARGS instead of prepending.
15079
150802008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * fileio.c (report_file_error): Make a unibyte string from
15083 strerror (errorno).
15084 (Fsubstitute_in_file_name): Fix the arg to
15085 unibyte_char_to_multibyte. It is evaluated twice.
15086
150872008-02-01 Kenichi Handa <handa@m17n.org>
15088
15089 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15090
150912008-02-01 Kenichi Handa <handa@m17n.org>
15092
15093 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15094 BOM is not found.
15095 (detect_coding, detect_coding_system): Optimization for ISO-2022
15096 when no 8-bit data is found.
15097
150982008-02-01 Jason Rumney <jasonr@gnu.org>
15099
15100 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15105 CHARS.
15106
151072008-02-01 Steven Tamm <steventamm@mac.com>
15108
15109 * macterm.c (mac_encode_char): Add charset argument and update
15110 to use encoding_type.
15111 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15112 switch to pure fontset.
15113 (decode_mac_font_name): Temporarily remove decoding.
15114 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15115 (x_load_font): Temporarily remove encoding.
15116
151172008-02-01 Kenichi Handa <handa@m17n.org>
15118
15119 * xfaces.c (Fface_font): If frame is not on a window system,
15120 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15121 refer to face->font.
15122 (split_font_name_into_vector, build_font_name_from_vector)
15123 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15124 when HAVE_WINDOW_SYSTEM is defined.
15125
151262008-02-01 Kenichi Handa <handa@m17n.org>
15127
15128 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15129 (x_produce_glyphs): Fix setting of members of cmp in case
15130 cmp->glyph_len is zero.
15131
15132 * fontset.c (Fset_fontset_font): Fix docstring.
15133 (Ffontset_info): Make it backward compatible. New arg ALL.
15134
151352008-02-01 Kim F. Storm <storm@cua.dk>
15136
15137 * process.c (read_process_output): Grow decoding_buf when needed;
15138 this could cause a crash in allocate_string and compact_small_strings.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15143
151442008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * coding.c (setup_coding_system): Set coding->common_flags
15147 correctly for raw-text.
15148 (consume_chars): On encoding unibyte text by raw-text, don't check
15149 multibyte form.
15150 (encode_coding): On encoding by raw-text, never use translation tables.
15151
15152 * fileio.c (e_write): Short cut for the case of no encoding.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * coding.c (detect_coding, detect_coding_system): Delete unused
15157 variables.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15162 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * coding.c (Ffind_coding_systems_region_internal): Include
15167 raw-text and no-conversion in the result.
15168
151692008-02-01 Kenichi Handa <handa@m17n.org>
15170
15171 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15172 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15173 FONT_DEF.
15174 (font_def_arg, add_arg, from_arg, to_arg): New args.
15175 (set_fontset_font): Change argument.
15176 (Fset_fontset_font): Fix for the case that TARGET is a script
15177 name and charset name.
15178 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15179
151802008-02-01 Kenichi Handa <handa@m17n.org>
15181
15182 * fontset.c (fontset_font): Rename from fontset_face. Change return
15183 value.
15184 (face_suitable_for_char_p, face_for_char): Adjust for the change
15185 of fontset_font.
15186 (make_fontset_for_ascii_face): Fix setting of the fontset element
15187 for ASCII.
15188 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15189 to get a font name.
15190 (Ffontset_info): Adjust for the change of fontset_font.
15191
15192 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15193
15194 * character.h (LEADING_CODE_LATIN_1_MIN)
15195 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15196
151972008-02-01 Kenichi Handa <handa@m17n.org>
15198
15199 * editfns.c (check_translation): New function.
15200 (Ftranslate_region_internal): Handle M:N mapping.
15201
152022008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15205
152062008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15209 goto invalid_code.
15210 (decode_coding_iso_2022): Fix handling of invalid designation.
15211
15212 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15213 after calling code_conversion_save.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15218
15219 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15220
15221 * fontset.c: Include "intervals.h".
15222 (fontset_face): Fix comparing of Lisp_Objects.
15223 (free_face_fontset, new_fontset_from_font_name): Fix
15224 Lisp_Object/int mixup.
15225
15226 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15227
15228 * coding.c: Add many prototypes for static functions.
15229 (get_translation_table): Allow max_lookup to be NULL.
15230 (decode_coding, Ffind_coding_systems_region_internal)
15231 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15232 get_translation_table with max_lookup NULL.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * coding.c (get_translation_table): Declare it as Lisp_Object.
15237 (LOOKUP_TRANSLATION_TABLE): New macro.
15238 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15239 instead of CHAR_TABLE_REF.
15240
152412008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15244 annotation data format.
15245 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15246 Change arguments FROM and TO to single argument NCHARS. Change caller.
15247 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15248 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15249 (decode_coding_ccl, decode_coding_charset): Pay attention to
15250 coding->charbuf_used.
15251 (get_translation): New function.
15252 (produce_chars): New arguments translation_table and last_block.
15253 Translate characters here. Return number of carryover chars.
15254 Change caller.
15255 (produce_composition): New argument pos. Change caller.
15256 Adjust for the change of annotation data format.
15257 (produce_charset, produce_annotation): Likewise.
15258 (decode_coding, encode_coding): Don't call translate_chars.
15259 (consume_chars): New arg translation_table. Change caller.
15260 (translate_chars): Delete.
15261 (syms_of_coding): Make translation-table's number of extra slots 2.
15262
152632008-02-01 Kenichi Handa <handa@m17n.org>
15264
15265 * search.c (simple_search): Fix setting this_pos_byte in backward
15266 search.
15267
15268 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15269 byte sequence.
15270 (detect_coding_ccl): Fix setting of the variable valids.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15275
15276 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15277
15278 * editfns.c (Ftranslate_region_internal): Rename from
15279 Ftranslate_region. Accept a char-table in TABLE.
15280 (syms_of_editfns): Defsubr Stranslate_region_internal.
15281
15282 * xfaces.c (set_lface_from_font_name): If a font is specified for
15283 a frame, generate a fontset from the font.
15284 (build_scalable_font_name): If the scalable font is requested for
15285 a specific size, don't change that size.
15286 (try_font_list): Try a scalable font also in the case that a
15287 pattern string is specified.
15288
152892008-02-01 Kenichi Handa <handa@m17n.org>
15290
15291 * xfaces.c (Fface_font): New optional arg CHARACTER.
15292
152932008-02-01 Kenichi Handa <handa@m17n.org>
15294
15295 * charset.h (CHARSET_OFFSET): New macro.
15296
152972008-02-01 Kenichi Handa <handa@m17n.org>
15298
15299 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15300
15301 * fontset.c (fontset_face): Handle the case that repertory is a
15302 char-table.
15303 (find_font_encoding): Return nil for unknown encoding.
15304 (Fset_fontset_font): Ignore a font of unknown encoding.
15305
153062008-02-01 Kenichi Handa <handa@m17n.org>
15307
15308 * keymap.c (describe_vector): Handle default value of a char table.
15309
15310 * fontset.c (fontset_face): Handle fallback fonts correctly.
15311 (Ffontset_info): Return infomation about fallback fonts.
15312
153132008-02-01 Kenichi Handa <handa@m17n.org>
15314
15315 * fontset.c (FONTSET_DEFAULT): New macro.
15316 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15317 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15318 the case that it is nil.
15319 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15320 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15321
15322 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15323 subset or superset.
15324
153252008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * emacs.c (main): Call init_charset after syms_of_XXX.
15328
15329 * charset.c (Vcharset_map_directory): Delete.
15330 (Vcharset_map_path): New variable.
15331 (load_charset_map_from_file): Use Vcharset_map_path instead.
15332 (init_charset): Initialize Vcharset_map_path.
15333 (syms_of_charset): Delete declaration of "charset-map-directory",
15334 add declaration of "charset-map-path".
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15339 ASCII only string.
15340
15341 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15342
15343 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15344 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15349
15350 * coding.c (QCmnemonic, QCdefalut_char)
15351 (QCdecode_translation_table, QCencode_translation_table)
15352 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15353 (get_translation_table): Return a list of translation tables if
15354 necessary.
15355 (decode_coding): Call get_translation_table with ENCODEP 0.
15356 (char_encodable_p): If translation_table is non-nil, always call
15357 translate_char.
15358 (Fdefine_coding_system_internal): Accept list of translation
15359 tables as :encode-translation-table and :decode-translation-table.
15360 (Fcoding_system_put): New function.
15361 (syms_of_coding): Declare new symbols. Defsubr
15362 Scoding_system_put.
15363 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15364 typically JISX0212.
15365
15366 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15367 when the charset is superset type.
15368
15369 * character.c (translate_char): Accept list of translation tables.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15374 (CODING_ATTR_TRANS_TBL): New macro.
15375
15376 * coding.c (get_translation_table): New function.
15377 (translate_chars): Fix the bug of skipping annotation data.
15378 (decode_coding, encode_coding): Utilize get_translation_table.
15379 (char_encodable_p, Funencodable_char_position): Translate char if
15380 necessary.
15381 (Ffind_coding_systems_region_internal)
15382 (Fcheck_coding_systems_region): Setup translation table for encode
15383 in a coding system attribute vector in advance.
15384 (Fdefine_coding_system_internal): Allow a symbol as translation
15385 table. For shift-jis type coding system, allow 4th charset.
15386
153872008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15390
15391 * xdisp.c (get_next_display_element): Pass -1 as POS to
15392 FACE_FOR_CHAR if displaying a C-string.
15393
153942008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * composite.c (get_composition_id): Handle xoff and yoff in a
15397 composition rule.
15398
15399 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15400 (struct composition): New member lbearing and rbearing.
15401
15402 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15403 (x_get_glyph_overhangs): Handle a composition glyph.
15404 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15405
15406 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15407 composition glyph.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * print.c: Include charset.h.
15412 (Vprint_charset_text_property): New variable.
15413 (Qdefault): Extern it.
15414 (PRINT_STRING_NON_CHARSET_FOUND)
15415 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15416 (print_check_string_result): New variable.
15417 (print_check_string_charset_prop): New function.
15418 (print_prune_charset_plist): New variable.
15419 (print_prune_string_charset): New function.
15420 (print_object): Call print_prune_string_charset if
15421 Vprint_charset_text_property is not t.
15422 (print_interval): Print nothing if interval->plist is nil.
15423 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15424 variable. Init and staticpro print_prune_charset_plist.
15425
154262008-02-01 Kenichi Handa <handa@m17n.org>
15427
15428 * fontset.c (new_fontset_from_font_name): Use the specified font
15429 for all characters in the new fontset.
15430
15431 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15432 OBJECT args.
15433
15434 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15435 OBJECT args for composition too.
15436
15437 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15438 OBJECT args.
15439
154402008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15443
15444 * fontset.c (reorder_font_vector): Adjust for the change of
15445 FONT_DEF format.
15446 (fontset_face): New arg id. Change caller.
15447 (face_for_char): New args pos and object.
15448 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15449 (fs_query_fontset): Check NAME by Fassoc too.
15450 (Fset_fontset_font): Allow non-XLFD font name.
15451 (Ffontset_info): Adjust for the change of FONT_DEF format.
15452
15453 * fontset.h (face_for_char): Adjust prototype.
15454
15455 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15456 (append_space, extend_face_to_end_of_line)
15457 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15458 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15459
15460 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15461 POS and OBJECT args.
15462
15463 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15464 POS and OBJECT args.
15465
154662008-02-01 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15469 of GlobalAlloc'ed memory.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15474
15475 * charset.h (charset_table_used): Delete extern.
15476
15477 * charset.c (charset_table_used): Make it static.
15478 (map_charset_chars): Fix args to c_function with.
15479
15480 * chartab.c (map_sub_char_table_for_charset): Fix args to
15481 c_function with.
15482
15483 * coding.h (enum coding_result_code): Delete
15484 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15485
15486 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15487 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15488 (Vlast_code_conversion_error): New variables.
15489 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15490 (ONE_MORE_BYTE): Record error if any instead of signaling an
15491 error. If non-ASCII multibyte char is found, return the negative
15492 value of the code. All callers changed to check it.
15493 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15494 (record_conversion_result): New function. Change all codes setting
15495 coding->result to call this function.
15496 (detect_coding_utf_8, decode_coding_utf_8)
15497 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15498 Don't use the local variable incomplete.
15499 (emacs_mule_char): Change the second arg to `const'.
15500 (decode_coding): Fix of flushing out unprocessed data.
15501 (make_conversion_work_buffer): Fix making of a work buffer.
15502 (decode_coding_object): Return coding->dst_object.
15503
15504 * fontset.c (set_fontset_font): Fix args.
15505
15506 * lisp.h (CHARACTERBITS): Define as 22.
15507
15508 * process.c (send_process): Be sure to set coding->src_multibyte.
15509
15510 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * xdisp.c (handle_auto_composed_prop): Give limit to
15515 Fnext_single_char_property_change.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * composite.c (syms_of_composite): Don't make the composition hash
15520 table weak.
15521
15522 * fontset.c (Fset_fontset_font): Fix docstring.
15523
15524 * lisp.h (detect_coding_system): Adjust prototype.
15525
15526 * fileio.c (kill_workbuf_unwind): Delete this function.
15527 (Finsert_file_contents): Adjust the call of detect_coding_system.
15528 Get conversion_buffer by code_conversion_save. Use the macro
15529 CODING_MAY_REQUIRE_DECODING. After decoding, update
15530 coding_system.
15531
15532 * coding.h (make_conversion_work_buffer): Delete extern.
15533 (code_conversion_save): Extern it.
15534
15535 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15536 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15537 (decode_coding_utf_8): Don't do eol converion.
15538 (detect_coding_utf_16): Check coding->src_chars, not
15539 coding->src_bytes. Add heuristics for those that have no signature.
15540 (decode_coding_emacs_mule, decode_coding_iso_2022)
15541 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15542 Don't do eol converion.
15543 (adjust_coding_eol_type): Return a new coding system.
15544 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15545 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15546 each change.
15547 (decode_coding): Pay attention to undo_list. Do eol conversion for
15548 all types of coding-systems (if necessary).
15549 (Vcode_conversion_work_buf_list): Delete it.
15550 (Vcode_conversion_reused_workbuf): Rename from
15551 Vcode_conversion_reused_work_buf.
15552 (Vcode_conversion_workbuf_name): New variable.
15553 (reused_workbuf_in_use): New variable.
15554 (make_conversion_work_buffer): Delete the arg DEPTH.
15555 (code_conversion_restore): Change argument to cons.
15556 (code_conversion_save): Delete the argument BUFFER. Change callers.
15557 (detect_coding_system): New argument src_chars. Change callers.
15558 Fix for utf-16 detection.
15559 (init_coding_once): Don't use ISO_carriage_return.
15560 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15561 reused_workbuf_in_use.
15562
155632008-02-01 Kenichi Handa <handa@m17n.org>
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 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15571 HANDLED_RECOMPUTE_PROPS.
15572
15573 * coding.c (Fdefine_coding_system_internal): Fix checking of
15574 ascii compatibility.
15575
155762008-02-01 Kenichi Handa <handa@m17n.org>
15577
15578 * charset.c (find_charsets_in_text): Delete unused locale variable.
15579 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15580
15581 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15582 Resync charset_list to Vemacs_mule_charset_list.
15583
15584 * keymap.c (store_in_keymap): Pay attention to the case that idx
15585 is a cons specifying a character range.
15586
155872008-02-01 Kenichi Handa <handa@m17n.org>
15588
15589 * composite.c (update_compositions): Bind inhibit-read-only, etc
15590 to t before calling remove-list-of-text-properties.
15591
15592 * print.c (print_object): Always print ASCII chars as is.
15593
155942008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15597
15598 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15599 is a char table.
15600
156012008-02-01 Kenichi Handa <handa@m17n.org>
15602
15603 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15604
156052008-02-01 Kenichi Handa <handa@m17n.org>
15606
15607 * xfaces.c (set_lface_from_font_name): Fix for the case that
15608 FONTNAME is not fontset name.
15609
156102008-02-01 Kenichi Handa <handa@m17n.org>
15611
15612 * fns.c (base64_encode_1): Fix previous change.
15613
156142008-02-01 Kenichi Handa <handa@m17n.org>
15615
15616 * fontset.c (set_fontset_font): New function.
15617 (Fset_fontset_font): If a font is specified for a charset, use
15618 map_charset_chars to store the font spec in a fontset.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * fontset.c (fontset_face): Create a fallback fontset on demand.
15623 (make_fontset): Don't create a fallback fontset here.
15624 (free_face_fontset): Free a fallback fontset (if any) too.
15625 (n_auto_fontsets): Delete this variable.
15626 (auto_fontset_alist): New variable.
15627 (new_fontset_from_font_name): Check auto_fontset_alist.
15628 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15629 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15630 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15631 Defsubr Sfontset_list_all.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15636
156372008-02-01 Kenichi Handa <handa@m17n.org>
15638
15639 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15640
156412008-02-01 Kenichi Handa <handa@m17n.org>
15642
15643 * editfns.c (Fgoto_char): Fix docstring.
15644
156452008-02-01 Kenichi Handa <handa@m17n.org>
15646
15647 * insdel.c (insert_from_gap): Adjust intervals correctly.
15648
156492008-02-01 Jason Rumney <jasonr@gnu.org>
15650
15651 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15652 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15653 (w32_initialize): Try to load it.
15654 (x_get_font_repertory): Use it if available.
15655 (w32_encode_char): Add shortcut for unicode output.
15656
15657 * w32fns.c (w32_load_system_font): Default charset to -1.
15658 (x_to_w32_charset): Match all fonts for unicode.
15659 (w32_to_x_charset): New parameter matching. Don't return partial
15660 or wildcard charsets.
15661 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15662 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15663 (w32_to_x_font): Match charset to real charset.
15664 (enum_font_cb2): Always list unicode versions.
15665
15666 * makefile.w32-in (temacs): Increase EMHEAP.
15667
156682008-02-01 Jason Rumney <jasonr@gnu.org>
15669
15670 * w32term.c (w32_encode_char): New charset parameter.
15671 font_info.encoding becomes encoding_type.
15672 (x_get_font_repertory): New function. Warning: stub only!
15673 (x_new_font): Return quickly if font already set.
15674 (x_new_fontset): fontsetname parameter is Lisp_Object.
15675 Use new fs_query_fontset. Try new_fontset_from_font_name.
15676 Use fontset_name for return value.
15677
15678 * w32term.h: Declare x_get_font_repertory.
15679
15680 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15681 place of find_charset_in_text. Use encode_coding_object in place
15682 of encode_coding.
15683 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15684 decode_coding.
15685
15686 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15687 of x_new_fontset.
15688 (w32_load_system_font): Initialize charset as unicode.
15689 font_info.encoding becomes encoding_type.
15690 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15691 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15692 (syms_of_w32fns): Set get_font_repertory_func.
15693
15694 * w32console.c: Include character.h. Use terminal_encode_buffer
15695 from term.c.
15696 (write_glyphs): Use new version of encode_terminal_code. Use
15697 encode_coding_object in place of encode_coding.
15698
15699 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15700 encoding becomes encoding_type.
15701
15702 * term.c (terminal_encode_buffer): Make externally visible.
15703
15704 * makefile.w32-in: Add character.h dependancies.
15705 (character.o, chartab.o): New targets.
15706
157072008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15710 CODING_ID_EOL_TYPE.
15711
157122008-02-01 Andreas Schwab <schwab@suse.de>
15713
15714 * coding.c (produce_chars): Revert last change.
15715
157162008-02-01 Kenichi Handa <handa@m17n.org>
15717
15718 * charset.h (charset_unicode): Extern it.
15719
15720 * charset.c (string_xstring_p): Check by (C >= 0x100).
15721 (find_charsets_in_text): Change format of the arc CHARSETS. New
15722 arg MULTIBYTE.
15723 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15724 change of find_charsets_in_text.
15725 (Fsplit_char): Fix doc. Never return unknown.
15726
15727 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15728
15729 * coding.c (Fdefine_coding_system_alias): Update
15730 Vcoding_system_list.
15731
15732 * fontset.c (load_font_get_repertory): Pay attention to the case
15733 that ENCODING of a font is specified by a char-table.
15734
15735 * xterm.c (x_get_font_repertory): Handle the case that the
15736 encoding of font is other than Unicode.
15737
157382008-02-01 Kenichi Handa <handa@m17n.org>
15739
15740 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15741 if a character is encodable by the terminal coding system. If
15742 not, produces proper number of `?'s. Update
15743 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15744 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15745
157462008-02-01 Kenichi Handa <handa@m17n.org>
15747
15748 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15749 variables.
15750 (encode_terminal_code): Change argument. Encode multiple
15751 characters at once. Store the result of encoding in
15752 terminal_encode_buffer.
15753 (write_glyphs, insert_glyphs): Adjust for the change of
15754 encode_terminal_code.
15755 (term_init): Initialize terminal_encode_buffer and
15756 terminal_encode_buf_size.
15757
15758 * coding.c (consume_chars): If coding->src_object is nil, don't
15759 check annotation.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 * character.c (char_string): Use ASCII_CHAR_P instead of
15764 SINGLE_BYTE_CHAR_P.
15765
157662008-02-01 Kenichi Handa <handa@m17n.org>
15767
15768 * xdisp.c (handle_auto_composed_prop): Check if the last
15769 characters of auto-composed region is newly composed with the
15770 following characters.
15771 (handle_composition_prop): Fix checking of point being inside
15772 composition.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * fns.c (concat): Don't change multibyteness of the result by
15777 concatenating an 8-bit character.
15778
15779 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15780 multibyteness of the result when newelt is an 8-bit character.
15781
157822008-02-01 Dave Love <fx@gnu.org>
15783
15784 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15785 EMACS_INT.
15786
15787 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15788
15789 * xfaces.c (face_numeric_value): Declare dim size_t.
15790 (Finternal_lisp_face_equal_p): Remove unused f.
15791
15792 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15793 (MATRIX_ROW): Remove unused vars.
15794 (draw_glyphs, x_insert_glyphs, fast_find_position)
15795 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15796 byte/char counts.
15797
15798 * regex.c (regex_compile): Remove unused var.
15799
15800 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15801
15802 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15803 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15804
15805 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15806
15807 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15808
15809 * fileio.c (Fwrite_region): Remove unused var.
15810
15811 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15812 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15813
15814 * composite.c (Fremove_list_of_text_properties): Declare.
15815
15816 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15817 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15818 (coding_inherit_eol_type): Remove unused attrs.
15819 (detect_coding): Cast arg of detect_eol.
15820
15821 * charset.c (syms_of_charset): Remove unused var p.
15822 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15823 byte/char counts.
15824
15825 * casetab.c (set_case_table): Remove unused var.
15826
15827 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15828 unused vars.
15829
158302008-02-01 Dave Love <fx@gnu.org>
15831
15832 * xterm.c (x_bitmap_mask): Declare.
15833
158342008-02-01 Dave Love <fx@gnu.org>
15835
15836 * xterm.c (x_term_init): Fix type error.
15837
15838 * lisp.h: Add Funibyte_char_to_multibyte.
15839
15840 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15841 (Fset_coding_system_priority): Doc fix.
15842
15843 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15844
15845 * indent.c (check_composition): Make start and end EMACS_INT.
15846
15847 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15848
15849 * xdisp.c (handle_composition_prop, check_point_in_composition):
15850 Make buffer positions EMACS_INT.
15851
15852 * composite.c (find_composition, run_composition_function)
15853 (update_compositions, Ffind_composition_internal): Make buffer
15854 positions EMACS_INT.
15855
15856 * composite.h (find_composition, update_compositions): Make
15857 position args EMACS_INT.
15858
15859 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15860
15861 * intervals.c (get_property_and_range):
15862 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15863
15864 * unexalpha.c: Don't include varargs.h.
15865
158662008-02-01 Dave Love <fx@gnu.org>
15867
15868 * coding.h (ENCODE_UTF_8): New.
15869
15870 * Makefile.in (gtkutil.o): Depend on coding.h.
15871
15872 * coding.c (Fset_coding_system_priority): Doc fix.
15873
158742008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15877 the case of auto saving.
15878
158792008-02-01 Andreas Schwab <schwab@suse.de>
15880
15881 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15882 `range' from GC.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15887
158882008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * fileio.c (choose_write_coding_system): Return a decided coding system.
15891 (Fwrite_region): Set Vlast_coding_system_used to the return value
15892 of choose_write_coding_system.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * charset.c (Fset_charset_priority): Pay attention to duplicated
15897 arguments.
15898
15899 * coding.c (QCcategory): New variable.
15900 (syms_of_coding): Defsym it. Set all elements of
15901 Vcoding_category_table and their symbol values.
15902 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15903 coding-category-XXX, and coding-category-list.
15904 (Fdefine_coding_system_internal): Add category in the plist.
15905
159062008-02-01 Kenichi Handa <handa@m17n.org>
15907
15908 * callproc.c (Fcall_process): Handle carryover correctly.
15909
15910 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15911 (raw_text_coding_system): Check NILP (coding_system).
15912 (coding_inherit_eol_type): Check NILP (coding_system) and
15913 NILP (parent).
15914 (consume_chars): Fix for the case of raw-text.
15915
15916 * process.c (read_process_output): Handle carryover correctly.
15917
159182008-02-01 Dave Love <fx@gnu.org>
15919
15920 * regex.c (re_search_2): Fix last change.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15925 target_multibyte. Even in a unibyte case, return a converted
15926 multibyte char.
15927 (GET_CHAR_AFTER): New macro.
15928 (PATFETCH): Translate via multibyte char.
15929 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15930 (SETUP_MULTIBYTE_RANGE): New macro.
15931 (regex_compile): Setup compiled code so that its multibyteness
15932 matches that of a target. Fix the handling of "[X-YZ]" using
15933 SETUP_MULTIBYTE_RANGE.
15934 (analyse_first) <charset>: For filling fastmap for all multibyte
15935 characters, don't check by BASE_LEADING_CODE_P.
15936 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15937 the same as RE_MULTIBYTE_P (bufp) now.
15938 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15939 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15940 (TRANSLATE_VIA_MULTIBYTE): New macro.
15941 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15942 It is the same as RE_MULTIBYTE_P (bufp) now.
15943 <exactn>: Translate via multibyte.
15944 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15945 translate it.
15946 <charset, charset_not>: Fetch a character by
15947 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15948 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15949 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15950 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15951 by GET_CHAR_AFTER.
15952 (bcmp_translate): Likewise.
15953
15954 * search.c (compile_pattern): Check the member target_multibyte,
15955 not the member multibyte of buf.
15956
15957 * lread.c (read1): While reading a string, set force_singlebyte
15958 and force_multibyte correctly.
15959
15960 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15961 up of unibyte_to_multibyte_table.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * coding.c (setup_coding_system): If coding has
15966 post-read-conversion or pre-write-conversion, set
15967 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15968 respectively.
15969 (decode_coding_gap): Run post-read-conversion if any.
15970
15971 * fileio.c (Finsert_file_contents): Even if we read into a
15972 unibyte buffer, check if we must decode the result or not.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * coding.c (make_conversion_work_buffer): Change the work buffer
15977 name to the same one as that of Emacs 21.
15978
159792008-02-01 Kenichi Handa <handa@m17n.org>
15980
15981 * coding.h (make_conversion_work_buffer): Adjust prototype.
15982 (code_conversion_restore): Don't extern it.
15983
15984 * coding.c (detected_mask): Delete unused variable.
15985 (decode_coding_iso_2022): Pay attention to the byte sequence of
15986 CTEXT extended segment, and retain those bytes as is.
15987 (decode_coding_ccl): Delete unused variable `valids'.
15988 (setup_coding_system): Delete unused variable `category'.
15989 (consume_chars): Delete unused variable `category'. Make it work
15990 for non-multibyte case.
15991 (make_conversion_work_buffer): Change argument.
15992 (saved_coding): Delete unused variable.
15993 (code_conversion_restore): Don't check saved_coding->destination.
15994 (code_conversion_save): New function.
15995 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15996 instead of record_unwind_protect.
15997 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15998 (detect_coding_system): Delete unused variable `mask'.
15999 (Fdefine_coding_system_internal): Delete unused variable id.
16000
16001 * fileio.c (kill_workbuf_unwind): New function.
16002 (Finsert_file_contents): On replacing, call
16003 make_conversion_work_buffer with correct args, and call
16004 record_unwind_protect with the first arg kill_workbuf_unwind.
16005
16006 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16007
160082008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16011 (fontset_add): Fix for the case that TO is less than TO1.
16012 (Ffontset_info): Don't use fallback fontset on checking the
16013 default fontset.
16014 (dump_fontset): New function for debugging.
16015
16016 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16017 coding_type is Qcharset.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16022 (map_char_table): Don't inherit the value from the parent on
16023 initializing VAL. Adjust for the above change.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * coding.c (Qsignature, Qendian): Delete these variables.
16028 (syms_of_coding): Don't initialize them.
16029 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16030 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16031 detect_info->found.
16032 (decode_coding_utf_16): Don't detect BOM here.
16033 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16034 is NOT utf_16_without_bom.
16035 (setup_coding_system): For a coding system of type utf-16, check
16036 if the attribute :endian is Qbig or not (not nil or not), and set
16037 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16038 (detect_coding): If coding type is utf-16 and BOM detection is
16039 required, detect it.
16040 (Fdefine_coding_system_internal): For a coding system of type
16041 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16042
160432008-02-01 Kenichi Handa <handa@m17n.org>
16044
16045 * coding.c (coding_set_source): Fix for the case that the current
16046 buffer is different from coding->src_object.
16047 (decode_coding_object): Don't use the conversion work buffer if
16048 DST_OBJECT is a buffer.
16049
160502008-02-01 Dave Love <fx@gnu.org>
16051
16052 * lread.c (read_emacs_mule_char) [len==2]: Index
16053 emacs_mule_charset correctly.
16054
160552008-02-01 Dave Love <fx@gnu.org>
16056
16057 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16058 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16059 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16060 treated specially.)
16061 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16062 (detected_mask): Remove Big5 bits.
16063
160642008-02-01 Kenichi Handa <handa@m17n.org>
16065
16066 The following changes are to make the font rescaling facility
16067 compatible with Emacs 21.
16068
16069 * xfaces.c (Vface_font_rescale_alist): Rename from
16070 Vface_resizing_fonts.
16071 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16072 (font_rescale_ratio): Rename from font_resizing_ratio.
16073 (split_font_name): Set font->rescale_ratio.
16074 (better_font_p): Pay attention to font->rescale_ratio.
16075 (build_scalable_font_name): Likewise. Change RESX, and RESY
16076 fields.
16077 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16082 (Qutf_16_le): Remove these variables.
16083 (syms_of_coding): Don't DEFSYM them.
16084 (decode_coding_utf_16): Fix handling of BOM.
16085 (encode_coding_utf_16): Fix handling of BOM.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * fileio.c (Finsert_file_contents): On replacing, before decoding
16090 the file into the work buffer, set point of the work buffer to the end.
16091
160922008-02-01 Dave Love <fx@gnu.org>
16093
16094 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16095
160962008-02-01 Dave Love <fx@gnu.org>
16097
16098 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16099 and fix C types.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * xdisp.c (SKIP_GLYPHS): New macro.
16104 (set_cursor_from_row): Pay attention to string display properties.
16105
16106 * category.c (copy_category_entry): Fix for the case that RANGE
16107 is an integer.
16108
16109 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16110
16111 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16112
161132008-02-01 Kenichi Handa <handa@m17n.org>
16114
16115 * charset.c (Fcharset_id_internal): New function.
16116 (syms_of_charset): Defsubr it.
16117
16118 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16119 with the last arg charset_list acquired from coding.
16120 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16121 the attribute coding_attr_ccl_valids.
16122
16123 * coding.h (enum define_coding_ccl_arg_index): Set the first
16124 member coding_arg_ccl_decoder to coding_arg_max.
16125
16126 * ccl.h (ccl_driver): Adjust prototype.
16127
16128 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16129 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16130 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16131 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16132 last arg Qnil.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16137 call encode_char.
16138
16139 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16140
161412008-02-01 Dave Love <fx@gnu.org>
16142
16143 * composite.c (syms_of_composite): Make composition_hash_table weak.
16144
161452008-02-01 Kenichi Handa <handa@m17n.org>
16146
16147 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16148 (font_name_registry): Don't extern them.
16149 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16150
16151 * fontset.h (Qfontset): Don't extern it.
16152 (new_fontset_from_font_name): Extern it.
16153
16154 * fontset.c: Give 8 extra slots to fontset objects.
16155 (Qfontset_info): New variable.
16156 (syms_of_fontset): Defsym it.
16157 (FONTSET_FALLBACK): New macro.
16158 (fontset_face): Try also the default fontset.
16159 (make_fontset): Realize a fallback fontset from the default fontset.
16160 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16161 using split_font_name_into_vector and build_font_name_from_vector.
16162 (Fset_fontset_font): Access the elements of font_spec by enum
16163 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16164 name by using split_font_name_into_vector.
16165 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16166 generate a proper font name from the fontset name. Update
16167 Vfontset_alias_alist.
16168 (n_auto_fontsets): New variable.
16169 (new_fontset_from_font_name): New function.
16170 (Ffont_info): Store the information about fonts generated from the
16171 default fontset in the first extra slot of the returned char-table.
16172
16173 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16174 (font_name_registry): Delete function.
16175 (split_font_name_into_vector): New function.
16176 (build_font_name_from_vector): New function.
16177 (font_list): The argument REGISTRY is now a list of registry names.
16178 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16179 specifies an explicit font name, return the name as is. Make a
16180 list of registy names.
16181
16182 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16183 of x_new_fontset.
16184 (Fx_create_frame): Don't call x_new_fontset here. Just use
16185 x_list_fonts to check the existence of fonts.
16186
16187 * xterm.h (x_new_fontset): Adjust prototype.
16188
16189 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16190 string. Use new_fontset_from_font_name to create a fontset from a
16191 font name.
16192
161932008-02-01 Kenichi Handa <handa@m17n.org>
16194
16195 * syntax.c (Vfind_word_boundary_function_table): New name for
16196 Vnext_word_boundary_function_table.
16197 (find-word-boundary-function-table): New name for
16198 next-word-boundary-function-table.
16199
162002008-02-01 Dave Love <fx@gnu.org>
16201
16202 * Makefile.in: Fix some dependencies.
16203
16204 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16205 set it to nil before returning.
16206
16207 * composite.c (update_compositions): Fix type error.
16208
16209 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16210
162112008-02-01 Kenichi Handa <handa@m17n.org>
16212
16213 * xterm.c (x_new_font): Optimize for the case that the font is
16214 already set for the frame.
16215
162162008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * chartab.c (char_table_ascii): Check if the char table contents
16219 is sub-char-table or not.
16220 (char_table_set, char_table_set_range): Fix argument to
16221 char_table_ascii.
16222
16223 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16224 (detect_coding_utf_8, detect_coding_utf_16)
16225 (detect_coding_emacs_mule, detect_coding_iso_2022)
16226 (detect_coding_sjis, detect_coding_big5)
16227 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16228 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16229 sequence is valid in this coding system. Change callers.
16230 (MAX_ANNOTATION_LENGTH): New macro.
16231 (ADD_ANNOTATION_DATA): New macro.
16232 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16233 ADD_ANNOTATION_DATA. Change the format of annotation data.
16234 (ADD_CHARSET_DATA): New macro.
16235 (emacs_mule_char): New argument ID. Change callers.
16236 (decode_coding_emacs_mule, decode_coding_iso_2022)
16237 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16238 Produce charset annotation data in coding->charbuf.
16239 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16240 to charset annotation data in coding->charbuf.
16241 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16242 coding->common_flags if the coding system is iso-2022 based and
16243 uses designation.
16244 (produce_composition): Adjust for the new annotation data format.
16245 (produce_charset): New function.
16246 (produce_annotation): Handle charset annotation.
16247 (handle_composition_annotation, handle_charset_annotation): New
16248 functions.
16249 (consume_chars): Handle charset annotation. Utilize the above two
16250 functions.
16251 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16252 buffer, get the deleted text as a string and set
16253 coding->src_object to that string.
16254 (detect_coding, detect_coding_system): Use the new struct
16255 coding_detection_info.
16256
16257 * coding.h (struct coding_detection_info): New structure.
16258 (struct coding_system): Adjust prototype of the member `detector'.
16259 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16264
162652008-02-01 Dave Love <fx@gnu.org>
16266
16267 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16268 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16269 to new local and nullify apropos_accumulate before returning.
16270 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16271
162722008-02-01 Kenichi Handa <handa@m17n.org>
16273
16274 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16275 correctly.
e3eea1fc 16276
aac0c6e3
MR
162772008-02-01 Dave Love <fx@gnu.org>
16278
16279 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 The following changes are to make character composition happen
16284 automatically on displaying.
16285
16286 * Makefile.in (lisp, shortlisp): Add composite.elc.
16287
16288 * composite.h (Qauto_composed, Vauto_composition_function)
16289 (Qauto_composition_function): Extern them.
16290
16291 * composite.c (Vcomposition_function_table)
16292 (Qcomposition_function_table): Delete variables.
16293 (Qauto_composed, Vauto_composition_function)
16294 (Qauto_composition_function): New variables.
16295 (run_composition_function): Don't call
16296 compose-chars-after-function.
16297 (update_compositions): Clear `auto-composed' text property.
16298 (compose_chars_in_text): Delete this function.
16299 (syms_of_composite): Staticpro Qauto_composed and
16300 Qauto_composition_function. Declare Vauto_composition_function as
16301 a Lisp variable.
16302
16303 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16304
16305 * xdisp.c (it_props): Add an entry for Qauto_composed.
16306 (handle_auto_composed_prop): New function.
16307
16308 * xselect.c (selection_data_to_lisp_data): Don't call
16309 compose_chars_in_text.
16310
163112008-02-01 Dave Love <fx@gnu.org>
16312
16313 * keyboard.c (read_char): Modify checking around use of
16314 Vkeyboard_translate_table.
16315
16316 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16317 and fix C types.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16322 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16323 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16324 the case that the last byte is '\r' correctly.
16325 (decode_coding): Flush out the unprocessed data correctly.
16326 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16327
163282008-02-01 Dave Love <fx@gnu.org>
16329
16330 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16331 Add XK_ISO... case.
16332 (xaw_scroll_callback): Revert last change.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16337
163382008-02-01 Kenichi Handa <handa@m17n.org>
16339
16340 * xfaces.c (Vface_resizing_fonts): New variable.
16341 (struct font_name): New member `resizing_ratio'.
16342 (font_resizing_ratio): New function.
16343 (split_font_name): Set font->resizing_ratio.
16344 (better_font_p): Pay attention to font->resizing_ratio.
16345 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16346 RESX, and RESY fields.
16347 (try_alternative_families): Try scalable fonts if
16348 Vscalable_fonts_allowed is not Qt.
16349 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16350
163512008-02-01 Dave Love <fx@gnu.org>
16352
16353 * xterm.c (xaw_scroll_callback): Cast correctly.
16354
163552008-02-01 Dave Love <fx@gnu.org>
16356
16357 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16358 (lispy_kana_keys): Comment out.
16359 (make_lispy_event) [XK_kana_A]: Comment out.
16360
16361 * xterm.c (xaw_scroll_callback): Cast call_data.
16362 (XTread_socket): Deal with ASCII keysyms.
16363 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16364
163652008-02-01 Dave Love <fx@gnu.org>
16366
16367 * xterm.c (Vx_keysym_table): New.
16368 (syms_of_xterm): Initialize it.
16369 (XTread_socket): Use it.
16370 From head: Eliminate incorrect optimization that tried to avoid
16371 decoding the output of X*LookupString.
16372 (x_get_font_repertory): Delete charset declaration.
16373
163742008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16377 return 0.
16378 (Fdefine_coding_system_internal): Setup
16379 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16380
163812008-02-01 Dave Love <fx@gnu.org>
16382
16383 * coding.c (Fcheck_coding_system): Doc fix.
16384
16385 * editfns.c (Finsert_byte): Return a proper value.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * coding.c (decode_coding): Fix args to translate_chars. Pay
16390 attention to Vstandard_translation_table_for_decode.
16391 (encode_coding): Fix args to translate_chars. Pay attention to
16392 Vstandard_translation_table_for_encode.
16393
16394 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16395 SINGLE_BYTE_CHAR_P.
16396
16397 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16398 not by SINGLE_BYTE_CHAR_P.
16399
16400 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16401 SINGLE_BYTE_CHAR_P.
16402
16403 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16404 SINGLE_BYTE_CHAR_P.
16405
16406 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16407 by SINGLE_BYTE_CHAR_P.
16408
16409 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16410 SINGLE_BYTE_CHAR_P.
16411
164122008-02-01 Dave Love <fx@gnu.org>
16413
16414 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16415
164162008-02-01 Dave Love <fx@gnu.org>
16417
16418 * fns.c (Flanginfo): Fix typo.
16419
16420 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16425 (detect_coding_emacs_mule, detect_coding_iso_2022)
16426 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16427 incomplete byte sequence. Don't update *mask when correctly detected.
16428 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16429 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16430 (detect_coding, detect_coding_system): Adjust for the changes above.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * character.c (char_string): Rename from
16435 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16436 (string_char): Rename from string_char.
16437
16438 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16439 if C is greater than MAX_3_BYTE_CHAR.
16440 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16441 string_char instead of string_char_with_unification.
16442
164432008-02-01 Dave Love <fx@gnu.org>
16444
16445 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * keymap.c (push_key_description): Pay attention to force_multibyte.
16450
16451 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16452
164532008-02-01 Dave Love <fx@gnu.org>
16454
16455 * charset.c (define_charset_internal): Rename `supprementary'.
16456
16457 * Makefile.in (lisp, shortlisp): Remove latin-N.
16458
164592008-02-01 Dave Love <fx@gnu.org>
16460
16461 * xfns.c (x_window, x_window): Use use_xim.
16462
16463 * xterm.c (use_xim): Initialize.
16464 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16465 (x_term_init): Maybe set use_xim.
16466
16467 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16468
164692008-02-01 Kenichi Handa <handa@m17n.org>
16470
16471 * search.c (search_buffer): Fix case-fold-search of multibyte
16472 characters.
16473 (boyer_moore): Rename the last argument to char_high_bits.
16474
164752008-02-01 Kenichi Handa <handa@m17n.org>
16476
16477 * xdisp.c (display_string): Fix for the case of zero width glyph.
16478
16479 * xfns.c (x_set_font): Change the error message of the case that
16480 x_new_fontset returns Qt.
16481
16482 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16483 (Finternal_set_lisp_face_attribute): Use signal_error for the
16484 error of invalid fontset.
16485
16486 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16487 fontset, return Qt.
16488
164892008-02-01 Dave Love <fx@gnu.org>
16490
16491 * unexelf.c (unexec): Make .got handling not SGI-specific.
16492
16493 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16494
16495 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16496
16497 * keyboard.c (read_key_sequence): Fix type error.
16498
16499 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16500 type error.
16501
16502 * fontset.c (fontset_add): Return Lisp_Object.
16503
165042008-02-01 Dave Love <fx@gnu.org>
16505
16506 * charset.h (charset_ordered_list_tick): Declare extern.
16507
165082008-02-01 Kenichi Handa <handa@m17n.org>
16509
16510 The following changes (and some of 2008-02-01 changes of mine) are
16511 for handling syntax, category, and case conversion for unibyte
16512 characters by converting them to multibyte on the fly. With these
16513 changes, we don't have to setup syntax and case tables for unibyte
16514 characters in each language environment.
16515
16516 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16517 multibyte if necessary.
16518
16519 * bytecode.c (Fbyte_code): Likewise.
16520
16521 * character.h (LEADING_CODE_LATIN_1_MIN)
16522 (LEADING_CODE_LATIN_1_MAX): New macros.
16523 (unibyte_to_multibyte_table): Extern it.
16524 (unibyte_char_to_multibyte): New macro.
16525 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16526 (CHAR_LEADING_CODE): New macro.
16527 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16528
16529 * character.c (unibyte_to_multibyte_table): New variable.
16530 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16531 (multibyte_char_to_unibyte): If C is an eight-bit character,
16532 convert it to the corresponding byte value.
16533
16534 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16535 not 1, signals an error. Update the elements of
16536 unibyte_to_multibyte_table.
16537 (init_charset_once): Initialize unibyte_to_multibyte_table.
16538 (syms_of_charset): Define the charset `iso-8859-1'.
16539
16540 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16541 as is without converting it to unibyte. In a unibyte buffer,
16542 convert C to multibyte before checking the syntax.
16543
16544 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16545
16546 * minibuf.c (Fminibuffer_complete_word): Use the macro
16547 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16548
16549 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16550
16551 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16552 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16553 that is zero, convert an eight-bit char to multibyte.
16554 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16555 non-emacs case.
16556 (PATFETCH): Convert an eight-bit char to multibyte.
16557 (HANDLE_UNIBYTE_RANGE): New macro.
16558 (regex_compile): Setup the compiled pattern for multibyte chars
16559 even if the given regex string is unibyte. Use PATFETCH_RAW
16560 instead of PATFETCH in many places. To handle `charset'
16561 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16562 only for ASCII chars.
16563 (analyse_first) <exactn>: Simplify because the compiled pattern
16564 is multibyte.
16565 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16566 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16567 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16568 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16569 multibyte always 1.
16570 (re_search_2): In emacs, set the locale variable multibyte to 1,
16571 otherwise to 0. New local variable target_multibyte. Check it
16572 to decide the multibyteness of STR1 and STR2. If
16573 target_multibyte is zero, convert unibyte chars to multibyte
16574 before translating and checking fastmap.
16575 (TARGET_CHAR_AND_LENGTH): New macro.
16576 (re_match_2_internal): In emacs, set the locale variable multibyte
16577 to 1, otherwise to 0. New local variable target_multibyte. Check
16578 it to decide the multibyteness of STR1 and STR2. Use
16579 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16580 <charset, charset_not>: If multibyte is nonzero, check fastmap
16581 only for ASCII chars. Call bcmp_translate with
16582 target_multibyte, not with multibyte.
16583 <begline>: Declare the local variable C as `unsigned'.
16584 (bcmp_translate): Change the last arg name to target_multibyte.
16585
16586 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16587 the regexp pattern and the matching target. Set cp->buf.multibyte
16588 to the multibyteness of the regexp pattern. Set
16589 cp->but.target_multibyte to the multibyteness of the matching target.
16590 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16591 FETCH_STRING_CHAR_ADVANCE.
16592 (Freplace_match): Convert unibyte chars to multibyte.
16593
16594 * syntax.c (char_quoted, back_comment, scan_words)
16595 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16596 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16597 unibyte chars to multibyte.
16598 (skip_chars): Delete the arg syntaxp, and move the code for
16599 handling syntaxes to skip_syntaxes. Change callers.
16600 Fix the case that the multibyteness of STRING and the current
16601 buffer doesn't match.
16602 (skip_syntaxes): New function.
16603 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16604 SINGLE_BYTE_CHAR_P.
16605
166062008-02-01 Kenichi Handa <handa@m17n.org>
16607
16608 * xfaces.c (QCfontset): New variable.
16609 (LFACE_FONTSET): New macro.
16610 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16611 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16612 (Finternal_set_lisp_face_attribute)
16613 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16614 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16615 check also LFACE_FONTSET_INDEX.
16616 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16617 attrs[LFACE_FONT_INDEX].
16618 (syms_of_xfaces): Intern and staticpro QCfontset.
16619
16620 * dispextern.h (enum lface_attribute_index): New member
16621 LFACE_FONTSET_INDEX.
16622
16623 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16624
166252008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * coding.c (coding_set_destination): Fix coding->destination for
16628 the case converting a region.
16629 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16630 (encode_coding_object): Fix coding->dst_pos and
16631 coding->dst_pos_byte for the case converting a region.
16632
16633 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16634
16635 * character.h (BYTE8_STRING): New macro.
16636
16637 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16638
166392008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16642 characters by octal form.
16643
16644 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16645
16646 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16647 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16648 _fetch_multibyte_char_len.
16649 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16650
16651 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16652
16653 * casefiddle.c (casify_object): Simplify. Handle the case that
16654 the case conversion change the byte length.
16655 (casify_region): Likewise.
16656
16657 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16658
16659 * character.c (_fetch_multibyte_char_len): Delete this variable.
16660 (syms_of_character): Setup Vprintable_chars.
16661
16662 * editfns.c (Fchar_equal): Fix for the unibyte case.
16663 (Finsert_byte): New function.
16664 (syms_of_editfns): Defsubr it.
16665
16666 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16667 of direct code 0x3ffff.
16668
16669 * search.c (Freplace_match): Fix for the unibyte case.
16670
166712008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * lread.c (safe_to_load_p): Fix the logic.
16674
16675 * syntax.c (scan_words): Don't treat characters belonging to
16676 different scripts as constituting a word.
16677
16678 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16679
16680 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16681
16682 * emacs.c (main): In the case of --unibyte, instead of aborting on
16683 finding non-empty buffer, make it unibyte.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16688 to create a fontset.
16689
166902008-02-01 Dave Love <fx@gnu.org>
16691
16692 * character.c (Funibyte_char_to_multibyte): Doc fix.
16693
16694 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16695
166962008-02-01 Kenichi Handa <handa@m17n.org>
16697
16698 * fontset.c (fontset_add): Make the type `int'.
16699 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16700
16701 * character.c (unibyte_char_to_multibyte)
16702 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16703 charset_unibyte, not charset_primary.
16704
16705 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16706
16707 * charset.c (charset_unibyte): Rename from charset_primary.
16708 (Funibyte_charset): Rename from Fprimary_charset.
16709 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16710 (syms_of_charset): Adjust for the above changes.
16711
16712 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16713 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16714 it->multibyte_p is zero.
16715
16716 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16717 Delete extern.
16718
167192008-02-01 Kenichi Handa <handa@m17n.org>
16720
16721 * coding.c (Fdefine_coding_system_internal): Fix category setting
16722 for a coding system of type iso-2022.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16727
167282008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * syntax.c (Vnext_word_boundary_function_table): New variable.
16731 (next-word-boundary-function-table): Declare it as a Lisp variable
16732 in syms_of_syntax.
16733 (scan_words): Call functions in Vnext_word_boundary_function_table
16734 if any.
16735
16736 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16737
16738 * fontset.c (fs_load_font): If fontp->charset is not negative,
16739 return fontp without setting its members.
16740
167412008-02-01 Dave Love <fx@gnu.org>
16742
16743 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16744
16745 * m/sparc.h (HAVE_ALLOCA): Delete.
16746
16747 * s/irix6-5.h: Don't include strings.h.
16748 (bcopy, bzero, bcmp): Don't undef.
16749
16750 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16751
16752 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16753 (TIOCSIGSEND): Don't test IRIX6.
16754 (bcopy, bzero, bcmp): Define conditionally.
16755
167562008-02-01 Kenichi Handa <handa@m17n.org>
16757
16758 * buffer.c (Qas, Qmake, Qto): New variables.
16759 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16760 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16761
16762 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16763 we are inserting a process output into a multibyte buffer.
16764
16765 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16766 multibyte_char_to_unibyte.
16767
16768 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16769 by the primary charset, make it eight-bit char.
16770 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16771
16772 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16773 (charset_8_bit__control, charset_8_bit_graphic)
16774 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16775 (define_charset_internal): New function.
16776 (syms_of_charset): Call define_charset_internal for pre-defined
16777 charsets.
16778
16779 * charset.h (charset_8_bit): Extern it.
16780
16781 * coding.c (make_conversion_work_buffer): Adjust for the change
16782 of Fset_buffer_multibyte.
16783 (encode_coding_raw_text): Increment p0 in the loop.
16784
16785 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16786
16787 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16788 for the change of Fset_buffer_multibyte.
16789
16790 * fns.c (Fstring_to_multibyte): New function.
16791 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16792
167932008-02-01 Dave Love <fx@gnu.org>
16794
16795 * xfns.c (x_put_x_image): Declare args.
16796
16797 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16798 (try_font_list): Declare an arg.
16799
16800 * xdisp.c (message2_nolog, set_message): Declare an arg.
16801
16802 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16803
16804 * syntax.c (scan_sexps_forward): Declare an arg.
16805
16806 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16807 Declare an arg.
16808
16809 * lisp.h (Fnew_fontset): Declare.
16810
16811 * keymap.c (push_key_description): Call CHARACTERP correctly.
16812
16813 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16814 (face_for_char): Delete unused vars.
16815 (Fset_fontset_font): Doc fix. Delete unused vars.
16816
16817 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16818
16819 * composite.c (update_compositions): Declare arg.
16820
16821 * cm.c (calccost, cmgoto): Declare args.
16822
16823 * charset.c: Remove `emacs' conditional. Doc fixes.
16824 (map_char_table_for_charset): Declare.
16825
16826 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16827
16828 * ccl.c: Remove `emacs' conditional.
16829
168302008-02-01 Kenichi Handa <handa@m17n.org>
16831
16832 The following changes are to allow specifying multiple font
16833 patterns for a character range (specified by script or charset).
16834
16835 * Makefile.in (abbrev.o): Depend on syntax.h.
16836 (xfaces.o): Depend on charset.h.
16837
16838 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16839 SINGLE_BYTE_CHAR_P.
16840
16841 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16842
16843 * character.h (Vchar_script_table): Extern it.
16844
16845 * character.c (Vscript_alist): Delete.
16846 (Vchar_script_table, Qchar_script_table): New variable.
16847 (syms_of_character): Declare Vchar_script_table as a lisp variable
16848 and initialize it.
16849
16850 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16851 have property char-table-extra-slots, make no extra slot.
16852
16853 * dispextern.h (struct face): Delete member `charset'.
16854 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16855 SINGLE_BYTE_CHAR_P.
16856 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16857 Add prototypes.
16858 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16859 (generate_ascii_font_name): Rename from generate_ascii_font.
16860
16861 * fontset.h (get_font_repertory_func): New prototype.
16862 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16863 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16864
16865 * fontset.c (Qprepend, Qappend): New variables.
16866 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16867 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16868 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16869 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16870 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16871 (load_font_get_repertory): New functions.
16872 (fontset_set): Delete.
16873 (fontset_face): New arg FACE. Return face ID, not face.
16874 Complete re-write to handle new fontset structure. Change caller.
16875 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16876 (face_for_char): Don't call lookup_face.
16877 (make_fontset_for_ascii_face): New arg FACE.
16878 (fs_load_font): New arg CHARSET_ID. Don't check
16879 Vfont_encoding_alist here.
16880 (find_font_encoding): New function.
16881 (list_fontsets): Use STRINGP, not ! NILP.
16882 (accumulate_script_ranges): New function.
16883 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16884 re-written to handle new fontset structure.
16885 (Ffontset_font): Return a copy of element.
16886 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16887 docstring of font-encoding-alist.
16888
16889 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16890 (Fset_fotset_font): Fix arguments to 5.
16891
16892 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16893
16894 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16895 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16896 (highlight_trailing_whitespace): Adjust for the change of
16897 lookup_named_face.
16898
16899 * xfaces.c: Include charset.h.
16900 (load_face_font): Delete argument C. Change caller.
16901 (generate_ascii_font_name): Rename from generate_ascii_font.
16902 (font_name_registry): New function.
16903 (cache_face): Store ascii faces before non-ascii faces in buckets.
16904 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16905 Lookup only ascii faces.
16906 (lookup_non_ascii_face): New function.
16907 (lookup_named_face): Delete argument C. Change caller.
16908 (lookup_derived_face): Delete argument C. Change caller.
16909 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16910 a string, just call font_list with it.
16911 (choose_face_font): Delete arguments FACE and C. New arg
16912 FONT_SPEC. Change caller.
16913 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16914 Change caller.
16915 (realize_non_ascii_face): New function.
16916 (realize_x_face): Call load_face_font here.
16917 (realize_tty_face): Delete argument C. Change caller.
16918 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16919 get a face ID.
16920 (dump_realized_face): Don't print charset of FACE.
16921
16922 * xfns.c (x_set_font): Always call x_new_fontset and
16923 store_frame_parameter.
16924 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16925 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16926
16927 * xterm.h (x_get_font_repertory): Extern it.
16928
16929 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16930 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16931 it->multibyte_p is zero.
16932 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16933 (x_new_fontset): If FONTSETNAME doesn't match any existing
16934 fontsets, create a new one.
16935 (x_get_font_repertory): New function.
16936
169372008-02-01 Kenichi Handa <handa@m17n.org>
16938
16939 * coding.c (Ffind_coding_systems_region_internal): Detect an
16940 ASCII only string correctly.
16941
16942 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16943 version is 0.
16944
169452008-02-01 Kenichi Handa <handa@m17n.org>
16946
16947 * lread.c: Include "coding.h".
16948 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16949 (load_each_byte, unread_char): New variables.
16950 (readchar_backlog): Delete.
16951 (readchar): Return a character unless load_each_byte is nonzero.
16952 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16953 cons. If unread_char is not -1, simply return it.
16954 (unreadchar): Handle the case that readcharfun is
16955 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16956 (read_multibyte): Delete.
16957 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16958 (read_emacs_mule_char): New functions.
16959 (Fload): Even if the file doesn't have the extension ".elc", if
16960 safe_to_load_p returns a positive version number, assume that the
16961 file contains bytecompiled code. If the version is less than 22,
16962 load the file while decoding multibyte sequences by emacs-mule.
16963 (readevalloop): Don't use readchar_backlog.
16964 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16965 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16966 (read_escape): Delete the arg BYTEREP.
16967 (read1): Set load_each_byte to 1 temporarily while handling
16968 #@NUMBER. Don't call read_multibyte.
16969 (read_vector): Call Fread with a cons. If readcharfun is
16970 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16971 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16972 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16973 and Qload_force_doc_strings.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * xdisp.c (face_before_or_after_it_pos): Call
16978 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * character.h (TRAILING_CODE_P): New macro.
16983 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16984 (string_char_with_unification): Fix prototype.
16985 (Vscript_alist): Extern it.
16986
16987 * character.c (Vscript_alist): New variable.
16988 (string_char_with_unification, str_as_unibyte)
16989 (string_escape_byte8): Add `const' to local variables.
16990 (syms_of_character): Declare script-alist as a Lisp variable.
16991
16992 * charset.h (Vcharset_ordered_list): Extern it.
16993 (charset_ordered_list_tick): Extern it.
16994 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16995 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16996 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16997 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16998 (Funify_charset): Adjust for the change of Funify_charset.
16999
17000 * charset.c (charset_ordered_list_tick): New variable.
17001 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17002 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17003 deunify intead of unify a charset.
17004 (string_xstring_p): Add `const' to local variables.
17005 (find_charsets_in_text): Add `const' to arguments and local variables.
17006 (encode_char): Adjust for the change of Funify_charset. Fix
17007 detecting of invalid code.
17008 (Fset_charset_priority): Increment charset_ordered_list_tick.
17009 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17010 and TO_CODE.
17011
17012 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17013 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17014 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17015 (decode_coding_ccl, consume_chars)
17016 (Ffind_coding_systems_region_internal)
17017 (Fcheck_coding_systems_region): Add `const' to local variables.
17018
17019 * print.c (print_object): Use octal form for printing the
17020 contents of a bool vector.
17021
170222008-02-01 Dave Love <fx@gnu.org>
17023
17024 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17025 <version == 20>: Refuse to load.
17026
170272008-02-01 Dave Love <fx@gnu.org>
17028
17029 * fns.c: Move coding.h.
17030 (Qcodeset, Qdays, Qmonths): New.
17031 (concat): Use CHARACTERP instead of INTEGERP.
17032 (Flocale_codeset): Delete.
17033 (Flanginfo): New function.
17034 (syms_of_fns): Change accordingly.
17035
17036 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17037
170382008-02-01 Dave Love <fx@gnu.org>
17039
17040 * casetab.c (init_casetab_once, init_casetab_once): Fix
17041 CHAR_TABLE_SET call.
17042
17043 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17044
17045 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17046
17047 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17048 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17049 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17050
17051 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17052
17053 * coding.c (ENCODE_DESIGNATION, decode_eol)
17054 (make_conversion_work_buffer, code_conversion_restore)
17055 (Fdefine_coding_system_internal): Convert Lisp types.
17056 (code_conversion_restore): Use EQ, not ==.
17057 (Fencode_coding_string): Fix code_convert_string call.
17058
17059 * coding.h (code_convert_region): Fix prototype.
17060
17061 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17062
17063 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17064 (Ffontset_info): Convert Lisp types.
17065
17066 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17067
17068 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17069
17070 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17071
17072 * chartab.c: Include "...h", not <...h> in some cases.
17073
17074 * callproc.c (Fcall_process): Remove unused variables.
17075
170762008-02-01 Dave Love <fx@gnu.org>
17077
17078 * coding.c (Fset_coding_system_priority): Allow null arg list.
17079
170802008-02-01 Dave Love <fx@gnu.org>
17081
17082 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17083 (Fself_insert_and_exit): Use CHARACTERP.
17084
17085 * callproc.c (Fcall_process): Remove unused vars.
17086
17087 * xterm.c (XTread_socket): Add extra dead keysyms.
17088
17089 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17090
17091 * dispextern.h: Remove prototypes for redraw_frame,
17092 redraw_garbaged_frames.
17093
17094 * cmds.c (Fself_insert_command): Use CHARACTERP.
17095
17096 * chartab.c (make_sub_char_table): Remove unused var.
17097 (Fset_char_table_default, Fmap_char_table): Doc fix.
17098
17099 * keymap.c (access_keymap): Remove generic char code.
17100 (push_key_description): Use CHARACTERP.
17101
171022008-02-01 Dave Love <fx@gnu.org>
17103
17104 * charset.c: Doc fixes.
17105 (Funify_charset): Extra checking.
17106
171072008-02-01 Dave Love <fx@gnu.org>
17108
17109 * lread.c: Remove some unused variables.
17110 (safe_to_load_p): If safe, return the magic number version byte.
17111 (Fload): Maybe use load-with-code-conversion.
17112
171132008-02-01 Kenichi Handa <handa@m17n.org>
17114
17115 * category.c (Fmodify_category_entry): Don't modify the contents
17116 of category_set for characters out of the range. Avoid
17117 unnecessary modification.
17118
17119 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17120 Vchar_unify_table. The default value of the table is now nil.
17121
17122 * character.c (syms_of_character): Setup Vchar_width_table for
17123 eight-bit-control and raw-byte chars.
17124
17125 * charset.h (enum define_charset_arg_index): Delete
17126 charset_arg_parents and add charset_arg_subset and
17127 charset_arg_superset.
17128 (enum charset_attr_index): Delete charset_parents and add
17129 charset_subset and charset_superset.
17130 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17131 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17132 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17133 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17134 (CHARSET_SUPERSET): New macros.
17135 (charset_work): Extern it.
17136 (ENCODE_CHAR): Use charset_work.
17137 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17138 (map_charset_chars): Extern it.
17139
17140 * charset.c (load_charset_map): Set the default value of encoder
17141 and deunifier char-tables to nil.
17142 (map_charset_chars): Change argument. Change callers. Use
17143 map_char_table_for_charset instead of map_char_table.
17144 (Fmap_charset_chars): New optional args from_code and to_code.
17145 (Fdefine_charset_internal): Adjust for the change of
17146 `define-charset' (:parents -> :subset or :superset).
17147 (charset_work): New variable.
17148 (encode_char, syms_of_charset): Adjust for the change of
17149 Fdefine_charset_internal.
17150 (Ffind_charset_string): Setup the vector `charsets' correctly.
17151
17152 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17153 the previous change.
17154 (char_table_ref_and_range): Adjust for the above change.
17155 (map_sub_char_table_for_charset): New function.
17156 (map_char_table_for_charset): New function.
17157
17158 * keymap.c (describe_vector): Handle a char-table directly here.
17159 (describe_char_table): Delete.
17160
17161 * lisp.h (map_charset_chars): Delete.
17162
171632008-02-01 Dave Love <fx@gnu.org>
17164
17165 * fns.c (count_combining): Comment out (unused).
17166 (Flocale_codeset): New.
17167 (syms_of_fns): Defsubr it.
17168
17169 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17170 (size_t): Remove.
17171
171722008-02-01 Dave Love <fx@gnu.org>
17173
17174 * Makefile.in (chartab.o): Depend on charset.h.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * character.c (syms_of_character): Set the default value of
17179 Vprintable_chars to Qnil.
17180
171812008-02-01 Dave Love <fx@gnu.org>
17182
17183 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17184
171852008-02-01 Kenichi Handa <handa@m17n.org>
17186
17187 * charset.c (load_charset_map): Handle the case that from < to
17188 correctly.
17189
17190 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17191 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17192 Pay attention to raw-8-bit chars.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17197 It is not bytecompiled now.
17198
17199 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17200 (charset_jisx0208): New variables.
17201 (Fdefine_charset_internal): Setup them if appropriate.
17202 (init_charset_once): Initialize them to -1.
17203
17204 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17205 (charset_jisx0208): Extern them.
17206
17207 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17208 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17209 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17210 (setup_iso_safe_charsets): Fix arguments to Fassq.
17211 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17212 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17213 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17214 (encode_coding_iso_2022): Change the 1st arg to
17215 ENCODE_ISO_CHARACTER to a variable.
17216
172172008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * charset.h (enum define_charset_arg_index): New enums
17220 charset_arg_min_code and charset_arg_max_code.
17221 (struct charset): New member char_index_offset.
17222
17223 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17224 Take charset->char_index_offset into account.
17225 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17226 args[charset_arg_max_code]. Setup charset.char_index_offset.
17227 (syms_of_charset): Fix args to Fdefine_charset_internal.
17228
172292008-02-01 Dave Love <fx@gnu.org>
17230
17231 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17232
172332008-02-01 Dave Love <fx@gnu.org>
17234
17235 * coding.c: Doc fixes.
17236 (Fcoding_system_aliases): Fix return value.
17237 (Qmac): Remove (duplicated) definition.
17238
172392008-02-01 Dave Love <fx@gnu.org>
17240
362654a6
JB
17241 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17242 New functions.
aac0c6e3
MR
17243
17244 * character.c (Fstring): Doc fix.
17245
17246 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17247
362654a6 17248 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17249 (font-encoding-alist): Doc fix.
17250
172512008-02-01 Dave Love <fx@gnu.org>
17252
17253 * term.c (costs_set): Declare static, non-initialized for pcc.
17254 (encode_terminal_code): Remove unused var.
17255
17256 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17257 for K&R.
17258
17259 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17260
17261 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17262 (suffixes): Move out of make_subsidiaries for K&R.
17263
17264 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17265
17266 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17267
172682008-02-01 Dave Love <fx@gnu.org>
17269
17270 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17271
17272 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17273
172742008-02-01 Yong Lu <lyongu@asia-infonet.com>
17275
17276 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17277
17278 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17283 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 * coding.c (decode_coding_charset): Adjust for the change of
17288 Fdefine_coding_system_internal.
17289 (Fdefine_coding_system_internal): For a coding system of
17290 `charset' type, store a list of charset IDs in
17291 `charset_attr_charset_valids' element of coding attributes.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17296 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17297 caller. Handle 2-byte and 3-byte charsets correctly.
17298 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17299 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17300 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17301 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17302 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17303 sequence.
17304 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17305 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17306 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17307 and alt&rule composition.
17308 (decode_coding_iso_2022): Handle composition correctly.
17309 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17310
17311 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17312 re-defining a charset. If the charset has :emacs-mule-id, setup
17313 emacs_mule_bytes.
17314 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17315
173162008-02-01 Kenichi Handa <handa@m17n.org>
17317
17318 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17319 (encode_coding_big5, encode_coding_charset): If coding requires safe
17320 encoding, produce a character specified by
17321 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17322
173232008-02-01 Dave Love <fx@gnu.org>
17324
17325 * xterm.c (XSetIMValues): Declare.
17326
17327 * process.c: Conditionally include sys/wait.h, pty.h.
17328
17329 * print.c (print_object): Fix print format for 64-bit systems.
17330
17331 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17332
17333 * buffer.c (emacs_strerror): Declare.
17334
17335 * fontset.c (Fclear_face_cache): Declare.
17336 (accumulate_font_info): Comment-out (unused).
17337 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17338 variables.
17339
17340 * character.h (string_escape_byte8): Declare.
17341
17342 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17343 unused vars.
17344 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17345 (Fmap_charset_chars): Doc fix.
17346
17347 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17348 (Fset_coding_system_priority, Fset_coding_system_priority)
17349 (Fdefine_coding_system_internal): Doc fix.
17350
173512008-02-01 Dave Love <fx@gnu.org>
17352
17353 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17354
173552008-02-01 Kenichi Handa <handa@m17n.org>
17356
17357 * character.c (string_escape_byte8): Make multibyte string with
17358 correct size.
17359
17360 * charset.c (Fmake_char): Delete unnecessary code.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * xfns.c (x_encode_text): Allocate coding.destination here, and
17365 call encode_coding_object with dst_object Qnil.
17366
17367 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17368 multibyte form correctly.
17369
17370 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17371 against Vfont_encoding_alist.
17372
17373 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17374 handling of charset list.
17375 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17376 (decode_coding_object): Move point to coding->dst_pos before
17377 calling post-read-conversion function.
17378 (encode_coding_object): Give correct arguments to
17379 pre-write-conversion. Ignore the return value of
17380 pre-write-conversion function. Pay attention to the case that
17381 pre-write-conversion changes the current buffer. If dst_object is
17382 Qt, even if coding->src_bytes is zero, allocate at least one byte
17383 to coding->destination.
17384
17385 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17386
17387 * charset.c (Fmake_char): Make it more backward compatible.
17388 (Fmap_charset_chars): Fix docstring.
17389
173902008-02-01 Dave Love <fx@gnu.org>
17391
17392 * coding.c: Doc fixes.
17393 (Fdefine_coding_system_alias): Use names, not symbols, in
17394 coding-system-alist.
17395
173962008-02-01 Kenichi Handa <handa@m17n.org>
17397
17398 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17399 of calling free_realized_face.
17400
174012008-02-01 Yong Lu <lyongu@asia-infonet.com>
17402
17403 * charset.c (read_hex): Don't treat SPC as a comment starter.
17404 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17405 (Fdecode_char): Fix typo.
17406
174072008-02-01 Kenichi Handa <handa@m17n.org>
17408
17409 * charset.h (struct charset): New member `code_space_mask'.
17410
17411 * coding.c (coding_set_source): Delete the local variable beg_byte.
17412 (encode_coding_charset, Fdefine_coding_system_internal):
17413 Delete the local variable charset.
17414 (Fdefine_coding_system_internal): Setup
17415 attrs[coding_attr_charset_valids] correctly.
17416
17417 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17418 member to check if CODE is valid or not.
17419 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17420 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17421 is within the range of charset->min_code and carset->max_code.
17422
174232008-02-01 Dave Love <fx@gnu.org>
17424
17425 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17426
17427 * dispextern.h (generate_ascii_font): Fix return type.
17428
17429 * xfaces.c (generate_ascii_font): Fix arg declaration.
17430
17431 * coding.c (coding_inherit_eol_type)
17432 (Fset_terminal_coding_system_internal)
17433 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17438 multiple charsets correctly.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * search.c (boyer_moore): Fix handling of multibyte character
17443 translation.
17444
17445 * xdisp.c (display_mode_element): When the variable `elt' is
17446 changed, update `this' and `lisp_string'.
17447
174482008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17451
17452 * callproc.c (Fcall_process): Be sure to give the current buffer
17453 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17454
17455 * charset.c (struct charset_map_entries): New struct.
17456 (load_charset_map): Rename from parse_charset_map. New args
17457 entries and n_entries. Change caller.
17458 (load_charset_map_from_file): Rename from load_charset_map.
17459 Change caller. New arg control_flag. Call load_charset_map at
17460 the tail.
17461 (load_charset_map_from_vector): New function.
17462 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17463 (encode_char): If the charset is compact, change a character index
17464 to a code point.
17465
17466 * coding.c (coding_alloc_by_making_gap): Check the case that the
17467 source and destination are the same correctly.
17468 (decode_coding_raw_text): Set coding->consumed_char and
17469 coding->consumed to 0.
17470 (produce_chars): If coding->chars_at_source is nonzero, update
17471 coding->consumed_char and coding->consumed before calling
17472 alloc_destination.
17473 (Fdefine_coding_system_alias): Register ALIAS in
17474 Vcoding_system_alist.
17475 (syms_of_coding): Define `no-conversion' coding system at the tail.
17476
17477 * fileio.c (Finsert_file_contents): Set coding_system instead of
17478 val. If the current buffer is multibyte, always call
17479 decode_coding_gap.
17480
17481 * xfaces.c (try_font_list): Give higher priority to fontset's
17482 family than face's family.
17483
174842008-02-01 Kenichi Handa <handa@m17n.org>
17485
17486 * callproc.c (Fcall_process): Be sure to give the current buffer
17487 to decode_coding_c_string.
17488
17489 * xfaces.c (try_font_list): Give a family specified in a fontset
17490 higher priority than a family specified in a face.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17495 Fix arguments to insert_from_buffer.
17496
17497 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17498
174992008-02-01 Kenichi Handa <handa@m17n.org>
17500
17501 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17502 (decode_coding_gap): Set coding->dst_multibyte correctly.
17503
175042008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17507 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17508 (encode_coding_utf_16): Substitute coding->default_char for
17509 non-Unicode characters.
17510 (decode_coding): Don't call record_insert here.
17511 (setup_coding_system): Initialize `surrogate' of
17512 coding->spec.utf_16 to 0.
17513 (EMIT_ONE_BYTE): Fix for multibyte case.
17514
17515 * insdel.c (insert_from_gap): Call record_insert.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * casefiddle.c (casify_region): Fix multibyte case.
17520
17521 * character.c (c_string_width): Add return type `int'.
17522 (char_string_with_unification): Delete arg ADVANCED.
17523
17524 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17525 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17526 (CHAR_STRING_ADVANCE): Make it do-while statement.
17527
17528 * chartab.c (sub_char_table_set_range): Optimize for the case
17529 DEPTH == 3. Add workaround code for a GCC optimization bug.
17530
17531 * charset.c (parse_charset_map): Remove an unused variable.
17532
17533 * coding.c: Delete unused variables.
17534
17535 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17536 earlier. If inserted is zero and the coding system doesn't
17537 require flushing, don't call decode_coding_gap.
17538
17539 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17540
175412008-02-01 Kenichi Handa <handa@m17n.org>
17542
17543 The following changes are for using Unicode as an internal
17544 character model, and use UTF-8 format for buffer/string
17545 representation.
17546
17547 * .gdbinit (xchartable): Adjust for the change of char table structure.
17548 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17549
17550 * Makefile.in (obj): Add character.o and chartab.o.
17551 (lisp, shortlisp): Remove utf-8.elc.
17552 (*.o): For many files, change dependency on charset.h to
17553 character.h, and add dependency on character.h.
17554 (character.o, chartab.o): New targets.
17555
17556 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17557 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17558 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17559 of "charset.h".
17560
17561 * dired.c, filelock.c: Include "character.h".
17562
17563 * alloc.c: Include "character.h" instead of "charset.h".
17564 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17565 (syms_of_alloc): Remove defsubr for Smake_char_table.
17566
17567 * buffer.c: Include "character.h" instead of "charset.h", don't
17568 include "coding.h".
17569 (Fset_buffer_multibyte): Adjust for UTF-8.
17570
17571 * buffer.h: EXFUN Fbuffer_live_p.
17572
17573 * callproc.c: Include "character.h" instead of "charset.h".
17574 (Fcall_process): Big change for the new code-conversion APIs.
17575
17576 * casetab.c: Include "character.h" instead of "charset.h".
17577 (set_canon, set_identity, shuffle): Adjust for the new
17578 map_char_table spec.
17579 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17580 accessing the char table structure.
17581
17582 * chartab.c: New file that implements char table.
17583
17584 * category.c: Include "character.h".
17585 (copy_category_entry): New function.
17586 (copy_category_table): Call map_char_table and copy_category_entry.
17587 (Fmake_category_table): Initialize all top-level slots.
17588 (char_category_set): New function.
17589 (modify_lower_category_set): Delete.
17590 (Fmodify_category_entry): Call char_table_ref_and_range.
17591
17592 * category.h (CATEGORY_SET): Just call char_category_set.
17593
17594 * ccl.c: Include "character.h".
17595 (Qccl, Qcclp): New variables.
17596 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17597 it's less than 256.
17598 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17599 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17600 and DST type.
17601 (ccl_driver): Change types of argument, adjust code accordingly.
17602 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17603 ccl_driver.
17604 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17605
17606 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17607 New members src_multibyte, dst_multibyte, consumed, and produced.
17608 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17609 (CODING_SPEC_CCL_PROGRAM): New macro.
17610 (ccl_driver): Update prototype.
17611 (Qccl, Qcclp, Fccl_program_p): Extern them.
17612 (CHECK_CCL_PROGRAM): New macro.
17613
17614 * character.c, character.h, chartab.c: New files.
17615
17616 * charset.c: Mostly re-written. Move character and multibyte sequence
17617 handling codes to character.c.
17618
17619 * charset.h: Mostly re-written. Move character and multibyte sequence
17620 handling codes to character.h.
17621
17622 * coding.c, coding.h: Mostly re-written.
17623
17624 * composite.c: Include "character.h" instead of "charset.h".
17625 (CHAR_WIDTH): Move to character.h.
17626 (HASH_KEY, HASH_VALUE): Delete.
17627
17628 * composite.h (enum composition_method): Change order of enumeration
17629 symbols.
17630
17631 * data.c: Include "character.h" instead of "charset.h".
17632 (Faref): Call CHAR_TABLE_REF for a char table.
17633 (Faset): Call CHAR_TABLE_SET for a char table.
17634
17635 * dispextern.h (free_realized_face, check_face_attribytes)
17636 (generate_ascii_font): Extern them.
17637 (free_realized_multibyte_face): Delete extern.
17638
17639 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17640 table structure.
17641
17642 * editfns.c: Include "character.h" instead of "charset.h".
17643 (Fchar_to_string): Always call CHAR_STRING.
17644
17645 * emacs.c (main): Call init_charset_once, init_charset,
17646 syms_of_chartab, and syms_of_character.
17647
17648 * fileio.c: Include "character.h" instead of "charset.h".
17649 (Finsert_file_contents): Big change for the new code-conversion API.
17650 (choose_write_coding_system, Fwrite_region): Likewise.
17651 (build_annotations_2): Delete.
17652 (e_write): Big change for the new code-conversion API.
17653
17654 * fns.c: Include "character.h" instead of "charset.h".
17655 (copy_sub_char_table): Move to chartab.c.
17656 (Fcopy_sequence): Call copy_char_table for a char table.
17657 (concat): Delete codes calling count_multibyte.
17658 (string_char_to_byte, string_byte_to_char): Adjust for the new
17659 multibyte form.
17660 (internal_equal): Adjust for the change of char table structure.
17661 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17662 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17663 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17664 (char_table_translate, optimize_sub_char_table)
17665 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17666 chartab.c.
17667 (char_table_ref_and_index): Delete.
17668 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17669 (Fmd5): Call preferred_coding_system instead of accessing
17670 Vcoding_category_list. Adjust for the new code-conversion API.
17671 (syms_of_fns): Move defsubr for char table related functions to
17672 chartab.c.
17673
17674 * fontset.c: Mostly re-written.
17675
17676 * fontset.h (struct font_info): Change type of the member encoding_type.
17677 (enum FONT_SPEC_INDEX): New enum.
17678 (fontset_font_pattern, fs_load_font): Update prototype.
17679 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17680
17681 * indent.c: Include "character.h" instead of "charset.h".
17682 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17683
17684 * insdel.c: Include "character.h" instead of "charset.h".
17685 (copy_text): Don't refer to Vnonascii_translation_table.
17686 (insert_from_gap): New function.
17687
17688 * keyboard.c: Include "character.h" instead of "charset.h".
17689 (command_loop_1): Never call direct_output_forward_char before
17690 a non-ASCII character.
17691 (read_char): If Vkeyboard_translate_table is a char table, always
17692 translate a character.
17693
17694 * keymap.c: Include "character.h".
17695 (store_in_keymap): Handle the case that IDX is a cons.
17696 (Fdefine_key): Handle the case that KEY is a cons and the car part
17697 is also a cons (range).
17698 (push_key_description): Adjust for the new character code.
17699 (describe_vector): Call describe_char_table for a char table.
17700 (describe_char_table): New function.
17701
17702 * keymap.h (describe_char_table): Extern it.
17703
17704 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17705 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17706 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17707 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17708 Delete.
17709 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17710 structure.
17711 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17712 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17713 (CHARTAB_SIZE_BITS_3): New macros.
17714 (chartab_size): Extern it.
17715 (struct Lisp_Char_Table): Re-design.
17716 (struct Lisp_Sub_Char_Table): New structure.
17717 (HASH_KEY, HASH_VALUE): Move from fns.c.
17718 (CHARACTERBITS): Define as 22.
17719 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17720 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17721 (GC_SUB_CHAR_TABLE_P): New macro.
17722 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17723 (code_convert_string_norecord): Deleted extern.
17724 (init_character_once, syms_of_character, init_charset)
17725 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17726
17727 * lread.c: Include "character.h".
17728 (read_multibyte): New arg NBYTES.
17729 (read_escape): Change the meaning of returned *BYTEREP.
17730 (to_multibyte): Delete.
17731 (read1): Adjust the handling of char table and string.
17732
17733 * print.c: Include "character.h" instead of "charset.h".
17734 (print_string): Convert 8-bit raw bytes to octal form by
17735 string_escape_byte8.
17736 (print_object): Adjust for the new multibyte form. Print 8-bit
17737 raw bytes always in octal form. Handle sub char table correctly.
17738
17739 * process.c: Include "character.h" instead of "charset.h".
17740 (read_process_output, send_process): Adjust for the new
17741 code-conversion API.
17742
17743 * puresize.h (BASE_PURESIZE): Increase.
17744
17745 * regex.c: Include "character.h" instead of "charset.h".
17746 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17747 (regex_compile): Accept a range whose starting and ending
17748 character have different leading bytes.
17749 (analyse_first): Adjust for the above change.
17750
17751 * search.c: Include "character.h" instead of "charset.h".
17752 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17753 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17754
17755 * syntax.c: Include "character.h" instead of "charset.h".
17756 (syntax_parent_lookup): Delete.
17757 (Fmodify_syntax_entry): Accept a cons as CHAR.
17758 (skip_chars): Adjust for the new multibyte form.
17759 (init_syntax_once): Call char_table_set_range instead of directly
17760 accessing the structure of a char table.
17761
17762 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17763 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17764 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17765 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17766
17767 * term.c: Include "buffer.h" and "character.h".
17768 (encode_terminal_code, write_glyphs): Adjust for the new
17769 code-conversion API.
17770 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17771
17772 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17773
17774 * xdisp.c: Include "character.h".
17775 (get_next_display_element): Adjust for the new multibyte form.
17776 (disp_char_vector): Adjust for the new char table structure.
17777 (decode_mode_spec_coding): Adjust for the new structure of
17778 coding system.
17779 (decode_mode_spec): Adjust for the new code-conversion API.
17780
17781 * xfaces.c: Include "character.h" instead of "charset.h".
17782 (load_face_font): Adjust for the change of choose_face_font and
17783 FS_LOAD_FONT.
17784 (generate_ascii_font): New function.
17785 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17786 (set_font_frame_param): Adjust for the change of choose_face_font.
17787 (free_realized_face): Make it public.
17788 (free_realized_faces_for_fontset): Rename from
17789 free_realized_multibyte_face. Free also faces realized for ASCII.
17790 (choose_face_font): Change arguments. Adjust for the change of
17791 fontset_font_pattern and FS_LOAD_FONT.
17792
17793 * xfns.c: Include "character.h".
17794 (x_encode_text): Adjust for the new code-conversion API.
17795
17796 * xselect.c: Don't include "charset.h".
17797 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17798
17799 * xterm.c: Include "character.h".
17800 (x_encode_char): New argument CHARSET. Change caller.
17801 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17802 Call ENCODE_CHAR instead of SPLIT_CHAR.
17803 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17804 CHAR_WIDTH instead of CHARSET_WIDTH.
17805 (XTread_socket): Adjust for the new code-conversion API.
17806 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17807 (x_load_font): Adjust for the change of struct font.
17808
178092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17810
17811 * xfaces.c (face_at_buffer_position): Remove unused vars.
17812
178132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17814
17815 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17816 Fix overflow checking.
17817
178182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17819
17820 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17821 Cancel previous change.
17822
178232008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17824
17825 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17826 ccl->eight_bit_control. Fix check for buffer overflow.
17827 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17828 (ccl_driver): Initialize extra_bytes to 0.
17829
178302008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17831
17832 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17833 return it ORed with ctrl_modifier.
17834
178352008-01-29 Miles Bader <miles@gnu.org>
17836
17837 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17838
178392008-01-28 Jason Rumney <jasonr@gnu.org>
17840
17841 * w32.c (stat): Don't double check for networked drive.
17842
178432008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17844
17845 * window.c (run_window_configuration_change_hook): New function.
17846 Code extracted from set_window_buffer. Set the selected frame.
17847 (set_window_buffer): Use it.
17848 * window.h (run_window_configuration_change_hook): Declare.
17849 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17850
17851 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17852
178532008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17854
17855 * Makefile.in: Remove references to unused macros.
17856
178572008-01-26 Eli Zaretskii <eliz@gnu.org>
17858
17859 * w32.c (g_b_init_get_sid_sub_authority)
17860 (g_b_init_get_sid_sub_authority_count): New static variables.
17861 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17862 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17863 (init_user_info): Use them to retrieve uid and gid.
17864 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17865 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17866 st_uid and st_gid of the file.
17867
178682008-01-26 Jason Rumney <jasonr@gnu.org>
17869
17870 * w32.c (logon_network_drive): New function.
17871 (stat): Use it.
17872
178732008-01-26 Chong Yidong <cyd@stupidchicken.com>
17874
17875 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17876 invisible text covered with an ellipsis.
17877
178782008-01-25 Richard Stallman <rms@gnu.org>
17879
17880 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17881 jump back to beginning. Move some other initializations after that.
17882 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17883 New variables.
17884 (syms_of_xdisp): Init them.
17885
17886 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17887
17888 * buffer.c (reset_buffer_local_variables):
17889 Implement `permanent-local-hook'.
17890 (Qpermanent_local_hook): New variable.
17891 (syms_of_buffer): Init and staticpro it.
17892
178932008-01-25 Michael Albinus <michael.albinus@gmx.de>
17894
17895 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17896
178972008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17898
17899 * fns.c (Fclrhash): Return TABLE.
17900
179012008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17902
17903 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17904 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17905 is set even without positional changes.
17906 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17907
17908 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17909
179102008-01-23 Jason Rumney <jasonr@gnu.org>
17911
17912 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17913
17914 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17915 the unicode range available in MULE by locale-coding-system.
17916 Improve dbcs lead byte detection. Set event timestamp and modifiers
17917 earlier.
17918
179192008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17920
17921 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17922 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17923 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17924 when used on child processes.
17925
179262008-01-21 Michael Albinus <michael.albinus@gmx.de>
17927
17928 * dbusbind.c (Fdbus_method_return_internal): Rename from
17929 Fdbus_method_return.
17930 (Fdbus_unregister_object): Move to dbus.el.
17931 (Fdbus_call_method, Fdbus_method_return_internal)
17932 (Fdbus_send_signal): Improve debug messages.
17933
179342008-01-20 Martin Rudalics <rudalics@gmx.at>
17935
17936 * undo.c (undo_inhibit_record_point): New variable.
17937 (syms_of_undo): Initialize it.
17938 (record_point): Don't record point when undo_inhibit_record_point
17939 is set.
17940
179412008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17942
17943 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17944
17945 * xdisp.c (Qauto_hscroll_mode): New var.
17946 (syms_of_xdisp): Initialize it.
17947 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17948 window's buffer.
17949 (hscroll_windows): Don't check automatic_hscrolling_p here.
17950
17951 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17952 vscroll if we're setting window-buffer to the value it already has.
17953
179542008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17955
17956 * m/intel386.h: Remove references to XENIX.
17957
179582008-01-17 Andreas Schwab <schwab@suse.de>
17959
17960 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17961 instead of HAVE_X86_64_LIB64_DIR.
17962 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17963
179642008-01-17 Glenn Morris <rgm@gnu.org>
17965
17966 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17967 to HAVE_X86_64_LIB64_DIR.
17968
179692008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17970
17971 * s/irix3-3.h:
17972 * s/irix4-0.h:
17973 * s/386-ix.h:
17974 * s/domain.h:
17975 * s/hpux9-x11r4.h:
17976 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17977
17978 * sysdep.c: Remove code containing references to symbols defined
17979 by unsupported systems.
17980
179812008-01-16 Glenn Morris <rgm@gnu.org>
17982
17983 * coding.c (select-safe-coding-system-function): Doc fix.
17984
179852008-01-15 Glenn Morris <rgm@gnu.org>
17986
17987 * config.in: Revert 2008-01-13 change: this is a generated file.
17988
179892008-01-13 Tom Tromey <tromey@redhat.com>
17990
17991 * lisp.h: Fix typo.
17992
179932008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17994
17995 * m/sequent-ptx.h:
17996 * m/sequent.h:
17997 * s/ptx.h:
17998 * s/ptx4-2.h:
17999 * s/ptx4.h: Remove files for systems no longer supported.
18000
18001 * callproc.c (Fcall_process): Fix previous change.
18002
180032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18004
18005 * unexsunos4.c: Remove file, system not supported anymore.
18006
18007 * m/mips.h:
18008 * m/intel386.h:
18009 * callproc.c:
18010 * config.in:
18011 * ecrt0.c:
18012 * emacs.c:
18013 * fileio.c:
18014 * frame.c:
18015 * getpagesize.h:
18016 * keyboard.c:
18017 * lread.c:
18018 * process.c:
18019 * puresize.h:
18020 * sysdep.c:
18021 * systty.h:
18022 * syswait.h:
18023 * unexec.c:
18024 * xdisp.c:
18025 * alloc.c: Remove code containing references to symbols defined by
18026 unsupported systems.
18027
180282008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18029
18030 * coding.c (detect_coding_mask): Fix previous change.
18031
180322008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18033
18034 * coding.c (detect_coding_iso2022): New arg
18035 latin_extra_code_state. Allow Latin extra codes only
18036 when *latin_extra_code_state is nonzero.
18037 (detect_coding_mask): If there is a NULL byte, detect the encoding
18038 as UTF-16 or binary. If Latin extra codes exist, detect the
18039 encoding as ISO-2022 only when there's no other proper encoding is
18040 found.
18041
180422008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18043
18044 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18045 #ifdef MAC_OS.
18046
180472008-01-08 Richard Stallman <rms@gnu.org>
18048
18049 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18050
180512008-01-06 Nick Roberts <nickrob@snap.net.nz>
18052
18053 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18054 menu bar in parentheses.
18055
180562008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18057
18058 * m/7300.h:
18059 * m/acorn.h:
18060 * m/alliant-2800.h:
18061 * m/alliant.h:
18062 * m/alliant1.h:
18063 * m/alliant4.h:
18064 * m/altos.h:
18065 * m/amdahl.h:
18066 * m/apollo.h:
18067 * m/att3b.h:
18068 * m/aviion-intel.h:
18069 * m/aviion.h:
18070 * m/celerity.h:
18071 * m/clipper.h:
18072 * m/cnvrgnt.h:
18073 * m/convex.h:
18074 * m/cydra5.h:
18075 * m/delta88k.h:
18076 * m/dpx2.h:
18077 * m/dual.h:
18078 * m/elxsi.h:
18079 * m/f301.h:
18080 * m/gould-np1.h:
18081 * m/gould.h:
18082 * m/i860.h:
18083 * m/ibmps2-aix.h:
18084 * m/ibmrt-aix.h:
18085 * m/ibmrt.h:
18086 * m/irist.h:
18087 * m/is386.h:
18088 * m/isi-ov.h:
18089 * m/mega68.h:
18090 * m/mg1.h:
18091 * m/news-r6.h:
18092 * m/news-risc.h:
18093 * m/news.h:
18094 * m/nh3000.h:
18095 * m/nh4000.h:
18096 * m/ns16000.h:
18097 * m/ns32000.h:
18098 * m/nu.h:
18099 * m/orion.h:
18100 * m/orion105.h:
18101 * m/paragon.h:
18102 * m/pfa50.h:
18103 * m/plexus.h:
18104 * m/pyramid.h:
18105 * m/pyrmips.h:
18106 * m/sh3el.h:
18107 * m/sps7.h:
18108 * m/sr2k.h:
18109 * m/stride.h:
18110 * m/sun1.h:
18111 * m/sun2.h:
18112 * m/sun3-68881.h:
18113 * m/sun3-fpa.h:
18114 * m/sun3-soft.h:
18115 * m/sun3.h:
18116 * m/sun386.h:
18117 * m/symmetry.h:
18118 * m/tad68k.h:
18119 * m/tahoe.h:
18120 * m/targon31.h:
18121 * m/tek4300.h:
18122 * m/tekxd88.h:
18123 * m/tower32.h:
18124 * m/tower32v3.h:
18125 * m/ustation.h:
18126 * m/wicat.h:
18127 * m/xps100.h:
18128 * s/cxux.h:
18129 * s/cxux7.h:
18130 * s/dgux.h:
18131 * s/dgux4.h:
18132 * s/dgux5-4-3.h:
18133 * s/dgux5-4r2.h:
18134 * s/esix.h:
18135 * s/esix5r4.h:
18136 * s/hiuxmpp.h:
18137 * s/hiuxwe2.h:
18138 * s/iris3-5.h:
18139 * s/iris3-6.h:
18140 * s/isc2-2.h:
18141 * s/isc3-0.h:
18142 * s/isc4-0.h:
18143 * s/isc4-1.h:
18144 * s/newsos5.h:
18145 * s/newsos6.h:
18146 * s/osf1.h:
18147 * s/osf5-0.h:
18148 * s/riscix1-1.h:
18149 * s/riscix12.h:
18150 * s/sco4.h:
18151 * s/sco5.h:
18152 * s/sunos4-0.h:
18153 * s/sunos4-1.h:
18154 * s/sunos413.h:
18155 * s/sunos4shr.h:
18156 * s/umax.h:
18157 * s/unipl5-2.h:
18158 * s/xenix.h:
18159 * cxux-crt0.s:
18160 * unexapollo.c:
18161 * unexconvex.c:
18162 * unexenix.c:
18163 * unexsni.c: Remove files for systems no longer supported.
18164
18165 * m/intel386.h: Remove references to unsupported systems.
18166
18167 * w32.c (get_emacs_configuration): Remove reference to i860.
18168
18169 * sysdep.c: Remove dead code.
18170
181712008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18172
18173 * s/rtu.h:
18174 * m/masscomp.h: Remove files. Platform is obsolete.
18175
181762008-01-04 Michael Albinus <michael.albinus@gmx.de>
18177
18178 * dbusbind.c (Fdbus_method_return): New function.
18179 (xd_read_message): Add the serial number to the event.
18180 (Fdbus_register_method): Activate the function.
18181
181822008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18183
18184 * keyboard.c (read_key_sequence): Fix typo.
18185
181862008-01-03 Michael Albinus <michael.albinus@gmx.de>
18187
18188 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18189 (xd_signature, xd_append_arg): Handle element type detection for
18190 empty arrays.
18191 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18192 SDATA () calls; this must be solved more general.
18193 (Fdbus_register_signal): Use SBYTES instead of strlen.
18194
181952008-01-03 Magnus Henoch <magnus@zemdatav>
18196
18197 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18198 unsigned int for byte values (necessary for big-endian platform).
18199 (Fdbus_call_method): Handle the case of no returned arguments.
18200
182012007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18202
18203 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18204
182052007-12-31 Magnus Henoch <mange@freemail.hu>
18206
18207 * dbusbind.c (xd_signature): Signature of variant is just "v".
18208
182092007-12-30 Michael Albinus <michael.albinus@gmx.de>
18210
18211 * dbusbind.c: Fix several errors and compiler warnings.
18212 Reported by Tom Tromey <tromey@redhat.com>.
18213 (XD_ERROR, XD_DEBUG_MESSAGE)
18214 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18215 (xd_append_arg): Part for basic D-Bus types rewritten.
18216 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18217 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18218 appropriate.
18219 (xd_read_message): Return Qnil. Don't signal an error; it is not
18220 useful during event reading.
18221 (Fdbus_register_signal): Signal an error if the check for
18222 FUNCTIONP fails.
18223 (Fdbus_register_method): New function. The implementation is not
18224 complete, the call of the function signals an error therefore.
18225 (Fdbus_unregister_object): New function, renamed from
18226 Fdbus_unregister_signal. The initial check signals an error, if
18227 the object is not well formed.
18228
182292007-12-30 Richard Stallman <rms@gnu.org>
18230
18231 * textprop.c (get_char_property_and_overlay):
18232 Signal error if POSITION is out of range in a buffer.
18233
182342007-12-29 Martin Rudalics <rudalics@gmx.at>
18235
18236 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18237 because the original parameters are in pure storage now.
18238
182392007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18240
18241 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18242
182432007-12-22 Eli Zaretskii <eliz@gnu.org>
18244
18245 * callint.c (syms_of_callint) <command-history>: Add reference to
18246 history-length in the doc string.
18247
182482007-12-17 Jason Rumney <jasonr@gnu.org>
18249
18250 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18251 before passing as wParam.
18252
182532007-12-22 Michael Albinus <michael.albinus@gmx.de>
18254
18255 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18256 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18257 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18258 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18259 as number.
18260 (Fdbus_call_method): Fix docstring.
18261
182622007-12-21 Michael Albinus <michael.albinus@gmx.de>
18263
18264 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18265 New macros.
18266 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18267 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18268 Simplify.
18269 (xd_signature): New function.
18270 (xd_append_arg): Compute also signatures. Major rewrite.
18271 (xd_retrieve_arg): Make debug messages friendly.
18272 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18273 Check for signatures of arguments.
18274
182752007-12-19 Michael Albinus <michael.albinus@gmx.de>
18276
18277 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18278 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18279 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18280 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18281 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18282 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18283 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18284 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18285 (xd_retrieve_value): Remove. Functionality included in ...
18286 (xd_append_arg): New function.
18287 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18288
182892007-12-16 Michael Albinus <michael.albinus@gmx.de>
18290
18291 * dbusbind.c (top): Include <stdio.h>.
18292 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18293 dbus_message_new_method_call and dbus_message_new_signal.
18294 (Fdbus_register_signal): Rename unique_name to uname.
18295 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18296 non-existing unique name. Fix typos in matching rule. Return an
18297 object which is useful in Fdbus_unregister_signal.
18298 (Fdbus_unregister_signal): Reimplementation, in order to remove
18299 only the corresponding entry.
18300 (Vdbus_registered_functions_table): Change the order of entries.
18301 Apply these changes in xd_read_message and Fdbus_register_signal.
18302
183032007-12-16 Andreas Schwab <schwab@suse.de>
18304
18305 * fileio.c (Finsert_file_contents): Fix overflow check to not
18306 depend on undefined integer overflow.
18307
183082007-12-14 Jason Rumney <jasonr@gnu.org>
18309
18310 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18311 for characters above 127.
18312
183132007-12-13 Jason Rumney <jasonr@gnu.org>
18314
18315 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18316 before dereferencing array.
18317 (lookup_vk_code): Remove zero comparison.
18318
183192007-12-14 Michael Albinus <michael.albinus@gmx.de>
18320
18321 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18322 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18323 Use `unsigned int' instead of `uint'.
18324 (xd_read_message, Fdbus_register_signal): Split expressions into
18325 multiple lines before operators "&&" and "||", according to the
18326 GNU Coding Standards.
18327
183282007-12-14 Eli Zaretskii <eliz@gnu.org>
18329
18330 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18331
183322007-12-12 Juri Linkov <juri@jurta.org>
18333
18334 * buffer.c (Frename_buffer): In interactive spec replace
18335 `read-buffer' with `read-string' that uses `buffer-name-history'
18336 as history, and the current buffer's name as default.
18337
183382007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18339
18340 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18341 manipulating the backtrace manually.
18342 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18343 (struct backtrace, backtrace_list): Remove.
18344 (command_loop_1): Remove dead var `no_direct'.
18345
18346 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18347 preserve non-built-in buffer-local variables.
18348 (Fkill_all_local_variables): Don't re-create&re-set permanent
18349 buffer-local variables.
18350
183512007-12-09 Juri Linkov <juri@jurta.org>
18352
18353 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18354 Lisp code that uses `read-buffer' with current buffer as default.
18355
183562007-12-08 Michael Albinus <michael.albinus@gmx.de>
18357
18358 * dbusbind.c (xd_read_message): Generate an event for every
18359 registered handler. There might be several handlers registered
18360 for the same signal.
18361 (Fdbus_register_signal): Don't overwrite a registration for the
18362 same signal. Add a new registration if handlers are different.
18363 (Vdbus_registered_functions_table): Rework doc string.
18364
183652007-12-07 Michael Albinus <michael.albinus@gmx.de>
18366
18367 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18368 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18369 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18370 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18371 Unify argument lists.
18372 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18373 arguments and hash table keys. Use unique name for service.
18374 (Fdbus_unregister_signal): Remove checks.
18375 (Vdbus_registered_functions_table): Fix doc string.
18376
183772007-12-05 Magnus Henoch <mange@freemail.hu>
18378
18379 * process.c (make_process): Initialize pty_flag to 0.
18380
183812007-12-05 Jason Rumney <jasonr@gnu.org>
18382
18383 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18384 specified XBMs.
18385
183862007-12-05 Richard Stallman <rms@gnu.org>
18387
18388 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18389
183902007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18391
18392 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18393 New variable.
18394 (mac_try_close_socket) [MAC_OSX]: New function.
18395 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18396 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18397
18398 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18399 Use mac_try_close_socket.
18400
184012007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18402
18403 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18404 reloc_base.
18405 (copy_dysymtab): Compute relocation base here.
18406 (rebase_reloc_address) [__ppc64__]: New function.
18407 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18408 changed.
18409
184102007-12-05 Jason Rumney <jasonr@gnu.org>
18411
18412 * w32proc.c (sys_spawnve): Quote args with wildcards.
18413
184142007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18415
18416 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18417 __objc_* sections.
18418 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18419
184202007-12-05 Michael Albinus <michael.albinus@gmx.de>
18421
18422 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18423 Move check for Vdbus_registered_functions_table to
18424 xd_read_queued_messages.
18425 (xd_read_queued_messages): Protect xd_read_message calls by
18426 internal_condition_case_1.
18427
184282007-12-04 Michael Albinus <michael.albinus@gmx.de>
18429
18430 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18431 Qdbus_system_bus and Qdbus_session_bus, respectively.
18432 (Vdbus_intern_symbols): Remove.
18433 (Vdbus_registered_functions_table): New hash table.
18434 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18435 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18436 Rewrite in order to manage registered functions by hash table
18437 Vdbus_registered_functions_table.
18438
184392007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18440
18441 * xterm.c: Update URL to Window Manager Specification in comment.
18442
184432007-12-02 Michael Albinus <michael.albinus@gmx.de>
18444
18445 * config.in (HAVE_DBUS): Add.
18446
18447 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18448 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18449 (obj): Add $(DBUS_OBJ).
18450 (LIBES): Add $(DBUS_LIBS).
18451 (dbusbind.o): New target.
18452
18453 * dbusbind.c: New file.
18454
18455 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18456
18457 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18458 (Qdbus_event): New Lisp symbol.
18459 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18460 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18461 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18462
18463 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18464
184652007-12-01 Richard Stallman <rms@gnu.org>
18466
18467 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18468
184692007-11-30 Jason Rumney <jasonr@gnu.org>
18470
18471 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18472 (w32con_reset_terminal_modes): Clear screen buffer.
18473 (w32_face_attributes): Don't use color indexes that are out of range.
18474 Only reverse the default colors.
18475
18476 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18477 WINDOWSNT.
18478
18479 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18480
184812007-11-29 Jason Rumney <jasonr@gnu.org>
18482
18483 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18484 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18485 if the terminal colors are initialized.
18486 (unspecified_fg, unspecified_bg): Remove unused declarations.
18487
184882007-11-29 Andreas Schwab <schwab@suse.de>
18489
18490 * keyboard.c (apply_modifiers): Fix typo.
18491
184922007-11-29 Richard Stallman <rms@gnu.org>
18493
18494 * keymap.c (Fcurrent_local_map): Doc fix.
18495
184962007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18497
18498 * s/gnu-kfreebsd.h: New file.
18499
185002007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18501
18502 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18503 Don't cast redundantly.
18504
18505 * keyboard.c (KEY_TO_CHAR): New macro.
18506 (parse_modifiers, apply_modifiers): Accept integer arguments.
18507 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18508 for chars and symbol keys.
18509 After doing such remapping, apply function-key-map again.
18510
185112007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18512
18513 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18514 compiled anymore.
18515
185162007-11-26 Andreas Schwab <schwab@suse.de>
18517
18518 * process.c (list_processes_1): Fix indentation level of the
18519 command column.
18520
185212007-11-23 Andreas Schwab <schwab@suse.de>
18522
18523 * editfns.c (Fformat): Handle %c specially since it requires the
18524 argument to be of type int.
18525
185262007-11-23 Markus Triska <markus.triska@gmx.at>
18527
18528 * emacs.c (main): Call init_editfns before init_process, since
18529 init_process sets Vprocess_connection_type depending on OS release.
18530
185312007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18532
18533 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18534 (find_symbol_value): Use do_symval_forwarding.
18535
18536 * data.c (set_internal): Set the value in the `cons-cell' (for
18537 Buffer_Local_values) not only for frame-local variables.
18538
185392007-11-22 Andreas Schwab <schwab@suse.de>
18540
18541 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18542 values to sprintf.
18543 * keymap.c (Fsingle_key_description): Likewise.
18544 * print.c (print_object): Likewise.
18545
185462007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18547
18548 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18549 file for image is nil.
18550
185512007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18552
18553 * term.c: Include stdarg.h.
18554 (fatal): Implement using varargs.
18555 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18556
185572007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18558
18559 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18560 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18561 Update call to buffer_slot_type_mismatch.
18562 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18563 (buffer_slot_type_mismatch): Update.
18564 * buffer.c (buffer_local_types): Remove.
18565 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18566 (defvar_per_buffer): Set the type in the buffer_objfwd.
18567
185682007-11-21 Jason Rumney <jasonr@gnu.org>
18569
18570 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18571 CreateFileMapping returns NULL on failure.
18572
185732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18574
18575 * search.c (Fset_match_data): Remove the `evaporate' feature.
18576 (unwind_set_match_data): Don't use the `evaporate' feature.
18577
185782007-11-21 Jason Rumney <jasonr@gnu.org>
18579
18580 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18581
18582 * w32console.c (w32con_write_glyphs): Remove unused variables.
18583
185842007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18585
18586 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18587
18588 * s/darwin.h (MULTI_KBOARD): Remove.
18589
18590 * macfns.c (x_create_tip_frame, Fx_create_frame)
18591 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18592
185932007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18594
18595 * buffer.c (Fbuffer_local_value): Remove redundant test.
18596 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18597 than in `current-buffer' to match the comment.
18598 Do the swap using swap_in_global_binding.
18599
18600 * data.c (store_symval_forwarding, set_internal):
18601 * eval.c (specbind): Remove dead code.
18602
18603 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18604 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18605 Since we do not want to see internal Lisp_*fwd objects here.
18606
186072007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18608
18609 * sysdep.c (init_system_name): Use getaddrinfo if available.
18610
18611 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18612 (x_scroll_bar_note_movement): start, end, with, height in struct
18613 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18614
186152007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18616
18617 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18618
186192007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18620
18621 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18622 This undoes Richard's change of 14-Oct-2002.
18623
18624 * alloc.c (allocate_other_vector):
18625 * lisp.h (allocate_other_vector): Remove.
18626
18627 * window.c (struct save_window_data): Move non-lisp data to the end
18628 and make it `int' rather than Lisp_Object.
18629 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18630 Done wrap/unwrap integer values.
18631 (Fset_window_configuration, compare_window_configurations):
18632 Update use of fields to their new types.
18633
18634 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18635 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18636 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18637 (SET_SCROLL_BAR_X_WINDOW): Remove.
18638 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18639 Access the new x_window field directly.
18640 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18641 Don't wrap/unwrap integers into Lisp_Objects.
18642 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18643 (x_scroll_bar_report_motion):
18644 Don't wrap/unwrap integers into Lisp_Objects.
18645 (x_term_init): Use SDATA.
18646 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18647 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18648 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18649 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18650 * xfns.c (x_set_background_color):
18651 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18652 Access the new x_window field directly.
18653
18654 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18655 (allocate_pseudovector): Make non-static.
18656
18657 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18658 (allocate_pseudovector): Declare.
18659 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18660
186612007-11-15 Andreas Schwab <schwab@suse.de>
18662
18663 * editfns.c (Fformat): Correctly format EMACS_INT values.
18664 Also take precision into account when formatting an integer.
18665
18666 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18667
186682007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18669
18670 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18671 (syms_of_keyboard): Defsubr it.
18672
18673 * data.c (swap_in_global_binding): Fix longstanding bug where
18674 store_symval_forwarding was not called with the right second argument,
18675 thus causing objfwd-ing from being dropped.
18676
186772007-11-14 Juanma Barranquero <lekktu@gmail.com>
18678
18679 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18680 (Fx_display_pixel_height, Fx_display_planes)
18681 (Fx_display_color_cells, Fx_server_max_request_size)
18682 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18683 (Fx_display_visual_class, Fx_display_save_under):
18684 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18685 (Fx_display_pixel_height, Fx_display_planes)
18686 (Fx_display_color_cells, Fx_server_max_request_size)
18687 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18688 (Fx_display_mm_height, Fx_display_mm_width)
18689 (Fx_display_backing_store, Fx_display_visual_class)
18690 (Fw32_select_font, Fx_display_save_under):
18691 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18692 (Fx_display_pixel_height, Fx_display_planes)
18693 (Fx_display_color_cells, Fx_server_max_request_size)
18694 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18695 (Fx_display_save_under): Fix typos in docstrings.
18696
186972007-11-14 Juanma Barranquero <lekktu@gmail.com>
18698
18699 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18700 corresponding to deleted entries; they are an implementation detail.
18701 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18702 Remove variables.
18703 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18704 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18705 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18706 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18707 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18708 (Fw32_define_rgb_color, Fw32_load_color_file)
18709 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18710 Fix typos in docstrings.
18711 (Fx_server_version): Reflow docstring.
18712 (Fw32_shell_execute): Doc fixes.
18713
187142007-11-13 Juanma Barranquero <lekktu@gmail.com>
18715
18716 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18717 if w32_parse_hot_key returned nil.
18718
187192007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18720
18721 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18722
187232007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18724
aac0c6e3
MR
18725 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18726
18727 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18728
18729 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18730 Remove W32_SCROLL_BAR_CLICK_EVENT.
18731
18732 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18733 Add MULTIMEDIA_KEY_EVENT.
18734
18735 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18736 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18737 (make_lispy_event) [WINDOWSNT]: Use it to translate
18738 MULTIMEDIA_KEY_EVENT.
18739
18740 * w32term.h (WM_APPCOMMAND): Define if not already.
18741 (GET_APPCOMMAND_LPARAM): Likewise.
18742
18743 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18744 WM_APPCOMMAND.
18745
18746 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18747 (syms_of_w32fns): Export and initialize it.
18748 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18749
187502007-11-09 Chong Yidong <cyd@stupidchicken.com>
18751
18752 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18753 twice.
18754
18755 * xdisp.c (handle_face_prop): Fix last change.
18756
187572007-11-09 Richard Stallman <rms@gnu.org>
18758
18759 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18760 not just for after-strings and before-strings.
18761 Call face_for_overlay_string and pass the overlay to it.
18762 (handle_display_prop): Determine whether property came from an overlay.
18763 Pass OVERLAY arg to handle_single_display_spec.
18764 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18765 (load_overlay_strings): Fill in it->string_overlays.
18766 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18767
18768 * xfaces.c (face_for_overlay_string): Function renamed from
18769 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18770
18771 * dispextern.h (struct it): New elt string_overlays.
18772 New elt from_overlay, also in stack.
18773 Rearrange a few elements.
18774 (face_for_overlay_string): Decl renamed from
18775 face_at_buffer_position_no_overlays, and add argument.
18776
187772007-11-09 Richard Stallman <rms@gnu.org>
18778
18779 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18780 to get the base face for an overlay string.
18781
18782 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18783
18784 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18785
18786 * xdisp.c (handle_stop): Move some code out of loop.
18787
187882007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18789
18790 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18791 Fix conversion from Lisp object to ATSUFontID.
18792
187932007-11-09 Jason Rumney <jasonr@gnu.org>
18794
18795 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18796
187972007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18798
18799 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18800 Don't assume regions are aligned to page boundary.
18801 (print_load_command_name): Add LC_UUID if defined.
18802
188032007-11-09 Richard Stallman <rms@gnu.org>
18804
18805 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18806
188072007-11-07 Jason Rumney <jasonr@gnu.org>
18808
18809 * s/windows95.h: Remove.
18810
188112007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18812
18813 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18814 abort with a message on unhandled store_type values.
18815
188162007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18817
18818 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18819 Remove HAVE_X11R5 and HAVE_X11R4.
18820
188212007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18822
18823 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18824
188252007-11-01 Johan Bockgård <bojohan@gnu.org>
18826
18827 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18828 Don't set s->stippled_p here, since it has already been set by
18829 x_set_glyph_string_gc from x_draw_glyph_string.
18830
188312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18832
18833 * sunfns.c: Remove file.
18834
18835 * m/sun386.h:
18836 * m/sun2.h:
18837 * m/sparc.h: Remove Sun windows code.
18838
188392007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18840
18841 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18842 (init_keyboard): Set current_kboard's window-system to nil.
18843 (tty_read_avail_input): Typo.
18844 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18845
188462007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18847
18848 * s/usg5-4.h:
18849 * s/usg5-3.h:
18850 * s/ptx.h:
18851 * m/is386.h:
18852 * m/ibmps2-aix.h:
18853 * Makefile.in: Remove all mentions of X10.
18854
18855 * dispnew.c (syms_of_display): Don't mention version 10.
18856
188572007-10-28 Juanma Barranquero <lekktu@gmail.com>
18858
18859 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18860 ($(BLD)/abbrev.$(O)): Remove.
18861
188622007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18863
18864 Rewrite abbrev.c in Elisp.
18865 * image.c (Qcount): Don't declare as extern.
18866 (syms_of_image): Initialize and staticpro `Qcount'.
18867 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18868 * emacs.c (main): Don't call syms_of_abbrev.
18869 * Makefile.in (obj): Remove abbrev.o.
18870 (abbrev.o): Remove.
18871 * abbrev.c: Remove.
18872
188732007-10-26 Martin Rudalics <rudalics@gmx.at>
18874
18875 * window.c (window_min_size_2): Don't count header-line.
18876
188772007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18878
18879 * frame.h (struct frame): Move all bit fields after the first bit
18880 field to take advantage of the available space. Group all the
18881 chars together to reduce wasted space due to padding.
18882
188832007-10-26 Juanma Barranquero <lekktu@gmail.com>
18884
18885 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18886
18887 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18888 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18889 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18890 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18891 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18892 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18893 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18894 (last_marked, mark_object_loop_halt): Make static.
18895
18896 * frame.c (syms_of_frame) <delete-frame-functions>:
18897 Fix typo in docstring.
18898
188992007-10-25 Juanma Barranquero <lekktu@gmail.com>
18900
18901 * w32.c (init_environment): Fix tiny memory leak.
18902 (w32_get_resource): Remove unused variable `ok'.
18903
189042007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18905
18906 Make `window-system' into a keyboard-local variable (rather than
18907 frame-local as done originally by multi-tty).
18908
18909 * keyboard.h (struct kboard): Add Vwindow_system.
18910 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18911 (mark_kboards): Mark Vwindow_system.
18912
18913 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18914 (init_display): Don't set the obsolete `window-system' frame-param.
18915
18916 * xterm.c (x_term_init):
18917 * w32term.c (w32_create_terminal):
18918 * term.c (init_tty): Set Vwindow_system.
18919 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18920 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18921
18922 * xfns.c (Fx_create_frame, x_create_tip_frame):
18923 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18924 * macfns.c (Fx_create_frame):
18925 Don't set the obsolete `window-system' frame-param.
18926
18927 * frame.h (Qwindow_system): Remove.
18928 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18929 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18930
189312007-10-24 Richard Stallman <rms@gnu.org>
18932
18933 * frame.c (x_figure_window_size): For fullscreen case,
18934 set USPosition | PPosition without clobbering rest of window_prompting.
18935
18936 * keyboard.c (Fcurrent_idle_time): Doc fix.
18937
18938 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18939
189402007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18941
18942 * process.c (unwind_request_sigio): Only define if __ultrix__.
18943
18944 * callproc.c (child_setup): Remove spurious *.
18945
18946 * lisp.h (Fget_text_property): Declare.
18947 (have_menus_p): Declare it here rather than in sys-dep header files.
18948 * macterm.h (have_menus_p):
18949 * msdos.h (have_menus_p):
18950 * xterm.h (have_menus_p): Remove.
18951
18952 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18953 (Fmake_variable_frame_local): Just check the variable's const-ness
18954 rather than checking nil or t.
18955
189562007-10-22 Jason Rumney <jasonr@gnu.org>
18957
18958 * w32fns.c: Include math.h.
18959 (w32_abort): Declaration moved to nt/config.nt.
18960
18961 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18962 (abort): Redefinition moved to nt/config.nt.
18963
18964 * m/windowsnt.h: Remove.
18965
189662007-10-22 Juanma Barranquero <lekktu@gmail.com>
18967
18968 * emacs.c (Fdump_emacs): Fix typo in message.
18969 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18970 <installation-directory>: Reflow docstring.
18971
189722007-10-22 Juri Linkov <juri@jurta.org>
18973
18974 * minibuf.c: Allow minibuffer default to be a list of default values.
18975 With empty input use the first element of this list as returned default.
18976 (string_to_object)
18977 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18978 (read_minibuf): If defalt is cons, set histstring to its car.
18979 (Fread_string): If default_value is cons, set val to its car.
18980 (Fread_buffer): If def is cons, use its car.
18981 (Fcompleting_read): If defalt is cons, set val to its car.
18982
189832007-10-21 Michael Albinus <michael.albinus@gmx.de>
18984
18985 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18986
189872007-10-20 Juanma Barranquero <lekktu@gmail.com>
18988
18989 * doc.c (Fdocumentation): Check for advice in all cases.
18990
189912007-10-19 Chong Yidong <cyd@stupidchicken.com>
18992
18993 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18994
189952007-10-19 Richard Stallman <rms@gnu.org>
18996
18997 * doc.c (Fdocumentation): Check for and handle an advised function.
18998
189992007-10-19 Juanma Barranquero <lekktu@gmail.com>
19000
19001 * process.c (Fset_process_filter): Doc fix.
19002
190032007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19004
19005 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19006 which caused key-translation-map to applied repeatedly (thus breaking
19007 double-mode).
19008
190092007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19010
19011 * xselect.c (x_own_selection, x_handle_selection_clear)
19012 (x_clear_frame_selections):
19013 * w32menu.c (list_of_panes, list_of_items):
19014 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19015 * textprop.c (validate_plist, interval_has_all_properties)
19016 (interval_has_some_properties, interval_has_some_properties_list)
19017 (add_properties, text_property_list):
19018 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19019 * minibuf.c (Fassoc_string):
19020 * macselect.c (x_own_selection, x_clear_frame_selections)
19021 (Fx_disown_selection_internal):
19022 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19023 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19024
190252007-10-17 Chong Yidong <cyd@stupidchicken.com>
19026
19027 * process.c: Link to libs for calling res_init() if available.
19028 (Fmake_network_process): Call res_init() before getaddrinfo or
19029 gethostbyname, if possible.
19030
190312007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19032
19033 * lread.c (read1): Set pvectype for char_tables.
19034
19035 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19036 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19037 Add type checks.
19038 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19039
19040 * alloc.c (free_misc): Use XMISCTYPE.
19041 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19042
190432007-10-17 Glenn Morris <rgm@gnu.org>
19044
19045 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19046 (syms_of_minibuf): Add Qcompletion_ignore_case.
19047 * dired.c (Qcompletion_ignore_case): Change to external.
19048 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19049 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19050 (Fread_file_name): Use it rather than intern'ing.
19051
19052 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19053 (Fread_coding_system): Ignore case of user input.
19054
190552007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19056
19057 * xdisp.c (handle_display_prop): Ignore display specs after
19058 replacing one when string text is being replaced.
19059 (handle_single_display_spec): Pretend as if characters with display
19060 property haven't been consumed only when buffer text is being replaced.
19061
190622007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19063
19064 * xfns.c (Fx_create_frame, Fx_display_list):
19065 * window.c (window_fixed_size_p, enlarge_window)
19066 (shrink_window_lowest_first):
19067 * macterm.c (init_font_name_table):
19068 * macfns.c (Fx_create_frame, Fx_display_list):
19069 * lread.c (close_load_descs):
19070 * keyboard.c (read_char_x_menu_prompt):
19071 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19072 * coding.c (code_convert_region_unwind): Test the type of an object
19073 rather than just !NILP before extracting data from it.
19074
19075 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19076
19077 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19078 (XMISCANY): New macro.
19079 (XMISCTYPE): Use it.
19080 (struct Lisp_Misc_Any): New type.
19081 (union Lisp_Misc): Use it.
19082 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19083 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19084 (find_symbol_value, set_internal, default_value, Fset_default)
19085 (Fmake_variable_buffer_local, Fmake_local_variable)
19086 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19087 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19088 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19089 * alloc.c (allocate_buffer): Set the size and tag.
19090 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19091 Use XMISCANY.
19092 (die): Follow the GNU convention for error messages.
19093 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19094 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19095 tag any more.
19096 (set_buffer_internal_1):
19097 * frame.c (store_frame_param):
19098 * eval.c (specbind):
19099 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19100
19101 * doc.c (Fsnarf_documentation): Simplify.
19102
191032007-10-14 Juanma Barranquero <lekktu@gmail.com>
19104
19105 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19106 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19107
191082007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19109
19110 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19111
191122007-10-14 Juanma Barranquero <lekktu@gmail.com>
19113
19114 * eval.c (do_autoload): Don't save autoloads.
19115
19116 * data.c (Ffset): Save autoload of the function being set.
19117
191182007-10-07 John Paul Wallington <jpw@pobox.com>
19119
19120 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19121 parameter before setting up faces.
19122
191232007-10-13 Eli Zaretskii <eliz@gnu.org>
19124
19125 * ccl.c (Fregister_code_conversion_map):
19126 * keyboard.c (append_tool_bar_item): Reformat last change.
19127
19128 * lisp.h (eabs): Rename from `abs'. All callers changed.
19129
191302007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19131
19132 * buffer.c (add_overlay_mod_hooklist):
19133 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19134 * fontset.c (make_fontset):
19135 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19136 (append_tool_bar_item):
19137 * macmenu.c (grow_menu_items):
19138 * w32menu.c (grow_menu_items):
19139 * xmenu.c (grow_menu_items): Use larger_vector.
19140
191412007-10-13 Eli Zaretskii <eliz@gnu.org>
19142
19143 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19144 selected frame'' on MSDOS).
19145
191462007-10-12 Martin Rudalics <rudalics@gmx.at>
19147
19148 * frame.c (Qexplicit_name): New variable.
19149 (x_report_frame_params): Report it in parameter alist.
19150 (syms_of_frame): Intern and staticpro it.
19151
191522007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19153
19154 * macfns.c (x_create_tip_frame): Set terminal for frame.
19155
191562007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19157
19158 * frame.c (Qenvironment): Remove.
19159 (syms_of_frame) <Qenvironment>: Don't initialize.
19160 (Fdelete_frame): Don't treat the `environment' param specially.
19161 * frame.h (Qenvironment): Don't declare.
19162 * callproc.c (set_initial_environment): Don't set unused frame param.
19163
19164 * frame.c (Fframe_with_environment): Remove.
19165 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19166
19167 * lisp.h (Fframe_with_environment): Don't declare.
19168
191692007-10-10 Juanma Barranquero <lekktu@gmail.com>
19170
19171 * indent.c (indent_tabs_mode, last_known_column)
19172 (last_known_column_modified): Make static.
19173 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19174
191752007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19176
19177 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19178
191792007-10-09 Jason Rumney <jasonr@gnu.org>
19180
19181 * w32term.c (x_set_window_size): Disable code that attempts to tell
19182 Lisp code about a size change before it actually happens.
19183
191842007-10-09 Richard Stallman <rms@gnu.org>
19185
19186 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19187 return HANDLED_RETURN.
19188
191892007-10-08 Martin Rudalics <rudalics@gmx.at>
19190
19191 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19192 when there's an unread command event.
19193
19194 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19195 window autoselection act appropriately when leaving selected frame.
19196 (syms_of_frame): Initialize focus_follows_mouse.
19197 * frame.h (focus_follows_mouse): Extern it.
19198 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19199 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19200 * msdos.c (dos_rawgetc): Likewise.
19201 * w32term.c (w32_read_socket): Likewise.
19202 * xterm.c (handle_one_xevent): Likewise.
19203 * xdisp.c (syms_of_xdisp): In doc-string of
19204 mouse-autoselect-window mention focus-follows-mouse.
19205
192062007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19207
19208 * macterm.c (mac_load_query_font): Fix missing return value.
19209 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19210 Add BLOCK_INPUT.
19211
192122007-10-08 Richard Stallman <rms@gnu.org>
19213
19214 * xdisp.c (get_window_cursor_type): Implement documented behavior
19215 for cursor-in-non-selected-windows = t.
19216
192172007-10-08 Jason Rumney <jasonr@gnu.org>
19218
19219 * w32.c (w32_get_resource): Always close registry keys.
19220
192212007-10-08 Jason Rumney <jasonr@gnu.org>
19222
19223 * makefile.w32-in (LIBS): Add COMCTL32.
19224
19225 * w32fns.c (globals_of_w32fns): Init common controls.
19226
192272007-10-08 Richard Stallman <rms@gnu.org>
19228
19229 * image.c (our_memory_buffer): Rename from omfib_buffer.
19230
192312007-10-08 Richard Stallman <rms@gnu.org>
19232
19233 * buffer.c (Foverlays_at): Doc fix.
19234
192352007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19236
19237 * fns.c (Fplist_put): Preserve uneven tail data.
19238
192392007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19240
19241 * termhooks.h (enum event_kind): Remove trailing comma.
19242
19243 * frame.h (enum): Remove trailing comma.
19244
192452007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19246
19247 * w32proc.c (delete_child): Don't terminate threads of zombies.
19248
192492007-10-08 Martin Rudalics <rudalics@gmx.at>
19250
19251 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19252
19253 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19254 last-repeatable-command.
19255 (init_kboard): Initialize Vlast_repeatable_command.
19256 (command_loop_1): Set it to real_this_command unless that was
19257 bound to an input event.
19258 (mark_kboards): Mark it.
19259
192602007-10-08 Richard Stallman <rms@gnu.org>
19261
19262 * eval.c (condition-case): Doc fix.
19263
192642007-10-08 Masatake YAMATO <jet@gyve.org>
19265
19266 * xfaces.c (tty_supports_face_attributes_p): Fix code
19267 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19268 was copied and not edited.
19269
192702007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19271
19272 Add new `input-decode-map' keymap and use it for terminal
19273 escape sequences.
19274 * keyboard.h (struct kboard): Add Vinput_decode_map.
19275 Remove Vlocal_key_translation_map.
19276 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19277 (init_kboard): Init input-decode-map.
19278 Replace local-key-translation-map back with key-translation-map.
19279 (syms_of_keyboard): Declare input-decode-map.
19280 Remove local-key-translation-map. Update docstrings.
19281 (mark_kboards): Mark Vinput_decode_map.
19282 Don't mark Vlocal_key_translation_map.
19283 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19284 Replace local-key-translation-map back with key-translation-map.
19285 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19286 Bind in input-decode-map rather than function-key-map.
19287
19288 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19289 This was made redundant by the previous introduction of XSETPVECTYPE.
19290
192912007-10-09 Richard Stallman <rms@gnu.org>
19292
19293 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19294
192952007-09-29 Richard Stallman <rms@gnu.org>
19296
19297 * eval.c (internal_condition_case_2, internal_condition_case_1)
19298 (internal_condition_case): Reenable abort if x_catching_errors ()
19299 to see if that really happens and why.
19300
193012007-10-06 Andreas Schwab <schwab@suse.de>
19302
19303 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19304
193052007-10-04 Juanma Barranquero <lekktu@gmail.com>
19306
19307 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19308
193092007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19310
19311 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19312
193132007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19314
19315 * window.h (struct window):
19316 * window.c (struct save_window_data, struct saved_window):
19317 * termhooks.h (struct terminal):
19318 * process.h (struct Lisp_Process):
19319 * frame.h (struct frame):
19320 * buffer.h (struct buffer):
19321 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19322 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19323 The size field of (pseudo)vectors is now unsigned.
19324 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19325
19326 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19327 Turn `count' into an integer.
19328
19329 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19330 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19331 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19332 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19333 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19334
19335 * alloc.c (allocate_pseudovector): New fun.
19336 (ALLOCATE_PSEUDOVECTOR): New macro.
19337 (allocate_window, allocate_terminal, allocate_frame)
19338 (allocate_process): Use it.
19339 (mark_vectorlike): New function.
19340 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19341 (mark_terminals): Use it.
19342 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19343 (Fmake_byte_code): Use XSETPVECTYPE.
19344
19345 * frame.c (Fframe_parameters): Minor simplification.
19346
19347 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19348
19349 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19350
19351 * buffer.c (Fget_buffer_create, init_buffer_once):
19352 * lread.c (defsubr):
19353 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19354
19355 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19356 defined differently in the m/*.h files.
19357 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19358 (XSETPVECTYPE): New macro.
19359 (XSETPSEUDOVECTOR): Use it.
19360
19361 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19362 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19363
19364 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19365 * lread.c (defvar_per_buffer):
19366 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19367
19368 * window.c (candidate_window_p): Only consider as visible frames that
19369 are on the same terminal.
19370
19371 * m/ibms390x.h (MARKBIT): Remove unused macro.
19372
193732007-10-01 Juanma Barranquero <lekktu@gmail.com>
19374
19375 * lread.c (Fload): Fix typo in docstring.
19376
193772007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19378
19379 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19380 of a non-zero value can't yield zero.
19381
193822007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19383
19384 * term.c (term_clear_mouse_face, term_mouse_highlight)
19385 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19386
19387 * print.c (safe_debug_print): Use XHASH.
19388
19389 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19390 Lisp elements such as tags.
19391 (XHASH): New macro.
19392 (EQ): Use it.
19393 (SREF, SSET, STRING_COPYIN): Use SDATA.
19394 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19395
19396 * alloc.c (mark_terminal): Remove left-over declaration.
19397 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19398 (allocate_vectorlike): Remove type argument. Adjust callers.
19399 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19400 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19401
19402 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19403 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19404 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19405 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19406 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19407 Use them.
19408
19409 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19410 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19411 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19412
194132007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19414
19415 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19416 loaded by default.
19417
194182007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19419
19420 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19421 on this tty.
19422 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19423
19424 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19425 Update all users.
19426 (handle_one_term_event): Use Gpm_DrawPointer.
19427 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19428 Signal errors instead of returning nil. Always return nil.
19429 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19430 Make it a noop if gpm-mouse was not activated.
19431 (syms_of_term): Update names.
19432
194332007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19434
19435 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19436 (init_sys_modes): Check that gpm_tty is the current tty.
19437
19438 * alloc.c (allocate_terminal): Set the vector size to only count the
19439 lisp fields. Initialize those to nil.
19440 (mark_object): Don't treat terminals specially.
19441 (mark_terminal): Remove.
19442 (mark_terminals): Use mark_object instead.
19443
19444 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19445 the GC to the beginning.
19446
19447 * indent.h:
19448 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19449
19450 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19451
194522007-09-25 Jason Rumney <jasonr@gnu.org>
19453
19454 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19455
19456 * w32console.c (create_w32cons_output): Remove.
19457
19458 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19459
19460 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19461 (reset_sys_modes): Use reset_terminal_modes_hook.
19462
194632007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19464
19465 * eval.c (do_autoload): Don't output any message.
19466
194672007-09-24 Juri Linkov <juri@jurta.org>
19468
19469 * emacs.c (standard_args): Change priority of "--no-splash"
19470 from 40 to 3. Add "--no-desktop" with the same priority.
19471
194722007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19473
19474 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19475 and optimize the case where they are all 1.
19476
194772007-09-23 Johannes Weiner <hannes@saeurebad.de>
19478
19479 * lisp.h (abs): Define if not defined.
19480 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19481 Don't define `abs', since it's defined in lisp.h.
19482
194832007-09-22 Eli Zaretskii <eliz@gnu.org>
19484
19485 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19486 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19487 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19488 (init_tty): Use DEV_TTY instead of "/dev/tty".
19489 [WINDOWSNT]: No need to protect from NAME arg being null.
19490
194912007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19492
19493 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19494 up the tty state.
19495
194962007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19497
19498 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19499 (gpm_tty): Change its type.
19500 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19501 (gpm_tty): Change its type and initialize it.
19502 (Fterm_open_connection): Check the frame is indeed a tty.
19503 Use the new gpm_tty.
19504 (Fterm_close_connection): Use the new gpm_tty.
19505 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19506 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19507
195082007-09-21 Juanma Barranquero <lekktu@gmail.com>
19509
19510 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19511 underline_color, to draw strike-through.
19512
195132007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19514
19515 * lisp.h (allocate_terminal): Declare.
19516
19517 * window.c (candidate_window_p): Consider frames that are being placed
19518 by the user as somewhere between visible and iconified.
19519 (window_loop): Prefer windows on the current frame.
19520 (Fselect_window): Move the use of select-frame to the beginning so we
19521 can just delegate all the work (it'll call us back anyway).
19522
19523 * frame.c (Qdisplay_environment_variable):
19524 * frame.h (Qdisplay_environment_variable): Delete.
19525
19526 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19527 of the first arg, since that value may be a union.
19528
19529 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19530 parameter rather than Qdisplay_environment_variable. If all else
19531 fails, look for DISPLAY in initial-environment.
19532
195332007-09-21 Glenn Morris <rgm@gnu.org>
19534
19535 * Makefile.in (emacstool): Remove target.
19536 (lisp, shortlisp): Remove termdev.elc.
19537
195382007-09-21 Markus Triska <markus.triska@gmx.at>
19539
19540 * xterm.c (x_delete_display): Compile session management conditionally.
19541
195422007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19543
19544 * callproc.c (getenv_internal_1): New function.
19545 (getenv_internal): Use it.
19546 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19547
19548 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19549 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19550 (Fset_terminal_parameter): Work with dead terminals as well.
19551 (Fmodify_terminal_parameters): Remove.
19552
19553 * terminal.c (get_terminal): Handle terminals.
19554 Make sure the terminal returned is live.
19555 (create_terminal): Use allocate_terminal.
19556 (mark_terminals): Move to alloc.c.
19557 (delete_terminal): Use terminal->name as liveness status.
19558 NULL out fields after freeing their contents.
19559 Don't deallocate the object.
19560 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19561 rather than an int.
19562 (Fterminal_live_p): Accept non-integer arguments.
19563 (Fterminal_list): Return terminal objects rather than an ints.
19564
19565 * alloc.c (enum mem_type): New member for `terminal' objects.
19566 (allocate_terminal): New function.
19567 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19568 Handle terminals.
19569 (mark_terminal): New fun.
19570 (mark_terminals): Move from terminal.c.
19571
19572 * term.c (get_tty_terminal): Don't treat output_initial specially.
19573 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19574 (delete_tty): Use terminal->name as liveness status.
19575
19576 * termhooks.h (struct terminal): Make it into a pseudovector.
19577 Remove `deleted' replaced by checking `name's nullness.
19578
19579 * print.c (print_object): Handle terminals.
19580
19581 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19582 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19583
19584 * frame.c (make_terminal_frame):
19585 * keyboard.c (tty_read_avail_input):
19586 * w32term.c (x_delete_terminal):
19587 * xfns.c (Fx_create_frame, x_create_tip_frame):
19588 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19589
195902007-09-20 Glenn Morris <rgm@gnu.org>
19591
19592 * process.c (Fmake_network_process): Doc fix.
19593
195942007-09-19 Jason Rumney <jasonr@gnu.org>
19595
19596 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19597
195982007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19599
19600 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19601 Fix a C warning regarding variable constness.
19602
19603 * xterm.c (handle_one_xevent): Fix a C warning.
19604
196052007-09-18 Jason Rumney <jasonr@gnu.org>
19606
19607 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19608
196092007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19610
19611 * gtkutil.c (gdpy_def): New variable.
19612 (xg_initialize): Initialize gdpy_def.
19613 (xg_display_close): If no other display exists, set gdpy_def to a
19614 new connection.
19615
196162007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19617
19618 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19619 when we have no file name for the icon.
19620 (xg_tool_bar_expose_callback): Remove.
19621 (xg_create_tool_bar): Don't connect expose signal to
19622 xg_tool_bar_expose_callback.
19623 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19624
196252007-09-16 Andreas Schwab <schwab@suse.de>
19626
19627 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19628 values instead of zapping them.
19629
196302007-09-14 Glenn Morris <rgm@gnu.org>
19631
19632 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19633 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19634 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19635 scope and rename to omfib_buffer for clarity.
19636 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19637
196382007-09-14 Kenichi Handa <handa@m17n.org>
19639
19640 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19641
196422007-09-13 Jason Rumney <jasonr@gnu.org>
19643
19644 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19645
19646 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19647
19648 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19649 (mac_term_init): Call here instead, passing rif.
19650
196512007-09-13 Glenn Morris <rgm@gnu.org>
19652
19653 * s/hpux.h: No longer define `static' as nothing.
19654
196552007-09-13 Johan Bockgård <bojohan@gnu.org>
19656
19657 * callint.c (Fcall_interactively): Remove unused var `fun'.
19658
196592007-09-12 Romain Francoise <romain@orebokech.com>
19660
19661 * window.c (prefer_window_split_horizontally, display_buffer):
19662 Revert 2007-09-08 change.
19663
196642007-09-12 Glenn Morris <rgm@gnu.org>
19665
19666 * alloca.c: Remove file.
19667 * Makefile.in (alloca): Do not undef.
19668 (allocaobj, alloca.o): Remove.
19669 (otherobj): Remove allocaobj.
19670 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19671 * regex.c (C_ALLOCA): Remove all references and code that was only
19672 used when this was defined.
19673 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19674 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19675 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19676
19677 * Makefile.in (SOURCES, unlock, relock): Delete.
19678
19679 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19680 (menu_grab_callback): All uses changed.
19681
19682 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19683 (x_reply_selection_request): All uses changed.
19684
196852007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19686
19687 * lread.c (load_warn_old_style_backquotes): Change message to look
19688 better when it appears in the middle of byte-compiler messages.
19689
196902007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19691
19692 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19693
19694 * xterm.c (x_create_terminal): Add comment.
19695
19696 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19697
196982007-09-10 Richard Stallman <rms@gnu.org>
19699
19700 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19701
197022007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19703
19704 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19705 (DEFUN): Document `intspec', use it instead of `prompt'.
19706
19707 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19708
19709 * data.c (Finteractive_form): If the interactive specification starts
19710 with a `(', use it as a Lisp form.
19711
19712 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19713 name and file modes.
19714
19715 * callint.c (Fcall_interactively): Comment fixes.
19716
197172007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19718
19719 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19720 and compiled functions.
19721
197222007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19723
19724 * window.c (prefer_window_split_horizontally): New variable.
19725 (display_buffer): Consider splitting window horizontally depending
19726 on prefer_window_split_horizontally.
19727
197282007-09-08 Eli Zaretskii <eliz@gnu.org>
19729
19730 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19731
197322007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19733
19734 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19735
19736 * frame.c (x_set_frame_parameters): Check number is positive before
19737 using XFASTINT.
19738
19739 * window.c (freeze_window_start): Don't presume selected_window holds
19740 a window object.
19741 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19742
197432007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19744
19745 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19746
197472007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19748
19749 * window.c (Vsplit_window_preferred_function): New var.
19750 (Fdisplay_buffer): Use it.
19751 (syms_of_window): Export, and initialize it.
19752
197532007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19754
19755 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19756
197572007-09-06 Glenn Morris <rgm@gnu.org>
19758
19759 * gtkutil.c (menu_grab_callback) <cnt>:
19760 * xselect.c (x_reply_selection_request) <cnt>: Move static
19761 variable to file scope.
19762
197632007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19764
19765 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19766 consistent values of selected_frame and selected_window.
19767
197682007-09-04 Jason Rumney <jasonr@gnu.org>
19769
19770 * w32console.c (initialize_w32_display): Zero unused hooks.
19771
197722007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19773
19774 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19775 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19776
197772007-09-04 Jason Rumney <jasonr@gnu.org>
19778
19779 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19780 in w32console.c. Set up input. Remove XXX comments that have been
19781 confirmed as correct.
19782
19783 * s/ms-w32.h (MULTI_KBOARD): Define.
19784
19785 * w32console.c (one_and_only_w32cons): Remove.
19786 (initialize_w32_display): Take terminal argument.
19787
19788 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19789 initialize_w32_display.
19790 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19791
19792 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19793
19794 * keyboard.c (discard_mouse_events): Discard it.
19795 (make_lispy_event): Translate it to a lisp event.
19796 (lispy_wheel_names): Add wheel-left and right events.
19797 (syms_of_keyboard): Enlarge wheel_syms.
19798
19799 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19800 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19801
19802 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19803
19804 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19805 from WM_MOUSEHWHEEL.
19806 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19807
19808 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19809 terminal.
19810
19811 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19812 keyboard for the terminal.
19813
198142007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19815
19816 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19817 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19818 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19819 and resume-tty-function to resume-tty-hook.
19820 (Fsuspend_tty, Fresume_tty): Use new names.
19821
198222007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19823
19824 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19825 if it starts with "n:".
19826
198272007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19828
19829 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19830
198312007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19832
19833 * frame.h:
19834 * frame.c (Qterm_environment_variable): Remove.
19835 (syms_of_frame): Don't init and staticpro it.
19836
19837 * callproc.c (getenv_internal): Remove special case for $TERM.
19838
19839 * callproc.c (Vinitial_environment): New variable.
19840 (set_initial_environment): Initialize it.
19841 (syms_of_callproc): Declare it.
19842 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19843 TERM under which a process runs is never related to the TERM in which
19844 Emacs is running.
19845
198462007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19847
19848 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19849 * s/darwin.h: ... do it here.
19850
198512007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19852
19853 * lisp.h (set_initial_environment): Rename from set_global_environment.
19854
19855 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19856 removed by mistake on the multi-tty branch.
19857
19858 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19859 (Fmodify_frame_parameters): Return a value.
19860
19861 * image.c (png_load): Comment-out var only used in commented-out code.
19862
19863 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19864 before passing it to mark_object.
19865
19866 * xfaces.c (internal_resolve_face_name): Return a value.
19867 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19868
19869 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19870 (x_icon): Comment-out var only used in commented-out code.
19871
198722007-08-29 Romain Francoise <romain@orebokech.com>
19873
19874 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19875 QUIT hasn't been provided.
19876
198772007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19878
19879 * callproc.c (child_setup, getenv_internal): Use the
19880 display-environment-variable and term-environment-variable frame params.
19881 (set_initial_environment): Initialise Vprocess_environment.
19882
19883 * config.in: Disable multi-keyboard support on a mac.
19884
19885 * frame.c (Qterm_environment_variable)
19886 (Qdisplay_environment_variable): New variables.
19887 (syms_of_frame): Intern and staticpro them.
19888 (Fmake_terminal_frame): Disable output method test.
19889
19890 * frame.h: Declare them here.
19891
19892 * macfns.c (x_set_mouse_color): Get rif from the frame.
19893 (x_set_tool_bar_lines): Don't use updating_frame.
19894 (mac_window): Add 2 new parameters for consistency with other systems.
19895 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19896 frame parameters following what is done in X11 and w32. Don't use
19897 FRAME_MAC_DISPLAY_INFO.
19898 (Fx_open_connection, start_hourglass): Remove window-system check.
19899 (x_create_tip_frame): Get the keyboard from the terminal.
19900
19901 * macmenu.c: Reorder includes.
19902 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19903
19904 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19905 terminal parameter.
19906 (x_clear_frame): Add a frame parameter.
19907 (note_mouse_movement): Get rif from the frame.
19908 (mac_term_init): Initialize the terminal.
19909 (mac_initialize): Make static and move terminal initialization ...
19910 (mac_create_terminal): ... to this new function.
19911
19912 * macterm.h (struct mac_display_info): Add terminal.
19913 (mac_initialize): Delete declaration.
19914
19915 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19916
19917 * sysdep.c: Comment out text after #endif.
19918
19919 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19920 is defined. Better initialize ttys in windows. Use terminal
19921 specific mouse_position_hook.
19922
19923 * termhooks.h (union display_info): Add mac_display_info.
19924
19925 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19926 Set the default minibuffer frame, window_system and the rest of the
19927 frame parameters following what is done in X11.
19928
19929 * w32term.c (w32_initialize): Make static.
19930
19931 * xselect.c (x_handle_selection_clear): Only access
19932 terminal->kboard when MULTI_KBOARD is defined.
19933
19934 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19935 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19936
199372007-08-29 Jason Rumney <jasonr@gnu.org>
19938
19939 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19940 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19941
19942 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19943 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19944
19945 * keyboard.c (restore_kboard_configuration): Only define when
19946 MULTI_KBOARD defined.
19947
19948 * makefile.w32-in: Update dependancies from Makefile.in.
19949 (OBJ1): Add terminal.$(O)
19950
19951 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19952 Don't define function body.
19953 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19954
19955 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19956
19957 * w32.c (request_sigio, unrequest_sigio): Remove.
19958
19959 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19960 (w32con_clear_frame, w32con_clear_end_of_line)
19961 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19962 (w32con_delete_glyphs, w32con_set_terminal_window)
19963 (scroll_line, w32_sys_ring_bell): Add frame arg.
19964 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19965 Add terminal arg.
19966 (PICK_FRAME): Remove.
19967 (w32con_write_glyphs): Use frame specific terminal coding.
19968 (one_and_only_w32cons): New global variable.
19969 (initialize_w32_display): Use it for storing hooks.
19970 (create_w32cons_output): New function.
19971
19972 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19973 arg a frame.
19974
19975 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19976 Set window_system.
19977 (x_set_tool_bar_lines): Don't use updating_frame.
19978 (Fx_create_frame): Set terminal and ref count.
19979 (Fx_open_connection): Remove window-system check.
19980
19981 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19982
19983 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19984 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19985 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19986 Add frame arg.
19987 (x_delete_terminal, w32_create_terminal): New functions.
19988 (w32_term_init): Create a terminal.
19989 (w32_initialize): Move terminal specific initialization to
19990 w32_create_terminal.
19991
19992 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19993 (w32_clear_rect, w32_clear_area): Use background from frame.
19994 (w32_display_info): Add terminal.
19995 (w32_sys_ring_bell, x_delete_display): Declare here.
19996
19997 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19998
19999 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20000
200012007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20002
20003 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20004 Fix get_named_tty calls for the controlling tty.
20005
200062007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20007
20008 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20009
200102007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20011
20012 * term.c (tty_insert_glyphs): Add missing first parameter.
20013
200142007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20015
20016 * buffer.c (Fbuffer_list, Fbury_buffer):
20017 Take frame->buried_buffer_list into account.
20018
20019 * cm.c (current_tty): New variable, for cmputc().
20020 (cmputc): Use it.
20021 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20022 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20023 (cmgoto): Add tty parameter. Pass it on to calccost().
20024 Use emacs_tputs() instead of tputs().
20025
20026 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20027 tputs().
20028 (current_tty): New variable, for cmputc().
20029 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20030
20031 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20032 (internal_condition_case, internal_condition_case_1)
20033 (internal_condition_case_2): Don't abort when x_catching_errors.
20034
20035 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20036 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20037 prevent crashes caused by bogus longjmps in read_char.
20038
20039 * keymap.h (Fset_keymap_parent): Add EXFUN.
20040
20041 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20042 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20043 Remove redundant definition.
20044
20045 * macfns.c (x_set_mouse_color, x_make_gc):
20046 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20047
20048 * w32term.c (x_free_frame_resources):
20049 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20050 (w32_initialize): Use the accessor macros for terminal characteristics.
20051
20052 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20053 Use the accessor macros for terminal characteristics.
20054 * msdos.c (internal_terminal_init): Use the accessor macros for
20055 terminal characteristics.
20056 (ScreenVisualBell, internal_terminal_init):
20057 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20058
20059 * termopts.h (no_redraw_on_reenter): Declare.
20060
20061 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20062 (mark_terminals, mark_ttys): Declare.
20063 (Fgarbage_collect): Call them.
20064 (mark_object): Mark buried_buffer_list.
20065
20066 * prefix-args.c: Include stdlib.h for exit.
20067
20068 * syssignal.h: Add comment.
20069
20070 * indent.c: Include stdio.h.
20071
20072 * window.h (Vinitial_window_system): Declare.
20073 (Vwindow_system): Delete declaration.
20074
20075 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20076
20077 * image.c (lookup_image): Don't initialize `c' until the xasserts
20078 have been run.
20079
20080 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20081 FRAME_FOREGROUND_PIXEL.
20082
20083 * print.c (print_preprocess): Don't lose print_depth levels while
20084 iterating.
20085
20086 * widget.c (update_from_various_frame_slots):
20087 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20088
20089 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20090 frames.
20091 (window_internal_height): Remove bogus make_number call.
20092 (init_window_once): Call make_terminal_frame with two zero parameters.
20093
20094 * fileio.c (Fread_file_name): Update comment.
20095
20096 * callint.c (Fcall_interactively):
20097 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20098 Make sure it is correctly unwound.
20099
20100 * xsmfns.c (x_session_close): New function.
20101
20102 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20103 Delete declarations.
20104
20105 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20106 (x_output): Remove background_pixel and foreground_pixel fields.
20107 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20108 (x_delete_device, x_session_close): Declare.
20109
20110 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20111 (read_filtered_event): Call `read_char' with a local
20112 `wrong_kboard_jmpbuf'.
20113
20114 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20115 Don't call single_kboard_state. Use FRAME_RIF.
20116
20117 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20118 systems.
20119
20120 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20121 (Fframe_with_environment, Fset_input_meta_mode)
20122 (Fset_quit_char): EXFUN.
20123 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20124 (init_sys_modes, reset_sys_modes): Update prototypes.
20125 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20126
20127 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20128 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20129 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20130 Delete declarations.
20131 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20132 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20133 New declarations.
20134
20135 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20136 already does that during init_display(). Call syms_of_keymap
20137 before syms_of_keyboard. Call `syms_of_terminal'.
20138 Call set_initial_environment, not set_process_environment.
20139 (shut_down_emacs): Call reset_all_sys_modes() instead of
20140 reset_sys_modes().
20141
20142 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20143 (internal_resolve_face_name, resolve_face_name_error): New functions.
20144 (resolve_face_name): Protect against loops and errors thrown by Fget.
20145 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20146 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20147
20148 * scroll.c: Replace CURTTY() with local variables throughout the
20149 file (where applicable).
20150 (calculate_scrolling, calculate_direct_scrolling)
20151 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20152 characteristics.
20153
20154 * keymap.c (Vfunction_key_map): Remove.
20155 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20156 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20157 (Vkey_translation_map): Remove.
20158 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20159 (Fdescribe_buffer_bindings)
20160 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20161 Update for terminal-local key-translation-map.
20162
20163 * Makefile.in (callproc.o): Update dependencies.
20164 (lisp, shortlisp): Add termdev.elc.
20165 (obj): Add terminal.o.
20166 (terminal.o): Add dependencies.
20167 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20168 (data.o, fns.o): Add termhooks.h dependency.
20169 (SOME_MACHINE_LISP): Add dnd.elc.
20170 (minibuf.o): Fix typo.
20171 Update dependencies.
20172
20173 * data.c (do_symval_forwarding, store_symval_forwarding)
20174 (find_symbol_value): Use the selected frame's keyboard, not
20175 current_kboard.
20176
20177 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20178 Vwindow_system.
20179
20180 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20181 Fmenu_bar_open.
20182 (syms_of_xmenu): Update defsubr.
20183 (mouse_position_for_popup, Fx_popup_menu)
20184 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20185 (set_frame_menubar, free_frame_menubar)
b97439ce 20186 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20187 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20188 an X frame.
20189
20190 * xselect.c (x_own_selection): Abort if not an X frame.
20191 (some_frame_on_display): Check if it is an X frame.
20192 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20193
20194 * coding.c: Include frame.h and termhooks.h.
20195 (terminal_coding, keyboard_coding): Delete.
20196 (Fset_terminal_coding_system_internal)
20197 (Fset_keyboard_coding_system_internal)
20198 (Fkeyboard_coding_system)
20199 (Fterminal_coding_system): Add a terminal parameter.
20200 Get terminal_coding from the terminal.
20201 (init_coding_once): Don't call setup_coding_system here.
20202
20203 * dispextern.h (set_scroll_region, turn_off_insert)
20204 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20205 (tty_clear_end_of_line, tty_setup_colors)
20206 (delete_tty, updating_frame)
20207 (produce_special_glyphs, produce_glyphs, write_glyphs)
20208 (insert_glyphs): Remove.
20209 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20210 (tty_turn_off_highlight, get_tty_size): Add declaration.
20211 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20212
20213 * frame.h (enum output_method): Add output_initial.
20214 (struct x_output): Delete.
20215 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20216 Access foreground_pixel and background_pixel directly from the frame.
20217 (tty_display): Delete.
20218 (struct frame): Add buried_buffer_list, foreground_pixel,
20219 background_pixel and terminal. Delete kboard.
20220 (union output_data): Add tty.
20221 (FRAME_KBOARD): Get the kboard from the terminal.
20222 (FRAME_INITIAL_P): New macro.
20223 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20224 (Qterm_environment_variable, Qdisplay_environment_variable)
20225 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20226 New declarations.
20227
20228 * termchar.h (tty_output, tty_display_info): New structures.
20229 (tty_list): Declare.
20230 (FRAME_TTY, CURTTY): New macros.
20231 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20232 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20233 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20234 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20235
20236 * callproc.c: Include frame.h and termhooks.h, for terminal
20237 parameters.
20238 (add_env): New function.
20239 (child_setup): Use it.
20240 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20241 (getenv_internal): Fix get_terminal_param call.
20242 (Fgetenv_internal, egetenv): Update doc.
20243 (syms_of_callproc): Initialize Vprocess_environment to nil.
20244 Register and initialize them. Remove obsolete defvars. Update doc
20245 strings.
20246 (child_setup): Handle Vlocal_environment_variables.
20247 (getenv_internal): Add terminal parameter.
20248 Handle Vlocal_environment_variables.
20249 (Fgetenv_internal): Add terminal parameter.
20250 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20251 environment in a frame (not terminal) parameter. Update doc strings.
20252 (set_initial_environment): Rename from set_global_environment.
20253 Store Emacs environment in initial frame parameter.
20254
20255 * xdisp.c (redisplay_internal): Update references to
20256 `previous_terminal_frame'.
20257 (display_mode_line, Fformat_mode_line): Replace calls to
20258 `push_frame_kboard' with `push_kboard'.
20259 (get_glyph_string_clip_rects): Add extra parentheses and
20260 braces to prevent compiler warnings.
20261 (calc_pixel_width_or_height): Add xassert to check that the
20262 frame is alive. Don't call `lookup_image' on a termcap frame.
20263 (message2_nolog, message3_nolog, redisplay_internal)
20264 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20265 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20266 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20267 (Fx_display_pixel_width, Fx_display_pixel_height)
20268 (Fx_display_planes, Fx_display_color_cells)
20269 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20270 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20271 (Fx_display_backing_store, Fx_display_visual_class)
20272 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20273 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20274
20275 * xfns.c (x_set_foreground_color x_set_background_color)
20276 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20277 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20278 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20279 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20280 terminal that is being deleted.
20281 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20282 frame parameter, and make sure it overrides any user-supplied setting.
20283 (Fx_close_connection, Fx_synchronize): Unify argument names with
20284 the rest of the DEFUNs.
20285
20286 * dispnew.c (Fsend_string_to_terminal): Update call to
20287 `get_tty_terminal'.
20288 (Fredraw_frame, Fsend_string_to_terminal)
20289 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20290 FRAME_TERMCAP_P and FRAME_TTY.
20291 (window_change_signal): Don't believe width/height values that are
20292 impossibly small.
20293 (Vinitial_window_system): Rename from Vwindow_system.
20294 (termscript, Wcm, rif): Delete.
20295
20296 * termhooks.h (struct terminal): New struct containing the
20297 previously global text display hooks and new members NAME,
20298 DELETED and PARAM_ALIST.
20299 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20300 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20301 (FRAME_RIF): New macros.
20302 (get_terminal_param, get_device): New declarations.
20303 (termscript): Delete declaration.
20304
20305 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20306 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20307 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20308 FRAME_FOREGROUND_PIXEL.
20309 (x_fully_uncatch_errors): Disable definition.
20310 (x_scroll_bar_expose): Fix reference to foreground pixel.
20311 (XTread_socket): Disable loop on all X displays.
20312 (x_delete_terminal): Don't set terminal->deleted and let
20313 delete_terminal delete the frames on the terminal.
20314 (x_delete_display): Doc update to reflect changes in
20315 delete_terminal.
20316 (x_display_info) <terminal>: Move member earlier in the struct.
20317 (deleting_tty): Remove old variable.
20318 (Fsuspend_tty): Call clear_tty_hooks.
20319 (Fresume_tty, init_tty): Call set_tty_hooks.
20320 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20321 errors on X frames.
20322 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20323 (handle_one_xevent): Initialize `f' to NULL.
20324 (x_delete_terminal, x_create_terminal): New functions.
20325 (XTset_terminal_modes, XTreset_terminal_modes)
20326 (XTread_socket, x_connection_closed, x_term_init)
20327 (x_term_init, x_delete_display): Add terminal parameter.
20328 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20329 X connections.
20330
20331 * frame.c: Include termchar.h.
20332 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20333 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20334 (Qdisplay_environment_variable): New vars.
20335 (Fframep): Deal with output_initial.
20336 (Fframe-live-p): Doc fix.
20337 (Fwindow-system): New function.
20338 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20339 (make_terminal_frame): Don't create frames on a terminal that is
20340 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20341 (store_frame_param): Check for found_for_frame before calling XFRAME.
20342 (Fmake_terminal_frame): Handle NULL tty names correctly.
20343 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20344 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20345 frames to refer to a deleted frame in their 'environment parameter.
20346 (Fframe_with_environment): New function.
20347 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20348 (get_future_frame_param): New function.
20349 (Fmake_terminal_frame): Use it.
20350 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20351
20352 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20353 * sysdep.c (reset_sys_modes): Update for renames.
20354
20355 * keyboard.c (tty_read_avail_input): New function.
20356 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20357 (syms_of_keyboard): Defsubr them.
20358 (Fset_input_meta_mode, Fset_quit_char): New functions.
20359 (Fset_input_mode): Split to above functions.
20360 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20361 parameter. Use it in call to `read_char'.
20362 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20363 Set wrong_kboard_jmpbuf correctly in recursive calls.
20364 Use current_kboard to access Vkeyboard_translate_table.
20365 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20366 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20367 Update longjmp invocations. Remember the original current_kboard,
20368 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20369 changes it. Comment out unnecessary calls to
20370 `record_single_kboard_state' and `any_kboard_state'.
20371 Update recursive calls.
20372 (wrong_kboard_jmpbuf): Remove global variable.
20373 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20374 Handle deleted interrupted_kboards correctly; that is a legal
20375 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20376 and read_char calls. Abort if interrupted_kboard died in read_char.
20377 (any_kboard_state, single_kboard_state)
20378 (push_frame_kboard): Remove function.
20379 (pop_kboard): Switch out of single_kboard mode if the kboard has
20380 been deleted. Remove unused variable. Help debugging by not
20381 changing current_kboard unnecessarily. Set current_kboard to the
20382 kboard of the selected frame when the stored kboard object has
20383 been deleted before pop_kboard.
20384 (temporarily_switch_to_single_kboard): Change first parameter to a
20385 frame pointer. Throw an error when caller wants to change kboards
20386 while in single_kboard mode. Don't push_kboard if we weren't in
20387 single kboard state. Don't pop_kboard if we popped into any
20388 kboard state.
20389 (restore_kboard_configuration): Abort if pop_kboard changed the
20390 kboard in single_kboard mode. Call pop_kboard only after setting
20391 up single_kboard mode.
20392 (Frecursive_edit): Switch to single_kboard mode only in nested
20393 command loops.
20394 (cmd_error, command_loop, command_loop_1, timer_check):
20395 Comment out unnecessary call to `any_kboard_state' and
20396 `record_single_kboard_state'.
20397 (delete_kboard): Exit single_kboard mode if we have just deleted
20398 that kboard. Use FRAME_KBOARD.
20399 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20400 `fatal_error_signal'.
20401 (record_single_kboard_state): Don't push_kboard if we weren't in
20402 single kboard state. Don't pop_kboard if we popped into any
20403 kboard state.
20404 (push_frame_kboard): Rename to push_kboard.
20405 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20406 (read_avail_input): Read input from all terminals.
20407 (mark_kboards): Also mark Vkeyboard_translate_table.
20408 (kbd_buffer_store_event_hold): Simplify condition.
20409 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20410 (Vkeyboard_translate_table): Move to struct kboard.
20411 (init_kboard): Initialize Vkeyboard_translate_table.
20412 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20413 Vkeyboard_translate_table. Update doc strings. Update docs of
20414 local-function-key-map and function-key-map.
20415
20416 * terminal.c: New file.
20417
20418 * term.c: Include errno.h.
20419 (Vring_bell_function, device_list, initial_device)
20420 (next_device_id, ring_bell, update_begin, update_end)
20421 (set_terminal_window, cursor_to, raw_cursor_to)
20422 (clear_to_end, clear_frame, clear_end_of_line)
20423 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20424 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20425 (syms_of_term): Move their initialization to terminal.c.
20426 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20427 (Ftty_display_color_cells)
20428 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20429 (clear_tty_hooks, set_tty_hooks)
20430 (init_tty, maybe_fatal): New functions.
20431 (Ftty_type): Return nil if terminal is not on a tty instead of
20432 throwing an error. Doc update.
20433 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20434 Doc update. Initialize new subrs and variables.
20435 (delete_tty): Use terminal->deleted.
20436 (tty_set_terminal_modes): Rename from set_terminal_modes.
20437 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20438 (set_scroll_region): Rename to `tty_set_scroll_region'.
20439 (turn_on_insert): Rename to `tty_turn_on_insert'.
20440 (turn_off_insert): Rename to `tty_turn_off_insert'.
20441 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20442 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20443 (toggle_highligh): Rename to `tty_toggle_highlight'.
20444 (background_highlight): Rename to `tty_background_highlight'.
20445 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20446 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20447 (tty_set_scroll_region, tty_background_highlight)
20448 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20449 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20450 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20451 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20452 Add static modifier.
20453 (tty_reset_terminal_modes, tty_set_terminal_window)
20454 (tty_set_scroll_region, tty_background_highlight)
20455 (tty_highlight_if_desired, tty_cursor_to)
20456 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20457 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20458 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20459 renames.
20460
204612007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20462
20463 * keyboard.c: Qrtl is new.
20464 (parse_tool_bar_item): Handle :rtl keyword.
20465 (syms_of_keyboard): Intern :rtl keyword.
20466
20467 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20468
20469 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20470 so no Lisp code is executed.
20471 (file_for_image, find_rtl_image): New functions.
20472 (xg_get_image_for_pixmap): Use file_for_image.
20473 (update_frame_tool_bar): If direction is RTL, use RTL image if
20474 defined. Use Gtk stock images if defined.
20475
204762007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20477
20478 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20479 for nonexistent or zero-width glyph in composition glyph.
20480
204812007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20482
20483 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20484
20485 * xdisp.c (Finvisible_p): New function.
20486 (syms_of_xdisp): defsubr it.
20487
204882007-08-24 Juanma Barranquero <lekktu@gmail.com>
20489
20490 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20491 Doc fixes.
20492
204932007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20494
20495 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20496
204972007-08-24 Martin Rudalics <rudalics@gmx.at>
20498
20499 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20500 whether decoding has modified buffer contents.
20501
205022007-08-24 Jason Rumney <jasonr@gnu.org>
20503
20504 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20505 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20506 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20507 (init_svg_functions) [HAVE_NTGUI]: New function.
20508 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20509 (svg_load_image): Use them.
20510 (svg_load_image) [HAVE_NTGUI]: Implement background.
20511
205122007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20513
20514 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20515 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20516 (LIBX): Remove @RSVG_LIBS@.
20517 (LIBES): Add $(RSVG_LIBS).
20518
20519 * image.c (svg_load_image): Blend with specified background if exists.
20520 Use IMAGE_BACKGROUND. Add Mac OS Support.
20521
20522 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20523 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20524 Remove macros.
20525 [MAC_OSX] (socket_callback): Do nothing.
20526 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20527 ReceiveNextEvent.
20528 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20529 socket_callback.
20530 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20531
205322007-08-22 Glenn Morris <rgm@gnu.org>
20533
20534 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20535
205362007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20537
20538 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20539
20540 * image.c: Add support for SVG images. Some additional comments
20541 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20542 (svg_image_p): New function to test for SVG image.
20543 (svg_load): New function to load SVG image.
20544 (svg_load_image): New function, helper for svg_load.
20545 (Qsvg): New Lisp_object.
20546 (svg_keyword_index): New enum.
20547 (svg_format): New static `image_keyword' struct.
20548 (svg_type): New static `image_type' struct.
20549 (librsvg/rsvg.h): Include it.
20550
205512007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20552
20553 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20554
205552007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20556
20557 * lread.c (Qold_style_backquotes): New var.
20558 (syms_of_lread): Init and staticpro it.
20559 (load_warn_old_style_backquotes): New fun.
20560 (Fload): Use them to warn about old style backquotes.
20561 (end_of_file_error, Fload): Remove unused vars.
20562
20563 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20564
20565 * lread.c (Vold_style_backquotes): New var.
20566 (syms_of_lread): Init and export it to Elisp.
20567 (read1): Set it when we find an old-style (back)quote.
20568
205692007-08-22 Jason Rumney <jasonr@gnu.org>
20570
20571 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20572
205732007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20574
20575 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20576
205772007-08-19 Richard Stallman <rms@gnu.org>
20578
20579 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20580
205812007-08-19 Andreas Schwab <schwab@suse.de>
20582
20583 * alloc.c (pure): Round PURESIZE up.
20584
205852007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20586
20587 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20588 active frame.
20589
205902007-08-16 Richard Stallman <rms@gnu.org>
20591
20592 * eval.c (Fcommandp): Add parens to clarify.
20593
20594 * minibuf.c (Fall_completions): Use enum for type of table.
20595
20596 * emacs.c (USAGE2): Improve text.
20597
205982007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20599
20600 * term.c (tty_default_color_capabilities): Declare static
20601 variables in file scope, to avoid HPUX compiler problem.
20602
206032007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20604
20605 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20606 to gtk_toolbar_insert.
20607
206082007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20611
20612 * insdel.c (reset_var_on_error): New fun.
20613 (signal_before_change, signal_after_change):
20614 Use it to reset (after|before)-change-functions to nil in case of error.
20615 Bind inhibit-modification-hooks to t.
20616 Don't bind (after|before)-change-functions to nil while they run.
20617
206182007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20619
20620 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20621 filling pixmap with stippled background.
20622
206232007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20624
20625 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20626 Don't use invisible frame as parent window for repositioning.
20627
206282007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20629
20630 * print.c (new_backquote_output): Rename from old_backquote_output.
20631 (print): Inverse its logic (according to its name) so as to match the
20632 behavior of new_backquote_flag in lread.c.
20633
206342007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20635
20636 * gmalloc.c (posix_memalign): New function.
20637
20638 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20639 ActivateControl/DeactivateControl here.
20640 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20641 frame-notice-user-settings is non-nil.
20642 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20643 for kEventParamFMFontStyle.
20644 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20645 mac_pass_command_to_system and mac_pass_control_to_system here.
20646 (XTread_socket): Call ActivateControl/DeactivateControl here.
20647 (XTread_socket) [TARGET_API_MAC_CARBON]:
20648 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20649 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20650 for window repositioning.
20651
206522007-08-08 Glenn Morris <rgm@gnu.org>
20653
20654 * Replace `iff' in doc-strings and comments.
20655
206562007-08-07 Chong Yidong <cyd@stupidchicken.com>
20657
20658 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20659
206602007-08-07 Martin Rudalics <rudalics@gmx.at>
20661
20662 * fileio.c (Finsert_file_contents): Run format-decode and
20663 after_insert_file_functions on entire buffer when REPLACE is
20664 non-nil and inhibit modification_hooks and point_motion_hooks.
20665 For consistency, run after_insert_file_functions iff something
20666 got inserted. Move signal_after_change and update_compositions
20667 after code running after_insert_file_functions. Make sure that
20668 undo_list doesn't record intermediate steps of the decoding process.
20669
206702007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20671
20672 * emacs.c (main)
20673 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20674 Call malloc_enable_thread on interactive startup.
20675
20676 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20677 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20678 [USE_PTHREAD]: Conditionalize with it.
20679 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20680 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20681 New functions.
20682
206832007-08-06 Chong Yidong <cyd@stupidchicken.com>
20684
20685 * xdisp.c (redisplay_window): When restoring original buffer
20686 position, make sure it is still valid.
20687
20688 * image.c (png_load): Ignore png-supplied background color.
20689
206902007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20691
20692 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20693 Use kCFAbsoluteTimeIntervalSince1970.
20694
20695 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20696 New variable.
20697 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20698 event loop should be quit.
20699 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20700 Quit dialog event loop if quit_dialog_event_loop is set.
20701
20702 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20703 (Selection): New typedef. Use instead of ScrapRef.
20704 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20705 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20706 (mac_clear_selection): Rename from clear_scrap.
20707 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20708 scrap_has_target_type. All uses changed.
20709 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20710 (mac_selection_has_target_p): New functions.
20711 (mac_put_selection_value): Rename from put_scrap_string.
20712 (mac_get_selection_value): Rename from get_scrap_string.
20713 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20714 (put_scrap_private_timestamp, scrap_has_target_type)
20715 (get_scrap_private_timestamp): Remove functions.
20716 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20717 (x_own_selection, x_get_local_selection):
20718 Use mac_valid_selection_value_p.
20719 (x_own_selection): Don't use put_scrap_private_timestamp.
20720 Record OWNERSHIP-INFO into Vselection_alist instead.
20721 (x_get_local_selection): Don't check type if request is local.
20722 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20723 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20724
207252007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20726
20727 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20728 add comment explaining why.
20729
207302007-08-03 Richard Stallman <rms@gnu.org>
20731
20732 * fileio.c (Fvisited_file_modtime): Use make_time.
20733
207342007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20735
20736 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20737 build.
20738
207392007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20740
20741 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20742
207432007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20744
20745 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20746
207472007-07-30 Richard Stallman <rms@gnu.org>
20748
20749 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20750
207512007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20752
20753 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20754
207552007-07-28 Nick Roberts <nickrob@snap.net.nz>
20756
20757 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20758 remote default-directory.
20759
20760 * buffer.c (mode-line-format): Update doc string.
20761
207622007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20763
20764 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20765 scroll bar gap.
20766 (x_scroll_bar_create): Set bar->fringe_extended_p.
20767 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20768 on frame edge. Check fringe background extension. Don't clear
20769 extended fringe background area.
20770
20771 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20772 (w32_fill_area): Enclose multiple statements with do ... while (0).
20773
20774 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20775 Extend fringe background to scroll bar gap.
20776 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20777 Set bar->fringe_extended_p.
20778 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20779 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20780 background extension. Don't clear extended fringe background area.
20781
20782 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20783 New member fringe_extended_p.
20784
207852007-07-25 Glenn Morris <rgm@gnu.org>
20786
20787 * Relicense all FSF files to GPLv3 or later.
20788
20789 * COPYING: Switch to GPLv3.
20790
207912007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20792
20793 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20794
20795 * data.c (Finteractive_form): Check for the presence of an
20796 `interactive-form' symbol property more thoroughly.
20797
20798 * data.c (Finteractive_form): Use an `interactive-form' property if
20799 present, analogous to the function-documentation property.
20800
208012007-07-24 Jason Rumney <jasonr@gnu.org>
20802
20803 * w32fns.c (x_real_positions): Get real position from OS instead of
20804 calculating it.
20805
208062007-07-23 Jason Rumney <jasonr@gnu.org>
20807
20808 * filelock.c (current_lock_owner): Allow for @ sign in username.
20809
208102007-07-22 Nick Roberts <nickrob@snap.net.nz>
20811
20812 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20813 remote default-directory.
20814
20815 * buffer.c (mode-line-format): Describe above case in doc string.
20816
208172007-07-20 Eli Zaretskii <eliz@gnu.org>
20818
20819 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20820 Define if not defined.
20821
208222007-07-18 Jason Rumney <jasonr@gnu.org>
20823
20824 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20825
208262007-07-18 Richard Stallman <rms@gnu.org>
20827
20828 * data.c (Fsetq_default): Doc fix.
20829
20830 * eval.c (Fsetq): Doc fix.
20831
208322007-07-18 Juanma Barranquero <lekktu@gmail.com>
20833
20834 * coding.c (Ffind_operation_coding_system):
20835 * eval.c (For, Fand): Doc fixes.
20836 Reported by Johan Bockgård.
20837
208382007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20839
20840 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20841
20842 * xterm.h: Declare x_ewmh_activate_frame.
20843
20844 * xterm.c (x_ewmh_activate_frame): New function.
20845 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20846
208472007-07-17 Martin Rudalics <rudalics@gmx.at>
20848
20849 * window.c (Fdisplay_buffer): If largest or LRU window is the
20850 only window, split it even if it is not eligible for splitting.
20851 This restores the original behavior broken by the 2007-07-15
20852 change.
20853
208542007-07-17 Glenn Morris <rgm@gnu.org>
20855
20856 * abbrev.c (abbrev_check_chars): New function.
20857 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20858 Call abbrev_check_chars to check abbrev characters are word
20859 constituents. Doc fix.
20860
208612007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20862
20863 * process.c (Fstart_process, Fmake_network_process)
20864 (read_process_output): Fix up last changes.
20865
208662007-07-16 Eli Zaretskii <eliz@gnu.org>
20867
20868 * makefile.w32-in (clean): Don't delete *~.
20869
208702007-07-16 Andreas Schwab <schwab@suse.de>
20871
20872 * window.c (Fdisplay_buffer): Use NILP.
20873 (Fset_window_scroll_bars): Likewise.
20874
208752007-07-15 Martin Rudalics <rudalics@gmx.at>
20876
20877 * window.c (window_min_size_2): New function.
20878 (window_min_size_1, size_window, Fdisplay_buffer)
20879 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20880 windows without mode- or header-lines when window-min-height is
20881 too small.
20882 (size_window): Reset nodelete_p after testing it, following an
20883 earlier note by Kim F. Storm.
20884 (display_buffer): Do not set split_height_threshold to twice the
20885 value of window_min_height to avoid changing the value of a
20886 customizable variable. Rather explicitly check whether the
20887 height of the window that shall be splitted is at least as large
20888 as split_height_threshold.
20889 (Fwindow_full_width_p): New defun.
20890 (syms_of_window): Defsubr it.
20891
20892 * window.h: Add EXFUN for Fwindow_full_width_p.
20893
208942007-07-14 Jason Rumney <jasonr@gnu.org>
20895
20896 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20897
208982007-07-14 Richard Stallman <rms@gnu.org>
20899
20900 * eval.c (maybe_call_debugger): New function.
20901 (find_handler_clause): Use maybe_call_debugger.
20902 Call it when the handler says `debug'.
20903 Eliminate DEBUGGER_VALUE_PTR.
20904 (Fsignal): Eliminate debugger_value.
20905 (Qdebug): New variable.
20906 (syms_of_eval): Initialize it.
20907
209082007-07-14 Juanma Barranquero <lekktu@gmail.com>
20909
20910 * eval.c (Fprogn):
20911 * keyboard.c (Ftrack_mouse):
20912 * print.c (Fwith_output_to_temp_buffer):
20913 * window.c (Fsave_window_excursion): Doc fix.
20914
209152007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20916
20917 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20918
209192007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20920
20921 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20922 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20923 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20924 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20925 Remove unused encoding_carryover.
20926 * process.c: Adjust all functions accordingly.
20927
209282007-07-12 Richard Stallman <rms@gnu.org>
20929
20930 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20931
209322007-07-11 Jason Rumney <jasonr@gnu.org>
20933
20934 * makefile.w32-in (LIBS): Include OLE32.
20935
20936 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20937 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20938
209392007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20940
20941 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20942 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20943 from a Lisp_Object into a bare pointer.
20944 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20945 Adjust the code correspondingly.
20946
20947 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20948
20949 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20950 (term_show_mouse_face): Remove unused var `j'.
20951 (handle_one_term_event): Remove unused vars `i' and `j'.
20952 Don't cast return value of ttyname since it's not necessary.
20953
209542007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20955
20956 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20957 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20958
20959 * fns.c (map_char_table): Use an array of int for `indices' rather than
20960 an array of Lisp_Objects (which are only ever integers anyway).
20961 (Fmap_char_table): Update caller.
20962 * lisp.h: Update prototype.
20963 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20964 * fontset.c (Ffontset_info):
20965 * casetab.c (set_case_table): Update callers.
20966
20967 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20968
20969 * keymap.c (struct accessible_keymaps_data)
20970 (struct where_is_internal_data): New structures.
20971 (accessible_keymaps_1, where_is_internal_1): Use them to change
20972 interface to adhere to the one used by map_keymap.
20973 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20974 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20975
20976 * keymap.h (map_keymap_function_t): More informative prototype.
20977
209782007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20979
20980 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20981 (looking_at_1): Don't change search_regs and last_thing_searched
20982 if `inhibit-changing-match-data' is non-nil.
20983 (string_match_1, search_buffer, set_search_regs): Likewise.
20984 (syms_of_search): Add Lisp level definition for
20985 `inhibit-changing-match-data' and set it to nil.
20986 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20987 start and end of the match, instead of using values in search_regs.
20988
209892007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20990
20991 * minibuf.c (Fcompleting_read): New value `confirm-only'
20992 for `require-match'.
20993
209942007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20995
20996 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20997 part of the 2007-06-27 change to syms_of_fileio.
20998
209992007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21000
21001 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21002 Check WINDOWP before using XWINDOW. Consolidate return statements.
21003
210042007-06-27 Richard Stallman <rms@gnu.org>
21005
21006 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21007
210082007-06-27 Juanma Barranquero <lekktu@gmail.com>
21009
21010 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21011
210122007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21013
21014 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21015 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21016 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21017 (_free_internal, memalign): Use them.
21018 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21019 Initialize to PTHREAD_MUTEX_INITIALIZER.
21020 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21021 (morecore_nolock): Rename from morecore. All uses changed.
21022 Use only nolock versions of internal allocation functions.
21023 (_malloc_internal_nolock, _realloc_internal_nolock)
21024 (_free_internal_nolock): New functions created from
21025 _malloc_internal, _realloc_internal, and _free_internal.
21026 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21027 Copy hook value to automatic variable before its use.
21028 (memalign): Copy hook value to automatic variable before its use.
21029
210302007-06-26 Kenichi Handa <handa@m17n.org>
21031
21032 * coding.c (Ffind_operation_coding_system): Docstring improved.
21033 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21034
210352007-06-25 David Kastrup <dak@gnu.org>
21036
21037 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21038 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21039 cater for additional parameter.
21040
21041 * keymap.h: Adjust number of parameters to `current-active-maps'.
21042
21043 * doc.c (Fsubstitute_command_keys): Adjust call of
21044 `current-active-maps'.
21045
210462007-06-25 David Kastrup <dak@gnu.org>
21047
21048 * callint.c (Fcall_interactively): Make the parsing of interactive
21049 specs somewhat more readable.
21050
210512007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21052
21053 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21054 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21055 if extended background has already been filled.
21056
210572007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21058
21059 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21060 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21061
21062 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21063 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21064 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21065 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21066 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21067 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21068 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21069 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21070 Run timers during dialog popup.
21071 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21072
210732007-06-21 Jason Rumney <jasonr@gnu.org>
21074
21075 * image.c (convert_mono_to_color_image): Swap fore and background.
21076
210772007-06-20 Jason Rumney <jasonr@gnu.org>
21078
21079 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21080 (w32_free_bdf_font): Unmap memory not handle.
21081
210822007-06-20 Sam Steingold <sds@gnu.org>
21083
21084 * gmalloc.c (__morecore): Fix the declaration to comply with the
21085 definition.
21086
210872007-06-20 Juanma Barranquero <lekktu@gmail.com>
21088
21089 * w32term.c (w32_delete_display): Remove leftover declaration.
21090 (w32_define_cursor, w32_initialize): Make static.
21091
21092 * w32.c (_wsa_errlist): Fix typo in error message.
21093 (init_environment): Ignore any environment variable from the
21094 registry having a null value.
21095
210962007-06-20 Glenn Morris <rgm@gnu.org>
21097
21098 * Makefile.in (LIBGIF): Default to -lgif.
21099
211002007-06-17 Jason Rumney <jasonr@gnu.org>
21101
21102 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21103 unicode strings.
21104
211052007-06-16 Juanma Barranquero <lekktu@gmail.com>
21106
21107 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21108 Fix typo in docstring.
21109
211102007-06-16 Eli Zaretskii <eliz@gnu.org>
21111
21112 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21113 and their keybindings.
21114
211152007-06-15 Chong Yidong <cyd@stupidchicken.com>
21116
21117 * composite.c (update_compositions): Fix last fix.
21118
211192007-06-14 Jason Rumney <jasonr@gnu.org>
21120
21121 * w32.c (get_process_times_fn): New function pointer.
21122 (globals_of_w32): Intialize it if present in kernel32.dll.
21123 (w32_get_internal_run_time): New function.
21124
21125 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21126
211272007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21128
21129 * composite.c (update_compositions): Check the validness of
21130 compositions.
21131
211322007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21133
21134 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21135 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21136
21137 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21138 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21139
21140 * macgui.h (USE_MAC_TOOLBAR): New define.
21141
21142 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21143 Return immediately unless popup is activated.
21144
21145 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21146 background to scroll bar gap.
21147 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21148 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21149 scroll bars on frame edge. Check fringe background extension.
21150 Don't clear extended fringe background area.
21151 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21152 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21153 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21154 [USE_MAC_TOOLBAR]: New macros.
21155 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21156 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21157 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21158 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21159 [USE_MAC_TOOLBAR]: New functions.
21160 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21161 manually if previous repositioning has failed.
21162 (mac_handle_keyboard_event): Use precomputed event kind.
21163 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21164 as tool bar item click. Handle mouse movement over tool bar items.
21165
21166 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21167 toolbar_win_gravity.
21168 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21169 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21170 Add externs.
21171
21172 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21173 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21174
211752007-06-14 Chong Yidong <cyd@stupidchicken.com>
21176
21177 * image.c (search_image_cache): Remove unused variable.
21178
211792007-06-13 Chong Yidong <cyd@stupidchicken.com>
21180
21181 * xfns.c, xmenu.c: Link to xaw3d if available.
21182
211832007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21184
21185 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21186 frame_foreground and frame_background.
21187
21188 * image.c (lookup_image): Save frame foreground and background colors.
21189 (search_image_cache): Check if saved and current frame colors match.
21190
211912007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21192
21193 * regex.c (regex_compile): Remove the `regnum' counter.
21194 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21195
211962007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21197
21198 * term.c: Include intervals.h to declare Fget_text_property.
21199
212002007-06-10 Jason Rumney <jasonr@gnu.org>
21201
21202 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21203
212042007-06-08 Juanma Barranquero <lekktu@gmail.com>
21205
21206 * callint.c (Fcall_interactively):
21207 * editfns.c (Fdelete_and_extract_region):
21208 * fileio.c (Fread_file_name):
21209 * fns.c (Fmapconcat):
21210 * keyboard.c (cmd_error_internal):
21211 * keymap.c (Fkey_description):
21212 * lread.c (openp):
21213 * minibuf.c (read_minibuf):
21214 * search.c (wordify):
21215 * sunfns.c (sel_read):
21216 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21217 * xfns.c (x_default_scroll_bar_color_parameter):
21218 * xmenu.c (menu_help_callback):
21219 * xselect.c (Fx_get_atom_name):
21220 * xterm.c (x_term_init): Use empty_unibyte_string.
21221
212222007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21223
21224 * alloc.c (init_strings): Initialize canonical empty strings.
21225 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21226 canonical empty string when the requested size is 0.
21227
21228 * emacs.c (empty_unibyte_string): Rename from empty_string.
21229 (empty_multibyte_string): New canonical empty string.
21230 (syms_of_emacs): Don't initialize empty_string.
21231
21232 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21233 string, if appropriate.
21234 (empty_unibyte_string, empty_multibyte_string): New externs.
21235 (empty_string): Remove extern.
21236
21237 * lread.c (syms_of_lread): Use empty_unibyte_string.
21238
212392007-06-07 Jason Rumney <jasonr@gnu.org>
21240
21241 * s/ms-w32.h: Don't define HAVE_TZNAME.
21242
21243 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21244
212452007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21246
21247 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21248
21249 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21250 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21251
21252 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21253 Don't call next handler.
21254 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21255 Remove argument. Install handler to application.
21256 (set_frame_menubar): Don't change deep_p.
21257 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21258 FRAME_OUTER_TO_INNER_DIFF_Y.
21259 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21260 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21261 [HAVE_DIALOGS]: New macros.
21262 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21263 Use them.
21264 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21265
21266 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21267 init_service_handler. All callers changed. Return OSStatus value.
21268
21269 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21270 All callers changed so as not to call SetPortWindowPort.
21271 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21272 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21273 mac_draw_string_common.
21274 (mac_draw_image_string_qd): Likewise.
21275 (mac_draw_string_common): Use them. Add INLINE.
21276 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21277 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21278 GetGlobalMouse.
21279 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21280 and FRAME_OUTER_TO_INNER_DIFF_Y.
21281 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21282 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21283 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21284 repositioning window to mac_handle_window_event.
21285 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21286 saving window location to mac_handle_window_event
21287 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21288 (install_menu_target_item_handler): Remove argument in extern.
21289 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21290 Also accept command events.
21291 (do_keystroke): New function created from XTread_socket.
21292 (init_command_handler): Remove functions.
21293 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21294 and save window location by kEventWindowShowing and kEventWindowHiding
21295 handlers here. Don't call next handler for window state change and
21296 focus events.
21297 (mac_handle_application_event, mac_handle_keyboard_event)
21298 [TARGET_API_MAC_CARBON]: New functions.
21299 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21300 kEventWindowShowing and kEventWindowHiding events. Move installation
21301 of mouse, font, text input and menu target item handlers to
21302 install_application_handler.
21303 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21304 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21305 New function.
21306 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21307 Register it.
21308 (XTread_socket) [TARGET_API_MAC_CARBON]:
21309 Consolidate SendEventToEventTarget calls.
21310 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21311 Move application activation handler to mac_handle_application_event.
21312 Move keyboard handler to mac_handle_keyboard_event.
21313 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21314 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21315 init_command_handler. Call install_application_handler.
21316
21317 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21318 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21319
213202007-06-07 Glenn Morris <rgm@gnu.org>
21321
21322 * emacs.c (main): Use `emacs-copyright' in --version output.
21323
213242007-06-06 Chong Yidong <cyd@stupidchicken.com>
21325
21326 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21327
213282007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21329
21330 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21331
21332 * macgui.h: Replace WindowPtr with WindowRef.
21333
21334 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21335 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21336 Replace ControlHandle with ControlRef.
21337 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21338
21339 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21340 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21341 Replace ControlHandle with ControlRef.
21342 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21343 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21344
21345 * macterm.h (struct scroll_bar): Rename member control_handle_low
21346 and control_handle_high to control_ref_low and control_ref_high.
21347 All uses changed.
21348 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21349 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21350 respectively. All uses changed.
21351 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21352 (install_window_handler, remove_window_handler): Replace WindowPtr
21353 with WindowRef in externs.
21354
213552007-06-05 Juanma Barranquero <lekktu@gmail.com>
21356
21357 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21358
213592007-06-03 Nick Roberts <nickrob@snap.net.nz>
21360
21361 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21362
21363 * frame.c (Fmouse_position, Fmouse_pixel_position):
21364 Condition on HAVE_GPM too.
21365
21366 * term.c (term_mouse_highlight): Remove unused variables.
21367 (Fterm_open_connection): Set gpm_zerobased to 1.
21368 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21369 Use zero based co-ordinates.
21370 (handle_one_term_event): Report a drag as mouse movement too.
21371
21372 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21373
213742007-06-03 Chong Yidong <cyd@stupidchicken.com>
21375
21376 * image.c (search_image_cache): New function. Require background
21377 color match if background color is unspecified in the image spec.
21378 (uncache_image, lookup_image): Use it.
21379
213802007-06-01 Juanma Barranquero <lekktu@gmail.com>
21381
21382 * window.c (Fshrink_window): Reflow docstring.
21383
213842007-06-02 Chong Yidong <cyd@stupidchicken.com>
21385
21386 * Version 22.1 released.
21387
213882007-06-01 Richard Stallman <rms@gnu.org>
21389
21390 * xfns.c (x_encode_text): Add GCPRO.
21391
213922007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21393
21394 * xfns.c (x_set_name_internal): Save encoded name before
21395 x_encode_text in case string data is relocated.
21396
213972007-05-31 Richard Stallman <rms@gnu.org>
21398
21399 * buffer.c (syms_of_buffer): Doc fix.
21400
214012007-05-30 Nick Roberts <nickrob@snap.net.nz>
21402
21403 * sysdep.c (init_sys_modes): Add rather than replace with
21404 O_NONBLOCK.
21405
21406 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21407 term_mouse_moveto.
21408
21409 * termhooks.h (term_mouse_moveto): New extern.
21410
21411 * term.c (mouse_face_window): Rename...
21412 (Qmouse_face_window): ...to this.
21413 (term_show_mouse_face, term_clear_mouse_face)
21414 (term_mouse_highlight): Use Qmouse_face_window.
21415 (term_mouse_moveto): New function.
21416 (term_mouse_position): Make it work.
21417 (syms_of_term): Uncomment assignment to mouse_position_hook.
21418 Staticpro Qmouse_face_window.
21419
214202007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21421
21422 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21423 around current_column call.
21424
214252007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21426
21427 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21428 * xdisp.c (next_element_from_buffer):
21429 * window.c (delete_window):
21430 * term.c (term_mouse_highlight):
21431 * msdos.c (getdefdir):
21432 * macterm.c (mac_create_bitmap_from_bitmap_data)
21433 (init_font_name_table):
21434 * fns.c (Fsxhash):
21435 * data.c (Fmake_local_variable):
21436 * ccl.c (ccl_driver): Likewise.
21437
214382007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21439
21440 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21441 Call mac_wakeup_from_rne on window size change.
21442
214432007-05-25 Chong Yidong <cyd@stupidchicken.com>
21444
21445 * image.c (uncache_image): Fix typo.
21446
214472007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21448
21449 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21450
214512007-05-22 Richard Stallman <rms@gnu.org>
21452
21453 * xterm.c (x_connection_closed): Remove NO_RETURN.
21454
214552007-05-22 Martin Rudalics <rudalics@gmx.at>
21456
21457 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21458
214592007-05-21 Chong Yidong <cyd@stupidchicken.com>
21460
21461 * image.c (uncache_image): New function.
21462 (Fimage_refresh): New function.
21463
214642007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21465
21466 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21467
214682007-05-20 Nick Roberts <nickrob@snap.net.nz>
21469
21470 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21471 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21472
214732007-05-20 Nick Roberts <nickrob@snap.net.nz>
21474
21475 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21476 conditional on [HAVE_GPM_H].
21477
214782007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21479
21480 * syntax.c (skip_chars): Update syntax-table only after we checked that
21481 the new location is valid.
21482
214832007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21484
21485 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21486 mac_get_window_bounds.
21487
214882007-05-20 Nick Roberts <nickrob@snap.net.nz>
21489
21490 * Makefile.in (LIBGPM): Allow it to be set from configure.
21491 If set then link Emacs with it.
21492
21493 * config.in: Regenerate.
21494
21495 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21496 New externs.
21497
21498 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21499 Include gpm.h.
21500 (handle_one_term_event, term_gpm): New externs.
21501
21502 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21503 and allow it to be interrupted by SIGIO.
21504
21505 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21506 (wait_reading_process_output): Wait on gpm_fd too.
21507 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21508 (add_gpm_wait_descriptor_called_flag): New variable.
21509 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21510
21511 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21512 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21513 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21514 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21515 (make_lispy_event): Add case GPM_CLICK_EVENT.
21516 (read_avail_input): Handle mouse input.
21517
21518 * term.c (write_glyphs_with_face): New function.
21519 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21520 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21521 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21522 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21523 (last_mouse_x, last_mouse_y): New variables.
21524 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21525 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21526 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21527 (Fterm_close_connection): New functions.
21528 (term_init): Initialise mouse_face_window.
21529
215302007-05-19 Chong Yidong <cyd@stupidchicken.com>
21531
21532 * xdisp.c (redisplay_window): If first window line is a
21533 continuation line, recompute the new window start instead of
21534 recentering.
21535
215362007-05-18 Glenn Morris <rgm@gnu.org>
21537
21538 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21539 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21540
215412007-05-17 Glenn Morris <rgm@gnu.org>
21542
21543 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21544
215452007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21546
21547 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21548 dead key repeat and up events.
21549
215502007-05-14 Chong Yidong <cyd@stupidchicken.com>
21551
21552 * image.c (pbm_load): Check image size for monochrome pbm.
21553
215542007-05-13 Chong Yidong <cyd@stupidchicken.com>
21555
21556 * xterm.c (XTread_socket): Revert last change.
21557
215582007-05-12 Chong Yidong <cyd@stupidchicken.com>
21559
21560 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21561
21562 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21563
215642007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21565
21566 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21567 mixup (YAILOM).
21568
215692007-05-07 Andreas Schwab <schwab@suse.de>
21570
21571 * keymap.c (Flookup_key): Fix typo in last change.
21572
215732007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21574
21575 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21576 mapping for unibyte strings.
21577
215782007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21579
21580 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21581 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21582
215832007-04-29 Richard Stallman <rms@gnu.org>
21584
21585 * insdel.c (replace_range): For undo, record insertion first.
21586
215872007-04-29 Andreas Schwab <schwab@suse.de>
21588
21589 * lisp.h (VECSIZE): Use OFFSETOF.
21590
215912007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21592
21593 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21594 disabled lines.
21595
215962007-04-28 Richard Stallman <rms@gnu.org>
21597
21598 * lread.c (read_escape): In a string, \s is always space.
21599
216002007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21601
21602 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21603
21604 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21605 submenu for menu bar items.
21606
21607See ChangeLog.10 for earlier changes.
21608
21609;; Local Variables:
21610;; coding: utf-8
21611;; add-log-time-zone-rule: t
aac0c6e3
MR
21612;; End:
21613
e3eb1dae 21614 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21615
21616 This file is part of GNU Emacs.
21617
21618 GNU Emacs is free software: you can redistribute it and/or modify
21619 it under the terms of the GNU General Public License as published by
21620 the Free Software Foundation, either version 3 of the License, or
21621 (at your option) any later version.
21622
21623 GNU Emacs is distributed in the hope that it will be useful,
21624 but WITHOUT ANY WARRANTY; without even the implied warranty of
21625 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21626 GNU General Public License for more details.
21627
21628 You should have received a copy of the GNU General Public License
21629 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21630
21631;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40