* frames.texi (Frame Commands): Note that the last ordinary frame can
[bpt/emacs.git] / src / ChangeLog
CommitLineData
886cc2b8
SM
12010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * term.c (fatal): Add a final \n if needed (bug#5596).
4
ddb2d8e2
CY
52010-02-18 Chong Yidong <cyd@stupidchicken.com>
6
7 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8
2a4f8d3d
GM
92010-02-18 Glenn Morris <rgm@gnu.org>
10
11 * callint.c (Finteractive): Doc fix.
12
ebaf11b6
KH
132010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
14
886cc2b8
SM
15 * coding.c (record_conversion_result):
16 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
17 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
18 memory allocation error.
19
d0396581
KH
202010-02-17 Kenichi Handa <handa@m17n.org>
21
886cc2b8
SM
22 * coding.c (decode_coding_ccl): Don't setup ccl program here.
23 Fix for the case that the output buffer is fullfilled.
d0396581
KH
24 (decode_coding): Setup ccl program here. Keep looping when the
25 decoder stopped because the output buffer is
26 fullfilled (bug#5534).
27
28 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
29
98599f74
JD
302010-02-13 Jan Djärv <jan.h.d@swipnet.se>
31
471e4f04 32 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 33 bug #5571.
886cc2b8 34 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 35 overdrawn.
98599f74 36
182659ae
JD
372010-02-10 Jan Djärv <jan.h.d@swipnet.se>
38
39 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
40 doing_interact here.
41 (ice_connection_closed): New function.
42 (x_session_check_input, smc_die_CB, ice_io_error_handler)
43 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
44 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
45 returns I/O error.
46 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
47 bug #5512.
48
9be32c4e 492010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
50
51 * nsfont.m (nsfont_open): The system's value for the font descent
52 is negative, so round it down to avoid clipping.
53
a2f3eb19
CY
542010-02-06 Chong Yidong <cyd@stupidchicken.com>
55
56 * charset.c (load_charset_map_from_file)
57 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 58 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 59
3088147c
CY
602010-02-05 Chong Yidong <cyd@stupidchicken.com>
61
62 * charset.c (load_charset_map_from_file): Allocate large
63 charset_map_entries structure on the heap rather than the stack.
64 (Bug#5526).
65
b57d9029
KH
662010-01-31 Kenichi Handa <handa@m17n.org>
67
68 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 69 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 70
c67d885b
CY
712010-01-31 Chong Yidong <cyd@stupidchicken.com>
72
73 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
74 <deactivated@gmail.com> (Bug#3605).
75
8fab2362
CY
762010-01-31 David De La Harpe Golden <david@harpegolden.net>
77
78 * fileio.c (Frename_file): Correctly rename symlinks to
79 directories (Bug#5496).
80
cb2a62f2
CY
812010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
82
83 * nsterm.m (ns_ring_bell): Handle visible bell like X.
84
944c7a26
AS
852010-01-30 Andreas Schwab <schwab@linux-m68k.org>
86
87 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
88
c024ac08
CY
892010-01-29 Chong Yidong <cyd@stupidchicken.com>
90
91 * frame.c (DEFAULT_ROWS): Change default to 35.
92
93 * xfns.c (x_default_font_parameter): Change default XFT font to
94 monospace-10 (Bug#3643).
95
af93af83
EZ
962010-01-29 Eli Zaretskii <eliz@gnu.org>
97
98 * w32inevt.c (key_event): Remove unnecessary comparison of
99 event->uChar.AsciiChar with 128.
100
ca0eb708
CY
1012010-01-28 Chong Yidong <cyd@stupidchicken.com>
102
b242dbfc
CY
103 * fileio.c (Frename_file): Fix last change (Bug#5487).
104
ca0eb708
CY
105 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
106
107 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
108
45d45af5
JD
1092010-01-28 Jan Djärv <jan.h.d@swipnet.se>
110
111 * xfns.c (Fx_create_frame): Remove window size matching code from
112 2010-01-15.
113 (x_get_current_desktop, x_get_desktop_workarea): Remove
114
7e233730
JR
1152010-01-27 Jason Rumney <jasonr@gnu.org>
116
117 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 118 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 119
86e893e3
KH
1202010-01-27 Kenichi Handa <handa@m17n.org>
121
122 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 123 pattern string (Bug#4209).
86e893e3 124
8719abec
CY
1252010-01-27 David De La Harpe Golden <david@harpegolden.net>
126
127 * fileio.c (Frename_file): Call copy-directory and
128 delete-directory for directories, in order to handle cross-device
129 renaming (Bug#3353).
130
844794c8
JD
1312010-01-25 Jan Djärv <jan.h.d@swipnet.se>
132
aa3e13b5 133 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 134 sizes 24 and 10. Bug #3643.
844794c8 135
bd4b5750
SM
1362010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
137
8dc1adf6 138 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
139 * keymap.c (shadow_lookup): Add `remap' arg.
140 (describe_map, describe_vector): Update calls to shadow_lookup.
141 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
142 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
143 perform remapping during shadow_lookup check of remapped_sequences.
144
285d07e2
CY
1452010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
146
147 * image.c (png_load): Use png_sig_cmp instead of the obsolete
148 png_check_sig, which has been removed in libpng 1.4.
149
c6d09b8d
CY
1502010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
151
152 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
153 lacks this header file).
154
3d782998
YM
1552010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
156
157 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
158 as in Emacs 22.
159
2aff7c53
YM
1602010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
161
162 * lisp.h (make_pure_string): String pointer arg now points to const.
163
164 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
165 args now point to const.
166
74327f7a
EZ
1672010-01-22 Eli Zaretskii <eliz@gnu.org>
168
169 * lread.c (Fload): Don't treat files without .elc extension as
170 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
171 them. (bug#5303)
172
4d1e6632
KH
1732010-01-20 Kenichi Handa <handa@m17n.org>
174
175 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
176 treat the source as actual byte sequence.
177
1fdede8f
AM
1782010-01-19 Alan Mackenzie <acm@muc.de>
179
180 Fix spurious before-change-functions invocation from (insert ?\n).
181 * textprop.c (set_text_properties): rename parameter
182 `signal_after_change_p' to `coherent_change_p', and make the
183 invocation of `modify_region' conditional on it.
184
67477f30
JD
1852010-01-19 Jan Djärv <jan.h.d@swipnet.se>
186
187 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
188 for debug purpose.
189 (syms_of_xsettings): Declare xft-settings.
190
244b023e
CY
1912010-01-18 Chong Yidong <cyd@stupidchicken.com>
192
193 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
194
617364fe
CY
1952010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
196
197 * xterm.c (event_handler_gdk): Block input (Bug#5037).
198
4fe22cdf
CY
1992010-01-16 Chong Yidong <cyd@stupidchicken.com>
200
201 * emacs.c (standard_args): Adjust arg priorities to reflect how
202 they are processed in startup.el.
203
e118d2be
AS
2042010-01-16 Andreas Schwab <schwab@linux-m68k.org>
205
206 * Makefile.in (lisp, shortlisp): Update.
207
523ae620
SM
2082010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
209
210 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
211 code, link the new kboard into all_kboard before running Lisp code,
212 and protect the new terminal with GCPRO (Bug#5365).
213 (x_term_init): Remove unused var `atom'.
214 (x_delete_display, x_delete_terminal): Remove unused var `i'.
215
f0d13888
JD
2162010-01-15 Jan Djärv <jan.h.d@swipnet.se>
217
218 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
219 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
220 to find out usable size of the desktop. Don't make frames larger than
ac146f82 221 this. Bug #3643.
f0d13888 222
cc320f07
KH
2232010-01-15 Kenichi Handa <handa@m17n.org>
224
225 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
226
7ffdf101
CY
2272010-01-15 Chong Yidong <cyd@stupidchicken.com>
228
229 * nsterm.m (Qnone): Define.
230
231 * nsfns.m (Qnone): Move definition to nsterm.m.
232
d12bd917
KH
2332010-01-14 Kenichi Handa <handa@m17n.org>
234
235 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
236 systems.
237
d9a7c140
KH
2382010-01-14 Kenichi Handa <handa@m17n.org>
239
240 Make auto-composition work on all buffers even if they are
241 fundamental mode.
242
243 * composite.c (Vauto_composition_mode): New variable.
244 (composition_compute_stop_pos): Check Vauto_composition_mode
245 instead of Vauto_composition_function.
246 (composition_adjust_point, Ffind_composition_internal): Likewise.
247 (syms_of_composite): Declare Lisp variable
248 "auto-composition-mode" here.
249
63286bb2
CY
2502010-01-13 Chong Yidong <cyd@stupidchicken.com>
251
252 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
253 during call to vendor-specific-keysyms (Bug#5365).
254
c2623ee7
YM
2552010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
256
257 * keyboard.c (input_available_signal) [SYNC_INPUT]:
258 Call SIGNAL_THREAD_CHECK (Bug#5333).
259
260 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
261 Call SIGNAL_THREAD_CHECK.
262
0b5397c2
SM
2632010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
264
265 Try to fix bug#5314. This is probably not the final word, tho.
266 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
267 recent-auto-save-p as a side-effect.
268 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
269 * buffer.c (Fkill_buffer, reset_buffer):
270 * editfns.c (Fsubst_char_in_region):
271 * fileio.c (Finsert_file_contents, Fdo_auto_save)
272 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
273
dc954cb2
KH
2742010-01-13 Kenichi Handa <handa@m17n.org>
275
276 Display buffer name, etc. in mode line by composing correctly.
277
278 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
279 STRING is not nil.
0b5397c2 280 (display_mode_element): Adjust for the change of
dc954cb2
KH
281 decode_mode_spec and display_line.
282 (decode_mode_spec): Change arg MULTIBYTE to STRING.
283 (display_string): Handle the case that STRING is non-null and
284 LISP_STRING is not nil.
285
0b5397c2
SM
286 * xterm.c (x_draw_composite_glyph_string_foreground):
287 Pay attention to s->face->overstrike.
dc954cb2
KH
288
289 * composite.c (composition_reseat_it): Don't check PT if STRING is
290 non nil.
291
4a00eaca
YM
2922010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
293
294 * keyboard.c (read_char): Don't apply previous change when current
295 buffer is unchanged by command execution.
296
60abb287
JD
2972010-01-12 Jan Djärv <jan.h.d@swipnet.se>
298
299 * keyboard.c (read_char): Return after executing from special map.
300
893db5bc
GM
3012010-01-12 Glenn Morris <rgm@gnu.org>
302
303 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
304 bug-gnu-emacs rather than emacs-pretest-bug.
305
4d03ece0
CY
3062010-01-11 Chong Yidong <cyd@stupidchicken.com>
307
308 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
309 initializing the Lisp variables that depend on them.
310
1df47e38
YM
3112010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
312
313 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
314 Clear areas that will not be updated after change of menu bar lines.
315 Clear the menu bar window's current matrix when the window gets empty.
316
2f1c6384
CY
3172010-01-09 Chong Yidong <cyd@stupidchicken.com>
318
e398c61c
CY
319 * intervals.h, textprop.c (extend_property_ranges): Return value
320 and args changed. Discard properties that begin at or after the
321 new end (Bug#5306).
322
323 * editfns.c (Fformat): Caller changed.
324
e5a29a10
CY
325 * nsterm.m (ns_set_default_prefs): Delete function.
326 (syms_of_nsterm): Initialize ns_command_modifier,
327 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
328 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
329
2f1c6384
CY
330 * xdisp.c (pos_visible_p): Check for invisible text at the correct
331 position (Bug#4040).
332
d427a9fa
EZ
3332010-01-09 Eli Zaretskii <eliz@gnu.org>
334
335 * editfns.c (Ffloat_time): Doc fix.
336
21b9df2f
JD
3372010-01-09 Jan Djärv <jan.h.d@swipnet.se>
338
339 * xfns.c (Fx_create_frame): Don't create frame larger than display
340 by default bug#3643.
341
4b00d3b1
YM
3422010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
343
344 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
345 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
346 windows above internal border.
347
348 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
349 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
350 windows above internal border.
351
352 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
353 tool bar windows specially.
354
355 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
356
357 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
358 specially.
359 (XTflash): Take account of menu bar height.
360
361 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
362 specially.
363
5075d853
JD
3642010-01-08 Jan Djärv <jan.h.d@swipnet.se>
365
ac146f82 366 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
367 also be true before we can return early (bug #5339).
368
474217c8
CY
3692010-01-06 David Reitter <david.reitter@gmail.com>
370
371 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
372 (Fns_display_usable_bounds): Rewrite, computing bounds properly
373 (Bug#3233).
374
c0e6d47d
JD
3752010-01-06 Jan Djärv <jan.h.d@swipnet.se>
376
d0cf45b7
JD
377 * font.c (font_open_entity): Enable chache and call cached_font_ok
378 for the driver if defined.
379 (QCuser_spec): New symbol.
380 (font_spec_from_name): Save name as user-spec.
381 (font_load_for_lface): Keep user-spec instead of name.
382 (font_open_by_name): Save name as user-spec.
383 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 384 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
385
386 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
387 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
388 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
389
390 * font.h (struct font_driver): Add cached_font_ok.
391
c0e6d47d
JD
392 * xterm.c (x_clear_frame): Queue draw for scroll bars.
393
7c583cd8
JD
3942010-01-05 Jan Djärv <jan.h.d@swipnet.se>
395
396 * xterm.c (x_new_font): Move code for setting rows/cols before
397 resizing ...
ac146f82 398 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
399
400 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
401 (xg_frame_resized, xg_frame_set_char_size):
402 Call xg_clear_under_internal_border.
7c583cd8 403 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 404
03f77f0a
CY
4052010-01-05 Chong Yidong <cyd@stupidchicken.com>
406
407 * keyboard.c (read_key_sequence): Catch keyboard switch after
408 making a new tty frame (Bug#5095).
409
2a1ef5be
KH
4102010-01-05 Kenichi Handa <handa@m17n.org>
411
412 * fontset.c (fontset_find_font): Fix getting the frame pointer.
413
e3eb1dae
SM
4142010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
415
416 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
417 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
418 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
419
777013f2
MA
4202010-01-03 Michael Albinus <michael.albinus@gmx.de>
421
422 * dbusbind.c (xd_add_watch): Improve debug message.
423 (xd_remove_watch): Improve debug message. If DATA is the session
424 bus, unset D-Bus session environment.
425 (Fdbus_init_bus): Pass the bus as argument to
426 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 427
8932b1c2
CY
4282010-01-01 Chong Yidong <cyd@stupidchicken.com>
429
87231e2c
CY
430 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
431
4801c5fa
CY
432 * lread.c (syms_of_lread): Make it clearer that these are the
433 names of loaded files (Bug#5068).
434
8932b1c2
CY
435 * eval.c (run_hook_with_args): Handle the case where the global
436 value has the obsolete single-function form (Bug#5026).
437
11e3c684
CY
4382009-12-27 Chong Yidong <cyd@stupidchicken.com>
439
440 * minibuf.c (Fall_completions): Minor optimization.
441
5b28ce35
EZ
4422009-12-26 Eli Zaretskii <eliz@gnu.org>
443
5ce6e4f4
JB
444 * .gdbinit (pgx): Fix display of composite glyphs.
445 Display cmp.from and cmp.to as well.
446 (pitx): Fix last change.
5b28ce35 447
bcffff46
KH
4482009-12-25 Kenichi Handa <handa@m17n.org>
449
450 * composite.h (composition_adjust_point): Update prototype.
451
452 * composite.c (composition_reseat_it): Don't make a composition
453 spanning over point.
454 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
455 composable characters.
456 (composition_adjust_point): New arg NEW_PT. Callers changed.
457
458 * keyboard.c (command_loop_1): Force redisplay if the last point
459 was within a composition.
460 (adjust_point_for_property): Don't adjust point for automatic
461 composition when called after buffer modification.
462
3f670e9a
EZ
4632009-12-19 Eli Zaretskii <eliz@gnu.org>
464
5ce6e4f4
JB
465 * .gdbinit (pitx): Don't use enum names, use their values.
466 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
467 (pgx): Don't use enum names, use their values.
468 (pitmethod): New helper command.
469 (pitx): Use it to display iteration method.
470 (pgrowit): New command.
471
ad903955
EZ
472 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
473
3f670e9a
EZ
474 Update dependencies in Makefile.in.
475
476 * Makefile.in (alloc.o): Depend on termhooks.h.
477 (atimer.o): Depend on blockinput.h.
478 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
479 and frame.h.
480 (callint.o): Depend on systime.h, coding.h, and composite.h.
481 (callproc.o): Depend on buffer.h.
482 (casefiddle.o): Don't depend on charset.h.
483 (casetab.o): Depend on character.h.
484 (ccl.o): Depend on composite.h.
485 (chartab.o): Depend on ccl.h.
486 (cm.o): Depend on dispextern.h.
487 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
488 (coding.o): Don't depend on $(INTERVALS_H).
489 (composite.o): Don't depend on dispextern.h explicitly (it's in
490 $(INTERVALS_H)). Depend on ccl.h.
491 (data.o): Depend on systime.h, coding.h, composite.h,
492 dispextern.h, font.h, and ccl.h.
493 (dired.o): Depend on composite.h.
494 (dispnew.o): Depend on coding.h. Don't depend explicitly on
495 composite.h (it's in $(INTERVALS_H)).
496 (doc.o): Depend on systime.h, coding.h, and composite.h.
497 (editfns.o): Don't depend explicitly on dispextern.h.
498 (emacs.o): Depend on frame.h and coding.h.
499 (eval.o): Depend on coding.h, composite.h, and xterm.h.
500 (fileio.o): Depend on frame.h and commands.h. Don't depend
501 explicitly on dispextern.h.
502 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
503 composite.h.
504 (fns.o): Don't depend on termhooks.h.
505 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
506 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
507 coding.h, $(INTERVALS_H), window.h, xterm.h.
508 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
509 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
510 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
511 fontset.h, ccl.h, and ftfont.h.
512 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
513 (gtkutil.o): Depend on dispextern.h and composite.h.
514 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
515 termhooks.h, and ccl.h.
516 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
517 (intervals.o): Depend on systime.h and coding.h.
518 (keyboard.o): Depend on composite.h and coding.h.
519 (keymap.o): Depend on coding.h and frame.h.
520 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
521 (macros.o): Depend on systime.h, coding.h, and composite.h.
522 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
523 and atimer.h.
524 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
525 dispextern.h explicitly.
0b5397c2
SM
526 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
527 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
528 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
529 (regex.o): Don't depend on charset.h.
530 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
531 (search.o): Don't depend explicitly on composite.h.
532 (sound.o): Depend on atimer.h and systime.h.
533 (syntax.o): Don't depend explicitly on composite.h.
534 (sysdep.o): Depend on coding.h and composite.h.
535 (term.o): Depend on xterm.h and buffer.h.
536 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
537 (textprop.o): Don't depend on dispextern.h explicitly.
538 (undo.o): Depend on dispextern.h.
539 (window.o): Depend on coding.h and termhooks.h. Don't depend on
540 dispextern.h and composite.h explicitly.
541 (xdisp.o): Depend on ccl.h.
542 (xfaces.o): Depend on coding.h and ccl.h.
543 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
544 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
545 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
546 ftfont.h.
547 (xgselect.o): New dependency.
548 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
549 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
550 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
551 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
552 (xsmfns.o): Depend on frame.h and dispextern.h.
553 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
554 sysselect.h.
555
7a6f7fea
AS
5562009-12-19 Andreas Schwab <schwab@linux-m68k.org>
557
558 * font.c (Fclear_font_cache): Pass correct cache argument to
559 font_clear_cache.
560
f4c21026
AS
5612009-12-16 Andreas Schwab <schwab@linux-m68k.org>
562
563 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
564 twice.
565
f7ab0997
CY
5662009-12-15 Chong Yidong <cyd@stupidchicken.com>
567
568 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
569 calling file-remote-p. Reported by Jim Meyering.
570
fa8e045a
MA
5712009-12-15 Michael Albinus <michael.albinus@gmx.de>
572
573 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 574 avoid compiler warnings. (Bug #5217)
fa8e045a 575
a63dba42
KH
5762009-12-14 Kenichi Handa <handa@m17n.org>
577
578 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
579 in 8-bit encoding.
580
5ce6e4f4 5812009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
582
583 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
584 tooltip windows.
585
223e5fc6
JD
5862009-12-13 Jan Djärv <jan.h.d@swipnet.se>
587
36acb2a7
JD
588 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
589 Xatom_net_window_type.
590
591 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
592 Xatom_net_window_type.
593
b8f00677
JD
594 * xterm.c (my_log_handler): New function.
595 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 596 so we can filter out buggy messages. (Bug #5120).
b8f00677 597
e5f0bc9a
JD
598 * xterm.c (xg_scroll_callback): Parameter list changed,
599 use parameter GtkScrollType to determine scroll/line/page.
600 Only allow dragging if a button < 4 is grabbed (bug #5177).
601 (xg_end_scroll_callback): New function.
602 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
603 xg_create_scroll_bar.
604
605 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
606 (scroll_end_callback): Remove.
607 (xg_create_scroll_bar): Add parameter end_callback, bind it to
608 button-release-event. Replace value-changed event with change-value,
609 bug #5177,
610 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
611 bug #5177.
612
613 * gtkutil.h (XG_LAST_SB_DATA): Remove.
614 (xg_create_scroll_bar): Add GCallback end_callback.
615
223e5fc6
JD
616 * xftfont.c (QClcdfilter): New variable.
617 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
618 (syms_of_xftfont): Initialize QClcdfilter.
619
3c055b77
JD
6202009-12-12 Jan Djärv <jan.h.d@swipnet.se>
621
622 * xsettings.c (struct xsettings): Add member seen.
623 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 624 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
625 (apply_xft_settings): Only update Xft settings with what member seen
626 indicates as new.
627
05fe33ff
EZ
6282009-12-12 Eli Zaretskii <eliz@gnu.org>
629
630 * dispextern.h (struct text_pos): Use EMACS_INT;
631 (struct glyph): Use EMACS_INT for charpos.
632 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
633 region_beg_charpos, region_end_charpos,
634 redisplay_end_trigger_charpos, and also for
635 iterator_stack_entry.end_charpos and
636 iterator_stack_entry.stop_charpos.
637
e8d7886a
JD
6382009-12-12 Jan Djärv <jan.h.d@swipnet.se>
639
5ce6e4f4 640 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
641 (xg_create_scroll_bar): Call scroll_end_callback on button release
642 event (bug #5177).
643 (xg_event_is_for_scrollbar): != replaced with ==.
644
d0db2ec8
KH
6452009-12-12 Kenichi Handa <handa@m17n.org>
646
647 * ftfont.c (struct ftfont_info): New member matrix.
648 (ftfont_open): Setup xftfont_info->matrix.
649 (MFLTFontFT): New member matrix.
650 (FLOOR, CEIL, ROUND): New macros.
651 (ftfont_get_metrics): Handle matrix transformation.
652 (ftfont_shape_by_flt): New arg matrix. Callers changed.
653
654 * xftfont.c (struct xftfont_info): New member matrix.
655 (xftfont_open): Setup xftfont_info->matrix.
656
6572009-12-10 Kenichi Handa <handa@m17n.org>
658
659 * xdisp.c (append_space_for_newline): Consider face-remapping.
660
2cc7b62f
AS
6612009-12-09 Andreas Schwab <schwab@linux-m68k.org>
662
b87dd913
AS
663 * xsettings.c: Include "keyboard.h".
664
eba5eb94
AS
665 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
666
2cc7b62f
AS
667 Fix implicit function declarations.
668 * cmds.c: Include "frame.h".
669 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
670 * frame.h: Move declaration of delete_frame outside of
671 HAVE_WINDOW_SYSTEM.
672
a4ef73c8
CY
6732009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
674
675 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
676
677 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
678 GTK builds.
679
944a300c
AS
6802009-12-07 Andreas Schwab <schwab@linux-m68k.org>
681
682 * unexelf.c (unexec): Don't search for .data twice.
683
022eef62
CY
6842009-12-05 Chong Yidong <cyd@stupidchicken.com>
685
426ac949
CY
686 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
687 if push failed.
688 (handle_line_prefix): Set avoid_cursor_p here. Check return value
689 of push_display_prop (Bug#5000).
690
022eef62
CY
691 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
692 value of font_list_entities (Bug#5085).
693
be95bee9
JB
6942009-12-04 Juanma Barranquero <lekktu@gmail.com>
695
696 Fix `string-to-number' to deal consistently with integers and floats.
697 * lread.c (isfloat_string): New argument ignore_trailing to accept all
698 trailing characters, not just whitespace.
699 (read1): Pass new arg 0 to keep old behavior.
700 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
701 trailing chars, as it is already done for integers. Doc fixes.
702 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
703
24c2d7ce
EZ
7042009-12-04 Eli Zaretskii <eliz@gnu.org>
705
0b5397c2
SM
706 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
707 Delete unused enumeration value.
24c2d7ce 708
7e694795
EZ
7092009-12-03 Eli Zaretskii <eliz@gnu.org>
710
711 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
712
84b31826
SM
7132009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
714
715 * process.c (Fmake_network_process): Fix up the tests for
716 "connectionless socket", so they DTRT for seqpacket sockets as well.
717
f00c449b
SM
7182009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
719
720 * process.c (Qseqpacket): New symbol.
721 (HAVE_SEQPACKET): New macro.
722 (Fmake_network_process): Accept new :type `seqpacket'.
723 (init_process): Add `seqpacket' feature when applicable.
724 (syms_of_process): Initialize Qseqpacket.
725
8096a0ff
YM
7262009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
727
728 * font.c (font_load_for_lface, font_open_by_name): Don't store name
729 if entity is Qnil.
730
3e0de07f
SM
7312009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
732
733 * print.c (print_preprocess): Preprocess the key_and_value table of
734 hashtables, even tho they're "hidden" (bug#5082).
735
abeafb2a
JD
7362009-11-29 Jan Djärv <jan.h.d@swipnet.se>
737
738 * frame.c (frame_make_pointer_invisible)
739 (frame_make_pointer_visible): Declare f before statements.
740
4bf47195
EZ
7412009-11-28 Eli Zaretskii <eliz@gnu.org>
742
743 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
744 omitted dependencies on lisp.h.
745
c525b3f2
JD
7462009-11-27 Jan Djärv <jan.h.d@swipnet.se>
747
ece2d4ed
JD
748 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
749 is NULL.
750
751 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
752
753 * frame.c (frame_make_pointer_invisible)
3e0de07f 754 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
755 frame.
756
c525b3f2
JD
757 * search.c (simple_search): Remove warning by making *p const.
758
2f00e299
DN
7592009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
760
761 * xdisp.c (power_letter): Remove duplicate const.
762
084b049b
JD
7632009-11-25 Jan Djärv <jan.h.d@swipnet.se>
764
a1fadc6f
JD
765 * term.c (delete_tty): Remove check for last terminal (bug#4970).
766
5ce6e4f4 767 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
768 defaults (bug #5025).
769
28259cac
SM
7702009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
771
772 * insdel.c (adjust_markers_for_delete): Move it in the
773 right direction! (bug#4803)
774
e8e14166
YM
7752009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
776
777 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
778
779 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
780
86677b58
GM
7812009-11-24 Glenn Morris <rgm@gnu.org>
782
783 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
784
581e51e8
JD
7852009-11-23 Jan Djärv <jan.h.d@swipnet.se>
786
cfc86c7a
JD
787 * Makefile.in: Must create deps for ecrt0.o in its rule.
788
581e51e8
JD
789 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
790 because that is what Gtk+ font dialog understands.
791
792 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
793 of Fcopy_sequence.
794 (font_open_by_name): Put name given into QCname for font-object returned.
795
796 * frame.c (x_set_font): Save original font name as frame parameter
797 font-parameter.
798
799 * xsettings.c (set_default_xft_settings): New function.
800 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
801 is found.
802
8b264ecb
AS
8032009-11-22 Andreas Schwab <schwab@linux-m68k.org>
804
805 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
806 searching backwards through multibyte buffer.
807
872870b2
JD
8082009-11-21 Jan Djärv <jan.h.d@swipnet.se>
809
810 * xterm.c: #include xgselect.h.
811 (x_initialize): Call xgselect_initialize.
812
813 * xsettings.c (something_changedCB): C++ comments => C comments.
814 (init_gconf): Do not deal with any GLib file descriptors, xg_select
815 does that now.
816
817 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
818 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
819 (scroll_bar_button_cb): Remove.
5ce6e4f4 820 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
821 event.
822 (xg_create_scroll_bar): Don't bind button-press-event and
823 button-release-event.
824
825 * process.c: Include xgselect.h if defined (USE_GTK) ||
826 defined (HAVE_GCONF).
827 (wait_reading_process_output): Call xg_select for the same condition.
828
829 * xgselect.c (xg_select): New function to better integrate with
830 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
831
832 * xgselect.h: New file, declare xg_select, xgselect_initialize.
833
834 * Makefile.in (XOBJ): Add xgselect.o.
835
62a6e103
AS
8362009-11-21 Andreas Schwab <schwab@linux-m68k.org>
837
0b5397c2
SM
838 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
839 Remove ignored second argument. All callers changed.
62a6e103
AS
840 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
841 (RE_STRING_CHAR_AND_LENGTH): Likewise.
842 * xdisp.c (string_char_and_length): Likewise.
843
b0ca0f33
DN
8442009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
845
846 * xterm.c (x_new_font):
847 * print.c (print_object):
848 * cmds.c (Fself_insert_command): Move declarations before statements.
849
dd5a6279
CY
8502009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
851
852 * s/cygwin.h: Remove unneeded linker flags.
853
4a8e097d
JD
8542009-11-20 Jan Djärv <jan.h.d@swipnet.se>
855
0d1d0d26
JD
856 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
857
858 * xsettings.h: Declare xsettings_get_system_font.
859
860 * xsettings.c (xsettings_get_system_font): New function.
861 (init_gconf): No use initiating gconf unless we have Xft also.
862 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
863 HAVE_GCONF.
864
4a8e097d
JD
865 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
866 add a blank entry so it doesn't collapse into nothing.
867
8ab1650e
SM
8682009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
869
870 * lread.c (Funintern): Comment out last change.
871
82c602f0
RS
8722009-11-19 Richard Stallman <rms@gnu.org>
873
874 * lread.c (Funintern): Error if symbol is t or nil.
875
87e32266
SM
8762009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
877
878 * insdel.c (make_gap_larger): Don't make as many assumptions about the
879 representation of Lisp integers.
880 Reported by MJ Chan <mjchan.inbox@gmail.com>.
881
1b9ac145
AS
8822009-11-17 Andreas Schwab <schwab@linux-m68k.org>
883
884 * lisp.h: Remove declaration of Ffont_get_system_font.
885 * xfns.c: Move include of "xsettings.h".
886 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
887
dfb3c4c6
JD
8882009-11-17 Jan Djärv <jan.h.d@swipnet.se>
889
87e32266
SM
890 * xsettings.c (something_changedCB, Ffont_get_system_font):
891 Check use_system_font.
dfb3c4c6
JD
892 (syms_of_xsettings): DEFVAR font-use-system-font.
893
9370c1d8
AS
8942009-11-17 Andreas Schwab <schwab@linux-m68k.org>
895
25fe851a
AS
896 * xfns.c (x_default_font_parameter): Remove dead assignment.
897
9370c1d8
AS
898 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
899
637fa988
JD
9002009-11-17 Jan Djärv <jan.h.d@swipnet.se>
901
87e32266 902 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 903 not have FC_LCD_*. #define them if not there.
a6eb20d8 904
87e32266 905 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 906
637fa988
JD
907 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
908
909 * xterm.c (handle_one_xevent): Call xft_settings_event for
910 ClientMessage, PropertyNotify and DestroyNotify.
911 (x_term_init): If we have XFT, get DPI from Xft.dpi.
912 Call xsettings_initialize.
913
914 * xftfont.c (xftfont_fix_match): New function.
915 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
916 Call xftfont_fix_match after XftFontMatch.
917
918 * xfont.c (xfont_driver): Initialize all members.
919
87e32266
SM
920 * xfns.c (x_default_font_parameter):
921 Try font from Ffont_get_system_font.
637fa988
JD
922 Do not get font from x_default_parameter if we got one from
923 Ffont_get_system_font.
87e32266 924 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
925
926 * w32font.c (w32font_driver): Initialize all members.
927
928 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
929
930 * lisp.h: Declare syms_of_xsettings.
931
87e32266
SM
932 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
933 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
934
935 * ftfont.c (ftfont_filter_properties): New function.
936
937 * frame.c (x_set_font): Remove unused variable lval.
938
87e32266 939 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
940
941 * font.c (font_put_extra): Don't return if val is nil, it means
942 boolean option is off.
943 (font_parse_fcname): Collect all extra properties in extra_props
944 and call filter_properties for all drivers with extra_props and
945 font as parameter.
87e32266
SM
946 (font_open_entity): Do not use cache, it does not pick up new
947 fontconfig settings like hinting.
637fa988
JD
948 (font_load_for_lface): If spec had a name in it, store it in entity.
949
950 * emacs.c (main): Call syms_of_xsettings
951
952 * config.in: HAVE_GCONF is new.
953
954 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
955 xsettings.o is new.
956
5a942932
KH
9572009-11-17 Kenichi Handa <handa@m17n.org>
958
959 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
960 back to the default font in case that no suitable font is found.
961
b7c7a4d1
SM
9622009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
963
964 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
965 Suggested by Chad Brown <yandros@mit.edu>.
966 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
967
072f1e39
JD
9682009-11-16 Jan Djärv <jan.h.d@swipnet.se>
969
970 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
971
5d1e70a2
AS
9722009-11-14 Andreas Schwab <schwab@linux-m68k.org>
973
87e32266 974 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 975
a53cfbe5
JD
9762009-11-14 Jan Djärv <jan.h.d@swipnet.se>
977
473a99b7
JD
978 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
979 has a parent.
980
a53cfbe5 981 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 982 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
983
984 * config.in: Generated (AUTO_DEPEND).
985
f04bb9b2
MA
9862009-11-13 Michael Albinus <michael.albinus@gmx.de>
987
b7c7a4d1 988 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
989 Vdbus_registered_functions_table, because it contains also
990 properties. Fix docstring.
b7c7a4d1 991 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 992
8f11f7ec
SM
9932009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 * alloc.c (mark_object): Don't reprocess marked strings.
996 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
997 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
998
8a605fe8
KH
9992009-11-13 Kenichi Handa <handa@m17n.org>
1000
8f11f7ec 1001 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1002 semantics of Vword_combining_categories.
1003 (Vword_combining_categories): Describe the slight change of the
1004 semantics.
1005
241c4680
EZ
10062009-11-13 Eli Zaretskii <eliz@gnu.org>
1007
1008 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1009
1010 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1011
5d58e44c
SM
10122009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1013
1014 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1015
5e13f9d3
JB
10162009-11-12 Juanma Barranquero <lekktu@gmail.com>
1017
1018 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1019
cf54c754
DR
10202009-11-11 David Reitter <david.reitter@gmail.com>
1021
1022 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1023 variables to fix 2009-11-09 change.
1024
a4ada374
DN
10252009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1026
91433552
DN
1027 * process.c (ifflag_def): Make flag_sym constant.
1028 (Fnetwork_interface_info): Use a constant pointer.
1029 (ifflag_table):
1030 * xfns.c (cursor_bits):
1031 * xdisp.c (power_letter):
1032 * termcap.c (speeds, esctab):
1033 * sysdep.c (baud_convert):
1034 * keyboard.c (lispy_accent_codes, modifier_names):
1035 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1036 (jpeg_format, tiff_format, gif_format, svg_format)
1037 (interlace_start, interlace_increment, gs_format):
1038 * gtkutil.c (separator_names):
1039 * fringe.c (swap_nibble):
1040 * fns.c (base64_value_to_char, base64_char_to_value):
1041 * fileio.c (make_temp_name_tbl):
1042 * coding.c (suffixes): Make constant.
1043
f4265f6c
DN
1044 * frame.c (make_initial_frame):
1045 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1046 build_string.
1047 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1048
04420943
DN
1049 * s/freebsd.h:
1050 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1051
0a5d24ae
DN
1052 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1053 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1054
a4ada374
DN
1055 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1056 * xterm.c (syms_of_xterm):
1057 * xfaces.c (syms_of_xfaces):
1058 * xdisp.c (syms_of_xdisp):
1059 * lread.c (syms_of_lread):
1060 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1061 build_string.
91433552 1062
a4ada374
DN
1063 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1064
af98fc7f
SM
10652009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1066
8ab1650e 1067 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1068
e90292a9
JD
10692009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1070
1071 * keyboard.h: Declare timer_check.
1072
1073 * keyboard.c (timer_check_2): New function that does what the old
1074 timer_check did.
1075 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1076 returned, i.e. don't return -1 with timers pending.
1077
1078 * process.c: Remove extern declaration of timer_check.
1079
1080 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1081 even if timer_check returned -1.
1082
af98fc7f
SM
1083 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1084 xg_dialog_data.
e90292a9
JD
1085 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1086 the event loop.
1087 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1088 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1089 Destroy the dialog after xg_dialog_run.
1090
045b83c0
SM
10912009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1094
1fb99a3a
JD
10952009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1096
1097 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1098
04e452cb
JB
10992009-11-09 Juanma Barranquero <lekktu@gmail.com>
1100
1101 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1102
ef7417fd
SM
11032009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1104
1105 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1106 w32menu.c, and nsmenu.m.
1107 Simplify the obsolete case where position is nil.
1108 (cleanup_popup_menu): New function, moved from nsmenu.m.
1109 (struct skp): Remove slot `notreal'.
1110 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1111 adjust callers.
1112 (single_menu_item): Adjust call to parse_menu_item.
1113 (syms_of_menu): Defsubr x-popup-menu.
1114 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1115 (keymap_panes): Don't export any more.
1116 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1117 (xmenu_show): Declare.
1118 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1119 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1120 * keyboard.h (parse_menu_item): Update declaration.
1121 * xmenu.c (Fx_popup_menu): Remove.
1122 (syms_of_xmenu): Don't defsubr x-popup-menu.
1123 * w32menu.c (Fx_popup_menu): Remove.
1124 (syms_of_w32menu): Don't defsubr x-popup-menu.
1125 * nsmenu.m (cleanup_popup_menu): Remove.
1126 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1127 moved to menu.c's Fx_popup_menu.
1128 (Fx_popup_menu): Remove.
1129 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1130 menu_items (it's done in menu.c already).
1131
424d6179
SM
11322009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1135 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1136
c0df13a6 11372009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1138
1139 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1140 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1141 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1142 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1143
2de9f71c
SM
11442009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1145
1146 Let integers use up 2 tags to give them one extra bit and thus double
1147 their range.
1148 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1149 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1150 New macros.
1151 (enum Lisp_Type): Use them. Give explicit values.
1152 (Lisp_Type_Limit): Remove.
1153 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1154 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1155 Pay attention to USE_2_TAGS_FOR_INTS.
1156 (INTEGERP): Use LISP_INT_TAG_P.
1157 * fns.c (internal_equal): Simplify the default case.
1158 (sxhash): Use case_Lisp_Int.
1159 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1160 any more.
1161 (Ftype_of): Use case_Lisp_Int.
1162 (store_symval_forwarding): Take into account the fact that Ints can
1163 now have more than one tag.
1164 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1165 buffer_slot_type_mismatch):
1166 * xfaces.c (face_attr_equal_p):
1167 * print.c (print_object):
1168 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1169 Use case_Lisp_Int.
1170
323637a2
EZ
11712009-11-06 Eli Zaretskii <eliz@gnu.org>
1172
7ac65b38
EZ
1173 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1174
323637a2
EZ
1175 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1176 warning.
1177
e511451f
JD
11782009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1179
1180 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1181
1182 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1183
1184 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1185 ButtonPressRelease and MotionNotify (bug#4870).
1186
5e2327cf
DN
11872009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1188
5adc433e
DN
1189 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1190
d67b4f80
DN
1191 * xterm.c (syms_of_xterm):
1192 * xselect.c (syms_of_xselect):
1193 * xmenu.c (syms_of_xmenu):
1194 * xfns.c (syms_of_xfns):
1195 * xfaces.c (syms_of_xfaces):
1196 * xdisp.c (syms_of_xdisp):
1197 * window.c (syms_of_window):
1198 * w32fns.c (syms_of_w32fns):
1199 * undo.c (syms_of_undo):
1200 * textprop.c (syms_of_textprop):
1201 * terminal.c (syms_of_terminal):
1202 * syntax.c (syms_of_syntax):
1203 * sound.c (syms_of_sound):
1204 * search.c (syms_of_search):
1205 * print.c (syms_of_print):
1206 * minibuf.c (syms_of_minibuf):
1207 * macros.c (syms_of_macros):
1208 * keymap.c (syms_of_keymap, initial_define_key)
1209 (initial_define_lispy_key):
1210 * keyboard.c (syms_of_keyboard):
1211 * insdel.c (syms_of_insdel):
1212 * image.c (syms_of_image):
1213 * fringe.c (syms_of_fringe):
1214 * frame.c (syms_of_frame):
1215 * fontset.c (syms_of_fontset):
1216 * fns.c (syms_of_fns):
1217 * fns.c (syms_of_fns):
1218 * fileio.c (syms_of_fileio):
1219 * fileio.c (syms_of_fileio):
1220 * eval.c (syms_of_eval):
1221 * doc.c (syms_of_doc):
1222 * dispnew.c (syms_of_display):
1223 * dired.c (syms_of_dired):
1224 * dbusbind.c (syms_of_dbusbind):
1225 * data.c (syms_of_data):
1226 * composite.c (syms_of_composite):
1227 * coding.c (syms_of_coding):
1228 * cmds.c (syms_of_cmds):
1229 * charset.c (define_charset_internal, syms_of_character):
1230 * ccl.c (syms_of_ccl):
1231 * category.c (syms_of_category, init_category_once):
1232 * casetab.c (syms_of_casetab):
1233 * casefiddle.c (syms_of_casefiddle):
1234 * callint.c (syms_of_callint):
1235 * bytecode.c (syms_of_bytecode):
1236 * buffer.c (keys_of_buffer, syms_of_buffer):
1237 * alloc.c (syms_of_alloc):
1238 * process.c (syms_of_process, init_process):
1239 * lread.c (syms_of_lread, init_obarray):
1240 * font.c (build_style_table):
1241 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1242 intern_c_string, calls to make_pure_string with
1243 make_pure_c_string. Use pure_cons instead of Fcons.
1244
5e2327cf
DN
1245 * process.c (socket_options): Make it const.
1246 (set_socket_option, init_process): Use a const pointer.
1247
1248 * lread.c (intern_c_string): New function.
1249 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1250 (defvar_int): Uset it. Make the name const char*.
1251
1252 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1253 (defvar_int): Update prototypes.
1254 (DEFUN, EXFUN): Support for prototypes is now required.
1255 (intern_c_string): New prototype.
1256 (struct Lisp_Subr): Make symbol_name constant.
1257
1258 * font.c (struct table_entry): Remove unused member. Make NAMES
1259 constant.
1260 (weight_table, slant_table, width_table): Make constant.
1261
1262 * emacs.c (struct standard_args): Make name and longname constant.
1263
1264 * character.h (DEFSYM): Use intern_c_string.
1265
a56eaaef
DN
12662009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1267
1268 * alloc.c (make_pure_c_string): New function.
1269
1270 * eval.c (Fautoload): Purecopy all arguments.
1271
f6a07420
KH
12722009-11-05 Kenichi Handa <handa@m17n.org>
1273
1274 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1275 the buffer in case of replace.
1276
5d28d4b1
DN
12772009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1278
1279 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1280
b349d111
SM
12812009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1282
d528b1ce
SM
1283 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1284 when applicable (bug#4851).
1285
b349d111
SM
1286 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1287 (P_): Support for prototypes is now required.
1288
c38eb027
CY
12892009-10-31 Chong Yidong <cyd@stupidchicken.com>
1290
1291 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1292 (Bug#4827).
1293
0405f8d9
EZ
12942009-10-30 Eli Zaretskii <eliz@gnu.org>
1295
d528b1ce 1296 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1297
ca0a881a
DN
12982009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1299
1300 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1301
d528b1ce
SM
1302 * lread.c (Fload): Purecopy the file name when building
1303 Vpreloaded_file_list.
ca0a881a 1304
47e0e0e4
JR
13052009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1306
1307 * w32fns.c (syms_of_w32fns): Change default value of
1308 w32-scroll-lock-modifier to nil. (Bug#2827)
1309
057bce6f
JB
13102009-10-26 Juanma Barranquero <lekktu@gmail.com>
1311
782a943e 1312 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1313
242bc74c
AS
13142009-10-26 Andreas Schwab <schwab@redhat.com>
1315
1316 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1317
522d013a
JB
13182009-10-26 Juanma Barranquero <lekktu@gmail.com>
1319
1320 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1321 For delta < 0, skip check that only makes sense when the mini-window
1322 is going to be enlarged. (Bug#4534)
1323
18060980
CY
13242009-10-25 Chong Yidong <cyd@stupidchicken.com>
1325
1326 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1327 string in menu maps (Bug#4471).
1328
fec8f0fe
CY
13292009-10-24 Chong Yidong <cyd@stupidchicken.com>
1330
1331 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1332 FRAME_NS_VIEW on terminal frames (Bug#4765).
1333
10d66ec0
AS
13342009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1335
1cae01f7
AS
1336 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1337 DBUS_TYPE_UINTnn separately to get proper sign extension.
1338
58a12889
AS
1339 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1340 can properly handle unsigned types.
d528b1ce 1341 (make_uid, make_gid): Remove.
58a12889 1342
987c9327
AS
1343 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1344 types again.
1345
522d013a 1346 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1347 (system_process_attributes): Likewise.
1348
905a9ed3
DN
13492009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1350
1351 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1352
1353 * eval.c (Fautoload): Purecopy the filename. Simplify.
1354
1355 * category.c (Fdefine_category): Purecopy docstring.
1356
a599b3e8
AS
13572009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1358
7b792fc9
AS
1359 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1360
a599b3e8
AS
1361 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1362
b35ac83e
CY
13632009-10-23 Chong Yidong <cyd@stupidchicken.com>
1364
1365 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1366 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1367 (Bug#4775).
1368
e8903e00
SM
13692009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1370
1371 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1372 (init_fileio_once):
1373 * lisp.h (init_fileio_once): Remove.
1374 * emacs.c (main): Don't call init_fileio_once.
1375
8f43cbf3
DN
13762009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1377
1378 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1379
26898943
AS
13802009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1381
1382 * doprnt.c (doprnt): Fix overflow check.
1383
5c646d5a
JD
13842009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1385
3132a7ea
JD
1386 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1387
5c646d5a
JD
1388 * xterm.h (x_wait_for_event): Declare it.
1389
1390 * xterm.c (pending_event_wait): New variable.
1391 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1392 see pending_event_wait.eventtype.
1393 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1394 (x_new_font): Call change_frame_size with new rows/columns before we
1395 try to resize the frame.
5c646d5a 1396 (x_wait_for_event): New function.
d528b1ce
SM
1397 (x_set_window_size_1): Don't change gravity unless change_gravity
1398 is set.
5c646d5a
JD
1399 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1400 don't change frame size, instead wait for the ConfigureNotify.
1401 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1402 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1403 (x_initialize): Initialize pending_event_wait.
1404
1405 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1406 size.
1407
1408 * widget.c (EmacsFrameSetValues): Add comment.
1409 (EmacsFrameSetCharSize): Just call x_set_window_size.
1410
1411 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1412 x_wait_for_event.
d528b1ce 1413 (flush_and_sync): Remove again.
5c646d5a
JD
1414 (xg_get_font_name): Suggest monospace if no previous font is known.
1415
e9c1637d
SM
14162009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1419 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1420
5a72cccb
YM
14212009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1422
1423 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1424 processing pending events when event is filtered for input method.
ab04798f 1425 (Bug#3681)
5a72cccb 1426
2629aa37
JB
14272009-10-20 Juanma Barranquero <lekktu@gmail.com>
1428
1429 * fns.c: Add #endif accidentally removed in previous change.
1430
c3417a74
DN
14312009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1432
1433 * fns.c: Remove code for unsupported system: MAC_OS.
1434 * image.c: Likewise. Include setjmp.h.
1435
9685cef2
JD
14362009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1437
1438 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1439 pixel -1 (bug #4742).
1440
d7306fe6
DN
14412009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1442
019d2c4c
DN
1443 * process.c (create_pty): Remove conditionals for no longer
1444 supported systems: UNIPLUS and RTU.
1445
ee6bacd4
DN
1446 * xterm.c:
1447 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1448
d7306fe6
DN
1449 * alloc.c: Do not define struct catchtag.
1450 * eval.c: Move struct catchtag definition ...
1451 * lisp.h: ... here.
1452
1453 * image.c: Move png.h #include earlier to avoid warnings.
1454
1455 * xterm.c:
1456 * xsmfns.c:
1457 * xselect.c:
1458 * xrdb.c:
1459 * xmenu.c:
1460 * xftfont.c:
1461 * xfont.c:
1462 * xfns.c:
1463 * xfaces.c:
1464 * xdisp.c:
1465 * window.c:
1466 * widget.c:
1467 * w32xfns.c:
1468 * w32uniscribe.c:
1469 * w32term.c:
1470 * w32select.c:
1471 * w32reg.c:
1472 * w32proc.c:
1473 * w32menu.c:
1474 * w32inevt.c:
1475 * w32heap.c:
1476 * w32font.c:
1477 * w32fns.c:
1478 * w32console.c:
1479 * w32.c:
1480 * w16select.c:
1481 * vm-limit.c:
1482 * unexsol.c:
1483 * unexec.c:
1484 * unexcw.c:
1485 * unexaix.c:
1486 * undo.c:
1487 * tparam.c:
1488 * textprop.c:
1489 * terminfo.c:
1490 * terminal.c:
1491 * termcap.c:
1492 * term.c:
1493 * syntax.c:
1494 * sound.c:
1495 * sheap.c:
1496 * search.c:
1497 * scroll.c:
1498 * region-cache.c:
1499 * regex.c:
1500 * ralloc.c:
1501 * process.c:
1502 * print.c:
b024548b
DN
1503 * nsterm.m:
1504 * nsselect.m:
1505 * nsmenu.m:
1506 * nsimage.m:
1507 * nsfont.m:
1508 * nsfns.m:
d7306fe6
DN
1509 * msdos.c:
1510 * minibuf.c:
1511 * menu.c:
1512 * marker.c:
1513 * macros.c:
1514 * keymap.c:
1515 * keyboard.c:
1516 * intervals.c:
1517 * insdel.c:
1518 * indent.c:
1519 * gtkutil.c:
1520 * ftxfont.c:
1521 * ftfont.c:
1522 * fringe.c:
1523 * frame.c:
1524 * fontset.c:
1525 * font.c:
1526 * fns.c:
1527 * floatfns.c:
1528 * filelock.c:
1529 * fileio.c:
1530 * emacs.c:
1531 * editfns.c:
1532 * dosfns.c:
1533 * doprnt.c:
1534 * doc.c:
1535 * dispnew.c:
1536 * dired.c:
1537 * dbusbind.c:
1538 * data.c:
1539 * composite.c:
1540 * coding.c:
1541 * cmds.c:
1542 * cm.c:
1543 * chartab.c:
1544 * charset.c:
1545 * character.c:
1546 * ccl.c:
1547 * category.c:
1548 * casetab.c:
1549 * casefiddle.c:
1550 * callproc.c:
1551 * callint.c:
1552 * bytecode.c:
1553 * buffer.c:
1554 * atimer.c: Include setjmp.h. (Bug#4643)
1555
fd5f21e6
SM
15562009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1557
4c0354d7
SM
1558 Remove leftover table unibyte_to_multibyte_table.
1559 * character.c (unibyte_to_multibyte_table): Remove.
1560 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1561 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1562 * character.h (UNIBYTE_TO_CHAR): New macro.
1563 (MAKE_CHAR_MULTIBYTE): Use it.
1564 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1565 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1566 (message_dolog, set_message_1):
1567 * search.c (Freplace_match):
1568 * editfns.c (Fcompare_buffer_substrings):
1569 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1570 (concat):
1571 * insdel.c (copy_text, count_size_as_multibyte):
1572 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1573 * term.c (produce_glyphs):
1574 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1575 * regex.c (RE_CHAR_TO_MULTIBYTE):
1576 * cmds.c (internal_self_insert):
1577 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1578
fd5f21e6
SM
1579 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1580
4418646e
DN
15812009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1582
1583 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1584
35f5c1d2
JB
15852009-10-16 Juanma Barranquero <lekktu@gmail.com>
1586
1587 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1588
a0cd8f6b
AR
15892009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1590
1591 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1592 still needed under Tiger.
1593
1594 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1595
1596 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1597 __Apple__.
1598
1599 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1600
01a8d3fa
KH
16012009-10-15 Kenichi Handa <handa@m17n.org>
1602
1603 * print.c (print_object): Escape a symbol like "2E10" too.
1604
bf6c75c9 16052009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1606
1607 Cleanups and changes for 64-bit compile under Snow Leopard.
1608 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1609
1610 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1611
c5959062 1612 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1613 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1614 cast argument.
1615 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1616 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1617
1618 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1619
1620 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1621 where appropriate.
1622
1623 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1624 where appropriate.
6e4780c5
JB
1625 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1626 Use stringWithUTF8String.
bf6c75c9
AR
1627 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1628
6e4780c5
JB
1629 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1630 Add formal protocol mention to inheritance.
bf6c75c9
AR
1631 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1632
6e4780c5
JB
1633 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1634 Fix printf format.
bf6c75c9
AR
1635 (ns_query_color): Use CGFloat where appropriate.
1636 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1637 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1638 argument.
1639
3d87f118
AR
1640 * config.in (NS_HAVE_NSINTEGER): Drop.
1641
a95c8102
AR
1642 * dbusbind.c (dbus-method-return-internal)
1643 (dbus-method-error-internal): Use long format in printf, and cast
1644 argument.
1645
1646 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1647 in printf, and cast argument.
1648
6873acca 1649 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1650 cast argument.
1651
9ec6f100
GM
16522009-10-11 Glenn Morris <rgm@gnu.org>
1653
1654 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1655
5be883cd
JD
16562009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1657
1658 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1659 menu bar with a small width so it doesn't enlarge the frame.
1660
d7a39b51
JB
16612009-10-08 Juanma Barranquero <lekktu@gmail.com>
1662
1663 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1664
0c2b6f8e
GM
16652009-10-06 Glenn Morris <rgm@gnu.org>
1666
1667 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1668 SOME_MACHINE_LISP (this enters indirectly via DOC).
1669
e02131a2
EZ
16702009-10-05 Eli Zaretskii <eliz@gnu.org>
1671
1672 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1673
b4744254
EZ
16742009-10-04 Eli Zaretskii <eliz@gnu.org>
1675
1676 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1677 Doc fix.
1678
dbf64827
JB
16792009-10-03 Martin Rudalics <rudalics@gmx.at>
1680
1681 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1682
e9a0aef8
MA
16832009-10-02 Michael Albinus <michael.albinus@gmx.de>
1684
d528b1ce 1685 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1686 used anymore outside fileio.c.
1687
1688 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1689
64eb2b56
JB
16902009-10-01 Juanma Barranquero <lekktu@gmail.com>
1691
1692 * lisp.h (Qdelete_directory_internal):
1693 Declare, instead of Qdelete_directory.
1694
1695 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1696
9d28c33e
SM
16972009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1698
1699 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1700
9d8f3bd9
MA
17012009-10-01 Michael Albinus <michael.albinus@gmx.de>
1702
9d28c33e 1703 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1704 Fdelete_directory. It is not a command anymore. It has no file
1705 name handler.
1706
9694740b
SM
17072009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1708
1709 * xdisp.c (get_next_display_element): Use an enum in last change.
1710
748e162f
KH
17112009-09-28 Kenichi Handa <handa@m17n.org>
1712
9694740b 1713 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1714 unibyte_display_via_language_environment in handling
1715 Vnobreak_char_display.
1716
17efd58d
AR
17172009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1718
1719 * nsterm.h (ns_app_name): New extern variable.
1720
1721 * nsterm.m (ns_app_name): New variable.
1722 (ns_term_init): Set and use it.
1723 (ns_term_shutdown): Use it.
1724
1725 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1726 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1727
1728 * nsfns.m (ns_set_name_iconic, ns_set_name)
1729 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1730 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1731
9694740b
SM
1732 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1733 Remove double-casting in client_data comparison.
31c2d412 1734
3208cb35
YM
17352009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1736
1737 * keyboard.c (make_lispy_event): Remember last wheel direction.
1738 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1739
b7d552d6
GM
17402009-09-26 Glenn Morris <rgm@gnu.org>
1741
1742 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1743 internal.elc. Add term/pc-win.elc.
1744 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1745 term/x-win.elc.
1746 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1747 term/w32-win.elc.
1748 (NS_SUPPORT): New.
1749 (lisp): Add NS_SUPPORT.
1750 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1751
4ff670a8
DR
17522009-09-25 David Reitter <david.reitter@gmail.com>
1753
1754 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1755 on Mac OS X 10.6+ (bug#4513).
1756
feabfb6c
JB
17572009-09-24 Juanma Barranquero <lekktu@gmail.com>
1758
1759 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1760 some parts of Emacs code (like font selection) don't grok them.
1761 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1762
de59072a
AS
17632009-09-24 Andreas Schwab <schwab@redhat.com>
1764
1765 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1766
a489517b
JB
17672009-09-24 Juanma Barranquero <lekktu@gmail.com>
1768
1769 * dired.c (Fdirectory_files): Fix typo in docstring.
1770
0592970c
AR
17712009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1772
1773 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1774 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1775 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1776 under GNUstep.
1777 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1778
1779 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1780 glyph advancement.
1781
48e8a88b
AR
17822009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1783
1784 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1785 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1786
1787 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1788 deleted (bug #4492).
1789
e14f0a78
AR
1790 * nsfont.m (Vns_reg_to_script): New lisp variable.
1791 (syms_of_nsfont): Declare it.
1792 (ns_registry_to_script): New function.
1793 (ns_get_req_script): Call it.
1794 (ns_findfonts): Don't give up on non-unicode registry.
1795
1796 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1797
5b650faa
SM
17982009-09-20 Tom Tromey <tromey@redhat.com>
1799
1800 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1801 batch mode (bug#4228).
1802
a489517b 18032009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1804
1805 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1806 carefully. (Bug #4339)
0bae4e09 1807
fcfe06f3
CY
18082009-09-18 Chong Yidong <cyd@stupidchicken.com>
1809
d798ba87 1810 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1811
31642728
AR
18122009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1813
1814 * emacs.c (inhibit_x_resources): Update doc string for NS.
1815 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1816 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1817
1818 * nsterm.h (ns_no_defaults): Remove.
1819
1820 * nsterm.m (ns_no_defaults): Remove.
1821 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1822 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1823 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1824 don't update the NSWindow itself.
1825 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1826 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1827
1828 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1829 ns_use_qd_smoothing.
1830
1831 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1832 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1833 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1834 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1835
8686ac71
JB
18362009-09-17 Juanma Barranquero <lekktu@gmail.com>
1837
1838 * emacs.c (inhibit_x_resources): New variable.
1839 (main) [HAVE_NS]: Don't process --quick command line option.
1840 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1841
1842 * lisp.h (inhibit_x_resources): Declare it extern.
1843
1844 * w32reg.c (x_get_string_resource):
1845 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1846
e227ba05
EZ
18472009-09-17 Eli Zaretskii <eliz@gnu.org>
1848
362654a6
JB
1849 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1850 Add lisp/term/internal.elc.
e227ba05 1851
742d40e8
SM
18522009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1853
1854 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1855 (bug#4461).
1856
005bd5a2
DN
18572009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1858
1859 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1860
1861 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1862 (OBJECTS_MACHINE): Remove, unused.
1863
f9af9719
SM
18642009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1865
1866 * frame.c (x_get_resource_string): Remove unused.
1867
0307c7d2
JD
18682009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1869
1870 * xterm.c (x_new_font): Call change_frame_size before calling
1871 x_set_window_size, in case frame size won't change.
1872
1873 * frame.c (x_set_font): Remove dead code.
1874
428b13d6
SM
18752009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1876
1877 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1878
5766c380
SM
18792009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * lread.c (Fload): Don't output a message after loading an obsolete
1882 package any more (done in Lisp now).
1883
2fd0161b
CY
18842009-09-12 Chong Yidong <cyd@stupidchicken.com>
1885
1886 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1887
bc5e75b6
SM
18882009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1889
1890 * keymap.c (Fwhere_is_internal): Use nconc2.
1891
c31c985e
AM
18922009-09-11 Alan Mackenzie <acm@muc.de>
1893
1894 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1895 batch mode.
1896
78012bd2
AS
18972009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1898
1899 * xdisp.c (display_mode_element): Detect cycles.
1900
9d889332
SM
19012009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1902
1903 * keymap.c (where_is_internal): Don't erroneously return nil right after
1904 filling the cache.
1905 (where_is_internal_1): Fix up typo.
1906
7ab5d780
GM
19072009-09-11 Glenn Morris <rgm@gnu.org>
1908
1909 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1910 share a common doc-string.
1911
5238a749
SM
19122009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1913
66d77eda
SM
1914 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1915 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1916
5238a749
SM
1917 * keymap.c (QCadvertised_binding): New constant.
1918 (syms_of_keymap): Initialize it.
1919 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1920 if applicable.
1921
19f48442
SM
19222009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1923
50d4ba39
SM
1924 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1925 (parse_menu_item): Streamline since bindings are recomputed all the
1926 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1927 more and don't support lmenu's menu-alias any more either.
1928
a88a5372
SM
1929 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1930 (where_is_internal): Strip it down to only traverse the keymaps.
1931 Move the cache handling from Fwhere_is_internal to here.
1932 (Fwhere_is_internal): Move the handling of remapping and the choice of
1933 the best binding from where_is_internal to here.
1934 Unify the cached/noncached paths, so remapping is also handled
1935 correctly when the cache is used, and so the cache can be used to
1936 speed up remap-handling when applicable.
1937 Give preference to non-remapped bindings.
1938 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1939 non-remapped bindings.
1940 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1941 command remapping.
1942
19f48442
SM
1943 * xdisp.c (display_mode_element): Move list length limit from 50 to
1944 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1945
599498c3 19462009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1947
1948 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1949
f9b7b5ac
SM
19502009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1951
a53af587
JB
1952 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1953 (Bug#4334)
1954
f9b7b5ac
SM
1955 * keymap.c (where_is_internal): Filter out shadowed remappings.
1956 Assume that where_is_internal returns unshadowed bindings to simplify
1957 the code and get rid of the gotos. Use ASIZE.
1958
04f4b72d
JD
19592009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1960
4da146f2
JD
1961 * xterm.c (x_focus_changed): If we get a focusout and pointer
1962 is invisible, make it visible.
1963
04f4b72d
JD
1964 * xterm.h: Remove condition for declaration of
1965 x_*_window_to_frame.
1966
7cef7ce3
SM
19672009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1970 initial terminal as well.
1971
a54fa5b7
JD
19722009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1973
1974 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1975 x_menubar_window_to_frame.
a54fa5b7
JD
1976
1977 * xterm.c: Remove declarations also in xterm.h
1978 (XTmouse_position): Do not return valid positions
1979 for clicks in the menubar and the toolbar for Gtk+.
1980
1981 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1982 if the widget for the event has the same top level as a frame,
1983 return the frame.
1984 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1985 internal windows, bug #4122.
1986 (x_non_menubar_window_to_frame): Remove.
1987
5a021dd0
GM
19882009-09-02 Glenn Morris <rgm@gnu.org>
1989
1990 * buffer.c (default-major-mode): Move most of the doc from here...
1991 (major-mode): ... to here.
1992
548fe2f3
NR
19932009-08-30 Nick Roberts <nickrob@snap.net.nz>
1994
1995 * process.c (wait_reading_process_output): Keep the descriptor
1996 when pty is used by a non-child process, e.g., in I/O buffer of
1997 GDB this allows inferior to be restarted.
1998
e0840eef
EZ
19992009-08-29 Eli Zaretskii <eliz@gnu.org>
2000
2001 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2002 both branches into one.
2003
82e98df4
SM
20042009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2005
2006 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2007 (main): Use enable-multibyte-characters rather than
2008 default-enable-multibyte-characters. Output a warning message when
2009 running a unibyte session.
2010
890617cb
YM
20112009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2012
2013 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2014 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2015 (copy_data_segment): Also copy __program_vars section.
2016 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2017 (dump_it) [LC_DYLD_INFO]: Use it.
2018
2019 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2020
e7adeadc
EZ
20212009-08-28 Eli Zaretskii <eliz@gnu.org>
2022
2023 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2024 $(SRC)/buildobj.h.
2025 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2026 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2027 $(SRC)/buildobj.h.
2028 (clean): Add buildobj.h.
2029
3ed8bbdc
TZ
20302009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2031
2032 * print.c (print_object): Set escapeflag to 1 when printing
2033 hashtable keys and values.
2034
155a6764
SM
20352009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2036
2037 * lread.c (read_integer): Use doubles (and potentially return a float
2038 number) as we do in string-to-number.
2039 (read1): Use strtol to read integers, signal errors on strtol's
2040 overflow and use floats if strtol's output is too large for
2041 Elisp integers.
2042
877610de
EZ
20432009-08-27 Eli Zaretskii <eliz@gnu.org>
2044
2045 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2046 (make-buildobj-SH): Fix last change.
2047 (SRC): Move to before where it's first used.
2048
ef73e7be
KH
20492009-08-27 Kenichi Handa <handa@m17n.org>
2050
550c8289
KH
2051 * process.c (send_process): Use encode_coding_object instead of
2052 encode_coding_string to perform eol-conversion even if the string
2053 is unibyte.
2054
60afa08d
KH
2055 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2056 character.
2057
ef73e7be 2058 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2059 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2060
7b3a82d7
DN
20612009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2062
5654bf63
DN
2063 * callproc.c (Fcall_process): Remove always true #if.
2064
7b3a82d7
DN
2065 * lisp.h: Replace #if 0 code for checking with text pointing to
2066 the --enable-checking configure flag.
2067
2068 * emacs.c (main): Mention the --enable-profiling configure flag
2069 instead of using CFLAGS.
2070
878bde49
KR
20712009-08-26 Ken Raeburn <raeburn@raeburn.org>
2072
2073 * Makefile.in (buildobj.h): New target.
2074 (doc.o): Depend on it.
2075 (temacs${EXEEXT}): Don't generate buildobj.lst.
2076 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2077 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2078 ($(BLD)/doc.$(O)): Depend on it.
2079 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2080 provided by Eli Zaretskii.)
2081 ($(TEMACS)): Don't generate buildobj.lst.
2082 * doc.c: Include buildobj.h.
2083 (buildobj): New static variable.
2084 (Fsnarf_documentation): Use it, instead of opening and reading
2085 buildobj.lst.
2086
1574224c
MA
20872009-08-25 Michael Albinus <michael.albinus@gmx.de>
2088
2089 * dbusbind.c (Fdbus_call_method)
2090 (Fdbus_call_method_asynchronously): Use English numeric format for
2091 timeout values in doc string.
2092
d9da2f45
KH
20932009-08-25 Kenichi Handa <handa@m17n.org>
2094
ef73e7be
KH
2095 * alloc.c (mark_char_table): New function.
2096 (mark_object): Use mark_char_table for a char-table.
2097
d9da2f45
KH
2098 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2099 (CHAR_TABLE_REF): Use it.
2100
c8edcc01
KR
21012009-08-23 Ken Raeburn <raeburn@raeburn.org>
2102
2103 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2104 before invoking the newly build emacs to check for load-path
2105 shadowing.
2106
7763401b
GM
21072009-08-22 Glenn Morris <rgm@gnu.org>
2108
2109 * Makefile.in (bootstrap_exe): New variable.
2110 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2111 Use ${bootstrap_exe}.
2112
729eadda
EZ
21132009-08-22 Eli Zaretskii <eliz@gnu.org>
2114
2115 * coding.h (encode_coding_string): Don't encode unibyte strings.
2116 (Bug#4047)
2117
eb4c6ace
MA
21182009-08-22 Michael Albinus <michael.albinus@gmx.de>
2119
2120 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2121
2122 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2123 intended as hotfix only.
2124 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2125
36e34d1b
AR
21262009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2127
2128 * nsterm.m (ns_get_color): Update documentation properly for last
2129 change, and clean up loose ends in the code left by it. Fix
2130 longstanding bug with 16-bit hex parsing, and add support for
2131 yet another X11 format (rgb:r/g/b) for compatibility.
2132 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2133 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2134
f983eb8a
SM
21352009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2136
2137 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2138
3f56d3c6
MA
21392009-08-20 Michael Albinus <michael.albinus@gmx.de>
2140
2141 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2142 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2143 (xd_initialize, xd_pending_messages): Check, whether
2144 $DBUS_SESSION_BUS_ADDRESS is set.
2145
fb641d68
YM
21462009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2147
2148 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2149
2150 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2151
cf59a374
GM
21522009-08-20 Glenn Morris <rgm@gnu.org>
2153
2154 * emacs.c (system-type): Doc fix.
2155
1373f3be
SM
21562009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2157
2158 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2159 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2160
058ed861
MA
21612009-08-18 Michael Albinus <michael.albinus@gmx.de>
2162
1373f3be
SM
2163 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2164 New functions.
058ed861
MA
2165 (xd_initialize): Revert change from 2009-08-16.
2166
563a866e 21672009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2168
2169 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2170 font-group vector, return nil.
5fc05db0 2171
e42bdf01
CY
21722009-08-17 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * process.c (status_notify): Don't perform redisplay.
2175 (Fdelete_process, list_processes_1, process_send_signal):
2176 Expliticly perform redisplay.
2177 (wait_reading_process_output): Always check process status, but
2178 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2179
4230ab74
KR
21802009-08-17 Ken Raeburn <raeburn@raeburn.org>
2181
1373f3be 2182 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2183 (XFLOAT_INIT): New macro for storing a float value.
2184 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2185 * fns.c (sxhash): Copy out the value of a float in order to
2186 examine its bytes.
2187 * dbusbind.c (xd_append_arg): Likewise.
2188
4230ab74
KR
2189 * emacs.c (main): Don't call syms_of_data twice.
2190
a0645cdd
MA
21912009-08-16 Michael Albinus <michael.albinus@gmx.de>
2192
2193 * dbusbind.c (xd_initialize): Add connection file descriptor to
2194 input_wait_mask, in order to let select() detect, whether a new
2195 message has been arrived.
ca4f31ea 2196 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2197
485db0ba
MA
21982009-08-15 Michael Albinus <michael.albinus@gmx.de>
2199
1373f3be
SM
2200 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2201 New functions.
485db0ba
MA
2202
2203 * lisp.h (xd_pending_messages): Declare.
2204
2205 * keyboard.c (readable_events): Call xd_pending_messages.
2206
b5b98ff4
CY
22072009-08-15 Chong Yidong <cyd@stupidchicken.com>
2208
1373f3be 2209 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2210
f8354c6e
CY
2211 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2212
b5b98ff4
CY
2213 * buffer.c (set_buffer_internal_1)
2214 (swap_out_buffer_local_variables): Check for unbound local
2215 variables (Bug#4138).
2216
8b9fc636
EZ
22172009-08-14 Eli Zaretskii <eliz@gnu.org>
2218
2219 * process.c (create_pty): Fix last change.
2220
ce959360
CY
22212009-08-13 Chong Yidong <cyd@stupidchicken.com>
2222
2223 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2224 (xbm_load_image): Caller changed.
64b807c9 2225 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2226
c7baf7e9
NR
22272009-08-13 Nick Roberts <nickrob@snap.net.nz>
2228
2229 * process.c (create_pty): New function.
2230 (Fstart_process): Use it to allow Emacs to just associate a pty
2231 with the buffer. See associated change in gdb-mi.el.
2232 (list_processes_1): Deal with no program name.
2233 (start_process_unwind): Use pid == -2 to mean no process.
2234
1ac9108a
SM
22352009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2236
2237 * cmds.c (nonundocount): New global variable.
2238 (keys_of_cmds): Initialize it.
2239 (Fself_insert_command): Use it to combine upto 20 sequential chars
2240 into a single undo entry, just like the Qself_insert_command code in
2241 keyboard.c does.
2242 Call frame_make_pointer_invisible, also like the Qself_insert_command
2243 code in keyboard.c does.
2244 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2245 than its own local replacement for it.
2246
e267324c
KR
22472009-08-10 Ken Raeburn <raeburn@raeburn.org>
2248
1ac9108a 2249 * fns.c (concat): Don't re-set string length to its current value.
77437343 2250
1ac9108a
SM
2251 * coding.h (decode_coding_string, encode_coding_string):
2252 Use SBYTES macro.
f0bed503 2253
1ac9108a 2254 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2255 (doprnt): Merge with doprnt1, discarding lispstrings code.
2256 * lisp.h (doprnt_lisp): Don't declare.
2257
416e006d
JL
22582009-08-07 Juri Linkov <juri@jurta.org>
2259
2260 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2261
6f7d5780
DN
22622009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2263
2264 * print.c (syms_of_print): Undo previous change.
2265
f19a0f5b
TZ
22662009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2267
2268 * lread.c (read1, syms_of_lread): Read hashtables back from the
2269 readable format.
2270
2271 * print.c (print_preprocess, print_object): Print hashtables fully
2272 and readably.
2273 (syms_of_print): Provide 'hashtable-print-readable.
2274
b9173dc2
AR
22752009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2276
2277 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2278 no family set.
2279 (nsfont_open): Handle case when entity has no family.
2280
1586503c
AR
22812009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2282
2283 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2284 element, not a list, for match case.
2285
087048cd
KH
22862009-07-28 Kenichi Handa <handa@m17n.org>
2287
2288 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2289 rigidly.
2290
2291 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2292 font_parse_xlfd. Check font properties more rigidly.
2293
780c2506
DN
22942009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2295
31fd7c5c
JB
2296 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2297 bsd-common.h.
780c2506 2298
a8c0cc18
KH
22992009-07-27 Kenichi Handa <handa@m17n.org>
2300
2301 * xfaces.c (face_with_height): Call font_clear_prop.
2302
4fbe2306
CY
23032009-07-26 Chong Yidong <cyd@stupidchicken.com>
2304
111d9af3
CY
2305 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2306
2307 * xterm.c (x_term_init): Use Qx.
2308
4fbe2306
CY
2309 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2310
1ac9108a 2311 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2312 (ns_get_color): Revert 2009-07-16 change.
2313
beb0b7f9
EZ
23142009-07-25 Eli Zaretskii <eliz@gnu.org>
2315
2316 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2317 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2318
2baf5e76
KR
23192009-07-25 Ken Raeburn <raeburn@raeburn.org>
2320
1ac9108a
SM
2321 * coding.h (decode_coding_string, encode_coding_string):
2322 Use SCHARS macro.
8890e5f5 2323
2baf5e76 2324 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2325 (load_depth): Delete.
2baf5e76
KR
2326 (Qload_in_progress): New variable.
2327 (load_unwind): Don't reference load_depth or load_in_progress.
2328 (Fload): Likewise; specbind Qload_in_progress instead.
2329 (init_lread): Don't initialize load_depth.
2330 (syms_of_lread): Initialize and protect Qload_in_progress.
2331
1395c6f5
AR
23322009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2333
2334 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2335
4e2f36cf
AR
23362009-07-23 Yavor Doganov <yavor@gnu.org>
2337
2338 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2339
5dd9a6f7
AR
23402009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2341
2342 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2343 Bugs 3792, 3720, 2402.
2344 (ns_lookup_indexed_color): Check for bad index.
2345 (ns_index_color): Init unused slot to 0.
2346 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2347 Bug 3714, possibly 3082.
5dd9a6f7 2348
c902b920
JR
23492009-07-22 Jason Rumney <jasonr@gnu.org>
2350
1ac9108a
SM
2351 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2352 Position IME window at cursor (Bug#2570).
c902b920
JR
2353 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2354 (globals_of_w32fns): Dynamically load functions required above.
2355
2356 * w32term.c (w32_draw_window_cursor): Send message to reposition
2357 any IME window.
2358
090101cf
CY
23592009-07-21 Chong Yidong <cyd@stupidchicken.com>
2360
2361 * fileio.c: Revert 2009-07-16 changes.
2362 (Vauto_save_include_big_deletions): New variable.
2363 (Fdo_auto_save): Disable auto-save only if
2364 auto-save-include-big-deletions is nil.
2365
e6583e3d
CY
23662009-07-21 Chong Yidong <cyd@stupidchicken.com>
2367
2368 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2369 the overflowed pixels into account (Bug#3879).
2370
ece435a5
KR
23712009-07-21 Ken Raeburn <raeburn@raeburn.org>
2372
2373 * lread.c (load_depth): New variable.
2374 (Fload, load_unwind, init_lread): Set it to the load recursion
2375 depth; set load_in_progress as a simple boolean based on the
2376 current load_depth. (Bug#3892)
2377
40b2d973
AR
23782009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2379
2380 * nsfont.m (ns_has_attribute): Remove.
2381 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2382
10be7e0d
JL
23832009-07-18 Juri Linkov <juri@jurta.org>
2384
2385 * process.c (Fset_process_query_on_exit_flag): Mention killing
2386 a buffer in docstring.
2387
fa055055
KH
23882009-07-17 Kenichi Handa <handa@m17n.org>
2389
2390 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2391
042f7b69
YM
23922009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2393
2394 * nsfns.m (Fns_set_alpha): Remove function.
2395 (syms_of_nsfns): Don't defsubr it.
2396
2397 * nsterm.m (ns_get_color): Remove incompatible color formats.
2398 (ns_color_to_lisp): Generate #rrggbb color format string.
2399
4be941e3
RS
24002009-07-16 Richard Stallman <rms@gnu.org>
2401
2402 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2403 (Fset_buffer_auto_saved): Handle save_length = -2.
2404
4e6b227d
CY
24052009-07-16 Chong Yidong <cyd@stupidchicken.com>
2406
2407 * xterm.c (Qx_gtk_map_stock): New var.
2408
2409 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2410 of calling intern each time.
2411
a1856973
YM
24122009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2413
2414 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2415 does tiling.
2416
2417 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2418
497e54d8
KH
24192009-07-14 Kenichi Handa <handa@m17n.org>
2420
72d36834
KH
2421 * font.c (font_vconcat_entity_vectors): New function.
2422 (struct font_sort_data): New member font_driver_preference.
2423 (font_compare): Check font_driver_preference.
2424 (font_sort_entities): The format of the first argument changed.
2425 (font_delete_unmatched): Likewise.
2426 (font_list_entities): The return type changed.
2427 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2428 (font_find_for_lface): Adjuste for the above changes.
2429 Don't suppress the checking of C even if the repertory supports it.
2430 (Flist_fonts): Adjust for the above changes.
72d36834 2431
1ac9108a
SM
2432 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2433 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2434 Reject a font who has adstyle property that is different from a
2435 langname derived from registry property.
1ac9108a 2436 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2437
b6046155
EZ
24382009-07-13 Eli Zaretskii <eliz@gnu.org>
2439
2440 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2441 local copy of dirfilename.
2442
fb6b6049
KH
24432009-07-13 Kenichi Handa <handa@m17n.org>
2444
e2402a5e
KH
2445 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2446 against max_char.
2447
fb6b6049
KH
2448 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2449 calling XSYMBOL (sym).
2450
65156807
EZ
24512009-07-11 Eli Zaretskii <eliz@gnu.org>
2452
1ac9108a
SM
2453 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2454 New function.
2455 (directory_files_internal) [WINDOWSNT]:
2456 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2457 the filesystem of the directory is fast or slow.
2458
2459 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2460 file name.
2461 (is_slow_fs): New function.
2462 (stat): Use it to determine whether to issue more system calls to
2463 get accurate file attributes, when w32-get-true-file-attributes is
2464 `local'.
2465
e0ab5fcf
JD
24662009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2467
2468 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2469 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2470 parameter font-parameter as default to the font dialog.
2471
784ceded
KH
24722009-07-10 Kenichi Handa <handa@m17n.org>
2473
2474 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2475
fb8edc0b
EZ
24762009-07-09 Eli Zaretskii <eliz@gnu.org>
2477
1ac9108a 2478 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2479
fb8edc0b
EZ
2480 * w32.c (stat): Treat UNC file names as residing on remote
2481 drives. (Bug#3542)
2482
635c75b1
KH
24832009-07-09 Kenichi Handa <handa@m17n.org>
2484
2485 * fontset.c (fontset_find_font): Fix previous change.
2486
c1d5ce94
MA
24872009-07-08 Michael Albinus <michael.albinus@gmx.de>
2488
2489 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2490 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2491 error flag.
2492
edb61b39
KH
24932009-07-08 Kenichi Handa <handa@m17n.org>
2494
374bf7e4
KH
2495 * fontset.c (fontset_find_font): Fix the logic of handling
2496 charset_matched.
2497 (font_for_char): Delete unused var.
2498 (generate_ascii_font_name): Delete it.
2499
edb61b39
KH
2500 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2501
2502 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2503 (encode_coding_sjis): Fix the code range check.
2504
0f3f018c
CY
25052009-07-07 Chong Yidong <cyd@stupidchicken.com>
2506
2507 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2508 (Fexpand_file_name): Copy string data properly (Bug#3772).
2509
fcaf6f3a
JD
25102009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2511
2512 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2513 first MapNotify.
2514
6809ca75
KH
25152009-07-07 Kenichi Handa <handa@m17n.org>
2516
2517 * character.h (unibyte_has_multibyte_table): Delete extern.
2518 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2519
2520 * charset.c (Fset_charset_priority): Update charset_unibyte.
2521 (syms_of_charset): Initialize charset_unibyte.
2522
2523 * character.c (unibyte_has_multibyte_table): Delete it.
2524 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2525 charset_unibyte.
2526 (multibyte_char_to_unibyte_safe): Likewise.
2527 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2528
1ac9108a 2529 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2530 (x_produce_glyphs): Likewise.
2531
2532 * .gdbinit (xcharset): Fix the treating $arg0.
2533
ad9e2d54
EZ
25342009-07-04 Eli Zaretskii <eliz@gnu.org>
2535
2536 Emulation of `getloadavg' on MS-Windows.
2537 * w32.c: Include float.h
2538 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2539 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2540 (get_native_system_info, get_system_times): New functions.
2541 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2542 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2543 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2544 g_b_init_get_system_times, and num_of_processors.
2545
0a3472c7
JR
25462009-07-03 Jason Rumney <jasonr@gnu.org>
2547
2548 * w32term.c (w32_initialize): Use standard types.
2549
80904120
EZ
25502009-07-03 Eli Zaretskii <eliz@gnu.org>
2551
2552 * dired.c (Ffile_attributes): Decode user and group names by the
2553 locale's encoding. (Bug#3443)
2554
6978862d
DN
25552009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2556
f8d23104
DN
2557 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2558 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2559
2560 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2561
2562 * term.c (init_tty): Remove spurious #ifdef.
2563
6978862d
DN
2564 * m/mips.h: Mention this file is also used for netbsd.
2565 * m/pmax.h: Remove file.
2566
e044e4fc
JD
25672009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2568
2569 * xterm.h (struct x_display_info): Add invisible_cursor.
2570 (struct x_output): Add current_cursor.
2571
2572 * xterm.c (XTtoggle_invisible_pointer): New function.
2573 (x_define_frame_cursor): Don't define cursor if invisible or the
2574 same as before. Set current_cursor.
2575 (x_create_terminal): Set toggle_invisible_pointer_hook.
2576
2577 * xfns.c (make_invisible_cursor): New function.
2578 (x_set_mouse_color): Call make_invisible_cursor.
2579 Set current_cursor.
2580 (x_window): Set current_cursor.
2581
2582 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2583
2584 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2585 inserting a character.
2586 (read_avail_input): Call frame_make_pointer_visible.
2587
2588 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2589 (frame_make_pointer_invisible, frame_make_pointer_visible):
2590 New functions.
e044e4fc
JD
2591 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2592
2593 * frame.h: Declare frame_make_pointer_invisible and
2594 frame_make_pointer_visible.
2595 (struct frame): Add pointer_invisible.
2596
574c8efa
JD
25972009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2598
7b507248
JD
2599 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2600 frame isn't visible.
2601 (xg_frame_resized): If width/height is -1, get size of window
2602 from X server.
2603
2604 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2605 for MapNotify.
2606
835bdaa7 2607 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2608 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2609 (flush_and_sync): Reintroduce.
574c8efa 2610
3f1c6666 26112009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2612
31fd7c5c 2613 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2614
2615 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2616 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2617
2618 * frame.h: Declare Qsticky.
2619
cad9ef74
JD
2620 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2621
2622 * nsfns.m (ns_frame_parm_handlers): Ditto.
2623
2624 * frame.c: Declare Qsticky.
2625 (frame_parms): Add sticky.
2626
2627 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2628
2629 * xterm.h: Declare x_set_sticky.
2630
2631 * xterm.c (x_set_sticky): New function.
2632
69b16610
JD
2633 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2634 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2635 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2636
2637 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2638
2639 * frame.c: Qmaximized is new.
2640 (x_set_frame_parameters): Do not handle fullscreen specially.
2641 Only set width and height if explicitly set.
2642 (x_set_fullscreen): Handle Qmaximized.
2643 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2644 (syms_of_frame): Initialize Qmaximized.
2645
1ac9108a
SM
2646 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2647 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2648
2649 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2650 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2651 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2652 set gravity to NorthWestGravity when USE_GTK.
2653 (set_wm_state): New function.
31fd7c5c 2654 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2655 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2656 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2657 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2658 to x_real_positions and x_fullscreen_adjust.
2659
2660 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2661 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2662 flush_and_sync.
2663 (xg_height_changed): New function.
2664 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2665 and gtk_window_set_policy. Set frame gravity after parsing the
2666 geometry string.
3f1c6666
JD
2667 (xg_update_frame_menubar, free_frame_menubar)
2668 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2669 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2670 Remove calls to xg_frame_set_char_size.
2671
fd503d99
KH
26722009-07-01 Kenichi Handa <handa@m17n.org>
2673
2674 * keyboard.c (decode_keyboard_code): New function.
2675 (tty_read_avail_input): Decode the input bytes if necessary.
2676
1ac9108a
SM
2677 * coding.c (setup_coding_system):
2678 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2679 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2680 use Qno_conversion.
2681
24ed93fb
YM
26822009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2683
2684 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2685
99061dfc
CY
26862009-06-30 Chong Yidong <cyd@stupidchicken.com>
2687
1ac9108a 2688 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2689
ff90fbde
JR
26902009-06-30 Jason Rumney <jasonr@gnu.org>
2691
2692 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2693 is already loaded.
2694 Set user model ID if supported (bug#1849).
2695
5f445726
JM
26962009-06-29 Jim Meyering <meyering@redhat.com>
2697
2698 Remove useless if-before-xfree test.
2699 * nsfont.m (nsfont_close): Remove useless test.
2700 * term.c (delete_tty): Likewise.
2701 * w32.c (system_process_attributes): Likewise.
2702 * w32font.c (w32font_close): Likewise.
2703 * xfaces.c (x_free_gc): Likewise.
2704 * xselect.c (buffer): Likewise.
2705
b9607587
AS
27062009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2707
2708 * process.c (send_process): Keep decoded string in a local
2709 variable and protect it from GC. (Bug#3521)
2710
89ba96f4
EZ
27112009-06-28 Eli Zaretskii <eliz@gnu.org>
2712
2713 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2714 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2715
098a1589
CY
27162009-06-28 Chong Yidong <cyd@stupidchicken.com>
2717
485422be
CY
2718 * xdisp.c (start_display, handle_face_prop)
2719 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2720 (redisplay_window, try_window_id, produce_image_glyph):
2721 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2722
098a1589
CY
2723 * xterm.c (x_update_window_begin, x_new_focus_frame)
2724 (x_scroll_bar_handle_click, handle_one_xevent)
2725 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2726 (x_make_frame_visible, x_make_frame_invisible)
2727 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2728 code chunks that are now obsolete.
2729
78c38319
MA
27302009-06-28 Michael Albinus <michael.albinus@gmx.de>
2731
2732 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2733 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2734 for hours, when optimzation is enabled.
2735 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2736 (xd_read_message): Make them static.
2737
4189ed40
CY
27382009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2739
2740 * term.c (turn_on_face): Allow simultaneously bold and dim
2741 terminal faces (Bug#3530).
2742
cd9b5e16
CY
27432009-06-27 Chong Yidong <cyd@stupidchicken.com>
2744
4e23bedb
CY
2745 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2746
cd9b5e16
CY
2747 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2748 truncation glyphs (Bug#3686).
2749
07cc3c35
GM
27502009-06-27 Glenn Morris <rgm@gnu.org>
2751
2752 * m/pmax.h: Restore file, with only netbsd portions.
2753
31fd7c5c 27542009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2755
cd9b5e16 2756 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2757
42d4a64f
KH
27582009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2759
2760 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2761 the arg FORCE_SYMBOL.
2762
930fe55b 27632009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2764
2765 * fontset.c (fontset_find_font): When a usable rfont_def is found
2766 in a fallback font-group, make it the first element of the group.
2767
57ebc3fd
CY
27682009-06-24 Chong Yidong <cyd@stupidchicken.com>
2769
2770 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2771
f084f942
KH
27722009-06-24 Kenichi Handa <handa@m17n.org>
2773
2774 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2775 set for C.
2776 (fontset_font): Record the availability of a font for C both in
2777 the realized fontsets of the current one and the default one.
2778
2f686c87
DN
27792009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2780
2781 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2782 conditional, it is always defined on AIX.
2783
666e158e
MB
27842009-06-23 Miles Bader <miles@gnu.org>
2785
2786 * window.c (Vrecenter_redisplay): New variable.
2787 (syms_of_window): Initialize it.
2788 (Qtty): New extern declaration.
2789 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2790
c6da7cd2
JM
27912009-06-23 Jim Meyering <meyering@redhat.com>
2792
1ac9108a
SM
2793 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2794 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2795 pointer dereferences are guaranteed to be valid.
c6da7cd2 2796
678dca3d
KH
27972009-06-23 Kenichi Handa <handa@m17n.org>
2798
74d75424
KH
2799 * emacs.c (main): Call init_font ().
2800
2801 * font.h (Vfont_log): Extern it.
2802 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2803
2804 * font.c (font_sort_entities, font_list_entities)
2805 (font_matching_entity, font_open_entity)
2806 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2807 (Vfont_log): Delete static.
2808 (font_log_env_checked): Delete this variable.
2809 (font_add_log): Don't check font_log_env_checked.
2810 (font_deferred_log): Check Vfont_log.
2811 (init_font): New function.
2812
678dca3d
KH
2813 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2814
2815 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2816
2817 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2818
2819 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2820
2821 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2822 (face_for_char): Don't call font_deferred_log here.
2823 (font_for_char): Likewise.
2824
8a668709
CY
28252009-06-22 Chong Yidong <cyd@stupidchicken.com>
2826
9a01ee33
CY
2827 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2828 rather than its background_width for drawing the overline and
2829 underline (Bug#489).
2830
2831 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2832 rather than its background_width for drawing the overline and
2833 underline (Bug#489).
ec7c9926
CY
2834 (xg_default_icon_file): New variable.
2835 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2836 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2837
8a668709
CY
2838 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2839 (load_overlay_strings): Remove externs.
2840 (fast_find_position): Function deleted.
2841 (mouse_face_from_buffer_pos): New function, based on
2842 fast_find_position. Correctly handle before-strings,
2843 display-strings, and after-strings (Bug#1220).
2844 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2845
4d4c02d8
CY
28462009-06-21 Chong Yidong <cyd@stupidchicken.com>
2847
1ac9108a 2848 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2849 (move_it_in_display_line_to, move_it_in_display_line_to)
2850 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2851
70243478
CY
28522009-06-21 Chong Yidong <cyd@stupidchicken.com>
2853
2854 * Branch for 23.1.
2855
13087e59
JR
28562009-06-21 Jason Rumney <jasonr@gnu.org>
2857
2858 * w32term.c (keyboard_codepage): New static variable.
2859 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2860 (w32_read_socket) [WM_CHAR]: Use it to decode character
2861 input (bug#3237).
2862 (w32_initialize): Initialize it.
2863 (codepage_for_locale): New function.
2864
4735b74e
KR
28652009-06-20 Ken Raeburn <raeburn@raeburn.org>
2866
2867 * process.c (status_message): Pass Faset index argument as a lisp
2868 object, so as to work with USE_LISP_UNION_TYPE.
2869
0e727afa
YM
28702009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2871
2872 * coding.c (Ffind_coding_systems_region_internal):
2873 Cache checked characters.
2874
cf299835
KH
28752009-06-18 Kenichi Handa <handa@m17n.org>
2876
1ac9108a 2877 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2878
90f20d94
AS
28792009-06-18 Andreas Schwab <aschwab@redhat.com>
2880
2881 * xdisp.c (redisplay_internal): Check that the frame is still
2882 live after redisplay of its windows.
2883 (redisplay_windows): Check that the window is still live.
2884
7f1faf1c
KH
28852009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2886
2887 * coding.c (detect_coding_utf_16): Fix previous change.
2888
cc13543e
KH
28892009-06-16 Kenichi Handa <handa@m17n.org>
2890
2891 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2892 UTF-16 by checking the dispersion of Eth and Oth bytes.
2893
977b85f4
AS
28942009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2895
2896 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2897
66bd43d1
KH
28982009-06-15 Kenichi Handa <handa@m17n.org>
2899
2900 * process.c (status_message): Fix previous change. Be sure to
2901 decode a localized string.
2902
cb5ca9c5
YM
29032009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2904
2905 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2906 add comment explaining why.
2907
ec7709ba 29082009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2909
ec7709ba 2910 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2911
4b7f335c
AR
29122009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2913
2914 * nsfont.m (ns_attribute_value): Remove.
2915 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2916 (ns_has_attribute): Shrink the normal range.
2917 (ns_findfonts): Don't worry about requested spec in determining
2918 need for synthItal.
e41820ee 2919 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2920
73b26103
SZ
29212009-06-14 Seiji Zenitani <zenitani@mac.com>
2922
2923 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2924
5753e4da
KH
29252009-06-11 Kenichi Handa <handa@m17n.org>
2926
2927 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2928 overhang for the static composition case.
2929
3561b671
KH
29302009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2931
5753e4da
KH
2932 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2933 overhang for the automatic composition case.
2934
3561b671
KH
2935 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2936 composition case.
2937
852bbd41
CY
29382009-06-10 Chong Yidong <cyd@stupidchicken.com>
2939
2940 * xdisp.c (get_next_display_element): When handling wrap-prefix
2941 and line-prefix, treat \n as a control character (bug#3502).
2942
9903d1e6
KH
29432009-06-10 Kenichi Handa <handa@m17n.org>
2944
2945 * font.c (font_parse_family_registry): Fix for one-char foundry.
2946 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2947
0bcbaaaa
CY
29482009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2949
2950 * process.c (status_message): Fix handling of multibyte signal
2951 string (Bug#3499).
2952
40aa3f13
JM
29532009-06-09 Jim Meyering <meyering@redhat.com>
2954
1f80c7e2
CY
2955 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2956 color name is missing.
40aa3f13 2957
72d51285
KH
29582009-06-09 Kenichi Handa <handa@m17n.org>
2959
2960 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2961 FROM-CODE and TO-CODE are codepoints of CHARSET.
2962
c1d04d84
AR
29632009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2964
2965 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2966
29672009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2968
2969 Changes to support :script/:lang/:otf in NS font driver.
2970 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2971 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2972 indicate not part of font driver interface, and change callers.
2973 (ns_get_family): Remove pointless null check.
2974 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2975 ns_spec_to_descriptor, ns_descriptor_to_entity.
2976 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2977 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2978 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2979 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2980 (ns_get_req_script, ns_accumulate_script_ranges)
2981 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2982 New functions.
2983 (nsfont_list, nsfont_match): Use ns_findfonts.
2984 (nsfont_open): Use font descriptor instead of traits.
2985 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2986 (dump_glyphstring): Rename to ns_dump_glyphstring.
2987
c7eb9816
AR
2988 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2989
c1d04d84
AR
2990 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2991
2992 * fontset.c (fontset_from_font): Remove NS-specific code.
2993
ec7709ba 29942009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2995
2996 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2997 nonactive windows.
2998
31fd7c5c 29992009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3000
1ac9108a 3001 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3002
68852c13 30032009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3004
3005 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3006
6756cd1d
CY
30072009-06-07 Chong Yidong <cyd@stupidchicken.com>
3008
3009 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3010 account for the overflowing of newlines into the last glyph on the
3011 display line (Bug#3482).
3012
28bf482a
DR
30132009-06-05 David Reitter <david.reitter@gmail.com>
3014
ec7709ba
JB
3015 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3016 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3017 Fns_selection_exists_p, Fns_selection_owner_p.
3018
fdb55376
JR
30192009-06-03 Jason Rumney <jasonr@gnu.org>
3020
3021 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3022 available. (Bug#3379)
3023
05129fbe
KH
30242009-05-29 Kenichi Handa <handa@m17n.org>
3025
1ac9108a
SM
3026 * coding.c (get_translation_table):
3027 Check Venable_character_translation.
05129fbe 3028
ec7709ba 30292009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3030
ec7709ba
JB
3031 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3032 (x_make_frame_visible): Move frame to front rather than calling
15891144 3033 ns_raise_frame().
ec7709ba 3034 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3035 isn't key window.
ec7709ba 3036 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3037 drawRect may be called by NSView even if the frame is hidden.
3038
ec7709ba
JB
3039 * nsfns.m (Fx_create_frame): Follow other ports in
3040 determining visibility; default to t. Ensure async_visible is set.
15891144 3041
21f73755
EZ
30422009-05-23 Eli Zaretskii <eliz@gnu.org>
3043
3044 * dired.c (Ffile_attributes): Doc fix.
3045
34001e41
CY
30462009-05-22 Chong Yidong <cyd@stupidchicken.com>
3047
3048 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3049
46306a17
SM
30502009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3051
3052 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3053 and xfont_scratch_props.
3054 (syms_of_xfont): Do it here instead.
3055 (xfont_find_ccl_program): Delete, unused.
3056 (xfont_open): Delete unused var `i'.
3057
ef6e0694
KH
30582009-05-21 Kenichi Handa <handa@m17n.org>
3059
3060 * fontset.c (Qlatin): Don't make it static.
3061
46306a17
SM
3062 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3063 New functions.
ef6e0694
KH
3064 (xfont_scripts_cache, xfont_scratch_props): New variables.
3065 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3066 (xfont_list_pattern): Argument changed. Callers changed.
3067 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3068 (xfont_list): Don't reject a font spec with :script property.
3069 (xfont_has_char): Fix setting of encoding.
3070 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3071 xfont_scratch_props.
3072
30732009-05-19 Kenichi Handa <handa@m17n.org>
3074
46306a17 3075 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3076 Callers changed.
3077
30782009-05-18 Kenichi Handa <handa@m17n.org>
3079
3080 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3081
ac71ced7
SM
30822009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3083
3084 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3085 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3086
1c6d1051
YM
30872009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3088
3089 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3090 (x_delete_terminal): Dissociate resource database from display and
3091 then call XrmDestroyDatabase before closing display.
3092
9b9b779c
AR
30932009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3094
3095 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3096 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3097 whether selected frame is viable before raising it (based on patch
3098 by David Reitter), and improve commentary.
3099 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3100
cccd42d5
KH
31012009-05-15 Kenichi Handa <handa@m17n.org>
3102
3103 * font.c (Ffont_spec): Check arguments.
3104
337fbd17
CY
31052009-05-14 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3108 weight when testing attributes (Bug#3282).
3109
47a6002f
JD
31102009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3111
3112 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3113 what we expect to get in the next ConfigureNotify event.
3114
9cb363db
YM
3115 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3116 before Xft one (Bug#1696).
3117
b9126609
CY
31182009-05-07 David Reitter <david.reitter@gmail.com>
3119
3120 * nsfns.m (Fx_display_planes): Compute bitplanes using
3121 NSBitsPerPixelFromDepth (Bug#3207).
3122
27a69fd9
CY
31232009-05-10 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3126
00f37552
TTN
31272009-05-10 Ulrich Mueller <ulm@gentoo.org>
3128
3129 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3130
2d82a920
DR
31312009-05-07 David Reitter <david.reitter@gmail.com>
3132
ec7709ba
JB
3133 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3134 Respect mouse face background.
2d82a920 3135
46b0d52d
DR
31362009-05-07 David Reitter <david.reitter@gmail.com>
3137
ec7709ba
JB
3138 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3139 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3140 in ns_update_begin and ns_update_end.
3141
ce1b23bb
SM
31422009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3143
5996e1b7
SM
3144 * nsfns.m (ns_get_screen): Rewrite.
3145 Don't presume selected-frame is of type `ns'.
3146
ba98e3a0
SM
3147 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3148 all drivers.
3149
ce1b23bb
SM
3150 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3151
bcda200f
YM
31522009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3153
3154 * keyboard.h (add_user_signal): Fix typo in extern.
3155
3156 * lisp.h (add_user_signal): Remove extern.
3157
3158 * unexelf.c (unexec): Consider a section to precede the .bss section
3159 if its addresses overlap that of .bss.
3160 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3161 instead of dumping process.
3162
864660a2
SM
31632009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3164
3165 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3166
50da4e56
SM
31672009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3168
3169 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3170
51520a1a
DN
31712009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3172
3173 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3174 any statements.
3175
409ea3a1
AS
31762009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3177
59c4c60f
AS
3178 * process.c (read_process_output): Make sure the current buffer is
3179 always restored.
3180
409ea3a1
AS
3181 * coding.c (record_conversion_result): Don't modify
3182 Vlast_code_conversion_error for successful result.
3183 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3184
56f00ed2
KH
31852009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3186
3187 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3188 (load_charset_map): Remove unnecessary code.
56f00ed2 3189
4491c9d2
DR
31902009-04-30 David Reitter <david.reitter@gmail.com>
3191
35f5b128 3192 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3193 through f24.
3194
6970f632
CY
31952009-04-30 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3198
3199 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3200 face_at_buffer_position.
3201 (face_before_or_after_it_pos, get_next_display_element)
3202 (note_mouse_highlight): Update face_at_buffer_position call.
3203
3204 * term.c (term_mouse_highlight):
3205 * msdos.c (IT_note_mouse_highlight):
3206 * fontset.c (Finternal_char_font):
35f5b128 3207 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3208
3209 * dispextern.h (face_at_buffer_position): Update prototype.
3210
0c616f63
KH
32112009-04-30 Kenichi Handa <handa@m17n.org>
3212
35f5b128 3213 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3214
ad3aaf33
AS
32152009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3216
3217 * callproc.c (Fcall_process): Fix GC protection. Make sure
3218 current buffer is always restored.
3219
c3c963a0
YM
32202009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3221
3222 * atimer.c (init_atimer): Also clear stopped_atimers.
3223
3224 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3225
7e3386cb
YM
3226 * process.c (create_process): Clean up merger residues of
3227 2008-07-17 change.
3228
91f68422
CY
32292009-04-29 Ulrich Mueller <ulm@gentoo.org>
3230
3231 * lread.c (Vread_circle): New variable.
3232 (read1): Disable recursive read if Vread_circle is nil.
3233
24b34550
KH
32342009-04-29 Kenichi Handa <handa@m17n.org>
3235
3236 * fontset.h (set_default_ascii_font): Delete extern.
3237
3238 * fontset.c (set_default_ascii_font): Delete this unused function.
3239
3240 * frame.c (x_set_font): When ARG is a font-object, check if the
3241 font-object matches with the ASCII font-spec of the frame's
9c358bda 3242 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3243
77bf07e1
AS
32442009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3245
3246 * fns.c (Flocale_info): Protect vector from GC during decoding.
3247
3248 * process.c (Fstart_process): Protect argv strings from GC during
3249 encoding.
3250
2c55aacf
AS
32512009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3252
3253 * sysdep.c: Include <ctype.h>.
3254
b892d3c9
DR
32552009-04-27 David Reitter <david.reitter@gmail.com>
3256
35f5b128 3257 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3258 Remove commented-out code.
3259
9d0644c4
JB
32602009-04-26 Johan Bockgård <bojohan@gnu.org>
3261
3262 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3263
b7053016
JR
32642009-04-25 Jason Rumney <jasonr@gnu.org>
3265
3266 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3267
4e8231f3
YM
32682009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3269
3270 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3271 Swap bytes in short integer if fringe bitmap width > 8.
3272
493dcf2c
KH
32732009-04-23 Kenichi Handa <handa@m17n.org>
3274
3275 * xfaces.c (Fx_list_fonts): If a font size is specified in
3276 PATTERN, set it in returned scalable fonts.
3277
401e9e57
CY
32782009-04-22 Chong Yidong <cyd@stupidchicken.com>
3279
708e05dc
CY
3280 * keyboard.c (Fset_input_meta_mode): Doc fix.
3281
3282 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3283
1ac9108a 3284 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3285
3286 * coding.c (Fterminal_coding_system): Doc fix.
3287
3288 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3289 (Fx_display_pixel_height, Fx_display_planes)
3290 (Fx_display_color_cells, Fx_server_max_request_size)
3291 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3292 (Fx_display_mm_height, Fx_display_mm_width)
3293 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3294 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3295 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3296 (check_x_display_info): Handle terminal objects instead of
3297 terminal ids.
3298
401e9e57
CY
3299 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3300 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3301 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3302 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3303
df80c7f0
KH
33042009-04-21 Kenichi Handa <handa@m17n.org>
3305
5a8f12af 3306 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3307 (font_score): Check AVGWIDTH too.
908567ef 3308
df80c7f0
KH
3309 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3310 worst case.
1ac9108a
SM
3311 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3312 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3313
705af33f
JR
33142009-04-19 Jason Rumney <jasonr@gnu.org>
3315
3316 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3317 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3318
3319 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3320 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3321 get_phys_cursor_geometry.
3322
b71ac3dd 3323 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3324 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3325 using get_phys_cursor_geometry.
3326
3327 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3328 correctly calculated.
3329
dc2933eb
JD
33302009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3331
1ac9108a
SM
3332 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3333 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3334 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3335 is deprecated.
3336
973e7849
AS
33372009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3338
3339 * font.c (font_put_frame_data): Use xfree instead of free.
3340
314d66f4
JB
33412009-04-17 Juanma Barranquero <lekktu@gmail.com>
3342
3343 * w32font.c (Qja, Qko): Remove declarations.
3344 (syms_of_w32font): Don't DEFSYM them.
3345
cf702558
CY
33462009-04-17 Chong Yidong <cyd@stupidchicken.com>
3347
3348 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3349
3350 * font.h (Qja, Qko): Extern them.
3351
3352 * ftfont.c (Qja, Qko): Remove declarations.
3353
3354 * xfont.c (Qja, Qko): Remove declarations.
3355
b50504f5
KH
33562009-04-17 Kenichi Handa <handa@m17n.org>
3357
bde25748
KH
3358 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3359 string from a vector to handle Latin-1 characters correctly.
3360
b50504f5
KH
3361 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3362 entity even if the cache hits.
3363
f4646fff
AS
33642009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3365
3366 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3367 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3368
e7deaab0
AS
3369 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3370 * lisp.h: Adjust prototypes.
3371
0a0e7d49
CY
33722009-04-16 Chong Yidong <cyd@stupidchicken.com>
3373
3374 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3375 change (Bug#3003).
3376
3c908a57
KH
33772009-04-16 Kenichi Handa <handa@m17n.org>
3378
1ac9108a 3379 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3380
3381 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3382 adstyle.
3383
3384 * ftfont.c (Qja, Qko): Don't make them static.
3385 (enum ftfont_cache_for): New enum.
3386 (fc_charset_table): Undo the previous change.
3387 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3388 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3389 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3390 non-scarable font, try to get AVERAGE_WIDTH.
3391 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3392 Change ft_face_cache from a list of a hash-table. Don't check
3393 `ja' and `ko' adstyle here.
3394 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3395 FTFONT_CACHE_FOR_CHARET.
3396 (ftfont_get_charset): Undo the previous change.
1ac9108a 3397 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3398 (ftfont_close): Likewise.
3399 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3400
3401 * font.c (font_sort_entites): Change the meaning of the arg
3402 BEST-ONLY. Don't optimize for VEC of lenght 1.
3403 (font_select_entity): Just return the value of font_sort_entites.
3404
3405 * xfaces.c (merge_face_vectors): Reflect font properties in
3406 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3407 font_clear_prop if a face attribute doesn't change.
3408
3c908a57
KH
3409 * charset.h (charset_ksc5601): Extern it.
3410
3411 * charset.c (charset_ksc5601): New variable.
3412 (Fdefine_charset_internal): Set charset_ksc5601.
3413 (init_charset_once): Initialize charset_ksc5601 to -1.
3414
d65859c3
DN
34152009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3416
3417 * fileio.c (history_delete_duplicates): Remove unused declaration.
3418
3419 * callint.c (history_delete_duplicates): New declaration.
3420 (Fcall_interactively): Remove command history duplicates when
3421 history_delete_duplicates is true.
3422
3ba010e5
EZ
34232009-04-14 Eli Zaretskii <eliz@gnu.org>
3424
3425 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3426
06f19b91
KH
34272009-04-14 Kenichi Handa <handa@m17n.org>
3428
3429 * font.c (Ffont_info): Fix docstring. Fix the second element of
3430 the returned value (bug#2949).
3431
2cce8bfc
CY
34322009-04-14 Chong Yidong <cyd@stupidchicken.com>
3433
3434 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3435
d156542d
KH
34362009-04-14 Kenichi Handa <handa@m17n.org>
3437
3438 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3439 encoding charset is ascii_compatible.
3440
3441 * charset.c (Fdefine_charset_internal): Make charset
3442 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3443 code_offset is 0, and covers all ASCII characters.
3444
86fa089e
SM
34452009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3446
3447 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3448 (ns_string_to_pasteboard_internal):
3449 * nsmenu.m (process_dialog):
3450 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3451 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3452 * lisp.h (Fx_load_color_file): Declare.
3453
a8a3728b
KH
34542009-04-13 Kenichi Handa <handa@m17n.org>
3455
1ac9108a 3456 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3457 (font_select_entity): Suppress the code to optimize for the same
3458 kind of fonts.
3459 (font_load_for_lface): Get a font that supports at least ASCII
3460 characters.
3461
3462 * ftfont.c (Qja, Qko): New variables.
3463 (fc_charset_table): Delete uniquifier data for iso8859-1.
3464 (ftfont_get_latin1_charset): New function.
3465 (get_adstyle_property): New function.
3466 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3467 bitmap fonts.
3468 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3469 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3470 `ko' or `ja'.
3471 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3472 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3473 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3474 property.
3475 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3476 (syms_of_ftfont): DEFSYM Qja and Qko.
3477
483670b5
KH
34782009-04-09 Kenichi Handa <handa@m17n.org>
3479
12b55765
KH
3480 * charset.c (map_charset_chars): For a charset of `superset'
3481 method, fix calculation of code range.
3482
483670b5
KH
3483 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3484 from the list of extra properties.
3485 (font_clear_prop): Be sure to delete `:name' font property.
3486
57d3b93b
KH
34872009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3488
b4b2c2ca
YM
3489 * dispnew.c (redraw_overlapping_rows): Fix detection of
3490 overlapping for topmost and bottommost rows.
3491
1ac9108a 3492 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3493
472c3609
JR
34942009-04-06 Jason Rumney <jasonr@gnu.org>
3495
3496 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3497
ab193662
KH
34982009-04-06 Kenichi Handa <handa@m17n.org>
3499
3500 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3501
3502 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3503
0c26f026
KH
35042009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3505
3506 * ftfont.c (ftfont_open): Fix checking of the return value of
3507 FT_Load_Char. Fix setting font->underline_thickness.
3508
e173bbce
CY
35092009-04-04 Chong Yidong <cyd@stupidchicken.com>
3510
3511 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3512 (Fterminal_parameters, Fterminal_parameter)
3513 (Fset_terminal_parameter): In doc string, refer to terminal
3514 objects rather than terminal ids.
3515
693a2698
EZ
35162009-04-04 Eli Zaretskii <eliz@gnu.org>
3517
3518 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3519 ret_lim_data. (Bug#2867)
3520
d5221487
CY
35212009-04-03 Chong Yidong <cyd@stupidchicken.com>
3522
3523 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3524 so they don't get wider than the window, matching 2006-01-23
3525 change to the partner function in xdisp.c (Bug#2800).
3526
223509a3
KH
35272009-04-03 Kenichi Handa <handa@m17n.org>
3528
3529 * print.c (print_object): Make each lowest sub_char_table start a
3530 new line (Bug#2866).
3531
74fcd0b1
KH
35322009-04-02 Kenichi Handa <handa@m17n.org>
3533
3534 * fontset.c (fontset_font): Record no-font when a fontset
3535 explicitly tells not to try another font-specs.
3536
c542407d
SM
35372009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3538
3539 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3540
e3869731
KH
35412009-03-30 Kenichi Handa <handa@m17n.org>
3542
d8d2f142
KH
3543 * fontset.c (fontset_from_font): Specify only registry in a
3544 font-spec for all characters supported by that registry.
3545
e3869731
KH
3546 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3547 even if HAVE_M17N_FLT is not defined.
3548
5da5f805
CY
35492009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3550
3551 * ftfont.c: Conditionalize prototyping and use of
3552 ftfont_variation_glyphs.
3553
ab226c50
SM
35542009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3555
9628fed7
SM
3556 * frame.c (delete_frame): Work around compiler bug.
3557
3558 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3559 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3560 Some more EMACS_INT.
3561 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3562
3563 * xdisp.c (dump_glyph): Fix typo.
3564
ae19ba7c
SM
3565 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3566 (adjust_markers_gap_motion, adjust_markers_for_delete)
3567 (adjust_markers_for_insert, adjust_point)
3568 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3569 (make_gap, copy_text, count_size_as_multibyte, insert)
3570 (insert_and_inherit, insert_before_markers)
3571 (insert_before_markers_and_inherit, insert_1)
3572 (count_combining_before, count_combining_after, insert_1_both)
3573 (insert_from_string, insert_from_string_before_markers)
3574 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3575 (insert_from_buffer_1, adjust_after_replace)
3576 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3577 (replace_range_2, del_range, del_range_1, del_range_byte)
3578 (del_range_both, del_range_2, modify_region)
3579 (prepare_to_modify_buffer, signal_before_change)
3580 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3581 for buffer positions and sizes.
3582 * lisp.h: Adjust prototypes accordingly.
3583
3584 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3585 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3586 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3587
ab226c50
SM
3588 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3589
46dfb8fb
JD
35902009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3591
3592 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3593 lines and columns so we keep the same pixel height and width.
3594
3595 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3596 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3597 (x_handle_net_wm_state): New function to update frame parameter
3598 fullscreen.
3599 (x_term_init): Initialize atoms for _NET_WM_STATE.
3600
3601 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3602
d347e494
SM
36032009-03-27 Kevin Ryde <user42@zip.com.au>
3604
3605 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3606 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3607 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3608 (Fgpm_mouse_stop): Pass that new parameter.
3609 * termhooks.h (close_gpm): Adjust prototype.
3610
84db11d6
SM
36112009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3612
c95a5008
SM
3613 * lisp.h (Fx_focus_frame): Declare.
3614
84db11d6
SM
3615 * callint.c (Fcall_interactively): For '^' just delegate the work to
3616 handle-shift-selection.
3617 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3618
0a1958d6
CY
36192009-03-24 Chong Yidong <cyd@stupidchicken.com>
3620
0bfdff23
CY
3621 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3622
0a1958d6
CY
3623 * data.c (Qinteractive_form): New variable.
3624 (Finteractive_form): Use it.
3625
3626 * eval.c (Fcommandp): Use Qinteractive_form.
3627
58aec0d6
JR
36282009-03-24 Jason Rumney <jasonr@gnu.org>
3629
3630 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3631 Calculate total size precisely. Decode environment variables
3632 before substituting. (Bug#38)
3633
553dd618
KH
36342009-03-24 Kenichi Handa <handa@m17n.org>
3635
3636 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3637 encoding (Bug#2722).
553dd618 3638
c39ea606
JD
36392009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3640
3641 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3642 that gdpy is set.
3643
bc9b2b5e
AM
36442009-03-22 Alan Mackenzie <acm@muc.de>
3645
3646 * callint.c (Finteractive): Clarify the doc string - even
3647 promptless elements need \n separators.
3648
9f995a76
JR
36492009-03-22 Jason Rumney <jasonr@gnu.org>
3650
3651 * w32term.c (syms_of_w32term): Doc fix for
3652 x-use-underline-position-properties.
3653
22749e9a
EZ
36542009-03-21 Eli Zaretskii <eliz@gnu.org>
3655
3656 * w32.c (getpwuid): Change argument type to unsigned.
3657 (struct w32_id): Change type of `rid' member to unsigned.
3658 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3659 argument ID to unsigned. All callers changed.
3660 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3661
e00553bf
EZ
36622009-03-20 Eli Zaretskii <eliz@gnu.org>
3663
3664 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3665 negative, produce a float value.
3666
3667 * dired.c (make_uid, make_gid): New functions.
3668 (Ffile_attributes): Use them to avoid negative UID and GID.
3669
f761d6b6
JB
36702009-03-20 Juanma Barranquero <lekktu@gmail.com>
3671
3672 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3673 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3674 Fix typos in docstrings.
3675
d507f8d7
KH
36762009-03-19 Kenichi Handa <handa@m17n.org>
3677
3678 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3679 changed, use font_load_for_lface to get a new font object.
3680 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3681
3682 * frame.c (x_set_font): Handle the case that ARG is a cons.
3683
c68845e0
GM
36842009-03-19 Glenn Morris <rgm@gnu.org>
3685
3686 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3687
bfa49dd1
CY
36882009-03-19 Chong Yidong <cyd@stupidchicken.com>
3689
3690 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3691
8458d4c1
KH
36922009-03-19 Kenichi Handa <handa@m17n.org>
3693
3694 * charset.c (load_charset_map_from_file): When a mapfile can't be
3695 loaded, signal an error.
3696
78e7d1fe
EZ
36972009-03-18 Eli Zaretskii <eliz@gnu.org>
3698
3699 * dired.c (Ffile_attributes): Make sure UID and GID are always
3700 positive, even if the value is too large for a positive EMACS_INT.
3701 Doc fix.
3702
3703 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3704
5da9fdfa
YM
37052009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3706
3707 * xmenu.c (xdialog_show): Move Fredisplay call ...
3708 (Fx_popup_dialog): ... here.
3709
7519c40d
SM
37102009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3711
3712 * dired.c (file_name_completion): Disable the first optimization just
3713 installed, since it is not implemented correctly.
3714
2cd298e2
SM
37152009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3716
3717 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3718 only if the entry can affect bestmatch.
2cd298e2
SM
3719 Stop the search early, as Ftry_completion already does.
3720
48d37adf
CY
37212009-03-17 Chong Yidong <cyd@stupidchicken.com>
3722
e10c9c93 3723 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3724
9286b16a
CY
37252009-03-15 Chong Yidong <cyd@stupidchicken.com>
3726
3727 * keyboard.c (parse_menu_item): Don't display remappings as menu
3728 equivalent bindings (Bug#788).
3729
f7b146dc
JR
37302009-03-15 Jason Rumney <jasonr@gnu.org>
3731
3732 * w32term.h (WM_EMACS_PAINT): New message.
3733 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3734 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3735 before passing to lisp thread. (Bug#950)
3736
f761d6b6 37372009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3738
d93f9575
CY
3739 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3740 variable as it was never reset.
3741 (ns_term_init): Remove initialization of Lisp-settable defaults
3742 and ns_expand_space.
3743 (-setPanelFromDefaultValues): Remove ns_expand_space.
3744 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3745 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3746 i.e. no additional spacing, similar to Carbon port.
3747
d93f9575
CY
3748 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3749 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3750
305018ec
JD
37512009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3752
3753 * sound.c (alsa_configure): Remove call to deprecated
3754 snd_pcm_sw_params_set_xfer_align.
3755
f761d6b6 37562009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3757
3758 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3759 after clicking in a detached tool bar.
3760 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3761
46e722a9
SM
37622009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3763
348db3dd
SM
3764 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3765 int/Lisp_Object mixup).
46e722a9 3766
a3d16f39
KH
37672009-03-13 Kenichi Handa <handa@m17n.org>
3768
3769 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3770 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3771 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3772 (set_fontset_font): Change ARG to a vector. Handle range_list in
3773 ARG correctly.
3774 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3775 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3776 the above change.
3777 (fontset_from_font): Fix previous change.
fe24f56a 3778 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3779 entry. If FONTSET is the default fontset, don't set the extra
3780 slot of the returning char-table.
3781
b066e6b6
JB
37822009-03-12 Juanma Barranquero <lekktu@gmail.com>
3783
3784 * nsfns.m (Fx_close_connection): Doc fix.
3785 (Fns_do_applescript): Reflow docstring.
3786 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3787 (Fx_display_pixel_width, Fx_display_pixel_height)
3788 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3789 Fix typos in docstrings.
3790 (Fns_set_alpha): Fix typos in error messages.
3791
d472514e 37922009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3793
d472514e 3794 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3795 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3796 were used for such events.
3797
d472514e
JB
3798 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3799 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3800
d472514e 3801 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3802 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3803
fb930676
KH
38042009-03-11 Kenichi Handa <handa@m17n.org>
3805
ff85581a
KH
3806 * font.h (font_open_by_spec): Extern it.
3807
c50b7e98
KH
3808 * font.c (font_open_by_spec): New function.
3809 (font_open_by_name): Use font_open_by_spec.
3810
fb930676
KH
3811 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3812 fontset of the frame.
3813
3814 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3815 modify the default font of frames that use this fontset.
3816 (num_auto_fontsets): New variable.
3817 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3818 name. Be sure to set FONTSET_ASCII to the correct font name.
3819 (update_auto_fontset_alist): New function.
3820
df4e8455
JB
38212009-03-11 Juanma Barranquero <lekktu@gmail.com>
3822
3823 * makefile.w32-in: Update dependencies.
3824
0a375797
AR
38252009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3826
3827 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3828
61313fa3
SM
38292009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3830
3831 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3832
b55103fb
CY
38332009-03-10 Chong Yidong <cyd@stupidchicken.com>
3834
3835 * lread.c (Feval_buffer): Doc fix.
3836
dde2559c
KH
38372009-03-09 Kenichi Handa <handa@m17n.org>
3838
3839 * charset.c (Qfile_name_handler_alist): Extern it.
3840 (load_charset_map_from_file): Temporarily bind
3841 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3842
df4e8455 38432009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3844
47f588bb
GM
3845 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3846 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3847
4ddf94bd
AR
38482009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3849
4c9bdfc2
AR
3850 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3851 (x_set_window_size): Change back to calculated method of setting
3852 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3853 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3854 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3855
fe41ae9e
AR
3856 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3857
4c9bdfc2
AR
3858 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3859 accelerator in parens under GNUstep.
3860
825d0875
KH
38612009-03-06 Kenichi Handa <handa@m17n.org>
3862
3863 These changes are to detect incorrect composition sequence without
f3b3be74 3864 looking ahead the source. (Bug#2370)
825d0875
KH
3865
3866 * coding.h: Include "composite.h".
3867 (enum compisition_state): New enum.
3868 (struct compisition_status): New struct.
3869 (struct iso_2022_spec): New member cmp_status.
3870 (struct emacs_mule_spec): New struct.
3871 (struct coding_system): New members ctext_extended_segment_len and
3872 embedded_utf_8. Change the union member
3873 spec.emacs_mule_full_support to spec.emacs_mule.
3874
3875 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3876 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3877 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3878 (ADD_COMPOSITION_DATA): New arg nbytes.
3879 (emacs_mule_char): New arg cmp_status.
3880 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3881 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3882 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3883 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3884 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3885 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3886 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3887 (EMACS_MULE_COMPOSITION_END): New macro.
3888 (emacs_mule_finish_composition): New function.
3889 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3890 (decode_coding_emacs_mule): Avoid long looking ahead while
3891 handling composition.
3892 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3893 (ENCODE_COMPOSITION_RULE): New macro.
3894 (finish_composition): New function.
3895 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3896 (DECODE_COMPOSITION_START): New implementation.
3897 (DECODE_COMPOSITION_END): Likewise.
3898 (STORE_COMPOSITION_RULE): New macro.
3899 (decode_coding_iso_2022): Avoid long looking ahead while handling
3900 composition, CTEXT extended segment, and embedded UTF-8.
3901 (setup_coding_system): For a coding of type iso-2022, reset
3902 CODING_ISO_EXTSEGMENT_LEN (coding) and
3903 CODING_ISO_EMBEDDED_UTF_8 (coding).
3904 (get_translation): Delete arguments last_block, from_nchars,
3905 to_nchars. Callers changed.
3906 (produce_chars): Don't modify charbuf. Adjusted for the change of
3907 get_translation.
98a326f7 3908 (produce_composition): Adjust for the new annotation sequence.
825d0875 3909 (handle_composition_annotation): Likewise.
98a326f7 3910 (consume_chars): Adjust for the change of get_translation.
825d0875 3911
ccbc4452
AR
39122009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3913
4ddf94bd 3914 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3915
988a7ddb
KH
39162009-03-05 Kenichi Handa <handa@m17n.org>
3917
3918 * font.c (font_select_entity): New function.
3919 (font_find_for_lface): Use font_select_entity to select a font.
3920
3921 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3922 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3923 font with C restriction.
3924
98a326f7 39252009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3926
be1bce46 3927 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3928
10ea2b82
JR
39292009-03-04 Jason Rumney <jasonr@gnu.org>
3930
2c93b248 3931 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3932 characters that have already been read. (Bug#2569)
2c93b248 3933
10ea2b82
JR
3934 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3935 Log an error message if check_image_size failed.
3936 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3937 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3938
71a0c011
EZ
39392009-03-02 Eli Zaretskii <eliz@gnu.org>
3940
3941 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3942 when decoding process output.
3943
2f63bba8
RS
39442009-03-01 Richard M Stallman <rms@gnu.org>
3945
3946 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3947
3948 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3949
0a9564cb
EZ
39502009-02-28 Eli Zaretskii <eliz@gnu.org>
3951
3952 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3953 (decode_coding_emacs_mule, decode_coding_iso_2022)
3954 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3955 (decode_coding_raw_text, decode_coding_charset)
3956 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3957 Honor inhibit-eol-conversion. (Bug #2186)
3958
449148b3
JR
39592009-02-28 Jason Rumney <jasonr@gnu.org>
3960
3961 * coding.c (detect_coding_charset): If not checking latin extra,
3962 fail on characters between 0x80 and 0xA0. (Bug#2354)
3963
a4aee864
EZ
39642009-02-28 Eli Zaretskii <eliz@gnu.org>
3965
3966 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3967 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3968
d88bee5a
GM
39692009-02-27 Glenn Morris <rgm@gnu.org>
3970
3971 * callint.c (Finteractive): Doc fix.
3972
a808f22d
KH
39732009-02-27 Kenichi Handa <handa@m17n.org>
3974
3975 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3976
caf8d60c
CY
39772009-02-27 Chong Yidong <cyd@stupidchicken.com>
3978
3979 * font.c (font_style_to_value): Set value for unknown symbols to
3980 100 instead of 255.
b61137ea
CY
3981 (weight_table, slant_table, width_table): Treat "unspecified" as
3982 the default value.
caf8d60c 3983
1a0de25c
JB
39842009-02-26 Juanma Barranquero <lekktu@gmail.com>
3985
3986 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3987
8fc45744
JB
39882009-02-25 Juanma Barranquero <lekktu@gmail.com>
3989
107bd7d1
JB
3990 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3991 error as soon as a recursive load is detected.
8fc45744 3992
f097e223
AR
39932009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3994
3995 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3996 before caching.
3997
8810a12f
KH
39982009-02-24 Kenichi Handa <handa@m17n.org>
3999
4000 * fontset.c (fontset_find_font): Fix the condition for checking
4001 unavailable font.
4002
2c7d1565
GM
40032009-02-24 Glenn Morris <rgm@gnu.org>
4004
4005 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4006 whitespace that confuses documentation.
4007
a20878b6
MB
40082009-02-23 Miles Bader <miles@gnu.org>
4009
4010 * process.c (Flist_system_processes, Fprocess_attributes)
4011 (syms_of_process): Rename `system-process-attributes' to
4012 `process-attributes'.
4013
b3b58c01
AS
40142009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4015
1b3b981b
AS
4016 * coding.h (struct coding_system): Make safe_charsets a pointer to
4017 unsigned char.
4018 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4019 being 255.
4020 (SAFE_CHARSET_P): Likewise.
4021 (setup_iso_safe_charsets): Properly setup safe_charsets.
4022 (Fdefine_coding_system_internal): Likewise.
4023 (setup_coding_system): Likewise. Remove unneeded casts.
4024 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4025 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4026 unneeded casts.
4027
b3b58c01
AS
4028 * insdel.c (del_range_2): Don't modify gap contents when called
4029 from decode_coding_object. (Bug#1809)
4030
0b6f228c
CY
40312009-02-21 Chong Yidong <cyd@stupidchicken.com>
4032
4033 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4034 Qfont_object.
4035 (Ftype_of): Recognize font objects.
4036
4037 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4038
4039 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4040 moved to data.c.
4041
52f8870b
AR
40422009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4043
4044 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4045 async_iconified. Based on a patch by Christian Lynbech
4046 <christian.lynbech@tieto.com>.
4047 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4048
7087d5e9
GM
40492009-02-20 Glenn Morris <rgm@gnu.org>
4050
4051 * syntax.c (Fskip_chars_forward): Fix doc typo.
4052
41d2ceef
CY
40532009-02-20 Chong Yidong <cyd@stupidchicken.com>
4054
4055 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4056
1a3b7ca6
CY
40572009-02-19 Chong Yidong <cyd@stupidchicken.com>
4058
4059 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4060
73cce38d
KH
40612009-02-19 Kenichi Handa <handa@m17n.org>
4062
4063 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4064 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4065
a51092ee
DN
40662009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4067
4068 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4069
c423ecca
KH
40702009-02-18 Kenichi Handa <handa@m17n.org>
4071
4072 * font.c (font_check_otf_features): Fix handling of `nil' element.
4073 (Ffont_spec): Describe :lang and :otf in the docstring.
4074
4c1958f4
AS
40752009-02-16 Andreas Schwab <schwab@suse.de>
4076
4077 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4078 string.
4079
5704f39a
KH
40802009-02-16 Kenichi Handa <handa@m17n.org>
4081
4082 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4083 (Bug#1723)
5704f39a 4084
8f0085aa
CY
40852009-02-14 Chong Yidong <cyd@stupidchicken.com>
4086
a057d86a 4087 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4088
4089 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4090 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4091
aff01dd9
EZ
40922009-02-14 Eli Zaretskii <eliz@gnu.org>
4093
4094 * msdos.c (MAX_SCREEN_BUF): New macro.
4095 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4096 Encode the entire run of glyphs sharing the same face, instead of
4097 doing that one glyph at a time (fixes a bug with displaying
4098 double-size characters).
4099
ba301db3
AR
41002009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4101
4102 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4103
4104 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4105 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4106 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4107
4108 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4109 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4110
51d861de
SM
41112009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4112
ac146f82 4113 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4114 invisible areas.
4115
7fed8996
JR
41162009-02-12 Jason Rumney <jasonr@gnu.org>
4117
631ea4fb
JR
4118 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4119 (add_font_entity_to_list): Call check_face_name even when family
4120 is unspecified.
4121
cb4a3e42
JR
4122 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4123 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4124 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4125
7fed8996 4126 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4127 raster fonts. (Bug#2219)
7fed8996 4128
895416e3
KH
41292009-02-12 Kenichi Handa <handa@m17n.org>
4130
4131 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4132 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4133 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4134 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4135 (find_automatic_composition): While looking forward and backward,
4136 check static composition. Fix where to stop looking forward.
4137 (composition_adjust_point): Fix checking of static composition.
4138 (Fcomposition_get_gstring): Pay attention to
1dacf998 4139 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4140
4141 * lisp.h (fast_looking_at): Extern it.
4142
4143 * search.c (fast_looking_at): New function.
4144
51d861de 4145 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4146 <struct glyph>.u.cmp.to.
4147 (append_composite_glyph): Likewise.
4148
51d861de 4149 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4150 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4151 composition.
51d861de 4152 (append_composite_glyph): Adjust for the change of
895416e3
KH
4153 <strcut glyph>.u.cmp.to.
4154
8510724d
JB
41552009-02-11 Juanma Barranquero <lekktu@gmail.com>
4156
4157 * casetab.c (init_casetab_once):
4158 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4159 * font.c (font_update_lface):
4160 * fontset.c (Fnew_fontset):
4161 * ftfont.c (ftfont_drive_otf):
4162 * xfont.c (xfont_open):
4163 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4164
294fa707
SM
41652009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4166
4167 * fileio.c (Fwrite_region): !NILP -> CONSP.
4168
b5bfebec
AS
41692009-02-10 Andreas Schwab <schwab@suse.de>
4170
4171 * process.c (send_process): Properly relocate pointer into data
adab88bd 4172 when using encoded data. (Bug#2272)
b5bfebec 4173
cb84a2be
KH
41742009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4175
4176 * coding.c (detect_coding_charset): Fix previous change.
4177
89e09428
JR
41782009-02-08 Jason Rumney <jasonr@gnu.org>
4179
4180 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4181 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4182
4470a277
AS
41832009-02-07 Andreas Schwab <schwab@suse.de>
4184
4185 * unexelf.c (unexec): Fix error message.
4186
3175b12a
AR
41872009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4188
4189 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4190 when modal window is active. (Bug #2152)
3175b12a
AR
4191 (applicationShouldTerminate:): Remove now-unneeded while loop
4192 around NSRunAlertPanel.
4193
4194 * nsmenu.m (popupSession): New file-global variable.
4195 (pop_down_menu): End the popupSession before closing dialog.
4196 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4197 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4198 don't query NSApp for events (just sleep instead).
4199
8434d0b8
EZ
42002009-02-07 Eli Zaretskii <eliz@gnu.org>
4201
51d861de
SM
4202 * coding.c (syms_of_coding) <translation-table-for-input>:
4203 Modify doc string to discourage use for character code unification.
8434d0b8 4204
aa82edfd
CY
42052009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4206
4207 * atimer.c (run_timers): Update pending_atimers.
4208
2d283c7c
CY
42092009-02-06 Chong Yidong <cyd@stupidchicken.com>
4210
eb306cab
CY
4211 * image.c (svg_load_image): Fix last change.
4212
2d283c7c
CY
4213 * xfns.c (Fx_create_frame): Signal an error if no font is
4214 found (Bug#2147).
4215
4d8e170e
JB
42162009-02-05 Juanma Barranquero <lekktu@gmail.com>
4217
4218 * character.c (syms_of_character) <script-representative-chars>:
4219 Fix typo in docstring.
4220
c96169a0
AR
42212009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4222
4223 * nsmenu.m (pop_down_menu): New function.
4224 (ns_popup_dialog): Call it on unwind.
4225 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4226 call timer_check() (Bug#2154).
4227 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4228 handling_signal is set.
4229 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4230
31fd7c5c 4231 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4232
4233 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4234
4235 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4236
51d861de
SM
4237 * keyboard.c (poll_for_input_1, handle_async_input):
4238 Set handling_signal under HAVE_NS.
c96169a0 4239
aacd8ba1
GM
42402009-02-04 Glenn Morris <rgm@gnu.org>
4241
4242 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4243
4cb75c4b
KH
42442009-02-04 Kenichi Handa <handa@m17n.org>
4245
4246 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4247
4248 * charset.c (Fchar_charset): New optional arg restriction.
4249
4250 * coding.h (coding_system_charset_list): Extern it.
4251
4252 * coding.c (coding_system_charset_list): New function.
4253
4254 * composite.c: Include coding.h and termhooks.h.
4255 (composition_gstring_p): Fix for the terminal case.
4256 (composition_gstring_width): Likewise.
4257 (fill_gstring_body): Likewise.
4258 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4259 the frame.
4260 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4261 is within a composition.
867d4bb3 4262 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4263
4264 * term.c (encode_terminal_code): Fix handling of composition.
4265 (produce_composite_glyph): For static composition, get pixel_width
4266 from struct composition.
4267
826ba17e
AS
42682009-02-02 Andreas Schwab <schwab@suse.de>
4269
4270 * unexelf.c (unexec): Handle unaligned bss offset.
4271
8ad093db
AR
42722009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4273
4274 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4275 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4276
8ad093db
AR
4277 * keyboard.c (handle_interrupt): Don't call
4278 quit_throw_to_read_char() under NS.
d0a76a6e 4279
8ad093db
AR
4280 * blockinput.h: Remove NS-specific code.
4281
4d18a7a2
DN
42822009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4283
db878925
DN
4284 * dispnew.c (window_change_signal): Don't try to get the size of a
4285 suspended tty frame.
4286 * term.c (Fresume_tty): Resize if the size has changed while the
4287 tty was suspended.
4288
4d18a7a2
DN
4289 * alloc.c (mark_stack): Properly conditionalize previous change.
4290
8984df7c
JB
42912009-01-30 Juanma Barranquero <lekktu@gmail.com>
4292
4293 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4294 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4295 Remove; this code is not used on Windows.
4296
75f4f1ac
EZ
42972009-01-30 Eli Zaretskii <eliz@gnu.org>
4298
4299 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4300 EOLs that also has stray ^M characters.
4301
07a1e794
JB
43022009-01-30 Juanma Barranquero <lekktu@gmail.com>
4303
4304 * atimer.c (run_timers, alarm_signal_handler):
4305 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4306 * w32inevt.c (w32_console_read_socket):
4307 * w32term.c (w32_read_socket):
4308 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4309
a8b11cc9
CY
43102009-01-30 Chong Yidong <cyd@stupidchicken.com>
4311
4312 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4313 Initialize it as a relative filename pattern.
4314 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4315 (Fcall_process_region): Simplify temp file creation using
4316 temporary-file-directory.
4317
c279587b
EZ
43182009-01-29 Eli Zaretskii <eliz@gnu.org>
4319
4320 * msdos.c: Rename pending_signals to msdos_pending_signals.
4321 (sig_suspender, sigprocmask): Adjust.
4322
a8fe3242
CY
43232009-01-29 Chong Yidong <cyd@stupidchicken.com>
4324
4325 * keyboard.c (pending_signals): New var.
4326 (poll_for_input, input_available_signal, init_keyboard): Set it.
4327 (process_pending_signals): New function.
4328
4329 * lisp.h (QUIT): Check pending_signals instead of
4330 interrupt_input_pending. Use process_pending_signals.
4331
51d861de 4332 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4333
51d861de 4334 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4335
4336 * sysdep.c (emacs_write): Use process_pending_signals.
4337
4338 * xterm.c (XTread_socket): Update pending_signals.
4339
4340 * w32term.c (w32_read_socket): Update pending_signals.
4341
4342 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4343
6570a1c4
KH
43442009-01-29 Kenichi Handa <handa@m17n.org>
4345
4346 * xftfont.c (xftfont_has_char): New function.
4347 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4348
d72a4afa
AR
43492009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4350
4351 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4352 under GNUstep.
4353 (ns_query_color): New declaration.
4354
4355 * nsterm.m (ns_confirm_quit): New variable.
4356 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4357 (EmacsApp-applicationShouldTerminate:): Use it.
4358 (EmacsPrefsController): Let user set it.
4359 (ns_query_color): New function.
4360 (ns_defined_color): Use it.
4361 (ns_initialize): Drop.
4362 (ns_term_init): Add two lines from ns_initialize(), and set
4363 input_interrupt_mode to nil.
4364
4365 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4366 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4367
9fe78804
KH
43682009-01-28 Kenichi Handa <handa@m17n.org>
4369
4370 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4371 (fontset_get_font_group): Remember that no font-group is specified
4372 for C.
9fe78804 4373
fa57de36
CY
43742009-01-27 Chong Yidong <cyd@stupidchicken.com>
4375
930600e9
CY
4376 * fns.c (concat): Check for string overflow (bug#1787).
4377
fa57de36
CY
4378 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4379 Quadruple undo limits (bug#1501).
4380
7179ce7b
KH
43812009-01-27 Kenichi Handa <handa@m17n.org>
4382
4383 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4384 directly use GT_Get_Char_index.
4385
4386 * xftfont.c (struct xftfont_info): New member `index'.
4387
4388 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4389 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4390
5be8fcc0
CY
43912009-01-26 Kenichi Handa <handa@m17n.org>
4392
4393 * fontset.c (fontset_find_font): Fix handling of non-cons return
4394 value of fontset_get_font_group.
4395 (fontset_font): Revert last change.
4396
19ae3e61
JR
43972009-01-26 Jason Rumney <jasonr@gnu.org>
4398
4399 * w32font.c (w32font_list_internal): Return quickly if registry is
4400 unknown. Simplify final return.
4401 (add_font_entity_to_list): Break complex logic down into more
4402 manageable chunks. Move unknown registry check to
4403 w32font_list_internal.
4404
8612b71a
AR
44052009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4406
4407 Changes to remove Feval calls from GUI under NS.
4408
d8038940
JB
4409 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4410 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4411 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4412
4413 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4414 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4415 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4416 instead of NON_ASCII_KEYSTROKE_EVENT.
4417 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4418 (EmacsApp-applicationShouldTerminate:): Query user.
4419 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4420 instead of Feval.
4421
4422 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4423
4424 * keyboard.c (kbd_buffer_get_event): Check for it.
4425 (keys_of_keyboard): Define lispy keys for
4426 ns-put/unput-working-text.
4427
4428 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4429 versions.
4430 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4431
6288ae55
CY
44322009-01-25 Chong Yidong <cyd@stupidchicken.com>
4433
4434 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4435 setting current_buffer directly. (Bug#2044)
6288ae55 4436
289e7f8f
CY
44372009-01-24 Chong Yidong <cyd@stupidchicken.com>
4438
5ce87308 4439 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4440 any work. (Bug#1952, bug#1990).
5ce87308 4441
64cc3cf6 4442 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4443
b3243e6f
AR
44442009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4445
4446 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4447 (ns_no_defaults): New declaration.
4448 (main): Use it.
e0d2e69a 4449
d900b2af 4450 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4451
d900b2af 4452 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4453
d900b2af
AR
4454 * nsterm.m (ns_no_defaults): New variable.
4455 (ns_initialize): Don't read defaults when ns_no_defaults.
4456 (EmacsView-readSelectionFromPasteboard:)
4457 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4458 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4459 (ns_dumpglyphs_stretch): New function.
4460 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4461 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4462
e0d2e69a
AR
4463 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4464
3ac71f5d
CY
44652009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4466
4467 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4468 call for Sparc64.
4469
3fe53a83
AR
44702009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4471
4472 * nsfns.m:
4473 * nsgui.h:
4474 * nsmenu.m:
4475 * nsselect.m:
4476 * nsterm.h:
4477 * nsterm.m: Remove '23' comments that indicated code added during
4478 update from emacs-20 -> emacs-23.
4479
10f87c6f 44802009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4481
4482 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4483 ns_alternate_modifier. (Bug#1217)
a3b53a85 4484
c7cef62d
AR
4485 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4486 Display all shortcuts, including those w/o super modifier.
4487
575fb8bd
AR
4488 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4489
918b848b
CY
44902009-01-22 Chong Yidong <cyd@stupidchicken.com>
4491
4492 * fileio.c (Vwrite_region_post_annotation_function)
4493 (Vwrite_region_annotation_buffers): New vars.
4494 (build_annotations_unwind): Just reset
4495 Vwrite_region_annotation_buffers.
4496 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4497 Call write-region-post-annotation-function.
4498 (build_annotations): Add to Vwrite_region_annotation_buffers if
4499 buffer changes.
4500
a39e2539
AR
45012009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4502
4503 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4504 Tiger.
51d861de
SM
4505 * nsfns.m (ns_do_applescript):
4506 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4507
35ed44db
AR
45082009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4509
4510 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4511
cbe0b5bf
AR
45122009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4513
4514 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4515
6049d3a0
AR
4516 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4517
4518 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4519 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4520 handle Ctrl-tab. (Bug#1841)
4521 (ns_get_color): Use unsigned long long for scanned hex string value.
4522 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4523 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4524 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4525 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4526 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4527 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4528 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4529
d3810c21 4530 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4531 DPI. (Bug#1316)
d3810c21
AR
4532 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4533 values in onTiger section.
4c7077c3 4534
e301e634
CY
45352009-01-19 Chong Yidong <cyd@stupidchicken.com>
4536
7f82490b
CY
4537 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4538 Check return value of font_spec_from_name.
64cc3cf6 4539 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4540
4541 * font.c (font_spec_from_name): Return Qnil if font name could not
4542 be parsed.
4543 (font_parse_name): Treat a `?' character as part of an XLFD.
4544
e301e634
CY
4545 * fns.c (Fsubstring): Doc fix.
4546
1c0db158
KH
45472009-01-19 Kenichi Handa <handa@m17n.org>
4548
51d861de 4549 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4550 (ftfont_list): Likewise.
4551
acf20901
JB
45522009-01-18 Juanma Barranquero <lekktu@gmail.com>
4553
fff4e459
JB
4554 * dbusbind.c (Fdbus_register_signal):
4555 * process.c (conv_sockaddr_to_lisp):
4556 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4557
acf20901
JB
4558 * callproc.c (Fgetenv_internal): Doc fix.
4559
e7abcdfb
CY
45602009-01-16 Chong Yidong <cyd@stupidchicken.com>
4561
4562 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4563 it is not even used.
4564
b60861e6
GM
45652009-01-16 Glenn Morris <rgm@gnu.org>
4566
4567 * font.c (Ffont_variation_glyphs): Silence compiler.
4568
8db52afe
JB
45692009-01-15 Juanma Barranquero <lekktu@gmail.com>
4570
4571 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4572 Reported by David Robinow <drobinow@gmail.com>.
4573
4cddb209
KH
45742009-01-15 Kenichi Handa <handa@m17n.org>
4575
51d861de 4576 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4577
f247f67b
JR
45782009-01-14 Jason Rumney <jasonr@gnu.org>
4579
4580 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4581 never a fontset. (Bug#1562)
f247f67b 4582
f56a4450
KH
45832009-01-14 Kenichi Handa <handa@m17n.org>
4584
4585 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4586 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4587
4e99855e
CY
45882009-01-13 Chong Yidong <cyd@stupidchicken.com>
4589
4590 * font.c (font_clear_prop): If clearing the family, clear the font
4591 width index too.
4592
fff4e459 4593 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4594
24f01470
JB
45952009-01-12 Juanma Barranquero <lekktu@gmail.com>
4596
4597 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4598 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4599 functions, use sizeof.
4600
a41240a3
MR
46012009-01-12 Martin Rudalics <rudalics@gmx.at>
4602
4603 * keyboard.c (read_char): Fix case where last_nonmenu_event
4604 returned a bad value with submenus. (Bug#447)
4605
944636b8
CY
46062009-01-12 Chong Yidong <cyd@stupidchicken.com>
4607
4608 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4609 family, clear the font width index too.
4610
0dad7c6f
JR
46112009-01-11 Jason Rumney <jasonr@gnu.org>
4612
4613 * keyboard.c (cmd_error_internal): Exit when errors occur before
4614 frame creation and not in daemon mode. (Bug#1836)
4615
7c2363af
CY
46162009-01-10 Chong Yidong <cyd@stupidchicken.com>
4617
4618 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4619 of a display vector, backtrack.
4620 (try_window_reusing_current_matrix): Check glyph type before
4621 referencing charpos member.
4622
97b1b294
EZ
46232009-01-10 Eli Zaretskii <eliz@gnu.org>
4624
4625 Fix Bug #876:
4626
4627 * coding.c (inhibit_null_byte_detection): New variable.
4628 (detect_coding, detect_coding_system): Don't pay attention to null
4629 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4630 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4631 <inhibit-iso-escape-detection>: Doc fix.
4632
4624b6e3
JR
46332009-01-09 Jason Rumney <jasonr@gnu.org>
4634
4635 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4636 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4637 Only report Unicode Plane 2 fonts as unicode-sip.
4638
323b840c
CY
46392009-01-09 Chong Yidong <cyd@stupidchicken.com>
4640
51d861de
SM
4641 * xfaces.c (Fx_font_family_list): Delete function.
4642 Move compatibility version to faces.el.
323b840c 4643
51d861de 4644 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4645
eba7400d
MR
46462009-01-09 Martin Rudalics <rudalics@gmx.at>
4647
4648 * frame.c (x_set_frame_parameters): Remember requested value for
4649 fullscreen before it's reset by the parameter handler.
4650
4b09796d
GM
46512009-01-09 Glenn Morris <rgm@gnu.org>
4652
4653 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4654 (last_command_event): ... and update all users.
4b09796d
GM
4655 (last_input_char): For clarity, rename to...
4656 (last_input_event): ... and update all users.
4657 (last-command-char, last-input-char): Move to subr.el as aliases.
4658 * cmds.c, commands.h: Update for last_command_char rename.
4659
14ccea62
CY
46602009-01-08 Chong Yidong <cyd@stupidchicken.com>
4661
51d861de 4662 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4663
5f004711
JR
46642009-01-08 Jason Rumney <jasonr@gnu.org>
4665
4666 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4667 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4668 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4669 Don't declare.
fff4e459 4670 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4671 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4672
b71f6f73
KH
46732009-01-07 Kenichi Handa <handa@m17n.org>
4674
50b06221 4675 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4676 remember the coding system used for decoding in
50b06221
KH
4677 coding_system (Bug#1039).
4678
b71f6f73 4679 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4680 breaking the loop. (Bug#870)
b71f6f73
KH
4681 (decode_coding_utf_16, decode_coding_emacs_mule)
4682 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4683 (decode_coding_charset): Likewise.
4684
56f668f7
MR
46852009-01-05 Martin Rudalics <rudalics@gmx.at>
4686
4687 * frame.c (x_set_frame_parameters): Make sure height (width) get
4688 applied when fullwidth (fullheight) is set. (Bug#1522)
4689
5da9424d
JB
46902009-01-04 Juanma Barranquero <lekktu@gmail.com>
4691
4692 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4693 (utc_base): Declare as ULONGLONG, not long double.
4694 (convert_time_raw): Delete.
4695 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4696 (initialize_utc_base): New function.
4697 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4698 (convert_from_time_t): Use initialize_utc_base; compute result with
4699 64-bit arithmetic.
4700 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4701
c4605e09
EZ
47022009-01-03 Eli Zaretskii <eliz@gnu.org>
4703
9acef61c 4704 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4705 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4706 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4707 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4708 [!subprocesses]: Define.
4709 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4710 (Flist_system_processes, Fsystem_process_attributes)
4711 [!subprocesses]: Call list_system_processes and
4712 system_process_attributes instead of returning Qnil.
4713
9acef61c
JB
4714 * dosfns.c (system_process_attributes, list_system_processes):
4715 New functions.
c4605e09
EZ
4716
4717 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4718
4719 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4720 Don't use the default (no-op) implementation.
4721
8b7d0a16
JR
47222009-01-03 Jason Rumney <jasonr@gnu.org>
4723
a6d46bc1
JR
4724 * keyboard.c (parse_modifiers_uncached): Wheel events are
4725 clicks (bug#687).
4726
8b7d0a16
JR
4727 * w32term.c (x_query_colors, x_query_color): New functions.
4728
4729 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4730 (svg_load_image): Cast returned pointers from dynamically loaded
4731 functions. Eliminate W32 specific code.
4732
bfe11752
DN
47332009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4734
89e2438a
DN
4735 * nsfns.m (x_set_foreground_color, x_set_background_color)
4736 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4737 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4738 x_ prefix instead of ns_. Update references.
4739 (syms_of_nsfns): Add a FIXME comment.
4740
4741 * nsterm.m (x_set_cursor_type): New prototype.
4742 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4743
bfe11752
DN
4744 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4745 for Solaris instead of incorrectly providing Qutime and Qcutime.
4746
031da700
EZ
47472009-01-02 Eli Zaretskii <eliz@gnu.org>
4748
4749 * w32.c (process_times): Compute sum of utime and stime.
4750 (system_process_attributes): Add Qtime to the alist.
4751
4752 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4753 and add them to the alist.
4754
4755 * process.c (top level) <Qtime, Qctime>: New variables.
4756 (syms_of_process): staticpro them.
4757 (Fsystem_process_attributes): Add their documentation to the doc
4758 string.
4759
4760 * process.h: Declare Qtime and Qctime.
4761
df23bf08
JR
47622009-01-02 Jason Rumney <jasonr@gnu.org>
4763
9acef61c 4764 * image.c (Qgobject): New symbol.
df23bf08
JR
4765 (syms_of_image): Initialize it.
4766 (init_svg_functions): Load some functions from gobject library.
4767
5bbdf7aa
DN
47682009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4769
4770 * frame.c (make_terminal_frame): Remove redundant code and useless
4771 block.
4772
63136da6
AS
47732009-01-01 Andreas Schwab <schwab@suse.de>
4774
4775 * process.c (conv_sockaddr_to_lisp): Add workaround for
4776 getsockname bug on BSD.
4777
9ef69046
CY
47782009-01-01 Chong Yidong <cyd@stupidchicken.com>
4779
d6fafbe0
CY
4780 * xfns.c (x_create_tip_frame): Set border width of the X window.
4781
51d861de 4782 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4783
f9c34147
JR
47842009-01-01 Jason Rumney <jasonr@gnu.org>
4785
9acef61c 4786 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4787 Don't block input, as per earlier xterm.c changes.
4788
f5497e45
AR
47892008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4790
4791 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4792 (ns_appkit_version_int): New function.
4793 (x-server-version): Use ns_appkit_version_int and follow 21+
4794 convention of returning 3 integers.
4795
c19cab20
KH
47962008-12-30 Kenichi Handa <handa@m17n.org>
4797
4798 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4799 (CHAR_SURROGATE_PAIR_P): New macro.
4800
4801 * font.h (struct font_driver): New member get_variation_glyphs.
4802
9acef61c 4803 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4804 (Ffont_variation_glyphs): New function.
4805 (syms_of_font): Defsubr it.
4806
4807 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4808 ftfont_variation_glyphs.
4809 (setup_otf_gstring): New function.
4810 (ftfont_drive_otf): Use it.
4811 (ftfont_shape_by_flt): Handle variation selector.
4812 (ftfont_variation_glyphs): New function.
4813
28cd591f
MR
48142008-12-30 Martin Rudalics <rudalics@gmx.at>
4815
4816 * frame.c (Vemacs_iconified): Remove.
4817
7f714baf
JR
48182008-12-30 Jason Rumney <jasonr@gnu.org>
4819
4820 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4821 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4822
9d2d22ab
CY
48232008-12-30 Chong Yidong <cyd@stupidchicken.com>
4824
4825 * indent.c (Fvertical_motion): Don't advance iterator if we have
4826 reseated to the desired position.
4827
4828 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4829 checking for pos match.
4830
545312c2
KH
48312008-12-30 Kenichi Handa <handa@m17n.org>
4832
1ede3eb6
KH
4833 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4834 just get the low 8-bit of the code.
4835
545312c2
KH
4836 * font.c (font_intern_prop): Validate str as multibyte.
4837
bd7bbf29
DN
48382008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4839
31e0750e
DN
4840 * dispextern.h (struct face): Move lface and hash from the middle
4841 of bitfields.
4842
bd7bbf29
DN
4843 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4844
b5672e7c
DN
48452008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4846
4847 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4848 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4849 instead of intervals.h.
4850
d704470f
AS
48512008-12-26 Andreas Schwab <schwab@suse.de>
4852
4853 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4854 cons.
4855
54b33868
MR
48562008-12-26 Martin Rudalics <rudalics@gmx.at>
4857
4858 * textprop.c (Qminibuffer_prompt): New variable.
4859 (syms_of_textprop): Initialize it.
4860 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4861 in minibuffer-prompt face. (Bug#1662)
4862
40b615d6
JR
48632008-12-25 Jason Rumney <jasonr@gnu.org>
4864
4865 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4866
baae5c2d
JR
48672008-12-24 Jason Rumney <jasonr@gnu.org>
4868
4869 * ralloc.c (r_alloc_reset_variable): New function.
4870
4871 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4872 record of what points where. (Bug#716)
baae5c2d 4873
a9051c88
DN
48742008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4875
4876 * minibuf.c (read_minibuf): Follow the non-interactive case when
4877 running as a daemon, before detaching.
4878
8b146312
AS
48792008-12-22 Andreas Schwab <schwab@suse.de>
4880
4881 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4882 * gtkutil.c (free_widget_value): Use xfree instead of free.
4883
56f2de10
MR
48842008-12-22 Martin Rudalics <rudalics@gmx.at>
4885
4886 * frame.c (delete_frame): New function derived from
4887 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4888 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4889 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4890 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4891 * frame.h: Extern delete_frame.
4892 * window.c (window_loop):
4893 * terminal.c (delete_terminal):
4894 * xterm.c (x_connection_closed):
4895 * xfns.c (Fx_hide_tip):
9acef61c 4896 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4897
1fc200d6
JR
48982008-12-21 Jason Rumney <jasonr@gnu.org>
4899
4900 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4901 when character maps to .notdef character.
4902
5e252df2
SM
49032008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4904
4905 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4906
99b72cc4
JR
49072008-12-20 Jason Rumney <jasonr@gnu.org>
4908
4909 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4910 a graphical frame on Windows. (Bug#1325)
99b72cc4 4911
acc49a52
JD
49122008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4913
4914 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4915
6ea15123
CY
49162008-12-20 Chong Yidong <cyd@stupidchicken.com>
4917
4918 * minibuf.c (Fread_buffer): Doc fix.
4919
b2dab6c8
JR
49202008-12-20 Jason Rumney <jasonr@gnu.org>
4921
54ea0c87 4922 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4923 server name in UNC paths. (Bug#719)
54ea0c87 4924
b2dab6c8 4925 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4926 charbuf. (Bug#1035)
b2dab6c8 4927
6d1921be
DN
49282008-12-19 Daniel Engeler <engeler@gmail.com>
4929
4930 * sysdep.c (serial_configure): Fix typo.
4931
53934c98
DN
49322008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4933
4934 * sysdep.c: Include alloca.h.
f4f634e8
DN
4935 (system_process_attributes): Add implementation for Solaris.
4936
4937 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4938
06e111a6
DN
49392008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4940
4941 Reorganize implementation of Flist_system_processes and
4942 Fsystem_process_attributes. No functional changes.
4943 * process.c: Don't #include pwd.h, grp.h and limits.h.
4944 (Flist_system_processes): Just call list_system_processes.
4945 (Fsystem_process_attributes): Just call system_process_attributes.
4946 (procfs_list_system_processes, time_from_jiffies)
4947 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4948 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4949
4950 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4951 (list_system_processes): Rename from
4952 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4953 Provide a do nothing implementation.
4954 (system_process_attributes): Rename from
4955 procfs_list_system_processes.
4956 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4957 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4958
4959 * w32.c (list_system_processes): Rename from
4960 w32_list_system_processes.
4961 (system_process_attributes): Rename from
4962 w32_system_process_attributes.
4963
4964 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4965
4966 * process.h (w32_list_system_processes)
4967 (w32_system_process_attributes): Remove.
362654a6
JB
4968 (list_system_processes, system_process_attributes):
4969 New prototypes.
06e111a6 4970
6a705b23
KH
49712008-12-19 Kenichi Handa <handa@m17n.org>
4972
4973 * xfont.c (xfont_decode_coding_xlfd): New function.
4974 (xfont_encode_coding_xlfd): New function.
4975 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4976 (xfont_list): Decode and encode XLFD by iso-8859-1.
4977 (xfont_match): Likewise.
4978 (xfont_list_family): Likewise.
4979 (xfont_open): Likewise.
4980
d66c0241 4981 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4982 names are utf-8.
4983
d66c0241 4984 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4985 names are utf-8.
4986
5a130941
JD
49872008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4988
4989 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4990 changed.
bfd20325
JD
4991 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4992 clicked on a detached tool bar button.
5a130941 4993
fd95644b
DN
49942008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4995
4996 * emacs.c (main): Print and error and exit when no data is read
4997 from the pipe.
4998
e6eee6ae
JR
49992008-12-17 Jason Rumney <jasonr@gnu.org>
5000
5001 * w32font.c (w32font_has_char): Always return -1.
5002
a35dd56b
KH
50032008-12-16 Kenichi Handa <handa@m17n.org>
5004
5005 * font.c (font_open_entity): Fix previous change.
5006
0e3635c2
DN
50072008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5008
5009 * process.c: Include <limits.h>.
5010
d4835507 50112008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5012
5013 * font.c (font_update_drivers): Fix mistake in reconstructing the
5014 driver list.
5015
50162008-12-16 Chong Yidong <cyd@stupidchicken.com>
5017
5018 * font.c (font_clear_cache): Fix format of font cache data.
5019
e2cbc401
CY
50202008-12-15 Chong Yidong <cyd@stupidchicken.com>
5021
5022 * xftfont.c (xftfont_open): Free Xft font pattern if
5023 XftFontOpenPattern fails.
5024
5025 * xterm.c (x_free_frame_resources): Remove extraneous call to
5026 free_frame_faces.
5027
b131d535
CY
50282008-12-13 Chong Yidong <cyd@stupidchicken.com>
5029
5030 * xterm.c (x_delete_display): Move xim_close_dpy call to
5031 x_delete_terminal.
5032 (x_delete_terminal): Call xim_close_dpy.
5033
e6df5336
JR
50342008-12-13 Jason Rumney <jasonr@gnu.org>
5035
5036 * w32font.c (intern_font_name): New function.
5037 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5038 (w32font_open_internal, Fx_select_font): Decode font name.
5039 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5040
5041 * w32font.h (intern_font_name): Declare new function.
5042
5043 * w32uniscribe.c (add_opentype_font_name_to_list):
5044 Use intern_font_name.
5045
20d68145
CY
50462008-12-13 Chong Yidong <cyd@stupidchicken.com>
5047
9f2554de
CY
5048 * frame.c (Fdelete_frame): Call free_font_driver_list.
5049
3d9bec9a
CY
5050 * font.c (free_font_driver_list): Implement missing function.
5051
20d68145
CY
5052 * w32term.c (w32_term_init): Don't initialize the image cache
5053 here; it will be done in init_frame_faces.
5054
5055 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5056 (struct x_display_info): Remove unused member null_pixel. New
5057 member xim_callback_data.
5058
5059 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5060 (xim_initialize): Save pointer to callback function data.
5061 (xim_close_dpy): Free callback function data. Call XCloseIM,
5062 reverting 2008-11-04 change by David Smith.
5063 (x_term_init): Don't initialize the image cache here; it will be
5064 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5065 (x_delete_display): Free x_dnd_atoms member.
5066
96f9306b
KH
50672008-12-13 Kenichi Handa <handa@m17n.org>
5068
6dec9044
JB
5069 * font.c (font_rescale_ratio): Moved from xfaces.c.
5070 Argument type changed. Handle a font-spec too.
96f9306b 5071 (font_score): Check Vface_font_rescale_alist.
6dec9044 5072 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5073
5074 * xfaces.c (font_rescale_ratio): Moved to font.c.
5075
8d5b4964
CY
50762008-12-13 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5079
e6df5336
JR
50802008-12-12 Jason Rumney <jasonr@gnu.org>
5081
5082 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5083 Vwindow_system_version to the real w32 major version.
5084
97c6058a
DN
50852008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5086
5087 * term.c (init_tty): Move setting the terminal name before the
5088 potential user: maybe_fatal.
5089
ec4e88d7
CY
50902008-12-11 Chong Yidong <cyd@stupidchicken.com>
5091
d4835507
JB
5092 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5093 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5094
b4233ec9
JR
50952008-12-11 Jason Rumney <jasonr@gnu.org>
5096
8ec71e23 5097 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5098 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5099
b4233ec9 5100 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5101 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5102
011a0143
JB
51032008-12-11 Juanma Barranquero <lekktu@gmail.com>
5104
5105 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5106
3c309f34
JB
51072008-12-11 Juanma Barranquero <lekktu@gmail.com>
5108
5109 * process.c (Fsystem_process_attributes, syms_of_process):
5110 Fix typo in name of Ssystem_process_attributes.
5111 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5112
fedc6ab5
JB
51132008-12-11 Juanma Barranquero <lekktu@gmail.com>
5114
5115 * syntax.c (Fmodify_syntax_entry): Doc fix.
5116
ba3de0e8
JB
51172008-12-10 Juanma Barranquero <lekktu@gmail.com>
5118
5119 * font.c (Ffont_spec): Move usage to end of docstring.
5120
174f1c74
JR
51212008-12-10 Jason Rumney <jasonr@gnu.org>
5122
5123 * w32font.c (Qcham): New symbol.
5124 (font_supported_scripts): Add cham, and comments for other new
5125 scripts in bitfield from OpenType spec.
9d32f818
JR
5126 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5127 contain characters beyond the bmp.
174f1c74 5128
7b649478
KH
51292008-12-10 Kenichi Handa <handa@m17n.org>
5130
5131 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5132 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5133 Qunicode_sip.
5134
2133e2d1
JB
51352008-12-10 Juanma Barranquero <lekktu@gmail.com>
5136
5137 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5138 (Fcoding_system_put): Use QCdefault_char.
5139 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5140
9af886ee
CY
51412008-12-09 Chong Yidong <cyd@stupidchicken.com>
5142
74d819eb
CY
5143 * xftfont.c (syms_of_xftfont): Fix typo.
5144
4ccfa1c0 5145 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5146
7c19d3ae
DN
51472008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5148
5149 * emacs.c (main): Close daemon_pipe on exec.
5150
567826bb
CY
51512008-12-08 Chong Yidong <cyd@stupidchicken.com>
5152
5153 * termchar.h (struct tty): New members termcap_term_buffer and
5154 termcap_strings_buffer.
5155
5156 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5157 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5158 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5159 All callers changed.
5160 (init_tty): Store termcap data and string buffers in new struct
5161 tty members termcap_term_buffer and termcap_strings_buffer.
5162 (delete_tty): Free them.
4ccfa1c0 5163 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5164
aa96c42b
SZ
51652008-12-07 Seiji Zenitani <zenitani@mac.com>
5166
5167 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5168 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5169
b7e1d896
CY
51702008-12-06 Chong Yidong <cyd@stupidchicken.com>
5171
5172 * coding.c (make_conversion_work_buffer): Disable buffer
5173 modification hooks in the work buffer.
5174
b5ec91a5
EZ
51752008-12-05 Eli Zaretskii <eliz@gnu.org>
5176
5177 * process.c (procfs_system_process_attributes): If `nread' has a
5178 negative value, assign zero to it.
5179
a5d2a52b
CY
51802008-12-05 Chong Yidong <cyd@stupidchicken.com>
5181
68c5540b 5182 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5183
7bf1bb21
KH
51842008-12-05 Kenichi Handa <handa@m17n.org>
5185
5186 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5187 second character is a combining character.
5188
2fdc7d00
EZ
51892008-12-05 Eli Zaretskii <eliz@gnu.org>
5190
5191 * process.c (procfs_system_process_attributes): Don't use cmd,
5192 cmdsize, and q without initializing them first.
5193
bf6bfba8
JR
51942008-12-04 Jason Rumney <jasonr@gnu.org>
5195
5196 * w32font.c (w32font_draw): Initialize orig_clip before getting
5197 it, and delete it when finished.
5198
a3b1a468
DN
51992008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5200
5201 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5202 case when running as a daemon before detaching.
5203
8b8be8eb
JB
52042008-12-03 Juanma Barranquero <lekktu@gmail.com>
5205
805f2638 5206 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5207
b1bde622
KH
52082008-12-03 Kenichi Handa <handa@m17n.org>
5209
e500c47d
KH
5210 * font.c (font_at): Set `multibyte' at first.
5211
ca516334
KH
5212 * coding.c (decode_coding_charset): Check type of an element of
5213 vector VALIDS.
7bf1bb21 5214 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5215
4ccfa1c0 5216 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5217 (font_for_char): Likewise.
5218
1e5ecd37
CY
52192008-12-03 Chong Yidong <cyd@stupidchicken.com>
5220
d5b01609 5221 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5222 (font_update_lface): Handle fonts with corrupted size specs,
5223 i.e. non-int and non-float.
d5b01609 5224
11e3a6e4 5225 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5226 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5227 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5228
ab06788b
CY
5229 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5230
1e5ecd37 5231 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5232 underline_minimum_offset for underline position.
1e5ecd37 5233
63c125ab
DN
52342008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5235
5236 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5237
5238 * character.c (c_string_width): Specify the type for LEN.
5239
3a8406e1
KH
52402008-12-03 Kenichi Handa <handa@m17n.org>
5241
4ccfa1c0 5242 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5243 (decode_coding_utf_8): Likewise.
4ccfa1c0 5244 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5245 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5246
651df7d9
CY
52472008-12-02 Chong Yidong <cyd@stupidchicken.com>
5248
5249 * keyboard.c (make_lispy_position): Only use PT if the selected
5250 window is current.
5251
1f625c6c
AS
52522008-12-02 Andreas Schwab <schwab@suse.de>
5253
f7741ce9
AS
5254 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5255
1f625c6c
AS
5256 * doprnt.c (doprnt1): Fix size of charbuf.
5257
92bc2678
CY
52582008-12-02 Chong Yidong <cyd@stupidchicken.com>
5259
5260 * keyboard.c (timer_check): Revert last change.
5261
93b9e8cc
JB
52622008-12-02 Juanma Barranquero <lekktu@gmail.com>
5263
5264 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5265
fd7a37d5
JB
52662008-12-01 Juanma Barranquero <lekktu@gmail.com>
5267
5268 * makefile.w32-in: Update dependencies.
5269 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5270
c115043b
AS
52712008-12-01 Andreas Schwab <schwab@suse.de>
5272
5273 * font.c (register_font_driver): Use xmalloc.
5274 (font_put_frame_data): Likewise.
5275
f5668d2a
CY
52762008-12-01 Chong Yidong <cyd@stupidchicken.com>
5277
860d96be
CY
5278 * xfaces.c (realize_x_face): Make abort condition clearer.
5279
f5668d2a
CY
5280 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5281
379c17e7
CY
52822008-11-30 Chong Yidong <cyd@stupidchicken.com>
5283
5284 * keyboard.c (timer_check): After a timer runs, ensure that the
5285 selected window's buffer is current.
5286
35f36d65
JB
52872008-11-30 Juanma Barranquero <lekktu@gmail.com>
5288
f952c61c
JB
5289 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5290 It was accidentally restored by the Unicode merge.
5291
35f36d65
JB
5292 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5293
b23077df
JB
52942008-11-29 Juanma Barranquero <lekktu@gmail.com>
5295
5296 * w32proc.c: Include "coding.h".
5297 (Fw32_short_file_name): Encode filename passed to Windows API.
5298 (Fw32_long_file_name): Encode filename passed to Windows API and
5299 decode back the result. (Bug#1433)
5300
b8ebe9dd
KH
53012008-11-29 Kenichi Handa <handa@m17n.org>
5302
8cc53f96
KH
5303 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5304 not before accessing it.
5305
b8ebe9dd
KH
5306 * charset.c (Fdefine_charset_internal): After calculating
5307 min_char, max_char, and fastmap, copy the charset structure again.
5308 (encode_char): Fix the previous change.
5309
59bc82c0
SZ
53102008-11-28 Seiji Zenitani <zenitani@mac.com>
5311
5312 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5313
5314 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5315
5316 * nsterm.m (x_set_frame_alpha): New function.
5317
32247e3d
EZ
53182008-11-27 Eli Zaretskii <eliz@gnu.org>
5319
5320 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5321
b003e5ff
JB
53222008-11-27 Juanma Barranquero <lekktu@gmail.com>
5323
5324 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5325 pointer to check_face_name.
5326
708550f5
KH
53272008-11-27 Kenichi Handa <handa@m17n.org>
5328
5329 * category.h (SET_CATEGORY_SET): Call set_category_set.
5330 (set_category_set): Extern it.
5331
5332 * category.c (hash_get_category_set): New function.
5333 (Fmodify_category_entry): Adjusted for the change of
5334 char_table_ref_and_range. Call hash_get_category_set to get a
5335 category set to store in the table.
5336
5337 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5338 Funify_charset.
5339
2ae37cf0 5340 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5341 (DECODE_CHAR): Check if the decoder vector is ready.
5342 (ENCODE_CHAR): Check if the encoder char-table is ready.
5343 (maybe_unify_char): Extern it.
5344
5345 * charset.c (Vchar_unified_charset_table): Delete it.
5346 (inhibit_load_charset_map): New variable.
5347 (temp_charset_work): New variable.
5348 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5349 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5350 New macros.
5351 (load_charset_map): Meaning of control_flag changed. If
5352 inhibit_load_charset_map is nonzero, setup a table in
5353 temp_charset_work.
5354 (load_charset): New argument control_flag.
5355 (map_charset_for_dump): New function.
5356 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5357 map_charset_for_dump.
5358 (Fdefine_charset_internal): If the charset method is MAP, load
5359 mapping tables by calling load_charset.
5360 (Funify_charset): Don't load a mapping table but directly set
5361 Vchar_unify_table.
5362 (maybe_unify_char): New function.
5363 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5364 Handle the case of inhibit_load_charset_map being nonzero.
5365 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5366 Handle the case of inhibit_load_charset_map being nonzero.
5367 (Fclear_charset_maps): Just free temp_charset_work.
5368 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5369 variable.
5370
5371 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5372 change of char_table_ref_and_range.
5373 (char_table_ref_and_range): Change the meaning of argument FROM
5374 and TO. Now the caller must provide initial values for *FROM
5375 and *TO.
5376
5377 * fontset.c (fontset_add): Adjusted for the change of
5378 char_table_ref_and_range.
5379 (fontset_get_font_group): Likewise.
5380 (Ffontset_info): Likewise.
5381
5382 * keymap.c (describe_vector): Adjusted for the change of
5383 char_table_ref_and_range. For char-table, put boundary between
5384 non-ASCII and 8-bit characters.
5385
5386 * print.c (print_object): For bool-vector, delete unnecessary
5387 check of ASCII_BYTE_P.
5388
9196133b
JR
53892008-11-26 Jason Rumney <jasonr@gnu.org>
5390
5391 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5392 leading in font height. (Bug#879)
9196133b 5393
9f688acf
GM
53942008-11-26 Glenn Morris <rgm@gnu.org>
5395
5396 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5397 redefinition with ifdef. (Bug#1383)
5398
90d19aff
AR
53992008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5400
5401 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5402
4ccfa1c0 54032008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5404
5405 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5406 New EmacsView methods.
5407 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5408 Fixes bug #1048,1357,1414.
5409
54102008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5411
5412 Fix bug #1362.
5413 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5414 is not an indexed color.
5415 * nsterm.m (free_indexed_color): Add argument checking.
5416 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5417
e7d5ecb3
CY
54182008-11-24 Chong Yidong <cyd@stupidchicken.com>
5419
5420 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5421 Document confirm-after-completion value for
5422 minibuffer-completion-confirm.
5423
c285743c
JR
54242008-11-24 Jason Rumney <jasonr@gnu.org>
5425
5426 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5427 warning.
5428
b0857706
JR
54292008-11-23 Jason Rumney <jasonr@gnu.org>
5430
5431 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5432 restored before returning.
5433
5434 * w32font.c (check_face_name): New function.
5435 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5436 fonts. (Bug#642)
b0857706 5437
ee50ff07
MR
54382008-11-22 Martin Rudalics <rudalics@gmx.at>
5439
5440 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5441 confirm-nonexistent-file-or-buffer in doc-string.
5442
b8ff72fa
SM
54432008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5444
5445 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5446 Fix copy/paste typo. Add checks.
5447
cee53ed4
KH
54482008-11-21 Kenichi Handa <handa@m17n.org>
5449
5450 * coding.c (detect_coding_iso_2022): Reject invalid composition
5451 sequence.
5452 (DECODE_COMPOSITION_START): If the current source is the last
5453 block, and the current composition doesn't end, regard this
5454 sequence as invalid.
5455 (decode_coding_iso_2022): Handle invalid composition sequence.
5456
f6ef1e65
MR
54572008-11-20 Martin Rudalics <rudalics@gmx.at>
5458
5459 * window.c (coordinates_in_window): Don't return
5460 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5461 line when the window is not the rightmost one. (Bug#1372)
5462
e08b1705
MR
54632008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5464
5465 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5466
ad98e89f
EZ
54672008-11-15 Eli Zaretskii <eliz@gnu.org>
5468
5469 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5470 and bright_bg if noninteractive is non-zero.
5471
fb098a4b
CY
54722008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5473
5474 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5475 x_draw_glyph_string_background.
5476
5477 * w32term.c (x_draw_glyph_string): Likewise.
5478
ce952b6e
CY
54792008-11-15 Chong Yidong <cyd@stupidchicken.com>
5480
5481 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5482 the next glyph string once past the overhang width.
5483
5484 * nsterm.m (ns_draw_glyph_string): Likewise.
5485
5486 * w32term.c (x_draw_glyph_string): Likewise.
5487
26ea7079
CY
54882008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5489
5490 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5491 double file close.
5492
1c33c906
MR
54932008-11-14 Martin Rudalics <rudalics@gmx.at>
5494
5495 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5496 dedicated status of window before attempting to display another
5497 buffer in it.
5498
8fc29035
JB
54992008-11-14 Juanma Barranquero <lekktu@gmail.com>
5500
5501 * msdos.c (Fmsdos_long_file_names):
5502 (syms_of_msdos) <dos-unsupported-char-glyph>:
5503 * dosfns.c (Fint86): Fix typos in docstrings.
5504
55fb4286
EZ
55052008-11-14 Eli Zaretskii <eliz@gnu.org>
5506
5507 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5508
3fda0315
KY
55092008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5510
5511 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5512
7e849c17
CY
55132008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5514
5515 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5516
5517 * frame.h: Negative alpha means "don't touch".
5518
5519 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5520
5521 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5522
b9fd67bd
DN
55232008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5524
5525 * hftctl.c:
5526 * chpdef.h:
5527 * acldef.h: Remove files used only for systems no longer supported.
5528
5529 * Makefile.in: Fix .o alphabetical ordering.
5530 (hftctl.o): Remove dependency, file removed.
5531 (keymap.o, print.o): Depend on charset.h.
5532
d5998e03
KH
55332008-11-10 Kenichi Handa <handa@m17n.org>
5534
2ae37cf0 5535 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5536
be70e183
CY
55372008-11-08 Chong Yidong <cyd@stupidchicken.com>
5538
5539 * dired.c (file_name_completion): If completion_ignore_case is
5540 enabled, ignore case when checking completion-regexp-list.
5541
7cf94eac
EZ
55422008-11-08 Eli Zaretskii <eliz@gnu.org>
5543
5544 * vm-limit.c (get_lim_data): Fix last change.
5545
ee107a89
KH
55462008-11-08 Kenichi Handa <handa@m17n.org>
5547
5548 * character.c (Fget_byte): New function.
5549 (syms_of_character): Defsubr Fget_byte.
5550
5fd15622
CY
55512008-11-07 Chong Yidong <cyd@stupidchicken.com>
5552
5553 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5554 cursor position is valid after scrolling.
5555
13d62fad
JB
55562008-11-06 Juanma Barranquero <lekktu@gmail.com>
5557
5558 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5559
a1dd2936
GM
55602008-11-06 Glenn Morris <rgm@gnu.org>
5561
5562 * xterm.c (handle_one_xevent): Don't let popup menus cause
5563 mouse-autoselect-window related window switching. (Bug#1261)
5564
860cd236
CY
55652008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5566
5567 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5568
653a3150
AS
55692008-11-04 Andreas Schwab <schwab@suse.de>
5570
5571 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5572
870f5cac
CY
55732008-11-03 Chong Yidong <cyd@stupidchicken.com>
5574
5575 * xfns.c (Fx_wm_set_size_hint): New function.
5576
1e02f3cb
MR
55772008-11-03 Martin Rudalics <rudalics@gmx.at>
5578
5579 * textprop.c (Fprevious_single_char_property_change): Return 0
5580 when there's no change in a string. (Bug#1301)
5581
e630dfc6
MR
55822008-11-02 Martin Rudalics <rudalics@gmx.at>
5583
5584 * frame.c (do_switch_frame): New argument NORECORD passed to
5585 Fselect_window.
5586 (Fselect_frame): New argument NORECORD passed to
5587 do_switch_frame.
5588 (Fset_frame_selected_window): New argument NORECORD passed to
5589 Fselect_frame.
5590 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5591 in call of do_switch_frame.
5592 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5593 Handle NORECORD argument in call of Fselect_frame.
5594 * lisp.h (do_switch_frame, Fselect_frame)
5595 (Fset_frame_selected_window): Adjust declarations.
5596 * window.c (select_frame_norecord): New function.
5597 (run_window_configuration_change_hook): Use it and call
5598 Fselect_frame with NORECORD set.
5599 (Fselect_window): Pass NORECORD to Fselect_frame.
5600 (Fset_window_configuration): Handle NORECORD argument in call of
5601 do_switch_frame.
5602 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5603 Fset_frame_selected_window.
5604 * keyboard.c (command_loop_1): Handle NORECORD in call of
5605 Fselect_frame (currently ifdefd).
5606
9020b223
GM
56072008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5608
5609 * emacs.c (USAGE2): Untabify.
5610
793ffee8
SM
56112008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5612
5613 * composite.c (fill_gstring_header): Fix copy/paste typo.
5614
ab6d1131
MR
56152008-10-31 Martin Rudalics <rudalics@gmx.at>
5616
5617 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5618 (Fother_window): Rename argument and rewrite doc-string.
5619 (select_window_norecord): Fix return value. (Bug#1276)
5620
601a9cf1
JB
56212008-10-30 Juanma Barranquero <lekktu@gmail.com>
5622
5623 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5624 new frames overriding foreground for tooltips. Based on similar patch
5625 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5626
813b0652
CY
56272008-10-29 Chong Yidong <cyd@stupidchicken.com>
5628
5629 * emacs.c (Fdaemon_initialized): Initialize nfd.
5630
4414f58f
MR
56312008-10-29 Martin Rudalics <rudalics@gmx.at>
5632
5633 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5634 (Fwindow_text_height): Clarify doc-strings.
5635 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5636 doc-string of window-scroll-functions.
5637
ecdcaa09
RS
56382008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5639
5640 * category.c (syms_of_category): Fix typo in docstring.
5641
23fe745a
JB
56422008-10-28 Juanma Barranquero <lekktu@gmail.com>
5643
5644 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5645 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5646 Fix typos in docstrings.
5647
ff808935
DN
56482008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5649
5650 * emacs.c (daemon_pipe): Make non-static.
5651 (IS_DAEMON): Move definition ...
5652 * lisp.h (IS_DAEMON): ... here.
5653 (daemon_pipe): Declare.
5654 (is_daemon): Remove.
5655 * dispnew.c (init_display): Use IS_DAEMON.
5656
fc012771
SM
56572008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5658
5659 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5660 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5661
5662 * emacs.c (is_daemon): Remove.
5663 (main): Don't set is_daemon.
5664 (IS_DAEMON): New macro.
5665 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5666 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5667 parent exits.
5668 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5669
d8bdbe6f
CY
56702008-10-27 Chong Yidong <cyd@stupidchicken.com>
5671
d1a072bf
CY
5672 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5673 over-sized glyph, draw it with the default glyph width.
5674
e2e325aa
CY
5675 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5676 glyph, draw it with the default glyph width.
5677
5678 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5679 glyph, draw it with the default glyph width.
5680
d8bdbe6f
CY
5681 * xdisp.c (try_scrolling): When computing the distance from the
5682 scroll margin to PT, try moving some distance past the window
5683 bottom before giving up.
5684
7bfac547
MR
56852008-10-27 Martin Rudalics <rudalics@gmx.at>
5686
5687 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5688 (Fset_window_buffer): Explain in doc-string that a window can be
5689 "strongly" dedicated to its buffer.
5690
4ff029f6
DN
56912008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5692
5693 * emacs.c (daemon_name): New variable.
5694 (main): Deal with --daemon=SERVER_NAME.
5695 (Fdaemonp): Return a name if one was passed to --daemon.
5696
5790ef40
DN
56972008-10-26 Romain Francoise <romain@orebokech.com>
5698
f9bd0df9 5699 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5700 (main): Create a pipe before forking, make the parent exit only after
5701 the child has closed its end of the pipe. Move closing the
5702 descriptors ...
5703 (Fdaemon_initialized): ... here. New function.
5704
f5385255
SM
57052008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5706
4d632321
SM
5707 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5708 the previous unoptimized table.
5709
f5385255
SM
5710 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5711 the distinction between non-nil and non-t value of `dedicated'.
5712
6c56a0f3
CY
57132008-10-25 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5716 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5717
fec89261
MR
57182008-10-25 Martin Rudalics <rudalics@gmx.at>
5719
5720 * window.c (Fget_buffer_window, Fdelete_windows_on)
5721 (Freplace_buffer_in_windows): Make buffer argument optional and
5722 rename to buffer_or_name.
5723
34fcddd0
CY
57242008-10-24 Chong Yidong <cyd@stupidchicken.com>
5725
f5385255
SM
5726 * xdisp.c (handle_single_display_spec, handle_display_prop):
5727 Undo 2005-05-16 change.
34fcddd0
CY
5728 (handle_stop): Pop iterator if it's loaded with an empty string.
5729 (get_overlay_strings_1): Don't save iterator if it's loaded with
5730 an empty string (bug#1201).
5731
064766f2
KH
57322008-10-24 Kenichi Handa <handa@m17n.org>
5733
5734 * ftfont.c (ftfont_otf_features): Fix previous change.
5735 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5736 calling ftfont_otf_features.
5737
f9bd0df9 57382008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5739
5740 * font.c (font_match_p): Fix for the case that a vector of
5741 characters is in script-representative-chars.
5742
1dae9197
MA
57432008-10-24 Michael Albinus <michael.albinus@gmx.de>
5744
5745 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5746 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5747 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5748 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5749 macro. (Bug#1186)
1dae9197 5750
f9bd0df9 57512008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5752
5753 * s/sol2-10.h: New file.
5754
878a4584
JB
57552008-10-23 Juanma Barranquero <lekktu@gmail.com>
5756
5757 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5758 poor beast has survived 9+ years and the jump from xterm.c!).
5759
cd265ca6
MR
57602008-10-23 Martin Rudalics <rudalics@gmx.at>
5761
5762 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5763 Reword doc-string.
f5385255 5764 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5765
472a4dc9
JB
57662008-10-23 Juanma Barranquero <lekktu@gmail.com>
5767
5768 * character.c (syms_of_character) <script-representative-chars>:
5769 <unicode-category-table>: Doc fixes.
5770
159bd5a2
NF
57712008-10-23 Noah Friedman <friedman@splode.com>
5772
5773 * coding.c (make_conversion_work_buffer): Check that
5774 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5775 Fget_buffer_create.
5776
49f9c344
KH
57772008-10-23 Kenichi Handa <handa@m17n.org>
5778
5779 * font.c (font_add_log): Check the values of extra properties.
5780
12bb3111
MR
57812008-10-22 Martin Rudalics <rudalics@gmx.at>
5782
5783 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5784 Reword doc-string.
5785 (Fset_window_parameter): Use NILP.
5786 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5787 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5788
bbeb4e99
JB
57892008-10-22 Juanma Barranquero <lekktu@gmail.com>
5790
5791 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5792
57932008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5794
5795 * nsfns.m (ns_appkit_version): New function.
5796 (x-server-version): Use it.
5797 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5798 (x-server-vendor): Don't check_ns().
5799
5800 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5801
a9b555d3
JB
58022008-10-22 Juanma Barranquero <lekktu@gmail.com>
5803
5804 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5805 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5806
4626499f
KH
58072008-10-22 Kenichi Handa <handa@m17n.org>
5808
e3681952
KH
5809 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5810 scripts.
5811
4626499f
KH
5812 * category.c (word_boundary_p): Check scripts instead of charset.
5813 Handle nil value in word-separating-categories and
5814 word-combining-categories.
5815 (syms_of_category): Fix docstrings of word-separating-categories
5816 and word-combining-categories.
5817
1560f91a
EZ
58182008-10-21 Eli Zaretskii <eliz@gnu.org>
5819
5820 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5821 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5822
f4668441
MR
58232008-10-21 Martin Rudalics <rudalics@gmx.at>
5824
5825 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5826 Rename arg "buffer" to "buffer_or_name".
5827 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5828 it optional.
5829 (no_switch_window): Remove since the return value is not used.
a9b555d3 5830 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5831 Consider window as dedicated when Fwindow_dedicated_p returns a
5832 non-nil value.
5833 * lisp.h: Remove prototype for no_switch_window.
5834
fd75ddb2
JD
58352008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5836
5837 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5838 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5839
07295713
KH
58402008-10-21 Kenichi Handa <handa@m17n.org>
5841
5842 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5843 check Vlatin_extra_code_table.
5844
712adc82
EZ
58452008-10-20 Eli Zaretskii <eliz@gnu.org>
5846
5847 * fileio.c (Fset_file_modes): Doc fix.
5848
f549eb0b
MA
58492008-10-19 Michael Albinus <michael.albinus@gmx.de>
5850
5851 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5852 in arrays.
5853
aac0c6e3
MR
58542008-10-19 Martin Rudalics <rudalics@gmx.at>
5855
5856 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5857 Mention kill-buffer in doc-string.
5858 (Fset_window_buffer): Reinsert tem check removed in last commit.
5859 (Fenlarge_window, Fshrink_window): Have argument names and
5860 doc-string follow Elisp manual more closely.
5861
58622008-10-18 Eli Zaretskii <eliz@gnu.org>
5863
5864 * fileio.c (Fset_file_modes): Doc fix.
5865
58662008-10-18 Martin Rudalics <rudalics@gmx.at>
5867
5868 * window.c (Fwindow_width, Fset_window_start)
5869 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5870 (Fdelete_windows_on, Freplace_buffer_in_windows):
5871 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5872 (Fwindow_dedicated_p): Make window argument optional.
5873 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5874 (Fset_window_buffer): Respect any non-nil dedicated value for
5875 window. Rename "buffer" argument to "buffer_or_name".
5876
58772008-10-18 Ulrich Mueller <ulm@gentoo.org>
5878
5879 * m/sh3.h: New file, machine description for SuperH.
5880
58812008-10-17 Martin Rudalics <rudalics@gmx.at>
5882
5883 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5884
58852008-10-17 Kenichi Handa <handa@m17n.org>
5886
5887 * ftfont.c (ftfont_otf_features): Fix indexing
5888 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5889
58902008-10-16 Magnus Henoch <mange@freemail.hu>
5891
5892 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5893 (Fdbus_call_method_asynchronously): Ditto.
5894 This change makes C-h f display the argument list.
5895
58962008-10-16 Chong Yidong <cyd@stupidchicken.com>
5897
5898 * fileio.c (Fexpand_file_name): Doc fix.
5899
5900 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5901 of :foreground and :background equivalent to unspecified (20.x
5902 compatibility).
5903
59042008-10-15 Eli Zaretskii <eliz@gnu.org>
5905
5906 * buffer.c (syms_of_buffer): Doc fix.
5907
59082008-10-14 Kenichi Handa <handa@m17n.org>
5909
5910 * font.c (font_clear_prop): When clearing font width, clear the
5911 average width field too.
5912
59132008-10-12 Andreas Schwab <schwab@suse.de>
5914
5915 * ftfont.c (ftfont_shape_by_flt): Make static.
5916 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5917
5918 * font.c: Don't include <m17n-flt.h>.
5919
59202008-10-10 Eli Zaretskii <eliz@gnu.org>
5921
5922 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5923
59242008-10-09 Eli Zaretskii <eliz@gnu.org>
5925
5926 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5927 away code.
5928
59292008-10-09 Chong Yidong <cyd@stupidchicken.com>
5930
5931 * dispnew.c (update_text_area): Avoid looping due to large glyph
5932 overhangs (bug#1070).
5933
59342008-10-09 Kenichi Handa <handa@m17n.org>
5935
5936 * fontset.c (face_for_char): If face->fontset is negative, just
5937 return ascii_face.
5938
f5385255
SM
5939 * font.c (font_delete_unmatched): Fix previous change.
5940 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5941
59422008-10-09 Martin Rudalics <rudalics@gmx.at>
5943
5944 * frame.c (Fraise_frame): On text-only terminals select frame in
5945 order to make it visible. (Bug#1061)
5946
59472008-10-08 Chong Yidong <cyd@stupidchicken.com>
5948
5949 * fontset.c (fontset_find_font): Check frame validity.
5950
59512008-10-07 Chong Yidong <cyd@stupidchicken.com>
5952
a9b555d3 5953 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5954 (xg_display_close): Allow Emacs to close all displays (bug#985).
5955
59562008-10-06 Andreas Schwab <schwab@suse.de>
5957
f5385255 5958 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5959
59602008-10-06 Chong Yidong <cyd@stupidchicken.com>
5961
f5385255 5962 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5963
a9b555d3 5964 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5965
5966 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5967 during initialization.
5968
59692008-10-04 Eli Zaretskii <eliz@gnu.org>
5970
5971 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5972 whole thing on MSDOS frames as well as on a TTY.
5973
5974 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5975 well as for TTY.
5976 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5977 well as on a TTY.
5978
5979 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5980 as well as for TTY.
5981
5982 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5983
5984 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5985 MSDOS frames as well.
5986
59872008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5988
5989 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5990 correct arguments.
b71ac3dd 5991 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5992
59932008-10-03 Glenn Morris <rgm@gnu.org>
5994
5995 * emacs.c (USAGE1): Add --daemon.
5996
59972008-10-02 Eli Zaretskii <eliz@gnu.org>
5998
5999 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6000 100, so it's in percents as advertised.
6001
60022008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6003
6004 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6005 (ns_output.current_cursor, ns_output.desired_cursor)
6006 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6007 (FRAME_NEW_CURSOR_COLOR): Remove.
6008
6009 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6010 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6011 enumeration (HOLLOW_BOX_CURSOR, etc.).
6012
6013 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6014 (draw_window_cursor): Simplify code.
f5385255
SM
6015 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6016 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6017 updates manually.
a9b555d3
JB
6018 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6019 Use core Emacs cursor types.
aac0c6e3 6020
b8ff72fa 6021 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6022
60232008-10-02 Martin Rudalics <rudalics@gmx.at>
6024
6025 * process.c (Faccept_process_output): Fix doc-string.
6026
60272008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6028
6029 * gmalloc.c (__sbrk): Also define for uClibc.
6030
6031 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6032 for uClibc.
6033
60342008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6035
6036 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6037 styles.
6038 (nsfont_open): Reenable the cache.
6039
60402008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6041
6042 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6043 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6044
60452008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6046
6047 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6048 a suspended terminal.
6049
60502008-09-30 Michael Albinus <michael.albinus@gmx.de>
6051
6052 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6053
60542008-09-30 Eli Zaretskii <eliz@gnu.org>
6055
6056 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6057
60582008-09-30 Chong Yidong <cyd@stupidchicken.com>
6059
6060 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6061 in a continued line coincides with a line beginning.
6062
60632008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6064
6065 * nsfont.m (nsfont_trait_distance): Fix bug.
6066 (nsfont_list): Return a list rather than a vector (syncs with Handa
6067 changes of 2008-05-14).
6068 (nsfont_open): Improve logging.
6069
60702008-09-29 Andreas Schwab <schwab@suse.de>
6071
6072 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6073
60742008-09-28 Martin Rudalics <rudalics@gmx.at>
6075
6076 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6077 name as char-resolve-modifiers.
6078 Reported by: Markus Triska <markus.triska@gmx.at>
6079
60802008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6081
6082 * dispnew.c (init_display): Return earlier when running as a daemon.
6083
60842008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6085
6086 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6087
60882008-09-27 Eli Zaretskii <eliz@gnu.org>
6089
6090 * composite.c (Fcomposition_get_gstring)
6091 (Fcompose_region_internal, Fcompose_string_internal)
6092 (Ffind_composition_internal): Doc fix.
6093 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6094 (syms_of_composite) <auto-composition-function>: Doc fix.
6095 (syms_of_composite) <composition-function-table>: Doc fix.
6096
60972008-09-25 Chong Yidong <cyd@stupidchicken.com>
6098
6099 * search.c (wordify): New argument for lax word-ends.
6100 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6101
61022008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6103
6104 * lisp.h (is_daemon): Declare.
6105 * dispnew.c (init_display): Do not try to initialize the terminal
6106 when running as a daemon.
6107
61082008-09-22 Chong Yidong <cyd@stupidchicken.com>
6109
6110 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6111 x_display_pixel_height.
6112
61132008-09-22 Martin Rudalics <rudalics@gmx.at>
6114
6115 * undo.c (record_point): Don't call Fundo_boundary for first
6116 change. (Bug#731)
6117
61182008-09-22 Juanma Barranquero <lekktu@gmail.com>
6119
6120 * emacs.c (Fdaemonp): Doc fix.
6121
61222008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6123
6124 * emacs.c (main): Place #ifdef in the proper place.
6125
61262008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6127
6128 * emacs.c (standard_args): Add --daemon.
6129 (main): Disconnect from the terminal when --daemon is passed.
6130 (is_daemon): New variable.
6131 (Fdaemonp): New function.
6132 (syms_of_emacs): Defsubr it.
6133
61342008-09-20 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * xdisp.c (get_next_display_element): Handle string display
6137 correctly when checking for the end of a box run.
6138
61392008-09-20 Glenn Morris <rgm@gnu.org>
6140
6141 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6142 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6143 (Frename_file): Avoid copying to trash if a rename involves
6144 a delete. (Bug#964).
6145
61462008-09-20 Eli Zaretskii <eliz@gnu.org>
6147
6148 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6149 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6150 frames as well as termcap frames.
6151 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6152 get_named_tty.
6153
61542008-09-19 Eli Zaretskii <eliz@gnu.org>
6155
6156 * process.c (procfs_system_process_attributes): Fix cmdline in
6157 case /proc/PID/cmdline is empty.
6158
6159 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6160 x_display_pixel_height.
6161
61622008-09-19 Juanma Barranquero <lekktu@gmail.com>
6163
6164 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6165
6166 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6167 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6168
61692008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6170
6171 * dispextern.h (struct it): Move line_wrap away from the middle of
6172 bitfields. Move voffset in struct iterator_stack_entry after the
6173 bitfields. Move tab_width near after another short.
6174
61752008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6176
6177 * frame.h (struct frame): Move alpha from the middle of bitfields.
6178
6179 * window.h (struct window): Move frozen_window_start_p after the
6180 rest of the bitfields to reduce padding.
6181
61822008-09-18 Chong Yidong <cyd@stupidchicken.com>
6183
6184 * xterm.h (x_display_info): Remove `height' and `width' members.
6185
6186 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6187
6188 * w32term.h (w32_display_info): Remove `height', `width',
6189 `height_in', and `width_in' members.
6190
b8ff72fa
SM
6191 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6192 New functions.
aac0c6e3
MR
6193 (x_calc_absolute_position): Use them.
6194 (x_term_init): Omit removed `height' and `width' members.
6195
b8ff72fa
SM
6196 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6197 New functions.
aac0c6e3
MR
6198 (w32_read_socket, x_calc_absolute_position): Use them.
6199 (w32_initialize_display_info, w32_term_init): Omit removed members
6200 of w32_display_info.
6201
b8ff72fa
SM
6202 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6203 New functions.
6204 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6205
b8ff72fa
SM
6206 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6207 New functions.
aac0c6e3
MR
6208 (x_calc_absolute_position): Use them.
6209 (x_term_init): Omit removed `height' and `width' members.
6210
6211 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6212 (compute_tip_xy):
6213 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6214 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6215 x_display_pixel_width.
6216
62172008-09-18 Kenichi Handa <handa@m17n.org>
6218
6219 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6220 (composition_compute_stop_pos): Fix handling of static composition.
6221 (Fcomposition_get_gstring): Check FROM and TO at first.
6222
62232008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6224
46e722a9 6225 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6226 mixup (YAILOM).
6227
62282008-09-17 Chong Yidong <cyd@stupidchicken.com>
6229
6230 * indent.c (Fvertical_motion): Use position reported by iterator
6231 instead of PT for determining screen motion (bug#943).
6232
62332008-09-17 Romain Francoise <romain@orebokech.com>
6234
6235 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6236
62372008-09-17 Kenichi Handa <handa@m17n.org>
6238
6239 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6240
6241 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6242 if necessary.
6243
62442008-09-16 Kenichi Handa <handa@m17n.org>
6245
6246 * coding.c (make_conversion_work_buffer): Avoid calling
6247 Fget_buffer_create if it is not necessary.
6248
62492008-09-15 Martin Rudalics <rudalics@gmx.at>
6250
6251 * window.c (Fselect_window): Don't update window_select_count and
6252 use_time when norecord is not nil.
6253
62542008-09-14 Kenichi Handa <handa@m17n.org>
6255
6256 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6257 specpdl_ptr.
6258
62592008-09-12 Kenichi Handa <handa@m17n.org>
6260
6261 * indent.c (scan_for_column): Don't handle automatic composition
6262 if the current buffer is not associated with a window.
6263
6264 * composite.c (composition_reseat_it): If the current buffer is
6265 not associated with a window, ignore the automatic composition.
6266 (find_automatic_composition): Likewise.
6267
62682008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6269
6270 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6271 (Fgpm_mouse_stop): Use it.
6272 * termhooks.h (close_gpm): Declare.
6273 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6274 connection if Gpm_GetEvent fails.
6275
6276 * window.c (set_window_buffer): Always preserve current-buffer.
6277
62782008-09-12 Glenn Morris <rgm@gnu.org>
6279
6280 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6281
62822008-09-11 Glenn Morris <rgm@gnu.org>
6283
6284 * charset.c (charset-map-path): Doc fix.
6285
62862008-09-10 Kenichi Handa <handa@m17n.org>
6287
6288 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6289
6290 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6291 compose a grapheme cluster with the preceding base glyph.
6292
6293 * composite.c (composition_compute_stop_pos): Fix previous change.
6294 Reset cmp_it->id to -1 at first.
6295
62962008-09-10 Glenn Morris <rgm@gnu.org>
6297
6298 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6299
63002008-09-09 Chong Yidong <cyd@stupidchicken.com>
6301
6302 * keyboard.c (read_key_sequence): Reapply translation maps when
6303 switching keyboards.
6304
63052008-09-09 Kenichi Handa <handa@m17n.org>
6306
6307 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6308 characters.
6309
6310 * composite.c (FORWARD_CHAR): Fix calculation
6311 of (POSITION).pos_byte.
6312 (composition_compute_stop_pos): Limit the search of composition to
6313 at most 500 characters ahead. If we reach the limit or find a
6314 newline, set cmp_it->ch to -2 and return 0.
6315 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6316
63172008-09-08 Kenichi Handa <handa@m17n.org>
6318
6319 * indent.c (Fvertical_motion): Be sure to set
6320 it_overshoot_expected if it.cmp_it.id is non-negative.
6321
63222008-09-07 Andreas Schwab <schwab@suse.de>
6323
6324 * callproc.c (Fcall_process): Don't hold references to string data
6325 across garbage collection. Move initialisation of new_argv down
6326 to avoid compiler bug.
6327
63282008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6329
6330 * process.c (Fsystem_process_attributes): Doc fix.
6331
63322008-09-07 Chong Yidong <cyd@stupidchicken.com>
6333
6334 * callproc.c (Fcall_process): Canonicalize current directory name.
6335
6336 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6337 iterator advances to the next line if the current line ends in a
6338 continued tab.
6339
63402008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6341
6342 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6343 member to point to cmp_from.
6344
6345 * xdisp.c: Doc fix for references to gidx data member.
6346
63472008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6350
63512008-09-07 Kenichi Handa <handa@m17n.org>
6352
6353 * composite.c (FORWARD_CHAR): Check STOP after
6354 incrementing (POSITION).pos.
6355
63562008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6357
6358 * process.c (Fsystem_process_attributes): Doc fix.
6359
63602008-09-06 Chong Yidong <cyd@stupidchicken.com>
6361
6362 * keyboard.c (Ftop_level): Doc fix.
6363
63642008-09-06 Eli Zaretskii <eliz@gnu.org>
6365
6366 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6367 minibuffer, don't let lower part of menu invade the echo area.
6368
6369 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6370 "char *q" to access menu text and advance through it. Revert the
6371 change that displayed ">" instead of ASCII character 0x10.
6372
63732008-09-05 Eli Zaretskii <eliz@gnu.org>
6374
6375 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6376 toggle boxes and radio buttons on MS-DOS as well.
6377
63782008-09-05 Kenichi Handa <handa@m17n.org>
6379
6380 * composite.c (autocmp_chars): Check lookback count.
6381 (composition_compute_stop_pos): Set cmp_it->lookback.
6382 (composition_reseat_it): Check lookback count.
6383 (struct position_record): New struct.
6384 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6385 (find_automatic_composition): New function.
6386 (composition_adjust_point): Use find_automatic_composition.
6387
6388 * dispextern.h (struct composition_it): New member lookback.
6389
63902008-09-02 Chong Yidong <cyd@stupidchicken.com>
6391
6392 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6393 if moving by a single line.
6394
63952008-09-02 Andreas Schwab <schwab@suse.de>
6396
6397 * xterm.c (x_delete_display): Fix merge error.
6398
6399 * fileio.c (Fexpand_file_name): Remove unused variables.
6400
64012008-09-02 Eli Zaretskii <eliz@gnu.org>
6402
6403 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6404 storage on all platforms, not just on DOS_NT.
6405
64062008-09-02 Jason Rumney <jasonr@gnu.org>
6407
b8ff72fa
SM
6408 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6409 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6410
64112008-09-01 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * xfaces.c (Finternal_set_alternative_font_family_alist)
6414 (Finternal_set_alternative_font_registry_alist): Properly copy
6415 entire alist structure.
6416
64172008-09-01 Kenichi Handa <handa@m17n.org>
6418
d66c0241 6419 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6420 representative chars of the script is a vector.
d66c0241
JB
6421 (ftfont_list): Handle the case where the representative chars of
6422 the script is a vector.
aac0c6e3
MR
6423
6424 * character.c (syms_of_character): Docstring of
6425 script-representative-chars fixed.
6426
64272008-08-31 Eli Zaretskii <eliz@gnu.org>
6428
6429 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6430 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6431 the menu. Allocate larger buffer for `text', to account for
6432 possible ^C characters.
6433
64342008-08-31 Martin Rudalics <rudalics@gmx.at>
6435
6436 * xdisp.c (prepare_menu_bars): Don't call
6437 Vwindow_size_change_functions with arg Qt.
6438
64392008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6440
6441 * font.h (font_range):
6442 * fileio.c (report_file_error):
46e722a9
SM
6443 * composite.c (composition_update_it): Yet another int/Lisp_Object
6444 mixup (YAILOM).
aac0c6e3
MR
6445
64462008-08-30 Glenn Morris <rgm@gnu.org>
6447
6448 * data.c (Fmake_variable_frame_local): Doc fix.
6449
6450 * frame.c (Fmodify_frame_parameters): Doc fix.
6451
64522008-08-30 Eli Zaretskii <eliz@gnu.org>
6453
6454 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6455 needed by GetTokenInformation.
6456 (w32_system_process_attributes): Check return values of all system
6457 APIs.
6458
6459 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6460 only when the state changes.
6461 (IT_update_begin, IT_update_end): Add termscript trace.
6462
6463 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6464 clipboard is unavailable. Set dst to NULL if it doesn't point to
6465 malloc'ed data.
6466 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6467 passing random values to xfree.
6468
6469 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6470 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6471
64722008-08-29 Jason Rumney <jasonr@gnu.org>
6473
6474 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6475
64762008-08-29 Eli Zaretskii <eliz@gnu.org>
6477
6478 * composite.c (fill_gstring_body): Avoid compiler warnings.
6479
6480 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6481 LGLYPH_SET_CODE to avoid compiler warnings.
6482
2ae37cf0 6483 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6484
6485 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6486
6487 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6488 LGLYPH_SET_CODE.
6489
64902008-08-29 Kenichi Handa <handa@m17n.org>
6491
6492 * fileio.c (report_file_error): Don't downcase the first character
6493 of errstring if it is still unibyte.
6494
64952008-08-29 Kenichi Handa <handa@m17n.org>
6496
6497 These changes are to re-implement the automatic composition so
6498 that it doesn't use text properties.
6499
6500 * Makefile.in (ftfont.o): Depend on composite.h.
6501 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6502
6503 * character.h (Vunicode_category_table): Extern it.
6504
6505 * character.c (Vunicode_category_table): New variable.
6506 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6507
6508 * chartab.c (optimize_sub_char_table): Perform more greedy
6509 optimization.
6510
b8ff72fa
SM
6511 * composite.h (enum composition_method):
6512 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6513 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6514 (Vcomposition_function_table): Extern it.
6515 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6516 (composition_gstring_put_cache, composition_gstring_from_id)
6517 (composition_gstring_p, composition_gstring_width)
6518 (composition_compute_stop_pos, composition_reseat_it)
6519 (composition_update_it, composition_adjust_point): Extern them.
6520 (Fcomposition_get_gstring): EXFUN it.
6521
d66c0241 6522 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6523 (Vcomposition_function_table)
6524 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6525 (gstring_hash_table, gstring_work, gstring_work_headers):
6526 New variables.
aac0c6e3
MR
6527 (gstring_lookup_cache, composition_gstring_put_cache)
6528 (composition_gstring_from_id, composition_gstring_p)
6529 (composition_gstring_width, fill_gstring_header)
6530 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6531 (composition_reseat_it, composition_update_it)
b8ff72fa 6532 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6533 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6534 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6535 Defsubr compostion_get_gstring.
6536
6537 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6538 cmp_id.
6539 (struct glyph_string): Delete the member gidx. New members
6540 cmp_id, cmp_from, and cmp_to.
6541 (enum it_method): Delete GET_FROM_COMPOSITION.
6542 (struct composition_it): New struct.
6543 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6544 Delete c, len, cmp_id, cmp_len in u.comp.
6545
6546 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6547 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6548 (enum lglyph_indices): Likewise.
b8ff72fa 6549 (font_range): Adjust extern.
aac0c6e3
MR
6550 (font_fill_lglyph_metrics): Extern it.
6551
6552 * font.c (QCf): New variable.
6553 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6554 (font_prepare_composition): Delete this function.
6555 (font_range): Type and arguments changed.
6556 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6557 (font_fill_lglyph_metrics): New function.
b8ff72fa 6558 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6559 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6560 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6561 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6562
6563 * fontset.h (font_for_char): Extern it.
6564
6565 * fontset.c (font_for_char): New function.
6566
6567 * ftfont.c: Include composite.h.
6568 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6569 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6570
6571 * indent.c: Include composite.h and dispextern.h.
6572 (check_composition): Delete this function.
6573 (scan_for_column): Handle composition by
6574 composition_compute_stop_pos, composition_reseat_it, and
6575 composition_update_it.
6576 (compute_motion): Likewise.
6577 (Fvertical_motion): Fix checking of composition.
6578
6579 * keyboard.c (adjust_point_for_property): Check composition by
6580 composition_adjust_point.
6581
b8ff72fa 6582 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6583 struct glyph_string.
6584
b8ff72fa
SM
6585 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6586 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6587 struct glyph.
6588 (produce_composite_glyph): Likewise.
6589
b8ff72fa
SM
6590 * w32term.c (x_draw_composite_glyph_string_foreground):
6591 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6592 (x_draw_glyph_string): Likewise.
6593
6594 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6595 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6596
6597 * xdisp.c: Include font.h.
6598 (it_props): Delete the entry for Qauto_composed.
6599 (init_iterator): Initialize it->cmp_it.id to -1.
6600 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6601 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6602 (handle_auto_composed_prop): Delete it.
6603 (handle_composition_prop): Handle only static composition.
6604 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6605 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6606 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6607 (pop_it): Likewise.
6608 (get_next_element): Delete next_element_from_composition.
6609 (CHAR_COMPOSED_P): New macro.
6610 (get_next_display_element): For automatic composition, get a face
6611 from the font in the glyph-string.
6612 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6613 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6614 (next_element_from_string): Check if the character at the current
6615 position is composed by CHAR_COMPOSED_P.
6616 (next_element_from_buffer): Likewise.
d66c0241
JB
6617 (next_element_from_composition): Adjust for the change of struct it.
6618 Update it->cmp_it.
b8ff72fa
SM
6619 (dump_glyph): Adjust for the change of struct glyph.
6620 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6621 it and struct glyph. Don't handle automatic composition here.
6622 (fill_gstring_glyph_string): New function.
6623 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6624 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6625 (BUILD_GSTRING_GLYPH_STRING): New macro.
6626 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6627 automatic composition.
b8ff72fa 6628 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6629 struct glyph.
b8ff72fa 6630 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6631
b8ff72fa 6632 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6633 the change of struct glyph_string.
6634 (x_draw_glyph_string): Likewise.
6635
66362008-08-29 Glenn Morris <rgm@gnu.org>
6637
6638 * buffer.c (word-wrap): Doc fix.
6639 * xdisp.c (truncate-partial-width-windows): Doc fix.
6640 Increase default to 50.
6641
66422008-08-29 Chong Yidong <cyd@stupidchicken.com>
6643
6644 * xdisp.c (update_tool_bar_unwind): New function.
6645 (update_tool_bar): Temporarily set selected frame before building
6646 tool-bar items.
6647
66482008-08-28 Michael Albinus <michael.albinus@gmx.de>
6649
6650 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6651 snprintf, respectively.
6652 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6653
66542008-08-28 Chong Yidong <cyd@stupidchicken.com>
6655
6656 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6657 LDFLAGS to GNUstep CC invocation.
6658
66592008-08-27 Chong Yidong <cyd@stupidchicken.com>
6660
6661 * indent.c (Fvertical_motion): Revert last change. Handle the
6662 general case where we are moving forward, and PT spans multiple
6663 screen lines.
6664
6665 * eval.c (find_handler_clause): Temporarily increase
6666 max-lisp-eval-depth while printing the backtrace buffer, to
6667 guarantee that help-mode code can run.
6668
66692008-08-27 Eli Zaretskii <eliz@gnu.org>
6670
6671 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6672 colors under -rv.
6673 (IT_set_frame_parameters): Don't swap foreground and background
6674 colors if `(reverse . t)' is present in the frame properties.
6675 (internal_terminal_init): Call init_frame_faces only for the
6676 initial frame.
6677
66782008-08-27 Andreas Schwab <schwab@suse.de>
6679
6680 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6681
66822008-08-27 Andreas Schwab <schwab@suse.de>
6683
6684 * search.c (search_buffer): Set char_base to zero only at the end.
6685
66862008-08-27 Kenichi Handa <handa@m17n.org>
6687
b8ff72fa 6688 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6689
66902008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6691
6692 * xterm.c (x_term_init): Temporarily hide the partially
6693 initialized terminal while calling vendor-specific-keysyms.
6694
66952008-08-26 Eli Zaretskii <eliz@gnu.org>
6696
6697 * msdos.c (internal_terminal_init): Most initializations done only
6698 once, especially initial_screen_colors[] and termscript open.
6699
67002008-08-26 Chong Yidong <cyd@stupidchicken.com>
6701
6702 * eval.c (Fcondition_case): Doc fix.
6703
6704 * widgetprv.h (EmacsFramePart): Change font member to the new font
6705 struct.
6706
6707 * widget.c: Include character.h and font.h for XSETFONT.
6708 (setup_frame_gcs): Compute X font id from font struct, just once.
6709
67102008-08-26 Eli Zaretskii <eliz@gnu.org>
6711
6712 * term.c (get_named_tty): Fix last change.
6713
67142008-08-26 Chong Yidong <cyd@stupidchicken.com>
6715
6716 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6717 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6718
67192008-08-25 Eli Zaretskii <eliz@gnu.org>
6720
6721 * frame.c (do_switch_frame): Mark previously displayed frame as
6722 obscured for FRAME_MSDOS_P frames as well.
6723
67242008-08-24 Eli Zaretskii <eliz@gnu.org>
6725
6726 * frame.c (make_terminal_frame): Initialize f->terminal,
6727 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6728 Set the top frame to newly created frame.
6729 (Fmake_terminal_frame): Reuse the_only_display_info.
6730
6731 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6732 estimating available memory.
6733
b97439ce 67342008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6735
6736 * nsterm.m (ns_draw_window_cursor): Don't call
6737 NSDisableScreenUpdates and NSEnableScreenUpdates on
6738 non-NS_IMPL_COCOA systems.
6739
67402008-08-23 Andreas Schwab <schwab@suse.de>
6741
6742 * process.c (procfs_system_process_attributes): Fix use of
6743 uninitialized variables.
6744
67452008-08-23 Eli Zaretskii <eliz@gnu.org>
6746
6747 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6748
6749 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6750 calling tty-set-up-initial-frame-faces.
6751
b8ff72fa
SM
6752 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6753 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6754
6755 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6756 addition to output_termcap.
6757
6758 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6759
6760 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6761 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6762 highlight.
6763
6764 * process.c [!subprocesses]: Define QCname.
6765 (syms_of_process): Intern and staticpro it.
6766
6767 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6768 Adjust for changes in encoding/decoding routines.
6769 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6770 encode_coding and decode_coding.
6771
b8ff72fa 6772 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6773
6774 * dosfns.c: Include frame.h before termhooks.h.
6775 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6776 variable termscript.
6777
6778 * s/msdos.h (USER_FULL_NAME): Define.
6779 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6780
6781 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6782 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6783 pw->pw_gecos.
6784
6785 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6786 SELECTED_FRAME as additional (1st) argument.
6787 (tty_read_avail_input): Handle output_msdos_raw in
6788 addition to output_termcap.
6789
6790 * msdos.c: Include frame.h before termhooks.h.
6791 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6792 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6793 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6794 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6795 (IT_set_terminal_modes, IT_reset_terminal_modes)
6796 (IT_set_frame_parameters): Use tty->termscript instead of a global
6797 variable termscript.
6798 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6799 global variable terminal_coding. Don't refer to
6800 Vnonascii_translation_table.
6801 (internal_terminal_init): Set Vwindow_system in current_kboard.
6802 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6803 Announce date and time of session start, if termscript is open.
6804 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6805 term.c:init_tty). Open termscript only of not already open.
6806 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6807 here instead of dos_ttraw. Don't initialize display if this is an
6808 initial tty. Don't set FRAME_FONT.
6809 (Vwindow_system_version): Bump to 23.
6810 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6811 is available, set up mouse_position_hook.
6812 (dos_ttraw, IT_set_terminal_modes): If called with initial
6813 terminal, do nothing.
6814 (IT_set_frame_parameters): Handle the Qtty_type frame
6815 parameter by calling internal_terminal_init.
6816 (dos_set_window_size, show_mouse_face)
6817 (clear_mouse_face, IT_note_mode_line_highlight)
6818 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6819 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6820 (initialize_msdos_display): New function.
6821 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6822 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6823 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6824 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6825 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6826 (request_sigio, unrequest_sigio): Don't define, now defined on
6827 sysdep.c.
6828 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6829
6830 * term.c [MSDOS]: Include msdos.h.
6831 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6832 conditional to DOS_NT. Allow only one call to this function in a
6833 session. Don't allocate a new struct tty_display_info; instead,
6834 reuse the_only_display_info. Call get_tty_size to get screen
6835 dimensions. Call init_baud_rate to set bad_rate.
6836 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6837 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6838 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6839 (get_tty_terminal, get_named_tty, Ftty_type)
6840 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6841 output_termcap.
b8ff72fa
SM
6842 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6843 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6844 only when subprocesses are supported.
aac0c6e3
MR
6845
6846 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6847 f->output_data.x.
6848 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6849 terminal devices.
6850
5582fbc7 6851 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6852 x_output.
6853 (FRAME_FONT): Use output_data.tty.
6854 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6855 (struct x_display_info): Rename from display_info. Update all users in
6856 msdos.c.
aac0c6e3 6857 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6858 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6859 (dos_ttraw): Update prototype.
6860
6861 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6862 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6863
68642008-08-23 Jason Rumney <jasonr@gnu.org>
6865
6866 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6867 (fn_TIFFSetDirectory): New library function used.
6868 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6869 (tiff_load): Use :index to select among multiple images. Set count
6870 property when multiple images exist.
6871 (gif_format): Use :index, not :image.
6872
68732008-08-23 Chong Yidong <cyd@stupidchicken.com>
6874
6875 * xdisp.c (try_scrolling): Check INT_MAX instead of
6876 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6877 to obtain INT_MAX.
6878
68792008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6880
6881 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6882
68832008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6884
6885 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6886 GNUstep library location.
6887
68882008-08-21 Chong Yidong <cyd@stupidchicken.com>
6889
6890 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6891 before using it.
6892
6893 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6894
68952008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6896
6897 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6898 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6899 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6900 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6901 (EmacsApp-cursor_blink_handler): Remove declaration.
6902 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6903 match 01 Feb 2008 changes in xterm.c.
6904 (ns_read_socket): Add cast to avoid warning.
6905 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6906 GNUstep.
6907
69082008-08-20 Chong Yidong <cyd@stupidchicken.com>
6909
6910 * xselect.c (x_get_foreign_selection): Return nil if desired
6911 selection could not be obtained, instead of signalling an error.
6912
69132008-08-20 David Reitter <david.reitter@gmail.com>
6914
6915 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6916 * nsterm.m: Remove ns-specific code for cursor blinking.
6917 (ns_draw_window_cursor): Clear cursor properly rather than
6918 redrawing the area. Respect width of bar cursors.
6919 These changes enable the use of generic blink-cursor-mode and
6920 generic cursor types in NS and support smooth cursor movements (do
6921 not blink off after command).
6922 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6923 Nextstep, too.
6924
69252008-08-19 Kenichi Handa <handa@m17n.org>
6926
6927 * font.c (Vfont_log_deferred): New variable.
6928 (font_add_log): Check Vfont_log_deferred.
6929 (font_deferred_log): New function.
6930
6931 * font.h (font_deferred_log): Extern it.
6932
6933 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6934 for sorting.
6935 (face_for_char): Use deferred log.
6936
69372008-08-18 Kenichi Handa <handa@m17n.org>
6938
6939 * fontset.c (face_for_char): Add font log.
6940
6941 * font.c (font_add_log): Add the font properties :script, :lang,
6942 and :otf in the log.
6943
69442008-08-17 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * xdisp.c: Remove dead code.
6947 (handle_invisible_prop, next_overlay_string): Defer call to
6948 setup_for_ellipsis.
6949 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6950
69512008-08-15 Chong Yidong <cyd@stupidchicken.com>
6952
6953 * xfaces.c (lookup_derived_face): Properly handle possible zero
6954 return value of get_lface_attributes.
6955 (merge_faces): Don't tell lookup_derived_face to signal an error
6956 if face is not found.
6957
6958 * dired.c (Fdirectory_files): Doc fix.
6959
6960 * process.c (make_process): Initialize kill_without_query struct
6961 member.
6962
69632008-08-15 Eli Zaretskii <eliz@gnu.org>
6964
6965 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6966 Alternative calculation of totphys for Visual Studio 6.
6967
6968 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6969
6970 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6971 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6972 All users changed.
6973 (stat): Only root directory passed to GetDriveType. Allow RAM
6974 disk as well as local fixed disk when w32-get-true-file-attributes
6975 is set to `local'.
6976 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6977 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6978 (w32_cached_id, w32_add_to_cache): New functions.
6979 (get_name_and_id): Look account names in the cache before calling
6980 lookup_account_sid.
6981 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6982 New initialization flags.
6983 (globals_of_w32): Initialize them to zero.
6984 (w32_system_process_attributes): Use w32_cached_id and
6985 w32_add_to_cache.
6986
69872008-08-14 Lawrence Mitchell <wence@gmx.li>
6988
6989 * lread.c (Fread_char, Fread_char_exclusive): If no character
6990 event is read before timeout is reached, return nil, rather than
6991 converting to a number.
6992
69932008-08-14 Chong Yidong <cyd@stupidchicken.com>
6994
6995 * fns.c (use_dialog_box): Doc fix.
6996
6997 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6998 on OS X.
6999
70002008-08-13 Chong Yidong <cyd@stupidchicken.com>
7001
7002 * frame.c (Qns_parse_geometry): New var.
7003 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7004
70052008-08-11 Chong Yidong <cyd@stupidchicken.com>
7006
7007 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7008 space character in calculating tabs.
7009
70102008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7011
7012 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7013
70142008-08-10 Glenn Morris <rgm@gnu.org>
7015
7016 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7017 silence gcc "limited range of data type" warnings in some
7018 make_fixnum_or_float calls.
7019
70202008-08-09 Eli Zaretskii <eliz@gnu.org>
7021
7022 * w32.c (w32_system_process_attributes): If the process does not
7023 exist, return nil.
7024
7025 * w32.c: Include thelp32.h, psapi.h and coding.h.
7026 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7027 declarations.
7028 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7029 (Process32Next_Proc): New typedefs.
7030 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7031 (g_b_init_process32_next, g_b_init_open_thread_token)
7032 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7033 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7034 (g_b_init_get_process_working_set_size)
7035 (g_b_init_global_memory_status_ex): New static variables.
7036 (globals_of_w32): Initialize them.
7037 (create_toolhelp32_snapshot, process32_first, process32_next)
7038 (open_thread_token, impersonate_self, revert_to_self)
7039 (get_process_memory_info, get_process_working_set_size)
7040 (global_memory_status, global_memory_status_ex): New wrapper
7041 functions.
7042 (w32_list_system_processes, w32_system_process_attributes)
7043 (enable_privilege, restore_privilege, ltime, process_times):
7044 New functions.
7045 (convert_time_raw): New function.
7046 (convert_time): Remove conversion of FILETIME into time in 100
7047 nsec units, call convert_time_raw instead.
7048
7049 * process.h (w32_list_system_processes, w32_system_process_attributes):
7050 Add prototypes.
7051 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7052 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7053 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7054 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7055
7056 * process.c (Fsystem_process_attributes): Doc fix.
7057
70582008-08-08 Chong Yidong <cyd@stupidchicken.com>
7059
7060 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7061 a continued multi-char glyph; if so, advance to the actual glyph.
7062
70632008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7064
7065 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7066
7067 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7068 (.m.o): Use it.
7069 * config.in: Regenerate.
7070
70712008-08-07 Chong Yidong <cyd@stupidchicken.com>
7072
7073 * xdisp.c (redisplay_window): Revert last change.
7074 (try_window): Check bottom scroll margin too.
7075
70762008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7077
7078 * config.in: Regenerate.
7079
7080 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7081 -list-load-path-shadows'.
7082 (nsgui.h): Reduce number of things depending on it.
7083
70842008-08-06 Chong Yidong <cyd@stupidchicken.com>
7085
7086 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7087 instead of window-end which does the wrong thing at eob.
7088 (try_cursor_movement): Minor optimization.
7089 (redisplay_window): If scroll margin is defined, don't assume
7090 window doesn't need scrolling.
7091
70922008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7093
7094 * config.in: Regenerate.
7095
7096 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7097 (mostlyclean): Don't delete *.d under NS.
7098
7099 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7100
71012008-08-06 Kenichi Handa <handa@m17n.org>
7102
7103 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7104
71052008-08-06 Andreas Schwab <schwab@suse.de>
7106
7107 * config.in: Regenerate.
7108
71092008-08-05 Chong Yidong <cyd@stupidchicken.com>
7110
7111 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7112 forcing a window start.
7113
7114 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7115 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7116
71172008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7118
7119 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7120 argument.
7121
71222008-08-05 Juanma Barranquero <lekktu@gmail.com>
7123
7124 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7125 <scroll-down-aggressively, before-change-functions>:
7126 <after-change-functions>: Reflow docstrings.
7127
71282008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7129 Ken Raeburn <raeburn@gnu.org>
7130
7131 Dock menu customization, based on a patch by Ken Raeburn, plus some
7132 other fixes.
7133 * nsmenu.m (dockMenu): New variable.
7134 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7135
7136 * nsterm.h (dockMenu): Declare.
7137
7138 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7139 (ns_term_init): Initialize dockMenu.
7140 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7141 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7142 left.
7143
7144 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7145
71462008-08-04 Chong Yidong <cyd@stupidchicken.com>
7147
7148 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7149
7150 * config.in: Regenerate.
7151
71522008-08-04 Seiji Zenitani <zenitani@mac.com>
7153
7154 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7155
71562008-08-04 Chong Yidong <cyd@stupidchicken.com>
7157
7158 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7159
71602008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7161
7162 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7163
7164 * keyboard.h: Comment an #endif.
7165
7166 * lisp.h (have_menus_p): Adjust comment.
7167
7168 * menu.c (find_and_return_menu_selection): Fix comparison with
7169 client_data.
7170
7171 * nsmenu.m (popup_activated_flag): New variable.
7172 (popup_activated): New function.
7173 (menu-or-popup-active-p): New exported lisp definition.
7174 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7175 when popup done.
7176 (ns_popup_dialog): Set popup_activated_flag.
7177
7178 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7179 version for GNUstep (handled by conditional typedef in nsterm.m).
7180 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7181 in rgb.txt).
7182
7183 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7184
7185 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7186
7187 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7188
7189 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7190 shortcircuit if popup_activated like GTK and X toolkit.
7191
7192 * m/inter386.h: Change DARWIN to DARWIN_OS.
7193
7194 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7195 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7196 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7197 comment on NO_SOCK_SIGIO.
7198
71992008-08-03 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * nsterm.m (windowDidResize): Remove stopModal call.
7202
72032008-08-03 Andreas Schwab <schwab@suse.de>
7204
7205 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7206 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7207
72082008-08-02 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7211 Don't use uninitialized pointer variable when using getrlimit.
7212
72132008-08-02 Jason Rumney <jasonr@gnu.org>
7214
7215 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7216
72172008-08-02 Eli Zaretskii <eliz@gnu.org>
7218
7219 * alloc.c (NSTATICS): Bump to 0x640.
7220
7221 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7222
7223 * lisp.h: Add prototype for directory_files_internal.
7224
7225 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7226 New functions.
7227 (syms_of_process): Defsubr them. Add initializations for various
7228 Q* symbols used in procfs_system_process_attributes.
7229 (procfs_list_system_processes, procfs_system_process_attributes)
7230 [HAVE_PROCFS]: New functions.
7231 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7232 (procfs_get_total_memory): New functions.
7233
72342008-08-01 Juanma Barranquero <lekktu@gmail.com>
7235
7236 * xfaces.c (Fx_load_color_file): Fix previous change;
7237 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7238
72392008-08-01 Michael Albinus <michael.albinus@gmx.de>
7240
7241 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7242
72432008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7244
7245 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7246
72472008-08-01 Chong Yidong <cyd@stupidchicken.com>
7248
7249 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7250
7251 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7252 define NSApplicationDelegateReplySuccess.
7253 (EmacsView -converstationIdentifier): Use long instead of
7254 NSInteger for GNUstep, since it doesn't have NSInteger.
7255
7256 * xmenu.c: Revert last change.
7257
7258 * keyboard.h: Fix last change.
7259
72602008-08-01 Juanma Barranquero <lekktu@gmail.com>
7261
7262 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7263 on Windows.
7264
72652008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7266
7267 Warning clearing and clean-up in NS port.
7268 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7269 Add prototypes.
7270 * nsgui.h (FACE_DEFAULT): Remove, unused.
7271 (XGCValues): Change colors to unsigned long.
7272 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7273 nsterm.m.
7274 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7275 (ns_list_fonts): Remove, unused.
7276 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7277 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7278 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7279 (nsfont_draw): Compare face colors to 0, not nil.
7280 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7281 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7282 (-addSubmenuWithTitle:): Use NSMenuItem class.
7283 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7284 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7285 (ns_clip_to_row): Make gc arg a BOOL.
7286 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7287 ns_clip_to_row() call.
7288 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7289 used). Cast FRAME_FONT assignments.
7290 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7291 (ns_string_to_lispmod): Change arg to const char.
7292 (ns_term_init): Use NSMenuItem class.
7293 (EmacsApp -openFile:): Move to different section of file.
7294 (EmacsApp -application:openFiles:): Don't return a value, call
7295 -replyToOpenOrPrint:.
7296 (EmacsView -keyDown:): Fix up cast.
7297 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7298 (EmacsView -menuDown:): Cast tag in call to
7299 find_and_call_menu_selection().
7300 (ns_list_fonts): Remove, unused.
7301 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7302 (ns_fontname_to_xlfd): Make static.
7303 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7304 Remove prototypes (now in keyboard.h).
7305 (next_menubar_widget_id): Remove, unused.
7306 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7307 Remove prototypes (now in keyboard.h).
7308 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7309
73102008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7311
7312 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7313 (floatfns.o): Depend on syssignal.h.
7314 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7315
7316 * systty.h: Fix previous change that removed BSD_TERMIOS.
7317 Add comments to #ifdefs.
7318
73192008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7320
7321 * w32fns.c (w32-load-color-file): Remove.
7322 (x-open-connection): Use renamed Fx_load_color_file.
7323 * xfaces.c (x-load-color-file): Add.
7324 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7325 Emacs.clr.
7326 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7327
73282008-07-31 Michael Albinus <michael.albinus@gmx.de>
7329
7330 * dbusbind.c (Fdbus_call_method_asynchronously)
7331 (Fdbus_method_error_internal): New defuns.
7332 (xd_read_message): Handle also reply messages.
7333 (Vdbus_registered_functions_table): Extend docstring.
7334
73352008-07-31 Juanma Barranquero <lekktu@gmail.com>
7336
7337 * keyboard.c (gobble_input): Fix previous change.
7338
73392008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7340
7341 * bitmaps/README:
7342 * xfns.c:
7343 * termcap.c:
7344 * term.c:
7345 * syswait.h:
7346 * systty.h:
7347 * systime.h:
7348 * syssignal.h:
7349 * sysdep.c:
7350 * process.h:
7351 * process.c:
7352 * print.c:
7353 * ndir.h:
7354 * lread.c:
7355 * keyboard.c:
7356 * getpagesize.h:
7357 * floatfns.c:
7358 * fileio.c:
7359 * emacs.c:
7360 * doc.c:
7361 * dispnew.c:
7362 * dired.c:
7363 * data.c:
7364 * callproc.c:
7365 * buffer.c:
7366 * README:
7367 * Makefile.in:
7368 * s/template.h:
7369 * s/msdos.h:
7370 * m/vax.h: Remove VMS support.
7371 * s/vms.h:
7372 * vlimit.h:
7373 * uaf.h:
7374 * temacs.opt:
7375 * param.h:
7376 * ioctl.h: Remove file.
7377
73782008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7379
7380 * s/ms-w32.h (MULTI_KBOARD): Remove.
7381 * xterm.c:
7382 * xselect.c:
7383 * xfns.c:
7384 * window.c:
7385 * w32term.c:
7386 * w32fns.c:
7387 * terminal.c:
7388 * termhooks.h:
7389 * term.c:
7390 * sysdep.c:
7391 * keyboard.h:
7392 * keyboard.c:
7393 * frame.h:
7394 * frame.c:
7395 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7396 * config.in: Regenerate.
7397
73982008-07-30 Jason Rumney <jasonr@gnu.org>
7399
7400 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7401
7402 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7403 (w32font_open_internal): Get unicode version of textmetrics.
7404 Don't enable or disable glyph indices here.
7405 (w32font_open): Disable use of glyph indices.
7406
7407 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7408
74092008-07-30 Chong Yidong <cyd@stupidchicken.com>
7410
7411 * minibuf.c (Vread_buffer_function): Doc fix.
7412
74132008-07-30 John Paul Wallington <jpw@pobox.com>
7414
7415 * minibuf.c (read_buffer_completion_ignore_case): New var.
7416 (Fread_buffer): Use it.
7417
74182008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7419
7420 * systty.h (sensemode): Remove empty #if. Remove reference to
7421 BSD_TERMIOS, unused.
7422
7423 * sysdep.c: Remove reference to DGUX.
7424 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7425
7426 * config.in: Regenerate.
7427
74282008-07-30 Jason Rumney <jasonr@gnu.org>
7429
7430 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7431
74322008-07-29 Jason Rumney <jasonr@gnu.org>
7433
7434 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7435 is populated.
7436 (uniscribe_encode_char): Always use uniscribe.
7437 Avoid using context if cache is populated.
7438
74392008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7440
7441 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7442 open menu.
7443
7444 * gtkutil.c (menu_nav_ended): Remove.
7445 (create_menus): Remove signal connect for menu_nav_ended.
7446
74472008-07-28 Chong Yidong <cyd@stupidchicken.com>
7448
7449 * xdisp.c (redisplay_window): Check return value of
7450 compute_window_start_on_continuation_line before forcing a window
7451 start.
7452
74532008-07-28 Jason Rumney <jasonr@gnu.org>
7454
7455 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7456
7457 * w32term.c (w32_enable_unicode_output, cleartype_active):
7458 Remove obsolete display options.
7459 (x_draw_glyph_string_background): Don't use old cleartype_active
7460 workaround.
7461 (w32_initialize): Remove cleartype_active initialization.
7462 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7463
74642008-07-28 Andreas Schwab <schwab@suse.de>
7465
7466 * lisp.h (init_weak_hash_tables, syms_of_font)
7467 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7468 (remove_hash_entry): Don't declare.
7469 * eval.c (maybe_call_debugger): Make static and move before use.
7470 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7471 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7472 * xterm.h (x_set_frame_alpha): Declare.
7473
74742008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7475
7476 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7477 (create_menus): Connect selection-done to menu_nav_ended.
7478
74792008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7480
7481 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7482 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7483 parameter with read of 'alpha' one.
7484 (Qns_frame_parameter): Remove.
5582fbc7 7485 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7486 (next-selection-coding-system, Vselection_coding_system)
7487 (Vnext_selection_coding_system): Drop.
7488
74892008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7490
7491 * nsfns.m (do-applescript, do_applescript): Rename to
7492 ns-do-applescript, ns_do_applescript, and move within file.
7493
74942008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7495
7496 Remove support for Mac Carbon.
7497 * mactoolbox.c:
7498 * macterm.h:
7499 * macterm.c:
7500 * macselect.c:
7501 * macmenu.c:
7502 * macgui.h:
7503 * macfns.c:
7504 * mac.c: Remove file.
7505 * s/darwin.h:
7506 * m/intel386.h:
7507 * xfaces.c:
7508 * xdisp.c:
7509 * window.c:
7510 * tparam.c:
7511 * termhooks.h:
7512 * termcap.c:
7513 * term.c:
7514 * syssignal.h:
7515 * sysselect.h:
7516 * sysdep.c:
7517 * process.c:
7518 * lread.c:
7519 * lisp.h:
7520 * keyboard.c:
7521 * image.c:
7522 * fringe.c:
7523 * frame.h:
7524 * frame.c:
7525 * fontset.c:
7526 * font.h:
7527 * font.c:
7528 * fns.c:
7529 * fileio.c:
7530 * emacs.c:
7531 * dispnew.c:
7532 * dispextern.h:
7533 * config.in:
7534 * atimer.c:
2ae37cf0 7535 * Makefile.in: Remove code for Carbon.
aac0c6e3 7536
f0131492 75372008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7538
7539 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7540
75412008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7542
7543 * macterm.h (kCGBitmapByteOrder32Host): New define for
7544 non-universal SDKs.
7545
7546 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7547 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7548
7549 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7550 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7551
75522008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7553
7554 * w32inevt.c: Include dispextern.h.
7555
75562008-07-26 Andreas Schwab <schwab@suse.de>
7557
7558 * print.c (print_object): Fix off-by-one in last change.
7559
75602008-07-25 Juanma Barranquero <lekktu@gmail.com>
7561
7562 * term.c (syms_of_term): Don't initialize default_orig_pair,
7563 default_set_foreground and default_set_background on Windows.
7564
75652008-07-25 Jason Rumney <jasonr@gnu.org>
7566
7567 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7568 ScriptItemize. Clean up return value checking. Remove unused
7569 variables.
7570 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7571 shaping engine.
7572
7573 * w32font.c (w32font_has_char): Handle the case where we can't
7574 determine the script for a character.
7575
75762008-07-25 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * term.c (syms_of_term): Initialize default_orig_pair,
7579 default_set_foreground, and default_set_background.
7580
7581 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7582 clash (bug#86).
7583 (getloadavg): Callers changed.
7584
7585 * image.c (svg_load_image): Fix last change.
7586 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7587 image size is valid. Use g_object_unref instead of deprecated
7588 rsvg_handle_free to free rsvg handle.
7589 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7590
75912008-07-25 Jason Rumney <jasonr@gnu.org>
7592
7593 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7594 surrogates before looking up glyph index.
7595 (w32font_text_extents): Encode as surrogates if falling back to
7596 functions that need UTF-16 wide chars.
7597
7598 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7599 BMP as surrogates before looking up glyph index.
7600
76012008-07-25 Chong Yidong <cyd@stupidchicken.com>
7602
7603 * image.c (svg_load_image): Check for failure in return value of
7604 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7605
76062008-07-25 Jason Rumney <jasonr@gnu.org>
7607
7608 * w32font.c (Fx_select_font): Reverse sense of second arg.
7609
76102008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7611
7612 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7613 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7614
7615 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7616 (PURESIZE): Use it.
7617
76182008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7619
7620 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7621 * m/alpha.h (TEXT_END):
7622 * m/ibmrs6000.h (TEXT_END):
7623 * m/macppc.h (TEXT_END):
7624 * s/darwin.h (TEXT_END):
7625 * s/msdos.h (TEXT_END): Remove, unused.
7626 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7627 * s/cygwin.h: Remove comment.
7628
7629 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7630 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7631 * m/intel386.h (DOT_GLOBAL_START):
7632 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7633 (USG): Remove, file not used on USG platforms.
7634
7635 * Makefile.in (HAVE_X11): Remove empty #else.
7636
76372008-07-24 Andreas Schwab <schwab@suse.de>
7638
7639 * fileio.c (Finsert_file_contents): Properly adjust undo list
7640 after format conversion.
7641
76422008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7643
7644 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7645 (menu_nav_ended): Remove.
7646 (create_menus): Remove signal connect for menu_nav_ended.
7647 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7648 create_menus.
7649 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7650
76512008-07-23 Jason Rumney <jasonr@gnu.org>
7652
7653 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7654 with opened font.
7655 (w32font_open): Set font type to gdi.
7656
7657 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7658
76592008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7660
7661 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7662 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7663 defines it.
7664 * unexec.c (ADDR_CORRECT): Define unconditionally.
7665
7666 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7667
7668 * unexec.c: Remove code depending on !COFF and USG, the file is
7669 not used for such systems.
7670
7671 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7672 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7673 (LD_SWITCH_SYSTEM_1): Remove, update users.
7674
7675 * s/darwin.h (DATA_END):
7676 * m/intel386.h (DATA_END):
7677 * m/ibmrs6000.h (DATA_END):
7678 * m/alpha.h (DATA_END): Remove, unused.
7679
7680 * config.in: Regenerate.
7681 * s/ms-w32.h (subprocesses): Define unconditionally.
7682 * s/template.h (subprocesses): Update comment.
7683 * s/vms.h (subprocesses):
7684 * s/usg5-4.h (subprocesses):
7685 * s/hpux10-20.h (subprocesses):
7686 * s/gnu-linux.h (subprocesses):
7687 * s/cygwin.h (subprocesses):
7688 * s/bsd-common.h (subprocesses):
7689 * s/aix4-2.h (subprocesses):
7690 * s/darwin.h (subprocesses): Do not define, defined by default now.
7691
7692 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7693 Remove all references.
7694 (temacs): Add GNUstep specific ld flags.
7695
7696 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7697 similarly to what X does.
7698
76992008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7700
7701 * nsfns.m (x-list-fonts): Remove.
7702 (syms_of_nsfns): Drop the x-list-fonts declaration.
7703 * nsterm.m: Get rid of remaining "//" comments.
7704
77052008-07-22 Chong Yidong <cyd@stupidchicken.com>
7706
7707 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7708
7709 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7710 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7711 (Fns_own_selection_internal, Fx_disown_selection_internal)
7712 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7713
7714 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7715 ... */' style of docstrings. Doc fixes.
7716
77172008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7718
7719 * terminfo.c (UP, BC, PC): Undo previous change.
7720
7721 * nsfns.m: Rename ns prefixed functions/variables to the
7722 corresponding x versions. Update references.
7723
77242008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7725
7726 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7727
77282008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7729
7730 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7731 Remove forwarding functions.
7732 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7733 non-static.
7734 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7735 non-static.
7736 (ns_frame_parm_handlers): Use the new names.
7737 (syms_of_nsfns): Move to the end of file.
7738
7739 * nsterm.m (syms_of_nsterm): Move to the end of file.
7740
7741 * dispnew.c (init_display): Remove code for X10.
7742
77432008-07-22 Jason Rumney <jasonr@gnu.org>
7744
7745 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7746 bare drive.
7747
77482008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7749
7750 * nsterm.m (syms_of_nsterm): Remove debugging println.
7751
77522008-07-22 David Reitter <david.reitter@gmail.com>
7753
7754 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7755 Carbon implementation of the same functionality: execute arbitrary
7756 AppleScript code.
7757
77582008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7759
7760 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7761 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7762 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7763 (Fx_display_mm_height, Fx_display_mm_width)
7764 (Fx_display_backing_store, Fx_display_visual_class)
7765 (Fx_display_save_under, Fx_open_connection)
7766 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7767 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7768 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7769 (Fx_display_pixel_width, Fx_display_pixel_height)
7770 (Fx_display_usable_bounds, Fx_display_planes)
7771 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7772 ... */' style of docstrings.
7773
77742008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7775
7776 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7777 on this platform.
7778 (mips):
7779 * m/iris4d.h (mips): Do not define.
7780 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7781
7782 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7783
7784 * image.c:
7785 * nsfns.m:
7786 * nsselect.m:
7787 * nsterm.h:
7788 * nsterm.m: Rename ns prefixed functions/variables to the
7789 corresponding x versions. Update references.
7790
7791 * m/ibms390x.h (NO_REMAP): Do not undefine.
7792
7793 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7794
77952008-07-21 Chong Yidong <cyd@stupidchicken.com>
7796
7797 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7798 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7799 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7800 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7801 (Fns_display_mm_height, Fns_display_mm_width)
7802 (Fns_display_backing_store, Fns_display_visual_class)
7803 (Fns_display_save_under, Fns_open_connection)
7804 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7805 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7806 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7807 (Fns_display_pixel_width, Fns_display_pixel_height)
7808 (Fns_display_usable_bounds, Fx_display_planes)
7809 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7810
78112008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7812
7813 * print.c (print_object): Check print_depth before searching for
7814 circularities.
7815
78162008-07-21 Michael Albinus <michael.albinus@gmx.de>
7817
7818 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7819 only sprintf.
7820
78212008-07-21 Kenichi Handa <handa@m17n.org>
7822
7823 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7824
78252008-07-20 Andreas Schwab <schwab@suse.de>
7826
7827 * syntax.c (find_start_pos, find_start_value)
7828 (find_start_value_byte, find_start_begv, find_defun_start)
7829 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7830
78312008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7832
7833 * s/sol2-3.h: Insert contents of s/sol2.h.
7834 (LD_SWITCH_SYSTEM): Remove redundant definition.
7835 * s/sol2.h: Remove, unused.
7836
78372008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7838
7839 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7840
78412008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7842
7843 * Makefile.in (ns_appdir): Fix typo in find command.
7844
78452008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7846
7847 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7848
7849 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7850 added not supported anymore.
7851
7852 * s/usg5-4-2.h (LIBS_SYSTEM):
7853 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7854
7855 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7856 * s/lynxos.h (GETPGRP_NO_ARG):
7857 * s/hpux10-20.h (NO_SIOCTL_H):
7858 * s/gnu.h (GETPGRP_NO_ARG):
7859 * s/gnu-linux.h (NO_SIOCTL_H):
7860 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7861 * s/cygwin.h (GETPGRP_NO_ARG):
7862 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7863 (C_DEBUG_SWITCH): Remove duplicate definition.
7864
7865 * m/ibms390.h: Remove boilerplate comments.
7866
7867 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7868
7869 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7870 (wait_reading_process_output): Remove code for SunOS, platform not
7871 supported anymore. Use SOLARIS2 instead of sun.
7872
78732008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7874
7875 * font.c (font_open_by_name): Under NS, default lface height to zero.
7876 (font_open_for_lface): Under NS, set size based on frame fontsize.
7877 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7878 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7879
78802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7881
7882 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7883 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7884 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7885 YES/NO.
7886 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7887 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7888 * Makefile.in (clean): Clear out build destination dir.
7889
78902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7891
7892 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7893 xterm, xselect.
7894 * lisp.h: Remove declaration of hash_remove.
7895 * nsgui.h: Remove redefinitions of hash_remove.
7896 * fns.c (hash_remove): Rename to hash_remove_from_table.
7897
78982008-07-19 Seiji Zenitani <zenitani@mac.com>
7899
7900 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7901 strdup() the family UTF8String before modifying it.
7902
79032008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7904
7905 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7906 NS_FACE_BACKGROUND with 0 instead of nil.
7907 * nsfont.m (nsfont_draw): Same.
7908
79092008-07-19 Chong Yidong <cyd@stupidchicken.com>
7910
7911 * nsfns.m (ns_set_background_color): Fix crash.
7912
79132008-07-18 Chong Yidong <cyd@stupidchicken.com>
7914
7915 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7916
79172008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7918
7919 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7920
79212008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7922
7923 * gtkutil.c: Include <config.h> instead of "config.h".
7924
7925 * lisp.h (Foverlay_buffer): Add EXFUN.
7926
7927 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7928 child process to complete child_setup. Undo 2005-09-21 change.
7929
7930 * s/darwin.h: Mention setsid after vfork.
7931
79322008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7933
7934 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7935 Depend on macgui.h.
7936
7937 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7938 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7939
7940 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7941 and f19.
7942 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7943
7944 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7945 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7946 Remove enumerators.
7947
7948 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7949 Check if FACE_FROM_ID returns NULL.
7950
79512008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7952
7953 * w32inevt.c (change_frame_size): Remove extern declaration.
7954 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7955 change_frame_size.
7956
79572008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7958
7959 * getloadavg.c: Revert last change (2008-07-15).
7960
79612008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7962
7963 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7964 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7965 from configure.
7966
79672008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7968
7969 * s/sol2.h:
7970 * s/sol2-4.h: Reorganize conditionals.
7971
7972 * ecrt0.c: Remove code depending on m68000, not used anymore.
7973
7974 * fns.c (hash_remove): Make static.
7975 * lisp.h (hash_remove): Don't prototype.
7976
7977 * m/ibmrs6000.h:
7978 * m/ibms390x.h:
7979 * m/macppc.h: Remove boilerplate comments.
7980
7981 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7982 Solaris, which does not need them.
7983
7984 * m/vax.h: Remove comments about unsupported systems.
7985
7986 * s/darwin.h: Reorganize ifdefs.
7987
79882008-07-17 Andreas Schwab <schwab@suse.de>
7989
7990 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7991
79922008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7993
7994 Use SDATA. Follow coding convention of placing operators at
7995 beginning of next line rather than end of previous line, and placing
7996 spaces around infix operators.
7997
7998 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7999 in case it was defined already.
8000 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8001 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8002 ns_default.
8003 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8004 Lisp_Objects.
8005 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8006 (ns_defined_color, ns_color_to_lisp): Declare.
8007 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8008 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8009 it's accepted even with USE_LISP_UNION_TYPE.
8010 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8011 (update_frame_tool_bar): Remove apparently obsolete tests for
8012 non-integerness of f->tool_bar_lines.
8013 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8014 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8015 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8016 (nsfont_open): Don't confuse NULL for Qnil.
8017 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8018 * menu.h (find_and_call_menu_selection):
8019 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8020 (find_and_return_menu_selection): Always return something.
8021 * frame.h: Include dispextern.h for Display_Info.
8022 (display_x_get_resource): Declare.
8023
80242008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8025
8026 * syntax.c: Remove stdio.h include accidentally introduced in
8027 Emacs.app commit.
8028 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8029 NS_IMPL_COCOA.
8030 * keyboard.c (handle_async_input, input_available_signal): Remove
8031 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8032
80332008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8034
8035 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8036 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8037 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8038 Use SDATA.
8039
8040 * keymap.c: Remove all NS-specific code.
8041 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8042 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8043 where_is_preferred_modifier, return a different value depending on how
8044 preferred is the binding.
8045 (where_is_internal): Adjust accordingly.
8046 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8047 Adjust to new preferred_sequence_p.
8048 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8049 * keyboard.c (parse_solitary_modifier): Not static any more.
8050 * keyboard.h (parse_solitary_modifier): Declare.
8051
80522008-07-16 Andreas Schwab <schwab@suse.de>
8053
8054 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8055 of easymenu.
8056
80572008-07-16 Chong Yidong <cyd@stupidchicken.com>
8058
8059 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8060 that we don't move off the line.
8061
80622008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8063
8064 * keyboard.c (Qsuper): Remove.
8065 (parse_menu_item): Don't call where_is_internal specially for NS.
8066
80672008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8068
8069 * s/gnu-linux.h: Remove boilerplate comments.
8070
8071 * m/alpha.h (__ELF__): Consolidate conditions.
8072
8073 * m/m68k.h (linux): Use GNU_LINUX instead.
8074 Remove boilerplate comments.
8075
8076 * m/intel386.h: Undo refactoring from previous change.
8077 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8078 too, remove dead code.
8079 (linux): Use GNU_LINUX instead.
8080
80812008-07-16 Jason Rumney <jasonr@gnu.org>
8082
8083 * w32gui.h: Repeat 26 June changes lost by last change.
8084
80852008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8086
8087 * systty.h: Remove code for Aix on 386, unsupported platform.
8088
8089 * s/ms-w32.h: Remove boilerplate comments.
8090 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8091
8092 * s/gnu-linux.h (TERM): Remove support.
8093 (HAVE_SYSVIPC): Remove, unused.
8094 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8095 for this system.
8096
8097 * process.c: Remove support for IRIS, unused.
8098 Remove support for TERM, not relevant anymore.
8099
8100 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8101 used with the definition.
8102
8103 * s/aix4-2.h (static): Do not undef.
8104
8105 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8106 only used on Aix.
8107 (HAVE_SYSVIPC): Remove, unused.
8108
8109 * m/hp800.h (CANNOT_DUMP): Do not undef.
8110
8111 * m/alpha.h: Fix comment.
8112
8113 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8114 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8115 used by this configuration.
8116 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8117 * unexec.c: Remove code depending on HPUX and
8118 USG_SHARED_LIBRARIES, not used with this file. Remove code
8119 depending on IRIS, unused. Remove if 0-ed code.
8120
8121 * s/template.h: Remove comments about static.
8122
8123 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8124 Remove if 0-ed code.
8125 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8126 were the same as the default.
8127 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8128 Remove boilerplate comments.
8129 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8130 (HAVE_SYSVIPC): Remove, unused.
8131 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8132
8133 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8134 Remove boilerplate comments.
8135 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8136 Remove boilerplate comments.
8137 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8138 Remove boilerplate comments.
8139 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8140
8141 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8142 USG systems which do not use DATA_SEG_BITS.
8143 Refactor code. Remove boilerplate comments.
8144
8145 * m/ibms390.h:
8146 * m/m68k.h:
8147 * s/bsd-common.h:
8148 * s/cygwin.h:
8149 * s/darwin.h:
8150 * s/freebsd.h:
8151 * s/gnu.h:
8152 * s/msdos.h: Remove boilerplate comments.
8153
8154 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8155 do not use this file.
aac0c6e3
MR
8156 (IRIS_4D): Remove, unused.
8157
8158 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8159 do not use this file.
aac0c6e3
MR
8160 (SIGN_EXTEND_CHAR):
8161 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8162 * unexmips.c: Remove file, unused.
8163
8164 * editfns.c (Fuser_full_name): Replace the only use of
8165 USER_FULL_NAME with its value.
8166 * config.in: Regenerate.
8167
81682008-07-16 David Reitter <david.reitter@gmail.com>
8169
8170 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8171 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8172
81732008-07-16 Glenn Morris <rgm@gnu.org>
8174
8175 * emacs.c (system-type): Doc fix.
8176
81772008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8178
8179 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8180 If the cache doesn't work, let's fix it, rather than work around it.
8181
81822008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8183
8184 * Makefile.in: Correct additions for nsfont.o in last commit.
8185 * nsfont.m: New file (forgot last commit).
8186
81872008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8188
8189 * callproc.c (set_initial_environment): Initialize
8190 Vprocess_environment under CANNOT_DUMP (fixes crash when
8191 batch-compiling for bootstrap).
8192
81932008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8194 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8195
8196 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8197 fix crash due to different init order.
8198
81992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8200
8201 Changes and additions for NeXTstep windowing system (Cocoa and
8202 GNUstep) support.
8203
8204 * Makefile.in:
8205 * config.in: Support defines and build commands for NS port.
8206 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8207 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8208 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8209 windowing.
8210 (struct face): Add synth_ital field.
8211 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8212 (init_display): Initialize Vinitial_window_system to "ns" when so
8213 compiled.
8214 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8215 (display_arg): Use under NS.
8216 (main): Under NS, allocate autorelease pool and handle command line
8217 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8218 (standard_args): Add NS-specific args.
8219 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8220 * font.c (DEFAULT_ENCODING): New variable.
8221 (font_find_for_lface): Use it.
8222 (syms_of_font): Load syms_of_nsfont under NS.
8223 * font.h: Declare nsfont_driver when compiled under NS.
8224 * fontset.c: When compiling under NS, include nsterm.h.
8225 (fontset_from_font): Autoconstruct fontset under NS.
8226 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8227 symbol, document and use it.
8228 (do_switch_frame): When for_deletion under Cocoa, add
8229 Fraise_frame(Qnil).
8230 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8231 (x_get_arg): Allow "yes" and "no" as boolean values.
8232 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8233 Qright under Cocoa.
8234 (focus-follows-mouse): Default to 0 under NS.
8235 * frame.h (enum output_method): Add output_ns.
8236 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8237 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8238 (FRAME_WINDOW_P): NS-specific definition.
8239 * fringe.c (max_used_fringe_bitmap): Make public.
8240 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8241 (getloadavg): Use NeXT code under descendant OS's.
8242 * image.c (includes and header section, x_create_bitmap_from_data)
8243 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8244 (image_background_transparent, x_clear_image_1)
8245 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8246 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8247 (x_to_xcolors, x_from_xcolors, x_disable_image)
8248 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8249 other GUIs, including XPM support using code originally written for
8250 Carbon GUI.
8251 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8252 using NS API.
8253 (image_ascent): Use font metrics macros instead of direct struct field
8254 access.
8255 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8256 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8257 Also, handle NS as GTK for menu bar purposes.
8258 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8259 toolkit where they differ.
8260 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8261 use cachelist, still needed under NS.
8262 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8263 (struct widget_value): Define it here for menu.c.
8264 * keymap.c (includes): Include modifier internals.
8265 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8266 NS.
8267 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8268 support for preferring sequences using certain modifiers, specified by
8269 the FIRSTONLY argument.
8270 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8271 under NS GNUstep implementation.
8272 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8273 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8274 * menu.c: Include nsterm.h under NS.
8275 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8276 (free_menubar_widget_tree_value, update_submenu_strings)
8277 (find_and_call_menu_selection): Treat NS as X and NT.
8278 (find_and_return_menu_selection): New function, used for popup menus.
8279 * nsgui.h:
8280 * nsterm.h:
8281 * nsfns.m:
8282 * nsimage.m:
8283 * nsmenu.m:
8284 * nsselect.m:
8285 * nsterm.m: New files.
8286 * process.c (wait_reading_process_output): Under NS, call ns_select()
8287 instead of plain select().
8288 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8289 beginning of buffer.
8290 * sysselect.h (init_process): Rename when compiling under Cocoa to
8291 avoid name conflict.
8292 * termhooks.h (display_info): Add ns_display_info to union.
8293 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8294 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8295 COCOA environment.
8296 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8297 unexec() signature. (Note, this will dump, but the resulting file
8298 crashes; unexosx is used instead; keeping around for reference and
8299 possible aid in getting dump working under GNUstep.)
8300 * w32gui.h (button_type, widget_value): Remove definitions (now in
8301 keyboard.h).
8302 * window.c: Include nsterm.h when compiling under NS.
8303 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8304 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8305 other GUI windowing systems.
8306 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8307 GTK.
8308 (x_consider_frame_title): Under NS, set icon type and frame
8309 modified-state indicator; use ns_set_name_as_filename() when using
8310 formatted title.
8311 (update_window_cursor): Make public when compiling under NS.
8312 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8313 (hourglass_atimer, Vhourglass_delay
8314 * xfaces.c (header section, init_frame_faces, clear_font_table)
8315 (defined_color, unload_color, x_face_list_fonts)
8316 (prepare_face_for_display): Add NS support parallel to other GUIs.
8317 Emulate GCs like other non-X GUIs.
8318 (split_font_name): Don't lowercase font name under NS.
8319 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8320 under NS.
8321 * s/darwin.h: Add support for compilation under NS.
8322
83232008-07-15 Jason Rumney <jasonr@gnu.org>
8324
8325 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8326 (w32_show_hourglass): Rename from show_hourglass.
8327 (w32_hide_hourglass): Rename from hide_hourglass.
8328 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8329 (Vhourglass_delay): Declare extern.
8330 (hourglass_started): Remove.
8331
8332 * xdisp.c (Vhourglass_delay): Remove static.
8333 (hourglass_started, start_hourglass, cancel_hourglass):
8334 Don't include these versions on WINDOWSNT.
8335
83362008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8337
8338 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8339 variables (formerly in xfns.c).
8340 (show_hourglass, hide_hourglass): New prototypes (same).
8341 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8342 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8343 in xfns.c).
8344 (syms_of_xdisp): Declare/initialize display-hourglass,
8345 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8346 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8347 formerly in xfns.c.
8348 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8349 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8350 (start_hourglass, cancel_hourglass): Remove.
8351 (show_hourglass, hide_hourglass): Remove prototypes and static
8352 modifiers.
8353 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8354 hourglass_atimer, hourglass_shown_p declaration/initialization.
8355 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8356 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8357 (start_hourglass, cancel_hourglass): Remove.
8358 (show_hourglass, hide_hourglass): Remove prototypes and static
8359 modifiers.
8360 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8361 hourglass_atimer, hourglass_shown_p declaration/initialization.
8362 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8363 (DEFAULT_HOURGLASS_DELAY): Remove.
8364 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8365 hourglass_shown_p declaration/initialization.
8366
83672008-07-14 Jason Rumney <jasonr@gnu.org>
8368
8369 * w32fns.c (w32_get_arg): Remove wrapper function.
8370 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8371 directly.
8372 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8373
83742008-07-14 Kenichi Handa <handa@m17n.org>
8375
8376 * xfont.c (xfont_open): Add workaround for X's bug.
8377
83782008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8379
8380 * fontset.c: Include <stdio.h> unconditionally.
8381
83822008-07-13 Michael Albinus <michael.albinus@gmx.de>
8383
8384 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8385 for filtering.
8386
83872008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8388
8389 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8390
8391 * m/macppc.h:
8392 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8393
8394 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8395 (SPECIAL_EMACS_INT):
8396 * m/ia64.h (SPECIAL_EMACS_INT):
8397 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8398 * s/gnu.h (NLIST_STRUCT):
8399 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8400 * s/gnu-linux.h (LINUX):
8401 * s/msdos.h (HAVE_FACES):
8402 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8403
8404 * systty.h:
8405 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8406 anymore.
8407
84082008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8409
8410 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8411 always defined as int.
8412
8413 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8414 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8415 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8416 * s/freebsd.h (HAVE_WAIT_HEADER):
8417 * s/bsd-common.h (HAVE_UNION_WAIT):
8418 * s/aix4-2.h (HAVE_WAIT_HEADER):
8419 * m/mips.h (HAVE_UNION_WAIT):
8420 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8421 (COFF, static): Do not define, they are undefined later in the file.
8422
8423 * process.c (update_status): Don't use a union.
8424 (status_convert):
8425 (sigchld_handler): Use int instead of WAITTYPE.
8426
84272008-07-12 Chong Yidong <cyd@stupidchicken.com>
8428
8429 * indent.c (Fvertical_motion): Restore hscroll before moving to
8430 goal column.
8431
84322008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8433
8434 * lisp.h: Remove left over code.
8435
84362008-07-11 Andreas Schwab <schwab@suse.de>
8437
8438 * lisp.h: Fix logic in last change.
8439
8440 * menu.h: New file.
8441 * menu.c: Include it.
8442 * xmenu.c: Likewise.
8443 * Makefile.in: Update dependencies.
8444
84452008-07-11 Kenichi Handa <handa@m17n.org>
8446
8447 * fontset.c (fontset_from_font): Cancel the previous change.
8448
84492008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8450
8451 * lisp.h:
8452 * w32heap.c:
8453 * emacs.c:
8454 * alloc.c: Replace all references of NO_UNION_TYPE with
8455 USE_LISP_UNION_TYPE.
8456
8457 * m/xtensa.h (NO_UNION_TYPE):
8458 * m/vax.h (NO_UNION_TYPE):
8459 * m/template.h (NO_UNION_TYPE):
8460 * m/sparc.h (NO_UNION_TYPE):
8461 * m/mips.h (NO_UNION_TYPE):
8462 * m/macppc.h (NO_UNION_TYPE):
8463 * m/m68k.h (NO_UNION_TYPE):
8464 * m/iris4d.h (NO_UNION_TYPE):
8465 * m/intel386.h (NO_UNION_TYPE):
8466 * m/ibms390x.h (NO_UNION_TYPE):
8467 * m/ibms390.h (NO_UNION_TYPE):
8468 * m/ibmrs6000.h (NO_UNION_TYPE):
8469 * m/ia64.h (NO_UNION_TYPE):
8470 * m/hp800.h (NO_UNION_TYPE):
8471 * m/arm.h (NO_UNION_TYPE):
8472 * m/amdx86-64.h (NO_UNION_TYPE):
8473 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8474 defining it the same.
8475
84762008-07-10 Chong Yidong <cyd@stupidchicken.com>
8477
8478 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8479
84802008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8481
8482 * fileio.c:
8483 * sysdep.c
8484 * systty.h:
8485 * m/ibmrs6000.h:
8486 * m/iris4d.h:
8487 * s/aix4-2.h:
8488 * s/freebsd.h:
8489 * s/gnu-linux.h:
8490 * s/hpux10-20.h:
8491 * s/hpux11.h:
8492 * s/netbsd.h:
8493 * s/sol2-3.h:
8494 * s/sol2-4.h:
8495 * s/sol2.h:
8496 * s/usg5-4.h:
8497 * s/vms.h: Remove references to unused variables.
8498
84992008-07-10 Andreas Schwab <schwab@suse.de>
8500
8501 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8502 pattern before matching the generic family.
8503
85042008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8505
8506 * unexec.c:
8507 * s/vms.h:
8508 * s/usg5-4-2.h:
8509 * s/sol2-5.h:
8510 * s/freebsd.h:
8511 * s/darwin.h: Remove dead code.
8512
8513 * m/template.h:
8514 * m/sparc.h:
8515 * m/mips.h:
8516 * m/m68k.h:
8517 * m/iris4d.h:
8518 * m/intel386.h:
8519 * m/ibms390x.h:
8520 * m/ibms390.h:
8521 * m/ia64.h:
8522 * m/hp800.h:
8523 * m/arm.h:
8524 * m/amdx86-64.h: Remove dead code and references to unused
8525 and compiler defined symbols.
8526
8527 * unexmips.c:
8528 * unexelf.c: Remove references to desupported systems.
8529
8530 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8531
8532 * m/powermac.h: Remove boilerplate comments.
8533 (NO_REMAP): Remove unused definition.
8534
8535 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8536 define them.
8537
85382008-07-10 Kenichi Handa <handa@m17n.org>
8539
8540 * xfont.c (xfont_open): Log the reason of failure.
8541
85422008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8543
8544 * fontset.c (fontset_get_font_group):
8545 * font.c (font_check_otf): Specify argument types.
8546
85472008-07-09 Kenichi Handa <handa@m17n.org>
8548
8549 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8550 non-ASCII char is found.
8551
8552 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8553 (reorder_font_vector): Change the arg preferred_family to font.
8554 Prefer the spec matching with font.
8555 (fontset_get_font_group): New function.
8556 (fontset_find_font): Change the format of an element of a realized
8557 fontset. Use fontset_get_font_group.
8558 (fontset_font): Try the current fontset, the default fontset, the
8559 fallbacks of the current fontset, and the fallbacks of the default
8560 fontset in this order.
8561 (face_for_char): Delete the shortcut to use the current font.
8562 (fontset_from_font): Don't set fonts for Latin in the fontset.
8563
8564 * font.h (font_make_object, font_match_p): Adjust prototypes.
8565
8566 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8567
8568 * font.c (font_make_object): New arg entity and pixelsize.
8569 (font_check_otf_features, font_check_otf): New functions.
8570 (font_match_p): Check :lang, :script, and :otf properties.
8571
8572 * xfont.c (xfont_open): Adjust it for the change of
8573 font_make_object.
8574 (xfont_text_extents): Fix initial setting of metrics.
8575
8576 * ftfont.c (struct ftfont_info): New member index, delete member
8577 fc_charset_idx. Make the member order compatible with struct
8578 xftfont_info.
8579 (fc_charset_table): Change charset names to registry names.
8580 (ftfont_pattern_entity): Delete the args registry and
8581 fc_charset_idx. Change the value of :font-entity property
8582 to (FONTNAME . INDEX). Always set :registry property to
8583 `iso10646-1'.
8584 (struct ftfont_cache_data): New struct.
8585 (ftfont_lookup_cache): New arg for_face.
8586 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8587 (ftfont_driver): Set the member otf_capability.
8588 (ftfont_get_charset): Adjust it for the change of
8589 fc_charset_table.
8590 (OTF_TAG_SYM): New macro.
8591 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8592 for the change of fc_charset_table.
8593 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8594 ftfont_pattern_entity. Add FC_INDEX to objset.
8595 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8596 and ftfont_pattern_entity.
8597 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8598 font_make_object, struct ftfont_info.
8599 (ftfont_has_char): Use ftfont_get_fc_charset.
8600 (ftfont_otf_features, ftfont_otf_capability): New functions.
8601 (ftfont_shape): Use ftfont_get_otf.
8602 (ftfont_text_extents): Fix initial setting of metrics.
8603
8604 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8605 member order compatible with struct ftfont_info.
8606 (xftfont_open): Add FC_CHARSET to the pattern. Set
8607 xftfont_info->ft_size. Don't unlock the face. Check BDF
8608 properties if appropriate.
8609 (xftfont_close): Unlock the face.
8610 (xftfont_anchor_point, xftfont_shape): Deleted.
8611 (syms_of_xftfont): Don't set members anchor_point and shape of
8612 xftfont_driver.
8613
8614 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8615 font_make_object.
8616
8617 * w32font.c (w32font_open): Adjust it for the change of
8618 font_make_object.
8619 (w32font_open_internal): Don't set properties of font_object here.
8620
86212008-07-08 Chong Yidong <cyd@stupidchicken.com>
8622
8623 * macfns.c (x_create_tip_frame):
8624 * w32fns.c (x_create_tip_frame):
8625 * xfns.c (x_create_tip_frame): Pass parameter argument to
8626 face-set-after-frame-default.
8627
8628 * xfaces.c (Finternal_merge_in_global_face): Save merged
8629 attributes for the default face back into the face vector.
8630
86312008-07-08 Andreas Schwab <schwab@suse.de>
8632
8633 * fontset.h: Declare fontset_from_font. Don't declare
8634 new_fontset_from_font and fontset_from_font_name.
8635 * xterm.c: Include "fontset.h".
8636 * Makefile.in (xterm.o): Update dependencies.
8637
86382008-07-08 Glenn Morris <rgm@gnu.org>
8639
8640 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8641 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8642
86432008-07-07 Chong Yidong <cyd@stupidchicken.com>
8644
8645 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8646 (x_set_frame_parameters): Don't bind it.
8647
86482008-07-07 Juanma Barranquero <lekktu@gmail.com>
8649
8650 * w32fns.c (map_w32_filename): Declare extern.
8651
86522008-07-07 Jason Rumney <jasonr@gnu.org>
8653
8654 * w32term.c (WS_EX_LAYERED): Define if not already.
8655
86562008-07-06 Chong Yidong <cyd@stupidchicken.com>
8657
8658 * xfaces.c (set_font_frame_param): Don't try to set the font
8659 parameter if it is still unspecified in the lface.
8660
86612008-07-05 Chong Yidong <cyd@stupidchicken.com>
8662
8663 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8664 face if it didn't already exist.
8665
8666 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8667
86682008-07-05 Andreas Schwab <schwab@suse.de>
8669
8670 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8671
86722008-07-05 Chong Yidong <cyd@stupidchicken.com>
8673
8674 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8675 word-wrapping.
8676 (IT_DISPLAYING_WHITESPACE): New macro.
8677 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8678 when word-wrapping. Simplify word-wrapping logic. Use correct
8679 pixel positions when saving copies of the iterator.
8680 (display_line): Use proper wrap point if the last character on a
8681 line was preceded by whitespace.
8682
86832008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8684
8685 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8686
86872008-07-04 Kenichi Handa <handa@m17n.org>
8688
8689 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8690
8691 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8692
86932008-07-02 Jason Rumney <jasonr@gnu.org>
8694
8695 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8696 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8697
8698 * xdisp.c (next_element_from_display_vector): Move assignment out
8699 of if statement.
8700
87012008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8702
8703 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8704
8705 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8706 (syms_of_fileio): Initialize and export them.
8707 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8708
8709 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8710 (Fsystem_move_file_to_trash): New function.
8711 (syms_of_w32fns): Export it to lisp.
8712
87132008-07-01 Jason Rumney <jasonr@gnu.org>
8714
8715 * w32font.c (w32font_text_extents): Don't count overhang as part
8716 of width.
8717
87182008-06-30 Miles Bader <miles@gnu.org>
8719
8720 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8721 Add `avoid_cursor_p' field.
8722
8723 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8724 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8725 (append_glyph, append_composite_glyph, produce_image_glyph)
8726 (append_stretch_glyph): Initialize avoid_cursor_p.
8727 (get_it_property): Rename from `get_line_height_property'.
8728 (x_produce_glyphs): Use get_it_property.
8729 (handle_line_prefix, push_display_prop): New functions.
8730 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8731 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8732 New variables.
8733 (syms_of_xdisp): Initialize them.
8734
87352008-06-30 Kenichi Handa <handa@m17n.org>
8736
8737 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8738 XftDefaultSubstitute (they are called in XftFontMatch).
8739 (xftfont_open): Fix args to ftfont_font_format.
8740
8741 * ftfont.c (fc_charset_table): New member lang.
8742 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8743 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8744 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8745 (ftfont_open): Fix args to ftfont_font_format.
8746 (ftfont_font_format): New arg filename.
8747
87482008-06-30 Chong Yidong <cyd@stupidchicken.com>
8749
8750 * xfaces.c (Finternal_merge_in_global_face): If default face was
8751 modified, realize it again. Update the font face attribute.
8752
87532008-06-29 Jason Rumney <jasonr@gnu.org>
8754
8755 * w32term.c (x_set_frame_alpha): Fix logic.
8756
87572008-06-29 Kenichi Handa <handa@m17n.org>
8758
8759 * fontset.c (Finternal_char_font): Return font-object instead of
8760 font-name.
8761
8762 * composite.c (get_composition_id): Fix the width calculation for TAB.
8763
87642008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8765
8766 * indent.c (Fvertical_motion): Properly handle float column arg.
8767
87682008-06-28 Jason Rumney <jasonr@gnu.org>
8769
8770 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8771 (pfnSetLayeredWindowAttributes): New function pointer.
8772 (w32_initialize): Initialize it when supported.
8773 (x_set_frame_alpha): New function.
8774
8775 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8776 (w32_frame_parm_handlers): Set alpha handler.
8777
8778 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8779
87802008-06-27 Jason Rumney <jasonr@gnu.org>
8781
8782 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8783 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8784 (w32_to_x_charset, x_to_w32_charset)
8785 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8786 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8787 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8788 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8789 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8790 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8791 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8792 (Qw32_charset_unicode): Remove.
8793 (syms_of_w32fns): Update for above changes.
8794
8795 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8796 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8797 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8798 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8799 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8800 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8801 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8802 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8803 (syms_of_w32font): Update for above changes.
8804
88052008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8806
8807 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8808 removed #if.
8809 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8810
88112008-06-26 Juanma Barranquero <lekktu@gmail.com>
8812 Eli Zaretskii <eliz@gnu.org>
8813
8814 * makefile.w32-in (LOCAL_FLAGS):
8815 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8816
8817 * sysdep.c (_spawnlp, _getpid):
8818 Declare with explicit _cdecl instead of _CRTAPI1.
8819
8820 * editfns.c (Fget_internal_run_time):
8821 Check for WINDOWSNT with #ifdef, not #if.
8822
88232008-06-26 Jason Rumney <jasonr@gnu.org>
8824
8825 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8826
8827 * w32term.c (x_draw_glyph_string_foreground)
8828 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8829 Use FONT_HANDLE macro.
8830 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8831
8832 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8833 (uniscribe_encode_char): Use FONT_HANDLE macro.
8834
8835 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8836 (w32font_text_extents): Use precast w32_font.
8837 (w32font_close): Free cached metrics.
8838 (w32font_open_internal): Allocate space for name on stack.
8839
88402008-06-26 Chong Yidong <cyd@stupidchicken.com>
8841
8842 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8843
88442008-06-26 Jason Rumney <jasonr@gnu.org>
8845
8846 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8847 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8848
88492008-06-26 Juanma Barranquero <lekktu@gmail.com>
8850
8851 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8852
88532008-06-26 Jason Rumney <jasonr@gnu.org>
8854
8855 * w32bdf.c, w32bdf.h: Remove obsolete files.
8856
8857 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8858
8859 * w32gui.h: Don't include w32bdf.h.
8860 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8861 Remove obsolete font support.
8862
8863 * w32font.h (struct w32font_info): Remove compat_w32_font.
8864 Add hfont member.
8865 (FONT_COMPAT): Remove obsolete macro.
8866
8867 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8868 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8869 (w32font_open_internal): Remove compat code. Set new hfont member.
8870 (Fx_select_font): Use new hfont member.
8871
8872 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8873 (uniscribe_encode_char): Use new hfont member.
8874
8875 * w32term.c (x_draw_glyph_string_foreground)
8876 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8877 (x_draw_glyph_string): Use metrics in w32font_info.
8878
88792008-06-26 Kenichi Handa <handa@m17n.org>
8880
8881 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8882
88832008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8884
8885 * unexnext.c:
8886 * m/ews4800.h:
8887 * m/hp9000s300.h:
8888 * m/ibm370aix.h:
8889 * m/mips-siemens.h:
8890 * m/ncr386.h:
8891 * m/next.h:
8892 * m/pmax.h:
8893 * m/powerpcle.h:
8894 * m/tandem-s2.h:
8895 * s/386bsd.h:
8896 * s/bsd386.h:
8897 * s/bsd4-1.h:
8898 * s/bsd4-2.h:
8899 * s/bsdos2-1.h:
8900 * s/bsdos2.h:
8901 * s/bsdos3.h:
8902 * s/bsdos4.h:
8903 * s/nextstep.h:
8904 * s/ultrix4-3.h:
8905 * s/usg5-0.h:
8906 * s/usg5-2-2.h:
8907 * s/usg5-2.h:
8908 * s/usg5-4-3.h:
8909 * s/ux4800.h:
8910 * s/uxpds.h:
8911 * s/uxpv.h: Remove support for obsolete systems.
8912 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8913 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8914 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8915 Remove, insert contents in s/aix4-2.h.
8916 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8917 * s/bsd4-3.h: Rename to ...
8918 * s/bsd-common.h: ... this.
8919 * data.c:
8920 * doc.c:
8921 * ecrt0.c:
8922 * emacs.c:
8923 * fileio.c:
8924 * floatfns.c:
8925 * keyboard.c:
8926 * mem-limits.h:
8927 * print.c:
8928 * process.c:
8929 * sysdep.c:
8930 * syssignal.h:
8931 * systty.h:
8932 * syswait.h:
8933 * term.c:
8934 * unexec.c:
8935 * unexelf.c:
8936 * unexhp9k800.c:
8937 * m/hp800.h:
8938 * m/ibmrs6000.h:
8939 * m/mips.h:
8940 * m/vax.h:
8941 * s/darwin.h:
8942 * s/freebsd.h:
8943 * s/gnu.h:
8944 * s/ms-w32.h:
8945 * s/msdos.h:
8946 * s/netbsd.h:
8947 * s/template.h: Remove references to obsolete variables.
8948
8949 * Makefile.in: Add dependencies for all unexec files.
8950 (admindir): Remove unused variable.
8951 (UNEXEC_SRC): Remove references.
8952
89532008-06-25 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * xfns.c (x_default_font_parameter): If Xft is available, first
8956 try Monospace-12 for the default font.
8957
89582008-06-25 Jason Rumney <jasonr@gnu.org>
8959
8960 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8961
89622008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8963
8964 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8965
8966 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8967
89682008-06-25 Juanma Barranquero <lekktu@gmail.com>
8969
8970 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8971 <scroll-conservatively>: Fix typo in docstring.
8972
8973 * xselect.c (Fx_send_client_event): Doc fix.
8974
89752008-06-25 Kenichi Handa <handa@m17n.org>
8976
8977 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8978
8979 * font.c (font_parse_fcname): Remove unused variables.
8980 (font_sort_entites): Delete the arg SPEC. Caller changed.
8981 Fix for the case of ! best_only.
8982 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8983
8984 * lisp.h (Fstring_to_unibyte): EXFUN it.
8985
8986 * character.h (str_to_unibyte): Extern it.
8987
8988 * character.c (str_to_unibyte): New function.
8989
8990 * fns.c (Fstring_to_unibyte): New function.
8991 (syms_of_fns): Defsubr it.
8992
89932008-06-24 Kenichi Handa <handa@m17n.org>
8994
8995 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8996 DPI too.
8997 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8998
89992008-06-24 Andreas Schwab <schwab@suse.de>
9000
9001 * Makefile.in (${lispsource}loaddefs.el): Rename from
9002 ../lisp/loaddefs.el.
9003 (bootstrap-clean): Do what distclean does but don't remove
9004 Makefile.
9005 (distclean): Depend on bootstrap-clean and remove Makefile.
9006
90072008-06-24 Chong Yidong <cyd@stupidchicken.com>
9008
9009 * buffer.h (struct buffer): New member word_wrap.
9010
9011 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9012 word-wrap.
9013 (init_buffer_once): Initialize them.
9014
9015 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9016 line_wrap enum possessing three possible values.
9017
9018 * termopts.h: Replace truncate_partial_width_windows with
9019 Vtruncate_partial_width_windows.
9020
9021 * dispnew.c (direct_output_for_insert): Avoid direct output when
9022 inserting a space with word wrap on.
9023
9024 * indent.c (compute_motion): Obey integer values of
9025 truncate-partial-width-windows.
9026
9027 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9028 replacing truncate_partial_width_windows.
9029 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9030 truncate only if the window width is below that integer.
9031 (start_display, resize_mini_window, produce_stretch_glyph)
9032 (display_string, move_it_in_display_line_to): Use line_wrap.
9033 (back_to_previous_visible_line_start, reseat_1): Reset
9034 string_from_display_prop_p.
9035 (display_line): Extend default face to end of line when wrapping.
9036
90372008-06-24 Kim F. Storm <storm@cua.dk>
9038
9039 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9040 to wrap continued lines at word boundaries.
9041
90422008-06-24 Jason Rumney <jasonr@gnu.org>
9043
9044 * font.c (Ffont_face_attributes): Multiply pixel size before point
9045 conversion to avoid multiplying rounding error.
9046
90472008-06-23 Jason Rumney <jasonr@gnu.org>
9048
9049 * w32term.c (x_draw_glyph_string_background)
9050 (x_draw_glyph_string): Remove old bdf font code.
9051
9052 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9053
90542008-06-22 Kenichi Handa <handa@m17n.org>
9055
9056 * font.c (font_find_for_lface): Try the adstyle specified in
9057 the property of LFACE_FONT of LFACE (if any).
9058
90592008-06-21 Seiji Zenitani <zenitani@mac.com>
9060 Ryo Yoshitake <ryo@shiftmode.net>
9061
9062 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9063
90642008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9065
9066 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9067 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9068 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9069 (witness-emacs): Remove.
9070 (lisp, shortlisp): Move loaddefs.el earlier.
9071 (mostlyclean): Forget about witness-emacs.
9072
90732008-06-22 Glenn Morris <rgm@gnu.org>
9074
9075 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9076 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9077
90782008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9079
9080 * Makefile.in (PRECOMP): Remove.
9081 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9082 (witness-emacs): Run `compile-first'.
9083 (.el.elc): Use the new compile-onefile target.
9084
90852008-06-21 Kenichi Handa <handa@m17n.org>
9086
9087 * xftfont.c (xftfont_open): Handle QCembolden only when
9088 FC_EMBOLDEN is defined.
9089
90902008-06-21 Andreas Schwab <schwab@suse.de>
9091
9092 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9093 (.el.elc): Likewise.
9094
90952008-06-21 Miles Bader <miles@gnu.org>
9096
9097 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9098 build dir, not the lisp source dir.
9099
91002008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9101
9102 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9103 (bootstrapclean): Remove.
9104 (.el.elc): New rule.
9105 (PRECOMP): New var.
9106 (../lisp/subdirs.el): Remove.
9107 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9108 (witness-emacs): New target.
9109 (mostlyclean): Remove witness-emacs as well.
9110 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9111 Add witness-emacs dependency.
9112
91132008-06-20 Chong Yidong <cyd@stupidchicken.com>
9114
9115 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9116 defined by the font.
9117
91182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9121 (bootstrap-clean): New target that keeps TAGS around.
9122 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9123 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9124
91252008-06-20 Jason Rumney <jasonr@gnu.org>
9126
9127 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9128 Remove obsolete font code.
9129
9130 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9131 to determine language support.
9132
91332008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9134
9135 * sysdep.c (cfsetspeed): New fun extracted from the code.
9136 (cfmakeraw): Move before first use.
9137
91382008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9139
9140 * sysdep.c (cfmakeraw): Provide fallback implementation.
9141 (serial_configure): Provide fallback implementation of cfsetspeed.
9142
91432008-06-20 Kenichi Handa <handa@m17n.org>
9144
9145 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9146 the pattern.
9147
9148 * fontset.c (fontset_from_font): Copy font_spec before changing
9149 the elements.
9150
9151 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9152
91532008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9154
9155 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9156 for explicit `font' parameters.
9157
9158 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9159
91602008-06-19 Kenichi Handa <handa@m17n.org>
9161
9162 * frame.c: Include <ctype.h>.
9163 (x_set_font_backend): Allow spacing characters in the X resource
9164 for FontBackend.
9165
91662008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9167
9168 * w32fns.c, xfns.c (Qfont_param): New var.
9169 (syms_of_w32fns): Initialize it.
9170 (x_default_font_parameter): Record explicit `font' into
9171 `font-parameter'.
9172
91732008-06-18 Kenichi Handa <handa@m17n.org>
9174
9175 * font.c (font_parse_xlfd): Fix previous change.
9176 (font_parse_fcname): Don't use :fc-unknown-spec.
9177 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9178 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9179 (font_add_log): Prepend the driver name to the resulting fonts.
9180
9181 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9182 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9183 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9184
9185 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9186 (QCembolden): New variables.
9187 (syms_of_xftfont): DEFSYM them.
9188 (xftfont_open): Call XftFontMatch. Don't trust the result of
9189 XftTextExtents8 if the pixel_size is less than 5.
9190
91912008-06-18 Andreas Schwab <schwab@suse.de>
9192
9193 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9194 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9195
91962008-06-18 Jason Rumney <jasonr@gnu.org>
9197
9198 * w32font.c (w32font_list, w32font_match): Add logging.
9199
9200 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9201
92022008-06-17 Chong Yidong <cyd@stupidchicken.com>
9203
9204 * font.c (font_parse_fcname): Store divider characters for
9205 unknown-spec list. For known key symbols, intern using correct
9206 symbol name.
9207
92082008-06-17 Kenichi Handa <handa@m17n.org>
9209
9210 * xfaces.c (realize_default_face): If the frame is not on window
9211 system, set the fontset of face to nil.
9212
92132008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9214
9215 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9216
92172008-06-16 Juanma Barranquero <lekktu@gmail.com>
9218
9219 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9220 (build_font_name_from_vector): Delete externs.
9221
9222 * xfaces.c (struct font_name): Don't declare.
9223
92242008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9225
9226 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9227
92282008-06-16 Chong Yidong <cyd@stupidchicken.com>
9229
9230 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9231
92322008-06-16 Juanma Barranquero <lekktu@gmail.com>
9233
9234 * font.c (Ffont_spec): Fix usage in docstring.
9235 (Ffont_face_attributes): Doc fix.
9236
92372008-06-16 Andreas Schwab <schwab@suse.de>
9238
9239 * font.c (Ffont_face_attributes): Fix definition.
9240
92412008-06-16 Jason Rumney <jasonr@gnu.org>
9242
9243 * font.h (font_style_symbolic_from_value): Remove.
9244
9245 * font.c (font_style_symbolic_from_value): Remove.
9246 (font_style_symbolic): Revert to pre 2008-06-13 version.
9247
9248 * w32font.c (w32_to_fc_weight): New function.
9249 (w32font_full_name, logfont_to_fcname): Use it.
9250
92512008-06-16 Kenichi Handa <handa@m17n.org>
9252
9253 * font.c (font_check_object): Delete it.
9254 (font_clear_cache): Check if a font-object is alive.
9255 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9256 font-object to nil.
9257 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9258 (font_at): Don't call font_check_object.
9259 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9260
92612008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9262
9263 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9264
92652008-06-16 Chong Yidong <cyd@stupidchicken.com>
9266
9267 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9268
92692008-06-15 Chong Yidong <cyd@stupidchicken.com>
9270
9271 * font.c (font_parse_fcname): Only one decimal point.
9272 (font_unparse_fcname): Handle data in family and foundry indices
9273 as symbols, not strings.
9274 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9275
9276 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9277
9278 * font.h (font_unparse_gtkname): Add prototype.
9279
92802008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9281
9282 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9283
92842008-06-15 Andreas Schwab <schwab@suse.de>
9285
9286 * font.c (font_update_drivers): Fix crash when no drivers match.
9287
92882008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9289
9290 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9291 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9292
92932008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9294
9295 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9296
92972008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9298
9299 * process.c (Fserial_process_configure, Fprocess_send_eof):
9300 Use EQ to compare Lisp_Objects.
9301
93022008-06-13 Jason Rumney <jasonr@gnu.org>
9303
9304 * w32fns.c (Fw32_select_font): Remove old font API function.
9305
9306 * w32font.c (logfont_to_fcname): New function.
9307 (Fx_select_font): New font dialog function compatible with
9308 GTK/fontconfig version.
9309
9310 * font.c (font_style_symbolic_from_value): New function.
9311 (font_style_symbolic): Use it.
9312
9313 * font.h (font_style_symbolic_from_value): Declare new function.
9314
93152008-06-13 Juanma Barranquero <lekktu@gmail.com>
9316
9317 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9318 <font-width-table>: Fix typos in docstrings.
9319
93202008-06-13 Daniel Engeler <engeler@gmail.com>
9321
9322 These changes add serial port access.
9323 * process.c: Add HAVE_SERIAL.
9324 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9325 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9326 (list_processes_1, select_wrapper, Fstop_process)
9327 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9328 (status_notify): Modify to handle serial processes.
9329 [HAVE_SERIAL] (Fserial_process_configure)
9330 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9331 New functions.
9332 * process.h (struct Lisp_Process): Add `type'.
9333 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9334 New functions.
9335 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9336 serial ports.
b71ac3dd 9337 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9338 * w32.h: Add FILE_SERIAL.
9339 (struct _child_process): Add ovl_read, ovl_write.
9340
93412008-06-13 Kenichi Handa <handa@m17n.org>
9342
9343 * dispextern.h (enum lface_attribute_index): New member
9344 LFACE_FOUNDRY_INDEX.
9345
9346 * font.c (font_score): Delete arg alternate_families. Check only
9347 weight, slant, width, and size. Ignore the difference of alias
9348 style symbols.
9349 (font_sort_entites): Adjust for the above change. Reflect the
9350 order of font-driver to scores.
9351 (font_list_entities): Don't check alternate_familes here.
9352 (font_clear_prop): Handle foundry.
9353 (font_update_lface): Don't parse "foundry-family" form here.
9354 Handle FONT_FOUNDRY_INDEX.
9355 (font_find_for_lface): Likewise. Handle alternate families here.
9356 If registry is nil, try iso8859-1 and ascii-0.
9357 (font_open_for_lface): Pay attention to size in ENTITY.
9358 (font_open_by_name): Simplify by calling font_load_for_lface.
9359 (free_font_driver_list): Delete it.
9360 (font_update_drivers): Preserve the order of backends.
9361 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9362 of font_score and font_sort_entites.
9363 (font_update_sort_order): Likewise.
9364
9365 * xfaces.c (LFACE_FOUNDRY): New macro.
9366 (check_lface_attrs): Check foundry.
9367 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9368 (merge_face_vectors): Check foundry.
9369 (merge_face_ref): Likewise.
9370 (Finternal_set_lisp_face_attribute): Likewise.
9371 (x_update_menu_appearance): Likewise.
9372 (Finternal_get_lisp_face_attribute): Likewise.
9373 (lface_hash): Likewise.
9374 (lface_same_font_attributes_p): Likewise.
9375 (x_supports_face_attributes_p): Likewise.
9376 (tty_supports_face_attributes_p): Likewise.
9377 (Finternal_set_alternative_font_family_alist): Intern strings.
9378 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9379 (realize_default_face): Set LFACE_FOUNDRY (lface).
9380
9381 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9382 font-driver at first.
9383
9384 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9385
93862008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9387
9388 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9389
93902008-06-12 Jim Meyering <meyering@redhat.com>
9391
9392 Make unexec_free handle NULL the same way free does.
9393 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9394
93952008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9396
9397 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9398 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9399 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9400 (WEAK_ALIAS): Simplify.
9401 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9402 when searching a unibyte buffer.
9403
94042008-06-12 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9407
94082008-06-12 Juanma Barranquero <lekktu@gmail.com>
9409
9410 * w32font.c: Include ctype.h.
9411
94122008-06-11 Jason Rumney <jasonr@gnu.org>
9413
9414 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9415 misreported as space.
9416 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9417 as aliases for registry iso10646-1.
9418
94192008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9420
9421 * buffer.c (clone_per_buffer_values): Skip `name'.
9422
94232008-06-11 Chong Yidong <cyd@stupidchicken.com>
9424
9425 * font.c (font_parse_fcname): Fix last change; accept decimal
9426 points in font size.
9427
94282008-06-10 Jason Rumney <jasonr@gnu.org>
9429
9430 * w32uniscribe.c (add_opentype_font_name_to_list):
9431 Skip non unicode fonts.
9432
94332008-06-10 Chong Yidong <cyd@stupidchicken.com>
9434
9435 * xfns.c (Fx_font_dialog): New function.
9436
9437 * gtkutil.c (xg_dialog_response_cb): Rename from
9438 xg_file_response_callback.
9439 (pop_down_dialog): Rename from pop_down_file_dialog.
9440 (xg_get_file_name): Callers changed.
9441 (xg_get_font_name): New function.
9442
9443 * gtkutil.h (xg_get_font_name): Insert prototype.
9444
94452008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9446
9447 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9448 x_underline_minimum_display_offset.
9449 (syms_of_xdisp): Declare it here rather than in xterm.c.
9450 * dispextern.h (underline_minimum_offset): Declare it.
9451 * w32term.c (x_draw_glyph_string): Use it.
9452 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9453 (syms_of_xterm): Don't declare it any more.
9454 (x_draw_glyph_string): Adjust to the new name.
9455
8719abec 94562008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9457
9458 * xterm.c (x_underline_minimum_display_offset): New var.
9459 (x_draw_glyph_string): Use it.
9460 (syms_of_xterm): Declare it.
9461
94622008-06-10 Chong Yidong <cyd@stupidchicken.com>
9463
9464 * font.c (font_parse_fcname): Accept GTK-style font names too.
9465
94662008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9467
9468 * dired.c (file_name_completion): Don't return t if the match is exact
9469 but with different capitalization.
9470 * minibuf.c (Ftry_completion): Simplify.
9471
9472 * window.c (Vwindow_point_insertion_type): New var.
9473 (set_window_buffer): Use it.
9474 (syms_of_window): Init and export it to Lisp.
9475
94762008-06-10 Kenichi Handa <handa@m17n.org>
9477
9478 * font.h (font_intern_prop): Prototype adjusted.
9479
9480 * font.c (font_intern_prop): New arg force_symbol.
9481 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9482 Adjust for the change of font_intern_prop.
9483
9484 * ftfont.c (ftfont_pattern_entity):
9485 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9486 (w32_registry):
9487 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9488 the change of font_intern_prop.
9489
94902008-06-09 Juanma Barranquero <lekktu@gmail.com>
9491
9492 * w32menu.c (digest_single_submenu): Declare extern.
9493
94942008-06-09 Jason Rumney <jasonr@gnu.org>
9495
9496 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9497
9498 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9499 (parse_single_submenu): Remove.
9500 (digest_single_submenu): Remove.
9501 (syms_of_w32menu): Don't initialise variables that have moved
9502 to menu.c.
9503 (set_frame_menubar): Sync with version in xmenu.c.
9504 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9505
9506 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9507 Make static again.
9508
95092008-06-09 Jason Rumney <jasonr@gnu.org>
9510
9511 Changes to w32 files related to the move of common menu code
9512 to menu.c on 2008-06-08 by Chong Yidong.
9513
9514 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9515 defs to w32gui.h.
9516 (single_keymap_panes, push_menu_item, push_menu_pane):
9517 Make globally visible.
9518
9519 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9520 (local_free, malloc_widget_value, free_widget_value)
9521 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9522 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9523 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9524 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9525 (menu_items, menu_items_allocated, menu_items_used)
9526 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9527 (init_menu_items, finish_menu_items, discard_menu_items)
9528 (grow_menu_items, push_submenu_start, push_submenu_end)
9529 (push_left_right_boundary, push_menu_pane, push_menu_item)
9530 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9531 (free_menubar_widget_tree_value, parse_single_submenu)
9532 (update_submenu_strings): Remove functions.
9533 (xmalloc_widget_value): Remove and declare extern.
9534
9535 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9536 (OBJ1): Build it.
9537
9538 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9539 (local_heap, local_alloc, local_free, malloc_widget_value)
9540 (free_widget_value): Define here.
9541
95422008-06-09 Kenichi Handa <handa@m17n.org>
9543
9544 * font.h (Qascii_0): Extern it.
9545
9546 * font.c (Qascii_0): New variable.
9547 (syms_of_font): DEFSYM it.
9548 (font_open_by_name): If the registry "iso8859-1" fails, try also
9549 "ascii-0".
9550
9551 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9552
95532008-06-08 Kenichi Handa <handa@m17n.org>
9554
9555 * .gdbinit (xfont): New command.
9556
95572008-06-08 Andreas Schwab <schwab@suse.de>
9558
9559 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9560 * Makefile.in (menu.o): Update dependencies.
9561
9562 * Makefile.in (obj): Always add menu.o.
9563 * emacs.c (main): Always call syms_of_menu.
9564 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9565
95662008-06-08 Chong Yidong <cyd@stupidchicken.com>
9567
9568 * Makefile.in: Compile menu.c.
9569
9570 * lisp.h: Declare syms_of_menu.
9571
9572 * emacs.c (main): Call syms_of_menu.
9573
9574 * keyboard.h: Relocate platform-independent menu definitions from
9575 xmenu.c.
9576
9577 * menu.c: New file. Relocate platform-independent menu
9578 definitions from xmenu.c. Suggested by Adrian Robert.
9579
9580 * xmenu.c: Remove platform-independent menu definitions.
9581 (menu_items menu_items_inuse, menu_items_allocated)
9582 (menu_items_used, menu_items_n_panes)
9583 (menu_items_submenu_depth): Move to keyboard.h.
9584 (init_menu_items, finish_menu_items, unuse_menu_items)
9585 (discard_menu_items, restore_menu_items, save_menu_items)
9586 (grow_menu_items, push_submenu_start, push_submenu_end)
9587 (push_left_right_boundary, push_menu_pane, push_menu_item)
9588 (keymap_panes, single_keymap_panes, single_menu_item)
9589 (list_of_panes, list_of_items, find_and_call_menu_selection)
9590 (xmalloc_widget_value, free_menubar_widget_value_tree)
9591 (parse_single_submenu, digest_single_submenu)
9592 (update_submenu_strings): Move to menu.c.
9593
95942008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9595
9596 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9597
95982008-06-06 Miles Bader <miles@gnu.org>
9599
9600 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9601 face, not frame default.
9602
96032008-06-05 Martin Rudalics <rudalics@gmx.at>
9604
9605 * window.c (pop_up_windows, pop_up_frames)
9606 (display_buffer_reuse_frames, Vpop_up_frame_function)
9607 (Vdisplay_buffer_function, Veven_window_heights)
9608 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9609 (Vspecial_display_function, Vsame_window_buffer_names)
9610 (Vsame_window_regexps, split_height_threshold)
9611 (Vsplit_window_preferred_function): Move those vars to window.el.
9612 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9613 (Fdisplay_buffer): Move those functions to window.el.
9614 (syms_of_window): Remove corresponding declarations.
9615 (display_buffer): New function.
9616 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9617 * dispnew.c (Flast_nonminibuf_frame): New function.
9618 * buffer.c (Fpop_to_buffer): Move to window.el.
9619
96202008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9621
9622 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9623
96242008-06-05 Kenichi Handa <handa@m17n.org>
9625
9626 * coding.c (detect_coding): Fix previous change.
9627 (detect_coding_system): Likewise.
9628
96292008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9632
9633 * keymap.c (Vminibuffer_local_filename_must_match_map):
9634 Rename from Vminibuffer_local_must_match_filename_map.
9635 (syms_of_keymap):
9636 * minibuf.c (Fcompleting_read): Adjust accordingly.
9637 * commands.h: Rename declaration as well.
9638
96392008-06-05 Kenichi Handa <handa@m17n.org>
9640
9641 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9642 family name.
9643 (Ffont_put): Likewise.
9644
9645 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9646 current font-spec.
9647
9648 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9649 is unspecified.
9650
9651 * xfaces.c (realize_x_face): If the font-related face attributes
9652 are the same as those of default face, realize a new fontset from
9653 default->fontset.
9654 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9655
96562008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9657
9658 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9659 (move_it_in_display_line): New wrapper.
9660
9661 * window.c (window_scroll_pixel_based_preserve_x)
9662 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9663 (window_scroll_pixel_based, window_scroll_line_based):
9664 Use them to preserve column positions.
9665 (syms_of_window): Initialize them.
9666
9667 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9668 (HPOS . VPOS) pair.
9669
9670 * dispextern.h (move_it_in_display_line): Declare.
9671
96722008-06-05 Juanma Barranquero <lekktu@gmail.com>
9673
9674 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9675 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9676 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9677
96782008-06-04 Juanma Barranquero <lekktu@gmail.com>
9679
9680 * window.c (Fset_window_parameter): Doc fix.
9681 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9682
96832008-06-04 Joakim Verona <joakim@verona.se>
9684
9685 * window.h (struct window): Add new member window_parameters.
9686
9687 * window.c (Fwindow_parameters, Fwindow_parameter)
9688 (Fset_window_parameter): New defuns.
9689 (syms_of_window): Defsubr the new defuns.
9690 (make_window): Initialize window_parameters to nil.
9691
96922008-06-04 John Paul Wallington <jpw@pobox.com>
9693
9694 * eval.c (Fdefmacro): Doc fix.
9695
96962008-06-04 Kenichi Handa <handa@m17n.org>
9697
9698 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9699 Be sure to call setup_coding_system when we find a proper coding system.
9700 (detect_coding_system): Fix handling of coding->head_ascii.
9701
97022008-06-03 Andreas Schwab <schwab@suse.de>
9703
9704 * font.c (font_prop_validate_spacing): Fix last change.
9705
97062008-06-03 Kenichi Handa <handa@m17n.org>
9707
9708 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9709 (font_parse_fcname): Fix handling of unknown key.
9710
9711 * xfont.c (xfont_list): Try an alias.
9712
9713 * charset.c (char_charset): Return NULL if the arg charset_list is
9714 specified and C doesn't belong to any of them.
9715
97162008-06-02 Chip Coldwell <coldwell@redhat.com>
9717
9718 * font.c (font_pixel_size): Don't take cdr of an integer.
9719
97202008-06-02 Jim Meyering <meyering@redhat.com>
9721
9722 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9723 * alloc.c (xfree): Return right away for a NULL arg.
9724 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9725 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9726 * mac.c (create_apple_event_from_event_ref): Likewise.
9727 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9728 Likewise.
9729 * doprnt.c (doprnt1): Likewise.
9730 * frame.c (frame): Likewise.
9731 * keyboard.c (wipe_kboard): Likewise.
9732 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9733 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9734 * term.c (tty_default_color_capabilities, maybe_fatal)
9735 (delete_tty): Likewise.
9736 * w16select.c (string): Likewise.
9737 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9738 * w32bdf.c (w32_free_bdf_font): Likewise.
9739 * w32fns.c (w32_unload_font): Likewise.
9740 * w32font.c (w32font_close): Likewise.
9741 * window.c (size_window): Likewise.
9742 * xselect.c (receive_incremental_selection): Likewise.
9743 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9744 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9745 * w32.c (stat): Likewise.
9746
9747 Remove useless if-before-free tests.
9748 * editfns.c (Fset_time_zone_rule): Likewise.
9749 * lread.c (nosuffix): Likewise.
9750 * ralloc.c (get_bloc): Likewise.
9751 * regex.c (reg_free): Likewise.
9752 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9753 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9754 * xsmfns.c (smc_save_yourself_CB): Likewise.
9755
97562008-06-02 Kenichi Handa <handa@m17n.org>
9757
9758 * font.c (font_find_for_lface): Handle float font size.
9759 (font_open_for_lface): Likewise.
9760
9761 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9762 comparing the properties.
9763
97642008-06-01 Jason Rumney <jasonr@gnu.org>
9765
9766 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9767 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9768 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9769 Don't add empty script list.
9770 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9771
97722008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9773
9774 * Makefile.in (dot, dotdot): Remove, update users.
9775 ".." has been used elsewhere in the file for a long time.
9776 (LIBXT_STATIC): Remove conditional based on unused variable.
9777
97782008-06-01 Miles Bader <miles@gnu.org>
9779
9780 * xfaces.c (Vface_remapping_alist): New variable.
9781 (syms_of_xfaces): Initialize it.
9782 (enum named_merge_point_kind): New type.
9783 (struct named_merge_point): Add `named_merge_point_kind' field.
9784 (push_named_merge_point): Make cycle detection respect different
9785 named-merge-point kinds.
9786 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9787 Remove face-name alias resolution.
9788 (lface_from_face_name): New definition using
9789 `lface_from_face_name_no_resolve'.
9790 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9791 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9792 (get_lface_attributes): New definition that layers face-remapping on
9793 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9794 (lookup_basic_face): New function.
9795 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9796 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9797 `get_lface_attributes'.
9798 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9799 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9800 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9801
9802 * xdisp.c (init_iterator): Pass base_face_id through
9803 `lookup_basic_face' when we actually use it as a face-id.
9804 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9805 DEFAULT_FACE_ID.
9806
9807 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9808 lookup the initial face-id.
9809
9810 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9811
98122008-06-01 Juanma Barranquero <lekktu@gmail.com>
9813
9814 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9815 (Fremove_text_properties): Fix typos in docstrings.
9816
98172008-05-31 Kenichi Handa <handa@m17n.org>
9818
9819 * font.c (font_list_entities): Fix the car part of data to be
9820 stored in the cache.
9821
9822 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9823
98242008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9825
9826 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9827 Add a `test' argument so another predicate than `equal' can be used.
9828 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9829 (map_char_table): Remove unused vars `c' and `i'.
9830 * lisp.h (Foptimize_char_table): Adjust declaration.
9831 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9832
98332008-05-30 Kenichi Handa <handa@m17n.org>
9834
9835 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9836 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9837 defined.
9838
98392008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9840
9841 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9842 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9843 frame-local settings for the same variable.
9844
98452008-05-30 Kenichi Handa <handa@m17n.org>
9846
9847 * fontset.c (Ffont_info): Move to font.c.
9848 (syms_of_fontset): Delete defsubr of Sfont_info.
9849
9850 * font.c (font_style_to_value, font_score): Delete casting of the
9851 args to xstcasecmp.
9852 (register_font_driver): Increment num_font_drivers only when
9853 registering the driver globally.
9854 (Ffont_info): Move from fontset.c. Handle a font object too.
9855 (syms_of_font): Defsubr Sfont_info.
9856
98572008-05-29 Kenichi Handa <handa@m17n.org>
9858
9859 * coding.h (enum define_coding_utf8_arg_index): New enum.
9860 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9861 coding_attr_utf_bom.
9862 (enum utf_bom_type): Rename from utf_16_bom_type.
9863 (struct utf_16_spec): Adjust for the above change.
9864 (struct coding_system): Add utf_8_bom in `spec' union.
9865
9866 * coding.c (CODING_UTF_8_BOM): New macro.
9867 (enum coding_category): Delete coding_category_utf_8, add
9868 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9869 coding_category_utf_8_sig.
9870 (CATEGORY_MASK_UTF_8): Delete it.
9871 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9872 (CATEGORY_MASK_UTF_8_SIG): New macros.
9873 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9874 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9875 CATEGORY_MASK_UTF_8_SIG.
9876 (CATEGORY_MASK_UTF_8): New macro.
9877 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9878 (detect_coding_utf_8): Check BOM.
9879 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9880 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9881 (encode_coding_utf_16): Likewise.
9882 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9883 (detect_coding, detect_coding_system): Handle utf-8-auto.
9884 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9885 (syms_of_coding): Fix setting up of Vcoding_category_table.
9886
98872008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9888
9889 * process.c (Faccept_process_output): If `millisec' is non-nil,
9890 `seconds' default to 0.
9891 (wait_reading_process_output): Also return non-nil if we read output
9892 from a non-running process.
9893
98942008-05-29 Jason Rumney <jasonr@gnu.org>
9895
9896 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9897 `raster' specified.
9898 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9899 in the uniscribe backend, but disallow any font that has no
9900 unicode subrange support.
9901
99022008-05-29 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9905 Fix typos in docstrings.
9906
99072008-05-29 Kenichi Handa <handa@m17n.org>
9908
9909 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9910 (Fx_family_fonts): Set frame correctly.
9911
99122008-05-28 Jason Rumney <jasonr@gnu.org>
9913
9914 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9915
99162008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9917
9918 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9919 calling build_annotations.
9920
99212008-05-28 Juanma Barranquero <lekktu@gmail.com>
9922
9923 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9924 (Fencode_coding_string):
9925 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9926 <latin-extra-code-table>: Fix typos in docstrings.
9927 (syms_of_coding) <coding-system-alist>: Doc fix.
9928 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9929
99302008-05-28 Kenichi Handa <handa@m17n.org>
9931
9932 * fontset.c (Ffont_info): Don't call font_close_object.
9933
9934 * font.c (font_parse_family_registry): Use Ffont_put to validate
9935 foundry and family.
9936 (font_delete_unmatched): Don't check spacing.
9937 (font_list_entities): Add spacing to the spec to list fonts.
9938
9939 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9940 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9941
9942 * coding.c (encode_coding_raw_text): Fix previous change.
9943 (encode_coding_object): When the dst_object is a buffer and is
9944 different from src_object, move gap to PT.
9945
99462008-05-27 Chong Yidong <cyd@stupidchicken.com>
9947
9948 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9949
99502008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9953 all branches. Compute it differently.
9954
9955 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9956
99572008-05-27 Juanma Barranquero <lekktu@gmail.com>
9958
9959 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9960 into "else if () ... else ...".
9961
99622008-05-27 Jason Rumney <jasonr@gnu.org>
9963
9964 * w32font.c (w32font_open_internal): Determine if glyph indices
9965 are likely to work here.
9966
99672008-05-27 Chong Yidong <cyd@stupidchicken.com>
9968
9969 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9970 draw overlap glyphs with appropriate highlighting.
9971
99722008-05-27 Kenichi Handa <handa@m17n.org>
9973
9974 * xfont.c (xfont_open): Fix calculation of font->average_width.
9975
99762008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9977
9978 * casefiddle.c (casify_object): Try to guess better whether the
9979 argument is a byte or a char.
9980
99812008-05-26 Andreas Schwab <schwab@suse.de>
9982
9983 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9984 Always send multiples of format size.
9985
9986 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9987
99882008-05-26 Jason Rumney <jasonr@gnu.org>
9989
9990 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9991 (compute_metrics): Don't set failure if we just cleared the cache.
9992 (w32_weight_table): Remove unused variable.
9993 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9994 backwards compatibility.
9995
99962008-05-25 Kenichi Handa <handa@m17n.org>
9997
9998 * w32term.c (x_draw_glyph_string):
9999 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10000
10001 * xfaces.c: Delete unused function prototypes.
10002 (xstrlwr, font_frame): Delete them.
10003 (clear_face_cache): Delete unused variable.
10004
10005 * xftfont.c (xftfont_open): Delete unused variable.
10006 If underline_thickness is not 1, adjust underline_position.
10007
10008 * ftxfont.c (ftxfont_open): Delete unused variable.
10009
10010 * fontset.c (face_for_char): Optimize for the case of no charset
10011 property.
10012
10013 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10014 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10015 (otf_open, font_otf_capability, generate_otf_features)
10016 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10017 Comment out by surrounding "#if 0" and "#endif" for the moment.
10018 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10019 (syms_of_font): Codes for accessing above commented out.
10020
100212008-05-24 Eli Zaretskii <eliz@gnu.org>
10022
10023 * w32proc.c: Include dispextern.h.
10024
10025 * w32.c: Include dispextern.h.
10026
100272008-05-23 Juanma Barranquero <lekktu@gmail.com>
10028
10029 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10030 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10031 Fix typos in docstrings.
10032
100332008-05-23 Jason Rumney <jasonr@gnu.org>
10034
10035 * xsmfns.c: Remove includes that are already included by config.h.
10036
100372008-05-23 Kenichi Handa <handa@m17n.org>
10038
10039 * charset.c (Qemacs, charset_emacs): New variables.
10040 (char_charset): Fix for non-Unicode characters.
10041 (syms_of_charset): Define charset_emacs.
10042
10043 * w32term.c (x_draw_glyph_string): Be sure to update
10044 s->underline_thickness and s->underline_position. Be sure to draw
10045 underline within the current line area.
10046
10047 * xterm.c (x_draw_glyph_string): Be sure to update
10048 s->underline_thickness and s->underline_position. Be sure to draw
10049 underline within the current line area.
10050
10051 * fontset.c: Delete unused variables and add casting for char *
10052 throughout the file.
10053 (fontset_font): Try the fallback fonts of the current fontset
10054 before consulting the default fontset.
10055
10056 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10057
10058 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10059
100602008-05-22 Jason Rumney <jasonr@gnu.org>
10061
10062 * font.c: Don't include strings.h.
10063
10064 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10065
10066 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10067 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10068 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10069 to call xstrcasecmp.
10070
10071 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10072
10073 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10074
10075 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10076
10077 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10078
100792008-05-22 Kenichi Handa <handa@m17n.org>
10080
10081 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10082
10083 * font.c (font_prop_validate_style): Adjust for the format
10084 change of font_style_table.
10085
10086 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10087 two args.
10088
10089 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10090 two args.
10091
100922008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10093
10094 * minibuf.c (keys_of_minibuf): Delete.
10095 * lisp.h (keys_of_minibuf): Delete.
10096 * emacs.c (main): Don't call keys_of_minibuf.
10097
100982008-05-22 Kenichi Handa <handa@m17n.org>
10099
10100 * ftfont.c (ftfont_resolve_generic_family): Rename from
10101 ftfont_list_generic_family. Return a single family for each
10102 generic family.
10103 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10104 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10105 Call font_add_log.
10106 (ftfont_match): Call font_add_log.
10107
10108 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10109 (FONT_DEBUG): Define it.
10110 (font_add_log): Extern it.
10111 (font_assert): Rename from xassert.
10112
10113 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10114 (xfont_list_family): Call font_add_log.
10115 (xfont_match): Likewise.
10116 (memq_no_quit): Delete.
10117
10118 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10119 call of Ffont_xlfd_name.
10120
10121 * xfaces.c (struct table_entry, slant_table, weight_table)
10122 (swidth_table): Move to font.c.
10123
10124 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10125 xassert are changed to font_assert. Delete many unused variables.
10126 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10127 New variables.
10128 (struct table_entry): Move from xfaces.c and modified.
10129 (weight_table, slant_table, width_table): Move from xfaces.c and
10130 contents adjusted for the change of struct table_entry.
10131 (font_style_to_value, font_style_symbolic): Adjust for the
10132 format change of font_style_table.
10133 (font_parse_family_registry): Don't overwrite existing foundry and
10134 family of font_spec.
10135 (font_score): Fix calculation of diff for sizes.
10136 (font_sort_entites): Call font_add_log.
10137 (font_delete_unmatched): Return a newly created list.
10138 (font_list_entities): Fix previous change. Call font_add_log.
10139 (font_matching_entity, font_open_entity, font_close_entity):
10140 Call font_add_log.
10141 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10142 (Finternal_set_font_style_table): Delete.
10143 (BUILD_STYLE_TABLE): New macro.
10144 (build_style_table): New function.
10145 (Vfont_log, font_log_env_checked): New variables.
10146 (font_add_log): New function.
10147 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10148 Declare Lisp variables "font-weight-table", "font-slant-table",
10149 "font-width-table", and "font-log". Initialize font_style_table.
10150
101512008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10152
10153 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10154
101552008-05-21 Seiji Zenitani <zenitani@mac.com>
10156 Ryo Yoshitake <ryo@shiftmode.net>
10157
10158 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10159 (Vframe_alpha_lower_limit): New variable.
10160 (x_set_alpha): New function.
10161
10162 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10163
10164 * xfns.c (x-create-frame, Qalpha):
10165 Initialize the frame parameter `alpha'.
10166 * xterm.c (OPAQUE, OPACITY): New.
10167 (x_set_frame_alpha): New function.
10168 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10169
10170 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10171 * w32fns.c (w32_frame_parm_handlers): Likewise.
10172
101732008-05-20 Jason Rumney <jasonr@gnu.org>
10174
10175 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10176 truetype fonts to opentype list.
10177
101782008-05-20 Juanma Barranquero <lekktu@gmail.com>
10179
10180 * fontset.c (Ffontset_info): Doc fix.
10181 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10182 <ignore-relative-composition>: Fix typos in docstrings.
10183
10184 * font.c (syms-of-font) <font-encoding-alist>:
10185 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10186 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10187 (Ffont_otf_alternates): Doc fixes.
10188
101892008-05-20 Kenichi Handa <handa@m17n.org>
10190
10191 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10192 font.h through out the file.
10193 (FONT_DRIVERS): Rename from FONTOBJ.
10194 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10195 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10196
10197 * emacs.c (main): Call syms_of_font unconditionally.
10198
10199 * font.h (find_font_encoding): Extern it.
10200
10201 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10202 fontset.c.
10203 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10204 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10205 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10206 only when HAVE_WINDOW_SYSTEM is defined.
10207 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10208 when HAVE_WINDOW_SYSTEM is defined.
10209
10210 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10211 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10212
10213 * xfaces.c: Include font.h unconditionally.
10214 (merge_face_ref, merge_face_vectors)
10215 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10216
102172008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10218
10219 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10220 indirect_variable.
10221 * eval.c (lisp_indirect_variable): New fun.
10222 (Fuser_variable_p): Use it.
10223
102242008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10225
10226 * lisp.h (indirect_variable):
10227 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10228 Use Lisp_Symbol pointers rather than Lisp_Object.
10229 Adjust callers.
10230 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10231 To this end, change calling-convention.
10232
10233 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10234 if some non-hidden buffers are selected by string&pred.
10235
102362008-05-19 Chong Yidong <cyd@stupidchicken.com>
10237
10238 * process.c (wait_reading_process_output): Always check status
10239 when in batch mode.
10240
102412008-05-19 Kenichi Handa <handa@m17n.org>
10242
10243 * font.c (font_list_entities): Fix handling of cache.
10244 (font_matching_entity): Likewise.
10245
10246 * ftfont.c (cs_iso8859_1): Delete.
10247 (ft_face_cache): New variable.
10248 (struct ftfont_info): New member fc_charset_idx.
10249 (ftfont_build_basic_charsets): Delete.
10250 (fc_charset_table): New variable.
10251 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10252 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10253 Callers changed.
10254 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10255 (ftfont_spec_pattern): New argument fc_charset_idx.
10256 Check registry more rigidly. Change callers.
10257 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10258 change of :font-entity property of the font.
10259
10260 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10261 property of the font.
10262
102632008-05-18 Juanma Barranquero <lekktu@gmail.com>
10264
10265 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10266 (Funencodable_char_position, Fcheck_coding_systems_region)
10267 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10268 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10269 (Ffind_operation_coding_system, Fset_coding_system_priority)
10270 (Fcoding_system_eol_type): Doc fixes.
10271
102722008-05-17 Glenn Morris <rgm@gnu.org>
10273
10274 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10275
102762008-05-16 Eli Zaretskii <eliz@gnu.org>
10277
10278 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10279 and st_gid.
10280
10281 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10282 HAVE_WINDOW_SYSTEM is not defined.
10283
10284 * xfaces.c (merge_face_ref, merge_face_vectors)
10285 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10286 HAVE_WINDOW_SYSTEM is defined.
10287 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10288
102892008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10290
10291 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10292
102932008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10294
10295 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10296
102972008-05-15 Kenichi Handa <handa@m17n.org>
10298
10299 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10300 preference.
10301
103022008-05-15 Glenn Morris <rgm@gnu.org>
10303
10304 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10305
103062008-05-15 Chong Yidong <cyd@stupidchicken.com>
10307
10308 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10309 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10310
10311 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10312
103132008-05-15 Kenichi Handa <handa@m17n.org>
10314
10315 * ftfont.c (ftfont_list): Downcase family name to check generic
10316 families.
10317
10318 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10319 font-spec for QCfont value.
10320
10321 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10322 buffer. Check the return value of it.
10323
103242008-05-14 Jason Rumney <jasonr@gnu.org>
10325
10326 * w32term.c (w32_get_glyph_overhangs): Remove.
10327 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10328
103292008-05-14 Kenichi Handa <handa@m17n.org>
10330
10331 * font.c (font_prop_validate): Make nil a valid value.
10332 (font_clear_cache): Check if the cached vector of entities is nil
10333 or not.
10334
103352008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10336
10337 * emacs.c (main_thread): Conditionalize on
10338 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10339 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10340
10341 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10342 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10343 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10344
103452008-05-14 Kenichi Handa <handa@m17n.org>
10346
10347 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10348 has no corresponding coding system.
10349
103502008-05-14 Jason Rumney <jasonr@gnu.org>
10351
10352 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10353
10354 * w32font.h (w32font_open_internal): Update declaration.
10355
10356 * w32font.c (w32font_open_internal): Change last argument from
10357 w32font_info struct to font object. Fill in font object from
10358 font_entity. Get Outline metrics if possible. Use them to
10359 calculate underline position and thickness. Use xlfd name as name
10360 property. Don't set codepage.
10361 (w32font_open): Pass font_object to w32font_open_internal. Don't
10362 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10363 (w32font_draw): Use s->font.
10364 (clear_cached_metrics): Don't clear non-existent blocks.
10365
10366 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10367 font was not found.
10368 (x_draw_glyph_string): Use underline position and thickness from font.
10369
10370 * w32uniscribe.c (uniscribe_open): Pass font_object to
10371 w32font_open_internal.
10372
103732008-05-14 Kenichi Handa <handa@m17n.org>
10374
10375 These changes are to delete all legacy font-handling codes, and
10376 make Emacs use only font-backends.
10377
10378 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10379 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10380
10381 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10382
10383 * charset.h (Vcharset_non_preferred_head)
10384 (Vcurrent_iso639_language): Extern them.
10385
10386 * charset.c (Vcharset_non_preferred_head): New variable.
10387 (Vcurrent_iso639_language): New variable.
10388 (syms_of_charset): Declare it as a Lisp variable.
10389 (char_charset): Don't check non preferred charsets. As a last
10390 resort, return charset_unicode.
10391 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10392
10393 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10394 conditionals. Don't check enable_font_backend. Delete all codes
10395 used only when USE_FONT_BACKEND is not defined.
10396
10397 * dispextern.h (struct glyph_string): Change type of `font' to
10398 `struct font *'.
10399 (struct glyph_string): New member underline_position and
10400 underline_thickness.
10401 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10402 (struct face): Change type of `font' to `struct font *'. Remove
10403 members `font_name', `font_info_id'.
10404 (per_char_metric, encode_char): Delete externs.
10405 (calc_pixel_width_or_height): Adjust the prototype.
10406
10407 * emacs.c (enable_font_backend): Delete extern.
10408 (main): Don't set enable_font_backend. Don't check the command
10409 line argument "-disable-font-backend".
10410
10411 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10412 (enum font_property_index): New members FONT_DPI_INDEX,
10413 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10414 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10415 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10416 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10417 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10418 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10419 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10420 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10421 (struct font_spec, struct font_entity): New structs.
10422 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10423 (struct font): Many members from old "struct font_info" moved to
10424 here. Members font and entity deleted.
10425 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10426 the new font-related objects.
10427 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10428 (CHECK_FONT_GET_OBJECT): Likewise.
10429 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10430 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10431 (struct font_driver): New members case_sensitive anc check. Type
10432 of the member list and open changed.
10433 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10434 (font_symbolic_width, font_find_object, font_get_spec)
10435 (font_set_lface_from_name): Delete extern.
10436 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10437
10438 * font.c: Include <strings.h>.
10439 (enable_font_backend): Delete it.
10440 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10441 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10442 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10443 (null_string): Delete it.
10444 (null_vector): Make it static.
10445 (font_family_alist): Delete it.
10446 (Qnormal): Extern it.
10447 (QCextra, QClanguage): Delete it.
10448 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10449 (font_make_spec, font_make_entity, font_make_object)
10450 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10451 the string. Callers changed.
10452 (font_pixel_size): Adjusted for the format change of font-related
10453 objects.
10454 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10455 (font_style_to_value, font_style_symbolic): New function.
10456 (build_font_family_alist): Delete it.
10457 (font_registry_charsets): Use Fassoc_string instead of
10458 assq_no_quit.
10459 (font_prop_validate_symbol): Don't return null_string.
10460 (font_prop_validate_style): Adjusted for the change of
10461 style-related values in a font vector.
10462 (font_property_table): Delete entries for QClanguage and
10463 QCantialias, add entries for QCavgwidth.
10464 (get_font_prop_index): Delete the 2nd argument FROM.
10465 (font_prop_validate): Arguments changed.
10466 (font_put_extra): Adjusted for the change of font-related objects.
10467 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10468 (font_parse_fcname, font_unparse_fcname)
10469 (font_prepare_composition): Likewise.
10470 (font_parse_family_registry): Renamed from font_merge_old_spec.
10471 (otf_open): Delete the 1st arg entity.
10472 (font_otf_capability): Adjusted for the above change.
10473 (font_score): New arg alternate_families. Adjusted for the change
10474 of font-related objects.
10475 (font_sort_entites): New arg best_only.
10476 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10477 Delete them.
10478 (font_match_p): Check alternate families.
10479 (font_find_object): Delete it.
10480 (font_check_object): New function.
10481 (font_clear_cache): Adjusted for the change of font-related objects.
10482 (font_delete_unmatched): New arg.
10483 (font_list_entities): Call font_driver->list with a spec that
10484 doesn't specify style-related properties.
10485 (font_matching_entity): Arguments changed. Caller changed.
10486 (font_open_entity): Adjusted for the change of font-related objects.
10487 (font_close_object, font_has_char, font_encode_char)
10488 (font_get_name, font_get_spec): Likewise.
10489 (font_spec_from_name, font_clear_prop, font_update_lface):
10490 New functions.
10491 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10492 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10493 (font_at): Adjusted for the change of font-related objects.
10494 (font_range): New function.
10495 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10496 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10497 (Fcopy_font_spec, Fmerge_font_spec): New function.
10498 (Ffont_family_list): Renamed from list-families.
10499 (Finternal_set_font_style_table): Arguments changed.
10500 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10501 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10502 change of font-related objects.
10503 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10504
10505 * fontset.h (struct font_info): Delete it. Most members go to
10506 struct font.
10507 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10508 (enum FONT_SPEC_INDEX): Delete it.
10509 (font_info, list_fonts_func, load_font_func, query_font_func)
10510 (set_frame_fontset_func, find_ccl_program_func)
10511 (get_font_repertory_func, new_fontset_from_font_name): Delete
10512 externs.
10513 (fontset_from_font_name): Extern it.
10514 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10515 (FONT_INFO_FROM_FACE): Deleted.
10516 (face_for_font): Adjust prototype.
10517
10518 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10519 conditionals. Don't check enable_font_backend. Delete all codes
10520 used only when USE_FONT_BACKEND is not defined.
10521 (get_font_info_func, list_font_func, load_font_func)
10522 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10523 (get_font_repertory_func): Delete them.
10524 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10525 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10526 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10527 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10528 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10529 (fontset_compare_rfontdef): New function.
10530 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10531 rfont-defs by qsort. Adjusted for the change of font-group vector.
10532 (load_font_get_repertory): Deleted.
10533 (fontset_find_font): Use new macros to ref/set elements of
10534 font-def and rfont-def.
10535 (fontset_font): Fix the timing of remembering that no font for C.
10536 (free_face_fontset): Do nothing if the face has no fontset.
10537 (face_suitable_for_char_p): Use new macros to ref/set elements of
10538 rfont-def.
10539 (face_for_char): Likewise. Call face_for_char with font_object.
10540 (fs_load_font): Delete. Delete #pragma surrounding it.
10541 (fs_query_fontset): Use strcasecmp instead of strcmp.
10542 (generate_ascii_font_name): Adjusted for the format change of
10543 font-spec.
10544 (Fset_fontset_font): Likewise. Use new macros to set elements of
10545 font-def.
10546 (Fnew_fontset): Use font_unparse_xlfd to generate
10547 FONTSET_ASCII (fontset).
10548 (new_fontset_from_font_name): Deleted.
10549 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10550 a fontset is already created for the font. FIx updating of
10551 Vfontset_alias_alist.
10552 (fontset_ascii_font): Deleted.
10553 (Ffont_info): Adjusted for the format change of font-spec.
10554 (Finternal_char_font): Likewise.
10555 (Ffontset_info): Likewise.
10556 (syms_of_fontset): Don't check load_font_func.
10557
10558 * fns.c (internal_equal): Handle PREV_FONT.
10559
10560 * frame.h: Delete USE_FONT_BACKEND conditional.
10561
10562 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10563 conditionals. Don't check enable_font_backend. Delete all codes
10564 used only when USE_FONT_BACKEND is not defined.
10565 (x_set_font): Call x_new_font, not x_new_fontset2.
10566 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10567 already set for the frame.
10568
10569 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10570 a font-entity by font_make_entity. Use font_intern_prop instead
10571 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10572 font property. If a font is scalable, set avgwidth property to 0.
10573 Set font-entity property by font_put_extra.
10574 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10575 (ffont_driver): Adjusted for the change of struct font_driver.
10576 (ftfont_spec_pattern): New function.
10577 (ftfont_list): Return a list, not vector.
10578 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10579 (ftfont_list_family): Don't downcase names.
10580 (ftfont_free_entity): Deleted.
10581 (ftfont_open): Return a font-object. Adjusted for the change of
10582 struct font. Get underline_thickness and underline_position from
10583 font property. Don't update dpyinfo->smallest_font_height and
10584 dpyinfo->smallest_char_width.
10585 (ftfont_close): Don't free `struct font'.
10586 (ftfont_has_char): Adjusted for the format change of font-entity.
10587 (ftfont_encode_char, ftfont_text_extents): Likewise.
10588
10589 * ftxfont.c (ftxfont_list): Return a list, not vector.
10590 (ftxfont_open): Return a font-object. Adjusted for the change of
10591 struct font. Get underline_thickness and underline_position from
10592 font property. Don't update dpyinfo->smallest_font_height and
10593 dpyinfo->smallest_char_width.
10594 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10595 (ftxfont_draw): Adjusted for the change of struct font.
10596
10597 * image.c (image_ascent): Don't include "charset.h". Include
10598 "character.h" and "font.h".
10599
10600 * lisp.h (enum pvec_type): New member PREV_FONT.
10601 (Fassoc_string): EXFUN it.
10602
10603 * print.c: Include font.h.
10604 (print_object): Handle font-related objects.
10605
10606 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10607 conditionals. Don't check enable_font_backend. Delete all codes
10608 used only when USE_FONT_BACKEND is not defined.
10609 (handle_auto_composed_prop): Do nothing if it->f is not on a
10610 window system. Check how many following characters can be
10611 displayed by the same font.
10612 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10613 'struct font *'.
10614 (get_char_face_and_encoding): Assign the whole encoding task to
10615 the `encode-char' method of a font driver.
10616 (fill_composite_glyph_string): Adjusted for the change of `struct
10617 face' and `struct glyph_string'.
10618 (fill_glyph_string): Likewise.
10619 (get_per_char_metric): Arguments changed.
10620 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10621 and `struct glyph_string'.
10622 (produce_stretch_glyph, calc_line_height_property)
10623 (x_produce_glyphs): Likewise.
10624
10625 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10626 conditionals. Don't check enable_font_backend. Delete all codes
10627 used only when USE_FONT_BACKEND is not defined. Use
10628 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10629 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10630 (Qp): Extern them.
10631 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10632 Deleted.
10633 (struct font_name): Deleted.
10634 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10635 (compare_fonts_by_sort_order): New function.
10636 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10637 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10638 Deleted.
10639 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10640 compare_fonts_by_sort_order.
10641 (Fx_font_family_list): Call Ffont_family_list.
10642 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10643 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10644 (face_symbolic_slant, face_symbolic_swidth)
10645 (split_font_name_into_vector, build_font_name_from_vector)
10646 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10647 (font_rescale_ratio, split_font_name, build_font_name)
10648 (free_font_names, sort_fonts, x_face_list_fonts)
10649 (face_font_available_p, sorted_font_list, cmp_font_names)
10650 (font_list_1, concat_font_list, font_list, remove_duplicates):
10651 Deleted.
10652 (Fx_list_fonts): Use Ffont_list.
10653 (LFACE_AVGWIDTH): Deleted.
10654 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10655 by FONTP.
10656 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10657 (set_lface_from_font_name): Delete it.
10658 (set_lface_from_font): Renamed from
10659 set_lface_from_font_and_fontset. Caller changed. Don't set
10660 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10661 for face.
10662 (merge_face_vectors): Copy font-spec if necessary.
10663 Clear properties of the font-spec if necessary.
10664 (merge_face_ref): Clear properties of the font-spec if necessary.
10665 (Finternal_set_lisp_face_attribute): Likewise.
10666 (set_font_frame_param): Use font_load_for_lface to load a
10667 font-object, and call Fmodify_frame_parameters with it.
10668 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10669 font name by Ffont_xlfd_name.
10670 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10671 QCslant, and QCwidth.
10672 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10673 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10674 Compare fonts by EQ.
10675 (lookup_non_ascii_face): Deleted.
10676 (face_for_font): The 2nd argument changed.
10677 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10678 Check atomic font properties by case insensitive.
10679 (realize_non_ascii_face): Set face->overstrike correctly.
10680 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10681 (dump_realized_face): Get font name from
10682 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10683
10684 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10685 conditionals. Don't check enable_font_backend. Delete all codes
10686 used only when USE_FONT_BACKEND is not defined.
10687 (xic_create_xfontset): Original code deleted and renamed from
10688 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10689 (x_make_gc): Don't set GCFont in GCs.
10690 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10691 opened by "fixed".
10692 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10693 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10694 get_font_repertory_func.
10695
10696 * xfont.c: Include <stdlib.h> and "ccl.h".
10697 (struct xfont_info): New structure.
10698 (xfont_query_font): Deleted.
10699 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10700 moved from xterm.c.
10701 (xfont_driver): Adjusted for the change of struct font_driver.
10702 (compare_font_names): New function.
10703 (xfont_list_pattern): Sort font names case insensitively. Make
10704 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10705 (xfont_list): Return a list, not vector.
10706 (xfont_match): If the font doesn't have QCname property, generate
10707 a name from the other font properties.
10708 (xfont_open): Return a font-object. Adjusted for the change of
10709 struct font. Get underline_thickness and underline_position from
10710 font property. Don't update dpyinfo->smallest_font_height and
10711 dpyinfo->smallest_char_width.
10712 (xfont_close): Don't free struct font.
10713 (xfont_prepare_face): Adjusted for the change of struct font.
10714 (xfont_done_face): Deleted.
10715 (xfont_has_char): Adjusted for the change of struct font.
10716 (xfont_encode_char, xfont_draw): Likewise.
10717 (xfont_check): New function.
10718
10719 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10720 callback function.
10721 (xftfont_match): Adjusted for the format change of font-entity.
10722 (xftfont_open): Adjusted for the format change of font-entity and
10723 font-object. Adjusted for the change of struct font. Return a
10724 font-object. Don't update dpyinfo->smallest_font_height and
10725 dpyinfo->smallest_char_width.
10726 (xftfont_close): Block input while calling XftFontClose.
10727 (xftfont_prepare_face): Don't block input while calling
10728 xftfont_get_colors. Adjusted for the change of struct font.
10729 (xftfont_shape): Return value of error case fixed.
10730
10731 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10732
10733 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10734 conditionals.
10735 (FONT_WIDTH): Return (f)->max_width.
10736 (struct x_display_info): Delete member `font'.
10737 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10738 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10739 (struct x_output): Change type of `font' to `struct font *'.
10740
10741 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10742 conditionals. Don't check enable_font_backend. Delete all codes
10743 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10744 (x_per_char_metric, x_encode_char): Deleted.
10745 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10746 (x_compute_glyph_string_overhangs): Adjusted for the change of
10747 `struct face'.
10748 (x_draw_glyph_string_foreground)
10749 (x_draw_composite_glyph_string_foreground): Likewise.
10750 (x_draw_glyph_string): Likewise. Use font->underline_position and
10751 font->underline_thickness.
10752 (x_new_font): Renamed from x_new_fontset2.
10753 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10754 (x_check_font): Call `check' method of a font driver.
10755 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10756 (x_query_font, x_get_font_repertory): Deleted.
10757 (x_find_ccl_program): Renamed and moved to xfont.c.
10758 (x_redisplay_interface): Adjusted for the change of `struct
10759 redisplay_interface'.
10760
10761 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10762 conditionals. Don't check enable_font_backend. Delete all codes
10763 used only when USE_FONT_BACKEND is not defined. Surround non-used
10764 code by "#ifdef OLD_FONT" and "endif".
10765 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10766
10767 * w32font.h (struct w32font_info): New member.
10768 (FONT_COMPAT): New macro.
10769 (w32font_open_internal): Prototype adjusted.
10770
10771 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10772 OLD_FONT" and "endif".
10773
10774 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10775 conditionals. Don't check enable_font_backend. Delete all codes
10776 used only when USE_FONT_BACKEND is not defined.
10777 (w32font_open): Return a font-object. Make a font-object by
10778 font_make_object. Adjusted for the change of struct w32font_info.
10779 (w32font_close): Don't free struct font. Adjusted for the change
10780 of struct w32font_info.
10781 (w32font_encode_char, w32font_text_extents, w32font_draw):
10782 Adjusted for the change of struct w32font_info.
10783 (w32font_draw): Likewise.
10784 (w32font_list_internal): Return a list, not vector.
10785 (w32font_open_internal): Change the 4th arg to font-object.
10786 Adjusted for the change of struct w32font_info and font-object format.
10787 (add_font_name_to_list): Don't downcase names.
10788 (w32_enumfont_pattern_entity): Make a font-entity by
10789 font_make_entity. Adjusted for the format change of font-entity.
10790 Use FONT_SET_STYLE to set a style-related font property. If a
10791 font is scalable, set avgwidth property to 0. Set font-entity
10792 property by font_put_extra.
10793 (font_matches_spec): Adjusted for the format change of font-entity.
10794 (w32_weight_table, w32_decode_weight): New variables.
10795 (w32_encode_weight): New function.
10796 (fill_in_logfont): Adjusted for the format change of font-spec.
10797 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10798 weight value.
10799 (w32font_driver): Adjusted for the change of struct font_driver.
10800
10801 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10802 conditionals. Don't check enable_font_backend. Surround non-used
10803 code by "#ifdef OLD_FONT" and "endif".
10804 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10805 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10806
10807 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10808 conditionals. Don't check enable_font_backend. Delete all codes
10809 used only when USE_FONT_BACKEND is not defined. Surround non-used
10810 code by "#ifdef OLD_FONT" and "endif".
10811
10812 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10813 (uniscribe_open): Return value changed to font-object.
10814 Adjusted for the format change of font-object.
10815 (uniscribe_otf_capability): Adjusted for the change of struct font.
10816 (add_opentype_font_name_to_list): Don't downcase names.
10817 (uniscribe_font_driver): Adjusted for the change of struct
10818 font_driver.
10819
108202008-05-13 Chong Yidong <cyd@stupidchicken.com>
10821
10822 * dispnew.c (update_frame_1): Check if tty output is still valid
10823 before flushing it.
10824
108252008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10826
10827 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10828 to Gtk+ menus.
10829
108302008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10831
10832 * dired.c (file_name_completion): Tweak the code so as to always do it
10833 in a single pass. Tighten the scope of some variables.
10834
10835 * dired.c (Qdefault_directory): New var.
10836 (file_name_completion): Use it instead of Fexpand_file_name.
10837 (syms_of_dired): Initialize it.
10838
108392008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * fileio.c (double_dollars): Remove dead code.
10842
108432008-05-10 Eli Zaretskii <eliz@gnu.org>
10844
10845 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10846 Mention w32-get-true-file-attributes in doc string.
10847
10848 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10849
108502008-05-09 Glenn Morris <rgm@gnu.org>
10851
10852 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10853 2008-04-23.
10854
108552008-05-09 Eli Zaretskii <eliz@gnu.org>
10856
10857 Support for reporting owner and group of each file on MS-Windows:
10858 * dired.c (stat_uname, stat_gname): New functions, with special
10859 implementation for w32.
10860 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10861
10862 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10863 (dflt_group_name): New static variable.
10864 (dflt_group): Rename from the_group.
10865 (init_user_info): Init dflt_group fields. Get user's group name
10866 from LookupAccountSid.
10867 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10868 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10869 New initialization states.
10870 (globals_of_w32): Initialize them to zero. Initialize the default
10871 group name to "None".
10872 (GetFileSecurity_Name): New global var, the name of the function
10873 to call for GetFileSecurity.
10874 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10875 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10876 (get_file_security, get_security_descriptor_owner)
10877 (get_security_descriptor_group, is_valid_sid)
10878 (get_file_security_desc, get_rid, get_name_and_id)
10879 (get_file_owner_and_group): New functions.
10880 (stat): Use get_file_security_desc and get_file_owner_and_group to
10881 report the owner and primary group of each file. Don't ignore the
10882 high 32 bits of file's size, now that st_size is 64-bit wide.
10883 Fix test when to get true file attributes.
10884 (init_user_info): Use get_rid instead of equivalent inline code.
10885 (fstat): Don't ignore the high 32 bits of file's size.
10886
108872008-05-09 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * image.c (png_load): Use correct bit-depth for setting background
10890 color.
10891
108922008-05-08 Eli Zaretskii <eliz@gnu.org>
10893
10894 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10895 epa-hook.elc.
10896
108972008-05-08 Juanma Barranquero <lekktu@gmail.com>
10898
10899 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10900
109012008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10902
10903 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10904 because the original parameters are in pure storage now.
10905 (mac_window): Remove unused params. Update callers.
10906
109072008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10908
10909 * lread.c (substitute_object_recurse): Use lower-level primitives.
10910 Don't signal errors when traversing sub-char-tables.
10911 Don't loop over all the possible characters when traversing char-tables.
10912
10913 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10914 just like we do in print.c.
10915
109162008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10917
10918 * minibuf.c (Ftry_completion): Remove code left over from when we used
10919 scmp instead of Fcompare_strings.
10920
109212008-05-04 Juanma Barranquero <lekktu@gmail.com>
10922
10923 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10924
109252008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10926
10927 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10928 Create bitmap context in native byte order.
10929
10930 * macterm.c (XDrawLine)
10931 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10932 context in native byte order.
10933
109342008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10935
10936 * config.in: Regenerate.
10937
10938 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10939 New definitions for Image I/O support.
10940 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10941 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10942 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10943 (mac_data_provider_release_data, image_load_image_io)
10944 [USE_MAC_IMAGE_IO]: New functions.
10945 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10946 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10947 (init_image_func_pointer) [MAC_OSX]: Remove function.
10948 (image_load_quartz2d) [MAC_OSX]: Check availability of
10949 CGImageCreateWithPNGDataProvider at compile time.
10950 Use lowercase `false' for boolean constant.
10951 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10952 Use image_load_image_io.
10953 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10954 Don't check MyCGImageCreateWithPNGDataProvider.
10955 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10956 Don't call init_image_func_pointer.
10957
10958 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10959
10960 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10961 Make variable non-static.
10962 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10963 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10964
10965 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10966 (RED_FROM_ULONG): Mask off higher bits.
10967 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10968
10969 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10970 Include AvailabilityMacros.h.
10971 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10972 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10973
109742008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10975
10976 * chartab.c (Fset_char_table_range): If range is t, really set all
10977 chars to that value.
10978
109792008-05-03 Eli Zaretskii <eliz@gnu.org>
10980
10981 * dired.c (Ffile_attributes): Don't allow the device number become
10982 negative.
10983
109842008-05-02 Daiki Ueno <ueno@unixuser.org>
10985
10986 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10987
109882008-05-02 Juri Linkov <juri@jurta.org>
10989
10990 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10991 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10992 DEFAULT argument as a list of default values in docstrings.
10993
109942008-05-01 Chong Yidong <cyd@stupidchicken.com>
10995
10996 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10997
109982008-05-01 Martin Rudalics <rudalics@gmx.at>
10999
11000 * dispnew.c (change_frame_size_1): Preserve small windows when
11001 shrinking frames by calling set_window_height|width with third
11002 arg 2.
11003
11004 * window.h (struct window): Replace field too_small_ok by field
11005 resize_proportionally.
11006
11007 * window.c (make_window): Initialize resize_proportionally.
11008 (enlarge_window): Temporarily set resize_proportionally to make
11009 sure that shrink_windows does scale the window proportionally.
11010 (shrink_windows): When window has resize_proportionally set try
11011 to shrink it proportionally by stealing from other windows.
11012 (struct saved_window, Fset_window_configuration)
11013 (compare_window_configurations): Handle resize_proportionally.
11014 (WINDOW_TOTAL_SIZE): New macro.
11015 (window_min_size, shrink_windows, size_window): Use it.
11016 (check_min_window_sizes): Remove. Invalid values of
11017 window-min-height|width are handled by window_min_size_2 now.
11018 (size_window, Fsplit_window, enlarge_window)
11019 (adjust_window_trailing_edge, grow_mini_window): Don't call
11020 check_min_window_sizes.
11021 (window_min_size_2, window_min_size_1, window_min_size):
11022 New argument safe_p for retrieving "safe" minimum sizes.
11023 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11024 (adjust_window_trailing_edge, grow_mini_window):
11025 Adjust arguments of window_min_size... functions.
11026 (shrink_windows): Argument min_size removed. New argument
11027 safe_p allows shrinking windows to their safe minimum sizes.
11028 Calculate minimum size and decide whether a window shall be
11029 deleted for each window individually.
11030 (size_window): When nodelete_p equals 2, tell shrink_windows to
11031 delete windows only if their new minimum size is no more safe.
11032 (shrink_window_lowest_first): Call window_min_size_1 to make
11033 sure to preserve modeline of bottom-most window when resizing
11034 the minibuffer.
11035 (Fset_window_configuration, Fcurrent_window_configuration)
11036 (compare_window_configurations): Do not handle
11037 window-min-height|width any more.
11038 (syms_of_window): Clarify window-min-height|width doc-strings.
11039
110402008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11041
11042 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11043 some more. Copy some of the code from Ftry_completions.
11044 Remove special case code that dates back to initial revision when the
11045 slash was only added when necessary and that can't trigger nowadays.
11046
110472008-04-27 Kenichi Handa <handa@m17n.org>
11048
11049 * font.c (font_prop_validate): Signal `error' instead of `font'.
11050
110512008-04-29 Jason Rumney <jasonr@gnu.org>
11052
11053 * w32fns.c (Fw32_battery_status): New defun.
11054 (syms_of_w32fns): Defsubr it.
11055
110562008-04-28 Andreas Schwab <schwab@suse.de>
11057
11058 * dired.c (file_name_completion): Fix another mixing of encoded
11059 and decoded names.
11060
110612008-04-28 Juanma Barranquero <lekktu@gmail.com>
11062
11063 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11064
110652008-04-27 Juanma Barranquero <lekktu@gmail.com>
11066
11067 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11068
110692008-04-27 Andreas Schwab <schwab@suse.de>
11070
11071 * dired.c (file_name_completion): Fix inappropriate mixing of
11072 encoded and decoded names.
11073
11074 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11075
11076 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11077
110782008-04-26 Eli Zaretskii <eliz@gnu.org>
11079
11080 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11081 2008-03-31, it's not needed anymore with `struct stat' definition
11082 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11083 for the same reasons.
11084
110852008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11086
11087 * m/sparc.h: Additional redefinitions for GNU/Linux.
11088
110892008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11090
11091 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11092 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11093 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11094 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11095 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11096 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11097 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11098 Likewise.
11099
11100 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11101 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11102 (mac_ax_number_of_characters): Add externs.
11103 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11104 [USE_MAC_TSM]: Likewise.
11105 (mac_handle_text_input_event) [MAC_OSX]:
11106 Handle kEventTextInputOffsetToPos for no active input area case.
11107 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11108 (mac_handle_document_access_event)
11109 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11110 (install_application_handler) [MAC_OSX]: Register handlers for
11111 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11112 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11113 Register mac_handle_document_access_event.
11114
11115 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11116 Make functions non-static.
11117
111182008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11119
11120 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11121 (read_file_name_completion_ignore_case, insert_default_directory)
11122 (Qdefault_directory): Move to minibuffer.el.
11123 (Fread_file_name): Call the new `read-file-name' instead.
11124
111252008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11126
11127 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11128 Make function non-static.
11129 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11130 Remove function.
11131 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11132 Move to mactoolbox.c.
11133 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11134
11135 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11136 (mac_rect_make): New macro.
11137
11138 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11139 instead of float.
11140 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11141 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11142 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11143 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11144 CGRectMake.
11145 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11146 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11147 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11148 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11149 instead of WindowRef in argument type.
11150 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11151 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11152 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11153 instead of DISPLAY. All uses changed.
11154 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11155 (x_calc_absolute_position): Simplify so as not to use
11156 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11157
11158 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11159 instead of WindowRef in argument type.
11160 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11161 [TARGET_API_MAC_CARBON]: Remove externs.
11162 (create_apple_event, mac_event_parameters_to_lisp)
11163 [TARGET_API_MAC_CARBON]: Add externs.
11164
11165 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11166 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11167 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11168 is clicked.
11169 (x_activate_menubar): Remove extern for saved_menu_event_location.
11170 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11171 Move from mac.c.
11172
111732008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11174
11175 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11176 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11177
111782008-04-23 Jason Rumney <jasonr@gnu.org>
11179
11180 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11181 attributes only for local files.
11182
11183 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11184 default to Qlocal.
11185
111862008-04-22 Juri Linkov <juri@jurta.org>
11187
11188 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11189 read-buffer-to-switch instead of using the letter "B".
11190
111912008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * fileio.c (Qdefault_directory): New variable.
11194 (Fread_file_name): Use it to pass `dir' to the completion functions.
11195
111962008-04-20 Chong Yidong <cyd@stupidchicken.com>
11197
11198 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11199
112002008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11201
11202 * keyboard.c (Vpre_help_message): Remove.
11203 (show_help_echo): Remove default C code.
11204
11205 * dired.c (directory_files_internal, file_name_completion):
11206 Only call ENCODE_FILE if the string is indeed decoded.
11207
112082008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11209
11210 * Makefile.in (TOOLKIT_DEFINES): Remove.
11211 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11212
112132008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11214
11215 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11216 (mactoolbox.o): New target.
11217
11218 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11219 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11220
11221 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11222 Use mac_set_frame_window_background instead of XSetWindowBackground.
11223 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11224 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11225 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11226 instead of SetWindowTitleWithCFString.
11227 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11228 Move function to mactoolbox.c.
11229 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11230 Use mac_set_window_modified instead of SetWindowModified.
11231 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11232 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11233 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11234 FrontNonFloatingWindow. Use mac_activate_window instead of
11235 ActivateWindow. Use mac_active_non_floating_window instead of
11236 ActiveNonFloatingWindow.
11237 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11238 Use mac_show_hourglass and mac_hide_hourglass.
11239 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11240 instead of GetGlobalMouse.
11241 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11242 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11243 Use mac_bring_window_to_front instead of BringToFront.
11244 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11245 mactoolbox.c.
11246 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11247 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11248 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11249 mactoolbox.c.
11250
11251 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11252 (XtPointer): Move typedef from macmenu.c.
11253 (enum button_type): Move enum from macmenu.c.
11254 (widget_value): Move typedef from macmenu.c.
11255 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
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 from macmenu.c.
11263 (Selection): Move typedef from macselect.c.
11264 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11265 macterm.c.
11266 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11267 (mac_is_window_collapsed, mac_bring_window_to_front)
11268 (mac_send_window_behind, mac_hide_window, mac_show_window)
11269 (mac_collapse_window, mac_front_non_floating_window)
11270 (mac_active_non_floating_window, mac_activate_window)
11271 (mac_move_window_structure, mac_move_window, mac_size_window)
11272 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11273
11274 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11275 (enum mac_menu_kind): Move enum to mactoolbox.c.
11276 (min_menu_id): Move variable to mactoolbox.c.
11277 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11278 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11279 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11280 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11281 [TARGET_API_MAC_CARBON]: Likewise.
11282 (XtPointer): Move typedef to macgui.h.
11283 (enum button_type): Move enum to macgui.h.
11284 (widget_value): Move typedef to macgui.h.
11285 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11286 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11287 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11288 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11289 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11290 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11291 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11292 (popup_activated_flag): Make variable non-static.
11293 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11294 (add_menu_item, fill_menu, dispose_menus):
11295 Move functions to mactoolbox.c.
11296 (restore_show_help_function, menu_target_item_handler)
11297 (install_menu_target_item_handler, mac_handle_dialog_event)
11298 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11299 [TARGET_API_MAC_CARBON]: Likewise.
11300 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11301 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11302 (find_and_call_menu_selection, name_is_separator): Make function
11303 non-static.
11304 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11305 to mactoolbox.c.
11306 (set_frame_menubar): Don't call install_menu_quit_handler.
11307 (menu_item_selection): New variable.
11308 (mac_menu_show): Use create_and_show_popup_menu.
11309 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11310 selection but set variable menu_item_selection. All uses changed.
11311 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11312 Call install_menu_quit_handler. Move to mactoolbox.c.
11313
11314 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11315 (Selection): Move typedef to macgui.h.
11316 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11317 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11318 Make variables non-static.
11319 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11320 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11321 Make functions non-static.
11322 (Vmac_service_selection) [MAC_OSX]: Likewise.
11323 (mac_get_selection_from_symbol, get_flavor_type_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)
11328 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11329 Move functions to mactoolbox.c.
11330 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11331 Likewise.
11332 (copy_scrap_flavor_data, mac_handle_service_event)
11333 (install_service_handler) [MAC_OSX]: Likewise.
11334 (syms_of_macselect) <Vmac_dnd_known_types>:
11335 Use mac_dnd_default_known_types.
11336
11337 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11338 Move to mactoolbox.c.
11339 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11340 (Fx_selection_owner_p): Add EXFUN.
11341 (install_window_handler, remove_window_handler, XSetWindowBackground):
11342 Remove externs.
11343 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11344 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11345 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11346 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11347 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11348 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11349 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11350 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11351 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11352 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11353 (mac_valid_selection_target_p, mac_clear_selection)
11354 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11355 (mac_put_selection_value, mac_selection_has_target_p)
11356 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11357 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11358 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11359 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11360 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11361 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11362 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11363 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11364 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11365
11366 * mactoolbox.c: New file.
11367
113682008-04-18 Jason Rumney <jasonr@gnu.org>
11369
11370 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11371
113722008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * character.c (Fmultibyte_char_to_unibyte):
11375 Return latin1 chars unchanged.
11376
11377 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11378 relocated if it points to `name'.
11379
113802008-04-17 Kenichi Handa <handa@m17n.org>
11381
11382 * data.c (Faset): Allow setting a multibyte character in an
11383 ASCII-only unibyte string.
11384
11385 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11386
113872008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11388
11389 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11390 done in config.h.
11391
113922008-04-16 Juanma Barranquero <lekktu@gmail.com>
11393
11394 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11395 (Fchar_direction): Add usage in the docstring.
11396
113972008-04-15 Chong Yidong <cyd@stupidchicken.com>
11398
11399 * keyboard.c (read_key_sequence): Remove always-true checks.
11400
114012008-04-14 Jason Rumney <jasonr@gnu.org>
11402
11403 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11404 compatibility struct, for better underline positioning.
11405
114062008-04-13 David Hansen <david.hansen@gmx.net>
11407
11408 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11409 string.
11410
114112008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11412
11413 * m/hp800.h (XUINT, XSET): Remove.
11414
114152008-04-12 Juanma Barranquero <lekktu@gmail.com>
11416
11417 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11418 previous change.
11419
114202008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11421
11422 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11423 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11424
114252008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11426
11427 * keymap.h (map_keymap_canonical): Declare.
11428 * xmenu.c (single_keymap_panes): Use it.
11429
114302008-04-11 Glenn Morris <rgm@gnu.org>
11431
11432 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11433 set the target's value to that of the alias.
11434
114352008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11436
11437 * term.c (set_tty_color_mode): Left over typo.
11438
114392008-04-10 Michael Albinus <michael.albinus@gmx.de>
11440
11441 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11442 only after check for file name handler functions. Signal, when
11443 native functionality is not supported.
11444 (syms_of_fileio): Declare it unconditionally.
11445
114462008-04-10 Jason Rumney <jasonr@gnu.org>
11447
11448 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11449 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11450
11451 * w32.c (logon_network_drive): Also logon to remote drives that
11452 are mapped to drive letters.
11453
114542008-04-10 Glenn Morris <rgm@gnu.org>
11455
11456 * xdisp.c (truncate-partial-width-windows): Doc fix.
11457
114582008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11459
11460 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11461 Move functions to minibuffer.el.
11462 (syms_of_fileio): Don't declare them.
11463
114642008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11467 (syms_of_minibuf): Remove its initialization.
11468
11469 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11470
114712008-04-09 Juanma Barranquero <lekktu@gmail.com>
11472
11473 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11474
114752008-04-09 Jason Rumney <jasonr@gnu.org>
11476
11477 * makefile.w32-in (distclean): Delete makefile too.
11478 (maintainer-clean): New target.
11479
11480 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11481
11482 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11483 for new font backend and composite cases.
11484
114852008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11486
11487 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11488 Most of the code moved to run_timers.
11489 (do_pending_atimers): Call run_timers.
11490 (run_timers): New function.
11491
11492 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11493 run atimers.
11494
11495 * process.c (wait_reading_process_output): The same as above.
11496
114972008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11498
11499 * minibuf.c (last_exact_completion): Remove variable.
11500 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11501 (complete_and_exit_1, complete_and_exit_2)
11502 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11503 (Fdisplay_completion_list, display_completion_list_1)
11504 (Fminibuffer_completion_help, Fself_insert_and_exit)
11505 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11506 minibuffer.el.
11507 (syms_of_minibuf): Remove corresponding initializations.
11508
11509 * keyboard.c (Qdeactivate_mark): New var.
11510 (command_loop_1): Use it to call `deactivate-mark'.
11511 (syms_of_keyboard): Initialize it.
11512
11513 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11514 to another frame.
11515 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11516 Don't call set_tty_color_mode.
11517 (store_frame_param): Reset previous_frame rather than call
11518 set_tty_color_mode.
11519 * term.c (set_tty_color_mode): Rewrite.
11520 * dispextern.h (set_tty_color_mode): New type.
11521 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11522
115232008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11524
11525 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11526 for generic chars, which do not exist any more in emacs-unicode.
11527
115282008-04-08 Michael Albinus <michael.albinus@gmx.de>
11529
11530 * coding.c (detect_coding_emacs_mule)
11531 (Ffind_operation_coding_system): Fix typo.
11532
115332008-04-08 Jason Rumney <jasonr@gnu.org>
11534
11535 * w32uniscribe.c (SNAME): Extract only symbol name.
11536
11537 * w32font.h (struct w32_metric_cache): New struct.
11538 (w32font_info): Use it.
11539 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11540 (CACHE_BLOCKSIZE): New constants.
11541
11542 * w32font.c (Qja, Qko, Qzh): New symbols.
11543 (syms_of_w32font): Initialise them.
11544 (font_matches_spec): Use them to filter by language.
11545 (recompute_cached_metrics): Remove function.
11546 (compute_metrics, clear_cached_metrics): New functions.
11547 (w32font_encode_char): Use them to manage metric cache.
11548 (w32font_text_extents): Cache metrics for all glyphs on demand.
11549 Delay converting glyph indices to WORD until needed.
11550 (w32font_open_internal): Initialize metric cache to empty.
11551 (registry_to_w32_charset): Charset should always be a symbol.
11552 (fill_in_logfont, list_all_matching_fonts): Family should
11553 always be a symbol.
11554
115552008-04-06 Jason Rumney <jasonr@gnu.org>
11556
11557 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11558 Give up if glyph indices not supported. Use uniscribe obtained
11559 ABC widths for individual metrics. Map glyph clusters back to
11560 characters using fClusterStart flag. Return number of glyphs
11561 produced, not chars processed.
11562 (uniscribe_shape): Map char at FROM to current glyph.
11563
115642008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11565
11566 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11567 Use SetMenuItemHierarchicalMenu.
11568
115692008-04-05 Jason Rumney <jasonr@gnu.org>
11570
11571 * image.c (pbm_load): Allow color values up to 65535.
11572 Throw an error if max_color_idx is outside the supported range.
11573 Report an error when image size is invalid.
11574 Read two bytes at a time when raw images have max_color_idx above 255.
11575
115762008-04-05 Eli Zaretskii <eliz@gnu.org>
11577
11578 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11579 cFileName a file name that includes `?' characters, use the 8+3
11580 alias in cAlternateFileName instead.
11581
115822008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11583
11584 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11585 append "CCL: Quitted" when the CCL program is quitted.
11586 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11587
11588 * ccl.h (struct ccl_program): New member quit_silently.
11589
115902008-04-05 Chong Yidong <cyd@stupidchicken.com>
11591
11592 * search.c (compile_pattern_1): Treat non-nil and non-string of
11593 search-spaces-regexp as nil.
11594
11595 * minibuf.c (Fassoc_string): Tweak docstring.
11596
115972008-04-05 Eli Zaretskii <eliz@gnu.org>
11598
11599 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11600 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11601 2008-03-14 to force inode be positive.
11602
11603 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11604 _S_* ones, since we now use our own sys/stat.h.
11605 (stat, fstat): Don't mangle the inode number.
11606 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11607
116082008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11609
11610 * frame.h (struct frame): Give one more bit to `visible' since we use
11611 values larger than 1 to indicate obscured frames on ttys.
11612
11613 * keymap.c (Qkeymap_canonicalize): New var.
11614 (Fmap_keymap_internal): New fun.
11615 (describe_map): Use keymap-canonicalize.
11616
11617 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11618 (Fundo_boundary): Set them.
11619 (syms_of_undo): Initialize them.
11620 (record_point): Use them instead of last_point_position*.
11621 (last_undo_buffer): Change type.
11622
116232008-04-04 Jason Rumney <jasonr@gnu.org>
11624
11625 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11626 (recompute_cached_metrics): Don't set ascent and descent per char.
11627
11628 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11629 (uniscribe_check_otf): Add GC protection before consing.
11630 Rearrange loop for counting features.
11631
116322008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11633
11634 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11635 buffer with byte-size of source buffer.
11636
116372008-04-03 Chong Yidong <cyd@stupidchicken.com>
11638
11639 * callint.c (Fcall_interactively): Handle temporary region even
11640 when shift-select-mode is off.
11641
116422008-04-03 Jason Rumney <jasonr@gnu.org>
11643
11644 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11645
116462008-04-03 Kenichi Handa <handa@m17n.org>
11647
11648 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11649 (CATEGORY_MASK_UTF_16): Likewise.
11650 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11651 binary file.
11652 (detect_coding): Add null-byte detection for a binary file.
11653 (detect_coding_system): Likewise.
11654
116552008-04-03 Jason Rumney <jasonr@gnu.org>
11656
11657 * w32uniscribe.c: New file.
11658
11659 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11660
11661 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11662
11663 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11664 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11665 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11666 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11667 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11668 (Qphonetic): New symbols.
11669 (syms_of_w32font): Initialize them.
11670 (font_supported_scripts): Use them.
11671 (w32font_list_family): List all charsets.
11672 (w32font_text_extents, recompute_cached_metrics): Fix metric
11673 calculations.
11674 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11675 Give opentype fonts their own format.
11676 (font_matches_spec): New arguments backend and logfont.
11677 Handle :otf spec for uniscribe backend.
11678 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11679 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11680
11681 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11682 font backend.
11683 (globals_of_w32fns): Initialize uniscribe font backend.
11684
11685 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11686 dependencies.
11687 (w32uniscribe.$(O)): New file to build.
11688 (FONT_OBJ): Include w32uniscribe.$(O).
11689 (LIBS): Add uniscribe libraries.
11690
11691 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11692
116932008-04-02 Chong Yidong <cyd@stupidchicken.com>
11694
11695 * callint.c (Vshift_select_mode): New var.
11696 (Finteractive): Document new ^ spec.
11697 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11698 is present.
11699
11700 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11701 (command_loop_1): Avoid running the direct display versions of
11702 forward-char and backward-char if shift-selection may occur.
11703 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11704 shift-translation takes place.
11705
11706 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11707 avoid clobbering by define-minor-mode.
11708
11709 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11710 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11711
11712 * syntax.c (Fforward_word): Add ^ interactive spec.
11713
11714 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11715 (Fscroll_right): Add ^ interactive spec.
11716
117172008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11720
11721 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11722
11723 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11724
117252008-03-31 Juri Linkov <juri@jurta.org>
11726
11727 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11728
117292008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11730
11731 * gtkutil.c (xg_set_geometry): Fix indentation.
11732 (xg_resize_outer_widget): Remove.
11733 (x_wm_size_hint_off): Fix indentation.
11734 (xg_frame_set_char_size): Call flush_and_sync after
11735 gtk_window_resize.
11736 (x_wm_set_size_hint): Pass NULL as geometry window to
11737 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11738 Add menu bar and tool bar height to base height.
11739 (xg_update_frame_menubar, free_frame_menubar)
11740 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11741 (update_frame_tool_bar, free_frame_tool_bar):
11742 Change xg_resize_outer_widget to xg_frame_set_char_size.
11743
117442008-03-30 Michael Albinus <michael.albinus@gmx.de>
11745
11746 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11747 (Fdbus_call_method): New parameter TIMEOUT.
11748 (dbus-send-signal): Optimize UNGCPRO call.
11749
117502008-03-29 Juri Linkov <juri@jurta.org>
11751
11752 * window.c (Fdisplay_buffer): Move call to
11753 Vsplit_window_preferred_function out of conditions that check
11754 if window is eligible for vertical splitting.
11755 When Vsplit_window_preferred_function is non-nil, call it and use
11756 its non-nil return value as window. Otherwise, continue doing
11757 vertical splitting using Fsplit_window with arg horflag=nil.
11758 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11759 default value from `split-window' to nil.
11760
117612008-03-29 Juri Linkov <juri@jurta.org>
11762
11763 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11764 for interactive code letters 'b' and 'B'.
11765
117662008-03-29 Eli Zaretskii <eliz@gnu.org>
11767
11768 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11769 multibyte string.
11770
117712008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * keyboard.c (pending_funcalls): New var.
11774 (timer_check): Run it.
11775 (syms_of_keyboard): Initialize it.
11776 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11777 (Vdelete_terminal_functions): New vars.
11778 (syms_of_terminal): Initialize them.
11779 (Fdelete_terminal): Run delete-terminal-functions.
11780 * xdisp.c (safe_eval): Rewrite.
11781 (safe_call2): New fun.
11782 * frame.c (Qdelete_frame_functions): New var.
11783 (syms_of_frame): Initialize it.
11784 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11785 * lisp.h (safe_call2, pending_funcalls): Declare.
11786
117872008-03-28 Andreas Schwab <schwab@suse.de>
11788
11789 * indent.c (Fmove_to_column): Move declaration before statements.
11790
117912008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11792
11793 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11794 (struct frame): Use bit fields for boolean vars.
11795
11796 * process.c (server_accept_connection): Simplify naming.
11797 (emacs_get_tty_pgrp): Use SDATA.
11798
11799 * coding.c (decode_coding_object): Fix last change.
11800
118012008-03-27 Jason Rumney <jasonr@gnu.org>
11802
11803 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11804
118052008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11806
11807 * charset.c (Fdefine_charset_internal): Change the way of
11808 registering charsets in Vcharset_order_list.
11809 (syms_of_charset): Make the charset `eight-bit' supplementary.
11810
118112008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11812
11813 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11814 operations, to avoid having the difference between pointers
11815 overflow.
11816
118172008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11818
11819 * indent.c (check_display_width): New fun.
11820 (scan_for_column): Use it.
11821
11822 * data.c (syms_of_data): Mark most-positive-fixnum and
11823 most-negative-fixnum as constants.
11824
11825 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11826
11827 * indent.c (scan_for_column): Extract from current_column_1.
11828 Merge with the same code from Fmove_to_column.
11829 (current_column_1, Fmove_to_column): Use it.
11830
118312008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11832
11833 * keymap.c (map_keymap_internal): New fun.
11834 (map_keymap): Use it.
11835 (Fmap_keymap_internal): New fun.
11836 (Fmap_keymap): Remove left-out test from before make_save_value.
11837
11838 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11839
11840 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11841 Use XCAR/XCDR.
11842
11843 * process.h (struct Lisp_Process): Remove filter_multibyte.
11844 * process.c (QCfilter_multibyte): Remove.
11845 (setup_process_coding_systems): Don't use filter_multibyte.
11846 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11847 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11848 (Fset_process_filter_multibyte): Change the coding-system to
11849 approximate the previous behavior.
11850 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11851 coding-system.
11852
11853 * coding.c (decode_coding_object): When not decoding into a buffer,
11854 obey the coding system's preference of (uni|multi)byte.
11855
118562008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11857
11858 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11859 every char is changed and has a different byte-length.
11860 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11861 Fix int -> EMACS_INT.
11862
118632008-03-23 David Hansen <david.hansen@gmx.net>
11864
11865 * dbusbind.c (xd_read_message): Remove extra copying of message
11866 strings. Check for NULL `interface' or `member'.
11867
118682008-03-22 Eli Zaretskii <eliz@gnu.org>
11869
11870 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11871 cFileName a file name that includes `?' characters, use the 8+3
11872 alias in cAlternateFileName instead.
11873
118742008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11877
118782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11879
11880 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11881 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11882 work on current_buffer only instead (that was already the case
11883 for some of the code anyway).
11884 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11885 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11886 (SET_PT, SET_PT_BOTH): Adjust.
11887 * intervals.h (set_point, temp_set_point, set_point_both)
11888 (temp_set_point_both): Remove redundant declarations.
11889
118902008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11891
11892 * fileio.c (Finsert_file_contents):
11893 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11894 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11895 when buffer != current_buffer anyway.
11896
118972008-03-20 Andreas Schwab <schwab@suse.de>
11898
11899 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11900 as default.
11901
119022008-03-19 Jason Rumney <jasonr@gnu.org>
11903
11904 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11905 (syms_of_w32fns): Initialize them.
11906 (HOURGLASS_ID): New constant.
11907 (x_window_to_frame): Don't check hourglass_window.
11908 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11909 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11910 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11911 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11912 Only change the cursor if hourglass is not active.
11913 (Fx_create_frame): Initialize frame's current_cursor.
11914 (hourglass_atimer): Remove.
11915 (hourglass_started): New function.
11916 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11917 (show_hourglass): Adapt to w32, changing argument to frame.
11918
11919 * w32term.h (struct w32_output): Remove hourglass_window.
11920 Add current_cursor.
11921
11922 * eval.c (call_debugger, Fsignal):
11923 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11924 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11925 (Fexecute_extended_command, cancel_hourglass_unwind):
11926 * minibuf.c (read_minibuf):
11927 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11928
119292008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * window.c (run_funs): New fun.
11932 (run_window_configuration_change_hook): Use it to run the buffer-local
11933 and the global part of the hook.
11934
11935 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11936 (unwind_format_mode_line): Restore selected window.
11937 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11938
119392008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11940
11941 * editfns.c (Fchar_equal): Check they are valid characters.
11942
11943 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11944
119452008-03-17 Andreas Schwab <schwab@suse.de>
11946
11947 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11948 against a charset.
11949
11950 * lisp.h (Fbuffer_list): Declare.
11951
119522008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11953
aac0c6e3
MR
11954 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11955 handlebox_widget is != 0.
11956
119572008-03-16 Juri Linkov <juri@jurta.org>
11958
11959 * callint.c (Fcall_interactively): For interactive code letters
11960 'b' and 'B' put the buffer list into the list of default "future"
11961 values of the minibuffer.
11962
119632008-03-16 Andreas Schwab <schwab@suse.de>
11964
11965 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11966 modifiers.
11967
11968 * regex.c (re_match_2_internal): Correct matching of a charset
11969 against latin-1 characters.
11970
119712008-03-16 Kenichi Handa <handa@m17n.org>
11972
11973 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11974 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11975 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11976 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11977 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11978 CHAR_STRING_ADVANCE.
11979 (produce_chars): Fix for the case that the source and the
11980 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11981 instead of CHAR_STRING_ADVANCE.
11982 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11983 STRING_CHAR_ADVANCE.
11984
119852008-03-15 Andreas Schwab <schwab@suse.de>
11986
11987 * regex.c (re_match_2_internal): Correct matching of eight bit
11988 characters in unibyte strings.
11989
119902008-03-15 Martin Rudalics <rudalics@gmx.at>
11991
11992 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11993 at end of range when it coincides with the end of the buffer.
11994
119952008-03-14 Eli Zaretskii <eliz@gnu.org>
11996
11997 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11998
11999 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12000
120012008-03-14 Jason Rumney <jasonr@gnu.org>
12002
12003 * editfns.c (initial_tz): New variable.
12004 (syms_of_editfns): Initialize it.
12005 (Fset_time_zone_rule): Set it when first called.
12006 Use it when TZSTRING is nil.
12007
12008 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12009 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12010 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12011 (globals_of_w32fns): Initialize them.
12012 (compute_tip_xy): Use them to position tooltips.
12013
120142008-03-14 Glenn Morris <rgm@gnu.org>
12015
12016 * emacs.c (main): Revert previous change.
12017 (standard_args): Revert -internal-script back to -scriptload,
12018 and remove the long-option form.
12019
120202008-03-13 Glenn Morris <rgm@gnu.org>
12021
12022 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12023 Remove option -enable-font-backend.
12024
120252008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12026
12027 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12028
120292008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12030
12031 * xterm.c (x_connection_closed): For GTK: If this is the last
12032 terminal just exit without closing the display.
12033
120342008-03-11 Jason Rumney <jasonr@gnu.org>
12035
12036 * w32font.c (w32font_full_name): Use floor to round.
12037
f0131492 120382008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12039
12040 * sound.c (alsa_configure): Declare vol at beginning of block.
12041
12042 * fontset.c (Ffontset_info): Remove extra semicolon.
12043
120442008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12047 size of resulting string.
12048
120492008-03-10 Jason Rumney <jasonr@gnu.org>
12050
12051 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12052
120532008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12054
12055 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12056 Don't pretend as if characters with display property haven't been
12057 consumed for string-replacing-string case.
12058
120592008-03-08 Kim F. Storm <storm@cua.dk>
12060
12061 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12062 (get_next_display_element, next_element_from_string)
12063 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12064
120652008-03-08 Andreas Schwab <schwab@suse.de>
12066
12067 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12068
120692008-03-06 Jason Rumney <jasonr@gnu.org>
12070
12071 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12072 when charset not specified. Only translate ANSI to unicode when
12073 font_type is truetype.
12074 (w32font_coverage_ok): New function.
12075 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12076
120772008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12078
12079 * lread.c (Fread_char): Resolve modifiers.
12080 (Fread_char_exclusive): Likewise.
12081
12082 * character.c (char_resolve_modifier_mask): New function.
12083 (char_string): Use char_resolve_modifier_mask.
12084 (Fchar_resolve_modifiers): New function.
12085 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12086 function.
12087
120882008-03-04 Jason Rumney <jasonr@gnu.org>
12089
12090 * makefile.w32-in: Always include w32font.c in the build.
12091 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12092
120932008-03-04 Andreas Schwab <schwab@suse.de>
12094
12095 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12096 (versionclean): Likewise.
12097
120982008-03-04 Juanma Barranquero <lekktu@gmail.com>
12099
12100 * .cvsignore: Add oo.
12101
121022008-03-03 Andreas Schwab <schwab@suse.de>
12103
12104 * coding.c (decode_coding_object): Inhibit gap shrinking while
12105 decoding in place.
12106
121072008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12108
12109 * w32term.c: Remove unused include "gnu.h".
12110 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12111
12112 * gnu.h: Rename to ...
12113 * emacs-icon.h: ... this.
12114 * xterm.c: Use emacs-icon.h instead of gnu.h.
12115 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12116
121172008-03-03 Juanma Barranquero <lekktu@gmail.com>
12118
12119 * w32font.c: Include math.h.
12120
121212008-03-03 Jason Rumney <jasonr@gnu.org>
12122
12123 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12124 Compute options separately.
12125 (w32font_open_internal): Set glyph_idx before caching metrics.
12126
12127 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12128 Define if system headers don't.
12129 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12130 (w32font_encode_char): Don't declare here.
12131
12132 * w32font.c (Quniscribe, QCformat): New symbols.
12133 (syms_of_w32font): Define them.
12134 (w32font_has_char): Indicate uncertainty.
12135 (w32font_encode_char): Encode as glyph point. Make static.
12136 (recompute_cached_metrics): New function.
12137 (w32font_open_internal): Use it. Set font to use glyph points
12138 initially. Set format based on type of font.
12139 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12140 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12141 on it. Set format based on information available here.
12142 (add_font_entity_to_list): Identify backend based on opentype_only.
12143
121442008-03-02 Andreas Schwab <schwab@suse.de>
12145
12146 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12147
12148 * coding.c (decode_coding_big5, produce_chars):
12149 Fix typos in last change.
12150
121512008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12152
12153 * gnu.h: New icon.
12154
121552008-03-02 Kenichi Handa <handa@m17n.org>
12156
12157 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12158 `dos', don't decode '\r' if that is the last in the source.
12159 (decode_coding_utf_16, decode_coding_emacs_mule)
12160 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12161 (decode_coding_raw_text, decode_coding_charset): Likewise.
12162 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12163
121642008-03-01 Jason Rumney <jasonr@gnu.org>
12165
12166 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12167
121682008-03-01 Kim F. Storm <storm@cua.dk>
12169
12170 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12171
121722008-03-01 Jason Rumney <jasonr@gnu.org>
12173
12174 * w32font.c (w32font_full_name): New function.
12175 (w32font_open_internal): Use it.
12176
121772008-03-01 Kim F. Storm <storm@cua.dk>
12178
12179 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12180
121812008-03-01 Jason Rumney <jasonr@gnu.org>
12182
12183 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12184
121852008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12186
12187 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12188 xg_frame_resized when the event is for the edit widget.
12189
12190 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12191
12192 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12193 set_char_size.
12194 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12195 operations on widgets here. Just set frame size if needed.
12196 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12197 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12198 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12199 the whole frame.
12200 (xg_create_tool_bar): Move attachment of the tool bar to
12201 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12202 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12203
122042008-03-01 Jason Rumney <jasonr@gnu.org>
12205
12206 * w32fns.c (w32_msg_pump): Disable debug code.
12207
122082008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12209
12210 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12211
122122008-02-29 Chong Yidong <cyd@stupidchicken.com>
12213
12214 * xdisp.c (next_overlay_string): Don't set
12215 overlay_strings_at_end_processed_p if we're currently reading from
12216 a display string.
12217
122182008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12219
12220 * xdisp.c (get_overlay_strings_1): Fix typo.
12221
122222008-02-29 Chong Yidong <cyd@stupidchicken.com>
12223
12224 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12225
122262008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12227
12228 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12229
12230 * xdisp.c (display_mode_element): Cancel the previous change.
12231 (decode_mode_spec): Likewise.
12232 (handle_auto_composed_prop): Don't make composition if it->string
12233 is a string.
12234
122352008-02-27 Kim F. Storm <storm@cua.dk>
12236
12237 * lisp.h (GLYPH): Change type from int to struct with separate char
12238 and face_id members.
12239 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12240 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12241 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12242 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12243 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12244 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12245 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12246 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12247 handle new Lisp glyph code encoding, either an integer or a cons.
12248
12249 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12250 (GLYPH_ALIAS): Delete.
12251 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12252 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12253 (GLYPH_FROM_CHAR): Replace macro by ...
12254 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12255
12256 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12257 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12258 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12259 (GLYPH_INVALID_P): New macro.
12260 (spec_glyph_lookup_face): Update prototype.
12261
12262 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12263 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12264 new glyph code encoding.
12265 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12266 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12267
12268 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12269 Adapt to new glyph type and new glyph code encoding.
12270
12271 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12272
12273 * indent.c (current_column, current_column_1, Fmove_to_column)
12274 (compute_motion): Adapt to new glyph code encoding.
12275
12276 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12277
122782008-02-27 Chong Yidong <cyd@stupidchicken.com>
12279
12280 * process.c (wait_reading_process_output): Check for window
12281 changes caused by timers.
12282 Suggested by Johan Bockgård.
12283
122842008-02-27 Glenn Morris <rgm@gnu.org>
12285
12286 * emacs.c (USAGE1): Add `--disable-font-backend'.
12287
122882008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12289
12290 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12291 is made to the buffer.
12292
122932008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12294
12295 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12296 (face_at_string_position):
12297 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12298 (face_at_string_position):
12299 * xdisp.c (display_string, next_overlay_change):
12300 * buffer.h (overlays_at):
12301 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12302 Update callers.
12303
123042008-02-26 Chong Yidong <cyd@stupidchicken.com>
12305
12306 * editfns.c (Fformat): Doc fix.
12307
123082008-02-26 Juanma Barranquero <lekktu@gmail.com>
12309
12310 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12311 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12312 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12313
123142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12315
12316 * buffer.c (Fbuffer_swap_text): New function.
12317 (syms_of_buffer): Defsubr it.
12318
123192008-02-25 Chong Yidong <cyd@stupidchicken.com>
12320
12321 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12322
123232008-02-25 Jason Rumney <jasonr@gnu.org>
12324
12325 * w32font.c (w32font_draw): Draw one character at a time when padding.
12326
123272008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12328
12329 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12330 Handle a nil arg. Use run_window_configuration_change_hook.
12331 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12332 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12333 Use run_window_configuration_change_hook.
12334
123352008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12336
12337 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12338 1-pixel width.
12339
123402008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12341
12342 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12343 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12344 if the glyph in the font is zero pixel with.
12345
12346 * dispextern.h (struct glyph_string): New member padding_p.
12347
12348 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12349
12350 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12351
12352 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12353
12354 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12355
12356 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12357
123582008-02-25 Jason Rumney <jasonr@gnu.org>
12359
12360 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12361
123622008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 Allow fine-grained image-cache flushing.
12365 * dispextern.h (struct image): Add `dependencies' field.
12366 (clear_image_caches): Change arg to Lisp_Object.
12367 * image.c (make_image): Initialize `dependencies' field.
12368 (clear_image_cache): Change arg to allow fine-grained flushing.
12369 Perform the flush even if image-cache-eviction-delay is nil.
12370 (clear_image_caches): Change arg to Lisp_Object.
12371 (Fclear_image_cache): Expand meaning of the argument.
12372 (mark_image): Mark `dependencies' field.
12373 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12374 (lface_hash): Use XHASH rather than XFASTINT.
12375 (face_at_buffer_position): Fix int -> EMACS_INT position.
12376 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12377 (select_frame_for_redisplay): Remove code duplication.
12378 (redisplay_internal): Adapt arg to call to clear_image_caches.
12379
123802008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12381
12382 * s/vms4-0.h:
12383 * s/vms4-2.h:
12384 * s/vms4-4.h:
12385 * s/vms5-5.h: Remove, unused.
12386
12387 * s/irix5-2.h:
12388 * s/irix6-0.h:
12389 * s/riscos5.h:
12390 * s/mach-bsd4-3.h:
12391 * m/mips4.h: Remove files for obsolete systems.
12392
12393 * Makefile.in:
12394 * filelock.c:
12395 * unexmips.c:
12396 * m/hp9000s300.h:
12397 * m/iris4d.h:
12398 * s/aix3-1.h:
12399 * s/hpux.h:
12400 * s/msdos.h:
12401 * s/usg5-0.h:
12402 * s/usg5-2-2.h:
12403 * s/usg5-2.h:
12404 * s/usg5-3.h: Remove references to obsolete variables.
12405
12406 * s/irix5-0.h: Remove, move all the contents ...
12407 * s/irix6-5.h: ... here. Simplify.
12408 * config.in: Regenerate.
12409
124102008-02-24 Jason Rumney <jasonr@gnu.org>
12411
12412 * w32term.c (x_draw_glyph_string_background): Clear the background
12413 manually when cleartype is in use.
12414 (x_draw_glyph_string_foreground): Draw text transparently when
12415 cleartype is in use.
12416
12417 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12418 a font into it unless we have to.
12419
124202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12421
12422 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12423 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12424
aac0c6e3
MR
124252008-02-18 Jason Rumney <jasonr@gnu.org>
12426
12427 * w32fns.c (Fw32_shell_execute): Encode parameters.
12428
124292008-02-09 Eli Zaretskii <eliz@gnu.org>
12430
12431 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12432
124332008-02-05 Juanma Barranquero <lekktu@gmail.com>
12434
12435 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12436
124372008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12438
12439 * xterm.c (x_set_offset): Don't change the gravity if
12440 CHANGE_GRAVITY is -1.
12441
124422008-02-23 Chong Yidong <cyd@stupidchicken.com>
12443
12444 * fileio.c (auto_save_error_occurred): New var.
12445 (auto_save_error): Set it.
12446 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12447 error occurred.
12448
124492008-02-23 Eli Zaretskii <eliz@gnu.org>
12450
12451 * w32.c (globals_of_w32): Add initializations for
12452 g_b_init_get_sid_sub_authority and
12453 g_b_init_get_sid_sub_authority_count.
12454
124552008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12456
12457 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12458 (font_parse_xlfd): Use them for sanity check.
12459 (Finternal_set_font_style_table): Make sure the table is bijective.
12460
12461 Consolidate the image_cache to the terminal struct.
12462 * termhooks.h (P_): Remove redundant def.
12463 (struct terminal): New field `image_cache'.
12464 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12465 of FRAME_X_IMAGE_CACHE.
12466 * xterm.h (struct x_display_info): Remove image_cache field.
12467 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12468 * w32term.h (struct w32_display_info): Remove image_cache field.
12469 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12470 * macterm.h (struct mac_display_info): Remove image_cache field.
12471 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12472 * xterm.c (x_term_init):
12473 * w32term.c (w32_term_init):
12474 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12475 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12476 Remove declarations.
12477 (clear_image_caches, mark_image_cache): New declarations.
12478 * xfaces.c (clear_face_cache):
12479 * xdisp.c (redisplay_internal): Use clear_image_caches.
12480 * image.c (clear_image_cache): Don't check that a frame is on
12481 a window-system before checking if it shares the same cache.
12482 (clear_image_caches): New function.
12483 (Fclear_image_cache): Use it.
12484 (mark_image): Move from allo.c.
12485 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12486 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12487 (mark_object): Don't call mark_image_cache for frames.
12488 (mark_terminals): Call mark_image_cache.
12489
12490 * lisp.h (Fdelete_terminal): Declare.
12491
12492 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12493 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12494 wrong_type_argument.
12495
124962008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12497
12498 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12499 malayalam.el, and tamil.el. Add sinhala.el.
12500
125012008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12502
12503 * xterm.c (x_connection_closed): Consolidate identical tests.
12504 (x_delete_terminal): Don't crash if called via x_connection_closed.
12505
125062008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12507
12508 * xdisp.c (decode_mode_spec): New arg string.
12509 (display_mode_element): Adjust for the above change.
12510
125112008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12512
12513 * callint.c (Fcall_interactively): Use AREF.
12514
125152008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12518
125192008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12520
12521 * xfns.c (Fx_show_tip): Set string to " " if empty.
12522
125232008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12524
12525 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12526 with Qt.
12527
125282008-02-17 Kenichi Handa <handa@m17n.org>
12529
12530 * ftfont.c (ftfont_shape): Return Lispy number.
12531
12532 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12533 for GCs.
12534 (Finternal_set_font_selection_order): Call font_update_sort_order
12535 only when enable_font_backend is set.
12536 (realize_x_face): Set face->font_info to that of default face only
12537 when enable_font_backend is set.
12538
12539 * xdisp.c (handle_composition_prop): Set it->c to the fist
12540 character of the composed region.
12541 (fill_composite_glyph_string): Set base_face->font_info to
12542 s->font_info. Get a face for ascii from base_face->ascii_face.
12543 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12544 with a face already decided.
12545 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12546 non-negative.
12547 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12548 call font_prepare_composition unconditionally.
12549
12550 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12551
12552 * xterm.h (struct x_display_info): New member font.
12553
12554 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12555 (x_set_mouse_face_gc, x_new_font): Likewise.
12556 (x_term_init): Setup display_info->font.
12557 (x_delete_terminal): Free display_info->font.
12558
12559 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12560
12561 * ftxfont.c (ftxfont_default_fid): Delete it.
12562 (ftxfont_open): Set xfont->fid to 0.
12563 (ftxfont_end_for_frame): Clear data specific to the frame and the
12564 font-driver.
12565
12566 * xftfont.c (xftfont_default_fid): Delete it.
12567 (xftfont_open): Set xfont->fid to 0.
12568
12569 * fontset.c (FONTSET_OBJLIST): New macro.
12570 (fontset_find_font): Update font-object list of the fontset.
12571 (free_realized_fontset): New function.
12572 (free_face_fontset): Call free_realized_fontset.
12573 (Ffont_info): Call font_close_object only when enable_font_backend
12574 is set.
12575
12576 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12577 [HAVE_NTGUI]: Include w32term.h.
12578 [MAC_OS]: Include macterm.ch.
12579 (font_otf_ValueRecord): Use make_number.
12580 (font_finish_cache): Fix handling of reference count.
12581 (font_clear_cache): Update num_fonts.
12582 (font_open_entity): Update smallest_char_width and
12583 smallest_font_height of the frame.
12584 (font_close_object): Update num_fonts.
12585 (Fclear_font_cache): Fix finding the target cache data.
12586
125872008-02-16 Glenn Morris <rgm@gnu.org>
12588
12589 * fontset.c (Finternal_char_font): Fix compilation warning.
12590
125912008-02-16 Eli Zaretskii <eliz@gnu.org>
12592
12593 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12594 instead of char arrays. Enlarge the size of array passed to
12595 get_token_information.
12596
12597 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12598 warnings.
12599
126002008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12601
12602 * .gdbinit: Don't set `args', it breaks gdb --args.
12603
126042008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12605
12606 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12607 within a narrowed buffer.
12608
126092008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12610
12611 * coding.c (decode_coding_object, encode_coding_object):
12612 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12613
126142008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12615
12616 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12617 hardcoding 1.
12618 (detect_coding_system):
12619 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12620 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12621 * insdel.c (insert_from_gap):
12622 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12623 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12624 (string_to_multibyte):
12625 * character.c (chars_in_text, multibyte_chars_in_text):
12626 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12627
12628 * character.h (FETCH_STRING_CHAR_ADVANCE)
12629 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12630 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12631 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12632
12633 * casefiddle.c (casify_region): Only call after-change and composition
12634 functions on the part of the region that was changed.
12635
12636 * keyboard.c (read_avail_input):
12637 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12638
126392008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12640
12641 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12642 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12643
126442008-02-11 Juanma Barranquero <lekktu@gmail.com>
12645
12646 * w32menu.c (push_submenu_start, push_submenu_end)
12647 (push_left_right_boundary, push_menu_pane, push_menu_item):
12648 * keyboard.c (read_key_sequence): Don't pass args with side effects
12649 to AREF, it fails when compiling with -DENABLE_CHECKING.
12650
126512008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12652
12653 * Makefile.in (${lispsource}international/charprop.el):
12654 Delete this target.
12655
12656 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12657 emacs-unicode-2.
12658
126592008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12660
12661 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12662
126632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12664
12665 * frame.c (Qnoelisp): New symbol.
12666 (syms_of_frame): Initialize it.
12667 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12668 harmless Elisp code, from a strong `force' from x_connection_closed.
12669 * frame.h (Qnoelisp): Declare.
12670 * xterm.c (x_connection_closed): Pass `noelisp'.
12671
12672 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12673 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12674 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12675 rather than `int' for the type of `type'.
12676
126772008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12678
12679 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12680
12681 * Makefile.in (GNUC): Remove support for gcc-1.x.
12682
126832008-02-10 Richard Stallman <rms@gnu.org>
12684
12685 * lisp.h (ASET): Use AREF, not ASLOT.
12686
126872008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12688
12689 * lisp.h (ASET): Check bounds.
12690
126912008-02-10 Glenn Morris <rgm@gnu.org>
12692
12693 * buffer.c (mode-name): Doc fix.
12694
126952008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12696
12697 * Makefile.in:
12698 * emacs.c:
12699 * gmalloc.c:
12700 * keyboard.c:
12701 * lisp.h:
12702 * m/ibm370aix.h:
12703 * process.c:
12704 * regex.c:
12705 * s/hpux.h:
12706 * sysdep.c:
12707 * sysselect.h:
12708 * systty.h:
12709 * unexec.c:
12710 * w32term.c:
12711 * xsmfns.c:
12712 * xterm.c: Remove code that deals with obsolete variables.
12713
12714 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12715
12716 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12717 nothing else needs it anymore.
12718
127192008-02-09 Eli Zaretskii <eliz@gnu.org>
12720
12721 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12722 instead of unibyte_char_to_multibyte.
12723
127242008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12725
12726 * s/gnu-linux.h: Remove commented out code.
12727
12728 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12729
12730 * Makefile.in: Update what RMS says about using autoconf.
12731 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12732 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12733 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12734 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12735
127362008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12737
12738 * keymap.c (Fkey_description): Move side effect outside of macro call.
12739
12740 * xfaces.c (Finternal_make_lisp_face):
12741 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12742
12743 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12744 (syms_of_fontset): Use ASET.
12745
12746 * fns.c (concat): Move side effect outside of macro call.
12747 (hash_clear): Use ASET.
12748
127492008-02-08 Richard Stallman <rms@gnu.org>
12750
12751 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12752 If FORCE, and frame has a surrogate minibuffer for another frame,
12753 delete the other frame first.
12754
127552008-02-07 Timo Savola <timo.savola@iki.fi>
12756
12757 * xterm.c (x_detect_focus_change): Handle embed client message.
12758 (handle_one_xevent): Ditto.
12759 (handle_one_xevent): If embedded and we get a button press/release,
12760 request focus.
12761 (xembed_set_info, xembed_send_message): New functions.
12762 (x_make_frame_visible): Call xembed_set_info if embedded.
12763 (x_make_frame_invisible): Call xembed_set_info if embedded.
12764 (x_term_init): Initialize Xatom_XEMBED.
12765 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12766 (x_iconify_frame): Ditto.
12767
12768 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12769 (enum xembed_info, enum xembed_message, enum xembed_focus)
12770 (enum xembed_modifier, enum xembed_accelerator): New.
12771 (xembed_set_info, xembed_send_message): Declare.
12772 (FRAME_X_EMBEDDED_P): New.
12773
12774 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12775 gtk_plug_new.
12776
12777 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12778 window ID of a frame.
12779 (x_window): Reparent frame if embedded.
12780 (Fx_create_frame): Don't set border width if embedded.
12781
12782 * emacs.c (USAGE3): Add --parent-id.
12783 (standard_args): Ditto.
12784
127852008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12786
12787 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12788
127892008-02-07 Jim Meyering <meyering@redhat.com>
12790
12791 Use "do...while (0)", not "if (1)...else" in macro definitions.
12792 The latter provokes a warning from gcc about the empty else, when
12793 followed by ";". Also, without that trailing semicolon, it would
12794 silently swallow up any following statement.
12795 * syntax.h (SETUP_SYNTAX_TABLE)
12796 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12797 * buffer.h (DECODE_POSITION): Likewise.
12798 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12799 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12800 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12801 (FETCH_CHAR_ADVANCE): Likewise.
12802 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12803
128042008-02-07 Jim Meyering <meyering@redhat.com>
12805
12806 * lread.c [lint]: Don't include <sys/inode.h>.
12807
128082008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12809
12810 * xselect.c (x_handle_dnd_message):
12811 * xmenu.c (digest_single_submenu, xmenu_show):
12812 * xdisp.c (with_echo_area_buffer_unwind_data)
12813 (format_mode_line_unwind_data, unwind_format_mode_line)
12814 (display_menu_bar):
12815 * eval.c (Ffetch_bytecode):
12816 * doc.c (store_function_docstring):
12817 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12818 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12819 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12820
128212008-02-07 Kenichi Handa <handa@m17n.org>
12822
12823 * ftxfont.c (ftxfont_open): Don't set
12824 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12825
12826 * ftfont.c (ftfont_open): Fix previous change.
12827
128282008-02-06 Jason Rumney <jasonr@gnu.org>
12829
12830 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12831 Use cached metrics for ASCII characters.
12832 (w32font_open_internal): Don't set font's owning_frame.
12833 Cache metrics for ASCII characters.
12834
12835 * w32font.h (struct w32font_info): Add ascii_metrics.
12836 Remove owning_frame.
12837
128382008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12839
12840 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12841 to negative value.
12842
12843 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12844
12845 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12846
12847 * charset.c (syms_of_charset): Set QCtest and Qeq.
12848
128492008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12850
12851 * process.c (Fstart_process):
12852 * callproc.c (Fcall_process): Handle the case where
12853 Funhandled_file_name_directory returns nil.
12854
12855 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12856 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12857 * font.c (check_gstring): Use them and AREF to access the vector before
12858 we know it's really a gstring.
12859 (Ffont_shape_text): Fix typo.
46e722a9 12860 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12861
12862 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12863 Declare.
12864
12865 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12866
128672008-02-05 Jason Rumney <jasonr@gnu.org>
12868
12869 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12870 Set smallest_font_height and smallest_char_width in display info.
12871
128722008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12873
12874 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12875
128762008-02-05 Miles Bader <miles@gnu.org>
12877
12878 * xfaces.c (get_lface_attributes, merge_named_face)
12879 (lookup_named_face, lookup_derived_face, realize_named_face):
12880 Revert 2008-02-01 change by cyd@stupidchicken.com.
12881
128822008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12883
12884 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12885 fallback fonts.
12886 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12887
128882008-02-04 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12891 set full_name.
12892 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12893
128942008-02-03 Jason Rumney <jasonr@gnu.org>
12895
12896 * makefile.w32-in (OBJ1): Include font.o here.
12897 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12898
128992008-02-02 Jason Rumney <jasonr@gnu.org>
12900
12901 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12902
129032008-02-01 Jason Rumney <jasonr@gnu.org>
12904
12905 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12906
12907 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12908
129092008-02-01 Andreas Schwab <schwab@suse.de>
12910
12911 * Makefile.in (shortlisp, lisp): Update for rename of
12912 ../lisp/language/myanmar.el.
12913
129142008-02-01 Chong Yidong <cyd@stupidchicken.com>
12915
12916 * xfaces.c (get_lface_attributes): Delete function.
12917 (merge_named_face, lookup_named_face, lookup_derived_face)
12918 (realize_named_face): Call lface_from_face_name directly, and use
12919 the fact that merge_face_vectors does not alter its FROM argument.
12920
129212008-02-01 Jason Rumney <jasonr@gnu.org>
12922
12923 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12924 input in the default locale. Handle non-Unicode multibyte input.
12925
129262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12927
12928 * fontset.c (reorder_font_vector): Exclude nil elements from the
12929 font group. Don't try multiple fonts.
12930 (fontset_font): Adjust for the above change.
12931 (Finternal_char_font): Return nil if the found font doesn't
12932 contain the character ch.
12933
12934 * Makefile.in (lisp, shortlisp): Add cham.el.
12935
129362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12937
12938 * font.h (FONTP): Make it return 1 also for a font-object.
12939
12940 * .gdbinit (xfontset): New function.
12941
12942 * font.c (font_find_for_lface): Check if the character C is
12943 supported or not only for the first font.
12944
12945 * fontset.c (reorder_font_vector): Fix typo.
12946 (fontset_find_font): Don't add a font-spec specifying a script.
12947 Use 0 (not Qt) for the indication of empty font-group. Change the
12948 format of RFONT-DEF. Return Qt if no font in the font-group
12949 support the character.
12950 (fontset_font): Adjust for the above change. If no font was
12951 found the character, remember that.
12952 (face_for_char): Adjust for the change of RFONT-DEF.
12953 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12954 no font for the target.
12955 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12956
129572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12958
12959 * font.c (font_load_for_face): Handle the case that the font in
12960 face->lface is a string.
12961
129622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12963
12964 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12965
129662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12967
12968 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12969 Fix previous change. If the frame is not on a window system,
12970 signal an error.
12971
129722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12973
12974 * coding.c (decode_coding_object, encode_coding_object): Adjust
12975 marker positions after conversion.
12976
12977 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12978
129792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12980
12981 * font.c (font_find_for_lface): Fix the handling of the return
12982 value of font_has_char.
12983 (Ffont_shape_text): Fix previous change.
12984
12985 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12986 (fontset_ref_and_range): Delete it.
12987 (fontset_find_font): Call char_table_ref_and_range instead of
12988 FONTSET_REF_AND_RANGE.
12989 (make_fontset): Don't setup font groups of Latin here.
12990 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12991 (new_fontset_from_font): Make the specified font the default for
12992 all Latin characters.
12993
129942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12995
12996 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12997 is on a window system before accessing the fontset of the frame.
12998
129992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13000
13001 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13002
13003 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13004 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13005
13006 * font.c (Ffont_shape_text): If the font driver doesn't have a
13007 shaper function, make zero-width glyphs to have at least one-pixel
13008 width. Fix setting of `to' field of glyphs.
13009
130102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13011
13012 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13013 glyphs.
13014
13015 * font.h (struct font_driver): Improve docstring of member `shape'.
13016
130172008-02-01 Kenichi Handa <handa@m17n.org>
13018
13019 * composite.c (syms_of_composite): Fix docstring of
13020 auto-composition-function.
13021
13022 * font.h (LGLYPH_SIZE): New macro.
13023
13024 * font.c (Ffont_fill_gstring): Stop filling when a character not
13025 supported by the font is found.
13026 (Ffont_shape_text): When a shape callback function returns nil,
13027 try at most two more times with larger gstring.
13028 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13029
13030 * xdisp.c (handle_auto_composed_prop): Change the argument to
13031 auto-composition-function.
13032
13033 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13034 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13035 Lispy glyph and store it in the lgstring.
13036
13037 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13038
13039 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13040
130412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13042
13043 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13044
13045 * fontset.c (Vfont_encoding_charset_alist): New variable.
13046 (syms_of_fontset): DEFVAR it.
13047 (reorder_font_vector, fontset_find_font): Optimize for the case of
13048 no need of reordering.
13049 (face_for_char): Map the charset property by
13050 Vfont_encoding_charset_alist.
13051
130522008-02-01 Jason Rumney <jasonr@gnu.org>
13053
13054 * w32font.c (logfonts_match): Don't check adstyle here.
13055 (font_matches_spec): Check here against physical font instead.
13056 (add_font_entity_to_list): Avoid some substitutions.
13057
13058 * font.c (font_parse_fcname): Default weight and slant to normal.
13059 (font_score): Prefer normal fonts if weight or slant unspecified.
13060 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13061 match freetype scores.
13062
130632008-02-01 Jason Rumney <jasonr@gnu.org>
13064
13065 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13066 font, as it may have been deleted.
13067 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13068 most common hyphenless variation.
13069 (logfonts_match): Check generic family.
13070 (font_matches_spec): Don't check generic family here.
13071 (fill_in_logfont): Set generic family based on adstyle.
13072
13073 * w32font.h (w32font_get_cache): Update declaration.
13074
130752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13076
13077 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13078
13079 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13080 If none of the new drivers are available, call font_update_drivers
13081 with the old drivers.
13082
13083 * w32font.c (w32font_get_cache): Adjust the argument type.
13084
13085 * xfont.c (xfont_get_cache): Adjust the argument type.
13086
13087 * font.h (struct font_driver): Change argument type of get_cache.
13088
13089 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13090
13091 * font.c (Ffont_get): Fix arguments to Fassoc.
13092 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13093 (font_clear_cache): New function.
13094 (font_list_entities, font_matching_entity): Use font_get_cache.
13095 (font_update_drivers): Call font_clear_cache when finishing a driver.
13096
13097 * fontset.c (fontset_find_font): Fix previous change.
13098
130992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13100
13101 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13102 dpyinfo->font_table.
13103 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13104 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13105
13106 * font.c (font_at): Handle the case that the arg C is negative.
13107 Handle the unibyte case.
13108 (Ffont_at): Call font_at with the arg C -1.
13109
13110 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13111 the position here, and call font_at with the arg C -1.
13112 Don't check the range of the existing composition at the point.
13113
131142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13115
13116 * fontset.c (fontset_add): New args charset_id and family.
13117 Change caller.
13118 (load_font_get_repertory, fontset_find_font): Assume that
13119 font_spec is always a font-spec object.
13120 (Fset_fontset_font): Always store a font-spec object in a fontset.
13121
13122 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13123 instead of get_property_and_range.
13124
131252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13126
13127 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13128 (xftfont_open): Don't keep locking face.
13129 (xftfont_close): Don't unlock face.
13130 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13131
13132 * fontset.c (fontset_find_font): Don't prefer a font of
13133 supplementary charset.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13138 script, langsys_tag to langsys, new member script.
13139 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13140 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13141 listing to the script specified in that property. Fix arg to
13142 OTF_check_features.
13143
131442008-02-01 Jason Rumney <jasonr@gnu.org>
13145
13146 * w32font.h: New file.
13147
13148 * w32font.c: Include it.
13149 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13150 (w32font_open): Set owning_frame.
13151 (w32font_text_extents): Use owning_frame.
13152 (struct font_callback_data): Add opentype_only field.
13153 (add_font_entity_to_list): Use it to filter fonts.
13154 Don't check against full name.
13155 (w32font_list_internal): New function.
13156 (w32font_list): Use it.
13157 (w32font_match_internal): New function.
13158 (w32font_match): Use it.
13159 (w32font_open_internal): New function.
13160 (w32font_open): Use it.
13161 (w32font_get_cache, w32font_close, w32font_has_char)
13162 (w32font_encode_char, w32font_text_extents, w32font_draw):
13163 Make non-static.
13164
13165 * makefile.w32-in (w32font.o): Depend on w32font.h.
13166
131672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13168
13169 * charset.c (Fdefine_charset_internal): Record a supplementary
13170 charset at the tail of Vcharset_order_list.
13171
13172 * font.c (Ffont_shape_text): Fix the return value.
13173
13174 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13175
13176 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13177
131782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13179
13180 * ftfont.c (struct OpenTypeSpec): New struct.
13181 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13182 (ftfont_get_open_type_spec): New function.
13183 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13184
13185 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13186
131872008-02-01 Jason Rumney <jasonr@gnu.org>
13188
13189 * w32font.c (add_font_entity_to_list): Compare only the beginning
13190 of full name.
13191
131922008-02-01 Kenichi Handa <handa@m17n.org>
13193
13194 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13195 Never return HANDLED_RECOMPUTE_PROPS.
13196
131972008-02-01 Kenichi Handa <handa@m17n.org>
13198
13199 * font.c (font_gstring_produce): Delete it.
13200
13201 * composite.h (COMPOSITION_METHOD):
13202 Handle COMPOSITION_WITH_GLYPH_STRING.
13203
132042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13205
13206 * xfont.c (Qx): Delete.
13207 (syms_of_xfont): Don't initialize Qx.
13208
13209 * composite.h (enum composition_method):
13210 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13211
132122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13213
13214 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13215 (choose_face_font): Accept new form of font-spec.
13216
13217 * frame.h (font_driver_list): Declare it unconditionally.
13218 (struct frame): Define members font_driver_list and font_data_list
13219 unconditionally.
13220
13221 * fontset.c: Include "font.h" unconditionally.
13222 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13223 (Fset_fontset_font): Accept a font-spec object.
13224
13225 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13226 PIXEL_SIZE part a wild card.
13227
13228 * dispextern.h (struct glyph_string): Define members clip and
13229 num_clips unconditionally.
13230 (struct face): Define members font_info and extra unconditionally.
13231
13232 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13233 ftfont_info only when HAVE_LIBOTF is defined.
13234
132352008-02-01 Andreas Schwab <schwab@suse.de>
13236
13237 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13238 and end.
13239
132402008-02-01 Jason Rumney <jasonr@gnu.org>
13241
13242 * w32font.c (w32font_driver): Add new fields.
13243
132442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13245
13246 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13247 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13248 (LIBES): Add @M17N_FLT_CFLAGS@.
13249
13250 * composite.c (compose_text): Don't treat the new style
13251 composition specially.
13252
13253 * emacs.c (main): Call syms_of_font unconditionally.
13254
13255 * font.h (FONT_ENTITY_NOT_LOADABLE)
13256 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13257 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13258 (struct font_driver): New member shape.
13259 (font_registry_charsets): Extern it.
13260 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13261 (font_otf_capability, font_drive_otf): Delete their externs.
13262
13263 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13264 (font_charset_alist, font_registry_charsets): Move from xfont.c
13265 and rename.
13266 (font_prop_validate_otf): New function.
13267 (font_property_table): Register it for QCotf.
13268 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13269 (font_drive_otf): Delete.
13270 (font_prepare_composition): New arg F. Adjust for the change of
13271 lispy gstring.
13272 (font_find_for_lface): New arg C.
13273 (font_load_for_face): Adjust for the change of font_find_for_lface.
13274 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13275 lispy gstring.
13276 (Ffont_shape_text): New function.
13277 (Fopen_font): If the font size is not given, use 12-pixel.
13278 (Ffont_at): New arg STRING.
13279 (syms_of_font): Initalize font_charset_alist.
13280 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13281 conditionally.
13282
13283 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13284 fonts of the same font-spec. Change the format of RFONT-DEF.
13285 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13286 Adjust for the change of RFONT-DEF.
13287 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13288
13289 * ftfont.h: New file.
13290
13291 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13292 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13293 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13294 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13295 font_otf_capability and font_drive_otf, set ftfont_shape.
13296 (ftfont_list): Adjust for the change of :otf property value.
13297 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13298 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13299 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13300 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13301 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13302 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13303
13304 * w32term.c (x_draw_composite_glyph_string_foreground):
13305 Adjust for the change of lispy gstring.
13306
13307 * xdisp.c (handle_composition_prop): Adjust for the change of
13308 lispy gstring. Call a function for auto-composition with the
13309 third arg it->window.
13310 (fill_composite_glyph_string): Adjust for the change of lispy string.
13311 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13312
13313 * xfaces.c (set_font_frame_param): Adjust for the change of
13314 font_find_for_lface.
13315
13316 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13317 (xfont_registry_charsets): Likewise. Change caller.
13318 (syms_of_xfont): Don't handle x_font_charset_alist.
13319
13320 * xftfont.c: Include "ftfont.h".
13321 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13322 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13323 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13324 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13325 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13326 Set xftfont_driver.shape to xftfont_shape.
13327
13328 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13329 the change of lispy gstring.
13330
133312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13332
13333 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13334
133352008-02-01 Jason Rumney <jasonr@gnu.org>
13336
13337 * w32font.c (w32font_draw): Fill background manually.
13338
133392008-02-01 Jason Rumney <jasonr@gnu.org>
13340
13341 * font.c (Qfontp): Remove unused symbol.
13342 (QCantialias): New symbol.
13343 (syms_of_font): Define it.
13344 (font_property_table): Set a validator for QCantialias.
13345
13346 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13347 Define if not already.
13348 (QCfamily): Share with xfaces.c.
13349 (Qstandard, Qsubpixel, Qnatural): New symbols.
13350 (syms_of_w32font): Define them. Don't define QCfamily here.
13351 (w32_antialias_type, lispy_antialias_type): New functions.
13352 (w32_enumfont_pattern_entity): New arg requested_font.
13353 Set antialias parameter if non-default was requested.
13354 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13355
133562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13357
13358 * lread.c (read1): Undo the previous change.
13359
133602008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13361
13362 * frame.c (Fdelete_frame): Call font_update_drivers only when
13363 USE_FONT_BACKEND is defined.
13364
133652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13366
13367 * font.h (struct font_bitmap): New member bits_per_pixel.
13368 (struct font_driver): New members start_for_frame and end_for_frame.
13369 (struct font_data_list): New struct.
13370 (font_put_frame_data, font_get_frame_data): Extern them.
13371
13372 * frame.h (struct frame): New member font_data_list.
13373
13374 * font.c (font_update_drivers): Call driver->start_for_frame and
13375 driver->end_for_frame at proper timings.
13376 (font_put_frame_data, font_get_frame_data): New functions.
13377 (Ffont_spec): Add usage in the docstring.
13378
13379 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13380 (Fdelete_frame): Call font_update_drivers.
13381
13382 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13383 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13384 (xftfont_get_xft_draw): New function.
13385 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13386 (xftfont_end_for_frame): New function.
13387 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13388
13389 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13390 Change argument. Cache GCs in the per-frame data.
13391 (struct ftxfont_frame_data): New struct.
13392 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13393 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13394 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13395 (ftxfont_end_for_frame): New function.
13396 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13397
13398 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13399
134002008-02-01 Kenichi Handa <handa@m17n.org>
13401
13402 * xselect.c (Vselection_coding_system)
13403 (Vnext_selection_coding_system): Delete them.
13404 (syms_of_xselect): Don't declare selection-coding-system and
13405 next-selection-coding-system. They are declared in select.el.
13406
134072008-02-01 Jason Rumney <jasonr@gnu.org>
13408
13409 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13410
13411 * w32fns.c: Include imm.h.
13412 (get_composition_string_fn, get_ime_context_fn): New optional
13413 system functions.
13414 (globals_of_w32fns): Load them from imm32.dll.
13415 (ignore_ime_char): New flag.
13416 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13417 WM_IME_ENDCOMPOSITION messages.
13418
13419 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13420 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13421
134222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13423
13424 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13425 (READCHAR_REPORT_MULTIBYTE): New macro.
13426 (readchar): New 2nd arg MULTIBYTE.
13427 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13428 Make symbol's name multibyte according to the multibyteness of the
13429 source.
13430
134312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13432
13433 * xfaces.c (face_for_overlay_string): Call lookup_face with
13434 correct arguments (fix of synching with the trunk).
13435
134362008-02-01 Kenichi Handa <handa@m17n.org>
13437
13438 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13439 (font_prop_validate_non_neg, font_prop_validate_spacing):
13440 Delete argument prop_index.
13441 (font_property_table): Change arguments to validater. Change Callers.
13442 (font_lispy_object): Delete.
13443 (font_at): Use font_find_object instead fo font_lispy_object.
13444
134452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13446
13447 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13448 and file names.
13449
134502008-02-01 Jason Rumney <jasonr@gnu.org>
13451
13452 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13453 (font_matches_spec): Remove debug output.
13454 (add_font_entity_to_list): Avoid using substituted fonts.
13455
134562008-02-01 Jason Rumney <jasonr@gnu.org>
13457
13458 * doc.c (Fsnarf_documentation):
13459 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13460
134612008-02-01 Miles Bader <miles@gnu.org>
13462
13463 * dispextern.h (struct glyph_row): Only define "clip" field if
13464 HAVE_WINDOW_SYSTEM is defined.
13465
134662008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13467
13468 Fix up multi-tty merge.
13469
13470 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13471 and indentation.
13472
13473 * xfaces.c (free_realized_face, clear_face_gcs):
13474 Include font_done_for_face in the input_blocked section, just in case.
13475
13476 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13477 (get_char_face_and_encoding): Undo last change and remove the *other*
13478 duplicate definition (i.e. keep the one that's better scoped and that
13479 includes code for the font-backend).
13480
13481 * terminal.c (create_terminal): Default keyboard_coding to
13482 `no-conversion' and terminal_coding to `undecided'.
13483
13484 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13485
13486 * fontset.c (free_realized_fontsets): Check that the table entry does
13487 contain a fontset before trying to compare it to `base'.
13488
13489 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13490 syms_of_charset, and syms_of_coding earlier because init_window_once
13491 now needs Vcoding_system_hash_table to be setup.
13492
13493 * coding.h (default_buffer_file_coding): Remove.
13494
13495 * coding.c (default_buffer_file_coding): Remove.
13496 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13497 than ->symbol, and use the terminal-local coding system.
13498 (syms_of_coding): Don't setup the coding-systems that are not
13499 terminal-local.
13500 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13501
13502 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13503 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13504
13505 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13506 in chartab.c and were re-added here by mistake.
13507 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13508
13509 * doc.c (Fsnarf_documentation):
13510 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13511 src to etc.
13512
13513 * ChangeLog.10: Add mistakenly removed entry.
13514
135152008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13516
13517 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13518
135192008-02-01 Miles Bader <miles@gnu.org>
13520
13521 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13522 Add extra args to FACE_FOR_CHAR.
13523
135242008-02-01 Kenichi Handa <handa@m17n.org>
13525
13526 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13527 in sequence.
13528
13529 * chartab.c (map_sub_char_table, map_char_table): If the range
13530 contains just one character, call the function with that character
13531 even if the depth is not 3.
13532
135332008-02-01 Jason Rumney <jasonr@gnu.org>
13534
13535 * w32font.c (w32font_text_extents): Calculate metrics for the
13536 whole string.
13537
135382008-02-01 Jason Rumney <jasonr@gnu.org>
13539
13540 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13541
135422008-02-01 Jason Rumney <jasonr@gnu.org>
13543
13544 * w32term.c (x_set_glyph_string_clipping): Use
13545 get_glyph_string_clip_rects.
13546 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13547 Adjust for the change of struct glyph_string.
13548
13549 * w32font.c (w32font_draw): Do clipping here.
13550
135512008-02-01 Kenichi Handa <handa@m17n.org>
13552
13553 * xftfont.c (xftfont_draw): Adjust for the change of struct
13554 glyph_string.
13555
13556 * xterm.c (x_set_glyph_string_clipping): Use
13557 get_glyph_string_clip_rects.
13558 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13559 Adjust for the change of struct glyph_string.
13560
13561 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13562 the resulting clip(s}.
13563 (expose_overlaps): Add arg r. Change callers. Set it to
13564 row->clip temporarily.
13565 (expose_window): Redraw rows overlapping the exposed area.
13566
13567 * dispextern.h (struct glyph_row): New member clip.
13568 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13569 clip_height, new member clip, and num_clips.
13570
135712008-02-01 Kenichi Handa <handa@m17n.org>
13572
13573 * data.c (Fchar_or_string_p): Fix docstring.
13574
135752008-02-01 Kenichi Handa <handa@m17n.org>
13576
13577 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13578 create a temporary XftDraw object.
13579
135802008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * font.c (Ffontp): Fix docstring.
13583
13584 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13585 strong evidence of ISO-2022.
13586
135872008-02-01 Kenichi Handa <handa@m17n.org>
13588
13589 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13590 SYNTAX_ENTRY_FOLLOW_PARENT.
13591
135922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13593
13594 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13595 its type.
13596 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13597 Update to the new type of weak_hash_tables and next_weak.
13598
13599 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13600 a plain C pointer to Lisp_Hash_Table.
13601
13602 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13603 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13604 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13605 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13606 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13607 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13608 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13609 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13610 (GC_EQ): Remove since they've been identical to their non-GC_
13611 alter-egos ever since the markbit was eradicated.
13612
13613 * alloc.c:
13614 * buffer.c:
13615 * buffer.h:
13616 * data.c:
13617 * fileio.c:
13618 * filelock.c:
13619 * fns.c:
13620 * frame.h:
13621 * lisp.h:
13622 * macterm.c:
13623 * print.c:
13624 * process.c:
13625 * w32fns.c:
13626 * w32menu.c:
13627 * w32term.c:
13628 * xfns.c:
13629 * xmenu.c:
13630 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13631
136322008-02-01 Kenichi Handa <handa@m17n.org>
13633
13634 * chartab.c (map_sub_char_table): Make it work for the top-level
13635 char-table. Fix handling of parent char-table.
13636 (map_char_table): Adjust for the above change.
13637
136382008-02-01 Jason Rumney <jasonr@gnu.org>
13639
13640 * w32font.c (Qgdi): Rename from Qw32.
13641
136422008-02-01 Jason Rumney <jasonr@gnu.org>
13643
13644 * w32bdf.c (get_quoted_string): Make function static.
13645
136462008-02-01 Kenichi Handa <handa@m17n.org>
13647
13648 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13649 bigger ascent and descent than those of the font, use them as
13650 font's ascent and descent.
13651
136522008-02-01 Kenichi Handa <handa@m17n.org>
13653
13654 * Makefile.in (${lispsource}international/charprop.el): Move this
13655 target within "#ifdef HAVE_UNIDATA" and "#endif".
13656
136572008-02-01 Kenichi Handa <handa@m17n.org>
13658
13659 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13660 (shortlisp): Add ../lisp/language/tai-viet.el.
13661
136622008-02-01 Ulrich Mueller <ulm@gentoo.org>
13663
13664 * Makefile.in (${lispsource}international/charprop.el): Depend on
13665 temacs${EXEEXT}.
13666
136672008-02-01 Jason Rumney <jasonr@gnu.org>
13668
13669 * w32font.c (w32font_close): Delete the GDI font object.
13670
13671 * w32menu.c: Include character.h.
13672
13673 * w32proc.c: Likewise.
13674
13675 * w32select.c: Likewise.
13676
13677 * makefile.w32-in (w32proc.o): Depend on character.h.
13678
136792008-02-01 Jason Rumney <jasonr@gnu.org>
13680
13681 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13682
13683 * w32menu.c (syms_of_w32menu): Likewise.
13684
13685 * w32proc.c (syms_of_ntproc): Likewise.
13686
13687 * w32select.c (syms_of_w32select): Likewise.
13688
13689 * w32term.c (syms_of_w32term): Likewise.
13690
136912008-02-01 Jason Rumney <jasonr@gnu.org>
13692
13693 * w32font.c (w32font_draw): Delete brush after using it.
13694
136952008-02-01 Jason Rumney <jasonr@gnu.org>
13696
13697 * w32font.c (w32font_open): Don't set font_idx.
13698 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13699 to font settings.
13700 (w32font_draw): Fill background explicitly.
13701
137022008-02-01 Jason Rumney <jasonr@gnu.org>
13703
13704 * w32term.c (w32_initialize): Don't call w32font_initialize.
13705
13706 * w32font.c (w32font_info): Remove subranges.
13707 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13708 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13709 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13710 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13711 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13712 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13713 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13714 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13715 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13716 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13717 New symbols.
13718 (font_callback_data): New struct.
13719 (w32font_list, w32font_match): Use it.
13720 (w32font_open): Don't populate subranges.
13721 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13722 (w32font_encode_char): Always return unicode code-point as-is.
13723 (w32font_text_extents): Supply a transformation matrix to
13724 GetGlyphOutline. Never look up by glyph index. Avoid looping
13725 twice. Use unicode version of GetTexExtentPoint32 instead of
13726 glyph index version.
13727 (set_fonts_frame): Remove.
13728 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13729 set frame parameter. Use backward compatible fake foundries.
13730 Save generic family in extra slot under QCfamily. Make width slot
13731 constant. Save QCspacing value. Save list of scripts instead of
13732 binary subranges.
13733 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13734 (add_font_entity_to_list): Use font_callback_data struct. Filter
13735 unwanted fonts.
13736 (add_one_font_entity_to_list): Use font_callback_data struct.
13737 (w32_registry): Default to iso10646_1.
13738 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13739 string font registries. Don't fill in font name if it is a generic
13740 family name, fill family instead. Use spacing, family and script
13741 extra info to fill pitch, family and charset fields.
13742 (list_all_matching_fonts): Use font_callback_data struct.
13743 (unicode_range_for_char): Remove.
13744 (font_supported_scripts): New function.
13745 (w32font_initialize): Remove.
13746 (syms_of_w32font): Update which symbols are defined.
13747
137482008-02-01 Jason Rumney <jasonr@gnu.org>
13749
13750 * font.c (font_pixel_size): Reverse assq_no_quit args.
13751
13752 * w32term.h (FONT_WIDTH): Report max width, not average.
13753 (FONT_MAX_WIDTH): Remove.
13754 (FONT_AVG_WIDTH): New macro.
13755
13756 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13757 redefinition of FONT_WIDTH.
13758
13759 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13760 (w32_cache_char_metrics): Use FONT_WIDTH.
13761
13762 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13763
137642008-02-01 Jason Rumney <jasonr@gnu.org>
13765
13766 * w32font.c (w32font_open): Make lfHeight negative.
13767
13768 * w32fns.c (x_default_font_parameter): Use new style font name.
13769 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13770
137712008-02-01 Jason Rumney <jasonr@gnu.org>
13772
13773 * w32font.c (QCsubranges): New symbol.
13774 (w32font_open, w32font_has_char): Get subranges from subproperty
13775 of extra.
13776 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13777 (syms_of_w32font): Define :subranges symbol.
13778
13779 * font.c (font_put_extra): Expose externally.
13780
13781 * font.h (font_put_extra): Move declaration from font.c.
13782
13783 * font.c (Ffont_get): Use font driver to determine otf capability.
13784 (adjust_anchor): Check if driver defines anchor_point before using.
13785
13786 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13787 (w32font_draw): Use options.
13788 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13789 Fix detection of truetype fonts.
13790 (registry_to_w32_charset): Handle charsets other than iso8859-1
13791 expressed as lisp symbols.
13792 (w32_registry): Express charset as lisp symbol.
13793 (fill_in_logfont): Reverse pixel and point height logic.
13794 Don't set width here. Set quality to default.
13795
13796 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13797 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13798
13799 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13800 Remove redundant loop and allocation.
13801
13802 * makefile.w32-in (font.o, w32font.o): New objects.
13803 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13804 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13805
13806 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13807 STORE_XCHARB a valid l-value.
13808
13809 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13810 calculations for non-Truetype fonts.
13811 (x_draw_glyph_string): Sync with xterm.c.
13812 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13813 Remove redundant code.
13814 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13815
13816 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13817 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13818
13819 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13820 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13821
13822 * w32font.c: New file for w32 font backend.
13823
138242008-02-01 Kenichi Handa <handa@m17n.org>
13825
13826 * term.c: Don't include "buffer.h" twice.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * character.c (Funibyte_string): New function.
13831 (syms_of_character): Defsubr it.
13832
138332008-02-01 Jason Rumney <jasonr@gnu.org>
13834
13835 * w32term.c [USE_FONT_BACKEND]:
13836 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13837 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13838 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13839 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13840 (x_free_frame_resources): Sync with xterm.c.
13841
138422008-02-01 Andreas Schwab <schwab@suse.de>
13843
13844 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13845 char-table size.
13846
138472008-02-01 Kenichi Handa <handa@m17n.org>
13848
13849 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13854 font_otf_gpos, add font_drive_otf.
13855
13856 * fontset.c (fontset_find_font): Pay attention to font size
13857 specified for a font.
13858 (reorder_font_vector): Check contents of font_def.
13859
13860 * font.c (struct otf_list): Delete it.
13861 (otf_list): Make it a lisp variable.
13862 (otf_open): Use lispy otf_list.
13863 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13864 (check_otf_features): New function.
13865 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13866 New functions.
13867 (font_drive_otf): New function merging font_otf_gsub and
13868 font_otf_gpos.
13869 (font_open_for_lface): New arg spec. Change argument order.
13870 (font_load_for_face): Adjust for the change of font_open_for_lface.
13871 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13872 Ffont_otf_gpos.
13873 (syms_of_font): Staticpro otf_list. Delete defsubr of
13874 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13875
13876 * xfaces.c (set_font_frame_param): Adjust for the change of
13877 font_open_for_lface.
13878
13879 * font.h (font_open_for_lface): Adjust prototype.
13880 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13881 member otf_drive.
13882 (font_otf_gsub, font_otf_gpos): Delete externs.
13883 (font_drive_otf): Extern it.
13884
138852008-02-01 Kenichi Handa <handa@m17n.org>
13886
13887 * font.c (font_at): If the window W is not on a window system,
13888 return Qnil.
13889
13890 * coding.c (produce_chars, encode_coding): Don't call
13891 insert_from_gap if no characters to produce.
13892
138932008-02-01 Kenichi Handa <handa@m17n.org>
13894
13895 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13896 Fclear_face_cache.
13897
13898 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13899
139002008-02-01 Miles Bader <miles@gnu.org>
13901
13902 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13903 Parse "--disable-font-backend" option.
13904 (standard_args): Add "--disable-font-backend" option.
13905
139062008-02-01 Kenichi Handa <handa@m17n.org>
13907
13908 * fontset.c (fontset_find_font): New function.
13909 (fontset_font): Use fontset_find_font.
13910 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13911 Register the specified font for all Latin characters.
13912 (new_fontset_from_font): Register the specified font for all Latin
13913 characters.
13914 (dump_fontset): For a realized fontset, include the base fontset
13915 name in the returned vector.
13916
139172008-02-01 Kenichi Handa <handa@m17n.org>
13918
13919 * character.h (CHAR_STRING): Cast C to unsigned on calling
13920 char_string.
13921
13922 * character.c (char_string): Type of arg C changed to unsigned.
13923 Signal an error if C is an invalid character code.
13924
13925 * editfns.c (general_insert_function, Fchar_to_string):
13926 Use CHARACTERP, not INTEGERP.
13927
139282008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13931 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13932
13933 * regex.c (analyse_first): Fix for multibyte characters in "case
13934 charset:" and "case categoryspec:".
13935
139362008-02-01 Andreas Schwab <schwab@suse.de>
13937
13938 * Makefile.in (LIBES): Move standard libraries to the end.
13939
139402008-02-01 Kenichi Handa <handa@m17n.org>
13941
13942 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13943 nonzero, don't shrink the buffer nextb.
13944
13945 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13946
13947 * coding.c (coding_alloc_by_making_gap): New arg offset.
13948 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13949 offset.
13950 (decode_coding_iso_2022): Update coding->safe_charsets.
13951 (decode_coding_gap): Temporarily set
13952 current_buffer->text->inhibit_shrinking to 1.
13953
139542008-02-01 Kenichi Handa <handa@m17n.org>
13955
13956 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13957 indexing into elements of s->cmp and s->char2b.
13958
139592008-02-01 Juanma Barranquero <lekktu@gmail.com>
13960
13961 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13962
139632008-02-01 Kenichi Handa <handa@m17n.org>
13964
13965 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13966 target_multibyte instead of multibyte.
13967 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13968 (bcmp_translate): Change the argument name from multibyte to
13969 target_multibyte.
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 These changes are to compile a regexp into a pattern that can be
13974 used both for multibyte and unibyte targets.
13975
13976 * Makefile.in (search.o): Depend on charset.h.
13977
13978 * character.c (multibyte_char_to_unibyte_safe): New function.
13979
13980 * search.c: Include "charset.h".
13981 (compile_pattern_1): Delete argument multibyte. Don't set
13982 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13983 (compile_pattern): Don't compare cp->buf.target_multibyte.
13984 Compare cp->buf.charset_unibyte.
13985 (compile_pattern): Set cp->buf.target_multibyte.
13986
13987 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13988
13989 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13990
13991 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13992 multibyte. Change callers.
13993 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13994 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13995 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13996 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13997 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13998 (regex_compile): Make the compiled pattern usable both for
13999 multibyte and unibyte targets.
14000 (analyse_first): Make the fastmap usable both for multibyte and
14001 unibyte targets.
14002 (TRANSLATE_VIA_MULTIBYTE): Delete.
14003 (re_match_2_internal): Pay attention to the case that the
14004 multibyteness of bufp and target may be different.
14005
140062008-02-01 Kenichi Handa <handa@m17n.org>
14007
14008 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14009 empty box occupy at least one column width.
14010
140112008-02-01 Miles Bader <miles@gnu.org>
14012
14013 * Makefile.in: Remove redundant HAVE_XFT clause.
14014
140152008-02-01 Kenichi Handa <handa@m17n.org>
14016
14017 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14018
140192008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14022 being nil.
14023
140242008-02-01 Kenichi Handa <handa@m17n.org>
14025
14026 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14027
140282008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * search.c (simple_search): Fix previous change.
14035
140362008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * xftfont.c (ftfont_font_format): Extern declaration.
14039
14040 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14041
14042 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14043 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14044
14045 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14046 (ftfont_font_format): Fix previous change.
14047
14048 * font.h (Ffont_xlfd_name): EXFUN it.
14049
14050 * font.c (font_parse_xlfd): Fix the array size of `f'.
14051 (register_font_driver): Use EQ to compare driver->type.
14052
14053 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14054 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14055 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14056
140572008-02-01 Kenichi Handa <handa@m17n.org>
14058
14059 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14060 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14061
140622008-02-01 Kenichi Handa <handa@m17n.org>
14063
14064 * xfont.c (xfont_open): Set font->format.
14065
14066 * xftfont.c (xftfont_open): Set font->format.
14067
14068 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14069 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14070 (ftfont_open): Set font->format.
14071 (ftfont_font_format): New function.
14072
14073 * font.h (struct font): New member format.
14074
14075 * font.c (Qopentype): New variable.
14076 (syms_of_font): Defsym it.
14077 (Fquery_font): Change the format of the last element of the return
14078 value.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14083 last resort.
14084
140852008-02-01 Kenichi Handa <handa@m17n.org>
14086
14087 * coding.c (detect_coding_charset): Fix detection of multi-byte
14088 charset.
14089
140902008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14091
14092 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14093
140942008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * xdisp.c (get_next_display_element): Set it->face_id for the
14097 first component of a composition.
14098 (x_produce_glyphs): Check if the font is changed or not for composition.
14099
141002008-02-01 Kenichi Handa <handa@m17n.org>
14101
14102 * fontset.c (Qlatin): New variable.
14103 (syms_of_fontset): Define it as a lisp symbol.
14104 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14105
141062008-02-01 Kenichi Handa <handa@m17n.org>
14107
14108 * font.c (font_unparse_fcname): Pay attention to the case that
14109 some of font property is a null string.
14110
141112008-02-01 Kenichi Handa <handa@m17n.org>
14112
14113 * term.c: Include "composite.h".
14114 (encode_terminal_code): Output all components of composition.
14115 Check the size of encode_terminal_src.
14116 (produce_glyphs): For composition, call produce_composite_glyph.
14117 (append_composite_glyph, produce_composite_glyph): New functions.
14118
14119 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14120 is not found, get font_info from the current ascii face.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14125 buffer-file-name to Qnil before calling insert_from_buffer.
14126
14127 * font.c (font_unparse_fcname): Pay attention to the case that
14128 foundry is a null string.
14129
141302008-02-01 Kenichi Handa <handa@m17n.org>
14131
14132 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14133
14134 * font.c (Qunicode_sip): New variable.
14135 (syms_of_font): Declare it as a Lisp symbol.
14136
14137 * font.h (Qunicode_sip): Extern it.
14138
141392008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * composite.c (get_composition_id): Pay attention to TAB component.
14142
14143 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14144 TAB. Adjust for the change of s->char2b which always points to
14145 the first element of allocated memory.
14146
14147 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14148
14149 * xdisp.c (handle_composition_prop): Set it->c to the first
14150 non-TAB component.
14151 (fill_composite_glyph_string): Change argument.
14152 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14153 (x_produce_glyphs): Fix handling of left/right padding.
14154
141552008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * coding.c (detect_coding_system): Fix for handling off
14158 inhibit_iso_escape_detection. Fix for the case that no coding
14159 system is defined for a specific coding category.
14160
141612008-02-01 Kenichi Handa <handa@m17n.org>
14162
14163 * font.c (font_matching_entity): Delete unused local var.
14164
14165 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14166 opening a font.
14167
14168 * fileio.c (Finsert_file_contents): On recovering a file, assume
14169 Unix-like eol.
14170 (choose_write_coding_system): On auto-saving a file, force
14171 Unix-like eol.
14172
14173 * coding.c (setup_coding_system): Fix setting of
14174 coding->common_flags based on eol_type.
14175 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14176 inherit from it.
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * alloc.c (NSTATICS): Increas to 0x600.
14181
141822008-02-01 Kenichi Handa <handa@m17n.org>
14183
14184 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14185 (ftfont_list): Don't check :name property.
14186 (ftfont_match): New function.
14187 (ftfont_pattern_entity): If the pattern doesn't contain
14188 FC_SPACING, don't assume FC_MONO.
14189
14190 * font.h (struct font_driver): New member `match'.
14191 (font_update_drivers): Adjust prototype.
14192
14193 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14194 property of FONT.
14195 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14196 them unconditionally.
14197 (font_matching_entity): New function.
14198 (font_open_by_name): Try font_matching_entity if exact match is
14199 not found.
14200 (font_update_drivers): Delete the arg FONT. Return a list of
14201 actually used backends. Don't free faces, font caches here.
14202 Don't store data in frame parameters. Don't call x_set_font.
14203 (Ffont_spec): Store :name property as is.
14204 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14205 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14206 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14207 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14208 Call font->driver->otf_gsub instead of font_otf_gsub.
14209
14210 * frame.c (x_set_font_backend): Do more works that were done in
14211 font_update_drivers before.
14212
14213 * xfont.c (xfont_match): New function.
14214 (xfont_driver): Set xfont_driver.match to xfont_match.
14215 (xfont_draw): Set font in GC if necessary.
14216
14217 * ftxfont.c (ftxfont_match): New function.
14218 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14219
14220 * xftfont.c (xftfont_match): New function.
14221 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * font.h (struct font): New member scalable.
14226 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14227 (font_otf_gsub): Adjust prototype.
14228
14229 * font.c (font_otf_capability): Fix handling of the default langsys.
14230 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14231 Check the contents of SPEC.
14232 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14233 (check_gstring): New function.
14234 (REPLACEMENT_CHARACTER): New macro.
14235 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14236 glyph codes of GSTRING.
14237 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14238 (font_prepare_composition): Set cmp->glyph_len.
14239 (font_open_entity): Set font->scalable.
14240 (Ffont_get): Handle :otf property.
14241 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14242 functions.
14243 (Fquery_font): Use font->font.full_name.
14244 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14245 Sfont_otf_alternates.
14246
14247 * ftfont.c (ftfont_open): Set font->font.full_name and
14248 font->font.name properly. Fix calculation of font->font.height
14249 and font->min_width.
14250
14251 * ftxfont.c (ftxfont_create_gcs): New function.
14252 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14253 (ftxfont_draw_backgrond): Fix filling region.
14254 (ftxfont_default_fid): New function.
14255 (ftxfont_open): Set xfont->fid to the return value of
14256 ftxfont_default_fid.
14257 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14258 (ftxfont_done_face): Free only GCs that are created by
14259 ftxfont_create_gcs.
14260 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14261
14262 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14263 Clip to src->width, etc (not src->clip_XXX).
14264
14265 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14266 FontBackend frame parameter.
14267
142682008-02-01 Kenichi Handa <handa@m17n.org>
14269
14270 * font.h (struct font_driver_list): New member `on'.
14271 (Fclear_font_cache): EXFUN it.
14272 (font_update_drivers): Extern it.
14273
14274 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14275 (font_list_entities): Check driver_list->on.
14276 (register_font_driver): Initalize `on' member to 0.
14277 (font_update_drivers): New function.
14278 (Fclear_font_cache): Check driver_list->on.
14279
14280 * frame.h (Qfont_backend): Extern it.
14281 (x_set_font_backend): Extern it.
14282
14283 * frame.c (Qfont_backend): New variable.
14284 (frame_parms): New element for font-backend.
14285 (x_set_font_backend): New function.
14286
14287 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14288 FontBackend frame parameter.
14289 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14290 x_set_font_backend.
14291
14292 * xfont.c (xfont_list): Don't try listing by :name property if the
14293 name is not for XLFD.
14294
142952008-02-01 Kenichi Handa <handa@m17n.org>
14296
14297 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14298 (LGLYPH_SET_TO): New macros.
14299 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14300 element of G is vector or not.
14301 (font_at): Extern it.
14302
14303 * font.c: Include window.h.
14304 (font_lispy_object): New function.
14305 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14306 end of valid glyph.
14307 (font_close_object): Fix getting (struct font *).
14308 (font_at): New function.
14309 (Ffont_get): If FONT is a font-object, get entity from it.
14310 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14311 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14312 range check.
14313 (Ffont_at): New function.
14314 (syms_of_font): Defsubr Sfont_at.
14315
14316 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14317 before the entry for Qcomposition.
14318 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14319 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14320 the font in gstring.
14321 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14322 LGLYPH_FORM (g) to detect the end of valid glyph.
14323 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14324 we are composing with gstring.
14325
14326 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14327 Check if adjustment is vector or not.
14328
14329 * Makefile.in (font.o): Make it depends on window.h.
14330
143312008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14334 adjustment is vector or not.
14335
143362008-02-01 Miles Bader <miles@gnu.org>
14337
14338 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14339
143402008-02-01 Kenichi Handa <handa@m17n.org>
14341
14342 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14343 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14344 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14345
14346 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14347 (DEVICE_DELTA): Fix typo.
14348 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14349 LGLYPH format.
14350
14351 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14352 the change of LGLYPH format.
14353
143542008-02-01 Kenichi Handa <handa@m17n.org>
14355
14356 * ftfont.c (ftfont_list): Fix typo.
14357 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14358
143592008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14360
14361 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14362
14363 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14364 xftface_info is non-NULL.
14365
143662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14367
14368 * ftfont.c (ftfont_list): Move misplaced #endif.
14369
143702008-02-01 Kenichi Handa <handa@m17n.org>
14371
14372 * ftfont.c (ftfont_list): Pay attention to the case that
14373 FC_CAPABILITY is not defined.
14374
143752008-02-01 Kenichi Handa <handa@m17n.org>
14376
14377 * xftfont.c (xftfont_open): Set charset related members to -1.
14378
14379 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14380 QCname.
14381 (ftfont_open): Set charset related members to -1.
14382
14383 * fontset.c (Votf_script_alist): New variable.
14384 (syms_of_fontset): Initialize it.
14385 (fontset_font): Delete unused variable.
14386
14387 * fontset.h (Votf_script_alist): Extern it.
14388
14389 * font.c (font_find_for_lface): Optimize code.
14390
14391 * font.h (font_close_object, font_merge_old_spec): Extern them.
14392
143932008-02-01 Kenichi Handa <handa@m17n.org>
14394
14395 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14396 (syms_of_font): Initialize them.
14397 (font_pixel_size): Allow float value in dpi.
14398 (font_prop_validate_type): Delete.
14399 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14400 Change caller.
14401 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14402 (font_prop_validate_extra): Delete.
14403 (font_prop_validate_spacing): New function.
14404 (font_property_table): Add elements for all known properties.
14405 (get_font_prop_index): Rename from check_font_prop_name. New
14406 argument FROM. Change caller.
14407 (font_prop_validate): Validate all known properties.
14408 (font_put_extra): Delete argument force. Change caller.
14409 (font_expand_wildcards): Make it static. Fix the way of shrinking
14410 the possible range.
14411 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14412 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14413 Change caller.
14414 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14415 (font_parse_fcname): Delete argument merge. Fix parsing of point
14416 size. Don't validate properties values here. Change caller.
14417 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14418 (font_open_by_name): Delete unused variable.
14419 (Ffont_spec): Likewise. Validate property values.
14420 (Ffont_match_p): New function.
14421
14422 * font.h (QCscalable): Extern it.
14423 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14424
14425 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14426
14427 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14428 (xfont_list_pattern): New function.
14429 (xfont_list): Use xfont_list_pattern.
14430
144312008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * font.h (Flist_fonts): EXFUN it.
14434
144352008-02-01 Jason Rumney <jasonr@gnu.org>
14436
14437 * w32term.c (w32_initialize): Add back smoothing_type and
14438 smoothing_enabled definitions.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14443 s->face->font on determining underline position.
14444
144452008-02-01 Kenichi Handa <handa@m17n.org>
14446
14447 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14448 (font_has_char): Accept font-object too.
14449 (font_find_for_lface): Try at first with a size specified in face.
14450
144512008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14454 font_open_by_name.
14455
144562008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * font.h (QCspacing, QCdpi): Extern them.
14459 (enum font_spacing): New enum.
14460 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14461
14462 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14463 (QCspacing, QCdpi): New variables.
14464 (syms_of_font): Initialize them.
14465 (font_pixel_size): New function.
14466 (font_put_extra): New function.
14467 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14468 in FONT_EXTRA.
14469 (font_parse_fcname): Handle enumerated values (e.g. bold).
14470 Fix handling font size. Add QCname property that contains only
14471 unknown properties.
14472 (font_score): Change argument. Change caller. Pay attention to
14473 FONT_PIXEL_SIZE_QUANTUM.
14474 (font_sort_entites, font_list_entities, font_find_for_lface)
14475 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14476 (Ffont_spec): Add QCname property that contains only unknown properties.
14477
14478 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14479 include weight in listing pattern, instead check weight of each
14480 listed font. Don't include scalable in pattern. Pay attention to
14481 FONT_PIXEL_SIZE_QUANTUM.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * font.c (font_parse_fcname): Fix parsing of point-size.
14486 (font_unparse_fcname): Produce symbolic names for style properties.
14487 (font_list_entities): Handle float size correctly.
14488 (font_open_by_name): Prefer `normal' property values if the name
14489 doesn't specify them.
14490
14491 * fontset.c (Finternal_char_font): Use font_get_name, not
14492 Ffont_xlfd_name.
14493
14494 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14495 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14496 pattern. Don't force scalable.
14497
14498 * xftfont.c (xftfont_open): For generating a name, start from
14499 96-byte buffer.
14500
145012008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14502
14503 * frame.h (x_new_fontset2): Fix prototype.
14504
145052008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 * font.h (struct font_driver): Delete member parse_name.
14508 (font_match_p, font_get_spec, font_parse_fcname)
14509 (font_unparse_fcname): Extern them.
14510 (font_get_name): Adjust prototype.
14511
14512 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14513 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14514 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14515 unnecessary checks for weight, slant, and swidth.
14516 (font_parse_fcname): New function.
14517 (font_unparse_fcname): New function.
14518 (font_parse_name): New function.
14519 (font_match_p): New function.
14520 (font_get_name): Change return value to Lisp string.
14521 (font_get_spec): New function.
14522 (Qunspecified, Qignore_defface): Don't extern them.
14523 (font_find_for_lface): Assume that LFACE is fully specified.
14524 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14525 object, use it for FACE.
14526 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14527 driver->parse_name.
14528 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14529
14530 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14531 prototype.
14532
14533 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14534 argument F. Don't call Fnew_fontset. Instead, directly call
14535 make_fontset.
14536
14537 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14538
14539 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14540 of x_new_fontset2.
14541
14542 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14543 (Qsans__serif): New variables.
14544 (ftfont_generic_family_list): New variable.
14545 (syms_of_ftfont): Initialize the above variables.
14546 (ftfont_pattern_entity): Delete argument NAME.
14547 (ftfont_list_generic_family): New function.
14548 (ftfont_parse_name): Delete this function.
14549 (ftfont_list): Try generic family only when FcFontList found no font.
14550 (ftfont_list_family): Fix args to FcObjectSetBuild.
14551
14552 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14553 object in attrs[LFACE_FONT_INDEX].
14554 (set_lface_from_font_name): Cancel all changes for font-backend.
14555 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14556 function.
14557 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14558 font object in QCfont attribute.
14559 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14560 (realize_default_face) [USE_FONT_BACKEND]: Call
14561 set_lface_from_font_and_fontset.
14562
14563 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14564 "fixed", and signal error here if no suitable font was found.
14565
14566 * xfont.c (xfont_parse_name): Delete this function.
14567
14568 * xftfont.c (xftfont_open): Change coding style of error
14569 handling. Generate fontconfig's fontname pattern.
14570
14571 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14572 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14573
14574 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14575 Both args FONTSET and FONT_OBJECT must be existing ones.
14576
145772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14578
14579 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14584
14585 * font.h (struct font): Fix typo.
14586
14587 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14588 XLFD_XXX_INDEX.
14589 (enum xlfd_field_mask): New enum.
14590 (intern_font_field): Changed argument. Change caller. If digits
14591 are followed by non-digits, return a symbol.
14592 (font_expand_wildcards): New function.
14593 (font_parse_xlfd): Fix wildcard handling.
14594 (Ffont_spec): If :name is specified, reflect the info in the other
14595 properties.
14596
14597 * ftfont.c (ftfont_pattern_entity): Fix typo.
14598 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14599 locale.
14600
146012008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14604
14605 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14606 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14607 registry doesn't specify encoding part.
14608 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14609 (font_open_by_name): At first try parsing the name.
14610 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14611 as Lisp symbols.
14612
14613 * fontset.c (reorder_font_vector): Pay attention to the case that
14614 the 3rd element of font_def is nil.
14615 (fontset_font): For the default fontset, append one more fontset
14616 elements for a script-based font specification. Don't add script
14617 attribute on finding a font.
14618 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14619 font name.
14620 (fontset_ascii_font): If a font can't be opened, return nil.
14621
14622 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14623 (ftfont_pattern_entity): New function.
14624 (ftfont_get_cache): Assume that freetype_font_cache is already
14625 initialized.
14626 (ftfont_list): Handle the case that a file is specified in font
14627 name. Use ftfont_pattern_entity to generate entities.
14628 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14629 (syms_of_ftfont): Initialize freetype_font_cache.
14630
14631 * xftfont.c (xftfont_open): Make the font name fontconfig's
14632 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14633 (xftfont_close): Free font->font.name if not NULL.
14634
14635 * xfont.c (xfont_list): If script is specified for a font, return
14636 null_vector.
14637 (xfont_list_family): Declare argument type.
14638
14639 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14640 name, set LFACE_FONT (lface) to nil.
14641
14642 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14643 return Qnil.
14644
146452008-02-01 Kenichi Handa <handa@m17n.org>
14646
14647 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14648 (standard_args): Add "-enable-font-backend".
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14653 (struct xftdraw_list, xftdraw_list): Delete them.
14654 (register_xftdraw, check_xftdraw): Delete them.
14655 (xftfont_prepare_face): Don't call register_xftdraw.
14656 (xftfont_done_face): Don't call check_xftdraw.
14657 (xftfont_draw): Get background color only when with_background is
14658 nonzero.
14659
14660 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14661
146622008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 These changes are for the new font handling codes.
14665
14666 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14667 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14668 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14669 (FONTSRC, FONTOBJ): New variables.
14670 (obj): Add $(FONTOBJ).
14671 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14672 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14673 @LIBOTF_LIBS@.
14674 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14675 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14676
14677 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14678
14679 * character.h (Vscript_representative_chars): Extern it.
14680
14681 * character.c (Vscript_representative_chars): New variable.
14682 (syms_of_character): Declare it as a Lisp variable.
14683
14684 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14685 enable_font_backend is nonzero, accept the composition method
14686 COMPOSITION_WITH_GLYPH_STRING.
14687
14688 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14689 enumeration COMPOSITION_WITH_GLYPH_STRING.
14690
14691 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14692 members clip_x, clip_y, clip_width, and clip_height.
14693 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14694
14695 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14696 --enable-font-backend. Call syms_of_font.
14697
14698 * fns.c (assoc_no_quit): New function.
14699
14700 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14701 (face_for_font, new_fontset_from_font)
14702 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14703
14704 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14705 (fontset_font, fontset_ascii, face_for_char)
14706 (make_fontset_for_ascii_face, Ffont_info)
14707 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14708 is nonzero, use font-backend mechanism.
14709 (find_font_encoding): Make it non-static.
14710 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14711 New functions.
14712
14713 * frame.h (struct frame): New members resx and resy.
14714 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14715 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14716
14717 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14718 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14719
14720 * lisp.h (assoc_no_quit): Extern it.
14721
14722 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14723 Through out the file, use FONT_INFO_FROM_FACE instead of
14724 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14725 rif->per_char_metric.
14726 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14727 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14728 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14729 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14730 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14731 nonzero, use font-backend mechanism.
14732 (get_per_char_metric): New function.
14733
14734 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14735 (set_lface_from_font_name)
14736 (set_font_frame_param, free_realized_face)
14737 (prepare_face_for_display, clear_face_gcs)
14738 (Finternal_set_font_selection_order, realize_x_face)
14739 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14740 font-backend mechanism.
14741 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14742 (load_face_font) [USE_FONT_BACKEND]: Abort.
14743 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14744 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14745
14746 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14747 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14748 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14749 nonzero, register all available font drivers. Call
14750 x_default_font_parameter for deciding a font.
14751 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14752
14753 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14754 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14755 (x_set_glyph_string_clipping_exactly)
14756 (x_compute_glyph_string_overhangs)
14757 (x_draw_glyph_string_foreground)
14758 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14759 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14760 enable_font_backend is nonzero, use font-backend mechanism.
14761 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14766 system_eol_type.
14767 (syms_of_coding): Initialize system_eol_type.
14768
14769 * process.c (Fset_process_coding_system): Inherit system's eol
14770 format if necessary.
14771
147722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14773
14774 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * coding.c (decode_eol): Pay attention to buffer relocation in
14779 del_range_2.
14780 (decode_coding): Call decode_eol before restoring undo_list.
14781
147822008-02-01 Kenichi Handa <handa@m17n.org>
14783
14784 * charset.c (Fdefine_charset_internal): Fix setting of
14785 emacs_mule_bytes.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * keyboard.c (read_char): Check if C is a character or not before
14790 looking up Vkeyboard_translate_table.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14795 condition to terminate the loop.
14796
147972008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * coding.c (produce_composition): Compare charbuf[i] instead of
14800 args[i] against 0.
14801 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14806 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14807 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14808 detect_coding.
14809 (emacs_mule_char): Handle old style (Emacs 20) component character
14810 of a composition.
14811 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14812 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14813 composition rule.
14814 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14815
148162008-02-01 Kenichi Handa <handa@m17n.org>
14817
14818 * coding.c (encode_coding_ccl): Allocate destination dynamically
14819 when necessary.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14824 the loop. When quitted, show a proper error message.
14825
148262008-02-01 Kenichi Handa <handa@m17n.org>
14827
14828 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14829 src->clip_head and src->clip_tail temporarily instead of src->hl.
14830
14831 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14832 character sequence.
14833 (Fccl_execute_on_string): Use ASET, not XSET.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * coding.c (decode_coding): Fix the condition of terminating the
14842 decoding loop.
14843
148442008-02-01 Kenichi Handa <handa@m17n.org>
14845
14846 * data.c (Faset): On setting a character bigger than 255 in a
14847 unibyte string, signal an error instead of make the string multibyte.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14852 made by a mapping table.
14853
148542008-02-01 Kenichi Handa <handa@m17n.org>
14855
14856 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14857 not.
14858 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14859 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14860
14861 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14862 s->face is NULL or not.
14863
148642008-02-01 Kenichi Handa <handa@m17n.org>
14865
14866 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14867 (x_draw_glyph_string): Fix drawing of right_overhang and
14868 left_overhang around/on cursor.
14869
14870 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14871
148722008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14875
148762008-02-01 Kenichi Handa <handa@m17n.org>
14877
14878 * coding.c (Fdefine_coding_system_internal)
14879 (Fdefine_coding_system_alias): Avoid a duplicated element in
14880 Vcoding_system_alist.
14881
148822008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14885
14886 * coding.c (Qcoding_system_define_form): New variable.
14887 (syms_of_coding): Intern and staticpro it.
14888 (Fcoding_system_p): Check Qcoding_system_define_form.
14889 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14890
14891 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14892 Fcoding_system_p.
14893 (CHECK_CODING_SYSTEM): If ID is not available, call
14894 Fcheck_coding_system.
14895 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14896 Try also Fcheck_coding_system.
14897
148982008-02-01 Kenichi Handa <handa@m17n.org>
14899
14900 * coding.c (code_conversion_restore): GCPRO arg.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * character.c (lisp_string_width): Check multibyteness of STRING.
14905
149062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14907
14908 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14909 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14910 (decode_mac_font_name): Use decode_coding_c_string instead of
14911 decode_coding.
14912 (x_load_font): Initialize fontp->fontset to -1. Set
14913 fontp->encoding_type.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * search.c (search_buffer): Give up BM search on case-fold-search
14918 if one of a target character has a case-equivalence of different
14919 byte length even if that target charcter is an ASCII.
14920 (simple_search): Fix calculation of byte length of matched text.
14921 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14922
149232008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * coding.c (decode_coding): Fix handling of invalid bytes.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14930 Unicode characters.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * coding.c (encode_coding_object): If a pre-write-conversion
14935 function makes a new buffer, kill it.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * coding.c (QCascii_compatible_p): New variable.
14940 (syms_of_coding): Initialize it.
14941 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14942 calling string_char.
14943 (record_conversion_result): Add `default:' case.
14944 (coding_charset_list): Delete unused variable `coding_type'.
14945 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14946 property in the plist of the coding system.
14947 (Fcoding_system_put): Check QCascii_compatible_p.
14948
149492008-02-01 Miles Bader <miles@gnu.org>
14950
14951 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14952 removed calculation of frame `f', as it's now used.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14957 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14958 (UNIDATA): New variable.
14959 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14960 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14961 $(RUN_TEMACS) unconditionally.
14962
149632008-02-01 Kenichi Handa <handa@m17n.org>
14964
14965 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14966 (admindir): New variable.
14967 ($(lispsource)international/charprop.el): New target.
14968
149692008-02-01 Miles Bader <miles@gnu.org>
14970
14971 * character.c (chars-in-region): Remove obsolete function.
14972 (syms_of_character): Remove its initialization.
14973
149742008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14975
14976 * w32select.c (validate_coding_system)
14977 (setup_windows_coding_system): New functions.
14978 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14979 setup_windows_coding_system.
14980 (setup_config, Fw32_get_clipboard_data): Use
14981 validate_coding_system.
14982 (Fx_selection_exists): Move call to setup_config to a place
14983 where signals are allowed.
14984
14985 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14986 (Fcheck_coding_system): Add declarations.
14987
149882008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14991
149922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14993
14994 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14995 string as the second argument for x_new_fontset.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15000 (encode_coding_object): Use safe_call instead of call2.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15005
15006 * Makefile.in (lisp): Include charprop.el.
15007
150082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15009
15010 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15011 Not sure if it's unnecessary.
15012
150132008-02-01 Steven Tamm <steventamm@mac.com>
15014
15015 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15016 some possibly unnecessary fontset checking code that crashed
15017 when creating a new frame.
15018
150192008-02-01 Kenichi Handa <handa@m17n.org>
15020
15021 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15022 lookup_face.
15023
15024 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15025
15026 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15027
150282008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15031 (coding_charset_list): New function.
15032
15033 * coding.h (coding_charset_list): Extern it.
15034
150352008-02-01 Kenichi Handa <handa@m17n.org>
15036
15037 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15038 concatenation of family and registry.
15039
150402008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * character.h (BYTE8_STRING): Fix typo.
15043
15044 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15045 string to multibyte (sync to HEAD).
15046
15047 * casefiddle.c (casify_region): Handle changes in byte-length
15048 using replace_range_2 (sync to HEAD).
15049
150502008-02-01 Andreas Schwab <schwab@suse.de>
15051
15052 * chartab.c (map_char_table): GCPRO table and arg.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15057 already at limit.
15058
150592008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15062 instead of fast_c_string_match_ignore_case.
15063 (find_font_encoding): Change argument to Lisp_Object. Use
15064 fast_string_match_ignore_case instead of
15065 fast_c_string_match_ignore_case. Change caller.
15066
150672008-02-01 Kenichi Handa <handa@m17n.org>
15068
15069 * xdisp.c (get_next_display_element): In unibyte case, decide to
15070 display in octal form by checking a character by
15071 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15072
15073 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15074
15075 * character.c (unibyte_has_multibyte_table): New variable.
15076
15077 * character.h (unibyte_has_multibyte_table): Extern it.
15078 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15079
150802008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * coding.c (encode_coding_iso_2022): Fix handling of charset
15083 annotation.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * coding.c (setup_coding_system): If coding_system is nil, use
15088 Qundecided.
15089 (Fterminal_coding_system): Return nil if terminal coding system is
15090 `undecided'.
15091 (syms_of_coding): Define coding-system `undecided' here. Setup
15092 terminal_coding as `undecided'.
15093
150942008-02-01 Kenichi Handa <handa@m17n.org>
15095
15096 * xdisp.c (message_dolog, set_message_1): Call
15097 unibyte_char_to_multibyte with arg type int.
15098
15099 * lread.c (read1): Fix reading of a char-table.
15100
15101 * print.c (print_object): Include sub char-table in circularities
15102 detection.
15103
151042008-02-01 Kenichi Handa <handa@m17n.org>
15105
15106 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15107 Append the found sequences in car of ARGS instead of prepending.
15108
151092008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * fileio.c (report_file_error): Make a unibyte string from
15112 strerror (errorno).
15113 (Fsubstitute_in_file_name): Fix the arg to
15114 unibyte_char_to_multibyte. It is evaluated twice.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15119
151202008-02-01 Kenichi Handa <handa@m17n.org>
15121
15122 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15123 BOM is not found.
15124 (detect_coding, detect_coding_system): Optimization for ISO-2022
15125 when no 8-bit data is found.
15126
151272008-02-01 Jason Rumney <jasonr@gnu.org>
15128
15129 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15130
151312008-02-01 Kenichi Handa <handa@m17n.org>
15132
15133 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15134 CHARS.
15135
151362008-02-01 Steven Tamm <steventamm@mac.com>
15137
15138 * macterm.c (mac_encode_char): Add charset argument and update
15139 to use encoding_type.
15140 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15141 switch to pure fontset.
15142 (decode_mac_font_name): Temporarily remove decoding.
15143 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15144 (x_load_font): Temporarily remove encoding.
15145
151462008-02-01 Kenichi Handa <handa@m17n.org>
15147
15148 * xfaces.c (Fface_font): If frame is not on a window system,
15149 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15150 refer to face->font.
15151 (split_font_name_into_vector, build_font_name_from_vector)
15152 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15153 when HAVE_WINDOW_SYSTEM is defined.
15154
151552008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15158 (x_produce_glyphs): Fix setting of members of cmp in case
15159 cmp->glyph_len is zero.
15160
15161 * fontset.c (Fset_fontset_font): Fix docstring.
15162 (Ffontset_info): Make it backward compatible. New arg ALL.
15163
151642008-02-01 Kim F. Storm <storm@cua.dk>
15165
15166 * process.c (read_process_output): Grow decoding_buf when needed;
15167 this could cause a crash in allocate_string and compact_small_strings.
15168
151692008-02-01 Kenichi Handa <handa@m17n.org>
15170
15171 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * coding.c (setup_coding_system): Set coding->common_flags
15176 correctly for raw-text.
15177 (consume_chars): On encoding unibyte text by raw-text, don't check
15178 multibyte form.
15179 (encode_coding): On encoding by raw-text, never use translation tables.
15180
15181 * fileio.c (e_write): Short cut for the case of no encoding.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * coding.c (detect_coding, detect_coding_system): Delete unused
15186 variables.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15191 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15192
151932008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * coding.c (Ffind_coding_systems_region_internal): Include
15196 raw-text and no-conversion in the result.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15201 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15202 FONT_DEF.
15203 (font_def_arg, add_arg, from_arg, to_arg): New args.
15204 (set_fontset_font): Change argument.
15205 (Fset_fontset_font): Fix for the case that TARGET is a script
15206 name and charset name.
15207 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15208
152092008-02-01 Kenichi Handa <handa@m17n.org>
15210
15211 * fontset.c (fontset_font): Rename from fontset_face. Change return
15212 value.
15213 (face_suitable_for_char_p, face_for_char): Adjust for the change
15214 of fontset_font.
15215 (make_fontset_for_ascii_face): Fix setting of the fontset element
15216 for ASCII.
15217 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15218 to get a font name.
15219 (Ffontset_info): Adjust for the change of fontset_font.
15220
15221 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15222
15223 * character.h (LEADING_CODE_LATIN_1_MIN)
15224 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * editfns.c (check_translation): New function.
15229 (Ftranslate_region_internal): Handle M:N mapping.
15230
152312008-02-01 Kenichi Handa <handa@m17n.org>
15232
15233 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15234
152352008-02-01 Kenichi Handa <handa@m17n.org>
15236
15237 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15238 goto invalid_code.
15239 (decode_coding_iso_2022): Fix handling of invalid designation.
15240
15241 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15242 after calling code_conversion_save.
15243
152442008-02-01 Kenichi Handa <handa@m17n.org>
15245
15246 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15247
15248 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15249
15250 * fontset.c: Include "intervals.h".
15251 (fontset_face): Fix comparing of Lisp_Objects.
15252 (free_face_fontset, new_fontset_from_font_name): Fix
15253 Lisp_Object/int mixup.
15254
15255 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15256
15257 * coding.c: Add many prototypes for static functions.
15258 (get_translation_table): Allow max_lookup to be NULL.
15259 (decode_coding, Ffind_coding_systems_region_internal)
15260 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15261 get_translation_table with max_lookup NULL.
15262
152632008-02-01 Kenichi Handa <handa@m17n.org>
15264
15265 * coding.c (get_translation_table): Declare it as Lisp_Object.
15266 (LOOKUP_TRANSLATION_TABLE): New macro.
15267 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15268 instead of CHAR_TABLE_REF.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15273 annotation data format.
15274 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15275 Change arguments FROM and TO to single argument NCHARS. Change caller.
15276 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15277 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15278 (decode_coding_ccl, decode_coding_charset): Pay attention to
15279 coding->charbuf_used.
15280 (get_translation): New function.
15281 (produce_chars): New arguments translation_table and last_block.
15282 Translate characters here. Return number of carryover chars.
15283 Change caller.
15284 (produce_composition): New argument pos. Change caller.
15285 Adjust for the change of annotation data format.
15286 (produce_charset, produce_annotation): Likewise.
15287 (decode_coding, encode_coding): Don't call translate_chars.
15288 (consume_chars): New arg translation_table. Change caller.
15289 (translate_chars): Delete.
15290 (syms_of_coding): Make translation-table's number of extra slots 2.
15291
152922008-02-01 Kenichi Handa <handa@m17n.org>
15293
15294 * search.c (simple_search): Fix setting this_pos_byte in backward
15295 search.
15296
15297 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15298 byte sequence.
15299 (detect_coding_ccl): Fix setting of the variable valids.
15300
153012008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15304
15305 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15306
15307 * editfns.c (Ftranslate_region_internal): Rename from
15308 Ftranslate_region. Accept a char-table in TABLE.
15309 (syms_of_editfns): Defsubr Stranslate_region_internal.
15310
15311 * xfaces.c (set_lface_from_font_name): If a font is specified for
15312 a frame, generate a fontset from the font.
15313 (build_scalable_font_name): If the scalable font is requested for
15314 a specific size, don't change that size.
15315 (try_font_list): Try a scalable font also in the case that a
15316 pattern string is specified.
15317
153182008-02-01 Kenichi Handa <handa@m17n.org>
15319
15320 * xfaces.c (Fface_font): New optional arg CHARACTER.
15321
153222008-02-01 Kenichi Handa <handa@m17n.org>
15323
15324 * charset.h (CHARSET_OFFSET): New macro.
15325
153262008-02-01 Kenichi Handa <handa@m17n.org>
15327
15328 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15329
15330 * fontset.c (fontset_face): Handle the case that repertory is a
15331 char-table.
15332 (find_font_encoding): Return nil for unknown encoding.
15333 (Fset_fontset_font): Ignore a font of unknown encoding.
15334
153352008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * keymap.c (describe_vector): Handle default value of a char table.
15338
15339 * fontset.c (fontset_face): Handle fallback fonts correctly.
15340 (Ffontset_info): Return infomation about fallback fonts.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * fontset.c (FONTSET_DEFAULT): New macro.
15345 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15346 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15347 the case that it is nil.
15348 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15349 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15350
15351 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15352 subset or superset.
15353
153542008-02-01 Kenichi Handa <handa@m17n.org>
15355
15356 * emacs.c (main): Call init_charset after syms_of_XXX.
15357
15358 * charset.c (Vcharset_map_directory): Delete.
15359 (Vcharset_map_path): New variable.
15360 (load_charset_map_from_file): Use Vcharset_map_path instead.
15361 (init_charset): Initialize Vcharset_map_path.
15362 (syms_of_charset): Delete declaration of "charset-map-directory",
15363 add declaration of "charset-map-path".
15364
153652008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15368 ASCII only string.
15369
15370 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15371
15372 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15373 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15374
153752008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15378
15379 * coding.c (QCmnemonic, QCdefalut_char)
15380 (QCdecode_translation_table, QCencode_translation_table)
15381 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15382 (get_translation_table): Return a list of translation tables if
15383 necessary.
15384 (decode_coding): Call get_translation_table with ENCODEP 0.
15385 (char_encodable_p): If translation_table is non-nil, always call
15386 translate_char.
15387 (Fdefine_coding_system_internal): Accept list of translation
15388 tables as :encode-translation-table and :decode-translation-table.
15389 (Fcoding_system_put): New function.
15390 (syms_of_coding): Declare new symbols. Defsubr
15391 Scoding_system_put.
15392 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15393 typically JISX0212.
15394
15395 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15396 when the charset is superset type.
15397
15398 * character.c (translate_char): Accept list of translation tables.
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15403 (CODING_ATTR_TRANS_TBL): New macro.
15404
15405 * coding.c (get_translation_table): New function.
15406 (translate_chars): Fix the bug of skipping annotation data.
15407 (decode_coding, encode_coding): Utilize get_translation_table.
15408 (char_encodable_p, Funencodable_char_position): Translate char if
15409 necessary.
15410 (Ffind_coding_systems_region_internal)
15411 (Fcheck_coding_systems_region): Setup translation table for encode
15412 in a coding system attribute vector in advance.
15413 (Fdefine_coding_system_internal): Allow a symbol as translation
15414 table. For shift-jis type coding system, allow 4th charset.
15415
154162008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15419
15420 * xdisp.c (get_next_display_element): Pass -1 as POS to
15421 FACE_FOR_CHAR if displaying a C-string.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * composite.c (get_composition_id): Handle xoff and yoff in a
15426 composition rule.
15427
15428 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15429 (struct composition): New member lbearing and rbearing.
15430
15431 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15432 (x_get_glyph_overhangs): Handle a composition glyph.
15433 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15434
15435 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15436 composition glyph.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * print.c: Include charset.h.
15441 (Vprint_charset_text_property): New variable.
15442 (Qdefault): Extern it.
15443 (PRINT_STRING_NON_CHARSET_FOUND)
15444 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15445 (print_check_string_result): New variable.
15446 (print_check_string_charset_prop): New function.
15447 (print_prune_charset_plist): New variable.
15448 (print_prune_string_charset): New function.
15449 (print_object): Call print_prune_string_charset if
15450 Vprint_charset_text_property is not t.
15451 (print_interval): Print nothing if interval->plist is nil.
15452 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15453 variable. Init and staticpro print_prune_charset_plist.
15454
154552008-02-01 Kenichi Handa <handa@m17n.org>
15456
15457 * fontset.c (new_fontset_from_font_name): Use the specified font
15458 for all characters in the new fontset.
15459
15460 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15461 OBJECT args.
15462
15463 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15464 OBJECT args for composition too.
15465
15466 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15467 OBJECT args.
15468
154692008-02-01 Kenichi Handa <handa@m17n.org>
15470
15471 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15472
15473 * fontset.c (reorder_font_vector): Adjust for the change of
15474 FONT_DEF format.
15475 (fontset_face): New arg id. Change caller.
15476 (face_for_char): New args pos and object.
15477 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15478 (fs_query_fontset): Check NAME by Fassoc too.
15479 (Fset_fontset_font): Allow non-XLFD font name.
15480 (Ffontset_info): Adjust for the change of FONT_DEF format.
15481
15482 * fontset.h (face_for_char): Adjust prototype.
15483
15484 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15485 (append_space, extend_face_to_end_of_line)
15486 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15487 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15488
15489 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15490 POS and OBJECT args.
15491
15492 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15493 POS and OBJECT args.
15494
154952008-02-01 Jason Rumney <jasonr@gnu.org>
15496
15497 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15498 of GlobalAlloc'ed memory.
15499
155002008-02-01 Kenichi Handa <handa@m17n.org>
15501
15502 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15503
15504 * charset.h (charset_table_used): Delete extern.
15505
15506 * charset.c (charset_table_used): Make it static.
15507 (map_charset_chars): Fix args to c_function with.
15508
15509 * chartab.c (map_sub_char_table_for_charset): Fix args to
15510 c_function with.
15511
15512 * coding.h (enum coding_result_code): Delete
15513 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15514
15515 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15516 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15517 (Vlast_code_conversion_error): New variables.
15518 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15519 (ONE_MORE_BYTE): Record error if any instead of signaling an
15520 error. If non-ASCII multibyte char is found, return the negative
15521 value of the code. All callers changed to check it.
15522 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15523 (record_conversion_result): New function. Change all codes setting
15524 coding->result to call this function.
15525 (detect_coding_utf_8, decode_coding_utf_8)
15526 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15527 Don't use the local variable incomplete.
15528 (emacs_mule_char): Change the second arg to `const'.
15529 (decode_coding): Fix of flushing out unprocessed data.
15530 (make_conversion_work_buffer): Fix making of a work buffer.
15531 (decode_coding_object): Return coding->dst_object.
15532
15533 * fontset.c (set_fontset_font): Fix args.
15534
15535 * lisp.h (CHARACTERBITS): Define as 22.
15536
15537 * process.c (send_process): Be sure to set coding->src_multibyte.
15538
15539 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15540
155412008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * xdisp.c (handle_auto_composed_prop): Give limit to
15544 Fnext_single_char_property_change.
15545
155462008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * composite.c (syms_of_composite): Don't make the composition hash
15549 table weak.
15550
15551 * fontset.c (Fset_fontset_font): Fix docstring.
15552
15553 * lisp.h (detect_coding_system): Adjust prototype.
15554
15555 * fileio.c (kill_workbuf_unwind): Delete this function.
15556 (Finsert_file_contents): Adjust the call of detect_coding_system.
15557 Get conversion_buffer by code_conversion_save. Use the macro
15558 CODING_MAY_REQUIRE_DECODING. After decoding, update
15559 coding_system.
15560
15561 * coding.h (make_conversion_work_buffer): Delete extern.
15562 (code_conversion_save): Extern it.
15563
15564 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15565 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15566 (decode_coding_utf_8): Don't do eol converion.
15567 (detect_coding_utf_16): Check coding->src_chars, not
15568 coding->src_bytes. Add heuristics for those that have no signature.
15569 (decode_coding_emacs_mule, decode_coding_iso_2022)
15570 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15571 Don't do eol converion.
15572 (adjust_coding_eol_type): Return a new coding system.
15573 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15574 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15575 each change.
15576 (decode_coding): Pay attention to undo_list. Do eol conversion for
15577 all types of coding-systems (if necessary).
15578 (Vcode_conversion_work_buf_list): Delete it.
15579 (Vcode_conversion_reused_workbuf): Rename from
15580 Vcode_conversion_reused_work_buf.
15581 (Vcode_conversion_workbuf_name): New variable.
15582 (reused_workbuf_in_use): New variable.
15583 (make_conversion_work_buffer): Delete the arg DEPTH.
15584 (code_conversion_restore): Change argument to cons.
15585 (code_conversion_save): Delete the argument BUFFER. Change callers.
15586 (detect_coding_system): New argument src_chars. Change callers.
15587 Fix for utf-16 detection.
15588 (init_coding_once): Don't use ISO_carriage_return.
15589 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15590 reused_workbuf_in_use.
15591
155922008-02-01 Kenichi Handa <handa@m17n.org>
15593
15594 * keymap.c (store_in_keymap): Pay attention to the case that idx
15595 is a cons specifying a character range.
15596
155972008-02-01 Kenichi Handa <handa@m17n.org>
15598
15599 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15600 HANDLED_RECOMPUTE_PROPS.
15601
15602 * coding.c (Fdefine_coding_system_internal): Fix checking of
15603 ascii compatibility.
15604
156052008-02-01 Kenichi Handa <handa@m17n.org>
15606
15607 * charset.c (find_charsets_in_text): Delete unused locale variable.
15608 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15609
15610 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15611 Resync charset_list to Vemacs_mule_charset_list.
15612
15613 * keymap.c (store_in_keymap): Pay attention to the case that idx
15614 is a cons specifying a character range.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * composite.c (update_compositions): Bind inhibit-read-only, etc
15619 to t before calling remove-list-of-text-properties.
15620
15621 * print.c (print_object): Always print ASCII chars as is.
15622
156232008-02-01 Kenichi Handa <handa@m17n.org>
15624
15625 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15626
15627 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15628 is a char table.
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15633
156342008-02-01 Kenichi Handa <handa@m17n.org>
15635
15636 * xfaces.c (set_lface_from_font_name): Fix for the case that
15637 FONTNAME is not fontset name.
15638
156392008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * fns.c (base64_encode_1): Fix previous change.
15642
156432008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * fontset.c (set_fontset_font): New function.
15646 (Fset_fontset_font): If a font is specified for a charset, use
15647 map_charset_chars to store the font spec in a fontset.
15648
156492008-02-01 Kenichi Handa <handa@m17n.org>
15650
15651 * fontset.c (fontset_face): Create a fallback fontset on demand.
15652 (make_fontset): Don't create a fallback fontset here.
15653 (free_face_fontset): Free a fallback fontset (if any) too.
15654 (n_auto_fontsets): Delete this variable.
15655 (auto_fontset_alist): New variable.
15656 (new_fontset_from_font_name): Check auto_fontset_alist.
15657 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15658 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15659 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15660 Defsubr Sfontset_list_all.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15665
156662008-02-01 Kenichi Handa <handa@m17n.org>
15667
15668 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15669
156702008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * editfns.c (Fgoto_char): Fix docstring.
15673
156742008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * insdel.c (insert_from_gap): Adjust intervals correctly.
15677
156782008-02-01 Jason Rumney <jasonr@gnu.org>
15679
15680 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15681 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15682 (w32_initialize): Try to load it.
15683 (x_get_font_repertory): Use it if available.
15684 (w32_encode_char): Add shortcut for unicode output.
15685
15686 * w32fns.c (w32_load_system_font): Default charset to -1.
15687 (x_to_w32_charset): Match all fonts for unicode.
15688 (w32_to_x_charset): New parameter matching. Don't return partial
15689 or wildcard charsets.
15690 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15691 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15692 (w32_to_x_font): Match charset to real charset.
15693 (enum_font_cb2): Always list unicode versions.
15694
15695 * makefile.w32-in (temacs): Increase EMHEAP.
15696
156972008-02-01 Jason Rumney <jasonr@gnu.org>
15698
15699 * w32term.c (w32_encode_char): New charset parameter.
15700 font_info.encoding becomes encoding_type.
15701 (x_get_font_repertory): New function. Warning: stub only!
15702 (x_new_font): Return quickly if font already set.
15703 (x_new_fontset): fontsetname parameter is Lisp_Object.
15704 Use new fs_query_fontset. Try new_fontset_from_font_name.
15705 Use fontset_name for return value.
15706
15707 * w32term.h: Declare x_get_font_repertory.
15708
15709 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15710 place of find_charset_in_text. Use encode_coding_object in place
15711 of encode_coding.
15712 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15713 decode_coding.
15714
15715 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15716 of x_new_fontset.
15717 (w32_load_system_font): Initialize charset as unicode.
15718 font_info.encoding becomes encoding_type.
15719 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15720 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15721 (syms_of_w32fns): Set get_font_repertory_func.
15722
15723 * w32console.c: Include character.h. Use terminal_encode_buffer
15724 from term.c.
15725 (write_glyphs): Use new version of encode_terminal_code. Use
15726 encode_coding_object in place of encode_coding.
15727
15728 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15729 encoding becomes encoding_type.
15730
15731 * term.c (terminal_encode_buffer): Make externally visible.
15732
15733 * makefile.w32-in: Add character.h dependancies.
15734 (character.o, chartab.o): New targets.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15739 CODING_ID_EOL_TYPE.
15740
157412008-02-01 Andreas Schwab <schwab@suse.de>
15742
15743 * coding.c (produce_chars): Revert last change.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * charset.h (charset_unicode): Extern it.
15748
15749 * charset.c (string_xstring_p): Check by (C >= 0x100).
15750 (find_charsets_in_text): Change format of the arc CHARSETS. New
15751 arg MULTIBYTE.
15752 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15753 change of find_charsets_in_text.
15754 (Fsplit_char): Fix doc. Never return unknown.
15755
15756 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15757
15758 * coding.c (Fdefine_coding_system_alias): Update
15759 Vcoding_system_list.
15760
15761 * fontset.c (load_font_get_repertory): Pay attention to the case
15762 that ENCODING of a font is specified by a char-table.
15763
15764 * xterm.c (x_get_font_repertory): Handle the case that the
15765 encoding of font is other than Unicode.
15766
157672008-02-01 Kenichi Handa <handa@m17n.org>
15768
15769 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15770 if a character is encodable by the terminal coding system. If
15771 not, produces proper number of `?'s. Update
15772 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15773 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15774
157752008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15778 variables.
15779 (encode_terminal_code): Change argument. Encode multiple
15780 characters at once. Store the result of encoding in
15781 terminal_encode_buffer.
15782 (write_glyphs, insert_glyphs): Adjust for the change of
15783 encode_terminal_code.
15784 (term_init): Initialize terminal_encode_buffer and
15785 terminal_encode_buf_size.
15786
15787 * coding.c (consume_chars): If coding->src_object is nil, don't
15788 check annotation.
15789
157902008-02-01 Kenichi Handa <handa@m17n.org>
15791
15792 * character.c (char_string): Use ASCII_CHAR_P instead of
15793 SINGLE_BYTE_CHAR_P.
15794
157952008-02-01 Kenichi Handa <handa@m17n.org>
15796
15797 * xdisp.c (handle_auto_composed_prop): Check if the last
15798 characters of auto-composed region is newly composed with the
15799 following characters.
15800 (handle_composition_prop): Fix checking of point being inside
15801 composition.
15802
158032008-02-01 Kenichi Handa <handa@m17n.org>
15804
15805 * fns.c (concat): Don't change multibyteness of the result by
15806 concatenating an 8-bit character.
15807
15808 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15809 multibyteness of the result when newelt is an 8-bit character.
15810
158112008-02-01 Dave Love <fx@gnu.org>
15812
15813 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15814 EMACS_INT.
15815
15816 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15817
15818 * xfaces.c (face_numeric_value): Declare dim size_t.
15819 (Finternal_lisp_face_equal_p): Remove unused f.
15820
15821 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15822 (MATRIX_ROW): Remove unused vars.
15823 (draw_glyphs, x_insert_glyphs, fast_find_position)
15824 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15825 byte/char counts.
15826
15827 * regex.c (regex_compile): Remove unused var.
15828
15829 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15830
15831 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15832 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15833
15834 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15835
15836 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15837
15838 * fileio.c (Fwrite_region): Remove unused var.
15839
15840 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15841 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15842
15843 * composite.c (Fremove_list_of_text_properties): Declare.
15844
15845 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15846 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15847 (coding_inherit_eol_type): Remove unused attrs.
15848 (detect_coding): Cast arg of detect_eol.
15849
15850 * charset.c (syms_of_charset): Remove unused var p.
15851 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15852 byte/char counts.
15853
15854 * casetab.c (set_case_table): Remove unused var.
15855
15856 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15857 unused vars.
15858
158592008-02-01 Dave Love <fx@gnu.org>
15860
15861 * xterm.c (x_bitmap_mask): Declare.
15862
158632008-02-01 Dave Love <fx@gnu.org>
15864
15865 * xterm.c (x_term_init): Fix type error.
15866
15867 * lisp.h: Add Funibyte_char_to_multibyte.
15868
15869 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15870 (Fset_coding_system_priority): Doc fix.
15871
15872 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15873
15874 * indent.c (check_composition): Make start and end EMACS_INT.
15875
15876 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15877
15878 * xdisp.c (handle_composition_prop, check_point_in_composition):
15879 Make buffer positions EMACS_INT.
15880
15881 * composite.c (find_composition, run_composition_function)
15882 (update_compositions, Ffind_composition_internal): Make buffer
15883 positions EMACS_INT.
15884
15885 * composite.h (find_composition, update_compositions): Make
15886 position args EMACS_INT.
15887
15888 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15889
15890 * intervals.c (get_property_and_range):
15891 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15892
15893 * unexalpha.c: Don't include varargs.h.
15894
158952008-02-01 Dave Love <fx@gnu.org>
15896
15897 * coding.h (ENCODE_UTF_8): New.
15898
15899 * Makefile.in (gtkutil.o): Depend on coding.h.
15900
15901 * coding.c (Fset_coding_system_priority): Doc fix.
15902
159032008-02-01 Kenichi Handa <handa@m17n.org>
15904
15905 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15906 the case of auto saving.
15907
159082008-02-01 Andreas Schwab <schwab@suse.de>
15909
15910 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15911 `range' from GC.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15916
159172008-02-01 Kenichi Handa <handa@m17n.org>
15918
15919 * fileio.c (choose_write_coding_system): Return a decided coding system.
15920 (Fwrite_region): Set Vlast_coding_system_used to the return value
15921 of choose_write_coding_system.
15922
159232008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * charset.c (Fset_charset_priority): Pay attention to duplicated
15926 arguments.
15927
15928 * coding.c (QCcategory): New variable.
15929 (syms_of_coding): Defsym it. Set all elements of
15930 Vcoding_category_table and their symbol values.
15931 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15932 coding-category-XXX, and coding-category-list.
15933 (Fdefine_coding_system_internal): Add category in the plist.
15934
159352008-02-01 Kenichi Handa <handa@m17n.org>
15936
15937 * callproc.c (Fcall_process): Handle carryover correctly.
15938
15939 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15940 (raw_text_coding_system): Check NILP (coding_system).
15941 (coding_inherit_eol_type): Check NILP (coding_system) and
15942 NILP (parent).
15943 (consume_chars): Fix for the case of raw-text.
15944
15945 * process.c (read_process_output): Handle carryover correctly.
15946
159472008-02-01 Dave Love <fx@gnu.org>
15948
15949 * regex.c (re_search_2): Fix last change.
15950
159512008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15954 target_multibyte. Even in a unibyte case, return a converted
15955 multibyte char.
15956 (GET_CHAR_AFTER): New macro.
15957 (PATFETCH): Translate via multibyte char.
15958 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15959 (SETUP_MULTIBYTE_RANGE): New macro.
15960 (regex_compile): Setup compiled code so that its multibyteness
15961 matches that of a target. Fix the handling of "[X-YZ]" using
15962 SETUP_MULTIBYTE_RANGE.
15963 (analyse_first) <charset>: For filling fastmap for all multibyte
15964 characters, don't check by BASE_LEADING_CODE_P.
15965 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15966 the same as RE_MULTIBYTE_P (bufp) now.
15967 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15968 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15969 (TRANSLATE_VIA_MULTIBYTE): New macro.
15970 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15971 It is the same as RE_MULTIBYTE_P (bufp) now.
15972 <exactn>: Translate via multibyte.
15973 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15974 translate it.
15975 <charset, charset_not>: Fetch a character by
15976 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15977 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15978 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15979 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15980 by GET_CHAR_AFTER.
15981 (bcmp_translate): Likewise.
15982
15983 * search.c (compile_pattern): Check the member target_multibyte,
15984 not the member multibyte of buf.
15985
15986 * lread.c (read1): While reading a string, set force_singlebyte
15987 and force_multibyte correctly.
15988
15989 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15990 up of unibyte_to_multibyte_table.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * coding.c (setup_coding_system): If coding has
15995 post-read-conversion or pre-write-conversion, set
15996 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15997 respectively.
15998 (decode_coding_gap): Run post-read-conversion if any.
15999
16000 * fileio.c (Finsert_file_contents): Even if we read into a
16001 unibyte buffer, check if we must decode the result or not.
16002
160032008-02-01 Kenichi Handa <handa@m17n.org>
16004
16005 * coding.c (make_conversion_work_buffer): Change the work buffer
16006 name to the same one as that of Emacs 21.
16007
160082008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * coding.h (make_conversion_work_buffer): Adjust prototype.
16011 (code_conversion_restore): Don't extern it.
16012
16013 * coding.c (detected_mask): Delete unused variable.
16014 (decode_coding_iso_2022): Pay attention to the byte sequence of
16015 CTEXT extended segment, and retain those bytes as is.
16016 (decode_coding_ccl): Delete unused variable `valids'.
16017 (setup_coding_system): Delete unused variable `category'.
16018 (consume_chars): Delete unused variable `category'. Make it work
16019 for non-multibyte case.
16020 (make_conversion_work_buffer): Change argument.
16021 (saved_coding): Delete unused variable.
16022 (code_conversion_restore): Don't check saved_coding->destination.
16023 (code_conversion_save): New function.
16024 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16025 instead of record_unwind_protect.
16026 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16027 (detect_coding_system): Delete unused variable `mask'.
16028 (Fdefine_coding_system_internal): Delete unused variable id.
16029
16030 * fileio.c (kill_workbuf_unwind): New function.
16031 (Finsert_file_contents): On replacing, call
16032 make_conversion_work_buffer with correct args, and call
16033 record_unwind_protect with the first arg kill_workbuf_unwind.
16034
16035 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16036
160372008-02-01 Kenichi Handa <handa@m17n.org>
16038
16039 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16040 (fontset_add): Fix for the case that TO is less than TO1.
16041 (Ffontset_info): Don't use fallback fontset on checking the
16042 default fontset.
16043 (dump_fontset): New function for debugging.
16044
16045 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16046 coding_type is Qcharset.
16047
160482008-02-01 Kenichi Handa <handa@m17n.org>
16049
16050 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16051 (map_char_table): Don't inherit the value from the parent on
16052 initializing VAL. Adjust for the above change.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * coding.c (Qsignature, Qendian): Delete these variables.
16057 (syms_of_coding): Don't initialize them.
16058 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16059 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16060 detect_info->found.
16061 (decode_coding_utf_16): Don't detect BOM here.
16062 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16063 is NOT utf_16_without_bom.
16064 (setup_coding_system): For a coding system of type utf-16, check
16065 if the attribute :endian is Qbig or not (not nil or not), and set
16066 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16067 (detect_coding): If coding type is utf-16 and BOM detection is
16068 required, detect it.
16069 (Fdefine_coding_system_internal): For a coding system of type
16070 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16071
160722008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * coding.c (coding_set_source): Fix for the case that the current
16075 buffer is different from coding->src_object.
16076 (decode_coding_object): Don't use the conversion work buffer if
16077 DST_OBJECT is a buffer.
16078
160792008-02-01 Dave Love <fx@gnu.org>
16080
16081 * lread.c (read_emacs_mule_char) [len==2]: Index
16082 emacs_mule_charset correctly.
16083
160842008-02-01 Dave Love <fx@gnu.org>
16085
16086 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16087 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16088 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16089 treated specially.)
16090 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16091 (detected_mask): Remove Big5 bits.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 The following changes are to make the font rescaling facility
16096 compatible with Emacs 21.
16097
16098 * xfaces.c (Vface_font_rescale_alist): Rename from
16099 Vface_resizing_fonts.
16100 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16101 (font_rescale_ratio): Rename from font_resizing_ratio.
16102 (split_font_name): Set font->rescale_ratio.
16103 (better_font_p): Pay attention to font->rescale_ratio.
16104 (build_scalable_font_name): Likewise. Change RESX, and RESY
16105 fields.
16106 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16107
161082008-02-01 Kenichi Handa <handa@m17n.org>
16109
16110 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16111 (Qutf_16_le): Remove these variables.
16112 (syms_of_coding): Don't DEFSYM them.
16113 (decode_coding_utf_16): Fix handling of BOM.
16114 (encode_coding_utf_16): Fix handling of BOM.
16115
161162008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * fileio.c (Finsert_file_contents): On replacing, before decoding
16119 the file into the work buffer, set point of the work buffer to the end.
16120
161212008-02-01 Dave Love <fx@gnu.org>
16122
16123 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16124
161252008-02-01 Dave Love <fx@gnu.org>
16126
16127 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16128 and fix C types.
16129
161302008-02-01 Kenichi Handa <handa@m17n.org>
16131
16132 * xdisp.c (SKIP_GLYPHS): New macro.
16133 (set_cursor_from_row): Pay attention to string display properties.
16134
16135 * category.c (copy_category_entry): Fix for the case that RANGE
16136 is an integer.
16137
16138 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16139
16140 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * charset.c (Fcharset_id_internal): New function.
16145 (syms_of_charset): Defsubr it.
16146
16147 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16148 with the last arg charset_list acquired from coding.
16149 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16150 the attribute coding_attr_ccl_valids.
16151
16152 * coding.h (enum define_coding_ccl_arg_index): Set the first
16153 member coding_arg_ccl_decoder to coding_arg_max.
16154
16155 * ccl.h (ccl_driver): Adjust prototype.
16156
16157 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16158 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16159 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16160 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16161 last arg Qnil.
16162
161632008-02-01 Kenichi Handa <handa@m17n.org>
16164
16165 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16166 call encode_char.
16167
16168 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16169
161702008-02-01 Dave Love <fx@gnu.org>
16171
16172 * composite.c (syms_of_composite): Make composition_hash_table weak.
16173
161742008-02-01 Kenichi Handa <handa@m17n.org>
16175
16176 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16177 (font_name_registry): Don't extern them.
16178 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16179
16180 * fontset.h (Qfontset): Don't extern it.
16181 (new_fontset_from_font_name): Extern it.
16182
16183 * fontset.c: Give 8 extra slots to fontset objects.
16184 (Qfontset_info): New variable.
16185 (syms_of_fontset): Defsym it.
16186 (FONTSET_FALLBACK): New macro.
16187 (fontset_face): Try also the default fontset.
16188 (make_fontset): Realize a fallback fontset from the default fontset.
16189 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16190 using split_font_name_into_vector and build_font_name_from_vector.
16191 (Fset_fontset_font): Access the elements of font_spec by enum
16192 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16193 name by using split_font_name_into_vector.
16194 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16195 generate a proper font name from the fontset name. Update
16196 Vfontset_alias_alist.
16197 (n_auto_fontsets): New variable.
16198 (new_fontset_from_font_name): New function.
16199 (Ffont_info): Store the information about fonts generated from the
16200 default fontset in the first extra slot of the returned char-table.
16201
16202 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16203 (font_name_registry): Delete function.
16204 (split_font_name_into_vector): New function.
16205 (build_font_name_from_vector): New function.
16206 (font_list): The argument REGISTRY is now a list of registry names.
16207 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16208 specifies an explicit font name, return the name as is. Make a
16209 list of registy names.
16210
16211 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16212 of x_new_fontset.
16213 (Fx_create_frame): Don't call x_new_fontset here. Just use
16214 x_list_fonts to check the existence of fonts.
16215
16216 * xterm.h (x_new_fontset): Adjust prototype.
16217
16218 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16219 string. Use new_fontset_from_font_name to create a fontset from a
16220 font name.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * syntax.c (Vfind_word_boundary_function_table): New name for
16225 Vnext_word_boundary_function_table.
16226 (find-word-boundary-function-table): New name for
16227 next-word-boundary-function-table.
16228
162292008-02-01 Dave Love <fx@gnu.org>
16230
16231 * Makefile.in: Fix some dependencies.
16232
16233 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16234 set it to nil before returning.
16235
16236 * composite.c (update_compositions): Fix type error.
16237
16238 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16239
162402008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 * xterm.c (x_new_font): Optimize for the case that the font is
16243 already set for the frame.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * chartab.c (char_table_ascii): Check if the char table contents
16248 is sub-char-table or not.
16249 (char_table_set, char_table_set_range): Fix argument to
16250 char_table_ascii.
16251
16252 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16253 (detect_coding_utf_8, detect_coding_utf_16)
16254 (detect_coding_emacs_mule, detect_coding_iso_2022)
16255 (detect_coding_sjis, detect_coding_big5)
16256 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16257 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16258 sequence is valid in this coding system. Change callers.
16259 (MAX_ANNOTATION_LENGTH): New macro.
16260 (ADD_ANNOTATION_DATA): New macro.
16261 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16262 ADD_ANNOTATION_DATA. Change the format of annotation data.
16263 (ADD_CHARSET_DATA): New macro.
16264 (emacs_mule_char): New argument ID. Change callers.
16265 (decode_coding_emacs_mule, decode_coding_iso_2022)
16266 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16267 Produce charset annotation data in coding->charbuf.
16268 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16269 to charset annotation data in coding->charbuf.
16270 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16271 coding->common_flags if the coding system is iso-2022 based and
16272 uses designation.
16273 (produce_composition): Adjust for the new annotation data format.
16274 (produce_charset): New function.
16275 (produce_annotation): Handle charset annotation.
16276 (handle_composition_annotation, handle_charset_annotation): New
16277 functions.
16278 (consume_chars): Handle charset annotation. Utilize the above two
16279 functions.
16280 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16281 buffer, get the deleted text as a string and set
16282 coding->src_object to that string.
16283 (detect_coding, detect_coding_system): Use the new struct
16284 coding_detection_info.
16285
16286 * coding.h (struct coding_detection_info): New structure.
16287 (struct coding_system): Adjust prototype of the member `detector'.
16288 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16289
162902008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16293
162942008-02-01 Dave Love <fx@gnu.org>
16295
16296 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16297 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16298 to new local and nullify apropos_accumulate before returning.
16299 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16300
163012008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16304 correctly.
e3eea1fc 16305
aac0c6e3
MR
163062008-02-01 Dave Love <fx@gnu.org>
16307
16308 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16309
163102008-02-01 Kenichi Handa <handa@m17n.org>
16311
16312 The following changes are to make character composition happen
16313 automatically on displaying.
16314
16315 * Makefile.in (lisp, shortlisp): Add composite.elc.
16316
16317 * composite.h (Qauto_composed, Vauto_composition_function)
16318 (Qauto_composition_function): Extern them.
16319
16320 * composite.c (Vcomposition_function_table)
16321 (Qcomposition_function_table): Delete variables.
16322 (Qauto_composed, Vauto_composition_function)
16323 (Qauto_composition_function): New variables.
16324 (run_composition_function): Don't call
16325 compose-chars-after-function.
16326 (update_compositions): Clear `auto-composed' text property.
16327 (compose_chars_in_text): Delete this function.
16328 (syms_of_composite): Staticpro Qauto_composed and
16329 Qauto_composition_function. Declare Vauto_composition_function as
16330 a Lisp variable.
16331
16332 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16333
16334 * xdisp.c (it_props): Add an entry for Qauto_composed.
16335 (handle_auto_composed_prop): New function.
16336
16337 * xselect.c (selection_data_to_lisp_data): Don't call
16338 compose_chars_in_text.
16339
163402008-02-01 Dave Love <fx@gnu.org>
16341
16342 * keyboard.c (read_char): Modify checking around use of
16343 Vkeyboard_translate_table.
16344
16345 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16346 and fix C types.
16347
163482008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16351 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16352 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16353 the case that the last byte is '\r' correctly.
16354 (decode_coding): Flush out the unprocessed data correctly.
16355 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16356
163572008-02-01 Dave Love <fx@gnu.org>
16358
16359 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16360 Add XK_ISO... case.
16361 (xaw_scroll_callback): Revert last change.
16362
163632008-02-01 Kenichi Handa <handa@m17n.org>
16364
16365 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * xfaces.c (Vface_resizing_fonts): New variable.
16370 (struct font_name): New member `resizing_ratio'.
16371 (font_resizing_ratio): New function.
16372 (split_font_name): Set font->resizing_ratio.
16373 (better_font_p): Pay attention to font->resizing_ratio.
16374 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16375 RESX, and RESY fields.
16376 (try_alternative_families): Try scalable fonts if
16377 Vscalable_fonts_allowed is not Qt.
16378 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16379
163802008-02-01 Dave Love <fx@gnu.org>
16381
16382 * xterm.c (xaw_scroll_callback): Cast correctly.
16383
163842008-02-01 Dave Love <fx@gnu.org>
16385
16386 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16387 (lispy_kana_keys): Comment out.
16388 (make_lispy_event) [XK_kana_A]: Comment out.
16389
16390 * xterm.c (xaw_scroll_callback): Cast call_data.
16391 (XTread_socket): Deal with ASCII keysyms.
16392 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16393
163942008-02-01 Dave Love <fx@gnu.org>
16395
16396 * xterm.c (Vx_keysym_table): New.
16397 (syms_of_xterm): Initialize it.
16398 (XTread_socket): Use it.
16399 From head: Eliminate incorrect optimization that tried to avoid
16400 decoding the output of X*LookupString.
16401 (x_get_font_repertory): Delete charset declaration.
16402
164032008-02-01 Kenichi Handa <handa@m17n.org>
16404
16405 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16406 return 0.
16407 (Fdefine_coding_system_internal): Setup
16408 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16409
164102008-02-01 Dave Love <fx@gnu.org>
16411
16412 * coding.c (Fcheck_coding_system): Doc fix.
16413
16414 * editfns.c (Finsert_byte): Return a proper value.
16415
164162008-02-01 Kenichi Handa <handa@m17n.org>
16417
16418 * coding.c (decode_coding): Fix args to translate_chars. Pay
16419 attention to Vstandard_translation_table_for_decode.
16420 (encode_coding): Fix args to translate_chars. Pay attention to
16421 Vstandard_translation_table_for_encode.
16422
16423 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16424 SINGLE_BYTE_CHAR_P.
16425
16426 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16427 not by SINGLE_BYTE_CHAR_P.
16428
16429 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16430 SINGLE_BYTE_CHAR_P.
16431
16432 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16433 SINGLE_BYTE_CHAR_P.
16434
16435 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16436 by SINGLE_BYTE_CHAR_P.
16437
16438 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16439 SINGLE_BYTE_CHAR_P.
16440
164412008-02-01 Dave Love <fx@gnu.org>
16442
16443 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16444
164452008-02-01 Dave Love <fx@gnu.org>
16446
16447 * fns.c (Flanginfo): Fix typo.
16448
16449 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16450
164512008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16454 (detect_coding_emacs_mule, detect_coding_iso_2022)
16455 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16456 incomplete byte sequence. Don't update *mask when correctly detected.
16457 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16458 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16459 (detect_coding, detect_coding_system): Adjust for the changes above.
16460
164612008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * character.c (char_string): Rename from
16464 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16465 (string_char): Rename from string_char.
16466
16467 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16468 if C is greater than MAX_3_BYTE_CHAR.
16469 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16470 string_char instead of string_char_with_unification.
16471
164722008-02-01 Dave Love <fx@gnu.org>
16473
16474 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16475
164762008-02-01 Kenichi Handa <handa@m17n.org>
16477
16478 * keymap.c (push_key_description): Pay attention to force_multibyte.
16479
16480 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16481
164822008-02-01 Dave Love <fx@gnu.org>
16483
16484 * charset.c (define_charset_internal): Rename `supprementary'.
16485
16486 * Makefile.in (lisp, shortlisp): Remove latin-N.
16487
164882008-02-01 Dave Love <fx@gnu.org>
16489
16490 * xfns.c (x_window, x_window): Use use_xim.
16491
16492 * xterm.c (use_xim): Initialize.
16493 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16494 (x_term_init): Maybe set use_xim.
16495
16496 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16497
164982008-02-01 Kenichi Handa <handa@m17n.org>
16499
16500 * search.c (search_buffer): Fix case-fold-search of multibyte
16501 characters.
16502 (boyer_moore): Rename the last argument to char_high_bits.
16503
165042008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * xdisp.c (display_string): Fix for the case of zero width glyph.
16507
16508 * xfns.c (x_set_font): Change the error message of the case that
16509 x_new_fontset returns Qt.
16510
16511 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16512 (Finternal_set_lisp_face_attribute): Use signal_error for the
16513 error of invalid fontset.
16514
16515 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16516 fontset, return Qt.
16517
165182008-02-01 Dave Love <fx@gnu.org>
16519
16520 * unexelf.c (unexec): Make .got handling not SGI-specific.
16521
16522 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16523
16524 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16525
16526 * keyboard.c (read_key_sequence): Fix type error.
16527
16528 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16529 type error.
16530
16531 * fontset.c (fontset_add): Return Lisp_Object.
16532
165332008-02-01 Dave Love <fx@gnu.org>
16534
16535 * charset.h (charset_ordered_list_tick): Declare extern.
16536
165372008-02-01 Kenichi Handa <handa@m17n.org>
16538
16539 The following changes (and some of 2008-02-01 changes of mine) are
16540 for handling syntax, category, and case conversion for unibyte
16541 characters by converting them to multibyte on the fly. With these
16542 changes, we don't have to setup syntax and case tables for unibyte
16543 characters in each language environment.
16544
16545 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16546 multibyte if necessary.
16547
16548 * bytecode.c (Fbyte_code): Likewise.
16549
16550 * character.h (LEADING_CODE_LATIN_1_MIN)
16551 (LEADING_CODE_LATIN_1_MAX): New macros.
16552 (unibyte_to_multibyte_table): Extern it.
16553 (unibyte_char_to_multibyte): New macro.
16554 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16555 (CHAR_LEADING_CODE): New macro.
16556 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16557
16558 * character.c (unibyte_to_multibyte_table): New variable.
16559 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16560 (multibyte_char_to_unibyte): If C is an eight-bit character,
16561 convert it to the corresponding byte value.
16562
16563 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16564 not 1, signals an error. Update the elements of
16565 unibyte_to_multibyte_table.
16566 (init_charset_once): Initialize unibyte_to_multibyte_table.
16567 (syms_of_charset): Define the charset `iso-8859-1'.
16568
16569 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16570 as is without converting it to unibyte. In a unibyte buffer,
16571 convert C to multibyte before checking the syntax.
16572
16573 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16574
16575 * minibuf.c (Fminibuffer_complete_word): Use the macro
16576 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16577
16578 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16579
16580 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16581 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16582 that is zero, convert an eight-bit char to multibyte.
16583 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16584 non-emacs case.
16585 (PATFETCH): Convert an eight-bit char to multibyte.
16586 (HANDLE_UNIBYTE_RANGE): New macro.
16587 (regex_compile): Setup the compiled pattern for multibyte chars
16588 even if the given regex string is unibyte. Use PATFETCH_RAW
16589 instead of PATFETCH in many places. To handle `charset'
16590 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16591 only for ASCII chars.
16592 (analyse_first) <exactn>: Simplify because the compiled pattern
16593 is multibyte.
16594 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16595 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16596 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16597 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16598 multibyte always 1.
16599 (re_search_2): In emacs, set the locale variable multibyte to 1,
16600 otherwise to 0. New local variable target_multibyte. Check it
16601 to decide the multibyteness of STR1 and STR2. If
16602 target_multibyte is zero, convert unibyte chars to multibyte
16603 before translating and checking fastmap.
16604 (TARGET_CHAR_AND_LENGTH): New macro.
16605 (re_match_2_internal): In emacs, set the locale variable multibyte
16606 to 1, otherwise to 0. New local variable target_multibyte. Check
16607 it to decide the multibyteness of STR1 and STR2. Use
16608 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16609 <charset, charset_not>: If multibyte is nonzero, check fastmap
16610 only for ASCII chars. Call bcmp_translate with
16611 target_multibyte, not with multibyte.
16612 <begline>: Declare the local variable C as `unsigned'.
16613 (bcmp_translate): Change the last arg name to target_multibyte.
16614
16615 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16616 the regexp pattern and the matching target. Set cp->buf.multibyte
16617 to the multibyteness of the regexp pattern. Set
16618 cp->but.target_multibyte to the multibyteness of the matching target.
16619 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16620 FETCH_STRING_CHAR_ADVANCE.
16621 (Freplace_match): Convert unibyte chars to multibyte.
16622
16623 * syntax.c (char_quoted, back_comment, scan_words)
16624 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16625 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16626 unibyte chars to multibyte.
16627 (skip_chars): Delete the arg syntaxp, and move the code for
16628 handling syntaxes to skip_syntaxes. Change callers.
16629 Fix the case that the multibyteness of STRING and the current
16630 buffer doesn't match.
16631 (skip_syntaxes): New function.
16632 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16633 SINGLE_BYTE_CHAR_P.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * xfaces.c (QCfontset): New variable.
16638 (LFACE_FONTSET): New macro.
16639 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16640 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16641 (Finternal_set_lisp_face_attribute)
16642 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16643 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16644 check also LFACE_FONTSET_INDEX.
16645 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16646 attrs[LFACE_FONT_INDEX].
16647 (syms_of_xfaces): Intern and staticpro QCfontset.
16648
16649 * dispextern.h (enum lface_attribute_index): New member
16650 LFACE_FONTSET_INDEX.
16651
16652 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * coding.c (coding_set_destination): Fix coding->destination for
16657 the case converting a region.
16658 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16659 (encode_coding_object): Fix coding->dst_pos and
16660 coding->dst_pos_byte for the case converting a region.
16661
16662 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16663
16664 * character.h (BYTE8_STRING): New macro.
16665
16666 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16671 characters by octal form.
16672
16673 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16674
16675 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16676 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16677 _fetch_multibyte_char_len.
16678 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16679
16680 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16681
16682 * casefiddle.c (casify_object): Simplify. Handle the case that
16683 the case conversion change the byte length.
16684 (casify_region): Likewise.
16685
16686 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16687
16688 * character.c (_fetch_multibyte_char_len): Delete this variable.
16689 (syms_of_character): Setup Vprintable_chars.
16690
16691 * editfns.c (Fchar_equal): Fix for the unibyte case.
16692 (Finsert_byte): New function.
16693 (syms_of_editfns): Defsubr it.
16694
16695 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16696 of direct code 0x3ffff.
16697
16698 * search.c (Freplace_match): Fix for the unibyte case.
16699
167002008-02-01 Kenichi Handa <handa@m17n.org>
16701
16702 * lread.c (safe_to_load_p): Fix the logic.
16703
16704 * syntax.c (scan_words): Don't treat characters belonging to
16705 different scripts as constituting a word.
16706
16707 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16708
16709 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16710
16711 * emacs.c (main): In the case of --unibyte, instead of aborting on
16712 finding non-empty buffer, make it unibyte.
16713
167142008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16717 to create a fontset.
16718
167192008-02-01 Dave Love <fx@gnu.org>
16720
16721 * character.c (Funibyte_char_to_multibyte): Doc fix.
16722
16723 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16724
167252008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * fontset.c (fontset_add): Make the type `int'.
16728 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16729
16730 * character.c (unibyte_char_to_multibyte)
16731 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16732 charset_unibyte, not charset_primary.
16733
16734 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16735
16736 * charset.c (charset_unibyte): Rename from charset_primary.
16737 (Funibyte_charset): Rename from Fprimary_charset.
16738 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16739 (syms_of_charset): Adjust for the above changes.
16740
16741 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16742 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16743 it->multibyte_p is zero.
16744
16745 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16746 Delete extern.
16747
167482008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * coding.c (Fdefine_coding_system_internal): Fix category setting
16751 for a coding system of type iso-2022.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * syntax.c (Vnext_word_boundary_function_table): New variable.
16760 (next-word-boundary-function-table): Declare it as a Lisp variable
16761 in syms_of_syntax.
16762 (scan_words): Call functions in Vnext_word_boundary_function_table
16763 if any.
16764
16765 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16766
16767 * fontset.c (fs_load_font): If fontp->charset is not negative,
16768 return fontp without setting its members.
16769
167702008-02-01 Dave Love <fx@gnu.org>
16771
16772 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16773
16774 * m/sparc.h (HAVE_ALLOCA): Delete.
16775
16776 * s/irix6-5.h: Don't include strings.h.
16777 (bcopy, bzero, bcmp): Don't undef.
16778
16779 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16780
16781 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16782 (TIOCSIGSEND): Don't test IRIX6.
16783 (bcopy, bzero, bcmp): Define conditionally.
16784
167852008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * buffer.c (Qas, Qmake, Qto): New variables.
16788 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16789 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16790
16791 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16792 we are inserting a process output into a multibyte buffer.
16793
16794 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16795 multibyte_char_to_unibyte.
16796
16797 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16798 by the primary charset, make it eight-bit char.
16799 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16800
16801 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16802 (charset_8_bit__control, charset_8_bit_graphic)
16803 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16804 (define_charset_internal): New function.
16805 (syms_of_charset): Call define_charset_internal for pre-defined
16806 charsets.
16807
16808 * charset.h (charset_8_bit): Extern it.
16809
16810 * coding.c (make_conversion_work_buffer): Adjust for the change
16811 of Fset_buffer_multibyte.
16812 (encode_coding_raw_text): Increment p0 in the loop.
16813
16814 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16815
16816 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16817 for the change of Fset_buffer_multibyte.
16818
16819 * fns.c (Fstring_to_multibyte): New function.
16820 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16821
168222008-02-01 Dave Love <fx@gnu.org>
16823
16824 * xfns.c (x_put_x_image): Declare args.
16825
16826 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16827 (try_font_list): Declare an arg.
16828
16829 * xdisp.c (message2_nolog, set_message): Declare an arg.
16830
16831 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16832
16833 * syntax.c (scan_sexps_forward): Declare an arg.
16834
16835 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16836 Declare an arg.
16837
16838 * lisp.h (Fnew_fontset): Declare.
16839
16840 * keymap.c (push_key_description): Call CHARACTERP correctly.
16841
16842 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16843 (face_for_char): Delete unused vars.
16844 (Fset_fontset_font): Doc fix. Delete unused vars.
16845
16846 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16847
16848 * composite.c (update_compositions): Declare arg.
16849
16850 * cm.c (calccost, cmgoto): Declare args.
16851
16852 * charset.c: Remove `emacs' conditional. Doc fixes.
16853 (map_char_table_for_charset): Declare.
16854
16855 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16856
16857 * ccl.c: Remove `emacs' conditional.
16858
168592008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 The following changes are to allow specifying multiple font
16862 patterns for a character range (specified by script or charset).
16863
16864 * Makefile.in (abbrev.o): Depend on syntax.h.
16865 (xfaces.o): Depend on charset.h.
16866
16867 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16868 SINGLE_BYTE_CHAR_P.
16869
16870 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16871
16872 * character.h (Vchar_script_table): Extern it.
16873
16874 * character.c (Vscript_alist): Delete.
16875 (Vchar_script_table, Qchar_script_table): New variable.
16876 (syms_of_character): Declare Vchar_script_table as a lisp variable
16877 and initialize it.
16878
16879 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16880 have property char-table-extra-slots, make no extra slot.
16881
16882 * dispextern.h (struct face): Delete member `charset'.
16883 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16884 SINGLE_BYTE_CHAR_P.
16885 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16886 Add prototypes.
16887 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16888 (generate_ascii_font_name): Rename from generate_ascii_font.
16889
16890 * fontset.h (get_font_repertory_func): New prototype.
16891 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16892 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16893
16894 * fontset.c (Qprepend, Qappend): New variables.
16895 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16896 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16897 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16898 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16899 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16900 (load_font_get_repertory): New functions.
16901 (fontset_set): Delete.
16902 (fontset_face): New arg FACE. Return face ID, not face.
16903 Complete re-write to handle new fontset structure. Change caller.
16904 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16905 (face_for_char): Don't call lookup_face.
16906 (make_fontset_for_ascii_face): New arg FACE.
16907 (fs_load_font): New arg CHARSET_ID. Don't check
16908 Vfont_encoding_alist here.
16909 (find_font_encoding): New function.
16910 (list_fontsets): Use STRINGP, not ! NILP.
16911 (accumulate_script_ranges): New function.
16912 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16913 re-written to handle new fontset structure.
16914 (Ffontset_font): Return a copy of element.
16915 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16916 docstring of font-encoding-alist.
16917
16918 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16919 (Fset_fotset_font): Fix arguments to 5.
16920
16921 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16922
16923 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16924 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16925 (highlight_trailing_whitespace): Adjust for the change of
16926 lookup_named_face.
16927
16928 * xfaces.c: Include charset.h.
16929 (load_face_font): Delete argument C. Change caller.
16930 (generate_ascii_font_name): Rename from generate_ascii_font.
16931 (font_name_registry): New function.
16932 (cache_face): Store ascii faces before non-ascii faces in buckets.
16933 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16934 Lookup only ascii faces.
16935 (lookup_non_ascii_face): New function.
16936 (lookup_named_face): Delete argument C. Change caller.
16937 (lookup_derived_face): Delete argument C. Change caller.
16938 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16939 a string, just call font_list with it.
16940 (choose_face_font): Delete arguments FACE and C. New arg
16941 FONT_SPEC. Change caller.
16942 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16943 Change caller.
16944 (realize_non_ascii_face): New function.
16945 (realize_x_face): Call load_face_font here.
16946 (realize_tty_face): Delete argument C. Change caller.
16947 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16948 get a face ID.
16949 (dump_realized_face): Don't print charset of FACE.
16950
16951 * xfns.c (x_set_font): Always call x_new_fontset and
16952 store_frame_parameter.
16953 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16954 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16955
16956 * xterm.h (x_get_font_repertory): Extern it.
16957
16958 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16959 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16960 it->multibyte_p is zero.
16961 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16962 (x_new_fontset): If FONTSETNAME doesn't match any existing
16963 fontsets, create a new one.
16964 (x_get_font_repertory): New function.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * coding.c (Ffind_coding_systems_region_internal): Detect an
16969 ASCII only string correctly.
16970
16971 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16972 version is 0.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * lread.c: Include "coding.h".
16977 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16978 (load_each_byte, unread_char): New variables.
16979 (readchar_backlog): Delete.
16980 (readchar): Return a character unless load_each_byte is nonzero.
16981 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16982 cons. If unread_char is not -1, simply return it.
16983 (unreadchar): Handle the case that readcharfun is
16984 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16985 (read_multibyte): Delete.
16986 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16987 (read_emacs_mule_char): New functions.
16988 (Fload): Even if the file doesn't have the extension ".elc", if
16989 safe_to_load_p returns a positive version number, assume that the
16990 file contains bytecompiled code. If the version is less than 22,
16991 load the file while decoding multibyte sequences by emacs-mule.
16992 (readevalloop): Don't use readchar_backlog.
16993 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16994 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16995 (read_escape): Delete the arg BYTEREP.
16996 (read1): Set load_each_byte to 1 temporarily while handling
16997 #@NUMBER. Don't call read_multibyte.
16998 (read_vector): Call Fread with a cons. If readcharfun is
16999 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17000 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17001 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17002 and Qload_force_doc_strings.
17003
170042008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * xdisp.c (face_before_or_after_it_pos): Call
17007 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * character.h (TRAILING_CODE_P): New macro.
17012 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17013 (string_char_with_unification): Fix prototype.
17014 (Vscript_alist): Extern it.
17015
17016 * character.c (Vscript_alist): New variable.
17017 (string_char_with_unification, str_as_unibyte)
17018 (string_escape_byte8): Add `const' to local variables.
17019 (syms_of_character): Declare script-alist as a Lisp variable.
17020
17021 * charset.h (Vcharset_ordered_list): Extern it.
17022 (charset_ordered_list_tick): Extern it.
17023 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17024 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17025 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17026 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17027 (Funify_charset): Adjust for the change of Funify_charset.
17028
17029 * charset.c (charset_ordered_list_tick): New variable.
17030 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17031 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17032 deunify intead of unify a charset.
17033 (string_xstring_p): Add `const' to local variables.
17034 (find_charsets_in_text): Add `const' to arguments and local variables.
17035 (encode_char): Adjust for the change of Funify_charset. Fix
17036 detecting of invalid code.
17037 (Fset_charset_priority): Increment charset_ordered_list_tick.
17038 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17039 and TO_CODE.
17040
17041 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17042 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17043 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17044 (decode_coding_ccl, consume_chars)
17045 (Ffind_coding_systems_region_internal)
17046 (Fcheck_coding_systems_region): Add `const' to local variables.
17047
17048 * print.c (print_object): Use octal form for printing the
17049 contents of a bool vector.
17050
170512008-02-01 Dave Love <fx@gnu.org>
17052
17053 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17054 <version == 20>: Refuse to load.
17055
170562008-02-01 Dave Love <fx@gnu.org>
17057
17058 * fns.c: Move coding.h.
17059 (Qcodeset, Qdays, Qmonths): New.
17060 (concat): Use CHARACTERP instead of INTEGERP.
17061 (Flocale_codeset): Delete.
17062 (Flanginfo): New function.
17063 (syms_of_fns): Change accordingly.
17064
17065 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17066
170672008-02-01 Dave Love <fx@gnu.org>
17068
17069 * casetab.c (init_casetab_once, init_casetab_once): Fix
17070 CHAR_TABLE_SET call.
17071
17072 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17073
17074 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17075
17076 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17077 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17078 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17079
17080 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17081
17082 * coding.c (ENCODE_DESIGNATION, decode_eol)
17083 (make_conversion_work_buffer, code_conversion_restore)
17084 (Fdefine_coding_system_internal): Convert Lisp types.
17085 (code_conversion_restore): Use EQ, not ==.
17086 (Fencode_coding_string): Fix code_convert_string call.
17087
17088 * coding.h (code_convert_region): Fix prototype.
17089
17090 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17091
17092 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17093 (Ffontset_info): Convert Lisp types.
17094
17095 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17096
17097 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17098
17099 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17100
17101 * chartab.c: Include "...h", not <...h> in some cases.
17102
17103 * callproc.c (Fcall_process): Remove unused variables.
17104
171052008-02-01 Dave Love <fx@gnu.org>
17106
17107 * coding.c (Fset_coding_system_priority): Allow null arg list.
17108
171092008-02-01 Dave Love <fx@gnu.org>
17110
17111 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17112 (Fself_insert_and_exit): Use CHARACTERP.
17113
17114 * callproc.c (Fcall_process): Remove unused vars.
17115
17116 * xterm.c (XTread_socket): Add extra dead keysyms.
17117
17118 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17119
17120 * dispextern.h: Remove prototypes for redraw_frame,
17121 redraw_garbaged_frames.
17122
17123 * cmds.c (Fself_insert_command): Use CHARACTERP.
17124
17125 * chartab.c (make_sub_char_table): Remove unused var.
17126 (Fset_char_table_default, Fmap_char_table): Doc fix.
17127
17128 * keymap.c (access_keymap): Remove generic char code.
17129 (push_key_description): Use CHARACTERP.
17130
171312008-02-01 Dave Love <fx@gnu.org>
17132
17133 * charset.c: Doc fixes.
17134 (Funify_charset): Extra checking.
17135
171362008-02-01 Dave Love <fx@gnu.org>
17137
17138 * lread.c: Remove some unused variables.
17139 (safe_to_load_p): If safe, return the magic number version byte.
17140 (Fload): Maybe use load-with-code-conversion.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * category.c (Fmodify_category_entry): Don't modify the contents
17145 of category_set for characters out of the range. Avoid
17146 unnecessary modification.
17147
17148 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17149 Vchar_unify_table. The default value of the table is now nil.
17150
17151 * character.c (syms_of_character): Setup Vchar_width_table for
17152 eight-bit-control and raw-byte chars.
17153
17154 * charset.h (enum define_charset_arg_index): Delete
17155 charset_arg_parents and add charset_arg_subset and
17156 charset_arg_superset.
17157 (enum charset_attr_index): Delete charset_parents and add
17158 charset_subset and charset_superset.
17159 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17160 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17161 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17162 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17163 (CHARSET_SUPERSET): New macros.
17164 (charset_work): Extern it.
17165 (ENCODE_CHAR): Use charset_work.
17166 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17167 (map_charset_chars): Extern it.
17168
17169 * charset.c (load_charset_map): Set the default value of encoder
17170 and deunifier char-tables to nil.
17171 (map_charset_chars): Change argument. Change callers. Use
17172 map_char_table_for_charset instead of map_char_table.
17173 (Fmap_charset_chars): New optional args from_code and to_code.
17174 (Fdefine_charset_internal): Adjust for the change of
17175 `define-charset' (:parents -> :subset or :superset).
17176 (charset_work): New variable.
17177 (encode_char, syms_of_charset): Adjust for the change of
17178 Fdefine_charset_internal.
17179 (Ffind_charset_string): Setup the vector `charsets' correctly.
17180
17181 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17182 the previous change.
17183 (char_table_ref_and_range): Adjust for the above change.
17184 (map_sub_char_table_for_charset): New function.
17185 (map_char_table_for_charset): New function.
17186
17187 * keymap.c (describe_vector): Handle a char-table directly here.
17188 (describe_char_table): Delete.
17189
17190 * lisp.h (map_charset_chars): Delete.
17191
171922008-02-01 Dave Love <fx@gnu.org>
17193
17194 * fns.c (count_combining): Comment out (unused).
17195 (Flocale_codeset): New.
17196 (syms_of_fns): Defsubr it.
17197
17198 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17199 (size_t): Remove.
17200
172012008-02-01 Dave Love <fx@gnu.org>
17202
17203 * Makefile.in (chartab.o): Depend on charset.h.
17204
172052008-02-01 Kenichi Handa <handa@m17n.org>
17206
17207 * character.c (syms_of_character): Set the default value of
17208 Vprintable_chars to Qnil.
17209
172102008-02-01 Dave Love <fx@gnu.org>
17211
17212 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17213
172142008-02-01 Kenichi Handa <handa@m17n.org>
17215
17216 * charset.c (load_charset_map): Handle the case that from < to
17217 correctly.
17218
17219 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17220 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17221 Pay attention to raw-8-bit chars.
17222
172232008-02-01 Kenichi Handa <handa@m17n.org>
17224
17225 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17226 It is not bytecompiled now.
17227
17228 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17229 (charset_jisx0208): New variables.
17230 (Fdefine_charset_internal): Setup them if appropriate.
17231 (init_charset_once): Initialize them to -1.
17232
17233 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17234 (charset_jisx0208): Extern them.
17235
17236 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17237 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17238 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17239 (setup_iso_safe_charsets): Fix arguments to Fassq.
17240 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17241 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17242 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17243 (encode_coding_iso_2022): Change the 1st arg to
17244 ENCODE_ISO_CHARACTER to a variable.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * charset.h (enum define_charset_arg_index): New enums
17249 charset_arg_min_code and charset_arg_max_code.
17250 (struct charset): New member char_index_offset.
17251
17252 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17253 Take charset->char_index_offset into account.
17254 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17255 args[charset_arg_max_code]. Setup charset.char_index_offset.
17256 (syms_of_charset): Fix args to Fdefine_charset_internal.
17257
172582008-02-01 Dave Love <fx@gnu.org>
17259
17260 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17261
172622008-02-01 Dave Love <fx@gnu.org>
17263
17264 * coding.c: Doc fixes.
17265 (Fcoding_system_aliases): Fix return value.
17266 (Qmac): Remove (duplicated) definition.
17267
172682008-02-01 Dave Love <fx@gnu.org>
17269
362654a6
JB
17270 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17271 New functions.
aac0c6e3
MR
17272
17273 * character.c (Fstring): Doc fix.
17274
17275 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17276
362654a6 17277 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17278 (font-encoding-alist): Doc fix.
17279
172802008-02-01 Dave Love <fx@gnu.org>
17281
17282 * term.c (costs_set): Declare static, non-initialized for pcc.
17283 (encode_terminal_code): Remove unused var.
17284
17285 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17286 for K&R.
17287
17288 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17289
17290 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17291 (suffixes): Move out of make_subsidiaries for K&R.
17292
17293 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17294
17295 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17296
172972008-02-01 Dave Love <fx@gnu.org>
17298
17299 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17300
17301 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17302
173032008-02-01 Yong Lu <lyongu@asia-infonet.com>
17304
17305 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17306
17307 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17308
173092008-02-01 Kenichi Handa <handa@m17n.org>
17310
17311 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17312 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * coding.c (decode_coding_charset): Adjust for the change of
17317 Fdefine_coding_system_internal.
17318 (Fdefine_coding_system_internal): For a coding system of
17319 `charset' type, store a list of charset IDs in
17320 `charset_attr_charset_valids' element of coding attributes.
17321
173222008-02-01 Kenichi Handa <handa@m17n.org>
17323
17324 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17325 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17326 caller. Handle 2-byte and 3-byte charsets correctly.
17327 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17328 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17329 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17330 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17331 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17332 sequence.
17333 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17334 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17335 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17336 and alt&rule composition.
17337 (decode_coding_iso_2022): Handle composition correctly.
17338 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17339
17340 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17341 re-defining a charset. If the charset has :emacs-mule-id, setup
17342 emacs_mule_bytes.
17343 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17344
173452008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17348 (encode_coding_big5, encode_coding_charset): If coding requires safe
17349 encoding, produce a character specified by
17350 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17351
173522008-02-01 Dave Love <fx@gnu.org>
17353
17354 * xterm.c (XSetIMValues): Declare.
17355
17356 * process.c: Conditionally include sys/wait.h, pty.h.
17357
17358 * print.c (print_object): Fix print format for 64-bit systems.
17359
17360 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17361
17362 * buffer.c (emacs_strerror): Declare.
17363
17364 * fontset.c (Fclear_face_cache): Declare.
17365 (accumulate_font_info): Comment-out (unused).
17366 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17367 variables.
17368
17369 * character.h (string_escape_byte8): Declare.
17370
17371 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17372 unused vars.
17373 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17374 (Fmap_charset_chars): Doc fix.
17375
17376 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17377 (Fset_coding_system_priority, Fset_coding_system_priority)
17378 (Fdefine_coding_system_internal): Doc fix.
17379
173802008-02-01 Dave Love <fx@gnu.org>
17381
17382 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * character.c (string_escape_byte8): Make multibyte string with
17387 correct size.
17388
17389 * charset.c (Fmake_char): Delete unnecessary code.
17390
173912008-02-01 Kenichi Handa <handa@m17n.org>
17392
17393 * xfns.c (x_encode_text): Allocate coding.destination here, and
17394 call encode_coding_object with dst_object Qnil.
17395
17396 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17397 multibyte form correctly.
17398
17399 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17400 against Vfont_encoding_alist.
17401
17402 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17403 handling of charset list.
17404 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17405 (decode_coding_object): Move point to coding->dst_pos before
17406 calling post-read-conversion function.
17407 (encode_coding_object): Give correct arguments to
17408 pre-write-conversion. Ignore the return value of
17409 pre-write-conversion function. Pay attention to the case that
17410 pre-write-conversion changes the current buffer. If dst_object is
17411 Qt, even if coding->src_bytes is zero, allocate at least one byte
17412 to coding->destination.
17413
17414 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17415
17416 * charset.c (Fmake_char): Make it more backward compatible.
17417 (Fmap_charset_chars): Fix docstring.
17418
174192008-02-01 Dave Love <fx@gnu.org>
17420
17421 * coding.c: Doc fixes.
17422 (Fdefine_coding_system_alias): Use names, not symbols, in
17423 coding-system-alist.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17428 of calling free_realized_face.
17429
174302008-02-01 Yong Lu <lyongu@asia-infonet.com>
17431
17432 * charset.c (read_hex): Don't treat SPC as a comment starter.
17433 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17434 (Fdecode_char): Fix typo.
17435
174362008-02-01 Kenichi Handa <handa@m17n.org>
17437
17438 * charset.h (struct charset): New member `code_space_mask'.
17439
17440 * coding.c (coding_set_source): Delete the local variable beg_byte.
17441 (encode_coding_charset, Fdefine_coding_system_internal):
17442 Delete the local variable charset.
17443 (Fdefine_coding_system_internal): Setup
17444 attrs[coding_attr_charset_valids] correctly.
17445
17446 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17447 member to check if CODE is valid or not.
17448 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17449 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17450 is within the range of charset->min_code and carset->max_code.
17451
174522008-02-01 Dave Love <fx@gnu.org>
17453
17454 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17455
17456 * dispextern.h (generate_ascii_font): Fix return type.
17457
17458 * xfaces.c (generate_ascii_font): Fix arg declaration.
17459
17460 * coding.c (coding_inherit_eol_type)
17461 (Fset_terminal_coding_system_internal)
17462 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17467 multiple charsets correctly.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * search.c (boyer_moore): Fix handling of multibyte character
17472 translation.
17473
17474 * xdisp.c (display_mode_element): When the variable `elt' is
17475 changed, update `this' and `lisp_string'.
17476
174772008-02-01 Kenichi Handa <handa@m17n.org>
17478
17479 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17480
17481 * callproc.c (Fcall_process): Be sure to give the current buffer
17482 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17483
17484 * charset.c (struct charset_map_entries): New struct.
17485 (load_charset_map): Rename from parse_charset_map. New args
17486 entries and n_entries. Change caller.
17487 (load_charset_map_from_file): Rename from load_charset_map.
17488 Change caller. New arg control_flag. Call load_charset_map at
17489 the tail.
17490 (load_charset_map_from_vector): New function.
17491 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17492 (encode_char): If the charset is compact, change a character index
17493 to a code point.
17494
17495 * coding.c (coding_alloc_by_making_gap): Check the case that the
17496 source and destination are the same correctly.
17497 (decode_coding_raw_text): Set coding->consumed_char and
17498 coding->consumed to 0.
17499 (produce_chars): If coding->chars_at_source is nonzero, update
17500 coding->consumed_char and coding->consumed before calling
17501 alloc_destination.
17502 (Fdefine_coding_system_alias): Register ALIAS in
17503 Vcoding_system_alist.
17504 (syms_of_coding): Define `no-conversion' coding system at the tail.
17505
17506 * fileio.c (Finsert_file_contents): Set coding_system instead of
17507 val. If the current buffer is multibyte, always call
17508 decode_coding_gap.
17509
17510 * xfaces.c (try_font_list): Give higher priority to fontset's
17511 family than face's family.
17512
175132008-02-01 Kenichi Handa <handa@m17n.org>
17514
17515 * callproc.c (Fcall_process): Be sure to give the current buffer
17516 to decode_coding_c_string.
17517
17518 * xfaces.c (try_font_list): Give a family specified in a fontset
17519 higher priority than a family specified in a face.
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17524 Fix arguments to insert_from_buffer.
17525
17526 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17527
175282008-02-01 Kenichi Handa <handa@m17n.org>
17529
17530 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17531 (decode_coding_gap): Set coding->dst_multibyte correctly.
17532
175332008-02-01 Kenichi Handa <handa@m17n.org>
17534
17535 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17536 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17537 (encode_coding_utf_16): Substitute coding->default_char for
17538 non-Unicode characters.
17539 (decode_coding): Don't call record_insert here.
17540 (setup_coding_system): Initialize `surrogate' of
17541 coding->spec.utf_16 to 0.
17542 (EMIT_ONE_BYTE): Fix for multibyte case.
17543
17544 * insdel.c (insert_from_gap): Call record_insert.
17545
175462008-02-01 Kenichi Handa <handa@m17n.org>
17547
17548 * casefiddle.c (casify_region): Fix multibyte case.
17549
17550 * character.c (c_string_width): Add return type `int'.
17551 (char_string_with_unification): Delete arg ADVANCED.
17552
17553 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17554 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17555 (CHAR_STRING_ADVANCE): Make it do-while statement.
17556
17557 * chartab.c (sub_char_table_set_range): Optimize for the case
17558 DEPTH == 3. Add workaround code for a GCC optimization bug.
17559
17560 * charset.c (parse_charset_map): Remove an unused variable.
17561
17562 * coding.c: Delete unused variables.
17563
17564 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17565 earlier. If inserted is zero and the coding system doesn't
17566 require flushing, don't call decode_coding_gap.
17567
17568 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17569
175702008-02-01 Kenichi Handa <handa@m17n.org>
17571
17572 The following changes are for using Unicode as an internal
17573 character model, and use UTF-8 format for buffer/string
17574 representation.
17575
17576 * .gdbinit (xchartable): Adjust for the change of char table structure.
17577 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17578
17579 * Makefile.in (obj): Add character.o and chartab.o.
17580 (lisp, shortlisp): Remove utf-8.elc.
17581 (*.o): For many files, change dependency on charset.h to
17582 character.h, and add dependency on character.h.
17583 (character.o, chartab.o): New targets.
17584
17585 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17586 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17587 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17588 of "charset.h".
17589
17590 * dired.c, filelock.c: Include "character.h".
17591
17592 * alloc.c: Include "character.h" instead of "charset.h".
17593 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17594 (syms_of_alloc): Remove defsubr for Smake_char_table.
17595
17596 * buffer.c: Include "character.h" instead of "charset.h", don't
17597 include "coding.h".
17598 (Fset_buffer_multibyte): Adjust for UTF-8.
17599
17600 * buffer.h: EXFUN Fbuffer_live_p.
17601
17602 * callproc.c: Include "character.h" instead of "charset.h".
17603 (Fcall_process): Big change for the new code-conversion APIs.
17604
17605 * casetab.c: Include "character.h" instead of "charset.h".
17606 (set_canon, set_identity, shuffle): Adjust for the new
17607 map_char_table spec.
17608 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17609 accessing the char table structure.
17610
17611 * chartab.c: New file that implements char table.
17612
17613 * category.c: Include "character.h".
17614 (copy_category_entry): New function.
17615 (copy_category_table): Call map_char_table and copy_category_entry.
17616 (Fmake_category_table): Initialize all top-level slots.
17617 (char_category_set): New function.
17618 (modify_lower_category_set): Delete.
17619 (Fmodify_category_entry): Call char_table_ref_and_range.
17620
17621 * category.h (CATEGORY_SET): Just call char_category_set.
17622
17623 * ccl.c: Include "character.h".
17624 (Qccl, Qcclp): New variables.
17625 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17626 it's less than 256.
17627 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17628 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17629 and DST type.
17630 (ccl_driver): Change types of argument, adjust code accordingly.
17631 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17632 ccl_driver.
17633 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17634
17635 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17636 New members src_multibyte, dst_multibyte, consumed, and produced.
17637 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17638 (CODING_SPEC_CCL_PROGRAM): New macro.
17639 (ccl_driver): Update prototype.
17640 (Qccl, Qcclp, Fccl_program_p): Extern them.
17641 (CHECK_CCL_PROGRAM): New macro.
17642
17643 * character.c, character.h, chartab.c: New files.
17644
17645 * charset.c: Mostly re-written. Move character and multibyte sequence
17646 handling codes to character.c.
17647
17648 * charset.h: Mostly re-written. Move character and multibyte sequence
17649 handling codes to character.h.
17650
17651 * coding.c, coding.h: Mostly re-written.
17652
17653 * composite.c: Include "character.h" instead of "charset.h".
17654 (CHAR_WIDTH): Move to character.h.
17655 (HASH_KEY, HASH_VALUE): Delete.
17656
17657 * composite.h (enum composition_method): Change order of enumeration
17658 symbols.
17659
17660 * data.c: Include "character.h" instead of "charset.h".
17661 (Faref): Call CHAR_TABLE_REF for a char table.
17662 (Faset): Call CHAR_TABLE_SET for a char table.
17663
17664 * dispextern.h (free_realized_face, check_face_attribytes)
17665 (generate_ascii_font): Extern them.
17666 (free_realized_multibyte_face): Delete extern.
17667
17668 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17669 table structure.
17670
17671 * editfns.c: Include "character.h" instead of "charset.h".
17672 (Fchar_to_string): Always call CHAR_STRING.
17673
17674 * emacs.c (main): Call init_charset_once, init_charset,
17675 syms_of_chartab, and syms_of_character.
17676
17677 * fileio.c: Include "character.h" instead of "charset.h".
17678 (Finsert_file_contents): Big change for the new code-conversion API.
17679 (choose_write_coding_system, Fwrite_region): Likewise.
17680 (build_annotations_2): Delete.
17681 (e_write): Big change for the new code-conversion API.
17682
17683 * fns.c: Include "character.h" instead of "charset.h".
17684 (copy_sub_char_table): Move to chartab.c.
17685 (Fcopy_sequence): Call copy_char_table for a char table.
17686 (concat): Delete codes calling count_multibyte.
17687 (string_char_to_byte, string_byte_to_char): Adjust for the new
17688 multibyte form.
17689 (internal_equal): Adjust for the change of char table structure.
17690 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17691 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17692 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17693 (char_table_translate, optimize_sub_char_table)
17694 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17695 chartab.c.
17696 (char_table_ref_and_index): Delete.
17697 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17698 (Fmd5): Call preferred_coding_system instead of accessing
17699 Vcoding_category_list. Adjust for the new code-conversion API.
17700 (syms_of_fns): Move defsubr for char table related functions to
17701 chartab.c.
17702
17703 * fontset.c: Mostly re-written.
17704
17705 * fontset.h (struct font_info): Change type of the member encoding_type.
17706 (enum FONT_SPEC_INDEX): New enum.
17707 (fontset_font_pattern, fs_load_font): Update prototype.
17708 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17709
17710 * indent.c: Include "character.h" instead of "charset.h".
17711 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17712
17713 * insdel.c: Include "character.h" instead of "charset.h".
17714 (copy_text): Don't refer to Vnonascii_translation_table.
17715 (insert_from_gap): New function.
17716
17717 * keyboard.c: Include "character.h" instead of "charset.h".
17718 (command_loop_1): Never call direct_output_forward_char before
17719 a non-ASCII character.
17720 (read_char): If Vkeyboard_translate_table is a char table, always
17721 translate a character.
17722
17723 * keymap.c: Include "character.h".
17724 (store_in_keymap): Handle the case that IDX is a cons.
17725 (Fdefine_key): Handle the case that KEY is a cons and the car part
17726 is also a cons (range).
17727 (push_key_description): Adjust for the new character code.
17728 (describe_vector): Call describe_char_table for a char table.
17729 (describe_char_table): New function.
17730
17731 * keymap.h (describe_char_table): Extern it.
17732
17733 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17734 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17735 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17736 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17737 Delete.
17738 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17739 structure.
17740 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17741 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17742 (CHARTAB_SIZE_BITS_3): New macros.
17743 (chartab_size): Extern it.
17744 (struct Lisp_Char_Table): Re-design.
17745 (struct Lisp_Sub_Char_Table): New structure.
17746 (HASH_KEY, HASH_VALUE): Move from fns.c.
17747 (CHARACTERBITS): Define as 22.
17748 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17749 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17750 (GC_SUB_CHAR_TABLE_P): New macro.
17751 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17752 (code_convert_string_norecord): Deleted extern.
17753 (init_character_once, syms_of_character, init_charset)
17754 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17755
17756 * lread.c: Include "character.h".
17757 (read_multibyte): New arg NBYTES.
17758 (read_escape): Change the meaning of returned *BYTEREP.
17759 (to_multibyte): Delete.
17760 (read1): Adjust the handling of char table and string.
17761
17762 * print.c: Include "character.h" instead of "charset.h".
17763 (print_string): Convert 8-bit raw bytes to octal form by
17764 string_escape_byte8.
17765 (print_object): Adjust for the new multibyte form. Print 8-bit
17766 raw bytes always in octal form. Handle sub char table correctly.
17767
17768 * process.c: Include "character.h" instead of "charset.h".
17769 (read_process_output, send_process): Adjust for the new
17770 code-conversion API.
17771
17772 * puresize.h (BASE_PURESIZE): Increase.
17773
17774 * regex.c: Include "character.h" instead of "charset.h".
17775 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17776 (regex_compile): Accept a range whose starting and ending
17777 character have different leading bytes.
17778 (analyse_first): Adjust for the above change.
17779
17780 * search.c: Include "character.h" instead of "charset.h".
17781 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17782 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17783
17784 * syntax.c: Include "character.h" instead of "charset.h".
17785 (syntax_parent_lookup): Delete.
17786 (Fmodify_syntax_entry): Accept a cons as CHAR.
17787 (skip_chars): Adjust for the new multibyte form.
17788 (init_syntax_once): Call char_table_set_range instead of directly
17789 accessing the structure of a char table.
17790
17791 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17792 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17793 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17794 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17795
17796 * term.c: Include "buffer.h" and "character.h".
17797 (encode_terminal_code, write_glyphs): Adjust for the new
17798 code-conversion API.
17799 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17800
17801 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17802
17803 * xdisp.c: Include "character.h".
17804 (get_next_display_element): Adjust for the new multibyte form.
17805 (disp_char_vector): Adjust for the new char table structure.
17806 (decode_mode_spec_coding): Adjust for the new structure of
17807 coding system.
17808 (decode_mode_spec): Adjust for the new code-conversion API.
17809
17810 * xfaces.c: Include "character.h" instead of "charset.h".
17811 (load_face_font): Adjust for the change of choose_face_font and
17812 FS_LOAD_FONT.
17813 (generate_ascii_font): New function.
17814 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17815 (set_font_frame_param): Adjust for the change of choose_face_font.
17816 (free_realized_face): Make it public.
17817 (free_realized_faces_for_fontset): Rename from
17818 free_realized_multibyte_face. Free also faces realized for ASCII.
17819 (choose_face_font): Change arguments. Adjust for the change of
17820 fontset_font_pattern and FS_LOAD_FONT.
17821
17822 * xfns.c: Include "character.h".
17823 (x_encode_text): Adjust for the new code-conversion API.
17824
17825 * xselect.c: Don't include "charset.h".
17826 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17827
17828 * xterm.c: Include "character.h".
17829 (x_encode_char): New argument CHARSET. Change caller.
17830 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17831 Call ENCODE_CHAR instead of SPLIT_CHAR.
17832 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17833 CHAR_WIDTH instead of CHARSET_WIDTH.
17834 (XTread_socket): Adjust for the new code-conversion API.
17835 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17836 (x_load_font): Adjust for the change of struct font.
17837
178382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17839
17840 * xfaces.c (face_at_buffer_position): Remove unused vars.
17841
178422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17843
17844 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17845 Fix overflow checking.
17846
178472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17848
17849 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17850 Cancel previous change.
17851
178522008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17853
17854 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17855 ccl->eight_bit_control. Fix check for buffer overflow.
17856 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17857 (ccl_driver): Initialize extra_bytes to 0.
17858
178592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17860
17861 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17862 return it ORed with ctrl_modifier.
17863
178642008-01-29 Miles Bader <miles@gnu.org>
17865
17866 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17867
178682008-01-28 Jason Rumney <jasonr@gnu.org>
17869
17870 * w32.c (stat): Don't double check for networked drive.
17871
178722008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17873
17874 * window.c (run_window_configuration_change_hook): New function.
17875 Code extracted from set_window_buffer. Set the selected frame.
17876 (set_window_buffer): Use it.
17877 * window.h (run_window_configuration_change_hook): Declare.
17878 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17879
17880 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17881
178822008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17883
17884 * Makefile.in: Remove references to unused macros.
17885
178862008-01-26 Eli Zaretskii <eliz@gnu.org>
17887
17888 * w32.c (g_b_init_get_sid_sub_authority)
17889 (g_b_init_get_sid_sub_authority_count): New static variables.
17890 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17891 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17892 (init_user_info): Use them to retrieve uid and gid.
17893 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17894 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17895 st_uid and st_gid of the file.
17896
178972008-01-26 Jason Rumney <jasonr@gnu.org>
17898
17899 * w32.c (logon_network_drive): New function.
17900 (stat): Use it.
17901
179022008-01-26 Chong Yidong <cyd@stupidchicken.com>
17903
17904 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17905 invisible text covered with an ellipsis.
17906
179072008-01-25 Richard Stallman <rms@gnu.org>
17908
17909 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17910 jump back to beginning. Move some other initializations after that.
17911 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17912 New variables.
17913 (syms_of_xdisp): Init them.
17914
17915 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17916
17917 * buffer.c (reset_buffer_local_variables):
17918 Implement `permanent-local-hook'.
17919 (Qpermanent_local_hook): New variable.
17920 (syms_of_buffer): Init and staticpro it.
17921
179222008-01-25 Michael Albinus <michael.albinus@gmx.de>
17923
17924 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17925
179262008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17927
17928 * fns.c (Fclrhash): Return TABLE.
17929
179302008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17931
17932 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17933 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17934 is set even without positional changes.
17935 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17936
17937 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17938
179392008-01-23 Jason Rumney <jasonr@gnu.org>
17940
17941 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17942
17943 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17944 the unicode range available in MULE by locale-coding-system.
17945 Improve dbcs lead byte detection. Set event timestamp and modifiers
17946 earlier.
17947
179482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17949
17950 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17951 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17952 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17953 when used on child processes.
17954
179552008-01-21 Michael Albinus <michael.albinus@gmx.de>
17956
17957 * dbusbind.c (Fdbus_method_return_internal): Rename from
17958 Fdbus_method_return.
17959 (Fdbus_unregister_object): Move to dbus.el.
17960 (Fdbus_call_method, Fdbus_method_return_internal)
17961 (Fdbus_send_signal): Improve debug messages.
17962
179632008-01-20 Martin Rudalics <rudalics@gmx.at>
17964
17965 * undo.c (undo_inhibit_record_point): New variable.
17966 (syms_of_undo): Initialize it.
17967 (record_point): Don't record point when undo_inhibit_record_point
17968 is set.
17969
179702008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17971
17972 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17973
17974 * xdisp.c (Qauto_hscroll_mode): New var.
17975 (syms_of_xdisp): Initialize it.
17976 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17977 window's buffer.
17978 (hscroll_windows): Don't check automatic_hscrolling_p here.
17979
17980 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17981 vscroll if we're setting window-buffer to the value it already has.
17982
179832008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17984
17985 * m/intel386.h: Remove references to XENIX.
17986
179872008-01-17 Andreas Schwab <schwab@suse.de>
17988
17989 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17990 instead of HAVE_X86_64_LIB64_DIR.
17991 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17992
179932008-01-17 Glenn Morris <rgm@gnu.org>
17994
17995 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17996 to HAVE_X86_64_LIB64_DIR.
17997
179982008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17999
18000 * s/irix3-3.h:
18001 * s/irix4-0.h:
18002 * s/386-ix.h:
18003 * s/domain.h:
18004 * s/hpux9-x11r4.h:
18005 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18006
18007 * sysdep.c: Remove code containing references to symbols defined
18008 by unsupported systems.
18009
180102008-01-16 Glenn Morris <rgm@gnu.org>
18011
18012 * coding.c (select-safe-coding-system-function): Doc fix.
18013
180142008-01-15 Glenn Morris <rgm@gnu.org>
18015
18016 * config.in: Revert 2008-01-13 change: this is a generated file.
18017
180182008-01-13 Tom Tromey <tromey@redhat.com>
18019
18020 * lisp.h: Fix typo.
18021
180222008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18023
18024 * m/sequent-ptx.h:
18025 * m/sequent.h:
18026 * s/ptx.h:
18027 * s/ptx4-2.h:
18028 * s/ptx4.h: Remove files for systems no longer supported.
18029
18030 * callproc.c (Fcall_process): Fix previous change.
18031
180322008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18033
18034 * unexsunos4.c: Remove file, system not supported anymore.
18035
18036 * m/mips.h:
18037 * m/intel386.h:
18038 * callproc.c:
18039 * config.in:
18040 * ecrt0.c:
18041 * emacs.c:
18042 * fileio.c:
18043 * frame.c:
18044 * getpagesize.h:
18045 * keyboard.c:
18046 * lread.c:
18047 * process.c:
18048 * puresize.h:
18049 * sysdep.c:
18050 * systty.h:
18051 * syswait.h:
18052 * unexec.c:
18053 * xdisp.c:
18054 * alloc.c: Remove code containing references to symbols defined by
18055 unsupported systems.
18056
180572008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18058
18059 * coding.c (detect_coding_mask): Fix previous change.
18060
180612008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18062
18063 * coding.c (detect_coding_iso2022): New arg
18064 latin_extra_code_state. Allow Latin extra codes only
18065 when *latin_extra_code_state is nonzero.
18066 (detect_coding_mask): If there is a NULL byte, detect the encoding
18067 as UTF-16 or binary. If Latin extra codes exist, detect the
18068 encoding as ISO-2022 only when there's no other proper encoding is
18069 found.
18070
180712008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18072
18073 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18074 #ifdef MAC_OS.
18075
180762008-01-08 Richard Stallman <rms@gnu.org>
18077
18078 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18079
180802008-01-06 Nick Roberts <nickrob@snap.net.nz>
18081
18082 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18083 menu bar in parentheses.
18084
180852008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18086
18087 * m/7300.h:
18088 * m/acorn.h:
18089 * m/alliant-2800.h:
18090 * m/alliant.h:
18091 * m/alliant1.h:
18092 * m/alliant4.h:
18093 * m/altos.h:
18094 * m/amdahl.h:
18095 * m/apollo.h:
18096 * m/att3b.h:
18097 * m/aviion-intel.h:
18098 * m/aviion.h:
18099 * m/celerity.h:
18100 * m/clipper.h:
18101 * m/cnvrgnt.h:
18102 * m/convex.h:
18103 * m/cydra5.h:
18104 * m/delta88k.h:
18105 * m/dpx2.h:
18106 * m/dual.h:
18107 * m/elxsi.h:
18108 * m/f301.h:
18109 * m/gould-np1.h:
18110 * m/gould.h:
18111 * m/i860.h:
18112 * m/ibmps2-aix.h:
18113 * m/ibmrt-aix.h:
18114 * m/ibmrt.h:
18115 * m/irist.h:
18116 * m/is386.h:
18117 * m/isi-ov.h:
18118 * m/mega68.h:
18119 * m/mg1.h:
18120 * m/news-r6.h:
18121 * m/news-risc.h:
18122 * m/news.h:
18123 * m/nh3000.h:
18124 * m/nh4000.h:
18125 * m/ns16000.h:
18126 * m/ns32000.h:
18127 * m/nu.h:
18128 * m/orion.h:
18129 * m/orion105.h:
18130 * m/paragon.h:
18131 * m/pfa50.h:
18132 * m/plexus.h:
18133 * m/pyramid.h:
18134 * m/pyrmips.h:
18135 * m/sh3el.h:
18136 * m/sps7.h:
18137 * m/sr2k.h:
18138 * m/stride.h:
18139 * m/sun1.h:
18140 * m/sun2.h:
18141 * m/sun3-68881.h:
18142 * m/sun3-fpa.h:
18143 * m/sun3-soft.h:
18144 * m/sun3.h:
18145 * m/sun386.h:
18146 * m/symmetry.h:
18147 * m/tad68k.h:
18148 * m/tahoe.h:
18149 * m/targon31.h:
18150 * m/tek4300.h:
18151 * m/tekxd88.h:
18152 * m/tower32.h:
18153 * m/tower32v3.h:
18154 * m/ustation.h:
18155 * m/wicat.h:
18156 * m/xps100.h:
18157 * s/cxux.h:
18158 * s/cxux7.h:
18159 * s/dgux.h:
18160 * s/dgux4.h:
18161 * s/dgux5-4-3.h:
18162 * s/dgux5-4r2.h:
18163 * s/esix.h:
18164 * s/esix5r4.h:
18165 * s/hiuxmpp.h:
18166 * s/hiuxwe2.h:
18167 * s/iris3-5.h:
18168 * s/iris3-6.h:
18169 * s/isc2-2.h:
18170 * s/isc3-0.h:
18171 * s/isc4-0.h:
18172 * s/isc4-1.h:
18173 * s/newsos5.h:
18174 * s/newsos6.h:
18175 * s/osf1.h:
18176 * s/osf5-0.h:
18177 * s/riscix1-1.h:
18178 * s/riscix12.h:
18179 * s/sco4.h:
18180 * s/sco5.h:
18181 * s/sunos4-0.h:
18182 * s/sunos4-1.h:
18183 * s/sunos413.h:
18184 * s/sunos4shr.h:
18185 * s/umax.h:
18186 * s/unipl5-2.h:
18187 * s/xenix.h:
18188 * cxux-crt0.s:
18189 * unexapollo.c:
18190 * unexconvex.c:
18191 * unexenix.c:
18192 * unexsni.c: Remove files for systems no longer supported.
18193
18194 * m/intel386.h: Remove references to unsupported systems.
18195
18196 * w32.c (get_emacs_configuration): Remove reference to i860.
18197
18198 * sysdep.c: Remove dead code.
18199
182002008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18201
18202 * s/rtu.h:
18203 * m/masscomp.h: Remove files. Platform is obsolete.
18204
182052008-01-04 Michael Albinus <michael.albinus@gmx.de>
18206
18207 * dbusbind.c (Fdbus_method_return): New function.
18208 (xd_read_message): Add the serial number to the event.
18209 (Fdbus_register_method): Activate the function.
18210
182112008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18212
18213 * keyboard.c (read_key_sequence): Fix typo.
18214
182152008-01-03 Michael Albinus <michael.albinus@gmx.de>
18216
18217 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18218 (xd_signature, xd_append_arg): Handle element type detection for
18219 empty arrays.
18220 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18221 SDATA () calls; this must be solved more general.
18222 (Fdbus_register_signal): Use SBYTES instead of strlen.
18223
182242008-01-03 Magnus Henoch <magnus@zemdatav>
18225
18226 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18227 unsigned int for byte values (necessary for big-endian platform).
18228 (Fdbus_call_method): Handle the case of no returned arguments.
18229
182302007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18231
18232 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18233
182342007-12-31 Magnus Henoch <mange@freemail.hu>
18235
18236 * dbusbind.c (xd_signature): Signature of variant is just "v".
18237
182382007-12-30 Michael Albinus <michael.albinus@gmx.de>
18239
18240 * dbusbind.c: Fix several errors and compiler warnings.
18241 Reported by Tom Tromey <tromey@redhat.com>.
18242 (XD_ERROR, XD_DEBUG_MESSAGE)
18243 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18244 (xd_append_arg): Part for basic D-Bus types rewritten.
18245 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18246 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18247 appropriate.
18248 (xd_read_message): Return Qnil. Don't signal an error; it is not
18249 useful during event reading.
18250 (Fdbus_register_signal): Signal an error if the check for
18251 FUNCTIONP fails.
18252 (Fdbus_register_method): New function. The implementation is not
18253 complete, the call of the function signals an error therefore.
18254 (Fdbus_unregister_object): New function, renamed from
18255 Fdbus_unregister_signal. The initial check signals an error, if
18256 the object is not well formed.
18257
182582007-12-30 Richard Stallman <rms@gnu.org>
18259
18260 * textprop.c (get_char_property_and_overlay):
18261 Signal error if POSITION is out of range in a buffer.
18262
182632007-12-29 Martin Rudalics <rudalics@gmx.at>
18264
18265 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18266 because the original parameters are in pure storage now.
18267
182682007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18269
18270 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18271
182722007-12-22 Eli Zaretskii <eliz@gnu.org>
18273
18274 * callint.c (syms_of_callint) <command-history>: Add reference to
18275 history-length in the doc string.
18276
182772007-12-17 Jason Rumney <jasonr@gnu.org>
18278
18279 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18280 before passing as wParam.
18281
182822007-12-22 Michael Albinus <michael.albinus@gmx.de>
18283
18284 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18285 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18286 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18287 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18288 as number.
18289 (Fdbus_call_method): Fix docstring.
18290
182912007-12-21 Michael Albinus <michael.albinus@gmx.de>
18292
18293 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18294 New macros.
18295 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18296 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18297 Simplify.
18298 (xd_signature): New function.
18299 (xd_append_arg): Compute also signatures. Major rewrite.
18300 (xd_retrieve_arg): Make debug messages friendly.
18301 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18302 Check for signatures of arguments.
18303
183042007-12-19 Michael Albinus <michael.albinus@gmx.de>
18305
18306 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18307 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18308 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18309 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18310 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18311 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18312 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18313 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18314 (xd_retrieve_value): Remove. Functionality included in ...
18315 (xd_append_arg): New function.
18316 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18317
183182007-12-16 Michael Albinus <michael.albinus@gmx.de>
18319
18320 * dbusbind.c (top): Include <stdio.h>.
18321 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18322 dbus_message_new_method_call and dbus_message_new_signal.
18323 (Fdbus_register_signal): Rename unique_name to uname.
18324 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18325 non-existing unique name. Fix typos in matching rule. Return an
18326 object which is useful in Fdbus_unregister_signal.
18327 (Fdbus_unregister_signal): Reimplementation, in order to remove
18328 only the corresponding entry.
18329 (Vdbus_registered_functions_table): Change the order of entries.
18330 Apply these changes in xd_read_message and Fdbus_register_signal.
18331
183322007-12-16 Andreas Schwab <schwab@suse.de>
18333
18334 * fileio.c (Finsert_file_contents): Fix overflow check to not
18335 depend on undefined integer overflow.
18336
183372007-12-14 Jason Rumney <jasonr@gnu.org>
18338
18339 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18340 for characters above 127.
18341
183422007-12-13 Jason Rumney <jasonr@gnu.org>
18343
18344 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18345 before dereferencing array.
18346 (lookup_vk_code): Remove zero comparison.
18347
183482007-12-14 Michael Albinus <michael.albinus@gmx.de>
18349
18350 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18351 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18352 Use `unsigned int' instead of `uint'.
18353 (xd_read_message, Fdbus_register_signal): Split expressions into
18354 multiple lines before operators "&&" and "||", according to the
18355 GNU Coding Standards.
18356
183572007-12-14 Eli Zaretskii <eliz@gnu.org>
18358
18359 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18360
183612007-12-12 Juri Linkov <juri@jurta.org>
18362
18363 * buffer.c (Frename_buffer): In interactive spec replace
18364 `read-buffer' with `read-string' that uses `buffer-name-history'
18365 as history, and the current buffer's name as default.
18366
183672007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18368
18369 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18370 manipulating the backtrace manually.
18371 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18372 (struct backtrace, backtrace_list): Remove.
18373 (command_loop_1): Remove dead var `no_direct'.
18374
18375 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18376 preserve non-built-in buffer-local variables.
18377 (Fkill_all_local_variables): Don't re-create&re-set permanent
18378 buffer-local variables.
18379
183802007-12-09 Juri Linkov <juri@jurta.org>
18381
18382 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18383 Lisp code that uses `read-buffer' with current buffer as default.
18384
183852007-12-08 Michael Albinus <michael.albinus@gmx.de>
18386
18387 * dbusbind.c (xd_read_message): Generate an event for every
18388 registered handler. There might be several handlers registered
18389 for the same signal.
18390 (Fdbus_register_signal): Don't overwrite a registration for the
18391 same signal. Add a new registration if handlers are different.
18392 (Vdbus_registered_functions_table): Rework doc string.
18393
183942007-12-07 Michael Albinus <michael.albinus@gmx.de>
18395
18396 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18397 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18398 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18399 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18400 Unify argument lists.
18401 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18402 arguments and hash table keys. Use unique name for service.
18403 (Fdbus_unregister_signal): Remove checks.
18404 (Vdbus_registered_functions_table): Fix doc string.
18405
184062007-12-05 Magnus Henoch <mange@freemail.hu>
18407
18408 * process.c (make_process): Initialize pty_flag to 0.
18409
184102007-12-05 Jason Rumney <jasonr@gnu.org>
18411
18412 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18413 specified XBMs.
18414
184152007-12-05 Richard Stallman <rms@gnu.org>
18416
18417 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18418
184192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18420
18421 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18422 New variable.
18423 (mac_try_close_socket) [MAC_OSX]: New function.
18424 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18425 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18426
18427 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18428 Use mac_try_close_socket.
18429
184302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18431
18432 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18433 reloc_base.
18434 (copy_dysymtab): Compute relocation base here.
18435 (rebase_reloc_address) [__ppc64__]: New function.
18436 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18437 changed.
18438
184392007-12-05 Jason Rumney <jasonr@gnu.org>
18440
18441 * w32proc.c (sys_spawnve): Quote args with wildcards.
18442
184432007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18444
18445 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18446 __objc_* sections.
18447 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18448
184492007-12-05 Michael Albinus <michael.albinus@gmx.de>
18450
18451 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18452 Move check for Vdbus_registered_functions_table to
18453 xd_read_queued_messages.
18454 (xd_read_queued_messages): Protect xd_read_message calls by
18455 internal_condition_case_1.
18456
184572007-12-04 Michael Albinus <michael.albinus@gmx.de>
18458
18459 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18460 Qdbus_system_bus and Qdbus_session_bus, respectively.
18461 (Vdbus_intern_symbols): Remove.
18462 (Vdbus_registered_functions_table): New hash table.
18463 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18464 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18465 Rewrite in order to manage registered functions by hash table
18466 Vdbus_registered_functions_table.
18467
184682007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18469
18470 * xterm.c: Update URL to Window Manager Specification in comment.
18471
184722007-12-02 Michael Albinus <michael.albinus@gmx.de>
18473
18474 * config.in (HAVE_DBUS): Add.
18475
18476 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18477 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18478 (obj): Add $(DBUS_OBJ).
18479 (LIBES): Add $(DBUS_LIBS).
18480 (dbusbind.o): New target.
18481
18482 * dbusbind.c: New file.
18483
18484 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18485
18486 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18487 (Qdbus_event): New Lisp symbol.
18488 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18489 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18490 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18491
18492 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18493
184942007-12-01 Richard Stallman <rms@gnu.org>
18495
18496 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18497
184982007-11-30 Jason Rumney <jasonr@gnu.org>
18499
18500 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18501 (w32con_reset_terminal_modes): Clear screen buffer.
18502 (w32_face_attributes): Don't use color indexes that are out of range.
18503 Only reverse the default colors.
18504
18505 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18506 WINDOWSNT.
18507
18508 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18509
185102007-11-29 Jason Rumney <jasonr@gnu.org>
18511
18512 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18513 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18514 if the terminal colors are initialized.
18515 (unspecified_fg, unspecified_bg): Remove unused declarations.
18516
185172007-11-29 Andreas Schwab <schwab@suse.de>
18518
18519 * keyboard.c (apply_modifiers): Fix typo.
18520
185212007-11-29 Richard Stallman <rms@gnu.org>
18522
18523 * keymap.c (Fcurrent_local_map): Doc fix.
18524
185252007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18526
18527 * s/gnu-kfreebsd.h: New file.
18528
185292007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18530
18531 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18532 Don't cast redundantly.
18533
18534 * keyboard.c (KEY_TO_CHAR): New macro.
18535 (parse_modifiers, apply_modifiers): Accept integer arguments.
18536 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18537 for chars and symbol keys.
18538 After doing such remapping, apply function-key-map again.
18539
185402007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18541
18542 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18543 compiled anymore.
18544
185452007-11-26 Andreas Schwab <schwab@suse.de>
18546
18547 * process.c (list_processes_1): Fix indentation level of the
18548 command column.
18549
185502007-11-23 Andreas Schwab <schwab@suse.de>
18551
18552 * editfns.c (Fformat): Handle %c specially since it requires the
18553 argument to be of type int.
18554
185552007-11-23 Markus Triska <markus.triska@gmx.at>
18556
18557 * emacs.c (main): Call init_editfns before init_process, since
18558 init_process sets Vprocess_connection_type depending on OS release.
18559
185602007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18561
18562 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18563 (find_symbol_value): Use do_symval_forwarding.
18564
18565 * data.c (set_internal): Set the value in the `cons-cell' (for
18566 Buffer_Local_values) not only for frame-local variables.
18567
185682007-11-22 Andreas Schwab <schwab@suse.de>
18569
18570 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18571 values to sprintf.
18572 * keymap.c (Fsingle_key_description): Likewise.
18573 * print.c (print_object): Likewise.
18574
185752007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18576
18577 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18578 file for image is nil.
18579
185802007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18581
18582 * term.c: Include stdarg.h.
18583 (fatal): Implement using varargs.
18584 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18585
185862007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18587
18588 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18589 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18590 Update call to buffer_slot_type_mismatch.
18591 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18592 (buffer_slot_type_mismatch): Update.
18593 * buffer.c (buffer_local_types): Remove.
18594 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18595 (defvar_per_buffer): Set the type in the buffer_objfwd.
18596
185972007-11-21 Jason Rumney <jasonr@gnu.org>
18598
18599 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18600 CreateFileMapping returns NULL on failure.
18601
186022007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 * search.c (Fset_match_data): Remove the `evaporate' feature.
18605 (unwind_set_match_data): Don't use the `evaporate' feature.
18606
186072007-11-21 Jason Rumney <jasonr@gnu.org>
18608
18609 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18610
18611 * w32console.c (w32con_write_glyphs): Remove unused variables.
18612
186132007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18614
18615 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18616
18617 * s/darwin.h (MULTI_KBOARD): Remove.
18618
18619 * macfns.c (x_create_tip_frame, Fx_create_frame)
18620 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18621
186222007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18623
18624 * buffer.c (Fbuffer_local_value): Remove redundant test.
18625 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18626 than in `current-buffer' to match the comment.
18627 Do the swap using swap_in_global_binding.
18628
18629 * data.c (store_symval_forwarding, set_internal):
18630 * eval.c (specbind): Remove dead code.
18631
18632 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18633 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18634 Since we do not want to see internal Lisp_*fwd objects here.
18635
186362007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18637
18638 * sysdep.c (init_system_name): Use getaddrinfo if available.
18639
18640 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18641 (x_scroll_bar_note_movement): start, end, with, height in struct
18642 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18643
186442007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18645
18646 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18647
186482007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18649
18650 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18651 This undoes Richard's change of 14-Oct-2002.
18652
18653 * alloc.c (allocate_other_vector):
18654 * lisp.h (allocate_other_vector): Remove.
18655
18656 * window.c (struct save_window_data): Move non-lisp data to the end
18657 and make it `int' rather than Lisp_Object.
18658 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18659 Done wrap/unwrap integer values.
18660 (Fset_window_configuration, compare_window_configurations):
18661 Update use of fields to their new types.
18662
18663 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18664 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18665 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18666 (SET_SCROLL_BAR_X_WINDOW): Remove.
18667 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18668 Access the new x_window field directly.
18669 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18670 Don't wrap/unwrap integers into Lisp_Objects.
18671 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18672 (x_scroll_bar_report_motion):
18673 Don't wrap/unwrap integers into Lisp_Objects.
18674 (x_term_init): Use SDATA.
18675 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18676 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18677 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18678 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18679 * xfns.c (x_set_background_color):
18680 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18681 Access the new x_window field directly.
18682
18683 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18684 (allocate_pseudovector): Make non-static.
18685
18686 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18687 (allocate_pseudovector): Declare.
18688 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18689
186902007-11-15 Andreas Schwab <schwab@suse.de>
18691
18692 * editfns.c (Fformat): Correctly format EMACS_INT values.
18693 Also take precision into account when formatting an integer.
18694
18695 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18696
186972007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18698
18699 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18700 (syms_of_keyboard): Defsubr it.
18701
18702 * data.c (swap_in_global_binding): Fix longstanding bug where
18703 store_symval_forwarding was not called with the right second argument,
18704 thus causing objfwd-ing from being dropped.
18705
187062007-11-14 Juanma Barranquero <lekktu@gmail.com>
18707
18708 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18709 (Fx_display_pixel_height, Fx_display_planes)
18710 (Fx_display_color_cells, Fx_server_max_request_size)
18711 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18712 (Fx_display_visual_class, Fx_display_save_under):
18713 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18714 (Fx_display_pixel_height, Fx_display_planes)
18715 (Fx_display_color_cells, Fx_server_max_request_size)
18716 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18717 (Fx_display_mm_height, Fx_display_mm_width)
18718 (Fx_display_backing_store, Fx_display_visual_class)
18719 (Fw32_select_font, Fx_display_save_under):
18720 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18721 (Fx_display_pixel_height, Fx_display_planes)
18722 (Fx_display_color_cells, Fx_server_max_request_size)
18723 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18724 (Fx_display_save_under): Fix typos in docstrings.
18725
187262007-11-14 Juanma Barranquero <lekktu@gmail.com>
18727
18728 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18729 corresponding to deleted entries; they are an implementation detail.
18730 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18731 Remove variables.
18732 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18733 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18734 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18735 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18736 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18737 (Fw32_define_rgb_color, Fw32_load_color_file)
18738 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18739 Fix typos in docstrings.
18740 (Fx_server_version): Reflow docstring.
18741 (Fw32_shell_execute): Doc fixes.
18742
187432007-11-13 Juanma Barranquero <lekktu@gmail.com>
18744
18745 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18746 if w32_parse_hot_key returned nil.
18747
187482007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18749
18750 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18751
187522007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18753
aac0c6e3
MR
18754 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18755
18756 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18757
18758 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18759 Remove W32_SCROLL_BAR_CLICK_EVENT.
18760
18761 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18762 Add MULTIMEDIA_KEY_EVENT.
18763
18764 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18765 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18766 (make_lispy_event) [WINDOWSNT]: Use it to translate
18767 MULTIMEDIA_KEY_EVENT.
18768
18769 * w32term.h (WM_APPCOMMAND): Define if not already.
18770 (GET_APPCOMMAND_LPARAM): Likewise.
18771
18772 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18773 WM_APPCOMMAND.
18774
18775 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18776 (syms_of_w32fns): Export and initialize it.
18777 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18778
187792007-11-09 Chong Yidong <cyd@stupidchicken.com>
18780
18781 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18782 twice.
18783
18784 * xdisp.c (handle_face_prop): Fix last change.
18785
187862007-11-09 Richard Stallman <rms@gnu.org>
18787
18788 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18789 not just for after-strings and before-strings.
18790 Call face_for_overlay_string and pass the overlay to it.
18791 (handle_display_prop): Determine whether property came from an overlay.
18792 Pass OVERLAY arg to handle_single_display_spec.
18793 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18794 (load_overlay_strings): Fill in it->string_overlays.
18795 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18796
18797 * xfaces.c (face_for_overlay_string): Function renamed from
18798 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18799
18800 * dispextern.h (struct it): New elt string_overlays.
18801 New elt from_overlay, also in stack.
18802 Rearrange a few elements.
18803 (face_for_overlay_string): Decl renamed from
18804 face_at_buffer_position_no_overlays, and add argument.
18805
188062007-11-09 Richard Stallman <rms@gnu.org>
18807
18808 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18809 to get the base face for an overlay string.
18810
18811 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18812
18813 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18814
18815 * xdisp.c (handle_stop): Move some code out of loop.
18816
188172007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18818
18819 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18820 Fix conversion from Lisp object to ATSUFontID.
18821
188222007-11-09 Jason Rumney <jasonr@gnu.org>
18823
18824 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18825
188262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18827
18828 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18829 Don't assume regions are aligned to page boundary.
18830 (print_load_command_name): Add LC_UUID if defined.
18831
188322007-11-09 Richard Stallman <rms@gnu.org>
18833
18834 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18835
188362007-11-07 Jason Rumney <jasonr@gnu.org>
18837
18838 * s/windows95.h: Remove.
18839
188402007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18841
18842 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18843 abort with a message on unhandled store_type values.
18844
188452007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18846
18847 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18848 Remove HAVE_X11R5 and HAVE_X11R4.
18849
188502007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18851
18852 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18853
188542007-11-01 Johan Bockgård <bojohan@gnu.org>
18855
18856 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18857 Don't set s->stippled_p here, since it has already been set by
18858 x_set_glyph_string_gc from x_draw_glyph_string.
18859
188602007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18861
18862 * sunfns.c: Remove file.
18863
18864 * m/sun386.h:
18865 * m/sun2.h:
18866 * m/sparc.h: Remove Sun windows code.
18867
188682007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18869
18870 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18871 (init_keyboard): Set current_kboard's window-system to nil.
18872 (tty_read_avail_input): Typo.
18873 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18874
188752007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18876
18877 * s/usg5-4.h:
18878 * s/usg5-3.h:
18879 * s/ptx.h:
18880 * m/is386.h:
18881 * m/ibmps2-aix.h:
18882 * Makefile.in: Remove all mentions of X10.
18883
18884 * dispnew.c (syms_of_display): Don't mention version 10.
18885
188862007-10-28 Juanma Barranquero <lekktu@gmail.com>
18887
18888 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18889 ($(BLD)/abbrev.$(O)): Remove.
18890
188912007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18892
18893 Rewrite abbrev.c in Elisp.
18894 * image.c (Qcount): Don't declare as extern.
18895 (syms_of_image): Initialize and staticpro `Qcount'.
18896 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18897 * emacs.c (main): Don't call syms_of_abbrev.
18898 * Makefile.in (obj): Remove abbrev.o.
18899 (abbrev.o): Remove.
18900 * abbrev.c: Remove.
18901
189022007-10-26 Martin Rudalics <rudalics@gmx.at>
18903
18904 * window.c (window_min_size_2): Don't count header-line.
18905
189062007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18907
18908 * frame.h (struct frame): Move all bit fields after the first bit
18909 field to take advantage of the available space. Group all the
18910 chars together to reduce wasted space due to padding.
18911
189122007-10-26 Juanma Barranquero <lekktu@gmail.com>
18913
18914 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18915
18916 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18917 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18918 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18919 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18920 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18921 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18922 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18923 (last_marked, mark_object_loop_halt): Make static.
18924
18925 * frame.c (syms_of_frame) <delete-frame-functions>:
18926 Fix typo in docstring.
18927
189282007-10-25 Juanma Barranquero <lekktu@gmail.com>
18929
18930 * w32.c (init_environment): Fix tiny memory leak.
18931 (w32_get_resource): Remove unused variable `ok'.
18932
189332007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18934
18935 Make `window-system' into a keyboard-local variable (rather than
18936 frame-local as done originally by multi-tty).
18937
18938 * keyboard.h (struct kboard): Add Vwindow_system.
18939 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18940 (mark_kboards): Mark Vwindow_system.
18941
18942 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18943 (init_display): Don't set the obsolete `window-system' frame-param.
18944
18945 * xterm.c (x_term_init):
18946 * w32term.c (w32_create_terminal):
18947 * term.c (init_tty): Set Vwindow_system.
18948 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18949 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18950
18951 * xfns.c (Fx_create_frame, x_create_tip_frame):
18952 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18953 * macfns.c (Fx_create_frame):
18954 Don't set the obsolete `window-system' frame-param.
18955
18956 * frame.h (Qwindow_system): Remove.
18957 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18958 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18959
189602007-10-24 Richard Stallman <rms@gnu.org>
18961
18962 * frame.c (x_figure_window_size): For fullscreen case,
18963 set USPosition | PPosition without clobbering rest of window_prompting.
18964
18965 * keyboard.c (Fcurrent_idle_time): Doc fix.
18966
18967 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18968
189692007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18970
18971 * process.c (unwind_request_sigio): Only define if __ultrix__.
18972
18973 * callproc.c (child_setup): Remove spurious *.
18974
18975 * lisp.h (Fget_text_property): Declare.
18976 (have_menus_p): Declare it here rather than in sys-dep header files.
18977 * macterm.h (have_menus_p):
18978 * msdos.h (have_menus_p):
18979 * xterm.h (have_menus_p): Remove.
18980
18981 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18982 (Fmake_variable_frame_local): Just check the variable's const-ness
18983 rather than checking nil or t.
18984
189852007-10-22 Jason Rumney <jasonr@gnu.org>
18986
18987 * w32fns.c: Include math.h.
18988 (w32_abort): Declaration moved to nt/config.nt.
18989
18990 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18991 (abort): Redefinition moved to nt/config.nt.
18992
18993 * m/windowsnt.h: Remove.
18994
189952007-10-22 Juanma Barranquero <lekktu@gmail.com>
18996
18997 * emacs.c (Fdump_emacs): Fix typo in message.
18998 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18999 <installation-directory>: Reflow docstring.
19000
190012007-10-22 Juri Linkov <juri@jurta.org>
19002
19003 * minibuf.c: Allow minibuffer default to be a list of default values.
19004 With empty input use the first element of this list as returned default.
19005 (string_to_object)
19006 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19007 (read_minibuf): If defalt is cons, set histstring to its car.
19008 (Fread_string): If default_value is cons, set val to its car.
19009 (Fread_buffer): If def is cons, use its car.
19010 (Fcompleting_read): If defalt is cons, set val to its car.
19011
190122007-10-21 Michael Albinus <michael.albinus@gmx.de>
19013
19014 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19015
190162007-10-20 Juanma Barranquero <lekktu@gmail.com>
19017
19018 * doc.c (Fdocumentation): Check for advice in all cases.
19019
190202007-10-19 Chong Yidong <cyd@stupidchicken.com>
19021
19022 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19023
190242007-10-19 Richard Stallman <rms@gnu.org>
19025
19026 * doc.c (Fdocumentation): Check for and handle an advised function.
19027
190282007-10-19 Juanma Barranquero <lekktu@gmail.com>
19029
19030 * process.c (Fset_process_filter): Doc fix.
19031
190322007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19033
19034 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19035 which caused key-translation-map to applied repeatedly (thus breaking
19036 double-mode).
19037
190382007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19039
19040 * xselect.c (x_own_selection, x_handle_selection_clear)
19041 (x_clear_frame_selections):
19042 * w32menu.c (list_of_panes, list_of_items):
19043 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19044 * textprop.c (validate_plist, interval_has_all_properties)
19045 (interval_has_some_properties, interval_has_some_properties_list)
19046 (add_properties, text_property_list):
19047 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19048 * minibuf.c (Fassoc_string):
19049 * macselect.c (x_own_selection, x_clear_frame_selections)
19050 (Fx_disown_selection_internal):
19051 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19052 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19053
190542007-10-17 Chong Yidong <cyd@stupidchicken.com>
19055
19056 * process.c: Link to libs for calling res_init() if available.
19057 (Fmake_network_process): Call res_init() before getaddrinfo or
19058 gethostbyname, if possible.
19059
190602007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19061
19062 * lread.c (read1): Set pvectype for char_tables.
19063
19064 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19065 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19066 Add type checks.
19067 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19068
19069 * alloc.c (free_misc): Use XMISCTYPE.
19070 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19071
190722007-10-17 Glenn Morris <rgm@gnu.org>
19073
19074 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19075 (syms_of_minibuf): Add Qcompletion_ignore_case.
19076 * dired.c (Qcompletion_ignore_case): Change to external.
19077 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19078 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19079 (Fread_file_name): Use it rather than intern'ing.
19080
19081 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19082 (Fread_coding_system): Ignore case of user input.
19083
190842007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19085
19086 * xdisp.c (handle_display_prop): Ignore display specs after
19087 replacing one when string text is being replaced.
19088 (handle_single_display_spec): Pretend as if characters with display
19089 property haven't been consumed only when buffer text is being replaced.
19090
190912007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19092
19093 * xfns.c (Fx_create_frame, Fx_display_list):
19094 * window.c (window_fixed_size_p, enlarge_window)
19095 (shrink_window_lowest_first):
19096 * macterm.c (init_font_name_table):
19097 * macfns.c (Fx_create_frame, Fx_display_list):
19098 * lread.c (close_load_descs):
19099 * keyboard.c (read_char_x_menu_prompt):
19100 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19101 * coding.c (code_convert_region_unwind): Test the type of an object
19102 rather than just !NILP before extracting data from it.
19103
19104 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19105
19106 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19107 (XMISCANY): New macro.
19108 (XMISCTYPE): Use it.
19109 (struct Lisp_Misc_Any): New type.
19110 (union Lisp_Misc): Use it.
19111 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19112 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19113 (find_symbol_value, set_internal, default_value, Fset_default)
19114 (Fmake_variable_buffer_local, Fmake_local_variable)
19115 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19116 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19117 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19118 * alloc.c (allocate_buffer): Set the size and tag.
19119 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19120 Use XMISCANY.
19121 (die): Follow the GNU convention for error messages.
19122 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19123 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19124 tag any more.
19125 (set_buffer_internal_1):
19126 * frame.c (store_frame_param):
19127 * eval.c (specbind):
19128 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19129
19130 * doc.c (Fsnarf_documentation): Simplify.
19131
191322007-10-14 Juanma Barranquero <lekktu@gmail.com>
19133
19134 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19135 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19136
191372007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19138
19139 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19140
191412007-10-14 Juanma Barranquero <lekktu@gmail.com>
19142
19143 * eval.c (do_autoload): Don't save autoloads.
19144
19145 * data.c (Ffset): Save autoload of the function being set.
19146
191472007-10-07 John Paul Wallington <jpw@pobox.com>
19148
19149 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19150 parameter before setting up faces.
19151
191522007-10-13 Eli Zaretskii <eliz@gnu.org>
19153
19154 * ccl.c (Fregister_code_conversion_map):
19155 * keyboard.c (append_tool_bar_item): Reformat last change.
19156
19157 * lisp.h (eabs): Rename from `abs'. All callers changed.
19158
191592007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19160
19161 * buffer.c (add_overlay_mod_hooklist):
19162 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19163 * fontset.c (make_fontset):
19164 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19165 (append_tool_bar_item):
19166 * macmenu.c (grow_menu_items):
19167 * w32menu.c (grow_menu_items):
19168 * xmenu.c (grow_menu_items): Use larger_vector.
19169
191702007-10-13 Eli Zaretskii <eliz@gnu.org>
19171
19172 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19173 selected frame'' on MSDOS).
19174
191752007-10-12 Martin Rudalics <rudalics@gmx.at>
19176
19177 * frame.c (Qexplicit_name): New variable.
19178 (x_report_frame_params): Report it in parameter alist.
19179 (syms_of_frame): Intern and staticpro it.
19180
191812007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19182
19183 * macfns.c (x_create_tip_frame): Set terminal for frame.
19184
191852007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19186
19187 * frame.c (Qenvironment): Remove.
19188 (syms_of_frame) <Qenvironment>: Don't initialize.
19189 (Fdelete_frame): Don't treat the `environment' param specially.
19190 * frame.h (Qenvironment): Don't declare.
19191 * callproc.c (set_initial_environment): Don't set unused frame param.
19192
19193 * frame.c (Fframe_with_environment): Remove.
19194 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19195
19196 * lisp.h (Fframe_with_environment): Don't declare.
19197
191982007-10-10 Juanma Barranquero <lekktu@gmail.com>
19199
19200 * indent.c (indent_tabs_mode, last_known_column)
19201 (last_known_column_modified): Make static.
19202 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19203
192042007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19205
19206 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19207
192082007-10-09 Jason Rumney <jasonr@gnu.org>
19209
19210 * w32term.c (x_set_window_size): Disable code that attempts to tell
19211 Lisp code about a size change before it actually happens.
19212
192132007-10-09 Richard Stallman <rms@gnu.org>
19214
19215 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19216 return HANDLED_RETURN.
19217
192182007-10-08 Martin Rudalics <rudalics@gmx.at>
19219
19220 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19221 when there's an unread command event.
19222
19223 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19224 window autoselection act appropriately when leaving selected frame.
19225 (syms_of_frame): Initialize focus_follows_mouse.
19226 * frame.h (focus_follows_mouse): Extern it.
19227 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19228 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19229 * msdos.c (dos_rawgetc): Likewise.
19230 * w32term.c (w32_read_socket): Likewise.
19231 * xterm.c (handle_one_xevent): Likewise.
19232 * xdisp.c (syms_of_xdisp): In doc-string of
19233 mouse-autoselect-window mention focus-follows-mouse.
19234
192352007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19236
19237 * macterm.c (mac_load_query_font): Fix missing return value.
19238 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19239 Add BLOCK_INPUT.
19240
192412007-10-08 Richard Stallman <rms@gnu.org>
19242
19243 * xdisp.c (get_window_cursor_type): Implement documented behavior
19244 for cursor-in-non-selected-windows = t.
19245
192462007-10-08 Jason Rumney <jasonr@gnu.org>
19247
19248 * w32.c (w32_get_resource): Always close registry keys.
19249
192502007-10-08 Jason Rumney <jasonr@gnu.org>
19251
19252 * makefile.w32-in (LIBS): Add COMCTL32.
19253
19254 * w32fns.c (globals_of_w32fns): Init common controls.
19255
192562007-10-08 Richard Stallman <rms@gnu.org>
19257
19258 * image.c (our_memory_buffer): Rename from omfib_buffer.
19259
192602007-10-08 Richard Stallman <rms@gnu.org>
19261
19262 * buffer.c (Foverlays_at): Doc fix.
19263
192642007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19265
19266 * fns.c (Fplist_put): Preserve uneven tail data.
19267
192682007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19269
19270 * termhooks.h (enum event_kind): Remove trailing comma.
19271
19272 * frame.h (enum): Remove trailing comma.
19273
192742007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19275
19276 * w32proc.c (delete_child): Don't terminate threads of zombies.
19277
192782007-10-08 Martin Rudalics <rudalics@gmx.at>
19279
19280 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19281
19282 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19283 last-repeatable-command.
19284 (init_kboard): Initialize Vlast_repeatable_command.
19285 (command_loop_1): Set it to real_this_command unless that was
19286 bound to an input event.
19287 (mark_kboards): Mark it.
19288
192892007-10-08 Richard Stallman <rms@gnu.org>
19290
19291 * eval.c (condition-case): Doc fix.
19292
192932007-10-08 Masatake YAMATO <jet@gyve.org>
19294
19295 * xfaces.c (tty_supports_face_attributes_p): Fix code
19296 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19297 was copied and not edited.
19298
192992007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19300
19301 Add new `input-decode-map' keymap and use it for terminal
19302 escape sequences.
19303 * keyboard.h (struct kboard): Add Vinput_decode_map.
19304 Remove Vlocal_key_translation_map.
19305 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19306 (init_kboard): Init input-decode-map.
19307 Replace local-key-translation-map back with key-translation-map.
19308 (syms_of_keyboard): Declare input-decode-map.
19309 Remove local-key-translation-map. Update docstrings.
19310 (mark_kboards): Mark Vinput_decode_map.
19311 Don't mark Vlocal_key_translation_map.
19312 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19313 Replace local-key-translation-map back with key-translation-map.
19314 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19315 Bind in input-decode-map rather than function-key-map.
19316
19317 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19318 This was made redundant by the previous introduction of XSETPVECTYPE.
19319
193202007-10-09 Richard Stallman <rms@gnu.org>
19321
19322 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19323
193242007-09-29 Richard Stallman <rms@gnu.org>
19325
19326 * eval.c (internal_condition_case_2, internal_condition_case_1)
19327 (internal_condition_case): Reenable abort if x_catching_errors ()
19328 to see if that really happens and why.
19329
193302007-10-06 Andreas Schwab <schwab@suse.de>
19331
19332 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19333
193342007-10-04 Juanma Barranquero <lekktu@gmail.com>
19335
19336 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19337
193382007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19339
19340 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19341
193422007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19343
19344 * window.h (struct window):
19345 * window.c (struct save_window_data, struct saved_window):
19346 * termhooks.h (struct terminal):
19347 * process.h (struct Lisp_Process):
19348 * frame.h (struct frame):
19349 * buffer.h (struct buffer):
19350 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19351 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19352 The size field of (pseudo)vectors is now unsigned.
19353 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19354
19355 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19356 Turn `count' into an integer.
19357
19358 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19359 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19360 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19361 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19362 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19363
19364 * alloc.c (allocate_pseudovector): New fun.
19365 (ALLOCATE_PSEUDOVECTOR): New macro.
19366 (allocate_window, allocate_terminal, allocate_frame)
19367 (allocate_process): Use it.
19368 (mark_vectorlike): New function.
19369 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19370 (mark_terminals): Use it.
19371 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19372 (Fmake_byte_code): Use XSETPVECTYPE.
19373
19374 * frame.c (Fframe_parameters): Minor simplification.
19375
19376 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19377
19378 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19379
19380 * buffer.c (Fget_buffer_create, init_buffer_once):
19381 * lread.c (defsubr):
19382 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19383
19384 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19385 defined differently in the m/*.h files.
19386 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19387 (XSETPVECTYPE): New macro.
19388 (XSETPSEUDOVECTOR): Use it.
19389
19390 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19391 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19392
19393 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19394 * lread.c (defvar_per_buffer):
19395 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19396
19397 * window.c (candidate_window_p): Only consider as visible frames that
19398 are on the same terminal.
19399
19400 * m/ibms390x.h (MARKBIT): Remove unused macro.
19401
194022007-10-01 Juanma Barranquero <lekktu@gmail.com>
19403
19404 * lread.c (Fload): Fix typo in docstring.
19405
194062007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19407
19408 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19409 of a non-zero value can't yield zero.
19410
194112007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19412
19413 * term.c (term_clear_mouse_face, term_mouse_highlight)
19414 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19415
19416 * print.c (safe_debug_print): Use XHASH.
19417
19418 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19419 Lisp elements such as tags.
19420 (XHASH): New macro.
19421 (EQ): Use it.
19422 (SREF, SSET, STRING_COPYIN): Use SDATA.
19423 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19424
19425 * alloc.c (mark_terminal): Remove left-over declaration.
19426 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19427 (allocate_vectorlike): Remove type argument. Adjust callers.
19428 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19429 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19430
19431 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19432 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19433 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19434 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19435 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19436 Use them.
19437
19438 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19439 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19440 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19441
194422007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19443
19444 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19445 loaded by default.
19446
194472007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19448
19449 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19450 on this tty.
19451 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19452
19453 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19454 Update all users.
19455 (handle_one_term_event): Use Gpm_DrawPointer.
19456 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19457 Signal errors instead of returning nil. Always return nil.
19458 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19459 Make it a noop if gpm-mouse was not activated.
19460 (syms_of_term): Update names.
19461
194622007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19463
19464 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19465 (init_sys_modes): Check that gpm_tty is the current tty.
19466
19467 * alloc.c (allocate_terminal): Set the vector size to only count the
19468 lisp fields. Initialize those to nil.
19469 (mark_object): Don't treat terminals specially.
19470 (mark_terminal): Remove.
19471 (mark_terminals): Use mark_object instead.
19472
19473 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19474 the GC to the beginning.
19475
19476 * indent.h:
19477 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19478
19479 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19480
194812007-09-25 Jason Rumney <jasonr@gnu.org>
19482
19483 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19484
19485 * w32console.c (create_w32cons_output): Remove.
19486
19487 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19488
19489 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19490 (reset_sys_modes): Use reset_terminal_modes_hook.
19491
194922007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19493
19494 * eval.c (do_autoload): Don't output any message.
19495
194962007-09-24 Juri Linkov <juri@jurta.org>
19497
19498 * emacs.c (standard_args): Change priority of "--no-splash"
19499 from 40 to 3. Add "--no-desktop" with the same priority.
19500
195012007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19502
19503 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19504 and optimize the case where they are all 1.
19505
195062007-09-23 Johannes Weiner <hannes@saeurebad.de>
19507
19508 * lisp.h (abs): Define if not defined.
19509 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19510 Don't define `abs', since it's defined in lisp.h.
19511
195122007-09-22 Eli Zaretskii <eliz@gnu.org>
19513
19514 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19515 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19516 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19517 (init_tty): Use DEV_TTY instead of "/dev/tty".
19518 [WINDOWSNT]: No need to protect from NAME arg being null.
19519
195202007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19521
19522 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19523 up the tty state.
19524
195252007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19526
19527 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19528 (gpm_tty): Change its type.
19529 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19530 (gpm_tty): Change its type and initialize it.
19531 (Fterm_open_connection): Check the frame is indeed a tty.
19532 Use the new gpm_tty.
19533 (Fterm_close_connection): Use the new gpm_tty.
19534 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19535 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19536
195372007-09-21 Juanma Barranquero <lekktu@gmail.com>
19538
19539 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19540 underline_color, to draw strike-through.
19541
195422007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19543
19544 * lisp.h (allocate_terminal): Declare.
19545
19546 * window.c (candidate_window_p): Consider frames that are being placed
19547 by the user as somewhere between visible and iconified.
19548 (window_loop): Prefer windows on the current frame.
19549 (Fselect_window): Move the use of select-frame to the beginning so we
19550 can just delegate all the work (it'll call us back anyway).
19551
19552 * frame.c (Qdisplay_environment_variable):
19553 * frame.h (Qdisplay_environment_variable): Delete.
19554
19555 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19556 of the first arg, since that value may be a union.
19557
19558 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19559 parameter rather than Qdisplay_environment_variable. If all else
19560 fails, look for DISPLAY in initial-environment.
19561
195622007-09-21 Glenn Morris <rgm@gnu.org>
19563
19564 * Makefile.in (emacstool): Remove target.
19565 (lisp, shortlisp): Remove termdev.elc.
19566
195672007-09-21 Markus Triska <markus.triska@gmx.at>
19568
19569 * xterm.c (x_delete_display): Compile session management conditionally.
19570
195712007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19572
19573 * callproc.c (getenv_internal_1): New function.
19574 (getenv_internal): Use it.
19575 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19576
19577 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19578 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19579 (Fset_terminal_parameter): Work with dead terminals as well.
19580 (Fmodify_terminal_parameters): Remove.
19581
19582 * terminal.c (get_terminal): Handle terminals.
19583 Make sure the terminal returned is live.
19584 (create_terminal): Use allocate_terminal.
19585 (mark_terminals): Move to alloc.c.
19586 (delete_terminal): Use terminal->name as liveness status.
19587 NULL out fields after freeing their contents.
19588 Don't deallocate the object.
19589 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19590 rather than an int.
19591 (Fterminal_live_p): Accept non-integer arguments.
19592 (Fterminal_list): Return terminal objects rather than an ints.
19593
19594 * alloc.c (enum mem_type): New member for `terminal' objects.
19595 (allocate_terminal): New function.
19596 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19597 Handle terminals.
19598 (mark_terminal): New fun.
19599 (mark_terminals): Move from terminal.c.
19600
19601 * term.c (get_tty_terminal): Don't treat output_initial specially.
19602 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19603 (delete_tty): Use terminal->name as liveness status.
19604
19605 * termhooks.h (struct terminal): Make it into a pseudovector.
19606 Remove `deleted' replaced by checking `name's nullness.
19607
19608 * print.c (print_object): Handle terminals.
19609
19610 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19611 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19612
19613 * frame.c (make_terminal_frame):
19614 * keyboard.c (tty_read_avail_input):
19615 * w32term.c (x_delete_terminal):
19616 * xfns.c (Fx_create_frame, x_create_tip_frame):
19617 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19618
196192007-09-20 Glenn Morris <rgm@gnu.org>
19620
19621 * process.c (Fmake_network_process): Doc fix.
19622
196232007-09-19 Jason Rumney <jasonr@gnu.org>
19624
19625 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19626
196272007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19628
19629 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19630 Fix a C warning regarding variable constness.
19631
19632 * xterm.c (handle_one_xevent): Fix a C warning.
19633
196342007-09-18 Jason Rumney <jasonr@gnu.org>
19635
19636 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19637
196382007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19639
19640 * gtkutil.c (gdpy_def): New variable.
19641 (xg_initialize): Initialize gdpy_def.
19642 (xg_display_close): If no other display exists, set gdpy_def to a
19643 new connection.
19644
196452007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19646
19647 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19648 when we have no file name for the icon.
19649 (xg_tool_bar_expose_callback): Remove.
19650 (xg_create_tool_bar): Don't connect expose signal to
19651 xg_tool_bar_expose_callback.
19652 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19653
196542007-09-16 Andreas Schwab <schwab@suse.de>
19655
19656 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19657 values instead of zapping them.
19658
196592007-09-14 Glenn Morris <rgm@gnu.org>
19660
19661 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19662 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19663 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19664 scope and rename to omfib_buffer for clarity.
19665 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19666
196672007-09-14 Kenichi Handa <handa@m17n.org>
19668
19669 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19670
196712007-09-13 Jason Rumney <jasonr@gnu.org>
19672
19673 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19674
19675 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19676
19677 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19678 (mac_term_init): Call here instead, passing rif.
19679
196802007-09-13 Glenn Morris <rgm@gnu.org>
19681
19682 * s/hpux.h: No longer define `static' as nothing.
19683
196842007-09-13 Johan Bockgård <bojohan@gnu.org>
19685
19686 * callint.c (Fcall_interactively): Remove unused var `fun'.
19687
196882007-09-12 Romain Francoise <romain@orebokech.com>
19689
19690 * window.c (prefer_window_split_horizontally, display_buffer):
19691 Revert 2007-09-08 change.
19692
196932007-09-12 Glenn Morris <rgm@gnu.org>
19694
19695 * alloca.c: Remove file.
19696 * Makefile.in (alloca): Do not undef.
19697 (allocaobj, alloca.o): Remove.
19698 (otherobj): Remove allocaobj.
19699 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19700 * regex.c (C_ALLOCA): Remove all references and code that was only
19701 used when this was defined.
19702 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19703 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19704 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19705
19706 * Makefile.in (SOURCES, unlock, relock): Delete.
19707
19708 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19709 (menu_grab_callback): All uses changed.
19710
19711 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19712 (x_reply_selection_request): All uses changed.
19713
197142007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19715
19716 * lread.c (load_warn_old_style_backquotes): Change message to look
19717 better when it appears in the middle of byte-compiler messages.
19718
197192007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19720
19721 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19722
19723 * xterm.c (x_create_terminal): Add comment.
19724
19725 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19726
197272007-09-10 Richard Stallman <rms@gnu.org>
19728
19729 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19730
197312007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19732
19733 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19734 (DEFUN): Document `intspec', use it instead of `prompt'.
19735
19736 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19737
19738 * data.c (Finteractive_form): If the interactive specification starts
19739 with a `(', use it as a Lisp form.
19740
19741 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19742 name and file modes.
19743
19744 * callint.c (Fcall_interactively): Comment fixes.
19745
197462007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19749 and compiled functions.
19750
197512007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19752
19753 * window.c (prefer_window_split_horizontally): New variable.
19754 (display_buffer): Consider splitting window horizontally depending
19755 on prefer_window_split_horizontally.
19756
197572007-09-08 Eli Zaretskii <eliz@gnu.org>
19758
19759 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19760
197612007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19762
19763 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19764
19765 * frame.c (x_set_frame_parameters): Check number is positive before
19766 using XFASTINT.
19767
19768 * window.c (freeze_window_start): Don't presume selected_window holds
19769 a window object.
19770 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19771
197722007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19773
19774 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19775
197762007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19777
19778 * window.c (Vsplit_window_preferred_function): New var.
19779 (Fdisplay_buffer): Use it.
19780 (syms_of_window): Export, and initialize it.
19781
197822007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19783
19784 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19785
197862007-09-06 Glenn Morris <rgm@gnu.org>
19787
19788 * gtkutil.c (menu_grab_callback) <cnt>:
19789 * xselect.c (x_reply_selection_request) <cnt>: Move static
19790 variable to file scope.
19791
197922007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19793
19794 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19795 consistent values of selected_frame and selected_window.
19796
197972007-09-04 Jason Rumney <jasonr@gnu.org>
19798
19799 * w32console.c (initialize_w32_display): Zero unused hooks.
19800
198012007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19802
19803 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19804 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19805
198062007-09-04 Jason Rumney <jasonr@gnu.org>
19807
19808 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19809 in w32console.c. Set up input. Remove XXX comments that have been
19810 confirmed as correct.
19811
19812 * s/ms-w32.h (MULTI_KBOARD): Define.
19813
19814 * w32console.c (one_and_only_w32cons): Remove.
19815 (initialize_w32_display): Take terminal argument.
19816
19817 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19818 initialize_w32_display.
19819 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19820
19821 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19822
19823 * keyboard.c (discard_mouse_events): Discard it.
19824 (make_lispy_event): Translate it to a lisp event.
19825 (lispy_wheel_names): Add wheel-left and right events.
19826 (syms_of_keyboard): Enlarge wheel_syms.
19827
19828 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19829 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19830
19831 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19832
19833 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19834 from WM_MOUSEHWHEEL.
19835 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19836
19837 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19838 terminal.
19839
19840 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19841 keyboard for the terminal.
19842
198432007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19844
19845 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19846 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19847 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19848 and resume-tty-function to resume-tty-hook.
19849 (Fsuspend_tty, Fresume_tty): Use new names.
19850
198512007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19852
19853 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19854 if it starts with "n:".
19855
198562007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19857
19858 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19859
198602007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19861
19862 * frame.h:
19863 * frame.c (Qterm_environment_variable): Remove.
19864 (syms_of_frame): Don't init and staticpro it.
19865
19866 * callproc.c (getenv_internal): Remove special case for $TERM.
19867
19868 * callproc.c (Vinitial_environment): New variable.
19869 (set_initial_environment): Initialize it.
19870 (syms_of_callproc): Declare it.
19871 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19872 TERM under which a process runs is never related to the TERM in which
19873 Emacs is running.
19874
198752007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19876
19877 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19878 * s/darwin.h: ... do it here.
19879
198802007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19881
19882 * lisp.h (set_initial_environment): Rename from set_global_environment.
19883
19884 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19885 removed by mistake on the multi-tty branch.
19886
19887 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19888 (Fmodify_frame_parameters): Return a value.
19889
19890 * image.c (png_load): Comment-out var only used in commented-out code.
19891
19892 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19893 before passing it to mark_object.
19894
19895 * xfaces.c (internal_resolve_face_name): Return a value.
19896 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19897
19898 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19899 (x_icon): Comment-out var only used in commented-out code.
19900
199012007-08-29 Romain Francoise <romain@orebokech.com>
19902
19903 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19904 QUIT hasn't been provided.
19905
199062007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19907
19908 * callproc.c (child_setup, getenv_internal): Use the
19909 display-environment-variable and term-environment-variable frame params.
19910 (set_initial_environment): Initialise Vprocess_environment.
19911
19912 * config.in: Disable multi-keyboard support on a mac.
19913
19914 * frame.c (Qterm_environment_variable)
19915 (Qdisplay_environment_variable): New variables.
19916 (syms_of_frame): Intern and staticpro them.
19917 (Fmake_terminal_frame): Disable output method test.
19918
19919 * frame.h: Declare them here.
19920
19921 * macfns.c (x_set_mouse_color): Get rif from the frame.
19922 (x_set_tool_bar_lines): Don't use updating_frame.
19923 (mac_window): Add 2 new parameters for consistency with other systems.
19924 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19925 frame parameters following what is done in X11 and w32. Don't use
19926 FRAME_MAC_DISPLAY_INFO.
19927 (Fx_open_connection, start_hourglass): Remove window-system check.
19928 (x_create_tip_frame): Get the keyboard from the terminal.
19929
19930 * macmenu.c: Reorder includes.
19931 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19932
19933 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19934 terminal parameter.
19935 (x_clear_frame): Add a frame parameter.
19936 (note_mouse_movement): Get rif from the frame.
19937 (mac_term_init): Initialize the terminal.
19938 (mac_initialize): Make static and move terminal initialization ...
19939 (mac_create_terminal): ... to this new function.
19940
19941 * macterm.h (struct mac_display_info): Add terminal.
19942 (mac_initialize): Delete declaration.
19943
19944 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19945
19946 * sysdep.c: Comment out text after #endif.
19947
19948 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19949 is defined. Better initialize ttys in windows. Use terminal
19950 specific mouse_position_hook.
19951
19952 * termhooks.h (union display_info): Add mac_display_info.
19953
19954 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19955 Set the default minibuffer frame, window_system and the rest of the
19956 frame parameters following what is done in X11.
19957
19958 * w32term.c (w32_initialize): Make static.
19959
19960 * xselect.c (x_handle_selection_clear): Only access
19961 terminal->kboard when MULTI_KBOARD is defined.
19962
19963 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19964 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19965
199662007-08-29 Jason Rumney <jasonr@gnu.org>
19967
19968 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19969 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19970
19971 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19972 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19973
19974 * keyboard.c (restore_kboard_configuration): Only define when
19975 MULTI_KBOARD defined.
19976
19977 * makefile.w32-in: Update dependancies from Makefile.in.
19978 (OBJ1): Add terminal.$(O)
19979
19980 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19981 Don't define function body.
19982 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19983
19984 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19985
19986 * w32.c (request_sigio, unrequest_sigio): Remove.
19987
19988 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19989 (w32con_clear_frame, w32con_clear_end_of_line)
19990 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19991 (w32con_delete_glyphs, w32con_set_terminal_window)
19992 (scroll_line, w32_sys_ring_bell): Add frame arg.
19993 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19994 Add terminal arg.
19995 (PICK_FRAME): Remove.
19996 (w32con_write_glyphs): Use frame specific terminal coding.
19997 (one_and_only_w32cons): New global variable.
19998 (initialize_w32_display): Use it for storing hooks.
19999 (create_w32cons_output): New function.
20000
20001 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20002 arg a frame.
20003
20004 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20005 Set window_system.
20006 (x_set_tool_bar_lines): Don't use updating_frame.
20007 (Fx_create_frame): Set terminal and ref count.
20008 (Fx_open_connection): Remove window-system check.
20009
20010 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20011
20012 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20013 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20014 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20015 Add frame arg.
20016 (x_delete_terminal, w32_create_terminal): New functions.
20017 (w32_term_init): Create a terminal.
20018 (w32_initialize): Move terminal specific initialization to
20019 w32_create_terminal.
20020
20021 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20022 (w32_clear_rect, w32_clear_area): Use background from frame.
20023 (w32_display_info): Add terminal.
20024 (w32_sys_ring_bell, x_delete_display): Declare here.
20025
20026 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20027
20028 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20029
200302007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20031
20032 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20033 Fix get_named_tty calls for the controlling tty.
20034
200352007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20036
20037 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20038
200392007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20040
20041 * term.c (tty_insert_glyphs): Add missing first parameter.
20042
200432007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20044
20045 * buffer.c (Fbuffer_list, Fbury_buffer):
20046 Take frame->buried_buffer_list into account.
20047
20048 * cm.c (current_tty): New variable, for cmputc().
20049 (cmputc): Use it.
20050 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20051 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20052 (cmgoto): Add tty parameter. Pass it on to calccost().
20053 Use emacs_tputs() instead of tputs().
20054
20055 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20056 tputs().
20057 (current_tty): New variable, for cmputc().
20058 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20059
20060 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20061 (internal_condition_case, internal_condition_case_1)
20062 (internal_condition_case_2): Don't abort when x_catching_errors.
20063
20064 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20065 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20066 prevent crashes caused by bogus longjmps in read_char.
20067
20068 * keymap.h (Fset_keymap_parent): Add EXFUN.
20069
20070 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20071 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20072 Remove redundant definition.
20073
20074 * macfns.c (x_set_mouse_color, x_make_gc):
20075 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20076
20077 * w32term.c (x_free_frame_resources):
20078 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20079 (w32_initialize): Use the accessor macros for terminal characteristics.
20080
20081 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20082 Use the accessor macros for terminal characteristics.
20083 * msdos.c (internal_terminal_init): Use the accessor macros for
20084 terminal characteristics.
20085 (ScreenVisualBell, internal_terminal_init):
20086 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20087
20088 * termopts.h (no_redraw_on_reenter): Declare.
20089
20090 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20091 (mark_terminals, mark_ttys): Declare.
20092 (Fgarbage_collect): Call them.
20093 (mark_object): Mark buried_buffer_list.
20094
20095 * prefix-args.c: Include stdlib.h for exit.
20096
20097 * syssignal.h: Add comment.
20098
20099 * indent.c: Include stdio.h.
20100
20101 * window.h (Vinitial_window_system): Declare.
20102 (Vwindow_system): Delete declaration.
20103
20104 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20105
20106 * image.c (lookup_image): Don't initialize `c' until the xasserts
20107 have been run.
20108
20109 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20110 FRAME_FOREGROUND_PIXEL.
20111
20112 * print.c (print_preprocess): Don't lose print_depth levels while
20113 iterating.
20114
20115 * widget.c (update_from_various_frame_slots):
20116 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20117
20118 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20119 frames.
20120 (window_internal_height): Remove bogus make_number call.
20121 (init_window_once): Call make_terminal_frame with two zero parameters.
20122
20123 * fileio.c (Fread_file_name): Update comment.
20124
20125 * callint.c (Fcall_interactively):
20126 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20127 Make sure it is correctly unwound.
20128
20129 * xsmfns.c (x_session_close): New function.
20130
20131 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20132 Delete declarations.
20133
20134 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20135 (x_output): Remove background_pixel and foreground_pixel fields.
20136 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20137 (x_delete_device, x_session_close): Declare.
20138
20139 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20140 (read_filtered_event): Call `read_char' with a local
20141 `wrong_kboard_jmpbuf'.
20142
20143 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20144 Don't call single_kboard_state. Use FRAME_RIF.
20145
20146 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20147 systems.
20148
20149 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20150 (Fframe_with_environment, Fset_input_meta_mode)
20151 (Fset_quit_char): EXFUN.
20152 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20153 (init_sys_modes, reset_sys_modes): Update prototypes.
20154 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20155
20156 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20157 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20158 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20159 Delete declarations.
20160 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20161 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20162 New declarations.
20163
20164 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20165 already does that during init_display(). Call syms_of_keymap
20166 before syms_of_keyboard. Call `syms_of_terminal'.
20167 Call set_initial_environment, not set_process_environment.
20168 (shut_down_emacs): Call reset_all_sys_modes() instead of
20169 reset_sys_modes().
20170
20171 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20172 (internal_resolve_face_name, resolve_face_name_error): New functions.
20173 (resolve_face_name): Protect against loops and errors thrown by Fget.
20174 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20175 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20176
20177 * scroll.c: Replace CURTTY() with local variables throughout the
20178 file (where applicable).
20179 (calculate_scrolling, calculate_direct_scrolling)
20180 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20181 characteristics.
20182
20183 * keymap.c (Vfunction_key_map): Remove.
20184 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20185 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20186 (Vkey_translation_map): Remove.
20187 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20188 (Fdescribe_buffer_bindings)
20189 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20190 Update for terminal-local key-translation-map.
20191
20192 * Makefile.in (callproc.o): Update dependencies.
20193 (lisp, shortlisp): Add termdev.elc.
20194 (obj): Add terminal.o.
20195 (terminal.o): Add dependencies.
20196 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20197 (data.o, fns.o): Add termhooks.h dependency.
20198 (SOME_MACHINE_LISP): Add dnd.elc.
20199 (minibuf.o): Fix typo.
20200 Update dependencies.
20201
20202 * data.c (do_symval_forwarding, store_symval_forwarding)
20203 (find_symbol_value): Use the selected frame's keyboard, not
20204 current_kboard.
20205
20206 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20207 Vwindow_system.
20208
20209 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20210 Fmenu_bar_open.
20211 (syms_of_xmenu): Update defsubr.
20212 (mouse_position_for_popup, Fx_popup_menu)
20213 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20214 (set_frame_menubar, free_frame_menubar)
b97439ce 20215 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20216 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20217 an X frame.
20218
20219 * xselect.c (x_own_selection): Abort if not an X frame.
20220 (some_frame_on_display): Check if it is an X frame.
20221 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20222
20223 * coding.c: Include frame.h and termhooks.h.
20224 (terminal_coding, keyboard_coding): Delete.
20225 (Fset_terminal_coding_system_internal)
20226 (Fset_keyboard_coding_system_internal)
20227 (Fkeyboard_coding_system)
20228 (Fterminal_coding_system): Add a terminal parameter.
20229 Get terminal_coding from the terminal.
20230 (init_coding_once): Don't call setup_coding_system here.
20231
20232 * dispextern.h (set_scroll_region, turn_off_insert)
20233 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20234 (tty_clear_end_of_line, tty_setup_colors)
20235 (delete_tty, updating_frame)
20236 (produce_special_glyphs, produce_glyphs, write_glyphs)
20237 (insert_glyphs): Remove.
20238 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20239 (tty_turn_off_highlight, get_tty_size): Add declaration.
20240 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20241
20242 * frame.h (enum output_method): Add output_initial.
20243 (struct x_output): Delete.
20244 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20245 Access foreground_pixel and background_pixel directly from the frame.
20246 (tty_display): Delete.
20247 (struct frame): Add buried_buffer_list, foreground_pixel,
20248 background_pixel and terminal. Delete kboard.
20249 (union output_data): Add tty.
20250 (FRAME_KBOARD): Get the kboard from the terminal.
20251 (FRAME_INITIAL_P): New macro.
20252 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20253 (Qterm_environment_variable, Qdisplay_environment_variable)
20254 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20255 New declarations.
20256
20257 * termchar.h (tty_output, tty_display_info): New structures.
20258 (tty_list): Declare.
20259 (FRAME_TTY, CURTTY): New macros.
20260 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20261 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20262 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20263 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20264
20265 * callproc.c: Include frame.h and termhooks.h, for terminal
20266 parameters.
20267 (add_env): New function.
20268 (child_setup): Use it.
20269 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20270 (getenv_internal): Fix get_terminal_param call.
20271 (Fgetenv_internal, egetenv): Update doc.
20272 (syms_of_callproc): Initialize Vprocess_environment to nil.
20273 Register and initialize them. Remove obsolete defvars. Update doc
20274 strings.
20275 (child_setup): Handle Vlocal_environment_variables.
20276 (getenv_internal): Add terminal parameter.
20277 Handle Vlocal_environment_variables.
20278 (Fgetenv_internal): Add terminal parameter.
20279 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20280 environment in a frame (not terminal) parameter. Update doc strings.
20281 (set_initial_environment): Rename from set_global_environment.
20282 Store Emacs environment in initial frame parameter.
20283
20284 * xdisp.c (redisplay_internal): Update references to
20285 `previous_terminal_frame'.
20286 (display_mode_line, Fformat_mode_line): Replace calls to
20287 `push_frame_kboard' with `push_kboard'.
20288 (get_glyph_string_clip_rects): Add extra parentheses and
20289 braces to prevent compiler warnings.
20290 (calc_pixel_width_or_height): Add xassert to check that the
20291 frame is alive. Don't call `lookup_image' on a termcap frame.
20292 (message2_nolog, message3_nolog, redisplay_internal)
20293 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20294 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20295 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20296 (Fx_display_pixel_width, Fx_display_pixel_height)
20297 (Fx_display_planes, Fx_display_color_cells)
20298 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20299 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20300 (Fx_display_backing_store, Fx_display_visual_class)
20301 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20302 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20303
20304 * xfns.c (x_set_foreground_color x_set_background_color)
20305 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20306 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20307 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20308 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20309 terminal that is being deleted.
20310 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20311 frame parameter, and make sure it overrides any user-supplied setting.
20312 (Fx_close_connection, Fx_synchronize): Unify argument names with
20313 the rest of the DEFUNs.
20314
20315 * dispnew.c (Fsend_string_to_terminal): Update call to
20316 `get_tty_terminal'.
20317 (Fredraw_frame, Fsend_string_to_terminal)
20318 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20319 FRAME_TERMCAP_P and FRAME_TTY.
20320 (window_change_signal): Don't believe width/height values that are
20321 impossibly small.
20322 (Vinitial_window_system): Rename from Vwindow_system.
20323 (termscript, Wcm, rif): Delete.
20324
20325 * termhooks.h (struct terminal): New struct containing the
20326 previously global text display hooks and new members NAME,
20327 DELETED and PARAM_ALIST.
20328 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20329 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20330 (FRAME_RIF): New macros.
20331 (get_terminal_param, get_device): New declarations.
20332 (termscript): Delete declaration.
20333
20334 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20335 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20336 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20337 FRAME_FOREGROUND_PIXEL.
20338 (x_fully_uncatch_errors): Disable definition.
20339 (x_scroll_bar_expose): Fix reference to foreground pixel.
20340 (XTread_socket): Disable loop on all X displays.
20341 (x_delete_terminal): Don't set terminal->deleted and let
20342 delete_terminal delete the frames on the terminal.
20343 (x_delete_display): Doc update to reflect changes in
20344 delete_terminal.
20345 (x_display_info) <terminal>: Move member earlier in the struct.
20346 (deleting_tty): Remove old variable.
20347 (Fsuspend_tty): Call clear_tty_hooks.
20348 (Fresume_tty, init_tty): Call set_tty_hooks.
20349 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20350 errors on X frames.
20351 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20352 (handle_one_xevent): Initialize `f' to NULL.
20353 (x_delete_terminal, x_create_terminal): New functions.
20354 (XTset_terminal_modes, XTreset_terminal_modes)
20355 (XTread_socket, x_connection_closed, x_term_init)
20356 (x_term_init, x_delete_display): Add terminal parameter.
20357 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20358 X connections.
20359
20360 * frame.c: Include termchar.h.
20361 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20362 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20363 (Qdisplay_environment_variable): New vars.
20364 (Fframep): Deal with output_initial.
20365 (Fframe-live-p): Doc fix.
20366 (Fwindow-system): New function.
20367 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20368 (make_terminal_frame): Don't create frames on a terminal that is
20369 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20370 (store_frame_param): Check for found_for_frame before calling XFRAME.
20371 (Fmake_terminal_frame): Handle NULL tty names correctly.
20372 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20373 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20374 frames to refer to a deleted frame in their 'environment parameter.
20375 (Fframe_with_environment): New function.
20376 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20377 (get_future_frame_param): New function.
20378 (Fmake_terminal_frame): Use it.
20379 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20380
20381 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20382 * sysdep.c (reset_sys_modes): Update for renames.
20383
20384 * keyboard.c (tty_read_avail_input): New function.
20385 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20386 (syms_of_keyboard): Defsubr them.
20387 (Fset_input_meta_mode, Fset_quit_char): New functions.
20388 (Fset_input_mode): Split to above functions.
20389 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20390 parameter. Use it in call to `read_char'.
20391 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20392 Set wrong_kboard_jmpbuf correctly in recursive calls.
20393 Use current_kboard to access Vkeyboard_translate_table.
20394 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20395 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20396 Update longjmp invocations. Remember the original current_kboard,
20397 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20398 changes it. Comment out unnecessary calls to
20399 `record_single_kboard_state' and `any_kboard_state'.
20400 Update recursive calls.
20401 (wrong_kboard_jmpbuf): Remove global variable.
20402 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20403 Handle deleted interrupted_kboards correctly; that is a legal
20404 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20405 and read_char calls. Abort if interrupted_kboard died in read_char.
20406 (any_kboard_state, single_kboard_state)
20407 (push_frame_kboard): Remove function.
20408 (pop_kboard): Switch out of single_kboard mode if the kboard has
20409 been deleted. Remove unused variable. Help debugging by not
20410 changing current_kboard unnecessarily. Set current_kboard to the
20411 kboard of the selected frame when the stored kboard object has
20412 been deleted before pop_kboard.
20413 (temporarily_switch_to_single_kboard): Change first parameter to a
20414 frame pointer. Throw an error when caller wants to change kboards
20415 while in single_kboard mode. Don't push_kboard if we weren't in
20416 single kboard state. Don't pop_kboard if we popped into any
20417 kboard state.
20418 (restore_kboard_configuration): Abort if pop_kboard changed the
20419 kboard in single_kboard mode. Call pop_kboard only after setting
20420 up single_kboard mode.
20421 (Frecursive_edit): Switch to single_kboard mode only in nested
20422 command loops.
20423 (cmd_error, command_loop, command_loop_1, timer_check):
20424 Comment out unnecessary call to `any_kboard_state' and
20425 `record_single_kboard_state'.
20426 (delete_kboard): Exit single_kboard mode if we have just deleted
20427 that kboard. Use FRAME_KBOARD.
20428 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20429 `fatal_error_signal'.
20430 (record_single_kboard_state): Don't push_kboard if we weren't in
20431 single kboard state. Don't pop_kboard if we popped into any
20432 kboard state.
20433 (push_frame_kboard): Rename to push_kboard.
20434 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20435 (read_avail_input): Read input from all terminals.
20436 (mark_kboards): Also mark Vkeyboard_translate_table.
20437 (kbd_buffer_store_event_hold): Simplify condition.
20438 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20439 (Vkeyboard_translate_table): Move to struct kboard.
20440 (init_kboard): Initialize Vkeyboard_translate_table.
20441 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20442 Vkeyboard_translate_table. Update doc strings. Update docs of
20443 local-function-key-map and function-key-map.
20444
20445 * terminal.c: New file.
20446
20447 * term.c: Include errno.h.
20448 (Vring_bell_function, device_list, initial_device)
20449 (next_device_id, ring_bell, update_begin, update_end)
20450 (set_terminal_window, cursor_to, raw_cursor_to)
20451 (clear_to_end, clear_frame, clear_end_of_line)
20452 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20453 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20454 (syms_of_term): Move their initialization to terminal.c.
20455 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20456 (Ftty_display_color_cells)
20457 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20458 (clear_tty_hooks, set_tty_hooks)
20459 (init_tty, maybe_fatal): New functions.
20460 (Ftty_type): Return nil if terminal is not on a tty instead of
20461 throwing an error. Doc update.
20462 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20463 Doc update. Initialize new subrs and variables.
20464 (delete_tty): Use terminal->deleted.
20465 (tty_set_terminal_modes): Rename from set_terminal_modes.
20466 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20467 (set_scroll_region): Rename to `tty_set_scroll_region'.
20468 (turn_on_insert): Rename to `tty_turn_on_insert'.
20469 (turn_off_insert): Rename to `tty_turn_off_insert'.
20470 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20471 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20472 (toggle_highligh): Rename to `tty_toggle_highlight'.
20473 (background_highlight): Rename to `tty_background_highlight'.
20474 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20475 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20476 (tty_set_scroll_region, tty_background_highlight)
20477 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20478 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20479 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20480 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20481 Add static modifier.
20482 (tty_reset_terminal_modes, tty_set_terminal_window)
20483 (tty_set_scroll_region, tty_background_highlight)
20484 (tty_highlight_if_desired, tty_cursor_to)
20485 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20486 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20487 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20488 renames.
20489
204902007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20491
20492 * keyboard.c: Qrtl is new.
20493 (parse_tool_bar_item): Handle :rtl keyword.
20494 (syms_of_keyboard): Intern :rtl keyword.
20495
20496 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20497
20498 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20499 so no Lisp code is executed.
20500 (file_for_image, find_rtl_image): New functions.
20501 (xg_get_image_for_pixmap): Use file_for_image.
20502 (update_frame_tool_bar): If direction is RTL, use RTL image if
20503 defined. Use Gtk stock images if defined.
20504
205052007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20506
20507 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20508 for nonexistent or zero-width glyph in composition glyph.
20509
205102007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20511
20512 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20513
20514 * xdisp.c (Finvisible_p): New function.
20515 (syms_of_xdisp): defsubr it.
20516
205172007-08-24 Juanma Barranquero <lekktu@gmail.com>
20518
20519 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20520 Doc fixes.
20521
205222007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20523
20524 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20525
205262007-08-24 Martin Rudalics <rudalics@gmx.at>
20527
20528 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20529 whether decoding has modified buffer contents.
20530
205312007-08-24 Jason Rumney <jasonr@gnu.org>
20532
20533 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20534 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20535 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20536 (init_svg_functions) [HAVE_NTGUI]: New function.
20537 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20538 (svg_load_image): Use them.
20539 (svg_load_image) [HAVE_NTGUI]: Implement background.
20540
205412007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20542
20543 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20544 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20545 (LIBX): Remove @RSVG_LIBS@.
20546 (LIBES): Add $(RSVG_LIBS).
20547
20548 * image.c (svg_load_image): Blend with specified background if exists.
20549 Use IMAGE_BACKGROUND. Add Mac OS Support.
20550
20551 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20552 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20553 Remove macros.
20554 [MAC_OSX] (socket_callback): Do nothing.
20555 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20556 ReceiveNextEvent.
20557 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20558 socket_callback.
20559 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20560
205612007-08-22 Glenn Morris <rgm@gnu.org>
20562
20563 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20564
205652007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20566
20567 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20568
20569 * image.c: Add support for SVG images. Some additional comments
20570 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20571 (svg_image_p): New function to test for SVG image.
20572 (svg_load): New function to load SVG image.
20573 (svg_load_image): New function, helper for svg_load.
20574 (Qsvg): New Lisp_object.
20575 (svg_keyword_index): New enum.
20576 (svg_format): New static `image_keyword' struct.
20577 (svg_type): New static `image_type' struct.
20578 (librsvg/rsvg.h): Include it.
20579
205802007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20581
20582 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20583
205842007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20585
20586 * lread.c (Qold_style_backquotes): New var.
20587 (syms_of_lread): Init and staticpro it.
20588 (load_warn_old_style_backquotes): New fun.
20589 (Fload): Use them to warn about old style backquotes.
20590 (end_of_file_error, Fload): Remove unused vars.
20591
20592 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20593
20594 * lread.c (Vold_style_backquotes): New var.
20595 (syms_of_lread): Init and export it to Elisp.
20596 (read1): Set it when we find an old-style (back)quote.
20597
205982007-08-22 Jason Rumney <jasonr@gnu.org>
20599
20600 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20601
206022007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20603
20604 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20605
206062007-08-19 Richard Stallman <rms@gnu.org>
20607
20608 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20609
206102007-08-19 Andreas Schwab <schwab@suse.de>
20611
20612 * alloc.c (pure): Round PURESIZE up.
20613
206142007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20615
20616 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20617 active frame.
20618
206192007-08-16 Richard Stallman <rms@gnu.org>
20620
20621 * eval.c (Fcommandp): Add parens to clarify.
20622
20623 * minibuf.c (Fall_completions): Use enum for type of table.
20624
20625 * emacs.c (USAGE2): Improve text.
20626
206272007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20628
20629 * term.c (tty_default_color_capabilities): Declare static
20630 variables in file scope, to avoid HPUX compiler problem.
20631
206322007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20633
20634 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20635 to gtk_toolbar_insert.
20636
206372007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20638
20639 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20640
20641 * insdel.c (reset_var_on_error): New fun.
20642 (signal_before_change, signal_after_change):
20643 Use it to reset (after|before)-change-functions to nil in case of error.
20644 Bind inhibit-modification-hooks to t.
20645 Don't bind (after|before)-change-functions to nil while they run.
20646
206472007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20648
20649 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20650 filling pixmap with stippled background.
20651
206522007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20653
20654 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20655 Don't use invisible frame as parent window for repositioning.
20656
206572007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20658
20659 * print.c (new_backquote_output): Rename from old_backquote_output.
20660 (print): Inverse its logic (according to its name) so as to match the
20661 behavior of new_backquote_flag in lread.c.
20662
206632007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20664
20665 * gmalloc.c (posix_memalign): New function.
20666
20667 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20668 ActivateControl/DeactivateControl here.
20669 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20670 frame-notice-user-settings is non-nil.
20671 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20672 for kEventParamFMFontStyle.
20673 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20674 mac_pass_command_to_system and mac_pass_control_to_system here.
20675 (XTread_socket): Call ActivateControl/DeactivateControl here.
20676 (XTread_socket) [TARGET_API_MAC_CARBON]:
20677 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20678 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20679 for window repositioning.
20680
206812007-08-08 Glenn Morris <rgm@gnu.org>
20682
20683 * Replace `iff' in doc-strings and comments.
20684
206852007-08-07 Chong Yidong <cyd@stupidchicken.com>
20686
20687 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20688
206892007-08-07 Martin Rudalics <rudalics@gmx.at>
20690
20691 * fileio.c (Finsert_file_contents): Run format-decode and
20692 after_insert_file_functions on entire buffer when REPLACE is
20693 non-nil and inhibit modification_hooks and point_motion_hooks.
20694 For consistency, run after_insert_file_functions iff something
20695 got inserted. Move signal_after_change and update_compositions
20696 after code running after_insert_file_functions. Make sure that
20697 undo_list doesn't record intermediate steps of the decoding process.
20698
206992007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20700
20701 * emacs.c (main)
20702 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20703 Call malloc_enable_thread on interactive startup.
20704
20705 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20706 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20707 [USE_PTHREAD]: Conditionalize with it.
20708 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20709 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20710 New functions.
20711
207122007-08-06 Chong Yidong <cyd@stupidchicken.com>
20713
20714 * xdisp.c (redisplay_window): When restoring original buffer
20715 position, make sure it is still valid.
20716
20717 * image.c (png_load): Ignore png-supplied background color.
20718
207192007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20720
20721 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20722 Use kCFAbsoluteTimeIntervalSince1970.
20723
20724 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20725 New variable.
20726 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20727 event loop should be quit.
20728 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20729 Quit dialog event loop if quit_dialog_event_loop is set.
20730
20731 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20732 (Selection): New typedef. Use instead of ScrapRef.
20733 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20734 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20735 (mac_clear_selection): Rename from clear_scrap.
20736 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20737 scrap_has_target_type. All uses changed.
20738 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20739 (mac_selection_has_target_p): New functions.
20740 (mac_put_selection_value): Rename from put_scrap_string.
20741 (mac_get_selection_value): Rename from get_scrap_string.
20742 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20743 (put_scrap_private_timestamp, scrap_has_target_type)
20744 (get_scrap_private_timestamp): Remove functions.
20745 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20746 (x_own_selection, x_get_local_selection):
20747 Use mac_valid_selection_value_p.
20748 (x_own_selection): Don't use put_scrap_private_timestamp.
20749 Record OWNERSHIP-INFO into Vselection_alist instead.
20750 (x_get_local_selection): Don't check type if request is local.
20751 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20752 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20753
207542007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20755
20756 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20757 add comment explaining why.
20758
207592007-08-03 Richard Stallman <rms@gnu.org>
20760
20761 * fileio.c (Fvisited_file_modtime): Use make_time.
20762
207632007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20764
20765 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20766 build.
20767
207682007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20769
20770 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20771
207722007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20773
20774 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20775
207762007-07-30 Richard Stallman <rms@gnu.org>
20777
20778 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20779
207802007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20781
20782 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20783
207842007-07-28 Nick Roberts <nickrob@snap.net.nz>
20785
20786 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20787 remote default-directory.
20788
20789 * buffer.c (mode-line-format): Update doc string.
20790
207912007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20792
20793 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20794 scroll bar gap.
20795 (x_scroll_bar_create): Set bar->fringe_extended_p.
20796 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20797 on frame edge. Check fringe background extension. Don't clear
20798 extended fringe background area.
20799
20800 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20801 (w32_fill_area): Enclose multiple statements with do ... while (0).
20802
20803 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20804 Extend fringe background to scroll bar gap.
20805 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20806 Set bar->fringe_extended_p.
20807 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20808 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20809 background extension. Don't clear extended fringe background area.
20810
20811 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20812 New member fringe_extended_p.
20813
208142007-07-25 Glenn Morris <rgm@gnu.org>
20815
20816 * Relicense all FSF files to GPLv3 or later.
20817
20818 * COPYING: Switch to GPLv3.
20819
208202007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20821
20822 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20823
20824 * data.c (Finteractive_form): Check for the presence of an
20825 `interactive-form' symbol property more thoroughly.
20826
20827 * data.c (Finteractive_form): Use an `interactive-form' property if
20828 present, analogous to the function-documentation property.
20829
208302007-07-24 Jason Rumney <jasonr@gnu.org>
20831
20832 * w32fns.c (x_real_positions): Get real position from OS instead of
20833 calculating it.
20834
208352007-07-23 Jason Rumney <jasonr@gnu.org>
20836
20837 * filelock.c (current_lock_owner): Allow for @ sign in username.
20838
208392007-07-22 Nick Roberts <nickrob@snap.net.nz>
20840
20841 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20842 remote default-directory.
20843
20844 * buffer.c (mode-line-format): Describe above case in doc string.
20845
208462007-07-20 Eli Zaretskii <eliz@gnu.org>
20847
20848 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20849 Define if not defined.
20850
208512007-07-18 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20854
208552007-07-18 Richard Stallman <rms@gnu.org>
20856
20857 * data.c (Fsetq_default): Doc fix.
20858
20859 * eval.c (Fsetq): Doc fix.
20860
208612007-07-18 Juanma Barranquero <lekktu@gmail.com>
20862
20863 * coding.c (Ffind_operation_coding_system):
20864 * eval.c (For, Fand): Doc fixes.
20865 Reported by Johan Bockgård.
20866
208672007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20868
20869 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20870
20871 * xterm.h: Declare x_ewmh_activate_frame.
20872
20873 * xterm.c (x_ewmh_activate_frame): New function.
20874 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20875
208762007-07-17 Martin Rudalics <rudalics@gmx.at>
20877
20878 * window.c (Fdisplay_buffer): If largest or LRU window is the
20879 only window, split it even if it is not eligible for splitting.
20880 This restores the original behavior broken by the 2007-07-15
20881 change.
20882
208832007-07-17 Glenn Morris <rgm@gnu.org>
20884
20885 * abbrev.c (abbrev_check_chars): New function.
20886 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20887 Call abbrev_check_chars to check abbrev characters are word
20888 constituents. Doc fix.
20889
208902007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20891
20892 * process.c (Fstart_process, Fmake_network_process)
20893 (read_process_output): Fix up last changes.
20894
208952007-07-16 Eli Zaretskii <eliz@gnu.org>
20896
20897 * makefile.w32-in (clean): Don't delete *~.
20898
208992007-07-16 Andreas Schwab <schwab@suse.de>
20900
20901 * window.c (Fdisplay_buffer): Use NILP.
20902 (Fset_window_scroll_bars): Likewise.
20903
209042007-07-15 Martin Rudalics <rudalics@gmx.at>
20905
20906 * window.c (window_min_size_2): New function.
20907 (window_min_size_1, size_window, Fdisplay_buffer)
20908 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20909 windows without mode- or header-lines when window-min-height is
20910 too small.
20911 (size_window): Reset nodelete_p after testing it, following an
20912 earlier note by Kim F. Storm.
20913 (display_buffer): Do not set split_height_threshold to twice the
20914 value of window_min_height to avoid changing the value of a
20915 customizable variable. Rather explicitly check whether the
20916 height of the window that shall be splitted is at least as large
20917 as split_height_threshold.
20918 (Fwindow_full_width_p): New defun.
20919 (syms_of_window): Defsubr it.
20920
20921 * window.h: Add EXFUN for Fwindow_full_width_p.
20922
209232007-07-14 Jason Rumney <jasonr@gnu.org>
20924
20925 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20926
209272007-07-14 Richard Stallman <rms@gnu.org>
20928
20929 * eval.c (maybe_call_debugger): New function.
20930 (find_handler_clause): Use maybe_call_debugger.
20931 Call it when the handler says `debug'.
20932 Eliminate DEBUGGER_VALUE_PTR.
20933 (Fsignal): Eliminate debugger_value.
20934 (Qdebug): New variable.
20935 (syms_of_eval): Initialize it.
20936
209372007-07-14 Juanma Barranquero <lekktu@gmail.com>
20938
20939 * eval.c (Fprogn):
20940 * keyboard.c (Ftrack_mouse):
20941 * print.c (Fwith_output_to_temp_buffer):
20942 * window.c (Fsave_window_excursion): Doc fix.
20943
209442007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20945
20946 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20947
209482007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20949
20950 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20951 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20952 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20953 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20954 Remove unused encoding_carryover.
20955 * process.c: Adjust all functions accordingly.
20956
209572007-07-12 Richard Stallman <rms@gnu.org>
20958
20959 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20960
209612007-07-11 Jason Rumney <jasonr@gnu.org>
20962
20963 * makefile.w32-in (LIBS): Include OLE32.
20964
20965 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20966 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20967
209682007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20969
20970 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20971 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20972 from a Lisp_Object into a bare pointer.
20973 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20974 Adjust the code correspondingly.
20975
20976 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20977
20978 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20979 (term_show_mouse_face): Remove unused var `j'.
20980 (handle_one_term_event): Remove unused vars `i' and `j'.
20981 Don't cast return value of ttyname since it's not necessary.
20982
209832007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20984
20985 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20986 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20987
20988 * fns.c (map_char_table): Use an array of int for `indices' rather than
20989 an array of Lisp_Objects (which are only ever integers anyway).
20990 (Fmap_char_table): Update caller.
20991 * lisp.h: Update prototype.
20992 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20993 * fontset.c (Ffontset_info):
20994 * casetab.c (set_case_table): Update callers.
20995
20996 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20997
20998 * keymap.c (struct accessible_keymaps_data)
20999 (struct where_is_internal_data): New structures.
21000 (accessible_keymaps_1, where_is_internal_1): Use them to change
21001 interface to adhere to the one used by map_keymap.
21002 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21003 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21004
21005 * keymap.h (map_keymap_function_t): More informative prototype.
21006
210072007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21008
21009 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21010 (looking_at_1): Don't change search_regs and last_thing_searched
21011 if `inhibit-changing-match-data' is non-nil.
21012 (string_match_1, search_buffer, set_search_regs): Likewise.
21013 (syms_of_search): Add Lisp level definition for
21014 `inhibit-changing-match-data' and set it to nil.
21015 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21016 start and end of the match, instead of using values in search_regs.
21017
210182007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21019
21020 * minibuf.c (Fcompleting_read): New value `confirm-only'
21021 for `require-match'.
21022
210232007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21024
21025 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21026 part of the 2007-06-27 change to syms_of_fileio.
21027
210282007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21029
21030 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21031 Check WINDOWP before using XWINDOW. Consolidate return statements.
21032
210332007-06-27 Richard Stallman <rms@gnu.org>
21034
21035 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21036
210372007-06-27 Juanma Barranquero <lekktu@gmail.com>
21038
21039 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21040
210412007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21042
21043 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21044 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21045 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21046 (_free_internal, memalign): Use them.
21047 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21048 Initialize to PTHREAD_MUTEX_INITIALIZER.
21049 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21050 (morecore_nolock): Rename from morecore. All uses changed.
21051 Use only nolock versions of internal allocation functions.
21052 (_malloc_internal_nolock, _realloc_internal_nolock)
21053 (_free_internal_nolock): New functions created from
21054 _malloc_internal, _realloc_internal, and _free_internal.
21055 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21056 Copy hook value to automatic variable before its use.
21057 (memalign): Copy hook value to automatic variable before its use.
21058
210592007-06-26 Kenichi Handa <handa@m17n.org>
21060
21061 * coding.c (Ffind_operation_coding_system): Docstring improved.
21062 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21063
210642007-06-25 David Kastrup <dak@gnu.org>
21065
21066 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21067 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21068 cater for additional parameter.
21069
21070 * keymap.h: Adjust number of parameters to `current-active-maps'.
21071
21072 * doc.c (Fsubstitute_command_keys): Adjust call of
21073 `current-active-maps'.
21074
210752007-06-25 David Kastrup <dak@gnu.org>
21076
21077 * callint.c (Fcall_interactively): Make the parsing of interactive
21078 specs somewhat more readable.
21079
210802007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21081
21082 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21083 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21084 if extended background has already been filled.
21085
210862007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21087
21088 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21089 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21090
21091 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21092 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21093 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21094 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21095 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21096 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21097 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21098 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21099 Run timers during dialog popup.
21100 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21101
211022007-06-21 Jason Rumney <jasonr@gnu.org>
21103
21104 * image.c (convert_mono_to_color_image): Swap fore and background.
21105
211062007-06-20 Jason Rumney <jasonr@gnu.org>
21107
21108 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21109 (w32_free_bdf_font): Unmap memory not handle.
21110
211112007-06-20 Sam Steingold <sds@gnu.org>
21112
21113 * gmalloc.c (__morecore): Fix the declaration to comply with the
21114 definition.
21115
211162007-06-20 Juanma Barranquero <lekktu@gmail.com>
21117
21118 * w32term.c (w32_delete_display): Remove leftover declaration.
21119 (w32_define_cursor, w32_initialize): Make static.
21120
21121 * w32.c (_wsa_errlist): Fix typo in error message.
21122 (init_environment): Ignore any environment variable from the
21123 registry having a null value.
21124
211252007-06-20 Glenn Morris <rgm@gnu.org>
21126
21127 * Makefile.in (LIBGIF): Default to -lgif.
21128
211292007-06-17 Jason Rumney <jasonr@gnu.org>
21130
21131 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21132 unicode strings.
21133
211342007-06-16 Juanma Barranquero <lekktu@gmail.com>
21135
21136 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21137 Fix typo in docstring.
21138
211392007-06-16 Eli Zaretskii <eliz@gnu.org>
21140
21141 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21142 and their keybindings.
21143
211442007-06-15 Chong Yidong <cyd@stupidchicken.com>
21145
21146 * composite.c (update_compositions): Fix last fix.
21147
211482007-06-14 Jason Rumney <jasonr@gnu.org>
21149
21150 * w32.c (get_process_times_fn): New function pointer.
21151 (globals_of_w32): Intialize it if present in kernel32.dll.
21152 (w32_get_internal_run_time): New function.
21153
21154 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21155
211562007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21157
21158 * composite.c (update_compositions): Check the validness of
21159 compositions.
21160
211612007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21162
21163 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21164 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21165
21166 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21167 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21168
21169 * macgui.h (USE_MAC_TOOLBAR): New define.
21170
21171 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21172 Return immediately unless popup is activated.
21173
21174 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21175 background to scroll bar gap.
21176 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21177 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21178 scroll bars on frame edge. Check fringe background extension.
21179 Don't clear extended fringe background area.
21180 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21181 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21182 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21183 [USE_MAC_TOOLBAR]: New macros.
21184 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21185 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21186 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21187 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21188 [USE_MAC_TOOLBAR]: New functions.
21189 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21190 manually if previous repositioning has failed.
21191 (mac_handle_keyboard_event): Use precomputed event kind.
21192 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21193 as tool bar item click. Handle mouse movement over tool bar items.
21194
21195 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21196 toolbar_win_gravity.
21197 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21198 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21199 Add externs.
21200
21201 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21202 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21203
212042007-06-14 Chong Yidong <cyd@stupidchicken.com>
21205
21206 * image.c (search_image_cache): Remove unused variable.
21207
212082007-06-13 Chong Yidong <cyd@stupidchicken.com>
21209
21210 * xfns.c, xmenu.c: Link to xaw3d if available.
21211
212122007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21213
21214 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21215 frame_foreground and frame_background.
21216
21217 * image.c (lookup_image): Save frame foreground and background colors.
21218 (search_image_cache): Check if saved and current frame colors match.
21219
212202007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21221
21222 * regex.c (regex_compile): Remove the `regnum' counter.
21223 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21224
212252007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21226
21227 * term.c: Include intervals.h to declare Fget_text_property.
21228
212292007-06-10 Jason Rumney <jasonr@gnu.org>
21230
21231 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21232
212332007-06-08 Juanma Barranquero <lekktu@gmail.com>
21234
21235 * callint.c (Fcall_interactively):
21236 * editfns.c (Fdelete_and_extract_region):
21237 * fileio.c (Fread_file_name):
21238 * fns.c (Fmapconcat):
21239 * keyboard.c (cmd_error_internal):
21240 * keymap.c (Fkey_description):
21241 * lread.c (openp):
21242 * minibuf.c (read_minibuf):
21243 * search.c (wordify):
21244 * sunfns.c (sel_read):
21245 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21246 * xfns.c (x_default_scroll_bar_color_parameter):
21247 * xmenu.c (menu_help_callback):
21248 * xselect.c (Fx_get_atom_name):
21249 * xterm.c (x_term_init): Use empty_unibyte_string.
21250
212512007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21252
21253 * alloc.c (init_strings): Initialize canonical empty strings.
21254 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21255 canonical empty string when the requested size is 0.
21256
21257 * emacs.c (empty_unibyte_string): Rename from empty_string.
21258 (empty_multibyte_string): New canonical empty string.
21259 (syms_of_emacs): Don't initialize empty_string.
21260
21261 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21262 string, if appropriate.
21263 (empty_unibyte_string, empty_multibyte_string): New externs.
21264 (empty_string): Remove extern.
21265
21266 * lread.c (syms_of_lread): Use empty_unibyte_string.
21267
212682007-06-07 Jason Rumney <jasonr@gnu.org>
21269
21270 * s/ms-w32.h: Don't define HAVE_TZNAME.
21271
21272 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21273
212742007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21275
21276 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21277
21278 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21279 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21280
21281 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21282 Don't call next handler.
21283 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21284 Remove argument. Install handler to application.
21285 (set_frame_menubar): Don't change deep_p.
21286 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21287 FRAME_OUTER_TO_INNER_DIFF_Y.
21288 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21289 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21290 [HAVE_DIALOGS]: New macros.
21291 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21292 Use them.
21293 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21294
21295 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21296 init_service_handler. All callers changed. Return OSStatus value.
21297
21298 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21299 All callers changed so as not to call SetPortWindowPort.
21300 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21301 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21302 mac_draw_string_common.
21303 (mac_draw_image_string_qd): Likewise.
21304 (mac_draw_string_common): Use them. Add INLINE.
21305 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21306 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21307 GetGlobalMouse.
21308 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21309 and FRAME_OUTER_TO_INNER_DIFF_Y.
21310 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21311 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21312 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21313 repositioning window to mac_handle_window_event.
21314 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21315 saving window location to mac_handle_window_event
21316 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21317 (install_menu_target_item_handler): Remove argument in extern.
21318 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21319 Also accept command events.
21320 (do_keystroke): New function created from XTread_socket.
21321 (init_command_handler): Remove functions.
21322 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21323 and save window location by kEventWindowShowing and kEventWindowHiding
21324 handlers here. Don't call next handler for window state change and
21325 focus events.
21326 (mac_handle_application_event, mac_handle_keyboard_event)
21327 [TARGET_API_MAC_CARBON]: New functions.
21328 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21329 kEventWindowShowing and kEventWindowHiding events. Move installation
21330 of mouse, font, text input and menu target item handlers to
21331 install_application_handler.
21332 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21333 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21334 New function.
21335 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21336 Register it.
21337 (XTread_socket) [TARGET_API_MAC_CARBON]:
21338 Consolidate SendEventToEventTarget calls.
21339 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21340 Move application activation handler to mac_handle_application_event.
21341 Move keyboard handler to mac_handle_keyboard_event.
21342 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21343 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21344 init_command_handler. Call install_application_handler.
21345
21346 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21347 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21348
213492007-06-07 Glenn Morris <rgm@gnu.org>
21350
21351 * emacs.c (main): Use `emacs-copyright' in --version output.
21352
213532007-06-06 Chong Yidong <cyd@stupidchicken.com>
21354
21355 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21356
213572007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21358
21359 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21360
21361 * macgui.h: Replace WindowPtr with WindowRef.
21362
21363 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21364 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21365 Replace ControlHandle with ControlRef.
21366 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21367
21368 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21369 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21370 Replace ControlHandle with ControlRef.
21371 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21372 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21373
21374 * macterm.h (struct scroll_bar): Rename member control_handle_low
21375 and control_handle_high to control_ref_low and control_ref_high.
21376 All uses changed.
21377 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21378 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21379 respectively. All uses changed.
21380 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21381 (install_window_handler, remove_window_handler): Replace WindowPtr
21382 with WindowRef in externs.
21383
213842007-06-05 Juanma Barranquero <lekktu@gmail.com>
21385
21386 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21387
213882007-06-03 Nick Roberts <nickrob@snap.net.nz>
21389
21390 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21391
21392 * frame.c (Fmouse_position, Fmouse_pixel_position):
21393 Condition on HAVE_GPM too.
21394
21395 * term.c (term_mouse_highlight): Remove unused variables.
21396 (Fterm_open_connection): Set gpm_zerobased to 1.
21397 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21398 Use zero based co-ordinates.
21399 (handle_one_term_event): Report a drag as mouse movement too.
21400
21401 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21402
214032007-06-03 Chong Yidong <cyd@stupidchicken.com>
21404
21405 * image.c (search_image_cache): New function. Require background
21406 color match if background color is unspecified in the image spec.
21407 (uncache_image, lookup_image): Use it.
21408
214092007-06-01 Juanma Barranquero <lekktu@gmail.com>
21410
21411 * window.c (Fshrink_window): Reflow docstring.
21412
214132007-06-02 Chong Yidong <cyd@stupidchicken.com>
21414
21415 * Version 22.1 released.
21416
214172007-06-01 Richard Stallman <rms@gnu.org>
21418
21419 * xfns.c (x_encode_text): Add GCPRO.
21420
214212007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21422
21423 * xfns.c (x_set_name_internal): Save encoded name before
21424 x_encode_text in case string data is relocated.
21425
214262007-05-31 Richard Stallman <rms@gnu.org>
21427
21428 * buffer.c (syms_of_buffer): Doc fix.
21429
214302007-05-30 Nick Roberts <nickrob@snap.net.nz>
21431
21432 * sysdep.c (init_sys_modes): Add rather than replace with
21433 O_NONBLOCK.
21434
21435 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21436 term_mouse_moveto.
21437
21438 * termhooks.h (term_mouse_moveto): New extern.
21439
21440 * term.c (mouse_face_window): Rename...
21441 (Qmouse_face_window): ...to this.
21442 (term_show_mouse_face, term_clear_mouse_face)
21443 (term_mouse_highlight): Use Qmouse_face_window.
21444 (term_mouse_moveto): New function.
21445 (term_mouse_position): Make it work.
21446 (syms_of_term): Uncomment assignment to mouse_position_hook.
21447 Staticpro Qmouse_face_window.
21448
214492007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21450
21451 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21452 around current_column call.
21453
214542007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21455
21456 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21457 * xdisp.c (next_element_from_buffer):
21458 * window.c (delete_window):
21459 * term.c (term_mouse_highlight):
21460 * msdos.c (getdefdir):
21461 * macterm.c (mac_create_bitmap_from_bitmap_data)
21462 (init_font_name_table):
21463 * fns.c (Fsxhash):
21464 * data.c (Fmake_local_variable):
21465 * ccl.c (ccl_driver): Likewise.
21466
214672007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21468
21469 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21470 Call mac_wakeup_from_rne on window size change.
21471
214722007-05-25 Chong Yidong <cyd@stupidchicken.com>
21473
21474 * image.c (uncache_image): Fix typo.
21475
214762007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21477
21478 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21479
214802007-05-22 Richard Stallman <rms@gnu.org>
21481
21482 * xterm.c (x_connection_closed): Remove NO_RETURN.
21483
214842007-05-22 Martin Rudalics <rudalics@gmx.at>
21485
21486 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21487
214882007-05-21 Chong Yidong <cyd@stupidchicken.com>
21489
21490 * image.c (uncache_image): New function.
21491 (Fimage_refresh): New function.
21492
214932007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21494
21495 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21496
214972007-05-20 Nick Roberts <nickrob@snap.net.nz>
21498
21499 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21500 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21501
215022007-05-20 Nick Roberts <nickrob@snap.net.nz>
21503
21504 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21505 conditional on [HAVE_GPM_H].
21506
215072007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21508
21509 * syntax.c (skip_chars): Update syntax-table only after we checked that
21510 the new location is valid.
21511
215122007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21513
21514 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21515 mac_get_window_bounds.
21516
215172007-05-20 Nick Roberts <nickrob@snap.net.nz>
21518
21519 * Makefile.in (LIBGPM): Allow it to be set from configure.
21520 If set then link Emacs with it.
21521
21522 * config.in: Regenerate.
21523
21524 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21525 New externs.
21526
21527 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21528 Include gpm.h.
21529 (handle_one_term_event, term_gpm): New externs.
21530
21531 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21532 and allow it to be interrupted by SIGIO.
21533
21534 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21535 (wait_reading_process_output): Wait on gpm_fd too.
21536 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21537 (add_gpm_wait_descriptor_called_flag): New variable.
21538 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21539
21540 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21541 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21542 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21543 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21544 (make_lispy_event): Add case GPM_CLICK_EVENT.
21545 (read_avail_input): Handle mouse input.
21546
21547 * term.c (write_glyphs_with_face): New function.
21548 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21549 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21550 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21551 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21552 (last_mouse_x, last_mouse_y): New variables.
21553 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21554 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21555 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21556 (Fterm_close_connection): New functions.
21557 (term_init): Initialise mouse_face_window.
21558
215592007-05-19 Chong Yidong <cyd@stupidchicken.com>
21560
21561 * xdisp.c (redisplay_window): If first window line is a
21562 continuation line, recompute the new window start instead of
21563 recentering.
21564
215652007-05-18 Glenn Morris <rgm@gnu.org>
21566
21567 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21568 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21569
215702007-05-17 Glenn Morris <rgm@gnu.org>
21571
21572 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21573
215742007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21575
21576 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21577 dead key repeat and up events.
21578
215792007-05-14 Chong Yidong <cyd@stupidchicken.com>
21580
21581 * image.c (pbm_load): Check image size for monochrome pbm.
21582
215832007-05-13 Chong Yidong <cyd@stupidchicken.com>
21584
21585 * xterm.c (XTread_socket): Revert last change.
21586
215872007-05-12 Chong Yidong <cyd@stupidchicken.com>
21588
21589 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21590
21591 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21592
215932007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21594
21595 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21596 mixup (YAILOM).
21597
215982007-05-07 Andreas Schwab <schwab@suse.de>
21599
21600 * keymap.c (Flookup_key): Fix typo in last change.
21601
216022007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21603
21604 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21605 mapping for unibyte strings.
21606
216072007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21608
21609 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21610 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21611
216122007-04-29 Richard Stallman <rms@gnu.org>
21613
21614 * insdel.c (replace_range): For undo, record insertion first.
21615
216162007-04-29 Andreas Schwab <schwab@suse.de>
21617
21618 * lisp.h (VECSIZE): Use OFFSETOF.
21619
216202007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21621
21622 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21623 disabled lines.
21624
216252007-04-28 Richard Stallman <rms@gnu.org>
21626
21627 * lread.c (read_escape): In a string, \s is always space.
21628
216292007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21630
21631 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21632
21633 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21634 submenu for menu bar items.
21635
21636See ChangeLog.10 for earlier changes.
21637
21638;; Local Variables:
21639;; coding: utf-8
21640;; add-log-time-zone-rule: t
aac0c6e3
MR
21641;; End:
21642
e3eb1dae 21643 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21644
21645 This file is part of GNU Emacs.
21646
21647 GNU Emacs is free software: you can redistribute it and/or modify
21648 it under the terms of the GNU General Public License as published by
21649 the Free Software Foundation, either version 3 of the License, or
21650 (at your option) any later version.
21651
21652 GNU Emacs is distributed in the hope that it will be useful,
21653 but WITHOUT ANY WARRANTY; without even the implied warranty of
21654 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21655 GNU General Public License for more details.
21656
21657 You should have received a copy of the GNU General Public License
21658 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21659
21660;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40