]> code.delx.au - gnu-emacs/blob - src/ChangeLog
keyboard.c (read_char): Return after executing from special map.
[gnu-emacs] / src / ChangeLog
1 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2
3 * keyboard.c (read_char): Return after executing from special map.
4
5 2010-01-12 Glenn Morris <rgm@gnu.org>
6
7 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
8 bug-gnu-emacs rather than emacs-pretest-bug.
9
10 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
11
12 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
13 initializing the Lisp variables that depend on them.
14
15 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16
17 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
18 Clear areas that will not be updated after change of menu bar lines.
19 Clear the menu bar window's current matrix when the window gets empty.
20
21 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
22
23 * intervals.h, textprop.c (extend_property_ranges): Return value
24 and args changed. Discard properties that begin at or after the
25 new end (Bug#5306).
26
27 * editfns.c (Fformat): Caller changed.
28
29 * nsterm.m (ns_set_default_prefs): Delete function.
30 (syms_of_nsterm): Initialize ns_command_modifier,
31 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
32 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
33
34 * xdisp.c (pos_visible_p): Check for invisible text at the correct
35 position (Bug#4040).
36
37 2010-01-09 Eli Zaretskii <eliz@gnu.org>
38
39 * editfns.c (Ffloat_time): Doc fix.
40
41 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
42
43 * xfns.c (Fx_create_frame): Don't create frame larger than display
44 by default bug#3643.
45
46 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
47
48 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
49 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
50 windows above internal border.
51
52 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
53 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
54 windows above internal border.
55
56 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
57 tool bar windows specially.
58
59 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
60
61 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
62 specially.
63 (XTflash): Take account of menu bar height.
64
65 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
66 specially.
67
68 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
69
70 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
71 also be true before we can return early (bug #5339).
72
73 2010-01-06 David Reitter <david.reitter@gmail.com>
74
75 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
76 (Fns_display_usable_bounds): Rewrite, computing bounds properly
77 (Bug#3233).
78
79 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
80
81 * font.c (font_open_entity): Enable chache and call cached_font_ok
82 for the driver if defined.
83 (QCuser_spec): New symbol.
84 (font_spec_from_name): Save name as user-spec.
85 (font_load_for_lface): Keep user-spec instead of name.
86 (font_open_by_name): Save name as user-spec.
87 (syms_of_font): Initialize QCuser_spec.
88 (font_clear_prop): Clear name if it exists in font (bug#5157).
89
90 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
91 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
92 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
93
94 * font.h (struct font_driver): Add cached_font_ok.
95
96 * xterm.c (x_clear_frame): Queue draw for scroll bars.
97
98 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
99
100 * xterm.c (x_new_font): Move code for setting rows/cols before
101 resizing ...
102 (x_set_window_size): ... to here. bug #2568.
103
104 * gtkutil.c (xg_clear_under_internal_border): New function.
105 (xg_frame_resized, xg_frame_set_char_size): Call
106 xg_clear_under_internal_border.
107 (xg_update_scrollbar_pos): Clear under old scroll bar position.
108
109 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
110
111 * keyboard.c (read_key_sequence): Catch keyboard switch after
112 making a new tty frame (Bug#5095).
113
114 2010-01-05 Kenichi Handa <handa@m17n.org>
115
116 * fontset.c (fontset_find_font): Fix getting the frame pointer.
117
118 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
119
120 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
121 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
122 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
123
124 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
125
126 * dbusbind.c (xd_add_watch): Improve debug message.
127 (xd_remove_watch): Improve debug message. If DATA is the session
128 bus, unset D-Bus session environment.
129 (Fdbus_init_bus): Pass the bus as argument to
130 dbus_connection_set_watch_functions. (Bug#5283)
131
132 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
133
134 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
135
136 * lread.c (syms_of_lread): Make it clearer that these are the
137 names of loaded files (Bug#5068).
138
139 * eval.c (run_hook_with_args): Handle the case where the global
140 value has the obsolete single-function form (Bug#5026).
141
142 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
143
144 * minibuf.c (Fall_completions): Minor optimization.
145
146 2009-12-26 Eli Zaretskii <eliz@gnu.org>
147
148 * .gdbinit (pgx): Fix display of composite glyphs.
149 Display cmp.from and cmp.to as well.
150 (pitx): Fix last change.
151
152 2009-12-25 Kenichi Handa <handa@m17n.org>
153
154 * composite.h (composition_adjust_point): Update prototype.
155
156 * composite.c (composition_reseat_it): Don't make a composition
157 spanning over point.
158 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
159 composable characters.
160 (composition_adjust_point): New arg NEW_PT. Callers changed.
161
162 * keyboard.c (command_loop_1): Force redisplay if the last point
163 was within a composition.
164 (adjust_point_for_property): Don't adjust point for automatic
165 composition when called after buffer modification.
166
167 2009-12-19 Eli Zaretskii <eliz@gnu.org>
168
169 * .gdbinit (pitx): Don't use enum names, use their values.
170 Remove reference to non-existing value GET_FROM_COMPOSITION.
171 (pgx): Don't use enum names, use their values.
172 (pitmethod): New helper command.
173 (pitx): Use it to display iteration method.
174 (pgrowit): New command.
175
176 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
177
178 Update dependencies in Makefile.in.
179
180 * Makefile.in (alloc.o): Depend on termhooks.h.
181 (atimer.o): Depend on blockinput.h.
182 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
183 and frame.h.
184 (callint.o): Depend on systime.h, coding.h, and composite.h.
185 (callproc.o): Depend on buffer.h.
186 (casefiddle.o): Don't depend on charset.h.
187 (casetab.o): Depend on character.h.
188 (ccl.o): Depend on composite.h.
189 (chartab.o): Depend on ccl.h.
190 (cm.o): Depend on dispextern.h.
191 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
192 (coding.o): Don't depend on $(INTERVALS_H).
193 (composite.o): Don't depend on dispextern.h explicitly (it's in
194 $(INTERVALS_H)). Depend on ccl.h.
195 (data.o): Depend on systime.h, coding.h, composite.h,
196 dispextern.h, font.h, and ccl.h.
197 (dired.o): Depend on composite.h.
198 (dispnew.o): Depend on coding.h. Don't depend explicitly on
199 composite.h (it's in $(INTERVALS_H)).
200 (doc.o): Depend on systime.h, coding.h, and composite.h.
201 (editfns.o): Don't depend explicitly on dispextern.h.
202 (emacs.o): Depend on frame.h and coding.h.
203 (eval.o): Depend on coding.h, composite.h, and xterm.h.
204 (fileio.o): Depend on frame.h and commands.h. Don't depend
205 explicitly on dispextern.h.
206 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
207 composite.h.
208 (fns.o): Don't depend on termhooks.h.
209 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
210 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
211 coding.h, $(INTERVALS_H), window.h, xterm.h.
212 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
213 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
214 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
215 fontset.h, ccl.h, and ftfont.h.
216 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
217 (gtkutil.o): Depend on dispextern.h and composite.h.
218 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
219 termhooks.h, and ccl.h.
220 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
221 (intervals.o): Depend on systime.h and coding.h.
222 (keyboard.o): Depend on composite.h and coding.h.
223 (keymap.o): Depend on coding.h and frame.h.
224 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
225 (macros.o): Depend on systime.h, coding.h, and composite.h.
226 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
227 and atimer.h.
228 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
229 dispextern.h explicitly.
230 (print.o): Depend on termhooks.h, coding.h, and ccl.h. Don't
231 depend explicitly on dispextern.h and composite.h.
232 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
233 (regex.o): Don't depend on charset.h.
234 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
235 (search.o): Don't depend explicitly on composite.h.
236 (sound.o): Depend on atimer.h and systime.h.
237 (syntax.o): Don't depend explicitly on composite.h.
238 (sysdep.o): Depend on coding.h and composite.h.
239 (term.o): Depend on xterm.h and buffer.h.
240 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
241 (textprop.o): Don't depend on dispextern.h explicitly.
242 (undo.o): Depend on dispextern.h.
243 (window.o): Depend on coding.h and termhooks.h. Don't depend on
244 dispextern.h and composite.h explicitly.
245 (xdisp.o): Depend on ccl.h.
246 (xfaces.o): Depend on coding.h and ccl.h.
247 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
248 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
249 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
250 ftfont.h.
251 (xgselect.o): New dependency.
252 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
253 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
254 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
255 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
256 (xsmfns.o): Depend on frame.h and dispextern.h.
257 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
258 sysselect.h.
259
260 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
261
262 * font.c (Fclear_font_cache): Pass correct cache argument to
263 font_clear_cache.
264
265 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
266
267 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
268 twice.
269
270 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
271
272 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
273 calling file-remote-p. Reported by Jim Meyering.
274
275 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
276
277 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
278 avoid compiler warnings. (Bug #5217)
279
280 2009-12-14 Kenichi Handa <handa@m17n.org>
281
282 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
283 in 8-bit encoding.
284
285 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
286
287 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
288 tooltip windows.
289
290 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
291
292 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
293 Xatom_net_window_type.
294
295 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
296 Xatom_net_window_type.
297
298 * xterm.c (my_log_handler): New function.
299 (x_term_init): Set my_log_handler as log handler during gtk_init
300 so we can filter out buggy messages. (Bug #5120).
301
302 * xterm.c (xg_scroll_callback): Parameter list changed,
303 use parameter GtkScrollType to determine scroll/line/page.
304 Only allow dragging if a button < 4 is grabbed (bug #5177).
305 (xg_end_scroll_callback): New function.
306 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
307 xg_create_scroll_bar.
308
309 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
310 (scroll_end_callback): Remove.
311 (xg_create_scroll_bar): Add parameter end_callback, bind it to
312 button-release-event. Replace value-changed event with change-value,
313 bug #5177,
314 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
315 bug #5177.
316
317 * gtkutil.h (XG_LAST_SB_DATA): Remove.
318 (xg_create_scroll_bar): Add GCallback end_callback.
319
320 * xftfont.c (QClcdfilter): New variable.
321 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
322 (syms_of_xftfont): Initialize QClcdfilter.
323
324 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
325
326 * xsettings.c (struct xsettings): Add member seen.
327 (parse_xft_settings): Update member seen with what we have read.
328 Return non-zero if Xft-settings have been parsed, 0 otherwise.
329 (apply_xft_settings): Only update Xft settings with what member seen
330 indicates as new.
331
332 2009-12-12 Eli Zaretskii <eliz@gnu.org>
333
334 * dispextern.h (struct text_pos): Use EMACS_INT;
335 (struct glyph): Use EMACS_INT for charpos.
336 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
337 region_beg_charpos, region_end_charpos,
338 redisplay_end_trigger_charpos, and also for
339 iterator_stack_entry.end_charpos and
340 iterator_stack_entry.stop_charpos.
341
342 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
343
344 * gtkutil.c (scroll_end_callback): New function (bug #5177).
345 (xg_create_scroll_bar): Call scroll_end_callback on button release
346 event (bug #5177).
347 (xg_event_is_for_scrollbar): != replaced with ==.
348
349 2009-12-12 Kenichi Handa <handa@m17n.org>
350
351 * ftfont.c (struct ftfont_info): New member matrix.
352 (ftfont_open): Setup xftfont_info->matrix.
353 (MFLTFontFT): New member matrix.
354 (FLOOR, CEIL, ROUND): New macros.
355 (ftfont_get_metrics): Handle matrix transformation.
356 (ftfont_shape_by_flt): New arg matrix. Callers changed.
357
358 * xftfont.c (struct xftfont_info): New member matrix.
359 (xftfont_open): Setup xftfont_info->matrix.
360
361 2009-12-10 Kenichi Handa <handa@m17n.org>
362
363 * xdisp.c (append_space_for_newline): Consider face-remapping.
364
365 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
366
367 * xsettings.c: Include "keyboard.h".
368
369 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
370
371 Fix implicit function declarations.
372 * cmds.c: Include "frame.h".
373 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
374 * frame.h: Move declaration of delete_frame outside of
375 HAVE_WINDOW_SYSTEM.
376
377 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
378
379 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
380
381 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
382 GTK builds.
383
384 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
385
386 * unexelf.c (unexec): Don't search for .data twice.
387
388 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
389
390 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
391 if push failed.
392 (handle_line_prefix): Set avoid_cursor_p here. Check return value
393 of push_display_prop (Bug#5000).
394
395 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
396 value of font_list_entities (Bug#5085).
397
398 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
399
400 Fix `string-to-number' to deal consistently with integers and floats.
401 * lread.c (isfloat_string): New argument ignore_trailing to accept all
402 trailing characters, not just whitespace.
403 (read1): Pass new arg 0 to keep old behavior.
404 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
405 trailing chars, as it is already done for integers. Doc fixes.
406 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
407
408 2009-12-04 Eli Zaretskii <eliz@gnu.org>
409
410 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
411 unused enumeration value.
412
413 2009-12-03 Eli Zaretskii <eliz@gnu.org>
414
415 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
416
417 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
418
419 * process.c (Fmake_network_process): Fix up the tests for
420 "connectionless socket", so they DTRT for seqpacket sockets as well.
421
422 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
423
424 * process.c (Qseqpacket): New symbol.
425 (HAVE_SEQPACKET): New macro.
426 (Fmake_network_process): Accept new :type `seqpacket'.
427 (init_process): Add `seqpacket' feature when applicable.
428 (syms_of_process): Initialize Qseqpacket.
429
430 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
431
432 * font.c (font_load_for_lface, font_open_by_name): Don't store name
433 if entity is Qnil.
434
435 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
436
437 * print.c (print_preprocess): Preprocess the key_and_value table of
438 hashtables, even tho they're "hidden" (bug#5082).
439
440 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
441
442 * frame.c (frame_make_pointer_invisible)
443 (frame_make_pointer_visible): Declare f before statements.
444
445 2009-11-28 Eli Zaretskii <eliz@gnu.org>
446
447 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
448 omitted dependencies on lisp.h.
449
450 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
451
452 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
453 is NULL.
454
455 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
456
457 * frame.c (frame_make_pointer_invisible)
458 (frame_make_pointer_visible): Just return if there isn't any selected
459 frame.
460
461 * search.c (simple_search): Remove warning by making *p const.
462
463 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
464
465 * xdisp.c (power_letter): Remove duplicate const.
466
467 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
468
469 * term.c (delete_tty): Remove check for last terminal (bug#4970).
470
471 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
472 defaults (bug #5025).
473
474 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
475
476 * insdel.c (adjust_markers_for_delete): Move it in the
477 right direction! (bug#4803)
478
479 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
480
481 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
482
483 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
484
485 2009-11-24 Glenn Morris <rgm@gnu.org>
486
487 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
488
489 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
490
491 * Makefile.in: Must create deps for ecrt0.o in its rule.
492
493 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
494 because that is what Gtk+ font dialog understands.
495
496 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
497 of Fcopy_sequence.
498 (font_open_by_name): Put name given into QCname for font-object returned.
499
500 * frame.c (x_set_font): Save original font name as frame parameter
501 font-parameter.
502
503 * xsettings.c (set_default_xft_settings): New function.
504 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
505 is found.
506
507 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
508
509 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
510 searching backwards through multibyte buffer.
511
512 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
513
514 * xterm.c: #include xgselect.h.
515 (x_initialize): Call xgselect_initialize.
516
517 * xsettings.c (something_changedCB): C++ comments => C comments.
518 (init_gconf): Do not deal with any GLib file descriptors, xg_select
519 does that now.
520
521 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
522 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
523 (scroll_bar_button_cb): Remove.
524 (create_menus): C++ comments => C comments. Don't bind grab-notify
525 event.
526 (xg_create_scroll_bar): Don't bind button-press-event and
527 button-release-event.
528
529 * process.c: Include xgselect.h if defined (USE_GTK) ||
530 defined (HAVE_GCONF).
531 (wait_reading_process_output): Call xg_select for the same condition.
532
533 * xgselect.c (xg_select): New function to better integrate with
534 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
535
536 * xgselect.h: New file, declare xg_select, xgselect_initialize.
537
538 * Makefile.in (XOBJ): Add xgselect.o.
539
540 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
541
542 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
543 ignored second argument. All callers changed.
544 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
545 (RE_STRING_CHAR_AND_LENGTH): Likewise.
546 * xdisp.c (string_char_and_length): Likewise.
547
548 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
549
550 * xterm.c (x_new_font):
551 * print.c (print_object):
552 * cmds.c (Fself_insert_command): Move declarations before statements.
553
554 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
555
556 * s/cygwin.h: Remove unneeded linker flags.
557
558 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
559
560 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
561
562 * xsettings.h: Declare xsettings_get_system_font.
563
564 * xsettings.c (xsettings_get_system_font): New function.
565 (init_gconf): No use initiating gconf unless we have Xft also.
566 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
567 HAVE_GCONF.
568
569 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
570 add a blank entry so it doesn't collapse into nothing.
571
572 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
573
574 * lread.c (Funintern): Comment out last change.
575
576 2009-11-19 Richard Stallman <rms@gnu.org>
577
578 * lread.c (Funintern): Error if symbol is t or nil.
579
580 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
581
582 * insdel.c (make_gap_larger): Don't make as many assumptions about the
583 representation of Lisp integers.
584 Reported by MJ Chan <mjchan.inbox@gmail.com>.
585
586 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
587
588 * lisp.h: Remove declaration of Ffont_get_system_font.
589 * xfns.c: Move include of "xsettings.h".
590 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
591
592 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
593
594 * xsettings.c (something_changedCB, Ffont_get_system_font):
595 Check use_system_font.
596 (syms_of_xsettings): DEFVAR font-use-system-font.
597
598 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
599
600 * xfns.c (x_default_font_parameter): Remove dead assignment.
601
602 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
603
604 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
605
606 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
607 not have FC_LCD_*. #define them if not there.
608
609 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
610
611 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
612
613 * xterm.c (handle_one_xevent): Call xft_settings_event for
614 ClientMessage, PropertyNotify and DestroyNotify.
615 (x_term_init): If we have XFT, get DPI from Xft.dpi.
616 Call xsettings_initialize.
617
618 * xftfont.c (xftfont_fix_match): New function.
619 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
620 Call xftfont_fix_match after XftFontMatch.
621
622 * xfont.c (xfont_driver): Initialize all members.
623
624 * xfns.c (x_default_font_parameter):
625 Try font from Ffont_get_system_font.
626 Do not get font from x_default_parameter if we got one from
627 Ffont_get_system_font.
628 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
629
630 * w32font.c (w32font_driver): Initialize all members.
631
632 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
633
634 * lisp.h: Declare syms_of_xsettings.
635
636 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
637 Handle CONFIG_CHANGED_EVENT.
638
639 * ftfont.c (ftfont_filter_properties): New function.
640
641 * frame.c (x_set_font): Remove unused variable lval.
642
643 * font.h (struct font_driver): Add filter_properties.
644
645 * font.c (font_put_extra): Don't return if val is nil, it means
646 boolean option is off.
647 (font_parse_fcname): Collect all extra properties in extra_props
648 and call filter_properties for all drivers with extra_props and
649 font as parameter.
650 (font_open_entity): Do not use cache, it does not pick up new
651 fontconfig settings like hinting.
652 (font_load_for_lface): If spec had a name in it, store it in entity.
653
654 * emacs.c (main): Call syms_of_xsettings
655
656 * config.in: HAVE_GCONF is new.
657
658 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
659 xsettings.o is new.
660
661 2009-11-17 Kenichi Handa <handa@m17n.org>
662
663 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
664 back to the default font in case that no suitable font is found.
665
666 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
667
668 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
669 Suggested by Chad Brown <yandros@mit.edu>.
670 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
671
672 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
673
674 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
675
676 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
677
678 * Makefile.in: Ignore errors from mkdir when creating deps directory.
679
680 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
681
682 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
683 has a parent.
684
685 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
686 dependency files in deps/. Include those files into Makefile.
687
688 * config.in: Generated (AUTO_DEPEND).
689
690 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
691
692 * dbusbind.c (Vdbus_registered_objects_table): Rename from
693 Vdbus_registered_functions_table, because it contains also
694 properties. Fix docstring.
695 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
696
697 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
698
699 * alloc.c (mark_object): Don't reprocess marked strings.
700 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
701 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
702
703 2009-11-13 Kenichi Handa <handa@m17n.org>
704
705 * category.c (word_boundary_p): Adjust for the change of the
706 semantics of Vword_combining_categories.
707 (Vword_combining_categories): Describe the slight change of the
708 semantics.
709
710 2009-11-13 Eli Zaretskii <eliz@gnu.org>
711
712 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
713
714 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
715
716 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
717
718 * xdisp.c (syms_of_xdisp): Fix typo in last change.
719
720 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
721
722 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
723
724 2009-11-11 David Reitter <david.reitter@gmail.com>
725
726 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
727 variables to fix 2009-11-09 change.
728
729 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
730
731 * process.c (ifflag_def): Make flag_sym constant.
732 (Fnetwork_interface_info): Use a constant pointer.
733 (ifflag_table):
734 * xfns.c (cursor_bits):
735 * xdisp.c (power_letter):
736 * termcap.c (speeds, esctab):
737 * sysdep.c (baud_convert):
738 * keyboard.c (lispy_accent_codes, modifier_names):
739 * image.c (xbm_format, xpm_format, pbm_format, png_format)
740 (jpeg_format, tiff_format, gif_format, svg_format)
741 (interlace_start, interlace_increment, gs_format):
742 * gtkutil.c (separator_names):
743 * fringe.c (swap_nibble):
744 * fns.c (base64_value_to_char, base64_char_to_value):
745 * fileio.c (make_temp_name_tbl):
746 * coding.c (suffixes): Make constant.
747
748 * frame.c (make_initial_frame):
749 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
750 build_string.
751 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
752
753 * s/freebsd.h:
754 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
755
756 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
757 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
758
759 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
760 * xterm.c (syms_of_xterm):
761 * xfaces.c (syms_of_xfaces):
762 * xdisp.c (syms_of_xdisp):
763 * lread.c (syms_of_lread):
764 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
765 build_string.
766
767 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
768
769 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
770
771 * fns.c (Fplist_get): Merge the active and the commented out code.
772
773 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
774
775 * keyboard.h: Declare timer_check.
776
777 * keyboard.c (timer_check_2): New function that does what the old
778 timer_check did.
779 (timer_check): Call timer_check_2 until -1 or a non-zero time is
780 returned, i.e. don't return -1 with timers pending.
781
782 * process.c: Remove extern declaration of timer_check.
783
784 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
785 even if timer_check returned -1.
786
787 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
788 xg_dialog_data.
789 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
790 the event loop.
791 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
792 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
793 Destroy the dialog after xg_dialog_run.
794
795 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
796
797 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
798
799 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
800
801 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
802
803 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
804
805 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
806
807 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
808
809 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
810 w32menu.c, and nsmenu.m.
811 Simplify the obsolete case where position is nil.
812 (cleanup_popup_menu): New function, moved from nsmenu.m.
813 (struct skp): Remove slot `notreal'.
814 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
815 adjust callers.
816 (single_menu_item): Adjust call to parse_menu_item.
817 (syms_of_menu): Defsubr x-popup-menu.
818 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
819 (keymap_panes): Don't export any more.
820 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
821 (xmenu_show): Declare.
822 * keyboard.c (parse_menu_item): Remove arg `notreal'.
823 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
824 * keyboard.h (parse_menu_item): Update declaration.
825 * xmenu.c (Fx_popup_menu): Remove.
826 (syms_of_xmenu): Don't defsubr x-popup-menu.
827 * w32menu.c (Fx_popup_menu): Remove.
828 (syms_of_w32menu): Don't defsubr x-popup-menu.
829 * nsmenu.m (cleanup_popup_menu): Remove.
830 (ns_menu_show): Rename from ns_popup_menu and remove all the code
831 moved to menu.c's Fx_popup_menu.
832 (Fx_popup_menu): Remove.
833 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
834 menu_items (it's done in menu.c already).
835
836 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
837
838 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
839 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
840
841 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
842
843 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
844 xmenu_show. Hide any tooltip before opening a menu.
845 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
846 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
847
848 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
849
850 Let integers use up 2 tags to give them one extra bit and thus double
851 their range.
852 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
853 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
854 New macros.
855 (enum Lisp_Type): Use them. Give explicit values.
856 (Lisp_Type_Limit): Remove.
857 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
858 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
859 Pay attention to USE_2_TAGS_FOR_INTS.
860 (INTEGERP): Use LISP_INT_TAG_P.
861 * fns.c (internal_equal): Simplify the default case.
862 (sxhash): Use case_Lisp_Int.
863 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
864 any more.
865 (Ftype_of): Use case_Lisp_Int.
866 (store_symval_forwarding): Take into account the fact that Ints can
867 now have more than one tag.
868 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
869 buffer_slot_type_mismatch):
870 * xfaces.c (face_attr_equal_p):
871 * print.c (print_object):
872 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
873 Use case_Lisp_Int.
874
875 2009-11-06 Eli Zaretskii <eliz@gnu.org>
876
877 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
878
879 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
880 warning.
881
882 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
883
884 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
885
886 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
887
888 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
889 ButtonPressRelease and MotionNotify (bug#4870).
890
891 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
892
893 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
894
895 * xterm.c (syms_of_xterm):
896 * xselect.c (syms_of_xselect):
897 * xmenu.c (syms_of_xmenu):
898 * xfns.c (syms_of_xfns):
899 * xfaces.c (syms_of_xfaces):
900 * xdisp.c (syms_of_xdisp):
901 * window.c (syms_of_window):
902 * w32fns.c (syms_of_w32fns):
903 * undo.c (syms_of_undo):
904 * textprop.c (syms_of_textprop):
905 * terminal.c (syms_of_terminal):
906 * syntax.c (syms_of_syntax):
907 * sound.c (syms_of_sound):
908 * search.c (syms_of_search):
909 * print.c (syms_of_print):
910 * minibuf.c (syms_of_minibuf):
911 * macros.c (syms_of_macros):
912 * keymap.c (syms_of_keymap, initial_define_key)
913 (initial_define_lispy_key):
914 * keyboard.c (syms_of_keyboard):
915 * insdel.c (syms_of_insdel):
916 * image.c (syms_of_image):
917 * fringe.c (syms_of_fringe):
918 * frame.c (syms_of_frame):
919 * fontset.c (syms_of_fontset):
920 * fns.c (syms_of_fns):
921 * fns.c (syms_of_fns):
922 * fileio.c (syms_of_fileio):
923 * fileio.c (syms_of_fileio):
924 * eval.c (syms_of_eval):
925 * doc.c (syms_of_doc):
926 * dispnew.c (syms_of_display):
927 * dired.c (syms_of_dired):
928 * dbusbind.c (syms_of_dbusbind):
929 * data.c (syms_of_data):
930 * composite.c (syms_of_composite):
931 * coding.c (syms_of_coding):
932 * cmds.c (syms_of_cmds):
933 * charset.c (define_charset_internal, syms_of_character):
934 * ccl.c (syms_of_ccl):
935 * category.c (syms_of_category, init_category_once):
936 * casetab.c (syms_of_casetab):
937 * casefiddle.c (syms_of_casefiddle):
938 * callint.c (syms_of_callint):
939 * bytecode.c (syms_of_bytecode):
940 * buffer.c (keys_of_buffer, syms_of_buffer):
941 * alloc.c (syms_of_alloc):
942 * process.c (syms_of_process, init_process):
943 * lread.c (syms_of_lread, init_obarray):
944 * font.c (build_style_table):
945 * emacs.c (syms_of_emacs, main): Replace calls to intern with
946 intern_c_string, calls to make_pure_string with
947 make_pure_c_string. Use pure_cons instead of Fcons.
948
949 * process.c (socket_options): Make it const.
950 (set_socket_option, init_process): Use a const pointer.
951
952 * lread.c (intern_c_string): New function.
953 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
954 (defvar_int): Uset it. Make the name const char*.
955
956 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
957 (defvar_int): Update prototypes.
958 (DEFUN, EXFUN): Support for prototypes is now required.
959 (intern_c_string): New prototype.
960 (struct Lisp_Subr): Make symbol_name constant.
961
962 * font.c (struct table_entry): Remove unused member. Make NAMES
963 constant.
964 (weight_table, slant_table, width_table): Make constant.
965
966 * emacs.c (struct standard_args): Make name and longname constant.
967
968 * character.h (DEFSYM): Use intern_c_string.
969
970 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
971
972 * alloc.c (make_pure_c_string): New function.
973
974 * eval.c (Fautoload): Purecopy all arguments.
975
976 2009-11-05 Kenichi Handa <handa@m17n.org>
977
978 * fileio.c (Finsert_file_contents): Be sure set coding-system of
979 the buffer in case of replace.
980
981 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
982
983 * puresize.h (BASE_PURESIZE): Increase to 1620000.
984
985 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
986
987 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
988 when applicable (bug#4851).
989
990 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
991 (P_): Support for prototypes is now required.
992
993 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
994
995 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
996 (Bug#4827).
997
998 2009-10-30 Eli Zaretskii <eliz@gnu.org>
999
1000 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1001
1002 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1003
1004 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1005
1006 * lread.c (Fload): Purecopy the file name when building
1007 Vpreloaded_file_list.
1008
1009 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1010
1011 * w32fns.c (syms_of_w32fns): Change default value of
1012 w32-scroll-lock-modifier to nil. (Bug#2827)
1013
1014 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1015
1016 * minibuf.c (Fall_completions): Fix typos in docstring.
1017
1018 2009-10-26 Andreas Schwab <schwab@redhat.com>
1019
1020 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1021
1022 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1023
1024 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1025 For delta < 0, skip check that only makes sense when the mini-window
1026 is going to be enlarged. (Bug#4534)
1027
1028 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1029
1030 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1031 string in menu maps (Bug#4471).
1032
1033 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1034
1035 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1036 FRAME_NS_VIEW on terminal frames (Bug#4765).
1037
1038 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1039
1040 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1041 DBUS_TYPE_UINTnn separately to get proper sign extension.
1042
1043 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1044 can properly handle unsigned types.
1045 (make_uid, make_gid): Remove.
1046
1047 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1048 types again.
1049
1050 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1051 (system_process_attributes): Likewise.
1052
1053 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1054
1055 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1056
1057 * eval.c (Fautoload): Purecopy the filename. Simplify.
1058
1059 * category.c (Fdefine_category): Purecopy docstring.
1060
1061 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1062
1063 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1064
1065 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1066
1067 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1068
1069 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1070 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1071 (Bug#4775).
1072
1073 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1074
1075 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1076 (init_fileio_once):
1077 * lisp.h (init_fileio_once): Remove.
1078 * emacs.c (main): Don't call init_fileio_once.
1079
1080 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1081
1082 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1083
1084 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1085
1086 * doprnt.c (doprnt): Fix overflow check.
1087
1088 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1089
1090 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1091
1092 * xterm.h (x_wait_for_event): Declare it.
1093
1094 * xterm.c (pending_event_wait): New variable.
1095 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1096 see pending_event_wait.eventtype.
1097 (handle_one_xevent): Don't change gravity when parent changes.
1098 (x_new_font): Call change_frame_size with new rows/columns before we
1099 try to resize the frame.
1100 (x_wait_for_event): New function.
1101 (x_set_window_size_1): Don't change gravity unless change_gravity
1102 is set.
1103 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1104 don't change frame size, instead wait for the ConfigureNotify.
1105 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1106 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1107 (x_initialize): Initialize pending_event_wait.
1108
1109 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1110 size.
1111
1112 * widget.c (EmacsFrameSetValues): Add comment.
1113 (EmacsFrameSetCharSize): Just call x_set_window_size.
1114
1115 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1116 x_wait_for_event.
1117 (flush_and_sync): Remove again.
1118 (xg_get_font_name): Suggest monospace if no previous font is known.
1119
1120 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1121
1122 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1123 8th bit, since that only made sense in the ASCII world (bug#4751).
1124
1125 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1126
1127 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1128 processing pending events when event is filtered for input method.
1129 (Bug#3681)
1130
1131 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1132
1133 * fns.c: Add #endif accidentally removed in previous change.
1134
1135 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1136
1137 * fns.c: Remove code for unsupported system: MAC_OS.
1138 * image.c: Likewise. Include setjmp.h.
1139
1140 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1141
1142 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1143 pixel -1 (bug #4742).
1144
1145 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1146
1147 * process.c (create_pty): Remove conditionals for no longer
1148 supported systems: UNIPLUS and RTU.
1149
1150 * xterm.c:
1151 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1152
1153 * alloc.c: Do not define struct catchtag.
1154 * eval.c: Move struct catchtag definition ...
1155 * lisp.h: ... here.
1156
1157 * image.c: Move png.h #include earlier to avoid warnings.
1158
1159 * xterm.c:
1160 * xsmfns.c:
1161 * xselect.c:
1162 * xrdb.c:
1163 * xmenu.c:
1164 * xftfont.c:
1165 * xfont.c:
1166 * xfns.c:
1167 * xfaces.c:
1168 * xdisp.c:
1169 * window.c:
1170 * widget.c:
1171 * w32xfns.c:
1172 * w32uniscribe.c:
1173 * w32term.c:
1174 * w32select.c:
1175 * w32reg.c:
1176 * w32proc.c:
1177 * w32menu.c:
1178 * w32inevt.c:
1179 * w32heap.c:
1180 * w32font.c:
1181 * w32fns.c:
1182 * w32console.c:
1183 * w32.c:
1184 * w16select.c:
1185 * vm-limit.c:
1186 * unexsol.c:
1187 * unexec.c:
1188 * unexcw.c:
1189 * unexaix.c:
1190 * undo.c:
1191 * tparam.c:
1192 * textprop.c:
1193 * terminfo.c:
1194 * terminal.c:
1195 * termcap.c:
1196 * term.c:
1197 * syntax.c:
1198 * sound.c:
1199 * sheap.c:
1200 * search.c:
1201 * scroll.c:
1202 * region-cache.c:
1203 * regex.c:
1204 * ralloc.c:
1205 * process.c:
1206 * print.c:
1207 * nsterm.m:
1208 * nsselect.m:
1209 * nsmenu.m:
1210 * nsimage.m:
1211 * nsfont.m:
1212 * nsfns.m:
1213 * msdos.c:
1214 * minibuf.c:
1215 * menu.c:
1216 * marker.c:
1217 * macros.c:
1218 * keymap.c:
1219 * keyboard.c:
1220 * intervals.c:
1221 * insdel.c:
1222 * indent.c:
1223 * gtkutil.c:
1224 * ftxfont.c:
1225 * ftfont.c:
1226 * fringe.c:
1227 * frame.c:
1228 * fontset.c:
1229 * font.c:
1230 * fns.c:
1231 * floatfns.c:
1232 * filelock.c:
1233 * fileio.c:
1234 * emacs.c:
1235 * editfns.c:
1236 * dosfns.c:
1237 * doprnt.c:
1238 * doc.c:
1239 * dispnew.c:
1240 * dired.c:
1241 * dbusbind.c:
1242 * data.c:
1243 * composite.c:
1244 * coding.c:
1245 * cmds.c:
1246 * cm.c:
1247 * chartab.c:
1248 * charset.c:
1249 * character.c:
1250 * ccl.c:
1251 * category.c:
1252 * casetab.c:
1253 * casefiddle.c:
1254 * callproc.c:
1255 * callint.c:
1256 * bytecode.c:
1257 * buffer.c:
1258 * atimer.c: Include setjmp.h. (Bug#4643)
1259
1260 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1261
1262 Remove leftover table unibyte_to_multibyte_table.
1263 * character.c (unibyte_to_multibyte_table): Remove.
1264 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1265 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1266 * character.h (UNIBYTE_TO_CHAR): New macro.
1267 (MAKE_CHAR_MULTIBYTE): Use it.
1268 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1269 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1270 (message_dolog, set_message_1):
1271 * search.c (Freplace_match):
1272 * editfns.c (Fcompare_buffer_substrings):
1273 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1274 (concat):
1275 * insdel.c (copy_text, count_size_as_multibyte):
1276 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1277 * term.c (produce_glyphs):
1278 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1279 * regex.c (RE_CHAR_TO_MULTIBYTE):
1280 * cmds.c (internal_self_insert):
1281 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1282
1283 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1284
1285 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1286
1287 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1288
1289 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1290
1291 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1292
1293 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1294
1295 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1296 still needed under Tiger.
1297
1298 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1299
1300 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1301 __Apple__.
1302
1303 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1304
1305 2009-10-15 Kenichi Handa <handa@m17n.org>
1306
1307 * print.c (print_object): Escape a symbol like "2E10" too.
1308
1309 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1310
1311 Cleanups and changes for 64-bit compile under Snow Leopard.
1312 Based on suggestions by Erik Charlebois.
1313
1314 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1315
1316 * nsfont.m (ns_char_width): Replace deprecated call.
1317 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1318 cast argument.
1319 (nsfont_open): Use ns_char_width() everywhere.
1320 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1321
1322 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1323
1324 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1325 where appropriate.
1326
1327 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1328 where appropriate.
1329 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1330 Use stringWithUTF8String.
1331 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1332
1333 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1334 Add formal protocol mention to inheritance.
1335 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1336
1337 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1338 Fix printf format.
1339 (ns_query_color): Use CGFloat where appropriate.
1340 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1341 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1342 argument.
1343
1344 * config.in (NS_HAVE_NSINTEGER): Drop.
1345
1346 * dbusbind.c (dbus-method-return-internal)
1347 (dbus-method-error-internal): Use long format in printf, and cast
1348 argument.
1349
1350 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1351 in printf, and cast argument.
1352
1353 * process.c (list_processes_1): Use long format in printf, and
1354 cast argument.
1355
1356 2009-10-11 Glenn Morris <rgm@gnu.org>
1357
1358 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1359
1360 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1361
1362 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1363 menu bar with a small width so it doesn't enlarge the frame.
1364
1365 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1366
1367 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1368
1369 2009-10-06 Glenn Morris <rgm@gnu.org>
1370
1371 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1372 SOME_MACHINE_LISP (this enters indirectly via DOC).
1373
1374 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1375
1376 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1377
1378 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1379
1380 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1381 Doc fix.
1382
1383 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1384
1385 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1386
1387 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1388
1389 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1390 used anymore outside fileio.c.
1391
1392 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1393
1394 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1395
1396 * lisp.h (Qdelete_directory_internal):
1397 Declare, instead of Qdelete_directory.
1398
1399 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1400
1401 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1402
1403 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1404
1405 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1406
1407 * fileio.c (Fdelete_directory_internal): Rename from
1408 Fdelete_directory. It is not a command anymore. It has no file
1409 name handler.
1410
1411 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1412
1413 * xdisp.c (get_next_display_element): Use an enum in last change.
1414
1415 2009-09-28 Kenichi Handa <handa@m17n.org>
1416
1417 * xdisp.c (get_next_display_element): Pay attention to
1418 unibyte_display_via_language_environment in handling
1419 Vnobreak_char_display.
1420
1421 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1422
1423 * nsterm.h (ns_app_name): New extern variable.
1424
1425 * nsterm.m (ns_app_name): New variable.
1426 (ns_term_init): Set and use it.
1427 (ns_term_shutdown): Use it.
1428
1429 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1430 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1431
1432 * nsfns.m (ns_set_name_iconic, ns_set_name)
1433 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1434 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1435
1436 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1437 Remove double-casting in client_data comparison.
1438
1439 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1440
1441 * keyboard.c (make_lispy_event): Remember last wheel direction.
1442 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1443
1444 2009-09-26 Glenn Morris <rgm@gnu.org>
1445
1446 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1447 internal.elc. Add term/pc-win.elc.
1448 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1449 term/x-win.elc.
1450 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1451 term/w32-win.elc.
1452 (NS_SUPPORT): New.
1453 (lisp): Add NS_SUPPORT.
1454 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1455
1456 2009-09-25 David Reitter <david.reitter@gmail.com>
1457
1458 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1459 on Mac OS X 10.6+ (bug#4513).
1460
1461 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1462
1463 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1464 some parts of Emacs code (like font selection) don't grok them.
1465 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1466
1467 2009-09-24 Andreas Schwab <schwab@redhat.com>
1468
1469 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1470
1471 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1472
1473 * dired.c (Fdirectory_files): Fix typo in docstring.
1474
1475 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1476
1477 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1478 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1479 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1480 under GNUstep.
1481 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1482
1483 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1484 glyph advancement.
1485
1486 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1487
1488 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1489 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1490
1491 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1492 deleted (bug #4492).
1493
1494 * nsfont.m (Vns_reg_to_script): New lisp variable.
1495 (syms_of_nsfont): Declare it.
1496 (ns_registry_to_script): New function.
1497 (ns_get_req_script): Call it.
1498 (ns_findfonts): Don't give up on non-unicode registry.
1499
1500 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1501
1502 2009-09-20 Tom Tromey <tromey@redhat.com>
1503
1504 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1505 batch mode (bug#4228).
1506
1507 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1508
1509 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1510 carefully. (Bug #4339)
1511
1512 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1513
1514 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1515
1516 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1517
1518 * emacs.c (inhibit_x_resources): Update doc string for NS.
1519 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1520 legacy code for -NXHost. Fix error printf in daemon case.
1521
1522 * nsterm.h (ns_no_defaults): Remove.
1523
1524 * nsterm.m (ns_no_defaults): Remove.
1525 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1526 (ns_use_qd_smoothing): Remove legacy variable.
1527 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1528 don't update the NSWindow itself.
1529 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1530 state detection and store user rect ourselves. (Bug #3581)
1531
1532 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1533 ns_use_qd_smoothing.
1534
1535 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1536 platform versions. Drop support for emacs-20-style face specs.
1537 (x-close-connection): Drop PSFlush() under OS X.
1538 (x-focus-frame): Activate the app first. (Bug #4180)
1539
1540 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1541
1542 * emacs.c (inhibit_x_resources): New variable.
1543 (main) [HAVE_NS]: Don't process --quick command line option.
1544 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1545
1546 * lisp.h (inhibit_x_resources): Declare it extern.
1547
1548 * w32reg.c (x_get_string_resource):
1549 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1550
1551 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1552
1553 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1554 Add lisp/term/internal.elc.
1555
1556 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1557
1558 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1559 (bug#4461).
1560
1561 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1562
1563 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1564
1565 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1566 (OBJECTS_MACHINE): Remove, unused.
1567
1568 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1569
1570 * frame.c (x_get_resource_string): Remove unused.
1571
1572 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1573
1574 * xterm.c (x_new_font): Call change_frame_size before calling
1575 x_set_window_size, in case frame size won't change.
1576
1577 * frame.c (x_set_font): Remove dead code.
1578
1579 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1580
1581 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1582
1583 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 * lread.c (Fload): Don't output a message after loading an obsolete
1586 package any more (done in Lisp now).
1587
1588 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1589
1590 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1591
1592 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1593
1594 * keymap.c (Fwhere_is_internal): Use nconc2.
1595
1596 2009-09-11 Alan Mackenzie <acm@muc.de>
1597
1598 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1599 batch mode.
1600
1601 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1602
1603 * xdisp.c (display_mode_element): Detect cycles.
1604
1605 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1606
1607 * keymap.c (where_is_internal): Don't erroneously return nil right after
1608 filling the cache.
1609 (where_is_internal_1): Fix up typo.
1610
1611 2009-09-11 Glenn Morris <rgm@gnu.org>
1612
1613 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1614 share a common doc-string.
1615
1616 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1617
1618 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1619 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1620
1621 * keymap.c (QCadvertised_binding): New constant.
1622 (syms_of_keymap): Initialize it.
1623 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1624 if applicable.
1625
1626 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1627
1628 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1629 (parse_menu_item): Streamline since bindings are recomputed all the
1630 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1631 more and don't support lmenu's menu-alias any more either.
1632
1633 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1634 (where_is_internal): Strip it down to only traverse the keymaps.
1635 Move the cache handling from Fwhere_is_internal to here.
1636 (Fwhere_is_internal): Move the handling of remapping and the choice of
1637 the best binding from where_is_internal to here.
1638 Unify the cached/noncached paths, so remapping is also handled
1639 correctly when the cache is used, and so the cache can be used to
1640 speed up remap-handling when applicable.
1641 Give preference to non-remapped bindings.
1642 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1643 non-remapped bindings.
1644 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1645 command remapping.
1646
1647 * xdisp.c (display_mode_element): Move list length limit from 50 to
1648 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1649
1650 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1651
1652 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1653
1654 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1655
1656 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1657 (Bug#4334)
1658
1659 * keymap.c (where_is_internal): Filter out shadowed remappings.
1660 Assume that where_is_internal returns unshadowed bindings to simplify
1661 the code and get rid of the gotos. Use ASIZE.
1662
1663 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1664
1665 * xterm.c (x_focus_changed): If we get a focusout and pointer
1666 is invisible, make it visible.
1667
1668 * xterm.h: Remove condition for declaration of
1669 x_*_window_to_frame.
1670
1671 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1672
1673 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1674 initial terminal as well.
1675
1676 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1677
1678 * xterm.h: Rename x_non_menubar_window_to_frame to
1679 x_menubar_window_to_frame.
1680
1681 * xterm.c: Remove declarations also in xterm.h
1682 (XTmouse_position): Do not return valid positions
1683 for clicks in the menubar and the toolbar for Gtk+.
1684
1685 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1686 if the widget for the event has the same top level as a frame,
1687 return the frame.
1688 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1689 internal windows, bug #4122.
1690 (x_non_menubar_window_to_frame): Remove.
1691
1692 2009-09-02 Glenn Morris <rgm@gnu.org>
1693
1694 * buffer.c (default-major-mode): Move most of the doc from here...
1695 (major-mode): ... to here.
1696
1697 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1698
1699 * process.c (wait_reading_process_output): Keep the descriptor
1700 when pty is used by a non-child process, e.g., in I/O buffer of
1701 GDB this allows inferior to be restarted.
1702
1703 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1704
1705 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1706 both branches into one.
1707
1708 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1711 (main): Use enable-multibyte-characters rather than
1712 default-enable-multibyte-characters. Output a warning message when
1713 running a unibyte session.
1714
1715 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1716
1717 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1718 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1719 (copy_data_segment): Also copy __program_vars section.
1720 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1721 (dump_it) [LC_DYLD_INFO]: Use it.
1722
1723 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1724
1725 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1726
1727 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1728 $(SRC)/buildobj.h.
1729 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1730 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1731 $(SRC)/buildobj.h.
1732 (clean): Add buildobj.h.
1733
1734 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1735
1736 * print.c (print_object): Set escapeflag to 1 when printing
1737 hashtable keys and values.
1738
1739 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1740
1741 * lread.c (read_integer): Use doubles (and potentially return a float
1742 number) as we do in string-to-number.
1743 (read1): Use strtol to read integers, signal errors on strtol's
1744 overflow and use floats if strtol's output is too large for
1745 Elisp integers.
1746
1747 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1748
1749 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1750 (make-buildobj-SH): Fix last change.
1751 (SRC): Move to before where it's first used.
1752
1753 2009-08-27 Kenichi Handa <handa@m17n.org>
1754
1755 * process.c (send_process): Use encode_coding_object instead of
1756 encode_coding_string to perform eol-conversion even if the string
1757 is unibyte.
1758
1759 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1760 character.
1761
1762 * cmds.c (Fself_insert_command): Avoid unnecessay
1763 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1764
1765 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1766
1767 * callproc.c (Fcall_process): Remove always true #if.
1768
1769 * lisp.h: Replace #if 0 code for checking with text pointing to
1770 the --enable-checking configure flag.
1771
1772 * emacs.c (main): Mention the --enable-profiling configure flag
1773 instead of using CFLAGS.
1774
1775 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1776
1777 * Makefile.in (buildobj.h): New target.
1778 (doc.o): Depend on it.
1779 (temacs${EXEEXT}): Don't generate buildobj.lst.
1780 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1781 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1782 ($(BLD)/doc.$(O)): Depend on it.
1783 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1784 provided by Eli Zaretskii.)
1785 ($(TEMACS)): Don't generate buildobj.lst.
1786 * doc.c: Include buildobj.h.
1787 (buildobj): New static variable.
1788 (Fsnarf_documentation): Use it, instead of opening and reading
1789 buildobj.lst.
1790
1791 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1792
1793 * dbusbind.c (Fdbus_call_method)
1794 (Fdbus_call_method_asynchronously): Use English numeric format for
1795 timeout values in doc string.
1796
1797 2009-08-25 Kenichi Handa <handa@m17n.org>
1798
1799 * alloc.c (mark_char_table): New function.
1800 (mark_object): Use mark_char_table for a char-table.
1801
1802 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1803 (CHAR_TABLE_REF): Use it.
1804
1805 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1806
1807 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1808 before invoking the newly build emacs to check for load-path
1809 shadowing.
1810
1811 2009-08-22 Glenn Morris <rgm@gnu.org>
1812
1813 * Makefile.in (bootstrap_exe): New variable.
1814 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1815 Use ${bootstrap_exe}.
1816
1817 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1818
1819 * coding.h (encode_coding_string): Don't encode unibyte strings.
1820 (Bug#4047)
1821
1822 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1823
1824 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1825
1826 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1827 intended as hotfix only.
1828 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1829
1830 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1831
1832 * nsterm.m (ns_get_color): Update documentation properly for last
1833 change, and clean up loose ends in the code left by it. Fix
1834 longstanding bug with 16-bit hex parsing, and add support for
1835 yet another X11 format (rgb:r/g/b) for compatibility.
1836 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1837 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1838
1839 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1840
1841 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1842
1843 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1844
1845 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1846 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1847 (xd_initialize, xd_pending_messages): Check, whether
1848 $DBUS_SESSION_BUS_ADDRESS is set.
1849
1850 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1851
1852 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1853
1854 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1855
1856 2009-08-20 Glenn Morris <rgm@gnu.org>
1857
1858 * emacs.c (system-type): Doc fix.
1859
1860 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1861
1862 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1863 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1864
1865 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1866
1867 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1868 New functions.
1869 (xd_initialize): Revert change from 2009-08-16.
1870
1871 2009-08-18 Kenichi Handa <handa@m17n.org>
1872
1873 * fontset.c (Ffontset_font): If a nil element is found in a
1874 font-group vector, return nil.
1875
1876 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1877
1878 * process.c (status_notify): Don't perform redisplay.
1879 (Fdelete_process, list_processes_1, process_send_signal):
1880 Expliticly perform redisplay.
1881 (wait_reading_process_output): Always check process status, but
1882 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1883
1884 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1885
1886 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1887 (XFLOAT_INIT): New macro for storing a float value.
1888 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1889 * fns.c (sxhash): Copy out the value of a float in order to
1890 examine its bytes.
1891 * dbusbind.c (xd_append_arg): Likewise.
1892
1893 * emacs.c (main): Don't call syms_of_data twice.
1894
1895 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1896
1897 * dbusbind.c (xd_initialize): Add connection file descriptor to
1898 input_wait_mask, in order to let select() detect, whether a new
1899 message has been arrived.
1900 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1901
1902 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1903
1904 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1905 New functions.
1906
1907 * lisp.h (xd_pending_messages): Declare.
1908
1909 * keyboard.c (readable_events): Call xd_pending_messages.
1910
1911 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1912
1913 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1914
1915 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1916
1917 * buffer.c (set_buffer_internal_1)
1918 (swap_out_buffer_local_variables): Check for unbound local
1919 variables (Bug#4138).
1920
1921 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1922
1923 * process.c (create_pty): Fix last change.
1924
1925 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1926
1927 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1928 (xbm_load_image): Caller changed.
1929 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1930
1931 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1932
1933 * process.c (create_pty): New function.
1934 (Fstart_process): Use it to allow Emacs to just associate a pty
1935 with the buffer. See associated change in gdb-mi.el.
1936 (list_processes_1): Deal with no program name.
1937 (start_process_unwind): Use pid == -2 to mean no process.
1938
1939 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1940
1941 * cmds.c (nonundocount): New global variable.
1942 (keys_of_cmds): Initialize it.
1943 (Fself_insert_command): Use it to combine upto 20 sequential chars
1944 into a single undo entry, just like the Qself_insert_command code in
1945 keyboard.c does.
1946 Call frame_make_pointer_invisible, also like the Qself_insert_command
1947 code in keyboard.c does.
1948 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1949 than its own local replacement for it.
1950
1951 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1952
1953 * fns.c (concat): Don't re-set string length to its current value.
1954
1955 * coding.h (decode_coding_string, encode_coding_string):
1956 Use SBYTES macro.
1957
1958 * doprnt.c (doprnt_lisp): Delete unused function.
1959 (doprnt): Merge with doprnt1, discarding lispstrings code.
1960 * lisp.h (doprnt_lisp): Don't declare.
1961
1962 2009-08-07 Juri Linkov <juri@jurta.org>
1963
1964 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1965
1966 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1967
1968 * print.c (syms_of_print): Undo previous change.
1969
1970 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1971
1972 * lread.c (read1, syms_of_lread): Read hashtables back from the
1973 readable format.
1974
1975 * print.c (print_preprocess, print_object): Print hashtables fully
1976 and readably.
1977 (syms_of_print): Provide 'hashtable-print-readable.
1978
1979 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1980
1981 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1982 no family set.
1983 (nsfont_open): Handle case when entity has no family.
1984
1985 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1986
1987 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1988 element, not a list, for match case.
1989
1990 2009-07-28 Kenichi Handa <handa@m17n.org>
1991
1992 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1993 rigidly.
1994
1995 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1996 font_parse_xlfd. Check font properties more rigidly.
1997
1998 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1999
2000 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2001 bsd-common.h.
2002
2003 2009-07-27 Kenichi Handa <handa@m17n.org>
2004
2005 * xfaces.c (face_with_height): Call font_clear_prop.
2006
2007 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2008
2009 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2010
2011 * xterm.c (x_term_init): Use Qx.
2012
2013 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2014
2015 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2016 (ns_get_color): Revert 2009-07-16 change.
2017
2018 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2019
2020 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2021 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2022
2023 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2024
2025 * coding.h (decode_coding_string, encode_coding_string):
2026 Use SCHARS macro.
2027
2028 * lread.c: Rewrite 2009-07-21 changes.
2029 (load_depth): Delete.
2030 (Qload_in_progress): New variable.
2031 (load_unwind): Don't reference load_depth or load_in_progress.
2032 (Fload): Likewise; specbind Qload_in_progress instead.
2033 (init_lread): Don't initialize load_depth.
2034 (syms_of_lread): Initialize and protect Qload_in_progress.
2035
2036 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2037
2038 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2039
2040 2009-07-23 Yavor Doganov <yavor@gnu.org>
2041
2042 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2043
2044 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2045
2046 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2047 Bugs 3792, 3720, 2402.
2048 (ns_lookup_indexed_color): Check for bad index.
2049 (ns_index_color): Init unused slot to 0.
2050 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2051 Bug 3714, possibly 3082.
2052
2053 2009-07-22 Jason Rumney <jasonr@gnu.org>
2054
2055 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2056 Position IME window at cursor (Bug#2570).
2057 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2058 (globals_of_w32fns): Dynamically load functions required above.
2059
2060 * w32term.c (w32_draw_window_cursor): Send message to reposition
2061 any IME window.
2062
2063 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2064
2065 * fileio.c: Revert 2009-07-16 changes.
2066 (Vauto_save_include_big_deletions): New variable.
2067 (Fdo_auto_save): Disable auto-save only if
2068 auto-save-include-big-deletions is nil.
2069
2070 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2071
2072 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2073 the overflowed pixels into account (Bug#3879).
2074
2075 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2076
2077 * lread.c (load_depth): New variable.
2078 (Fload, load_unwind, init_lread): Set it to the load recursion
2079 depth; set load_in_progress as a simple boolean based on the
2080 current load_depth. (Bug#3892)
2081
2082 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2083
2084 * nsfont.m (ns_has_attribute): Remove.
2085 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2086
2087 2009-07-18 Juri Linkov <juri@jurta.org>
2088
2089 * process.c (Fset_process_query_on_exit_flag): Mention killing
2090 a buffer in docstring.
2091
2092 2009-07-17 Kenichi Handa <handa@m17n.org>
2093
2094 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2095
2096 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2097
2098 * nsfns.m (Fns_set_alpha): Remove function.
2099 (syms_of_nsfns): Don't defsubr it.
2100
2101 * nsterm.m (ns_get_color): Remove incompatible color formats.
2102 (ns_color_to_lisp): Generate #rrggbb color format string.
2103
2104 2009-07-16 Richard Stallman <rms@gnu.org>
2105
2106 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2107 (Fset_buffer_auto_saved): Handle save_length = -2.
2108
2109 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2110
2111 * xterm.c (Qx_gtk_map_stock): New var.
2112
2113 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2114 of calling intern each time.
2115
2116 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2117
2118 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2119 does tiling.
2120
2121 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2122
2123 2009-07-14 Kenichi Handa <handa@m17n.org>
2124
2125 * font.c (font_vconcat_entity_vectors): New function.
2126 (struct font_sort_data): New member font_driver_preference.
2127 (font_compare): Check font_driver_preference.
2128 (font_sort_entities): The format of the first argument changed.
2129 (font_delete_unmatched): Likewise.
2130 (font_list_entities): The return type changed.
2131 (font_select_entity): The format of the second argument changed.
2132 (font_find_for_lface): Adjuste for the above changes.
2133 Don't suppress the checking of C even if the repertory supports it.
2134 (Flist_fonts): Adjust for the above changes.
2135
2136 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2137 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2138 Reject a font who has adstyle property that is different from a
2139 langname derived from registry property.
2140 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2141
2142 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2143
2144 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2145 local copy of dirfilename.
2146
2147 2009-07-13 Kenichi Handa <handa@m17n.org>
2148
2149 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2150 against max_char.
2151
2152 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2153 calling XSYMBOL (sym).
2154
2155 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2156
2157 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2158 New function.
2159 (directory_files_internal) [WINDOWSNT]:
2160 Bind w32-get-true-file-attributes to either t or nil, depending whether
2161 the filesystem of the directory is fast or slow.
2162
2163 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2164 file name.
2165 (is_slow_fs): New function.
2166 (stat): Use it to determine whether to issue more system calls to
2167 get accurate file attributes, when w32-get-true-file-attributes is
2168 `local'.
2169
2170 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2171
2172 * xfns.c (Fx_select_font): Remember last font selected in
2173 x_last_font_name and use that the next time. Also try the frame
2174 parameter font-parameter as default to the font dialog.
2175
2176 2009-07-10 Kenichi Handa <handa@m17n.org>
2177
2178 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2179
2180 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2181
2182 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2183
2184 * w32.c (stat): Treat UNC file names as residing on remote
2185 drives. (Bug#3542)
2186
2187 2009-07-09 Kenichi Handa <handa@m17n.org>
2188
2189 * fontset.c (fontset_find_font): Fix previous change.
2190
2191 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2192
2193 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2194 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2195 error flag.
2196
2197 2009-07-08 Kenichi Handa <handa@m17n.org>
2198
2199 * fontset.c (fontset_find_font): Fix the logic of handling
2200 charset_matched.
2201 (font_for_char): Delete unused var.
2202 (generate_ascii_font_name): Delete it.
2203
2204 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2205
2206 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2207 (encode_coding_sjis): Fix the code range check.
2208
2209 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2210
2211 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2212 (Fexpand_file_name): Copy string data properly (Bug#3772).
2213
2214 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2215
2216 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2217 first MapNotify.
2218
2219 2009-07-07 Kenichi Handa <handa@m17n.org>
2220
2221 * character.h (unibyte_has_multibyte_table): Delete extern.
2222 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2223
2224 * charset.c (Fset_charset_priority): Update charset_unibyte.
2225 (syms_of_charset): Initialize charset_unibyte.
2226
2227 * character.c (unibyte_has_multibyte_table): Delete it.
2228 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2229 charset_unibyte.
2230 (multibyte_char_to_unibyte_safe): Likewise.
2231 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2232
2233 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2234 (x_produce_glyphs): Likewise.
2235
2236 * .gdbinit (xcharset): Fix the treating $arg0.
2237
2238 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2239
2240 Emulation of `getloadavg' on MS-Windows.
2241 * w32.c: Include float.h
2242 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2243 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2244 (get_native_system_info, get_system_times): New functions.
2245 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2246 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2247 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2248 g_b_init_get_system_times, and num_of_processors.
2249
2250 2009-07-03 Jason Rumney <jasonr@gnu.org>
2251
2252 * w32term.c (w32_initialize): Use standard types.
2253
2254 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2255
2256 * dired.c (Ffile_attributes): Decode user and group names by the
2257 locale's encoding. (Bug#3443)
2258
2259 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2260
2261 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2262 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2263
2264 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2265
2266 * term.c (init_tty): Remove spurious #ifdef.
2267
2268 * m/mips.h: Mention this file is also used for netbsd.
2269 * m/pmax.h: Remove file.
2270
2271 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2272
2273 * xterm.h (struct x_display_info): Add invisible_cursor.
2274 (struct x_output): Add current_cursor.
2275
2276 * xterm.c (XTtoggle_invisible_pointer): New function.
2277 (x_define_frame_cursor): Don't define cursor if invisible or the
2278 same as before. Set current_cursor.
2279 (x_create_terminal): Set toggle_invisible_pointer_hook.
2280
2281 * xfns.c (make_invisible_cursor): New function.
2282 (x_set_mouse_color): Call make_invisible_cursor.
2283 Set current_cursor.
2284 (x_window): Set current_cursor.
2285
2286 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2287
2288 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2289 inserting a character.
2290 (read_avail_input): Call frame_make_pointer_visible.
2291
2292 * frame.c (Vmake_pointer_invisible): New variable.
2293 (frame_make_pointer_invisible, frame_make_pointer_visible):
2294 New functions.
2295 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2296
2297 * frame.h: Declare frame_make_pointer_invisible and
2298 frame_make_pointer_visible.
2299 (struct frame): Add pointer_invisible.
2300
2301 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2302
2303 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2304 frame isn't visible.
2305 (xg_frame_resized): If width/height is -1, get size of window
2306 from X server.
2307
2308 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2309 for MapNotify.
2310
2311 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2312 here or call change_frame_size. Just call flush_and_sync.
2313 (flush_and_sync): Reintroduce.
2314
2315 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2316
2317 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2318
2319 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2320 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2321
2322 * frame.h: Declare Qsticky.
2323
2324 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2325
2326 * nsfns.m (ns_frame_parm_handlers): Ditto.
2327
2328 * frame.c: Declare Qsticky.
2329 (frame_parms): Add sticky.
2330
2331 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2332
2333 * xterm.h: Declare x_set_sticky.
2334
2335 * xterm.c (x_set_sticky): New function.
2336
2337 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2338 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2339 xg_tool_bar_proxy_help_callback.
2340
2341 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2342
2343 * frame.c: Qmaximized is new.
2344 (x_set_frame_parameters): Do not handle fullscreen specially.
2345 Only set width and height if explicitly set.
2346 (x_set_fullscreen): Handle Qmaximized.
2347 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2348 (syms_of_frame): Initialize Qmaximized.
2349
2350 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2351 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2352
2353 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2354 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2355 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2356 set gravity to NorthWestGravity when USE_GTK.
2357 (set_wm_state): New function.
2358 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2359 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2360 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2361 or the case when no window manager is running. That means remove calls
2362 to x_real_positions and x_fullscreen_adjust.
2363
2364 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2365 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2366 flush_and_sync.
2367 (xg_height_changed): New function.
2368 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2369 and gtk_window_set_policy. Set frame gravity after parsing the
2370 geometry string.
2371 (xg_update_frame_menubar, free_frame_menubar)
2372 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2373 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2374 Remove calls to xg_frame_set_char_size.
2375
2376 2009-07-01 Kenichi Handa <handa@m17n.org>
2377
2378 * keyboard.c (decode_keyboard_code): New function.
2379 (tty_read_avail_input): Decode the input bytes if necessary.
2380
2381 * coding.c (setup_coding_system):
2382 Initialize coding->carryover_bytes to 0.
2383 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2384 use Qno_conversion.
2385
2386 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2387
2388 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2389
2390 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2391
2392 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2393
2394 2009-06-30 Jason Rumney <jasonr@gnu.org>
2395
2396 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2397 is already loaded.
2398 Set user model ID if supported (bug#1849).
2399
2400 2009-06-29 Jim Meyering <meyering@redhat.com>
2401
2402 Remove useless if-before-xfree test.
2403 * nsfont.m (nsfont_close): Remove useless test.
2404 * term.c (delete_tty): Likewise.
2405 * w32.c (system_process_attributes): Likewise.
2406 * w32font.c (w32font_close): Likewise.
2407 * xfaces.c (x_free_gc): Likewise.
2408 * xselect.c (buffer): Likewise.
2409
2410 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2411
2412 * process.c (send_process): Keep decoded string in a local
2413 variable and protect it from GC. (Bug#3521)
2414
2415 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2416
2417 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2418 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2419
2420 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2421
2422 * xdisp.c (start_display, handle_face_prop)
2423 (move_it_vertically_backward, cursor_row_fully_visible_p)
2424 (redisplay_window, try_window_id, produce_image_glyph):
2425 Delete some #ifdef-ed out code chunks that are now obsolete.
2426
2427 * xterm.c (x_update_window_begin, x_new_focus_frame)
2428 (x_scroll_bar_handle_click, handle_one_xevent)
2429 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2430 (x_make_frame_visible, x_make_frame_invisible)
2431 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2432 code chunks that are now obsolete.
2433
2434 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2435
2436 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2437 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2438 for hours, when optimzation is enabled.
2439 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2440 (xd_read_message): Make them static.
2441
2442 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2443
2444 * term.c (turn_on_face): Allow simultaneously bold and dim
2445 terminal faces (Bug#3530).
2446
2447 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2448
2449 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2450
2451 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2452 truncation glyphs (Bug#3686).
2453
2454 2009-06-27 Glenn Morris <rgm@gnu.org>
2455
2456 * m/pmax.h: Restore file, with only netbsd portions.
2457
2458 2009-06-26 David Reitter <david.reitter@gmail.com>
2459
2460 * nsterm.m (keydown): Avoid infinite loop.
2461
2462 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2463
2464 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2465 the arg FORCE_SYMBOL.
2466
2467 2009-06-25 Kenichi Handa <handa@m17n.org>
2468
2469 * fontset.c (fontset_find_font): When a usable rfont_def is found
2470 in a fallback font-group, make it the first element of the group.
2471
2472 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2473
2474 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2475
2476 2009-06-24 Kenichi Handa <handa@m17n.org>
2477
2478 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2479 set for C.
2480 (fontset_font): Record the availability of a font for C both in
2481 the realized fontsets of the current one and the default one.
2482
2483 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2484
2485 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2486 conditional, it is always defined on AIX.
2487
2488 2009-06-23 Miles Bader <miles@gnu.org>
2489
2490 * window.c (Vrecenter_redisplay): New variable.
2491 (syms_of_window): Initialize it.
2492 (Qtty): New extern declaration.
2493 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2494
2495 2009-06-23 Jim Meyering <meyering@redhat.com>
2496
2497 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2498 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2499 pointer dereferences are guaranteed to be valid.
2500
2501 2009-06-23 Kenichi Handa <handa@m17n.org>
2502
2503 * emacs.c (main): Call init_font ().
2504
2505 * font.h (Vfont_log): Extern it.
2506 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2507
2508 * font.c (font_sort_entities, font_list_entities)
2509 (font_matching_entity, font_open_entity)
2510 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2511 (Vfont_log): Delete static.
2512 (font_log_env_checked): Delete this variable.
2513 (font_add_log): Don't check font_log_env_checked.
2514 (font_deferred_log): Check Vfont_log.
2515 (init_font): New function.
2516
2517 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2518
2519 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2520
2521 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2522
2523 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2524
2525 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2526 (face_for_char): Don't call font_deferred_log here.
2527 (font_for_char): Likewise.
2528
2529 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2530
2531 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2532 rather than its background_width for drawing the overline and
2533 underline (Bug#489).
2534
2535 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2536 rather than its background_width for drawing the overline and
2537 underline (Bug#489).
2538 (xg_default_icon_file): New variable.
2539 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2540 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2541
2542 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2543 (load_overlay_strings): Remove externs.
2544 (fast_find_position): Function deleted.
2545 (mouse_face_from_buffer_pos): New function, based on
2546 fast_find_position. Correctly handle before-strings,
2547 display-strings, and after-strings (Bug#1220).
2548 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2549
2550 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2551
2552 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2553 (move_it_in_display_line_to, move_it_in_display_line_to)
2554 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2555
2556 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2557
2558 * Branch for 23.1.
2559
2560 2009-06-21 Jason Rumney <jasonr@gnu.org>
2561
2562 * w32term.c (keyboard_codepage): New static variable.
2563 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2564 (w32_read_socket) [WM_CHAR]: Use it to decode character
2565 input (bug#3237).
2566 (w32_initialize): Initialize it.
2567 (codepage_for_locale): New function.
2568
2569 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2570
2571 * process.c (status_message): Pass Faset index argument as a lisp
2572 object, so as to work with USE_LISP_UNION_TYPE.
2573
2574 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2575
2576 * coding.c (Ffind_coding_systems_region_internal):
2577 Cache checked characters.
2578
2579 2009-06-18 Kenichi Handa <handa@m17n.org>
2580
2581 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2582
2583 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2584
2585 * xdisp.c (redisplay_internal): Check that the frame is still
2586 live after redisplay of its windows.
2587 (redisplay_windows): Check that the window is still live.
2588
2589 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2590
2591 * coding.c (detect_coding_utf_16): Fix previous change.
2592
2593 2009-06-16 Kenichi Handa <handa@m17n.org>
2594
2595 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2596 UTF-16 by checking the dispersion of Eth and Oth bytes.
2597
2598 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2599
2600 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2601
2602 2009-06-15 Kenichi Handa <handa@m17n.org>
2603
2604 * process.c (status_message): Fix previous change. Be sure to
2605 decode a localized string.
2606
2607 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2608
2609 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2610 add comment explaining why.
2611
2612 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2613
2614 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2615
2616 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2617
2618 * nsfont.m (ns_attribute_value): Remove.
2619 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2620 (ns_has_attribute): Shrink the normal range.
2621 (ns_findfonts): Don't worry about requested spec in determining
2622 need for synthItal.
2623 (ns_get_covering_families): Retain scriptToFamilies.
2624
2625 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2626
2627 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2628
2629 2009-06-11 Kenichi Handa <handa@m17n.org>
2630
2631 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2632 overhang for the static composition case.
2633
2634 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2635
2636 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2637 overhang for the automatic composition case.
2638
2639 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2640 composition case.
2641
2642 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2643
2644 * xdisp.c (get_next_display_element): When handling wrap-prefix
2645 and line-prefix, treat \n as a control character (bug#3502).
2646
2647 2009-06-10 Kenichi Handa <handa@m17n.org>
2648
2649 * font.c (font_parse_family_registry): Fix for one-char foundry.
2650 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2651
2652 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2653
2654 * process.c (status_message): Fix handling of multibyte signal
2655 string (Bug#3499).
2656
2657 2009-06-09 Jim Meyering <meyering@redhat.com>
2658
2659 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2660 color name is missing.
2661
2662 2009-06-09 Kenichi Handa <handa@m17n.org>
2663
2664 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2665 FROM-CODE and TO-CODE are codepoints of CHARSET.
2666
2667 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2668
2669 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2670
2671 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2672
2673 Changes to support :script/:lang/:otf in NS font driver.
2674 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2675 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2676 indicate not part of font driver interface, and change callers.
2677 (ns_get_family): Remove pointless null check.
2678 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2679 ns_spec_to_descriptor, ns_descriptor_to_entity.
2680 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2681 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2682 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2683 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2684 (ns_get_req_script, ns_accumulate_script_ranges)
2685 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2686 New functions.
2687 (nsfont_list, nsfont_match): Use ns_findfonts.
2688 (nsfont_open): Use font descriptor instead of traits.
2689 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2690 (dump_glyphstring): Rename to ns_dump_glyphstring.
2691
2692 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2693
2694 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2695
2696 * fontset.c (fontset_from_font): Remove NS-specific code.
2697
2698 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2699
2700 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2701 nonactive windows.
2702
2703 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2704
2705 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2706
2707 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2708
2709 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2710
2711 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2712
2713 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2714 account for the overflowing of newlines into the last glyph on the
2715 display line (Bug#3482).
2716
2717 2009-06-05 David Reitter <david.reitter@gmail.com>
2718
2719 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2720 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2721 Fns_selection_exists_p, Fns_selection_owner_p.
2722
2723 2009-06-03 Jason Rumney <jasonr@gnu.org>
2724
2725 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2726 available. (Bug#3379)
2727
2728 2009-05-29 Kenichi Handa <handa@m17n.org>
2729
2730 * coding.c (get_translation_table):
2731 Check Venable_character_translation.
2732
2733 2009-05-26 David Reitter <david.reitter@gmail.com>
2734
2735 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2736 (x_make_frame_visible): Move frame to front rather than calling
2737 ns_raise_frame().
2738 (keyDown:): Do not swallow events that aren't re-sent if frame
2739 isn't key window.
2740 (drawRect:): Do not set visibility/iconified flags because
2741 drawRect may be called by NSView even if the frame is hidden.
2742
2743 * nsfns.m (Fx_create_frame): Follow other ports in
2744 determining visibility; default to t. Ensure async_visible is set.
2745
2746 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2747
2748 * dired.c (Ffile_attributes): Doc fix.
2749
2750 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2751
2752 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2753
2754 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2755
2756 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2757 and xfont_scratch_props.
2758 (syms_of_xfont): Do it here instead.
2759 (xfont_find_ccl_program): Delete, unused.
2760 (xfont_open): Delete unused var `i'.
2761
2762 2009-05-21 Kenichi Handa <handa@m17n.org>
2763
2764 * fontset.c (Qlatin): Don't make it static.
2765
2766 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2767 New functions.
2768 (xfont_scripts_cache, xfont_scratch_props): New variables.
2769 (Qlatin, Vscalable_fonts_allowed): Extern it.
2770 (xfont_list_pattern): Argument changed. Callers changed.
2771 Check Vscalable_fonts_allowed. Check the support of a script.
2772 (xfont_list): Don't reject a font spec with :script property.
2773 (xfont_has_char): Fix setting of encoding.
2774 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2775 xfont_scratch_props.
2776
2777 2009-05-19 Kenichi Handa <handa@m17n.org>
2778
2779 * font.c (font_sort_entities): Rename from font_sort_entites.
2780 Callers changed.
2781
2782 2009-05-18 Kenichi Handa <handa@m17n.org>
2783
2784 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2785
2786 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2787
2788 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2789 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2790
2791 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2792
2793 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2794 (x_delete_terminal): Dissociate resource database from display and
2795 then call XrmDestroyDatabase before closing display.
2796
2797 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2798
2799 * nsterm.m (ns_read_socket): Remove unused variable.
2800 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2801 whether selected frame is viable before raising it (based on patch
2802 by David Reitter), and improve commentary.
2803 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2804
2805 2009-05-15 Kenichi Handa <handa@m17n.org>
2806
2807 * font.c (Ffont_spec): Check arguments.
2808
2809 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2810
2811 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2812 weight when testing attributes (Bug#3282).
2813
2814 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2815
2816 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2817 what we expect to get in the next ConfigureNotify event.
2818
2819 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2820 before Xft one (Bug#1696).
2821
2822 2009-05-07 David Reitter <david.reitter@gmail.com>
2823
2824 * nsfns.m (Fx_display_planes): Compute bitplanes using
2825 NSBitsPerPixelFromDepth (Bug#3207).
2826
2827 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2828
2829 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2830
2831 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2832
2833 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2834
2835 2009-05-07 David Reitter <david.reitter@gmail.com>
2836
2837 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2838 Respect mouse face background.
2839
2840 2009-05-07 David Reitter <david.reitter@gmail.com>
2841
2842 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2843 Mouse movement/highlight: bracket drawing operations
2844 in ns_update_begin and ns_update_end.
2845
2846 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2847
2848 * nsfns.m (ns_get_screen): Rewrite.
2849 Don't presume selected-frame is of type `ns'.
2850
2851 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2852 all drivers.
2853
2854 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2855
2856 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2857
2858 * keyboard.h (add_user_signal): Fix typo in extern.
2859
2860 * lisp.h (add_user_signal): Remove extern.
2861
2862 * unexelf.c (unexec): Consider a section to precede the .bss section
2863 if its addresses overlap that of .bss.
2864 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2865 instead of dumping process.
2866
2867 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2868
2869 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2870
2871 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2872
2873 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2874
2875 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2876
2877 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2878 any statements.
2879
2880 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2881
2882 * process.c (read_process_output): Make sure the current buffer is
2883 always restored.
2884
2885 * coding.c (record_conversion_result): Don't modify
2886 Vlast_code_conversion_error for successful result.
2887 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2888
2889 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2890
2891 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2892 (load_charset_map): Remove unnecessary code.
2893
2894 2009-04-30 David Reitter <david.reitter@gmail.com>
2895
2896 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2897 through f24.
2898
2899 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2900
2901 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2902
2903 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2904 face_at_buffer_position.
2905 (face_before_or_after_it_pos, get_next_display_element)
2906 (note_mouse_highlight): Update face_at_buffer_position call.
2907
2908 * term.c (term_mouse_highlight):
2909 * msdos.c (IT_note_mouse_highlight):
2910 * fontset.c (Finternal_char_font):
2911 * font.c (font_at, font_range): Update face_at_buffer_position call.
2912
2913 * dispextern.h (face_at_buffer_position): Update prototype.
2914
2915 2009-04-30 Kenichi Handa <handa@m17n.org>
2916
2917 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2918
2919 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2920
2921 * callproc.c (Fcall_process): Fix GC protection. Make sure
2922 current buffer is always restored.
2923
2924 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2925
2926 * atimer.c (init_atimer): Also clear stopped_atimers.
2927
2928 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2929
2930 * process.c (create_process): Clean up merger residues of
2931 2008-07-17 change.
2932
2933 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2934
2935 * lread.c (Vread_circle): New variable.
2936 (read1): Disable recursive read if Vread_circle is nil.
2937
2938 2009-04-29 Kenichi Handa <handa@m17n.org>
2939
2940 * fontset.h (set_default_ascii_font): Delete extern.
2941
2942 * fontset.c (set_default_ascii_font): Delete this unused function.
2943
2944 * frame.c (x_set_font): When ARG is a font-object, check if the
2945 font-object matches with the ASCII font-spec of the frame's
2946 fontset. If not, create a new fontset for the frame. (Bug #3075)
2947
2948 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2949
2950 * fns.c (Flocale_info): Protect vector from GC during decoding.
2951
2952 * process.c (Fstart_process): Protect argv strings from GC during
2953 encoding.
2954
2955 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2956
2957 * sysdep.c: Include <ctype.h>.
2958
2959 2009-04-27 David Reitter <david.reitter@gmail.com>
2960
2961 * nsfont.m (nsfont_open): Remove unused variable shrink.
2962 Remove commented-out code.
2963
2964 2009-04-26 Johan Bockgård <bojohan@gnu.org>
2965
2966 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2967
2968 2009-04-25 Jason Rumney <jasonr@gnu.org>
2969
2970 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2971
2972 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2973
2974 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2975 Swap bytes in short integer if fringe bitmap width > 8.
2976
2977 2009-04-23 Kenichi Handa <handa@m17n.org>
2978
2979 * xfaces.c (Fx_list_fonts): If a font size is specified in
2980 PATTERN, set it in returned scalable fonts.
2981
2982 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
2983
2984 * keyboard.c (Fset_input_meta_mode): Doc fix.
2985
2986 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2987
2988 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
2989
2990 * coding.c (Fterminal_coding_system): Doc fix.
2991
2992 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2993 (Fx_display_pixel_height, Fx_display_planes)
2994 (Fx_display_color_cells, Fx_server_max_request_size)
2995 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2996 (Fx_display_mm_height, Fx_display_mm_width)
2997 (Fx_display_backing_store, Fx_display_visual_class)
2998 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2999 Doc fixes, replacing "terminal id" with "terminal object".
3000 (check_x_display_info): Handle terminal objects instead of
3001 terminal ids.
3002
3003 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3004 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3005 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3006 Doc fixes, replacing "terminal id" with "terminal object".
3007
3008 2009-04-21 Kenichi Handa <handa@m17n.org>
3009
3010 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3011 (font_score): Check AVGWIDTH too.
3012
3013 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3014 worst case.
3015 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3016 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3017
3018 2009-04-19 Jason Rumney <jasonr@gnu.org>
3019
3020 The following changes fix Bug#3005 for wide glyphs on each platform,
3021 without reintroducing Bug#1258 for stretch glyphs.
3022
3023 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3024 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3025 get_phys_cursor_geometry.
3026
3027 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3028 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3029 using get_phys_cursor_geometry.
3030
3031 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3032 correctly calculated.
3033
3034 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3037 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3038 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3039 is deprecated.
3040
3041 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3042
3043 * font.c (font_put_frame_data): Use xfree instead of free.
3044
3045 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3046
3047 * w32font.c (Qja, Qko): Remove declarations.
3048 (syms_of_w32font): Don't DEFSYM them.
3049
3050 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3051
3052 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3053
3054 * font.h (Qja, Qko): Extern them.
3055
3056 * ftfont.c (Qja, Qko): Remove declarations.
3057
3058 * xfont.c (Qja, Qko): Remove declarations.
3059
3060 2009-04-17 Kenichi Handa <handa@m17n.org>
3061
3062 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3063 string from a vector to handle Latin-1 characters correctly.
3064
3065 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3066 entity even if the cache hits.
3067
3068 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3069
3070 * search.c (boyer_moore): Use zero as marker value for a possible
3071 match instead of depending on overflow behavior. (Bug#2844)
3072
3073 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3074 * lisp.h: Adjust prototypes.
3075
3076 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3077
3078 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3079 change (Bug#3003).
3080
3081 2009-04-16 Kenichi Handa <handa@m17n.org>
3082
3083 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3084
3085 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3086 adstyle.
3087
3088 * ftfont.c (Qja, Qko): Don't make them static.
3089 (enum ftfont_cache_for): New enum.
3090 (fc_charset_table): Undo the previous change.
3091 (ftfont_get_latin1_charset): Delete it.
3092 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3093 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3094 non-scarable font, try to get AVERAGE_WIDTH.
3095 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3096 Change ft_face_cache from a list of a hash-table. Don't check
3097 `ja' and `ko' adstyle here.
3098 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3099 FTFONT_CACHE_FOR_CHARET.
3100 (ftfont_get_charset): Undo the previous change.
3101 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3102 (ftfont_close): Likewise.
3103 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3104
3105 * font.c (font_sort_entites): Change the meaning of the arg
3106 BEST-ONLY. Don't optimize for VEC of lenght 1.
3107 (font_select_entity): Just return the value of font_sort_entites.
3108
3109 * xfaces.c (merge_face_vectors): Reflect font properties in
3110 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3111 font_clear_prop if a face attribute doesn't change.
3112
3113 * charset.h (charset_ksc5601): Extern it.
3114
3115 * charset.c (charset_ksc5601): New variable.
3116 (Fdefine_charset_internal): Set charset_ksc5601.
3117 (init_charset_once): Initialize charset_ksc5601 to -1.
3118
3119 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3120
3121 * fileio.c (history_delete_duplicates): Remove unused declaration.
3122
3123 * callint.c (history_delete_duplicates): New declaration.
3124 (Fcall_interactively): Remove command history duplicates when
3125 history_delete_duplicates is true.
3126
3127 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3128
3129 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3130
3131 2009-04-14 Kenichi Handa <handa@m17n.org>
3132
3133 * font.c (Ffont_info): Fix docstring. Fix the second element of
3134 the returned value (bug#2949).
3135
3136 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3137
3138 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3139
3140 2009-04-14 Kenichi Handa <handa@m17n.org>
3141
3142 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3143 encoding charset is ascii_compatible.
3144
3145 * charset.c (Fdefine_charset_internal): Make charset
3146 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3147 code_offset is 0, and covers all ASCII characters.
3148
3149 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3150
3151 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3152 (ns_string_to_pasteboard_internal):
3153 * nsmenu.m (process_dialog):
3154 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3155 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3156 * lisp.h (Fx_load_color_file): Declare.
3157
3158 2009-04-13 Kenichi Handa <handa@m17n.org>
3159
3160 * font.c (font_delete_unmatched): Preserve the order of list elements.
3161 (font_select_entity): Suppress the code to optimize for the same
3162 kind of fonts.
3163 (font_load_for_lface): Get a font that supports at least ASCII
3164 characters.
3165
3166 * ftfont.c (Qja, Qko): New variables.
3167 (fc_charset_table): Delete uniquifier data for iso8859-1.
3168 (ftfont_get_latin1_charset): New function.
3169 (get_adstyle_property): New function.
3170 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3171 bitmap fonts.
3172 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3173 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3174 `ko' or `ja'.
3175 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3176 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3177 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3178 property.
3179 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3180 (syms_of_ftfont): DEFSYM Qja and Qko.
3181
3182 2009-04-09 Kenichi Handa <handa@m17n.org>
3183
3184 * charset.c (map_charset_chars): For a charset of `superset'
3185 method, fix calculation of code range.
3186
3187 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3188 from the list of extra properties.
3189 (font_clear_prop): Be sure to delete `:name' font property.
3190
3191 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3192
3193 * dispnew.c (redraw_overlapping_rows): Fix detection of
3194 overlapping for topmost and bottommost rows.
3195
3196 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3197
3198 2009-04-06 Jason Rumney <jasonr@gnu.org>
3199
3200 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3201
3202 2009-04-06 Kenichi Handa <handa@m17n.org>
3203
3204 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3205
3206 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3207
3208 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3209
3210 * ftfont.c (ftfont_open): Fix checking of the return value of
3211 FT_Load_Char. Fix setting font->underline_thickness.
3212
3213 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3214
3215 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3216 (Fterminal_parameters, Fterminal_parameter)
3217 (Fset_terminal_parameter): In doc string, refer to terminal
3218 objects rather than terminal ids.
3219
3220 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3221
3222 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3223 ret_lim_data. (Bug#2867)
3224
3225 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3226
3227 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3228 so they don't get wider than the window, matching 2006-01-23
3229 change to the partner function in xdisp.c (Bug#2800).
3230
3231 2009-04-03 Kenichi Handa <handa@m17n.org>
3232
3233 * print.c (print_object): Make each lowest sub_char_table start a
3234 new line (Bug#2866).
3235
3236 2009-04-02 Kenichi Handa <handa@m17n.org>
3237
3238 * fontset.c (fontset_font): Record no-font when a fontset
3239 explicitly tells not to try another font-specs.
3240
3241 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3242
3243 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3244
3245 2009-03-30 Kenichi Handa <handa@m17n.org>
3246
3247 * fontset.c (fontset_from_font): Specify only registry in a
3248 font-spec for all characters supported by that registry.
3249
3250 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3251 even if HAVE_M17N_FLT is not defined.
3252
3253 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3254
3255 * ftfont.c: Conditionalize prototyping and use of
3256 ftfont_variation_glyphs.
3257
3258 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3259
3260 * frame.c (delete_frame): Work around compiler bug.
3261
3262 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3263 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3264 Some more EMACS_INT.
3265 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3266
3267 * xdisp.c (dump_glyph): Fix typo.
3268
3269 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3270 (adjust_markers_gap_motion, adjust_markers_for_delete)
3271 (adjust_markers_for_insert, adjust_point)
3272 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3273 (make_gap, copy_text, count_size_as_multibyte, insert)
3274 (insert_and_inherit, insert_before_markers)
3275 (insert_before_markers_and_inherit, insert_1)
3276 (count_combining_before, count_combining_after, insert_1_both)
3277 (insert_from_string, insert_from_string_before_markers)
3278 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3279 (insert_from_buffer_1, adjust_after_replace)
3280 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3281 (replace_range_2, del_range, del_range_1, del_range_byte)
3282 (del_range_both, del_range_2, modify_region)
3283 (prepare_to_modify_buffer, signal_before_change)
3284 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3285 for buffer positions and sizes.
3286 * lisp.h: Adjust prototypes accordingly.
3287
3288 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3289 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3290 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3291
3292 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3293
3294 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3295
3296 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3297 lines and columns so we keep the same pixel height and width.
3298
3299 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3300 the property _NET_WM_STATE has changed.
3301 (x_handle_net_wm_state): New function to update frame parameter
3302 fullscreen.
3303 (x_term_init): Initialize atoms for _NET_WM_STATE.
3304
3305 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3306
3307 2009-03-27 Kevin Ryde <user42@zip.com.au>
3308
3309 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3310 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3311 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3312 (Fgpm_mouse_stop): Pass that new parameter.
3313 * termhooks.h (close_gpm): Adjust prototype.
3314
3315 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3316
3317 * lisp.h (Fx_focus_frame): Declare.
3318
3319 * callint.c (Fcall_interactively): For '^' just delegate the work to
3320 handle-shift-selection.
3321 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3322
3323 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3324
3325 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3326
3327 * data.c (Qinteractive_form): New variable.
3328 (Finteractive_form): Use it.
3329
3330 * eval.c (Fcommandp): Use Qinteractive_form.
3331
3332 2009-03-24 Jason Rumney <jasonr@gnu.org>
3333
3334 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3335 Calculate total size precisely. Decode environment variables
3336 before substituting. (Bug#38)
3337
3338 2009-03-24 Kenichi Handa <handa@m17n.org>
3339
3340 * font.c (find_font_encoding): Return Qnil for unsupported
3341 encoding (Bug#2722).
3342
3343 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3344
3345 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3346 that gdpy is set.
3347
3348 2009-03-22 Alan Mackenzie <acm@muc.de>
3349
3350 * callint.c (Finteractive): Clarify the doc string - even
3351 promptless elements need \n separators.
3352
3353 2009-03-22 Jason Rumney <jasonr@gnu.org>
3354
3355 * w32term.c (syms_of_w32term): Doc fix for
3356 x-use-underline-position-properties.
3357
3358 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3359
3360 * w32.c (getpwuid): Change argument type to unsigned.
3361 (struct w32_id): Change type of `rid' member to unsigned.
3362 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3363 argument ID to unsigned. All callers changed.
3364 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3365
3366 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3367
3368 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3369 negative, produce a float value.
3370
3371 * dired.c (make_uid, make_gid): New functions.
3372 (Ffile_attributes): Use them to avoid negative UID and GID.
3373
3374 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3375
3376 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3377 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3378 Fix typos in docstrings.
3379
3380 2009-03-19 Kenichi Handa <handa@m17n.org>
3381
3382 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3383 changed, use font_load_for_lface to get a new font object.
3384 Call free_realized_fontset after handling ASCII font change.
3385
3386 * frame.c (x_set_font): Handle the case that ARG is a cons.
3387
3388 2009-03-19 Glenn Morris <rgm@gnu.org>
3389
3390 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3391
3392 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3393
3394 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3395
3396 2009-03-19 Kenichi Handa <handa@m17n.org>
3397
3398 * charset.c (load_charset_map_from_file): When a mapfile can't be
3399 loaded, signal an error.
3400
3401 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3402
3403 * dired.c (Ffile_attributes): Make sure UID and GID are always
3404 positive, even if the value is too large for a positive EMACS_INT.
3405 Doc fix.
3406
3407 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3408
3409 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3410
3411 * xmenu.c (xdialog_show): Move Fredisplay call ...
3412 (Fx_popup_dialog): ... here.
3413
3414 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * dired.c (file_name_completion): Disable the first optimization just
3417 installed, since it is not implemented correctly.
3418
3419 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3420
3421 * dired.c (file_name_completion): Check completion-ignored-extensions
3422 only if the entry can affect bestmatch.
3423 Stop the search early, as Ftry_completion already does.
3424
3425 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3426
3427 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3428
3429 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3430
3431 * keyboard.c (parse_menu_item): Don't display remappings as menu
3432 equivalent bindings (Bug#788).
3433
3434 2009-03-15 Jason Rumney <jasonr@gnu.org>
3435
3436 * w32term.h (WM_EMACS_PAINT): New message.
3437 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3438 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3439 before passing to lisp thread. (Bug#950)
3440
3441 2009-03-14 David Reitter <david.reitter@gmail.com>
3442
3443 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3444 variable as it was never reset.
3445 (ns_term_init): Remove initialization of Lisp-settable defaults
3446 and ns_expand_space.
3447 (-setPanelFromDefaultValues): Remove ns_expand_space.
3448 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3449 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3450 i.e. no additional spacing, similar to Carbon port.
3451
3452 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3453 * nsfns.m (ns-popup-prefs-panel): Remove.
3454
3455 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3456
3457 * sound.c (alsa_configure): Remove call to deprecated
3458 snd_pcm_sw_params_set_xfer_align.
3459
3460 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3461
3462 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3463 after clicking in a detached tool bar.
3464 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3465
3466 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3467
3468 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3469 int/Lisp_Object mixup).
3470
3471 2009-03-13 Kenichi Handa <handa@m17n.org>
3472
3473 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3474 Handle NAME nil and t correctly. Callers changed.
3475 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3476 (set_fontset_font): Change ARG to a vector. Handle range_list in
3477 ARG correctly.
3478 (Fset_fontset_font): Fix the case that TARGET is both a script
3479 name and charset name. Adjust the arg to set_fontset_font for
3480 the above change.
3481 (fontset_from_font): Fix previous change.
3482 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3483 entry. If FONTSET is the default fontset, don't set the extra
3484 slot of the returning char-table.
3485
3486 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3487
3488 * nsfns.m (Fx_close_connection): Doc fix.
3489 (Fns_do_applescript): Reflow docstring.
3490 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3491 (Fx_display_pixel_width, Fx_display_pixel_height)
3492 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3493 Fix typos in docstrings.
3494 (Fns_set_alpha): Fix typos in error messages.
3495
3496 2009-03-12 David Reitter <david.reitter@gmail.com>
3497
3498 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3499 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3500 were used for such events.
3501
3502 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3503 (toggleToolbar, performDragOperation, runHelp): Use it.
3504
3505 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3506 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3507
3508 2009-03-11 Kenichi Handa <handa@m17n.org>
3509
3510 * font.h (font_open_by_spec): Extern it.
3511
3512 * font.c (font_open_by_spec): New function.
3513 (font_open_by_name): Use font_open_by_spec.
3514
3515 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3516 fontset of the frame.
3517
3518 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3519 modify the default font of frames that use this fontset.
3520 (num_auto_fontsets): New variable.
3521 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3522 name. Be sure to set FONTSET_ASCII to the correct font name.
3523 (update_auto_fontset_alist): New function.
3524
3525 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3526
3527 * makefile.w32-in: Update dependencies.
3528
3529 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3530
3531 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3532
3533 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3534
3535 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3536
3537 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3538
3539 * lread.c (Feval_buffer): Doc fix.
3540
3541 2009-03-09 Kenichi Handa <handa@m17n.org>
3542
3543 * charset.c (Qfile_name_handler_alist): Extern it.
3544 (load_charset_map_from_file): Temporarily bind
3545 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3546
3547 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3548
3549 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3550 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3551
3552 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3553
3554 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3555 (x_set_window_size): Change back to calculated method of setting
3556 toolbar height under Cocoa. (Bug#2546)
3557 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3558 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3559
3560 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3561
3562 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3563 accelerator in parens under GNUstep.
3564
3565 2009-03-06 Kenichi Handa <handa@m17n.org>
3566
3567 These changes are to detect incorrect composition sequence without
3568 looking ahead the source. (Bug#2370)
3569
3570 * coding.h: Include "composite.h".
3571 (enum compisition_state): New enum.
3572 (struct compisition_status): New struct.
3573 (struct iso_2022_spec): New member cmp_status.
3574 (struct emacs_mule_spec): New struct.
3575 (struct coding_system): New members ctext_extended_segment_len and
3576 embedded_utf_8. Change the union member
3577 spec.emacs_mule_full_support to spec.emacs_mule.
3578
3579 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3580 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3581 (MAX_ANNOTATION_LENGTH): Define to 5.
3582 (ADD_COMPOSITION_DATA): New arg nbytes.
3583 (emacs_mule_char): New arg cmp_status.
3584 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3585 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3586 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3587 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3588 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3589 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3590 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3591 (EMACS_MULE_COMPOSITION_END): New macro.
3592 (emacs_mule_finish_composition): New function.
3593 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3594 (decode_coding_emacs_mule): Avoid long looking ahead while
3595 handling composition.
3596 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3597 (ENCODE_COMPOSITION_RULE): New macro.
3598 (finish_composition): New function.
3599 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3600 (DECODE_COMPOSITION_START): New implementation.
3601 (DECODE_COMPOSITION_END): Likewise.
3602 (STORE_COMPOSITION_RULE): New macro.
3603 (decode_coding_iso_2022): Avoid long looking ahead while handling
3604 composition, CTEXT extended segment, and embedded UTF-8.
3605 (setup_coding_system): For a coding of type iso-2022, reset
3606 CODING_ISO_EXTSEGMENT_LEN (coding) and
3607 CODING_ISO_EMBEDDED_UTF_8 (coding).
3608 (get_translation): Delete arguments last_block, from_nchars,
3609 to_nchars. Callers changed.
3610 (produce_chars): Don't modify charbuf. Adjusted for the change of
3611 get_translation.
3612 (produce_composition): Adjust for the new annotation sequence.
3613 (handle_composition_annotation): Likewise.
3614 (consume_chars): Adjust for the change of get_translation.
3615
3616 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3617
3618 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3619
3620 2009-03-05 Kenichi Handa <handa@m17n.org>
3621
3622 * font.c (font_select_entity): New function.
3623 (font_find_for_lface): Use font_select_entity to select a font.
3624
3625 * fontset.c (fontset_find_font): If a font found without
3626 restricting to the characters C doesn't support C, try to find a
3627 font with C restriction.
3628
3629 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3630
3631 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3632
3633 2009-03-04 Jason Rumney <jasonr@gnu.org>
3634
3635 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3636 characters that have already been read. (Bug#2569)
3637
3638 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3639 Log an error message if check_image_size failed.
3640 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3641 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3642
3643 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3644
3645 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3646 when decoding process output.
3647
3648 2009-03-01 Richard M Stallman <rms@gnu.org>
3649
3650 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3651
3652 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3653
3654 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3655
3656 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3657 (decode_coding_emacs_mule, decode_coding_iso_2022)
3658 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3659 (decode_coding_raw_text, decode_coding_charset)
3660 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3661 Honor inhibit-eol-conversion. (Bug #2186)
3662
3663 2009-02-28 Jason Rumney <jasonr@gnu.org>
3664
3665 * coding.c (detect_coding_charset): If not checking latin extra,
3666 fail on characters between 0x80 and 0xA0. (Bug#2354)
3667
3668 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3669
3670 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3671 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3672
3673 2009-02-27 Glenn Morris <rgm@gnu.org>
3674
3675 * callint.c (Finteractive): Doc fix.
3676
3677 2009-02-27 Kenichi Handa <handa@m17n.org>
3678
3679 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3680
3681 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3682
3683 * font.c (font_style_to_value): Set value for unknown symbols to
3684 100 instead of 255.
3685 (weight_table, slant_table, width_table): Treat "unspecified" as
3686 the default value.
3687
3688 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3689
3690 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3691
3692 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3693
3694 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3695 error as soon as a recursive load is detected.
3696
3697 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3698
3699 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3700 before caching.
3701
3702 2009-02-24 Kenichi Handa <handa@m17n.org>
3703
3704 * fontset.c (fontset_find_font): Fix the condition for checking
3705 unavailable font.
3706
3707 2009-02-24 Glenn Morris <rgm@gnu.org>
3708
3709 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3710 whitespace that confuses documentation.
3711
3712 2009-02-23 Miles Bader <miles@gnu.org>
3713
3714 * process.c (Flist_system_processes, Fprocess_attributes)
3715 (syms_of_process): Rename `system-process-attributes' to
3716 `process-attributes'.
3717
3718 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3719
3720 * coding.h (struct coding_system): Make safe_charsets a pointer to
3721 unsigned char.
3722 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3723 being 255.
3724 (SAFE_CHARSET_P): Likewise.
3725 (setup_iso_safe_charsets): Properly setup safe_charsets.
3726 (Fdefine_coding_system_internal): Likewise.
3727 (setup_coding_system): Likewise. Remove unneeded casts.
3728 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3729 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3730 unneeded casts.
3731
3732 * insdel.c (del_range_2): Don't modify gap contents when called
3733 from decode_coding_object. (Bug#1809)
3734
3735 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3736
3737 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3738 Qfont_object.
3739 (Ftype_of): Recognize font objects.
3740
3741 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3742
3743 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3744 moved to data.c.
3745
3746 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3747
3748 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3749 async_iconified. Based on a patch by Christian Lynbech
3750 <christian.lynbech@tieto.com>.
3751 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3752
3753 2009-02-20 Glenn Morris <rgm@gnu.org>
3754
3755 * syntax.c (Fskip_chars_forward): Fix doc typo.
3756
3757 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3760
3761 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3762
3763 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3764
3765 2009-02-19 Kenichi Handa <handa@m17n.org>
3766
3767 * coding.c (detect_coding): Preserve coding->mode.
3768 Don't overflow coding->carryover. (Bug#2370)
3769
3770 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3771
3772 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3773
3774 2009-02-18 Kenichi Handa <handa@m17n.org>
3775
3776 * font.c (font_check_otf_features): Fix handling of `nil' element.
3777 (Ffont_spec): Describe :lang and :otf in the docstring.
3778
3779 2009-02-16 Andreas Schwab <schwab@suse.de>
3780
3781 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3782 string.
3783
3784 2009-02-16 Kenichi Handa <handa@m17n.org>
3785
3786 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3787 (Bug#1723)
3788
3789 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3790
3791 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3792
3793 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3794 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3795
3796 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3797
3798 * msdos.c (MAX_SCREEN_BUF): New macro.
3799 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3800 Encode the entire run of glyphs sharing the same face, instead of
3801 doing that one glyph at a time (fixes a bug with displaying
3802 double-size characters).
3803
3804 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3805
3806 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3807
3808 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3809 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3810 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3811
3812 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3813 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3814
3815 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3816
3817 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3818 invisible areas.
3819
3820 2009-02-12 Jason Rumney <jasonr@gnu.org>
3821
3822 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3823 (add_font_entity_to_list): Call check_face_name even when family
3824 is unspecified.
3825
3826 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3827 Release DC when finished. Use NULL window to refer to desktop.
3828 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3829
3830 * w32font.c (add_font_entity_to_list): Fix check for substituted
3831 raster fonts. (Bug#2219)
3832
3833 2009-02-12 Kenichi Handa <handa@m17n.org>
3834
3835 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3836 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3837 (autocmp_chars): Use fast_looking_at. Don't compose more
3838 characters than MAX_COMPOSITION_COMPONENTS.
3839 (find_automatic_composition): While looking forward and backward,
3840 check static composition. Fix where to stop looking forward.
3841 (composition_adjust_point): Fix checking of static composition.
3842 (Fcomposition_get_gstring): Pay attention to
3843 MAX_COMPOSITION_COMPONENTS.
3844
3845 * lisp.h (fast_looking_at): Extern it.
3846
3847 * search.c (fast_looking_at): New function.
3848
3849 * term.c (encode_terminal_code): Adjust for the change of
3850 <struct glyph>.u.cmp.to.
3851 (append_composite_glyph): Likewise.
3852
3853 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3854 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3855 composition.
3856 (append_composite_glyph): Adjust for the change of
3857 <strcut glyph>.u.cmp.to.
3858
3859 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3860
3861 * casetab.c (init_casetab_once):
3862 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3863 * font.c (font_update_lface):
3864 * fontset.c (Fnew_fontset):
3865 * ftfont.c (ftfont_drive_otf):
3866 * xfont.c (xfont_open):
3867 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3868
3869 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3870
3871 * fileio.c (Fwrite_region): !NILP -> CONSP.
3872
3873 2009-02-10 Andreas Schwab <schwab@suse.de>
3874
3875 * process.c (send_process): Properly relocate pointer into data
3876 when using encoded data. (Bug#2272)
3877
3878 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3879
3880 * coding.c (detect_coding_charset): Fix previous change.
3881
3882 2009-02-08 Jason Rumney <jasonr@gnu.org>
3883
3884 * w32fns.c (w32_hide_hourglass): Handle case where frame
3885 disappeared while hourglass was displayed. (Bug #2193)
3886
3887 2009-02-07 Andreas Schwab <schwab@suse.de>
3888
3889 * unexelf.c (unexec): Fix error message.
3890
3891 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3892
3893 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3894 when modal window is active. (Bug #2152)
3895 (applicationShouldTerminate:): Remove now-unneeded while loop
3896 around NSRunAlertPanel.
3897
3898 * nsmenu.m (popupSession): New file-global variable.
3899 (pop_down_menu): End the popupSession before closing dialog.
3900 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3901 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3902 don't query NSApp for events (just sleep instead).
3903
3904 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3905
3906 * coding.c (syms_of_coding) <translation-table-for-input>:
3907 Modify doc string to discourage use for character code unification.
3908
3909 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3910
3911 * atimer.c (run_timers): Update pending_atimers.
3912
3913 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3914
3915 * image.c (svg_load_image): Fix last change.
3916
3917 * xfns.c (Fx_create_frame): Signal an error if no font is
3918 found (Bug#2147).
3919
3920 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3921
3922 * character.c (syms_of_character) <script-representative-chars>:
3923 Fix typo in docstring.
3924
3925 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3926
3927 * nsmenu.m (pop_down_menu): New function.
3928 (ns_popup_dialog): Call it on unwind.
3929 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3930 call timer_check() (Bug#2154).
3931 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3932 handling_signal is set.
3933 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3934
3935 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3936
3937 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3938
3939 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3940
3941 * keyboard.c (poll_for_input_1, handle_async_input):
3942 Set handling_signal under HAVE_NS.
3943
3944 2009-02-04 Glenn Morris <rgm@gnu.org>
3945
3946 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3947
3948 2009-02-04 Kenichi Handa <handa@m17n.org>
3949
3950 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3951
3952 * charset.c (Fchar_charset): New optional arg restriction.
3953
3954 * coding.h (coding_system_charset_list): Extern it.
3955
3956 * coding.c (coding_system_charset_list): New function.
3957
3958 * composite.c: Include coding.h and termhooks.h.
3959 (composition_gstring_p): Fix for the terminal case.
3960 (composition_gstring_width): Likewise.
3961 (fill_gstring_body): Likewise.
3962 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3963 the frame.
3964 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3965 is within a composition.
3966 (Fcomposition_get_gstring): Fix the terminal case.
3967
3968 * term.c (encode_terminal_code): Fix handling of composition.
3969 (produce_composite_glyph): For static composition, get pixel_width
3970 from struct composition.
3971
3972 2009-02-02 Andreas Schwab <schwab@suse.de>
3973
3974 * unexelf.c (unexec): Handle unaligned bss offset.
3975
3976 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3977
3978 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3979 XT,w32read_socket changes to ns_read_socket.
3980
3981 * keyboard.c (handle_interrupt): Don't call
3982 quit_throw_to_read_char() under NS.
3983
3984 * blockinput.h: Remove NS-specific code.
3985
3986 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3987
3988 * dispnew.c (window_change_signal): Don't try to get the size of a
3989 suspended tty frame.
3990 * term.c (Fresume_tty): Resize if the size has changed while the
3991 tty was suspended.
3992
3993 * alloc.c (mark_stack): Properly conditionalize previous change.
3994
3995 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
3996
3997 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3998 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3999 Remove; this code is not used on Windows.
4000
4001 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4002
4003 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4004 EOLs that also has stray ^M characters.
4005
4006 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4007
4008 * atimer.c (run_timers, alarm_signal_handler):
4009 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4010 * w32inevt.c (w32_console_read_socket):
4011 * w32term.c (w32_read_socket):
4012 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4013
4014 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4015
4016 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4017 Initialize it as a relative filename pattern.
4018 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4019 (Fcall_process_region): Simplify temp file creation using
4020 temporary-file-directory.
4021
4022 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4023
4024 * msdos.c: Rename pending_signals to msdos_pending_signals.
4025 (sig_suspender, sigprocmask): Adjust.
4026
4027 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4028
4029 * keyboard.c (pending_signals): New var.
4030 (poll_for_input, input_available_signal, init_keyboard): Set it.
4031 (process_pending_signals): New function.
4032
4033 * lisp.h (QUIT): Check pending_signals instead of
4034 interrupt_input_pending. Use process_pending_signals.
4035
4036 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4037
4038 * process.c (wait_reading_process_output): Use process_pending_signals.
4039
4040 * sysdep.c (emacs_write): Use process_pending_signals.
4041
4042 * xterm.c (XTread_socket): Update pending_signals.
4043
4044 * w32term.c (w32_read_socket): Update pending_signals.
4045
4046 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4047
4048 2009-01-29 Kenichi Handa <handa@m17n.org>
4049
4050 * xftfont.c (xftfont_has_char): New function.
4051 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4052
4053 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4054
4055 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4056 under GNUstep.
4057 (ns_query_color): New declaration.
4058
4059 * nsterm.m (ns_confirm_quit): New variable.
4060 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4061 (EmacsApp-applicationShouldTerminate:): Use it.
4062 (EmacsPrefsController): Let user set it.
4063 (ns_query_color): New function.
4064 (ns_defined_color): Use it.
4065 (ns_initialize): Drop.
4066 (ns_term_init): Add two lines from ns_initialize(), and set
4067 input_interrupt_mode to nil.
4068
4069 * image.c (svg_load_image): Don't right-shift background RGB when
4070 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4071
4072 2009-01-28 Kenichi Handa <handa@m17n.org>
4073
4074 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4075 (fontset_get_font_group): Remember that no font-group is specified
4076 for C.
4077
4078 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4079
4080 * fns.c (concat): Check for string overflow (bug#1787).
4081
4082 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4083 Quadruple undo limits (bug#1501).
4084
4085 2009-01-27 Kenichi Handa <handa@m17n.org>
4086
4087 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4088 directly use GT_Get_Char_index.
4089
4090 * xftfont.c (struct xftfont_info): New member `index'.
4091
4092 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4093 (Ffontset_font): Adjust for the change of fontset entry.
4094
4095 2009-01-26 Kenichi Handa <handa@m17n.org>
4096
4097 * fontset.c (fontset_find_font): Fix handling of non-cons return
4098 value of fontset_get_font_group.
4099 (fontset_font): Revert last change.
4100
4101 2009-01-26 Jason Rumney <jasonr@gnu.org>
4102
4103 * w32font.c (w32font_list_internal): Return quickly if registry is
4104 unknown. Simplify final return.
4105 (add_font_entity_to_list): Break complex logic down into more
4106 manageable chunks. Move unknown registry check to
4107 w32font_list_internal.
4108
4109 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4110
4111 Changes to remove Feval calls from GUI under NS.
4112
4113 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4114 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4115 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4116
4117 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4118 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4119 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4120 instead of NON_ASCII_KEYSTROKE_EVENT.
4121 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4122 (EmacsApp-applicationShouldTerminate:): Query user.
4123 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4124 instead of Feval.
4125
4126 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4127
4128 * keyboard.c (kbd_buffer_get_event): Check for it.
4129 (keys_of_keyboard): Define lispy keys for
4130 ns-put/unput-working-text.
4131
4132 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4133 versions.
4134 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4135
4136 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4137
4138 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4139 setting current_buffer directly. (Bug#2044)
4140
4141 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4142
4143 * fontset.c (fontset_font): If we know there is no font, don't do
4144 any work. (Bug#1952, bug#1990).
4145
4146 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4147
4148 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4149
4150 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4151 (ns_no_defaults): New declaration.
4152 (main): Use it.
4153
4154 * nsterm.h (ns_no_defaults): New declaration.
4155
4156 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4157
4158 * nsterm.m (ns_no_defaults): New variable.
4159 (ns_initialize): Don't read defaults when ns_no_defaults.
4160 (EmacsView-readSelectionFromPasteboard:)
4161 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4162 NSServicesRequests protocol. (Bug#1435)
4163 (ns_dumpglyphs_stretch): New function.
4164 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4165 of 2008-11-15 to other terms. (Bug#615)
4166
4167 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4168
4169 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4170
4171 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4172 call for Sparc64.
4173
4174 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4175
4176 * nsfns.m:
4177 * nsgui.h:
4178 * nsmenu.m:
4179 * nsselect.m:
4180 * nsterm.h:
4181 * nsterm.m: Remove '23' comments that indicated code added during
4182 update from emacs-20 -> emacs-23.
4183
4184 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4185
4186 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4187 ns_alternate_modifier. (Bug#1217)
4188
4189 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4190 Display all shortcuts, including those w/o super modifier.
4191
4192 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4193
4194 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4195
4196 * fileio.c (Vwrite_region_post_annotation_function)
4197 (Vwrite_region_annotation_buffers): New vars.
4198 (build_annotations_unwind): Just reset
4199 Vwrite_region_annotation_buffers.
4200 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4201 Call write-region-post-annotation-function.
4202 (build_annotations): Add to Vwrite_region_annotation_buffers if
4203 buffer changes.
4204
4205 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4206
4207 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4208 Tiger.
4209 * nsfns.m (ns_do_applescript):
4210 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4211
4212 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4213
4214 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4215
4216 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4217
4218 * nsmenu.m (NSMENUPROFILE): Change #if style.
4219
4220 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4221
4222 * nsterm.m (x_set_frame_alpha): Add prototype.
4223 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4224 handle Ctrl-tab. (Bug#1841)
4225 (ns_get_color): Use unsigned long long for scanned hex string value.
4226 (ns_term_shutdown): Abort on non SIGTERM signals.
4227 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4228 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4229 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4230 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4231 (ns_defined_color): Fix settings of the XColor variable fields:
4232 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4233
4234 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4235 DPI. (Bug#1316)
4236 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4237 values in onTiger section.
4238
4239 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4240
4241 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4242 Check return value of font_spec_from_name.
4243 (Fx_list_fonts): Doc fix. (Bug#1951)
4244
4245 * font.c (font_spec_from_name): Return Qnil if font name could not
4246 be parsed.
4247 (font_parse_name): Treat a `?' character as part of an XLFD.
4248
4249 * fns.c (Fsubstring): Doc fix.
4250
4251 2009-01-19 Kenichi Handa <handa@m17n.org>
4252
4253 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4254 (ftfont_list): Likewise.
4255
4256 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4257
4258 * dbusbind.c (Fdbus_register_signal):
4259 * process.c (conv_sockaddr_to_lisp):
4260 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4261
4262 * callproc.c (Fgetenv_internal): Doc fix.
4263
4264 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
4265
4266 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4267 it is not even used.
4268
4269 2009-01-16 Glenn Morris <rgm@gnu.org>
4270
4271 * font.c (Ffont_variation_glyphs): Silence compiler.
4272
4273 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
4274
4275 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4276 Reported by David Robinow <drobinow@gmail.com>.
4277
4278 2009-01-15 Kenichi Handa <handa@m17n.org>
4279
4280 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4281
4282 2009-01-14 Jason Rumney <jasonr@gnu.org>
4283
4284 * frame.c (x_set_font): Always store a font to the font parameter,
4285 never a fontset. (Bug#1562)
4286
4287 2009-01-14 Kenichi Handa <handa@m17n.org>
4288
4289 * coding.c (TWO_MORE_BYTES): New macro.
4290 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4291
4292 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4293
4294 * font.c (font_clear_prop): If clearing the family, clear the font
4295 width index too.
4296
4297 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4298
4299 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4300
4301 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4302 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4303 functions, use sizeof.
4304
4305 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4306
4307 * keyboard.c (read_char): Fix case where last_nonmenu_event
4308 returned a bad value with submenus. (Bug#447)
4309
4310 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4311
4312 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4313 family, clear the font width index too.
4314
4315 2009-01-11 Jason Rumney <jasonr@gnu.org>
4316
4317 * keyboard.c (cmd_error_internal): Exit when errors occur before
4318 frame creation and not in daemon mode. (Bug#1836)
4319
4320 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4321
4322 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4323 of a display vector, backtrack.
4324 (try_window_reusing_current_matrix): Check glyph type before
4325 referencing charpos member.
4326
4327 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4328
4329 Fix Bug #876:
4330
4331 * coding.c (inhibit_null_byte_detection): New variable.
4332 (detect_coding, detect_coding_system): Don't pay attention to null
4333 bytes if inhibit_null_byte_detection is non-zero.
4334 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4335 <inhibit-iso-escape-detection>: Doc fix.
4336
4337 2009-01-09 Jason Rumney <jasonr@gnu.org>
4338
4339 * w32font.c (add_font_entity_to_list): Don't report unknown
4340 Windows charset as any unrecognized registry. (Bug#1548)
4341 Only report Unicode Plane 2 fonts as unicode-sip.
4342
4343 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4344
4345 * xfaces.c (Fx_font_family_list): Delete function.
4346 Move compatibility version to faces.el.
4347
4348 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4349
4350 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4351
4352 * frame.c (x_set_frame_parameters): Remember requested value for
4353 fullscreen before it's reset by the parameter handler.
4354
4355 2009-01-09 Glenn Morris <rgm@gnu.org>
4356
4357 * keyboard.c (last_command_char): For clarity, rename to...
4358 (last_command_event): ... and update all users.
4359 (last_input_char): For clarity, rename to...
4360 (last_input_event): ... and update all users.
4361 (last-command-char, last-input-char): Move to subr.el as aliases.
4362 * cmds.c, commands.h: Update for last_command_char rename.
4363
4364 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4365
4366 * font.c (font_open_for_lface): Handle unspecified height attribute.
4367
4368 2009-01-08 Jason Rumney <jasonr@gnu.org>
4369
4370 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4371 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4372 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4373 Don't declare.
4374 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4375 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4376
4377 2009-01-07 Kenichi Handa <handa@m17n.org>
4378
4379 * fileio.c (Finsert_file_contents): In the case of replace,
4380 remember the coding system used for decoding in
4381 coding_system (Bug#1039).
4382
4383 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4384 breaking the loop. (Bug#870)
4385 (decode_coding_utf_16, decode_coding_emacs_mule)
4386 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4387 (decode_coding_charset): Likewise.
4388
4389 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4390
4391 * frame.c (x_set_frame_parameters): Make sure height (width) get
4392 applied when fullwidth (fullheight) is set. (Bug#1522)
4393
4394 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4395
4396 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4397 (utc_base): Declare as ULONGLONG, not long double.
4398 (convert_time_raw): Delete.
4399 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4400 (initialize_utc_base): New function.
4401 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4402 (convert_from_time_t): Use initialize_utc_base; compute result with
4403 64-bit arithmetic.
4404 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4405
4406 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4407
4408 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4409 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4410 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4411 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4412 [!subprocesses]: Define.
4413 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4414 (Flist_system_processes, Fsystem_process_attributes)
4415 [!subprocesses]: Call list_system_processes and
4416 system_process_attributes instead of returning Qnil.
4417
4418 * dosfns.c (system_process_attributes, list_system_processes):
4419 New functions.
4420
4421 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4422
4423 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4424 Don't use the default (no-op) implementation.
4425
4426 2009-01-03 Jason Rumney <jasonr@gnu.org>
4427
4428 * keyboard.c (parse_modifiers_uncached): Wheel events are
4429 clicks (bug#687).
4430
4431 * w32term.c (x_query_colors, x_query_color): New functions.
4432
4433 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4434 (svg_load_image): Cast returned pointers from dynamically loaded
4435 functions. Eliminate W32 specific code.
4436
4437 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4438
4439 * nsfns.m (x_set_foreground_color, x_set_background_color)
4440 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4441 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4442 x_ prefix instead of ns_. Update references.
4443 (syms_of_nsfns): Add a FIXME comment.
4444
4445 * nsterm.m (x_set_cursor_type): New prototype.
4446 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4447
4448 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4449 for Solaris instead of incorrectly providing Qutime and Qcutime.
4450
4451 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4452
4453 * w32.c (process_times): Compute sum of utime and stime.
4454 (system_process_attributes): Add Qtime to the alist.
4455
4456 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4457 and add them to the alist.
4458
4459 * process.c (top level) <Qtime, Qctime>: New variables.
4460 (syms_of_process): staticpro them.
4461 (Fsystem_process_attributes): Add their documentation to the doc
4462 string.
4463
4464 * process.h: Declare Qtime and Qctime.
4465
4466 2009-01-02 Jason Rumney <jasonr@gnu.org>
4467
4468 * image.c (Qgobject): New symbol.
4469 (syms_of_image): Initialize it.
4470 (init_svg_functions): Load some functions from gobject library.
4471
4472 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4473
4474 * frame.c (make_terminal_frame): Remove redundant code and useless
4475 block.
4476
4477 2009-01-01 Andreas Schwab <schwab@suse.de>
4478
4479 * process.c (conv_sockaddr_to_lisp): Add workaround for
4480 getsockname bug on BSD.
4481
4482 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4483
4484 * xfns.c (x_create_tip_frame): Set border width of the X window.
4485
4486 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4487
4488 2009-01-01 Jason Rumney <jasonr@gnu.org>
4489
4490 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4491 Don't block input, as per earlier xterm.c changes.
4492
4493 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4494
4495 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4496 (ns_appkit_version_int): New function.
4497 (x-server-version): Use ns_appkit_version_int and follow 21+
4498 convention of returning 3 integers.
4499
4500 2008-12-30 Kenichi Handa <handa@m17n.org>
4501
4502 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4503 (CHAR_SURROGATE_PAIR_P): New macro.
4504
4505 * font.h (struct font_driver): New member get_variation_glyphs.
4506
4507 * font.c (font_range): Don't require a font for a variation selector.
4508 (Ffont_variation_glyphs): New function.
4509 (syms_of_font): Defsubr it.
4510
4511 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4512 ftfont_variation_glyphs.
4513 (setup_otf_gstring): New function.
4514 (ftfont_drive_otf): Use it.
4515 (ftfont_shape_by_flt): Handle variation selector.
4516 (ftfont_variation_glyphs): New function.
4517
4518 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4519
4520 * frame.c (Vemacs_iconified): Remove.
4521
4522 2008-12-30 Jason Rumney <jasonr@gnu.org>
4523
4524 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4525 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4526
4527 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4528
4529 * indent.c (Fvertical_motion): Don't advance iterator if we have
4530 reseated to the desired position.
4531
4532 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4533 checking for pos match.
4534
4535 2008-12-30 Kenichi Handa <handa@m17n.org>
4536
4537 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4538 just get the low 8-bit of the code.
4539
4540 * font.c (font_intern_prop): Validate str as multibyte.
4541
4542 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4543
4544 * dispextern.h (struct face): Move lface and hash from the middle
4545 of bitfields.
4546
4547 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4548
4549 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4550
4551 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4552 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4553 instead of intervals.h.
4554
4555 2008-12-26 Andreas Schwab <schwab@suse.de>
4556
4557 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4558 cons.
4559
4560 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4561
4562 * textprop.c (Qminibuffer_prompt): New variable.
4563 (syms_of_textprop): Initialize it.
4564 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4565 in minibuffer-prompt face. (Bug#1662)
4566
4567 2008-12-25 Jason Rumney <jasonr@gnu.org>
4568
4569 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4570
4571 2008-12-24 Jason Rumney <jasonr@gnu.org>
4572
4573 * ralloc.c (r_alloc_reset_variable): New function.
4574
4575 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4576 record of what points where. (Bug#716)
4577
4578 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4579
4580 * minibuf.c (read_minibuf): Follow the non-interactive case when
4581 running as a daemon, before detaching.
4582
4583 2008-12-22 Andreas Schwab <schwab@suse.de>
4584
4585 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4586 * gtkutil.c (free_widget_value): Use xfree instead of free.
4587
4588 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4589
4590 * frame.c (delete_frame): New function derived from
4591 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4592 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4593 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4594 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4595 * frame.h: Extern delete_frame.
4596 * window.c (window_loop):
4597 * terminal.c (delete_terminal):
4598 * xterm.c (x_connection_closed):
4599 * xfns.c (Fx_hide_tip):
4600 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4601
4602 2008-12-21 Jason Rumney <jasonr@gnu.org>
4603
4604 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4605 when character maps to .notdef character.
4606
4607 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4608
4609 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4610
4611 2008-12-20 Jason Rumney <jasonr@gnu.org>
4612
4613 * frame.c (Fmake_terminal_frame): Raise an error when called from
4614 a graphical frame on Windows. (Bug#1325)
4615
4616 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4617
4618 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4619
4620 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4621
4622 * minibuf.c (Fread_buffer): Doc fix.
4623
4624 2008-12-20 Jason Rumney <jasonr@gnu.org>
4625
4626 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4627 server name in UNC paths. (Bug#719)
4628
4629 * coding.c (decode_coding): Clear chars_at_source flag when using
4630 charbuf. (Bug#1035)
4631
4632 2008-12-19 Daniel Engeler <engeler@gmail.com>
4633
4634 * sysdep.c (serial_configure): Fix typo.
4635
4636 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4637
4638 * sysdep.c: Include alloca.h.
4639 (system_process_attributes): Add implementation for Solaris.
4640
4641 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4642
4643 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4644
4645 Reorganize implementation of Flist_system_processes and
4646 Fsystem_process_attributes. No functional changes.
4647 * process.c: Don't #include pwd.h, grp.h and limits.h.
4648 (Flist_system_processes): Just call list_system_processes.
4649 (Fsystem_process_attributes): Just call system_process_attributes.
4650 (procfs_list_system_processes, time_from_jiffies)
4651 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4652 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4653
4654 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4655 (list_system_processes): Rename from
4656 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4657 Provide a do nothing implementation.
4658 (system_process_attributes): Rename from
4659 procfs_list_system_processes.
4660 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4661 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4662
4663 * w32.c (list_system_processes): Rename from
4664 w32_list_system_processes.
4665 (system_process_attributes): Rename from
4666 w32_system_process_attributes.
4667
4668 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4669
4670 * process.h (w32_list_system_processes)
4671 (w32_system_process_attributes): Remove.
4672 (list_system_processes, system_process_attributes):
4673 New prototypes.
4674
4675 2008-12-19 Kenichi Handa <handa@m17n.org>
4676
4677 * xfont.c (xfont_decode_coding_xlfd): New function.
4678 (xfont_encode_coding_xlfd): New function.
4679 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4680 (xfont_list): Decode and encode XLFD by iso-8859-1.
4681 (xfont_match): Likewise.
4682 (xfont_list_family): Likewise.
4683 (xfont_open): Likewise.
4684
4685 * ftfont.c (ftfont_open): Generate a multibyte string if given
4686 names are utf-8.
4687
4688 * xftfont.c (xftfont_open): Generate a multibyte string if given
4689 names are utf-8.
4690
4691 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4692
4693 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4694 changed.
4695 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4696 clicked on a detached tool bar button.
4697
4698 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4699
4700 * emacs.c (main): Print and error and exit when no data is read
4701 from the pipe.
4702
4703 2008-12-17 Jason Rumney <jasonr@gnu.org>
4704
4705 * w32font.c (w32font_has_char): Always return -1.
4706
4707 2008-12-16 Kenichi Handa <handa@m17n.org>
4708
4709 * font.c (font_open_entity): Fix previous change.
4710
4711 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4712
4713 * process.c: Include <limits.h>.
4714
4715 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4716
4717 * font.c (font_update_drivers): Fix mistake in reconstructing the
4718 driver list.
4719
4720 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4721
4722 * font.c (font_clear_cache): Fix format of font cache data.
4723
4724 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4725
4726 * xftfont.c (xftfont_open): Free Xft font pattern if
4727 XftFontOpenPattern fails.
4728
4729 * xterm.c (x_free_frame_resources): Remove extraneous call to
4730 free_frame_faces.
4731
4732 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * xterm.c (x_delete_display): Move xim_close_dpy call to
4735 x_delete_terminal.
4736 (x_delete_terminal): Call xim_close_dpy.
4737
4738 2008-12-13 Jason Rumney <jasonr@gnu.org>
4739
4740 * w32font.c (intern_font_name): New function.
4741 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4742 (w32font_open_internal, Fx_select_font): Decode font name.
4743 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4744
4745 * w32font.h (intern_font_name): Declare new function.
4746
4747 * w32uniscribe.c (add_opentype_font_name_to_list):
4748 Use intern_font_name.
4749
4750 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4751
4752 * frame.c (Fdelete_frame): Call free_font_driver_list.
4753
4754 * font.c (free_font_driver_list): Implement missing function.
4755
4756 * w32term.c (w32_term_init): Don't initialize the image cache
4757 here; it will be done in init_frame_faces.
4758
4759 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4760 (struct x_display_info): Remove unused member null_pixel. New
4761 member xim_callback_data.
4762
4763 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4764 (xim_initialize): Save pointer to callback function data.
4765 (xim_close_dpy): Free callback function data. Call XCloseIM,
4766 reverting 2008-11-04 change by David Smith.
4767 (x_term_init): Don't initialize the image cache here; it will be
4768 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4769 (x_delete_display): Free x_dnd_atoms member.
4770
4771 2008-12-13 Kenichi Handa <handa@m17n.org>
4772
4773 * font.c (font_rescale_ratio): Moved from xfaces.c.
4774 Argument type changed. Handle a font-spec too.
4775 (font_score): Check Vface_font_rescale_alist.
4776 (font_open_entity): Likewise. (Bug#1547)
4777
4778 * xfaces.c (font_rescale_ratio): Moved to font.c.
4779
4780 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4781
4782 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4783
4784 2008-12-12 Jason Rumney <jasonr@gnu.org>
4785
4786 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4787 Vwindow_system_version to the real w32 major version.
4788
4789 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4790
4791 * term.c (init_tty): Move setting the terminal name before the
4792 potential user: maybe_fatal.
4793
4794 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4795
4796 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4797 all callers changed. Call free_frame_faces to free the face cache.
4798
4799 2008-12-11 Jason Rumney <jasonr@gnu.org>
4800
4801 * w32font.c (fill_in_logfont): Don't assume symbol script means
4802 SYMBOL_CHARSET. (Bug#547)
4803
4804 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4805 size for surrogates. (Bug#1096, bug#872)
4806
4807 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4808
4809 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4810
4811 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4812
4813 * process.c (Fsystem_process_attributes, syms_of_process):
4814 Fix typo in name of Ssystem_process_attributes.
4815 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4816
4817 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4818
4819 * syntax.c (Fmodify_syntax_entry): Doc fix.
4820
4821 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4822
4823 * font.c (Ffont_spec): Move usage to end of docstring.
4824
4825 2008-12-10 Jason Rumney <jasonr@gnu.org>
4826
4827 * w32font.c (Qcham): New symbol.
4828 (font_supported_scripts): Add cham, and comments for other new
4829 scripts in bitfield from OpenType spec.
4830 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4831 contain characters beyond the bmp.
4832
4833 2008-12-10 Kenichi Handa <handa@m17n.org>
4834
4835 * ftfont.c (fc_charset_table): Add "unicode-sip".
4836 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4837 Qunicode_sip.
4838
4839 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4840
4841 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4842 (Fcoding_system_put): Use QCdefault_char.
4843 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4844
4845 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4846
4847 * xftfont.c (syms_of_xftfont): Fix typo.
4848
4849 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4850
4851 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4852
4853 * emacs.c (main): Close daemon_pipe on exec.
4854
4855 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4856
4857 * termchar.h (struct tty): New members termcap_term_buffer and
4858 termcap_strings_buffer.
4859
4860 * term.c (encode_terminal_code): Free any previous memory blocks
4861 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4862 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4863 All callers changed.
4864 (init_tty): Store termcap data and string buffers in new struct
4865 tty members termcap_term_buffer and termcap_strings_buffer.
4866 (delete_tty): Free them.
4867 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4868
4869 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4870
4871 * nsfns.m (ns_set_background_color): Remove code duplication.
4872 It was a substitute for face-transparency on OS X 10.3.
4873
4874 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4875
4876 * coding.c (make_conversion_work_buffer): Disable buffer
4877 modification hooks in the work buffer.
4878
4879 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4880
4881 * process.c (procfs_system_process_attributes): If `nread' has a
4882 negative value, assign zero to it.
4883
4884 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4885
4886 * eval.c (Vdebug_on_error): Doc fix.
4887
4888 2008-12-05 Kenichi Handa <handa@m17n.org>
4889
4890 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4891 second character is a combining character.
4892
4893 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4894
4895 * process.c (procfs_system_process_attributes): Don't use cmd,
4896 cmdsize, and q without initializing them first.
4897
4898 2008-12-04 Jason Rumney <jasonr@gnu.org>
4899
4900 * w32font.c (w32font_draw): Initialize orig_clip before getting
4901 it, and delete it when finished.
4902
4903 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4904
4905 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4906 case when running as a daemon before detaching.
4907
4908 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4909
4910 * w32.c (init_environment): Don't unload library shell32.dll.
4911
4912 2008-12-03 Kenichi Handa <handa@m17n.org>
4913
4914 * font.c (font_at): Set `multibyte' at first.
4915
4916 * coding.c (decode_coding_charset): Check type of an element of
4917 vector VALIDS.
4918 (encode_coding_emacs_mule): Be sure to set `code'.
4919
4920 * fontset.c (face_for_char): Handle invalid charset property correctly.
4921 (font_for_char): Likewise.
4922
4923 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4924
4925 * font.c (Fopen_font): Compute pixel size correctly.
4926 (font_update_lface): Handle fonts with corrupted size specs,
4927 i.e. non-int and non-float.
4928
4929 * ftfont.c (ftfont_match): Initialize entity variable.
4930 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4931 (ftfont_list_family): Initialize list var earlier.
4932
4933 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4934
4935 * xterm.c (x_draw_glyph_string): Fall back on
4936 underline_minimum_offset for underline position.
4937
4938 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4939
4940 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4941
4942 * character.c (c_string_width): Specify the type for LEN.
4943
4944 2008-12-03 Kenichi Handa <handa@m17n.org>
4945
4946 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4947 (decode_coding_utf_8): Likewise.
4948 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4949 (produce_chars): Initialize consumed_chars to 0.
4950
4951 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4952
4953 * keyboard.c (make_lispy_position): Only use PT if the selected
4954 window is current.
4955
4956 2008-12-02 Andreas Schwab <schwab@suse.de>
4957
4958 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4959
4960 * doprnt.c (doprnt1): Fix size of charbuf.
4961
4962 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4963
4964 * keyboard.c (timer_check): Revert last change.
4965
4966 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
4967
4968 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4969
4970 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
4971
4972 * makefile.w32-in: Update dependencies.
4973 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4974
4975 2008-12-01 Andreas Schwab <schwab@suse.de>
4976
4977 * font.c (register_font_driver): Use xmalloc.
4978 (font_put_frame_data): Likewise.
4979
4980 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
4981
4982 * xfaces.c (realize_x_face): Make abort condition clearer.
4983
4984 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4985
4986 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * keyboard.c (timer_check): After a timer runs, ensure that the
4989 selected window's buffer is current.
4990
4991 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
4992
4993 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4994 It was accidentally restored by the Unicode merge.
4995
4996 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4997
4998 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
4999
5000 * w32proc.c: Include "coding.h".
5001 (Fw32_short_file_name): Encode filename passed to Windows API.
5002 (Fw32_long_file_name): Encode filename passed to Windows API and
5003 decode back the result. (Bug#1433)
5004
5005 2008-11-29 Kenichi Handa <handa@m17n.org>
5006
5007 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5008 not before accessing it.
5009
5010 * charset.c (Fdefine_charset_internal): After calculating
5011 min_char, max_char, and fastmap, copy the charset structure again.
5012 (encode_char): Fix the previous change.
5013
5014 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5015
5016 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5017
5018 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5019
5020 * nsterm.m (x_set_frame_alpha): New function.
5021
5022 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5023
5024 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5025
5026 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5027
5028 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5029 pointer to check_face_name.
5030
5031 2008-11-27 Kenichi Handa <handa@m17n.org>
5032
5033 * category.h (SET_CATEGORY_SET): Call set_category_set.
5034 (set_category_set): Extern it.
5035
5036 * category.c (hash_get_category_set): New function.
5037 (Fmodify_category_entry): Adjusted for the change of
5038 char_table_ref_and_range. Call hash_get_category_set to get a
5039 category set to store in the table.
5040
5041 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5042 Funify_charset.
5043
5044 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5045 (DECODE_CHAR): Check if the decoder vector is ready.
5046 (ENCODE_CHAR): Check if the encoder char-table is ready.
5047 (maybe_unify_char): Extern it.
5048
5049 * charset.c (Vchar_unified_charset_table): Delete it.
5050 (inhibit_load_charset_map): New variable.
5051 (temp_charset_work): New variable.
5052 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5053 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5054 New macros.
5055 (load_charset_map): Meaning of control_flag changed. If
5056 inhibit_load_charset_map is nonzero, setup a table in
5057 temp_charset_work.
5058 (load_charset): New argument control_flag.
5059 (map_charset_for_dump): New function.
5060 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5061 map_charset_for_dump.
5062 (Fdefine_charset_internal): If the charset method is MAP, load
5063 mapping tables by calling load_charset.
5064 (Funify_charset): Don't load a mapping table but directly set
5065 Vchar_unify_table.
5066 (maybe_unify_char): New function.
5067 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5068 Handle the case of inhibit_load_charset_map being nonzero.
5069 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5070 Handle the case of inhibit_load_charset_map being nonzero.
5071 (Fclear_charset_maps): Just free temp_charset_work.
5072 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5073 variable.
5074
5075 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5076 change of char_table_ref_and_range.
5077 (char_table_ref_and_range): Change the meaning of argument FROM
5078 and TO. Now the caller must provide initial values for *FROM
5079 and *TO.
5080
5081 * fontset.c (fontset_add): Adjusted for the change of
5082 char_table_ref_and_range.
5083 (fontset_get_font_group): Likewise.
5084 (Ffontset_info): Likewise.
5085
5086 * keymap.c (describe_vector): Adjusted for the change of
5087 char_table_ref_and_range. For char-table, put boundary between
5088 non-ASCII and 8-bit characters.
5089
5090 * print.c (print_object): For bool-vector, delete unnecessary
5091 check of ASCII_BYTE_P.
5092
5093 2008-11-26 Jason Rumney <jasonr@gnu.org>
5094
5095 * w32font.c (w32font_open_internal): Don't include external
5096 leading in font height. (Bug#879)
5097
5098 2008-11-26 Glenn Morris <rgm@gnu.org>
5099
5100 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5101 redefinition with ifdef. (Bug#1383)
5102
5103 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5104
5105 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5106
5107 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5108
5109 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5110 New EmacsView methods.
5111 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5112 Fixes bug #1048,1357,1414.
5113
5114 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5115
5116 Fix bug #1362.
5117 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5118 is not an indexed color.
5119 * nsterm.m (free_indexed_color): Add argument checking.
5120 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5121
5122 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5123
5124 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5125 Document confirm-after-completion value for
5126 minibuffer-completion-confirm.
5127
5128 2008-11-24 Jason Rumney <jasonr@gnu.org>
5129
5130 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5131 warning.
5132
5133 2008-11-23 Jason Rumney <jasonr@gnu.org>
5134
5135 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5136 restored before returning.
5137
5138 * w32font.c (check_face_name): New function.
5139 (add_font_entity_to_list): Use it to filter out common substituted
5140 fonts. (Bug#642)
5141
5142 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5143
5144 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5145 confirm-nonexistent-file-or-buffer in doc-string.
5146
5147 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5148
5149 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5150 Fix copy/paste typo. Add checks.
5151
5152 2008-11-21 Kenichi Handa <handa@m17n.org>
5153
5154 * coding.c (detect_coding_iso_2022): Reject invalid composition
5155 sequence.
5156 (DECODE_COMPOSITION_START): If the current source is the last
5157 block, and the current composition doesn't end, regard this
5158 sequence as invalid.
5159 (decode_coding_iso_2022): Handle invalid composition sequence.
5160
5161 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5162
5163 * window.c (coordinates_in_window): Don't return
5164 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5165 line when the window is not the rightmost one. (Bug#1372)
5166
5167 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5168
5169 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5170
5171 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5172
5173 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5174 and bright_bg if noninteractive is non-zero.
5175
5176 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5177
5178 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5179 x_draw_glyph_string_background.
5180
5181 * w32term.c (x_draw_glyph_string): Likewise.
5182
5183 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5184
5185 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5186 the next glyph string once past the overhang width.
5187
5188 * nsterm.m (ns_draw_glyph_string): Likewise.
5189
5190 * w32term.c (x_draw_glyph_string): Likewise.
5191
5192 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5193
5194 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5195 double file close.
5196
5197 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5198
5199 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5200 dedicated status of window before attempting to display another
5201 buffer in it.
5202
5203 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5204
5205 * msdos.c (Fmsdos_long_file_names):
5206 (syms_of_msdos) <dos-unsupported-char-glyph>:
5207 * dosfns.c (Fint86): Fix typos in docstrings.
5208
5209 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5210
5211 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5212
5213 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5214
5215 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5216
5217 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5218
5219 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5220
5221 * frame.h: Negative alpha means "don't touch".
5222
5223 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5224
5225 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5226
5227 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5228
5229 * hftctl.c:
5230 * chpdef.h:
5231 * acldef.h: Remove files used only for systems no longer supported.
5232
5233 * Makefile.in: Fix .o alphabetical ordering.
5234 (hftctl.o): Remove dependency, file removed.
5235 (keymap.o, print.o): Depend on charset.h.
5236
5237 2008-11-10 Kenichi Handa <handa@m17n.org>
5238
5239 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5240
5241 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5242
5243 * dired.c (file_name_completion): If completion_ignore_case is
5244 enabled, ignore case when checking completion-regexp-list.
5245
5246 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5247
5248 * vm-limit.c (get_lim_data): Fix last change.
5249
5250 2008-11-08 Kenichi Handa <handa@m17n.org>
5251
5252 * character.c (Fget_byte): New function.
5253 (syms_of_character): Defsubr Fget_byte.
5254
5255 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5256
5257 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5258 cursor position is valid after scrolling.
5259
5260 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5261
5262 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5263
5264 2008-11-06 Glenn Morris <rgm@gnu.org>
5265
5266 * xterm.c (handle_one_xevent): Don't let popup menus cause
5267 mouse-autoselect-window related window switching. (Bug#1261)
5268
5269 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5270
5271 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5272
5273 2008-11-04 Andreas Schwab <schwab@suse.de>
5274
5275 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5276
5277 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
5278
5279 * xfns.c (Fx_wm_set_size_hint): New function.
5280
5281 2008-11-03 Martin Rudalics <rudalics@gmx.at>
5282
5283 * textprop.c (Fprevious_single_char_property_change): Return 0
5284 when there's no change in a string. (Bug#1301)
5285
5286 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5287
5288 * frame.c (do_switch_frame): New argument NORECORD passed to
5289 Fselect_window.
5290 (Fselect_frame): New argument NORECORD passed to
5291 do_switch_frame.
5292 (Fset_frame_selected_window): New argument NORECORD passed to
5293 Fselect_frame.
5294 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5295 in call of do_switch_frame.
5296 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5297 Handle NORECORD argument in call of Fselect_frame.
5298 * lisp.h (do_switch_frame, Fselect_frame)
5299 (Fset_frame_selected_window): Adjust declarations.
5300 * window.c (select_frame_norecord): New function.
5301 (run_window_configuration_change_hook): Use it and call
5302 Fselect_frame with NORECORD set.
5303 (Fselect_window): Pass NORECORD to Fselect_frame.
5304 (Fset_window_configuration): Handle NORECORD argument in call of
5305 do_switch_frame.
5306 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5307 Fset_frame_selected_window.
5308 * keyboard.c (command_loop_1): Handle NORECORD in call of
5309 Fselect_frame (currently ifdefd).
5310
5311 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5312
5313 * emacs.c (USAGE2): Untabify.
5314
5315 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5316
5317 * composite.c (fill_gstring_header): Fix copy/paste typo.
5318
5319 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5320
5321 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5322 (Fother_window): Rename argument and rewrite doc-string.
5323 (select_window_norecord): Fix return value. (Bug#1276)
5324
5325 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5326
5327 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5328 new frames overriding foreground for tooltips. Based on similar patch
5329 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5330
5331 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5332
5333 * emacs.c (Fdaemon_initialized): Initialize nfd.
5334
5335 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5336
5337 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5338 (Fwindow_text_height): Clarify doc-strings.
5339 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5340 doc-string of window-scroll-functions.
5341
5342 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5343
5344 * category.c (syms_of_category): Fix typo in docstring.
5345
5346 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5347
5348 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5349 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5350 Fix typos in docstrings.
5351
5352 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5353
5354 * emacs.c (daemon_pipe): Make non-static.
5355 (IS_DAEMON): Move definition ...
5356 * lisp.h (IS_DAEMON): ... here.
5357 (daemon_pipe): Declare.
5358 (is_daemon): Remove.
5359 * dispnew.c (init_display): Use IS_DAEMON.
5360
5361 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5362
5363 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5364 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5365
5366 * emacs.c (is_daemon): Remove.
5367 (main): Don't set is_daemon.
5368 (IS_DAEMON): New macro.
5369 (Fdaemonp, Fdaemon_initialized): Use it.
5370 (Fdaemon_initialized): Write a char into the pipe to make sure the
5371 parent exits.
5372 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5373
5374 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5375
5376 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5377 over-sized glyph, draw it with the default glyph width.
5378
5379 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5380 glyph, draw it with the default glyph width.
5381
5382 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5383 glyph, draw it with the default glyph width.
5384
5385 * xdisp.c (try_scrolling): When computing the distance from the
5386 scroll margin to PT, try moving some distance past the window
5387 bottom before giving up.
5388
5389 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5390
5391 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5392 (Fset_window_buffer): Explain in doc-string that a window can be
5393 "strongly" dedicated to its buffer.
5394
5395 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5396
5397 * emacs.c (daemon_name): New variable.
5398 (main): Deal with --daemon=SERVER_NAME.
5399 (Fdaemonp): Return a name if one was passed to --daemon.
5400
5401 2008-10-26 Romain Francoise <romain@orebokech.com>
5402
5403 * emacs.c (daemon_pipe): New variable.
5404 (main): Create a pipe before forking, make the parent exit only after
5405 the child has closed its end of the pipe. Move closing the
5406 descriptors ...
5407 (Fdaemon_initialized): ... here. New function.
5408
5409 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5410
5411 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5412 the previous unoptimized table.
5413
5414 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5415 the distinction between non-nil and non-t value of `dedicated'.
5416
5417 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5418
5419 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5420 read_char_minibuf_menu_text is large enough to hold the menu string.
5421
5422 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5423
5424 * window.c (Fget_buffer_window, Fdelete_windows_on)
5425 (Freplace_buffer_in_windows): Make buffer argument optional and
5426 rename to buffer_or_name.
5427
5428 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5429
5430 * xdisp.c (handle_single_display_spec, handle_display_prop):
5431 Undo 2005-05-16 change.
5432 (handle_stop): Pop iterator if it's loaded with an empty string.
5433 (get_overlay_strings_1): Don't save iterator if it's loaded with
5434 an empty string (bug#1201).
5435
5436 2008-10-24 Kenichi Handa <handa@m17n.org>
5437
5438 * ftfont.c (ftfont_otf_features): Fix previous change.
5439 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5440 calling ftfont_otf_features.
5441
5442 2008-10-24 Kenichi Handa <handa@m17n.org>
5443
5444 * font.c (font_match_p): Fix for the case that a vector of
5445 characters is in script-representative-chars.
5446
5447 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5448
5449 * dbusbind.c (xd_in_read_queued_messages): New variable.
5450 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5451 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5452 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5453 macro. (Bug#1186)
5454
5455 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5456
5457 * s/sol2-10.h: New file.
5458
5459 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5460
5461 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5462 poor beast has survived 9+ years and the jump from xterm.c!).
5463
5464 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5465
5466 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5467 Reword doc-string.
5468 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5469
5470 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5471
5472 * character.c (syms_of_character) <script-representative-chars>:
5473 <unicode-category-table>: Doc fixes.
5474
5475 2008-10-23 Noah Friedman <friedman@splode.com>
5476
5477 * coding.c (make_conversion_work_buffer): Check that
5478 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5479 Fget_buffer_create.
5480
5481 2008-10-23 Kenichi Handa <handa@m17n.org>
5482
5483 * font.c (font_add_log): Check the values of extra properties.
5484
5485 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5486
5487 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5488 Reword doc-string.
5489 (Fset_window_parameter): Use NILP.
5490 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5491 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5492
5493 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5494
5495 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5496
5497 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5498
5499 * nsfns.m (ns_appkit_version): New function.
5500 (x-server-version): Use it.
5501 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5502 (x-server-vendor): Don't check_ns().
5503
5504 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5505
5506 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5507
5508 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5509 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5510
5511 2008-10-22 Kenichi Handa <handa@m17n.org>
5512
5513 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5514 scripts.
5515
5516 * category.c (word_boundary_p): Check scripts instead of charset.
5517 Handle nil value in word-separating-categories and
5518 word-combining-categories.
5519 (syms_of_category): Fix docstrings of word-separating-categories
5520 and word-combining-categories.
5521
5522 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5523
5524 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5525 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5526
5527 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5528
5529 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5530 Rename arg "buffer" to "buffer_or_name".
5531 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5532 it optional.
5533 (no_switch_window): Remove since the return value is not used.
5534 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5535 Consider window as dedicated when Fwindow_dedicated_p returns a
5536 non-nil value.
5537 * lisp.h: Remove prototype for no_switch_window.
5538
5539 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5540
5541 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5542 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5543
5544 2008-10-21 Kenichi Handa <handa@m17n.org>
5545
5546 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5547 check Vlatin_extra_code_table.
5548
5549 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5550
5551 * fileio.c (Fset_file_modes): Doc fix.
5552
5553 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5554
5555 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5556 in arrays.
5557
5558 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5559
5560 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5561 Mention kill-buffer in doc-string.
5562 (Fset_window_buffer): Reinsert tem check removed in last commit.
5563 (Fenlarge_window, Fshrink_window): Have argument names and
5564 doc-string follow Elisp manual more closely.
5565
5566 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5567
5568 * fileio.c (Fset_file_modes): Doc fix.
5569
5570 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5571
5572 * window.c (Fwindow_width, Fset_window_start)
5573 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5574 (Fdelete_windows_on, Freplace_buffer_in_windows):
5575 Make doc-strings follow code and Elisp manual more closely.
5576 (Fwindow_dedicated_p): Make window argument optional.
5577 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5578 (Fset_window_buffer): Respect any non-nil dedicated value for
5579 window. Rename "buffer" argument to "buffer_or_name".
5580
5581 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5582
5583 * m/sh3.h: New file, machine description for SuperH.
5584
5585 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5586
5587 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5588
5589 2008-10-17 Kenichi Handa <handa@m17n.org>
5590
5591 * ftfont.c (ftfont_otf_features): Fix indexing
5592 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5593
5594 2008-10-16 Magnus Henoch <mange@freemail.hu>
5595
5596 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5597 (Fdbus_call_method_asynchronously): Ditto.
5598 This change makes C-h f display the argument list.
5599
5600 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5601
5602 * fileio.c (Fexpand_file_name): Doc fix.
5603
5604 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5605 of :foreground and :background equivalent to unspecified (20.x
5606 compatibility).
5607
5608 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5609
5610 * buffer.c (syms_of_buffer): Doc fix.
5611
5612 2008-10-14 Kenichi Handa <handa@m17n.org>
5613
5614 * font.c (font_clear_prop): When clearing font width, clear the
5615 average width field too.
5616
5617 2008-10-12 Andreas Schwab <schwab@suse.de>
5618
5619 * ftfont.c (ftfont_shape_by_flt): Make static.
5620 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5621
5622 * font.c: Don't include <m17n-flt.h>.
5623
5624 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5625
5626 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5627
5628 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5629
5630 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5631 away code.
5632
5633 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5634
5635 * dispnew.c (update_text_area): Avoid looping due to large glyph
5636 overhangs (bug#1070).
5637
5638 2008-10-09 Kenichi Handa <handa@m17n.org>
5639
5640 * fontset.c (face_for_char): If face->fontset is negative, just
5641 return ascii_face.
5642
5643 * font.c (font_delete_unmatched): Fix previous change.
5644 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5645
5646 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5647
5648 * frame.c (Fraise_frame): On text-only terminals select frame in
5649 order to make it visible. (Bug#1061)
5650
5651 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5652
5653 * fontset.c (fontset_find_font): Check frame validity.
5654
5655 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5656
5657 * gtkutil.c (xg_display_open): Reset default display if none exists.
5658 (xg_display_close): Allow Emacs to close all displays (bug#985).
5659
5660 2008-10-06 Andreas Schwab <schwab@suse.de>
5661
5662 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5663
5664 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5665
5666 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5667
5668 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5669
5670 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5671 during initialization.
5672
5673 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5674
5675 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5676 whole thing on MSDOS frames as well as on a TTY.
5677
5678 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5679 well as for TTY.
5680 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5681 well as on a TTY.
5682
5683 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5684 as well as for TTY.
5685
5686 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5687
5688 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5689 MSDOS frames as well.
5690
5691 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5692
5693 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5694 correct arguments.
5695 * menu.c (find_and_return_menu_selection): Add cast.
5696
5697 2008-10-03 Glenn Morris <rgm@gnu.org>
5698
5699 * emacs.c (USAGE1): Add --daemon.
5700
5701 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5702
5703 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5704 100, so it's in percents as advertised.
5705
5706 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5707
5708 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5709 (ns_output.current_cursor, ns_output.desired_cursor)
5710 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5711 (FRAME_NEW_CURSOR_COLOR): Remove.
5712
5713 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5714 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5715 enumeration (HOLLOW_BOX_CURSOR, etc.).
5716
5717 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5718 (draw_window_cursor): Simplify code.
5719 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5720 Don't change cursor type. In latter, call rehighlight instead of doing
5721 updates manually.
5722 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5723 Use core Emacs cursor types.
5724
5725 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5726
5727 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5728
5729 * process.c (Faccept_process_output): Fix doc-string.
5730
5731 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5732
5733 * gmalloc.c (__sbrk): Also define for uClibc.
5734
5735 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5736 for uClibc.
5737
5738 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5739
5740 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5741 styles.
5742 (nsfont_open): Reenable the cache.
5743
5744 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5745
5746 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5747 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5748
5749 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5750
5751 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5752 a suspended terminal.
5753
5754 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5755
5756 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5757
5758 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5759
5760 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5761
5762 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5763
5764 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5765 in a continued line coincides with a line beginning.
5766
5767 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5768
5769 * nsfont.m (nsfont_trait_distance): Fix bug.
5770 (nsfont_list): Return a list rather than a vector (syncs with Handa
5771 changes of 2008-05-14).
5772 (nsfont_open): Improve logging.
5773
5774 2008-09-29 Andreas Schwab <schwab@suse.de>
5775
5776 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5777
5778 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5779
5780 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5781 name as char-resolve-modifiers.
5782 Reported by: Markus Triska <markus.triska@gmx.at>
5783
5784 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5785
5786 * dispnew.c (init_display): Return earlier when running as a daemon.
5787
5788 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5789
5790 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5791
5792 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5793
5794 * composite.c (Fcomposition_get_gstring)
5795 (Fcompose_region_internal, Fcompose_string_internal)
5796 (Ffind_composition_internal): Doc fix.
5797 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5798 (syms_of_composite) <auto-composition-function>: Doc fix.
5799 (syms_of_composite) <composition-function-table>: Doc fix.
5800
5801 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5802
5803 * search.c (wordify): New argument for lax word-ends.
5804 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5805
5806 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5807
5808 * lisp.h (is_daemon): Declare.
5809 * dispnew.c (init_display): Do not try to initialize the terminal
5810 when running as a daemon.
5811
5812 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5813
5814 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5815 x_display_pixel_height.
5816
5817 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5818
5819 * undo.c (record_point): Don't call Fundo_boundary for first
5820 change. (Bug#731)
5821
5822 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5823
5824 * emacs.c (Fdaemonp): Doc fix.
5825
5826 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5827
5828 * emacs.c (main): Place #ifdef in the proper place.
5829
5830 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5831
5832 * emacs.c (standard_args): Add --daemon.
5833 (main): Disconnect from the terminal when --daemon is passed.
5834 (is_daemon): New variable.
5835 (Fdaemonp): New function.
5836 (syms_of_emacs): Defsubr it.
5837
5838 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5839
5840 * xdisp.c (get_next_display_element): Handle string display
5841 correctly when checking for the end of a box run.
5842
5843 2008-09-20 Glenn Morris <rgm@gnu.org>
5844
5845 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5846 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5847 (Frename_file): Avoid copying to trash if a rename involves
5848 a delete. (Bug#964).
5849
5850 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5851
5852 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5853 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5854 frames as well as termcap frames.
5855 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5856 get_named_tty.
5857
5858 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5859
5860 * process.c (procfs_system_process_attributes): Fix cmdline in
5861 case /proc/PID/cmdline is empty.
5862
5863 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5864 x_display_pixel_height.
5865
5866 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5867
5868 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5869
5870 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5871 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5872
5873 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5874
5875 * dispextern.h (struct it): Move line_wrap away from the middle of
5876 bitfields. Move voffset in struct iterator_stack_entry after the
5877 bitfields. Move tab_width near after another short.
5878
5879 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5880
5881 * frame.h (struct frame): Move alpha from the middle of bitfields.
5882
5883 * window.h (struct window): Move frozen_window_start_p after the
5884 rest of the bitfields to reduce padding.
5885
5886 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5887
5888 * xterm.h (x_display_info): Remove `height' and `width' members.
5889
5890 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5891
5892 * w32term.h (w32_display_info): Remove `height', `width',
5893 `height_in', and `width_in' members.
5894
5895 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5896 New functions.
5897 (x_calc_absolute_position): Use them.
5898 (x_term_init): Omit removed `height' and `width' members.
5899
5900 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5901 New functions.
5902 (w32_read_socket, x_calc_absolute_position): Use them.
5903 (w32_initialize_display_info, w32_term_init): Omit removed members
5904 of w32_display_info.
5905
5906 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5907 New functions.
5908 (ns_initialize_display_info): Omit removed members of ns_display_info.
5909
5910 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5911 New functions.
5912 (x_calc_absolute_position): Use them.
5913 (x_term_init): Omit removed `height' and `width' members.
5914
5915 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5916 (compute_tip_xy):
5917 * frame.c (x_fullscreen_adjust):
5918 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5919 x_display_pixel_width.
5920
5921 2008-09-18 Kenichi Handa <handa@m17n.org>
5922
5923 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5924 (composition_compute_stop_pos): Fix handling of static composition.
5925 (Fcomposition_get_gstring): Check FROM and TO at first.
5926
5927 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5928
5929 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5930 mixup (YAILOM).
5931
5932 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5933
5934 * indent.c (Fvertical_motion): Use position reported by iterator
5935 instead of PT for determining screen motion (bug#943).
5936
5937 2008-09-17 Romain Francoise <romain@orebokech.com>
5938
5939 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5940
5941 2008-09-17 Kenichi Handa <handa@m17n.org>
5942
5943 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5944
5945 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5946 if necessary.
5947
5948 2008-09-16 Kenichi Handa <handa@m17n.org>
5949
5950 * coding.c (make_conversion_work_buffer): Avoid calling
5951 Fget_buffer_create if it is not necessary.
5952
5953 2008-09-15 Martin Rudalics <rudalics@gmx.at>
5954
5955 * window.c (Fselect_window): Don't update window_select_count and
5956 use_time when norecord is not nil.
5957
5958 2008-09-14 Kenichi Handa <handa@m17n.org>
5959
5960 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5961 specpdl_ptr.
5962
5963 2008-09-12 Kenichi Handa <handa@m17n.org>
5964
5965 * indent.c (scan_for_column): Don't handle automatic composition
5966 if the current buffer is not associated with a window.
5967
5968 * composite.c (composition_reseat_it): If the current buffer is
5969 not associated with a window, ignore the automatic composition.
5970 (find_automatic_composition): Likewise.
5971
5972 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5973
5974 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5975 (Fgpm_mouse_stop): Use it.
5976 * termhooks.h (close_gpm): Declare.
5977 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5978 connection if Gpm_GetEvent fails.
5979
5980 * window.c (set_window_buffer): Always preserve current-buffer.
5981
5982 2008-09-12 Glenn Morris <rgm@gnu.org>
5983
5984 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5985
5986 2008-09-11 Glenn Morris <rgm@gnu.org>
5987
5988 * charset.c (charset-map-path): Doc fix.
5989
5990 2008-09-10 Kenichi Handa <handa@m17n.org>
5991
5992 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5993
5994 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5995 compose a grapheme cluster with the preceding base glyph.
5996
5997 * composite.c (composition_compute_stop_pos): Fix previous change.
5998 Reset cmp_it->id to -1 at first.
5999
6000 2008-09-10 Glenn Morris <rgm@gnu.org>
6001
6002 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6003
6004 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6005
6006 * keyboard.c (read_key_sequence): Reapply translation maps when
6007 switching keyboards.
6008
6009 2008-09-09 Kenichi Handa <handa@m17n.org>
6010
6011 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6012 characters.
6013
6014 * composite.c (FORWARD_CHAR): Fix calculation
6015 of (POSITION).pos_byte.
6016 (composition_compute_stop_pos): Limit the search of composition to
6017 at most 500 characters ahead. If we reach the limit or find a
6018 newline, set cmp_it->ch to -2 and return 0.
6019 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6020
6021 2008-09-08 Kenichi Handa <handa@m17n.org>
6022
6023 * indent.c (Fvertical_motion): Be sure to set
6024 it_overshoot_expected if it.cmp_it.id is non-negative.
6025
6026 2008-09-07 Andreas Schwab <schwab@suse.de>
6027
6028 * callproc.c (Fcall_process): Don't hold references to string data
6029 across garbage collection. Move initialisation of new_argv down
6030 to avoid compiler bug.
6031
6032 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6033
6034 * process.c (Fsystem_process_attributes): Doc fix.
6035
6036 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6037
6038 * callproc.c (Fcall_process): Canonicalize current directory name.
6039
6040 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6041 iterator advances to the next line if the current line ends in a
6042 continued tab.
6043
6044 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6045
6046 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6047 member to point to cmp_from.
6048
6049 * xdisp.c: Doc fix for references to gidx data member.
6050
6051 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6052
6053 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6054
6055 2008-09-07 Kenichi Handa <handa@m17n.org>
6056
6057 * composite.c (FORWARD_CHAR): Check STOP after
6058 incrementing (POSITION).pos.
6059
6060 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6061
6062 * process.c (Fsystem_process_attributes): Doc fix.
6063
6064 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6065
6066 * keyboard.c (Ftop_level): Doc fix.
6067
6068 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6069
6070 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6071 minibuffer, don't let lower part of menu invade the echo area.
6072
6073 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6074 "char *q" to access menu text and advance through it. Revert the
6075 change that displayed ">" instead of ASCII character 0x10.
6076
6077 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6078
6079 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6080 toggle boxes and radio buttons on MS-DOS as well.
6081
6082 2008-09-05 Kenichi Handa <handa@m17n.org>
6083
6084 * composite.c (autocmp_chars): Check lookback count.
6085 (composition_compute_stop_pos): Set cmp_it->lookback.
6086 (composition_reseat_it): Check lookback count.
6087 (struct position_record): New struct.
6088 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6089 (find_automatic_composition): New function.
6090 (composition_adjust_point): Use find_automatic_composition.
6091
6092 * dispextern.h (struct composition_it): New member lookback.
6093
6094 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6095
6096 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6097 if moving by a single line.
6098
6099 2008-09-02 Andreas Schwab <schwab@suse.de>
6100
6101 * xterm.c (x_delete_display): Fix merge error.
6102
6103 * fileio.c (Fexpand_file_name): Remove unused variables.
6104
6105 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6106
6107 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6108 storage on all platforms, not just on DOS_NT.
6109
6110 2008-09-02 Jason Rumney <jasonr@gnu.org>
6111
6112 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6113 Ensure mouse is not grabbed after menu is finished.
6114
6115 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6116
6117 * xfaces.c (Finternal_set_alternative_font_family_alist)
6118 (Finternal_set_alternative_font_registry_alist): Properly copy
6119 entire alist structure.
6120
6121 2008-09-01 Kenichi Handa <handa@m17n.org>
6122
6123 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6124 representative chars of the script is a vector.
6125 (ftfont_list): Handle the case where the representative chars of
6126 the script is a vector.
6127
6128 * character.c (syms_of_character): Docstring of
6129 script-representative-chars fixed.
6130
6131 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6132
6133 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6134 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6135 the menu. Allocate larger buffer for `text', to account for
6136 possible ^C characters.
6137
6138 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6139
6140 * xdisp.c (prepare_menu_bars): Don't call
6141 Vwindow_size_change_functions with arg Qt.
6142
6143 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6144
6145 * font.h (font_range):
6146 * fileio.c (report_file_error):
6147 * composite.c (composition_update_it): Yet another int/Lisp_Object
6148 mixup (YAILOM).
6149
6150 2008-08-30 Glenn Morris <rgm@gnu.org>
6151
6152 * data.c (Fmake_variable_frame_local): Doc fix.
6153
6154 * frame.c (Fmodify_frame_parameters): Doc fix.
6155
6156 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6157
6158 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6159 needed by GetTokenInformation.
6160 (w32_system_process_attributes): Check return values of all system
6161 APIs.
6162
6163 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6164 only when the state changes.
6165 (IT_update_begin, IT_update_end): Add termscript trace.
6166
6167 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6168 clipboard is unavailable. Set dst to NULL if it doesn't point to
6169 malloc'ed data.
6170 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6171 passing random values to xfree.
6172
6173 * dispnew.c (init_display): Set `tty's association in frame's
6174 parameters alist to the name of the terminal device, if that is known.
6175
6176 2008-08-29 Jason Rumney <jasonr@gnu.org>
6177
6178 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6179
6180 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6181
6182 * composite.c (fill_gstring_body): Avoid compiler warnings.
6183
6184 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6185 LGLYPH_SET_CODE to avoid compiler warnings.
6186
6187 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6188
6189 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6190
6191 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6192 LGLYPH_SET_CODE.
6193
6194 2008-08-29 Kenichi Handa <handa@m17n.org>
6195
6196 * fileio.c (report_file_error): Don't downcase the first character
6197 of errstring if it is still unibyte.
6198
6199 2008-08-29 Kenichi Handa <handa@m17n.org>
6200
6201 These changes are to re-implement the automatic composition so
6202 that it doesn't use text properties.
6203
6204 * Makefile.in (ftfont.o): Depend on composite.h.
6205 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6206
6207 * character.h (Vunicode_category_table): Extern it.
6208
6209 * character.c (Vunicode_category_table): New variable.
6210 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6211
6212 * chartab.c (optimize_sub_char_table): Perform more greedy
6213 optimization.
6214
6215 * composite.h (enum composition_method):
6216 Delete COMPOSITION_WITH_GLYPH_STRING.
6217 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6218 (Vcomposition_function_table): Extern it.
6219 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6220 (composition_gstring_put_cache, composition_gstring_from_id)
6221 (composition_gstring_p, composition_gstring_width)
6222 (composition_compute_stop_pos, composition_reseat_it)
6223 (composition_update_it, composition_adjust_point): Extern them.
6224 (Fcomposition_get_gstring): EXFUN it.
6225
6226 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6227 (Vcomposition_function_table)
6228 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6229 (gstring_hash_table, gstring_work, gstring_work_headers):
6230 New variables.
6231 (gstring_lookup_cache, composition_gstring_put_cache)
6232 (composition_gstring_from_id, composition_gstring_p)
6233 (composition_gstring_width, fill_gstring_header)
6234 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6235 (composition_reseat_it, composition_update_it)
6236 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6237 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6238 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6239 Defsubr compostion_get_gstring.
6240
6241 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6242 cmp_id.
6243 (struct glyph_string): Delete the member gidx. New members
6244 cmp_id, cmp_from, and cmp_to.
6245 (enum it_method): Delete GET_FROM_COMPOSITION.
6246 (struct composition_it): New struct.
6247 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6248 Delete c, len, cmp_id, cmp_len in u.comp.
6249
6250 * font.h (enum lgstring_indices): Delete it.
6251 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6252 (enum lglyph_indices): Likewise.
6253 (font_range): Adjust extern.
6254 (font_fill_lglyph_metrics): Extern it.
6255
6256 * font.c (QCf): New variable.
6257 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6258 (font_prepare_composition): Delete this function.
6259 (font_range): Type and arguments changed.
6260 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6261 (font_fill_lglyph_metrics): New function.
6262 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6263 (syms_of_font): DEFSYM QCf. Delete defsubr for
6264 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6265 Defsubr Sfont_shape_gstring.
6266
6267 * fontset.h (font_for_char): Extern it.
6268
6269 * fontset.c (font_for_char): New function.
6270
6271 * ftfont.c: Include composite.h.
6272 (ftfont_resolve_generic_family): Add langset "en" to pattern.
6273 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6274
6275 * indent.c: Include composite.h and dispextern.h.
6276 (check_composition): Delete this function.
6277 (scan_for_column): Handle composition by
6278 composition_compute_stop_pos, composition_reseat_it, and
6279 composition_update_it.
6280 (compute_motion): Likewise.
6281 (Fvertical_motion): Fix checking of composition.
6282
6283 * keyboard.c (adjust_point_for_property): Check composition by
6284 composition_adjust_point.
6285
6286 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6287 struct glyph_string.
6288
6289 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6290 (append_composite_glyph): Adjust for the change of struct it and
6291 struct glyph.
6292 (produce_composite_glyph): Likewise.
6293
6294 * w32term.c (x_draw_composite_glyph_string_foreground):
6295 Adjust for the change of struct glyph_string.
6296 (x_draw_glyph_string): Likewise.
6297
6298 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6299 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6300
6301 * xdisp.c: Include font.h.
6302 (it_props): Delete the entry for Qauto_composed.
6303 (init_iterator): Initialize it->cmp_it.id to -1.
6304 (compute_stop_pos): Call composition_compute_stop_pos.
6305 (face_before_or_after_it_pos): Adjust for the change of struct it.
6306 (handle_auto_composed_prop): Delete it.
6307 (handle_composition_prop): Handle only static composition.
6308 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6309 from xassert. Initialize it->cmp_it.stop_pos.
6310 (push_it): Adjust for the change of struct it.
6311 (pop_it): Likewise.
6312 (get_next_element): Delete next_element_from_composition.
6313 (CHAR_COMPOSED_P): New macro.
6314 (get_next_display_element): For automatic composition, get a face
6315 from the font in the glyph-string.
6316 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6317 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6318 (next_element_from_string): Check if the character at the current
6319 position is composed by CHAR_COMPOSED_P.
6320 (next_element_from_buffer): Likewise.
6321 (next_element_from_composition): Adjust for the change of struct it.
6322 Update it->cmp_it.
6323 (dump_glyph): Adjust for the change of struct glyph.
6324 (fill_composite_glyph_string): Adjust for the change of struct
6325 it and struct glyph. Don't handle automatic composition here.
6326 (fill_gstring_glyph_string): New function.
6327 (x_get_glyph_overhangs): Handle automatic composition.
6328 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6329 (BUILD_GSTRING_GLYPH_STRING): New macro.
6330 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6331 automatic composition.
6332 (append_composite_glyph): Adjust for the change of struct it and
6333 struct glyph.
6334 (x_produce_glyphs): Adjust for the change of struct it.
6335
6336 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6337 the change of struct glyph_string.
6338 (x_draw_glyph_string): Likewise.
6339
6340 2008-08-29 Glenn Morris <rgm@gnu.org>
6341
6342 * buffer.c (word-wrap): Doc fix.
6343 * xdisp.c (truncate-partial-width-windows): Doc fix.
6344 Increase default to 50.
6345
6346 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6347
6348 * xdisp.c (update_tool_bar_unwind): New function.
6349 (update_tool_bar): Temporarily set selected frame before building
6350 tool-bar items.
6351
6352 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6353
6354 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6355 snprintf, respectively.
6356 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6357
6358 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6359
6360 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6361 LDFLAGS to GNUstep CC invocation.
6362
6363 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6364
6365 * indent.c (Fvertical_motion): Revert last change. Handle the
6366 general case where we are moving forward, and PT spans multiple
6367 screen lines.
6368
6369 * eval.c (find_handler_clause): Temporarily increase
6370 max-lisp-eval-depth while printing the backtrace buffer, to
6371 guarantee that help-mode code can run.
6372
6373 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6374
6375 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6376 colors under -rv.
6377 (IT_set_frame_parameters): Don't swap foreground and background
6378 colors if `(reverse . t)' is present in the frame properties.
6379 (internal_terminal_init): Call init_frame_faces only for the
6380 initial frame.
6381
6382 2008-08-27 Andreas Schwab <schwab@suse.de>
6383
6384 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6385
6386 2008-08-27 Andreas Schwab <schwab@suse.de>
6387
6388 * search.c (search_buffer): Set char_base to zero only at the end.
6389
6390 2008-08-27 Kenichi Handa <handa@m17n.org>
6391
6392 * fileio.c (report_file_error): Fix handling of multibyte error string.
6393
6394 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6395
6396 * xterm.c (x_term_init): Temporarily hide the partially
6397 initialized terminal while calling vendor-specific-keysyms.
6398
6399 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6400
6401 * msdos.c (internal_terminal_init): Most initializations done only
6402 once, especially initial_screen_colors[] and termscript open.
6403
6404 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6405
6406 * eval.c (Fcondition_case): Doc fix.
6407
6408 * widgetprv.h (EmacsFramePart): Change font member to the new font
6409 struct.
6410
6411 * widget.c: Include character.h and font.h for XSETFONT.
6412 (setup_frame_gcs): Compute X font id from font struct, just once.
6413
6414 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6415
6416 * term.c (get_named_tty): Fix last change.
6417
6418 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6419
6420 * indent.c (Fvertical_motion): If moving forward starting from a
6421 multi-line string, move the iterator to the last line of that string.
6422
6423 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6424
6425 * frame.c (do_switch_frame): Mark previously displayed frame as
6426 obscured for FRAME_MSDOS_P frames as well.
6427
6428 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6429
6430 * frame.c (make_terminal_frame): Initialize f->terminal,
6431 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6432 Set the top frame to newly created frame.
6433 (Fmake_terminal_frame): Reuse the_only_display_info.
6434
6435 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6436 estimating available memory.
6437
6438 2008-08-23 David Reitter <david.reitter@gmail.com>
6439
6440 * nsterm.m (ns_draw_window_cursor): Don't call
6441 NSDisableScreenUpdates and NSEnableScreenUpdates on
6442 non-NS_IMPL_COCOA systems.
6443
6444 2008-08-23 Andreas Schwab <schwab@suse.de>
6445
6446 * process.c (procfs_system_process_attributes): Fix use of
6447 uninitialized variables.
6448
6449 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6450
6451 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6452
6453 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6454 calling tty-set-up-initial-frame-faces.
6455
6456 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6457 Allow MSDOS frames along with X frames.
6458
6459 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6460 addition to output_termcap.
6461
6462 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6463
6464 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6465 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6466 highlight.
6467
6468 * process.c [!subprocesses]: Define QCname.
6469 (syms_of_process): Intern and staticpro it.
6470
6471 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6472 Adjust for changes in encoding/decoding routines.
6473 Use encode_coding_object and decode_coding_object instead of
6474 encode_coding and decode_coding.
6475
6476 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6477
6478 * dosfns.c: Include frame.h before termhooks.h.
6479 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6480 variable termscript.
6481
6482 * s/msdos.h (USER_FULL_NAME): Define.
6483 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6484
6485 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6486 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6487 pw->pw_gecos.
6488
6489 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6490 SELECTED_FRAME as additional (1st) argument.
6491 (tty_read_avail_input): Handle output_msdos_raw in
6492 addition to output_termcap.
6493
6494 * msdos.c: Include frame.h before termhooks.h.
6495 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6496 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6497 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6498 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6499 (IT_set_terminal_modes, IT_reset_terminal_modes)
6500 (IT_set_frame_parameters): Use tty->termscript instead of a global
6501 variable termscript.
6502 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6503 global variable terminal_coding. Don't refer to
6504 Vnonascii_translation_table.
6505 (internal_terminal_init): Set Vwindow_system in current_kboard.
6506 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6507 Announce date and time of session start, if termscript is open.
6508 Don't zero out the_only_display_info (it is done in
6509 term.c:init_tty). Open termscript only of not already open.
6510 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6511 here instead of dos_ttraw. Don't initialize display if this is an
6512 initial tty. Don't set FRAME_FONT.
6513 (Vwindow_system_version): Bump to 23.
6514 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6515 is available, set up mouse_position_hook.
6516 (dos_ttraw, IT_set_terminal_modes): If called with initial
6517 terminal, do nothing.
6518 (IT_set_frame_parameters): Handle the Qtty_type frame
6519 parameter by calling internal_terminal_init.
6520 (dos_set_window_size, show_mouse_face)
6521 (clear_mouse_face, IT_note_mode_line_highlight)
6522 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6523 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6524 (initialize_msdos_display): New function.
6525 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6526 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6527 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6528 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6529 Accept additional argument: a pointer to a frame. Update all callers.
6530 (request_sigio, unrequest_sigio): Don't define, now defined on
6531 sysdep.c.
6532 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6533
6534 * term.c [MSDOS]: Include msdos.h.
6535 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6536 conditional to DOS_NT. Allow only one call to this function in a
6537 session. Don't allocate a new struct tty_display_info; instead,
6538 reuse the_only_display_info. Call get_tty_size to get screen
6539 dimensions. Call init_baud_rate to set bad_rate.
6540 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6541 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6542 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6543 (get_tty_terminal, get_named_tty, Ftty_type)
6544 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6545 output_termcap.
6546 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6547 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6548 only when subprocesses are supported.
6549
6550 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6551 f->output_data.x.
6552 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6553 terminal devices.
6554
6555 * msdos.h: Remove definition of struct x_display_info and struct
6556 x_output.
6557 (FRAME_FONT): Use output_data.tty.
6558 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6559 (struct x_display_info): Rename from display_info. Update all users in
6560 msdos.c.
6561 (struct x_output): Remove background_pixel and foreground_pixel.
6562 (the_only_display_info): Rename from the_only_x_display.
6563 (dos_ttraw): Update prototype.
6564
6565 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6566 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6567
6568 2008-08-23 Jason Rumney <jasonr@gnu.org>
6569
6570 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6571 (fn_TIFFSetDirectory): New library function used.
6572 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6573 (tiff_load): Use :index to select among multiple images. Set count
6574 property when multiple images exist.
6575 (gif_format): Use :index, not :image.
6576
6577 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6578
6579 * xdisp.c (try_scrolling): Check INT_MAX instead of
6580 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6581 to obtain INT_MAX.
6582
6583 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6584
6585 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6586
6587 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6588
6589 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6590 GNUstep library location.
6591
6592 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6593
6594 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6595 before using it.
6596
6597 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6598
6599 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6600
6601 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6602 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6603 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6604 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6605 (EmacsApp-cursor_blink_handler): Remove declaration.
6606 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6607 match 01 Feb 2008 changes in xterm.c.
6608 (ns_read_socket): Add cast to avoid warning.
6609 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6610 GNUstep.
6611
6612 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6613
6614 * xselect.c (x_get_foreign_selection): Return nil if desired
6615 selection could not be obtained, instead of signalling an error.
6616
6617 2008-08-20 David Reitter <david.reitter@gmail.com>
6618
6619 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6620 * nsterm.m: Remove ns-specific code for cursor blinking.
6621 (ns_draw_window_cursor): Clear cursor properly rather than
6622 redrawing the area. Respect width of bar cursors.
6623 These changes enable the use of generic blink-cursor-mode and
6624 generic cursor types in NS and support smooth cursor movements (do
6625 not blink off after command).
6626 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6627 Nextstep, too.
6628
6629 2008-08-19 Kenichi Handa <handa@m17n.org>
6630
6631 * font.c (Vfont_log_deferred): New variable.
6632 (font_add_log): Check Vfont_log_deferred.
6633 (font_deferred_log): New function.
6634
6635 * font.h (font_deferred_log): Extern it.
6636
6637 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6638 for sorting.
6639 (face_for_char): Use deferred log.
6640
6641 2008-08-18 Kenichi Handa <handa@m17n.org>
6642
6643 * fontset.c (face_for_char): Add font log.
6644
6645 * font.c (font_add_log): Add the font properties :script, :lang,
6646 and :otf in the log.
6647
6648 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6649
6650 * xdisp.c: Remove dead code.
6651 (handle_invisible_prop, next_overlay_string): Defer call to
6652 setup_for_ellipsis.
6653 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6654
6655 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6656
6657 * xfaces.c (lookup_derived_face): Properly handle possible zero
6658 return value of get_lface_attributes.
6659 (merge_faces): Don't tell lookup_derived_face to signal an error
6660 if face is not found.
6661
6662 * dired.c (Fdirectory_files): Doc fix.
6663
6664 * process.c (make_process): Initialize kill_without_query struct
6665 member.
6666
6667 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6668
6669 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6670 Alternative calculation of totphys for Visual Studio 6.
6671
6672 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6673
6674 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6675 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6676 All users changed.
6677 (stat): Only root directory passed to GetDriveType. Allow RAM
6678 disk as well as local fixed disk when w32-get-true-file-attributes
6679 is set to `local'.
6680 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6681 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6682 (w32_cached_id, w32_add_to_cache): New functions.
6683 (get_name_and_id): Look account names in the cache before calling
6684 lookup_account_sid.
6685 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6686 New initialization flags.
6687 (globals_of_w32): Initialize them to zero.
6688 (w32_system_process_attributes): Use w32_cached_id and
6689 w32_add_to_cache.
6690
6691 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6692
6693 * lread.c (Fread_char, Fread_char_exclusive): If no character
6694 event is read before timeout is reached, return nil, rather than
6695 converting to a number.
6696
6697 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6698
6699 * fns.c (use_dialog_box): Doc fix.
6700
6701 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6702 on OS X.
6703
6704 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6705
6706 * frame.c (Qns_parse_geometry): New var.
6707 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6708
6709 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6712 space character in calculating tabs.
6713
6714 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6715
6716 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6717
6718 2008-08-10 Glenn Morris <rgm@gnu.org>
6719
6720 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6721 silence gcc "limited range of data type" warnings in some
6722 make_fixnum_or_float calls.
6723
6724 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6725
6726 * w32.c (w32_system_process_attributes): If the process does not
6727 exist, return nil.
6728
6729 * w32.c: Include thelp32.h, psapi.h and coding.h.
6730 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6731 declarations.
6732 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6733 (Process32Next_Proc): New typedefs.
6734 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6735 (g_b_init_process32_next, g_b_init_open_thread_token)
6736 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6737 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6738 (g_b_init_get_process_working_set_size)
6739 (g_b_init_global_memory_status_ex): New static variables.
6740 (globals_of_w32): Initialize them.
6741 (create_toolhelp32_snapshot, process32_first, process32_next)
6742 (open_thread_token, impersonate_self, revert_to_self)
6743 (get_process_memory_info, get_process_working_set_size)
6744 (global_memory_status, global_memory_status_ex): New wrapper
6745 functions.
6746 (w32_list_system_processes, w32_system_process_attributes)
6747 (enable_privilege, restore_privilege, ltime, process_times):
6748 New functions.
6749 (convert_time_raw): New function.
6750 (convert_time): Remove conversion of FILETIME into time in 100
6751 nsec units, call convert_time_raw instead.
6752
6753 * process.h (w32_list_system_processes, w32_system_process_attributes):
6754 Add prototypes.
6755 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6756 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6757 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6758 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6759
6760 * process.c (Fsystem_process_attributes): Doc fix.
6761
6762 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6763
6764 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6765 a continued multi-char glyph; if so, advance to the actual glyph.
6766
6767 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6768
6769 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6770
6771 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6772 (.m.o): Use it.
6773 * config.in: Regenerate.
6774
6775 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6776
6777 * xdisp.c (redisplay_window): Revert last change.
6778 (try_window): Check bottom scroll margin too.
6779
6780 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6781
6782 * config.in: Regenerate.
6783
6784 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6785 -list-load-path-shadows'.
6786 (nsgui.h): Reduce number of things depending on it.
6787
6788 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6789
6790 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6791 instead of window-end which does the wrong thing at eob.
6792 (try_cursor_movement): Minor optimization.
6793 (redisplay_window): If scroll margin is defined, don't assume
6794 window doesn't need scrolling.
6795
6796 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6797
6798 * config.in: Regenerate.
6799
6800 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6801 (mostlyclean): Don't delete *.d under NS.
6802
6803 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6804
6805 2008-08-06 Kenichi Handa <handa@m17n.org>
6806
6807 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6808
6809 2008-08-06 Andreas Schwab <schwab@suse.de>
6810
6811 * config.in: Regenerate.
6812
6813 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6814
6815 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6816 forcing a window start.
6817
6818 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6819 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6820
6821 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6822
6823 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6824 argument.
6825
6826 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6827
6828 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6829 <scroll-down-aggressively, before-change-functions>:
6830 <after-change-functions>: Reflow docstrings.
6831
6832 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6833 Ken Raeburn <raeburn@gnu.org>
6834
6835 Dock menu customization, based on a patch by Ken Raeburn, plus some
6836 other fixes.
6837 * nsmenu.m (dockMenu): New variable.
6838 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6839
6840 * nsterm.h (dockMenu): Declare.
6841
6842 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6843 (ns_term_init): Initialize dockMenu.
6844 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6845 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6846 left.
6847
6848 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6849
6850 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6851
6852 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6853
6854 * config.in: Regenerate.
6855
6856 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6857
6858 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6859
6860 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6861
6862 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6863
6864 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6865
6866 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6867
6868 * keyboard.h: Comment an #endif.
6869
6870 * lisp.h (have_menus_p): Adjust comment.
6871
6872 * menu.c (find_and_return_menu_selection): Fix comparison with
6873 client_data.
6874
6875 * nsmenu.m (popup_activated_flag): New variable.
6876 (popup_activated): New function.
6877 (menu-or-popup-active-p): New exported lisp definition.
6878 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6879 when popup done.
6880 (ns_popup_dialog): Set popup_activated_flag.
6881
6882 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6883 version for GNUstep (handled by conditional typedef in nsterm.m).
6884 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6885 in rgb.txt).
6886
6887 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6888
6889 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6890
6891 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6892
6893 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6894 shortcircuit if popup_activated like GTK and X toolkit.
6895
6896 * m/inter386.h: Change DARWIN to DARWIN_OS.
6897
6898 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6899 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6900 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6901 comment on NO_SOCK_SIGIO.
6902
6903 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6904
6905 * nsterm.m (windowDidResize): Remove stopModal call.
6906
6907 2008-08-03 Andreas Schwab <schwab@suse.de>
6908
6909 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6910 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6911
6912 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6915 Don't use uninitialized pointer variable when using getrlimit.
6916
6917 2008-08-02 Jason Rumney <jasonr@gnu.org>
6918
6919 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6920
6921 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6922
6923 * alloc.c (NSTATICS): Bump to 0x640.
6924
6925 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6926
6927 * lisp.h: Add prototype for directory_files_internal.
6928
6929 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6930 New functions.
6931 (syms_of_process): Defsubr them. Add initializations for various
6932 Q* symbols used in procfs_system_process_attributes.
6933 (procfs_list_system_processes, procfs_system_process_attributes)
6934 [HAVE_PROCFS]: New functions.
6935 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6936 (procfs_get_total_memory): New functions.
6937
6938 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6939
6940 * xfaces.c (Fx_load_color_file): Fix previous change;
6941 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6942
6943 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6944
6945 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6946
6947 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6948
6949 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6950
6951 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6952
6953 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6954
6955 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6956 define NSApplicationDelegateReplySuccess.
6957 (EmacsView -converstationIdentifier): Use long instead of
6958 NSInteger for GNUstep, since it doesn't have NSInteger.
6959
6960 * xmenu.c: Revert last change.
6961
6962 * keyboard.h: Fix last change.
6963
6964 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6965
6966 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6967 on Windows.
6968
6969 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6970
6971 Warning clearing and clean-up in NS port.
6972 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6973 Add prototypes.
6974 * nsgui.h (FACE_DEFAULT): Remove, unused.
6975 (XGCValues): Change colors to unsigned long.
6976 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6977 nsterm.m.
6978 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6979 (ns_list_fonts): Remove, unused.
6980 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6981 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6982 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6983 (nsfont_draw): Compare face colors to 0, not nil.
6984 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6985 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6986 (-addSubmenuWithTitle:): Use NSMenuItem class.
6987 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6988 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6989 (ns_clip_to_row): Make gc arg a BOOL.
6990 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6991 ns_clip_to_row() call.
6992 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6993 used). Cast FRAME_FONT assignments.
6994 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6995 (ns_string_to_lispmod): Change arg to const char.
6996 (ns_term_init): Use NSMenuItem class.
6997 (EmacsApp -openFile:): Move to different section of file.
6998 (EmacsApp -application:openFiles:): Don't return a value, call
6999 -replyToOpenOrPrint:.
7000 (EmacsView -keyDown:): Fix up cast.
7001 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7002 (EmacsView -menuDown:): Cast tag in call to
7003 find_and_call_menu_selection().
7004 (ns_list_fonts): Remove, unused.
7005 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7006 (ns_fontname_to_xlfd): Make static.
7007 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7008 Remove prototypes (now in keyboard.h).
7009 (next_menubar_widget_id): Remove, unused.
7010 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7011 Remove prototypes (now in keyboard.h).
7012 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7013
7014 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7015
7016 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7017 (floatfns.o): Depend on syssignal.h.
7018 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7019
7020 * systty.h: Fix previous change that removed BSD_TERMIOS.
7021 Add comments to #ifdefs.
7022
7023 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7024
7025 * w32fns.c (w32-load-color-file): Remove.
7026 (x-open-connection): Use renamed Fx_load_color_file.
7027 * xfaces.c (x-load-color-file): Add.
7028 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7029 Emacs.clr.
7030 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7031
7032 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7033
7034 * dbusbind.c (Fdbus_call_method_asynchronously)
7035 (Fdbus_method_error_internal): New defuns.
7036 (xd_read_message): Handle also reply messages.
7037 (Vdbus_registered_functions_table): Extend docstring.
7038
7039 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7040
7041 * keyboard.c (gobble_input): Fix previous change.
7042
7043 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7044
7045 * bitmaps/README:
7046 * xfns.c:
7047 * termcap.c:
7048 * term.c:
7049 * syswait.h:
7050 * systty.h:
7051 * systime.h:
7052 * syssignal.h:
7053 * sysdep.c:
7054 * process.h:
7055 * process.c:
7056 * print.c:
7057 * ndir.h:
7058 * lread.c:
7059 * keyboard.c:
7060 * getpagesize.h:
7061 * floatfns.c:
7062 * fileio.c:
7063 * emacs.c:
7064 * doc.c:
7065 * dispnew.c:
7066 * dired.c:
7067 * data.c:
7068 * callproc.c:
7069 * buffer.c:
7070 * README:
7071 * Makefile.in:
7072 * s/template.h:
7073 * s/msdos.h:
7074 * m/vax.h: Remove VMS support.
7075 * s/vms.h:
7076 * vlimit.h:
7077 * uaf.h:
7078 * temacs.opt:
7079 * param.h:
7080 * ioctl.h: Remove file.
7081
7082 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7083
7084 * s/ms-w32.h (MULTI_KBOARD): Remove.
7085 * xterm.c:
7086 * xselect.c:
7087 * xfns.c:
7088 * window.c:
7089 * w32term.c:
7090 * w32fns.c:
7091 * terminal.c:
7092 * termhooks.h:
7093 * term.c:
7094 * sysdep.c:
7095 * keyboard.h:
7096 * keyboard.c:
7097 * frame.h:
7098 * frame.c:
7099 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7100 * config.in: Regenerate.
7101
7102 2008-07-30 Jason Rumney <jasonr@gnu.org>
7103
7104 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7105
7106 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7107 (w32font_open_internal): Get unicode version of textmetrics.
7108 Don't enable or disable glyph indices here.
7109 (w32font_open): Disable use of glyph indices.
7110
7111 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7112
7113 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7114
7115 * minibuf.c (Vread_buffer_function): Doc fix.
7116
7117 2008-07-30 John Paul Wallington <jpw@pobox.com>
7118
7119 * minibuf.c (read_buffer_completion_ignore_case): New var.
7120 (Fread_buffer): Use it.
7121
7122 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7123
7124 * systty.h (sensemode): Remove empty #if. Remove reference to
7125 BSD_TERMIOS, unused.
7126
7127 * sysdep.c: Remove reference to DGUX.
7128 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7129
7130 * config.in: Regenerate.
7131
7132 2008-07-30 Jason Rumney <jasonr@gnu.org>
7133
7134 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7135
7136 2008-07-29 Jason Rumney <jasonr@gnu.org>
7137
7138 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7139 is populated.
7140 (uniscribe_encode_char): Always use uniscribe.
7141 Avoid using context if cache is populated.
7142
7143 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7144
7145 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7146 open menu.
7147
7148 * gtkutil.c (menu_nav_ended): Remove.
7149 (create_menus): Remove signal connect for menu_nav_ended.
7150
7151 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7152
7153 * xdisp.c (redisplay_window): Check return value of
7154 compute_window_start_on_continuation_line before forcing a window
7155 start.
7156
7157 2008-07-28 Jason Rumney <jasonr@gnu.org>
7158
7159 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7160
7161 * w32term.c (w32_enable_unicode_output, cleartype_active):
7162 Remove obsolete display options.
7163 (x_draw_glyph_string_background): Don't use old cleartype_active
7164 workaround.
7165 (w32_initialize): Remove cleartype_active initialization.
7166 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7167
7168 2008-07-28 Andreas Schwab <schwab@suse.de>
7169
7170 * lisp.h (init_weak_hash_tables, syms_of_font)
7171 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7172 (remove_hash_entry): Don't declare.
7173 * eval.c (maybe_call_debugger): Make static and move before use.
7174 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7175 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7176 * xterm.h (x_set_frame_alpha): Declare.
7177
7178 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7179
7180 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7181 (create_menus): Connect selection-done to menu_nav_ended.
7182
7183 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7184
7185 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7186 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7187 parameter with read of 'alpha' one.
7188 (Qns_frame_parameter): Remove.
7189 * nsselect.m (selection-coding-system)
7190 (next-selection-coding-system, Vselection_coding_system)
7191 (Vnext_selection_coding_system): Drop.
7192
7193 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7194
7195 * nsfns.m (do-applescript, do_applescript): Rename to
7196 ns-do-applescript, ns_do_applescript, and move within file.
7197
7198 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7199
7200 Remove support for Mac Carbon.
7201 * mactoolbox.c:
7202 * macterm.h:
7203 * macterm.c:
7204 * macselect.c:
7205 * macmenu.c:
7206 * macgui.h:
7207 * macfns.c:
7208 * mac.c: Remove file.
7209 * s/darwin.h:
7210 * m/intel386.h:
7211 * xfaces.c:
7212 * xdisp.c:
7213 * window.c:
7214 * tparam.c:
7215 * termhooks.h:
7216 * termcap.c:
7217 * term.c:
7218 * syssignal.h:
7219 * sysselect.h:
7220 * sysdep.c:
7221 * process.c:
7222 * lread.c:
7223 * lisp.h:
7224 * keyboard.c:
7225 * image.c:
7226 * fringe.c:
7227 * frame.h:
7228 * frame.c:
7229 * fontset.c:
7230 * font.h:
7231 * font.c:
7232 * fns.c:
7233 * fileio.c:
7234 * emacs.c:
7235 * dispnew.c:
7236 * dispextern.h:
7237 * config.in:
7238 * atimer.c:
7239 * Makefile.in: Remove code for Carbon.
7240
7241 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7242
7243 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7244
7245 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7246
7247 * macterm.h (kCGBitmapByteOrder32Host): New define for
7248 non-universal SDKs.
7249
7250 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7251 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7252
7253 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7254 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7255
7256 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7257
7258 * w32inevt.c: Include dispextern.h.
7259
7260 2008-07-26 Andreas Schwab <schwab@suse.de>
7261
7262 * print.c (print_object): Fix off-by-one in last change.
7263
7264 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
7265
7266 * term.c (syms_of_term): Don't initialize default_orig_pair,
7267 default_set_foreground and default_set_background on Windows.
7268
7269 2008-07-25 Jason Rumney <jasonr@gnu.org>
7270
7271 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7272 ScriptItemize. Clean up return value checking. Remove unused
7273 variables.
7274 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7275 shaping engine.
7276
7277 * w32font.c (w32font_has_char): Handle the case where we can't
7278 determine the script for a character.
7279
7280 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7281
7282 * term.c (syms_of_term): Initialize default_orig_pair,
7283 default_set_foreground, and default_set_background.
7284
7285 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7286 clash (bug#86).
7287 (getloadavg): Callers changed.
7288
7289 * image.c (svg_load_image): Fix last change.
7290 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7291 image size is valid. Use g_object_unref instead of deprecated
7292 rsvg_handle_free to free rsvg handle.
7293 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7294
7295 2008-07-25 Jason Rumney <jasonr@gnu.org>
7296
7297 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7298 surrogates before looking up glyph index.
7299 (w32font_text_extents): Encode as surrogates if falling back to
7300 functions that need UTF-16 wide chars.
7301
7302 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7303 BMP as surrogates before looking up glyph index.
7304
7305 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7306
7307 * image.c (svg_load_image): Check for failure in return value of
7308 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7309
7310 2008-07-25 Jason Rumney <jasonr@gnu.org>
7311
7312 * w32font.c (Fx_select_font): Reverse sense of second arg.
7313
7314 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7315
7316 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7317 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7318
7319 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7320 (PURESIZE): Use it.
7321
7322 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7323
7324 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7325 * m/alpha.h (TEXT_END):
7326 * m/ibmrs6000.h (TEXT_END):
7327 * m/macppc.h (TEXT_END):
7328 * s/darwin.h (TEXT_END):
7329 * s/msdos.h (TEXT_END): Remove, unused.
7330 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7331 * s/cygwin.h: Remove comment.
7332
7333 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7334 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7335 * m/intel386.h (DOT_GLOBAL_START):
7336 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7337 (USG): Remove, file not used on USG platforms.
7338
7339 * Makefile.in (HAVE_X11): Remove empty #else.
7340
7341 2008-07-24 Andreas Schwab <schwab@suse.de>
7342
7343 * fileio.c (Finsert_file_contents): Properly adjust undo list
7344 after format conversion.
7345
7346 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7347
7348 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7349 (menu_nav_ended): Remove.
7350 (create_menus): Remove signal connect for menu_nav_ended.
7351 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7352 create_menus.
7353 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7354
7355 2008-07-23 Jason Rumney <jasonr@gnu.org>
7356
7357 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7358 with opened font.
7359 (w32font_open): Set font type to gdi.
7360
7361 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7362
7363 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7364
7365 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7366 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7367 defines it.
7368 * unexec.c (ADDR_CORRECT): Define unconditionally.
7369
7370 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7371
7372 * unexec.c: Remove code depending on !COFF and USG, the file is
7373 not used for such systems.
7374
7375 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7376 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7377 (LD_SWITCH_SYSTEM_1): Remove, update users.
7378
7379 * s/darwin.h (DATA_END):
7380 * m/intel386.h (DATA_END):
7381 * m/ibmrs6000.h (DATA_END):
7382 * m/alpha.h (DATA_END): Remove, unused.
7383
7384 * config.in: Regenerate.
7385 * s/ms-w32.h (subprocesses): Define unconditionally.
7386 * s/template.h (subprocesses): Update comment.
7387 * s/vms.h (subprocesses):
7388 * s/usg5-4.h (subprocesses):
7389 * s/hpux10-20.h (subprocesses):
7390 * s/gnu-linux.h (subprocesses):
7391 * s/cygwin.h (subprocesses):
7392 * s/bsd-common.h (subprocesses):
7393 * s/aix4-2.h (subprocesses):
7394 * s/darwin.h (subprocesses): Do not define, defined by default now.
7395
7396 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7397 Remove all references.
7398 (temacs): Add GNUstep specific ld flags.
7399
7400 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7401 similarly to what X does.
7402
7403 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7404
7405 * nsfns.m (x-list-fonts): Remove.
7406 (syms_of_nsfns): Drop the x-list-fonts declaration.
7407 * nsterm.m: Get rid of remaining "//" comments.
7408
7409 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7410
7411 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7412
7413 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7414 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7415 (Fns_own_selection_internal, Fx_disown_selection_internal)
7416 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7417
7418 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7419 ... */' style of docstrings. Doc fixes.
7420
7421 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7422
7423 * terminfo.c (UP, BC, PC): Undo previous change.
7424
7425 * nsfns.m: Rename ns prefixed functions/variables to the
7426 corresponding x versions. Update references.
7427
7428 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7429
7430 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7431
7432 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7433
7434 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7435 Remove forwarding functions.
7436 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7437 non-static.
7438 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7439 non-static.
7440 (ns_frame_parm_handlers): Use the new names.
7441 (syms_of_nsfns): Move to the end of file.
7442
7443 * nsterm.m (syms_of_nsterm): Move to the end of file.
7444
7445 * dispnew.c (init_display): Remove code for X10.
7446
7447 2008-07-22 Jason Rumney <jasonr@gnu.org>
7448
7449 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7450 bare drive.
7451
7452 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7453
7454 * nsterm.m (syms_of_nsterm): Remove debugging println.
7455
7456 2008-07-22 David Reitter <david.reitter@gmail.com>
7457
7458 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7459 Carbon implementation of the same functionality: execute arbitrary
7460 AppleScript code.
7461
7462 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7463
7464 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7465 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7466 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7467 (Fx_display_mm_height, Fx_display_mm_width)
7468 (Fx_display_backing_store, Fx_display_visual_class)
7469 (Fx_display_save_under, Fx_open_connection)
7470 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7471 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7472 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7473 (Fx_display_pixel_width, Fx_display_pixel_height)
7474 (Fx_display_usable_bounds, Fx_display_planes)
7475 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7476 ... */' style of docstrings.
7477
7478 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7479
7480 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7481 on this platform.
7482 (mips):
7483 * m/iris4d.h (mips): Do not define.
7484 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7485
7486 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7487
7488 * image.c:
7489 * nsfns.m:
7490 * nsselect.m:
7491 * nsterm.h:
7492 * nsterm.m: Rename ns prefixed functions/variables to the
7493 corresponding x versions. Update references.
7494
7495 * m/ibms390x.h (NO_REMAP): Do not undefine.
7496
7497 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7498
7499 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7500
7501 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7502 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7503 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7504 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7505 (Fns_display_mm_height, Fns_display_mm_width)
7506 (Fns_display_backing_store, Fns_display_visual_class)
7507 (Fns_display_save_under, Fns_open_connection)
7508 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7509 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7510 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7511 (Fns_display_pixel_width, Fns_display_pixel_height)
7512 (Fns_display_usable_bounds, Fx_display_planes)
7513 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7514
7515 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7516
7517 * print.c (print_object): Check print_depth before searching for
7518 circularities.
7519
7520 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7521
7522 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7523 only sprintf.
7524
7525 2008-07-21 Kenichi Handa <handa@m17n.org>
7526
7527 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7528
7529 2008-07-20 Andreas Schwab <schwab@suse.de>
7530
7531 * syntax.c (find_start_pos, find_start_value)
7532 (find_start_value_byte, find_start_begv, find_defun_start)
7533 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7534
7535 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7536
7537 * s/sol2-3.h: Insert contents of s/sol2.h.
7538 (LD_SWITCH_SYSTEM): Remove redundant definition.
7539 * s/sol2.h: Remove, unused.
7540
7541 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7542
7543 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7544
7545 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7546
7547 * Makefile.in (ns_appdir): Fix typo in find command.
7548
7549 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7550
7551 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7552
7553 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7554 added not supported anymore.
7555
7556 * s/usg5-4-2.h (LIBS_SYSTEM):
7557 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7558
7559 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7560 * s/lynxos.h (GETPGRP_NO_ARG):
7561 * s/hpux10-20.h (NO_SIOCTL_H):
7562 * s/gnu.h (GETPGRP_NO_ARG):
7563 * s/gnu-linux.h (NO_SIOCTL_H):
7564 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7565 * s/cygwin.h (GETPGRP_NO_ARG):
7566 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7567 (C_DEBUG_SWITCH): Remove duplicate definition.
7568
7569 * m/ibms390.h: Remove boilerplate comments.
7570
7571 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7572
7573 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7574 (wait_reading_process_output): Remove code for SunOS, platform not
7575 supported anymore. Use SOLARIS2 instead of sun.
7576
7577 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7578
7579 * font.c (font_open_by_name): Under NS, default lface height to zero.
7580 (font_open_for_lface): Under NS, set size based on frame fontsize.
7581 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7582 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7583
7584 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7585
7586 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7587 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7588 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7589 YES/NO.
7590 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7591 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7592 * Makefile.in (clean): Clear out build destination dir.
7593
7594 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7595
7596 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7597 xterm, xselect.
7598 * lisp.h: Remove declaration of hash_remove.
7599 * nsgui.h: Remove redefinitions of hash_remove.
7600 * fns.c (hash_remove): Rename to hash_remove_from_table.
7601
7602 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7603
7604 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7605 strdup() the family UTF8String before modifying it.
7606
7607 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7608
7609 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7610 NS_FACE_BACKGROUND with 0 instead of nil.
7611 * nsfont.m (nsfont_draw): Same.
7612
7613 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7614
7615 * nsfns.m (ns_set_background_color): Fix crash.
7616
7617 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7620
7621 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7622
7623 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7624
7625 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7626
7627 * gtkutil.c: Include <config.h> instead of "config.h".
7628
7629 * lisp.h (Foverlay_buffer): Add EXFUN.
7630
7631 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7632 child process to complete child_setup. Undo 2005-09-21 change.
7633
7634 * s/darwin.h: Mention setsid after vfork.
7635
7636 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7637
7638 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7639 Depend on macgui.h.
7640
7641 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7642 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7643
7644 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7645 and f19.
7646 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7647
7648 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7649 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7650 Remove enumerators.
7651
7652 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7653 Check if FACE_FROM_ID returns NULL.
7654
7655 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7656
7657 * w32inevt.c (change_frame_size): Remove extern declaration.
7658 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7659 change_frame_size.
7660
7661 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7662
7663 * getloadavg.c: Revert last change (2008-07-15).
7664
7665 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7666
7667 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7668 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7669 from configure.
7670
7671 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7672
7673 * s/sol2.h:
7674 * s/sol2-4.h: Reorganize conditionals.
7675
7676 * ecrt0.c: Remove code depending on m68000, not used anymore.
7677
7678 * fns.c (hash_remove): Make static.
7679 * lisp.h (hash_remove): Don't prototype.
7680
7681 * m/ibmrs6000.h:
7682 * m/ibms390x.h:
7683 * m/macppc.h: Remove boilerplate comments.
7684
7685 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7686 Solaris, which does not need them.
7687
7688 * m/vax.h: Remove comments about unsupported systems.
7689
7690 * s/darwin.h: Reorganize ifdefs.
7691
7692 2008-07-17 Andreas Schwab <schwab@suse.de>
7693
7694 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7695
7696 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7697
7698 Use SDATA. Follow coding convention of placing operators at
7699 beginning of next line rather than end of previous line, and placing
7700 spaces around infix operators.
7701
7702 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7703 in case it was defined already.
7704 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7705 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7706 ns_default.
7707 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7708 Lisp_Objects.
7709 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7710 (ns_defined_color, ns_color_to_lisp): Declare.
7711 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7712 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7713 it's accepted even with USE_LISP_UNION_TYPE.
7714 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7715 (update_frame_tool_bar): Remove apparently obsolete tests for
7716 non-integerness of f->tool_bar_lines.
7717 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7718 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7719 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7720 (nsfont_open): Don't confuse NULL for Qnil.
7721 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7722 * menu.h (find_and_call_menu_selection):
7723 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7724 (find_and_return_menu_selection): Always return something.
7725 * frame.h: Include dispextern.h for Display_Info.
7726 (display_x_get_resource): Declare.
7727
7728 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7729
7730 * syntax.c: Remove stdio.h include accidentally introduced in
7731 Emacs.app commit.
7732 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7733 NS_IMPL_COCOA.
7734 * keyboard.c (handle_async_input, input_available_signal): Remove
7735 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7736
7737 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7738
7739 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7740 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7741 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7742 Use SDATA.
7743
7744 * keymap.c: Remove all NS-specific code.
7745 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7746 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7747 where_is_preferred_modifier, return a different value depending on how
7748 preferred is the binding.
7749 (where_is_internal): Adjust accordingly.
7750 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7751 Adjust to new preferred_sequence_p.
7752 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7753 * keyboard.c (parse_solitary_modifier): Not static any more.
7754 * keyboard.h (parse_solitary_modifier): Declare.
7755
7756 2008-07-16 Andreas Schwab <schwab@suse.de>
7757
7758 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7759 of easymenu.
7760
7761 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7762
7763 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7764 that we don't move off the line.
7765
7766 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7767
7768 * keyboard.c (Qsuper): Remove.
7769 (parse_menu_item): Don't call where_is_internal specially for NS.
7770
7771 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7772
7773 * s/gnu-linux.h: Remove boilerplate comments.
7774
7775 * m/alpha.h (__ELF__): Consolidate conditions.
7776
7777 * m/m68k.h (linux): Use GNU_LINUX instead.
7778 Remove boilerplate comments.
7779
7780 * m/intel386.h: Undo refactoring from previous change.
7781 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7782 too, remove dead code.
7783 (linux): Use GNU_LINUX instead.
7784
7785 2008-07-16 Jason Rumney <jasonr@gnu.org>
7786
7787 * w32gui.h: Repeat 26 June changes lost by last change.
7788
7789 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7790
7791 * systty.h: Remove code for Aix on 386, unsupported platform.
7792
7793 * s/ms-w32.h: Remove boilerplate comments.
7794 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7795
7796 * s/gnu-linux.h (TERM): Remove support.
7797 (HAVE_SYSVIPC): Remove, unused.
7798 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7799 for this system.
7800
7801 * process.c: Remove support for IRIS, unused.
7802 Remove support for TERM, not relevant anymore.
7803
7804 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7805 used with the definition.
7806
7807 * s/aix4-2.h (static): Do not undef.
7808
7809 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7810 only used on Aix.
7811 (HAVE_SYSVIPC): Remove, unused.
7812
7813 * m/hp800.h (CANNOT_DUMP): Do not undef.
7814
7815 * m/alpha.h: Fix comment.
7816
7817 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7818 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7819 used by this configuration.
7820 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7821 * unexec.c: Remove code depending on HPUX and
7822 USG_SHARED_LIBRARIES, not used with this file. Remove code
7823 depending on IRIS, unused. Remove if 0-ed code.
7824
7825 * s/template.h: Remove comments about static.
7826
7827 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7828 Remove if 0-ed code.
7829 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7830 were the same as the default.
7831 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7832 Remove boilerplate comments.
7833 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7834 (HAVE_SYSVIPC): Remove, unused.
7835 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7836
7837 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7838 Remove boilerplate comments.
7839 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7840 Remove boilerplate comments.
7841 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7842 Remove boilerplate comments.
7843 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7844
7845 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7846 USG systems which do not use DATA_SEG_BITS.
7847 Refactor code. Remove boilerplate comments.
7848
7849 * m/ibms390.h:
7850 * m/m68k.h:
7851 * s/bsd-common.h:
7852 * s/cygwin.h:
7853 * s/darwin.h:
7854 * s/freebsd.h:
7855 * s/gnu.h:
7856 * s/msdos.h: Remove boilerplate comments.
7857
7858 * m/iris4d.h: Remove boilerplate comments and code for systems that
7859 do not use this file.
7860 (IRIS_4D): Remove, unused.
7861
7862 * m/mips.h: Remove boilerplate comments and code for systems that
7863 do not use this file.
7864 (SIGN_EXTEND_CHAR):
7865 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7866 * unexmips.c: Remove file, unused.
7867
7868 * editfns.c (Fuser_full_name): Replace the only use of
7869 USER_FULL_NAME with its value.
7870 * config.in: Regenerate.
7871
7872 2008-07-16 David Reitter <david.reitter@gmail.com>
7873
7874 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7875 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7876
7877 2008-07-16 Glenn Morris <rgm@gnu.org>
7878
7879 * emacs.c (system-type): Doc fix.
7880
7881 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7882
7883 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7884 If the cache doesn't work, let's fix it, rather than work around it.
7885
7886 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7887
7888 * Makefile.in: Correct additions for nsfont.o in last commit.
7889 * nsfont.m: New file (forgot last commit).
7890
7891 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7892
7893 * callproc.c (set_initial_environment): Initialize
7894 Vprocess_environment under CANNOT_DUMP (fixes crash when
7895 batch-compiling for bootstrap).
7896
7897 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7898 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7899
7900 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7901 fix crash due to different init order.
7902
7903 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7904
7905 Changes and additions for NeXTstep windowing system (Cocoa and
7906 GNUstep) support.
7907
7908 * Makefile.in:
7909 * config.in: Support defines and build commands for NS port.
7910 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7911 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7912 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7913 windowing.
7914 (struct face): Add synth_ital field.
7915 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7916 (init_display): Initialize Vinitial_window_system to "ns" when so
7917 compiled.
7918 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7919 (display_arg): Use under NS.
7920 (main): Under NS, allocate autorelease pool and handle command line
7921 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7922 (standard_args): Add NS-specific args.
7923 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7924 * font.c (DEFAULT_ENCODING): New variable.
7925 (font_find_for_lface): Use it.
7926 (syms_of_font): Load syms_of_nsfont under NS.
7927 * font.h: Declare nsfont_driver when compiled under NS.
7928 * fontset.c: When compiling under NS, include nsterm.h.
7929 (fontset_from_font): Autoconstruct fontset under NS.
7930 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7931 symbol, document and use it.
7932 (do_switch_frame): When for_deletion under Cocoa, add
7933 Fraise_frame(Qnil).
7934 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7935 (x_get_arg): Allow "yes" and "no" as boolean values.
7936 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7937 Qright under Cocoa.
7938 (focus-follows-mouse): Default to 0 under NS.
7939 * frame.h (enum output_method): Add output_ns.
7940 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7941 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7942 (FRAME_WINDOW_P): NS-specific definition.
7943 * fringe.c (max_used_fringe_bitmap): Make public.
7944 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7945 (getloadavg): Use NeXT code under descendant OS's.
7946 * image.c (includes and header section, x_create_bitmap_from_data)
7947 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7948 (image_background_transparent, x_clear_image_1)
7949 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7950 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7951 (x_to_xcolors, x_from_xcolors, x_disable_image)
7952 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7953 other GUIs, including XPM support using code originally written for
7954 Carbon GUI.
7955 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7956 using NS API.
7957 (image_ascent): Use font metrics macros instead of direct struct field
7958 access.
7959 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7960 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7961 Also, handle NS as GTK for menu bar purposes.
7962 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7963 toolkit where they differ.
7964 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7965 use cachelist, still needed under NS.
7966 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7967 (struct widget_value): Define it here for menu.c.
7968 * keymap.c (includes): Include modifier internals.
7969 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7970 NS.
7971 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7972 support for preferring sequences using certain modifiers, specified by
7973 the FIRSTONLY argument.
7974 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7975 under NS GNUstep implementation.
7976 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7977 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7978 * menu.c: Include nsterm.h under NS.
7979 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7980 (free_menubar_widget_tree_value, update_submenu_strings)
7981 (find_and_call_menu_selection): Treat NS as X and NT.
7982 (find_and_return_menu_selection): New function, used for popup menus.
7983 * nsgui.h:
7984 * nsterm.h:
7985 * nsfns.m:
7986 * nsimage.m:
7987 * nsmenu.m:
7988 * nsselect.m:
7989 * nsterm.m: New files.
7990 * process.c (wait_reading_process_output): Under NS, call ns_select()
7991 instead of plain select().
7992 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7993 beginning of buffer.
7994 * sysselect.h (init_process): Rename when compiling under Cocoa to
7995 avoid name conflict.
7996 * termhooks.h (display_info): Add ns_display_info to union.
7997 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7998 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7999 COCOA environment.
8000 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8001 unexec() signature. (Note, this will dump, but the resulting file
8002 crashes; unexosx is used instead; keeping around for reference and
8003 possible aid in getting dump working under GNUstep.)
8004 * w32gui.h (button_type, widget_value): Remove definitions (now in
8005 keyboard.h).
8006 * window.c: Include nsterm.h when compiling under NS.
8007 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8008 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8009 other GUI windowing systems.
8010 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8011 GTK.
8012 (x_consider_frame_title): Under NS, set icon type and frame
8013 modified-state indicator; use ns_set_name_as_filename() when using
8014 formatted title.
8015 (update_window_cursor): Make public when compiling under NS.
8016 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8017 (hourglass_atimer, Vhourglass_delay
8018 * xfaces.c (header section, init_frame_faces, clear_font_table)
8019 (defined_color, unload_color, x_face_list_fonts)
8020 (prepare_face_for_display): Add NS support parallel to other GUIs.
8021 Emulate GCs like other non-X GUIs.
8022 (split_font_name): Don't lowercase font name under NS.
8023 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8024 under NS.
8025 * s/darwin.h: Add support for compilation under NS.
8026
8027 2008-07-15 Jason Rumney <jasonr@gnu.org>
8028
8029 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8030 (w32_show_hourglass): Rename from show_hourglass.
8031 (w32_hide_hourglass): Rename from hide_hourglass.
8032 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8033 (Vhourglass_delay): Declare extern.
8034 (hourglass_started): Remove.
8035
8036 * xdisp.c (Vhourglass_delay): Remove static.
8037 (hourglass_started, start_hourglass, cancel_hourglass):
8038 Don't include these versions on WINDOWSNT.
8039
8040 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8041
8042 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8043 variables (formerly in xfns.c).
8044 (show_hourglass, hide_hourglass): New prototypes (same).
8045 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8046 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8047 in xfns.c).
8048 (syms_of_xdisp): Declare/initialize display-hourglass,
8049 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8050 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8051 formerly in xfns.c.
8052 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8053 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8054 (start_hourglass, cancel_hourglass): Remove.
8055 (show_hourglass, hide_hourglass): Remove prototypes and static
8056 modifiers.
8057 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8058 hourglass_atimer, hourglass_shown_p declaration/initialization.
8059 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8060 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8061 (start_hourglass, cancel_hourglass): Remove.
8062 (show_hourglass, hide_hourglass): Remove prototypes and static
8063 modifiers.
8064 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8065 hourglass_atimer, hourglass_shown_p declaration/initialization.
8066 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8067 (DEFAULT_HOURGLASS_DELAY): Remove.
8068 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8069 hourglass_shown_p declaration/initialization.
8070
8071 2008-07-14 Jason Rumney <jasonr@gnu.org>
8072
8073 * w32fns.c (w32_get_arg): Remove wrapper function.
8074 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8075 directly.
8076 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8077
8078 2008-07-14 Kenichi Handa <handa@m17n.org>
8079
8080 * xfont.c (xfont_open): Add workaround for X's bug.
8081
8082 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8083
8084 * fontset.c: Include <stdio.h> unconditionally.
8085
8086 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8087
8088 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8089 for filtering.
8090
8091 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8092
8093 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8094
8095 * m/macppc.h:
8096 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8097
8098 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8099 (SPECIAL_EMACS_INT):
8100 * m/ia64.h (SPECIAL_EMACS_INT):
8101 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8102 * s/gnu.h (NLIST_STRUCT):
8103 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8104 * s/gnu-linux.h (LINUX):
8105 * s/msdos.h (HAVE_FACES):
8106 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8107
8108 * systty.h:
8109 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8110 anymore.
8111
8112 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8113
8114 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8115 always defined as int.
8116
8117 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8118 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8119 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8120 * s/freebsd.h (HAVE_WAIT_HEADER):
8121 * s/bsd-common.h (HAVE_UNION_WAIT):
8122 * s/aix4-2.h (HAVE_WAIT_HEADER):
8123 * m/mips.h (HAVE_UNION_WAIT):
8124 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8125 (COFF, static): Do not define, they are undefined later in the file.
8126
8127 * process.c (update_status): Don't use a union.
8128 (status_convert):
8129 (sigchld_handler): Use int instead of WAITTYPE.
8130
8131 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8132
8133 * indent.c (Fvertical_motion): Restore hscroll before moving to
8134 goal column.
8135
8136 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8137
8138 * lisp.h: Remove left over code.
8139
8140 2008-07-11 Andreas Schwab <schwab@suse.de>
8141
8142 * lisp.h: Fix logic in last change.
8143
8144 * menu.h: New file.
8145 * menu.c: Include it.
8146 * xmenu.c: Likewise.
8147 * Makefile.in: Update dependencies.
8148
8149 2008-07-11 Kenichi Handa <handa@m17n.org>
8150
8151 * fontset.c (fontset_from_font): Cancel the previous change.
8152
8153 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8154
8155 * lisp.h:
8156 * w32heap.c:
8157 * emacs.c:
8158 * alloc.c: Replace all references of NO_UNION_TYPE with
8159 USE_LISP_UNION_TYPE.
8160
8161 * m/xtensa.h (NO_UNION_TYPE):
8162 * m/vax.h (NO_UNION_TYPE):
8163 * m/template.h (NO_UNION_TYPE):
8164 * m/sparc.h (NO_UNION_TYPE):
8165 * m/mips.h (NO_UNION_TYPE):
8166 * m/macppc.h (NO_UNION_TYPE):
8167 * m/m68k.h (NO_UNION_TYPE):
8168 * m/iris4d.h (NO_UNION_TYPE):
8169 * m/intel386.h (NO_UNION_TYPE):
8170 * m/ibms390x.h (NO_UNION_TYPE):
8171 * m/ibms390.h (NO_UNION_TYPE):
8172 * m/ibmrs6000.h (NO_UNION_TYPE):
8173 * m/ia64.h (NO_UNION_TYPE):
8174 * m/hp800.h (NO_UNION_TYPE):
8175 * m/arm.h (NO_UNION_TYPE):
8176 * m/amdx86-64.h (NO_UNION_TYPE):
8177 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8178 defining it the same.
8179
8180 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8181
8182 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8183
8184 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8185
8186 * fileio.c:
8187 * sysdep.c
8188 * systty.h:
8189 * m/ibmrs6000.h:
8190 * m/iris4d.h:
8191 * s/aix4-2.h:
8192 * s/freebsd.h:
8193 * s/gnu-linux.h:
8194 * s/hpux10-20.h:
8195 * s/hpux11.h:
8196 * s/netbsd.h:
8197 * s/sol2-3.h:
8198 * s/sol2-4.h:
8199 * s/sol2.h:
8200 * s/usg5-4.h:
8201 * s/vms.h: Remove references to unused variables.
8202
8203 2008-07-10 Andreas Schwab <schwab@suse.de>
8204
8205 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8206 pattern before matching the generic family.
8207
8208 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8209
8210 * unexec.c:
8211 * s/vms.h:
8212 * s/usg5-4-2.h:
8213 * s/sol2-5.h:
8214 * s/freebsd.h:
8215 * s/darwin.h: Remove dead code.
8216
8217 * m/template.h:
8218 * m/sparc.h:
8219 * m/mips.h:
8220 * m/m68k.h:
8221 * m/iris4d.h:
8222 * m/intel386.h:
8223 * m/ibms390x.h:
8224 * m/ibms390.h:
8225 * m/ia64.h:
8226 * m/hp800.h:
8227 * m/arm.h:
8228 * m/amdx86-64.h: Remove dead code and references to unused
8229 and compiler defined symbols.
8230
8231 * unexmips.c:
8232 * unexelf.c: Remove references to desupported systems.
8233
8234 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8235
8236 * m/powermac.h: Remove boilerplate comments.
8237 (NO_REMAP): Remove unused definition.
8238
8239 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8240 define them.
8241
8242 2008-07-10 Kenichi Handa <handa@m17n.org>
8243
8244 * xfont.c (xfont_open): Log the reason of failure.
8245
8246 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8247
8248 * fontset.c (fontset_get_font_group):
8249 * font.c (font_check_otf): Specify argument types.
8250
8251 2008-07-09 Kenichi Handa <handa@m17n.org>
8252
8253 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8254 non-ASCII char is found.
8255
8256 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8257 (reorder_font_vector): Change the arg preferred_family to font.
8258 Prefer the spec matching with font.
8259 (fontset_get_font_group): New function.
8260 (fontset_find_font): Change the format of an element of a realized
8261 fontset. Use fontset_get_font_group.
8262 (fontset_font): Try the current fontset, the default fontset, the
8263 fallbacks of the current fontset, and the fallbacks of the default
8264 fontset in this order.
8265 (face_for_char): Delete the shortcut to use the current font.
8266 (fontset_from_font): Don't set fonts for Latin in the fontset.
8267
8268 * font.h (font_make_object, font_match_p): Adjust prototypes.
8269
8270 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8271
8272 * font.c (font_make_object): New arg entity and pixelsize.
8273 (font_check_otf_features, font_check_otf): New functions.
8274 (font_match_p): Check :lang, :script, and :otf properties.
8275
8276 * xfont.c (xfont_open): Adjust it for the change of
8277 font_make_object.
8278 (xfont_text_extents): Fix initial setting of metrics.
8279
8280 * ftfont.c (struct ftfont_info): New member index, delete member
8281 fc_charset_idx. Make the member order compatible with struct
8282 xftfont_info.
8283 (fc_charset_table): Change charset names to registry names.
8284 (ftfont_pattern_entity): Delete the args registry and
8285 fc_charset_idx. Change the value of :font-entity property
8286 to (FONTNAME . INDEX). Always set :registry property to
8287 `iso10646-1'.
8288 (struct ftfont_cache_data): New struct.
8289 (ftfont_lookup_cache): New arg for_face.
8290 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8291 (ftfont_driver): Set the member otf_capability.
8292 (ftfont_get_charset): Adjust it for the change of
8293 fc_charset_table.
8294 (OTF_TAG_SYM): New macro.
8295 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8296 for the change of fc_charset_table.
8297 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8298 ftfont_pattern_entity. Add FC_INDEX to objset.
8299 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8300 and ftfont_pattern_entity.
8301 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8302 font_make_object, struct ftfont_info.
8303 (ftfont_has_char): Use ftfont_get_fc_charset.
8304 (ftfont_otf_features, ftfont_otf_capability): New functions.
8305 (ftfont_shape): Use ftfont_get_otf.
8306 (ftfont_text_extents): Fix initial setting of metrics.
8307
8308 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8309 member order compatible with struct ftfont_info.
8310 (xftfont_open): Add FC_CHARSET to the pattern. Set
8311 xftfont_info->ft_size. Don't unlock the face. Check BDF
8312 properties if appropriate.
8313 (xftfont_close): Unlock the face.
8314 (xftfont_anchor_point, xftfont_shape): Deleted.
8315 (syms_of_xftfont): Don't set members anchor_point and shape of
8316 xftfont_driver.
8317
8318 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8319 font_make_object.
8320
8321 * w32font.c (w32font_open): Adjust it for the change of
8322 font_make_object.
8323 (w32font_open_internal): Don't set properties of font_object here.
8324
8325 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8326
8327 * macfns.c (x_create_tip_frame):
8328 * w32fns.c (x_create_tip_frame):
8329 * xfns.c (x_create_tip_frame): Pass parameter argument to
8330 face-set-after-frame-default.
8331
8332 * xfaces.c (Finternal_merge_in_global_face): Save merged
8333 attributes for the default face back into the face vector.
8334
8335 2008-07-08 Andreas Schwab <schwab@suse.de>
8336
8337 * fontset.h: Declare fontset_from_font. Don't declare
8338 new_fontset_from_font and fontset_from_font_name.
8339 * xterm.c: Include "fontset.h".
8340 * Makefile.in (xterm.o): Update dependencies.
8341
8342 2008-07-08 Glenn Morris <rgm@gnu.org>
8343
8344 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8345 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8346
8347 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8348
8349 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8350 (x_set_frame_parameters): Don't bind it.
8351
8352 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8353
8354 * w32fns.c (map_w32_filename): Declare extern.
8355
8356 2008-07-07 Jason Rumney <jasonr@gnu.org>
8357
8358 * w32term.c (WS_EX_LAYERED): Define if not already.
8359
8360 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8361
8362 * xfaces.c (set_font_frame_param): Don't try to set the font
8363 parameter if it is still unspecified in the lface.
8364
8365 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8366
8367 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8368 face if it didn't already exist.
8369
8370 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8371
8372 2008-07-05 Andreas Schwab <schwab@suse.de>
8373
8374 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8375
8376 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8377
8378 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8379 word-wrapping.
8380 (IT_DISPLAYING_WHITESPACE): New macro.
8381 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8382 when word-wrapping. Simplify word-wrapping logic. Use correct
8383 pixel positions when saving copies of the iterator.
8384 (display_line): Use proper wrap point if the last character on a
8385 line was preceded by whitespace.
8386
8387 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8388
8389 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8390
8391 2008-07-04 Kenichi Handa <handa@m17n.org>
8392
8393 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8394
8395 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8396
8397 2008-07-02 Jason Rumney <jasonr@gnu.org>
8398
8399 * xfns.c (syms_of_xfns): Only define x-select-font when both
8400 HAVE_FREETYPE and USE_GTK.
8401
8402 * xdisp.c (next_element_from_display_vector): Move assignment out
8403 of if statement.
8404
8405 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8406
8407 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8408
8409 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8410 (syms_of_fileio): Initialize and export them.
8411 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8412
8413 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8414 (Fsystem_move_file_to_trash): New function.
8415 (syms_of_w32fns): Export it to lisp.
8416
8417 2008-07-01 Jason Rumney <jasonr@gnu.org>
8418
8419 * w32font.c (w32font_text_extents): Don't count overhang as part
8420 of width.
8421
8422 2008-06-30 Miles Bader <miles@gnu.org>
8423
8424 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8425 Add `avoid_cursor_p' field.
8426
8427 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8428 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8429 (append_glyph, append_composite_glyph, produce_image_glyph)
8430 (append_stretch_glyph): Initialize avoid_cursor_p.
8431 (get_it_property): Rename from `get_line_height_property'.
8432 (x_produce_glyphs): Use get_it_property.
8433 (handle_line_prefix, push_display_prop): New functions.
8434 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8435 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8436 New variables.
8437 (syms_of_xdisp): Initialize them.
8438
8439 2008-06-30 Kenichi Handa <handa@m17n.org>
8440
8441 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8442 XftDefaultSubstitute (they are called in XftFontMatch).
8443 (xftfont_open): Fix args to ftfont_font_format.
8444
8445 * ftfont.c (fc_charset_table): New member lang.
8446 (ftfont_resolve_generic_family): New arg pattern.
8447 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8448 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8449 (ftfont_open): Fix args to ftfont_font_format.
8450 (ftfont_font_format): New arg filename.
8451
8452 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8453
8454 * xfaces.c (Finternal_merge_in_global_face): If default face was
8455 modified, realize it again. Update the font face attribute.
8456
8457 2008-06-29 Jason Rumney <jasonr@gnu.org>
8458
8459 * w32term.c (x_set_frame_alpha): Fix logic.
8460
8461 2008-06-29 Kenichi Handa <handa@m17n.org>
8462
8463 * fontset.c (Finternal_char_font): Return font-object instead of
8464 font-name.
8465
8466 * composite.c (get_composition_id): Fix the width calculation for TAB.
8467
8468 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8469
8470 * indent.c (Fvertical_motion): Properly handle float column arg.
8471
8472 2008-06-28 Jason Rumney <jasonr@gnu.org>
8473
8474 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8475 (pfnSetLayeredWindowAttributes): New function pointer.
8476 (w32_initialize): Initialize it when supported.
8477 (x_set_frame_alpha): New function.
8478
8479 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8480 (w32_frame_parm_handlers): Set alpha handler.
8481
8482 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8483
8484 2008-06-27 Jason Rumney <jasonr@gnu.org>
8485
8486 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8487 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8488 (w32_to_x_charset, x_to_w32_charset)
8489 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8490 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8491 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8492 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8493 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8494 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8495 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8496 (Qw32_charset_unicode): Remove.
8497 (syms_of_w32fns): Update for above changes.
8498
8499 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8500 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8501 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8502 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8503 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8504 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8505 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8506 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8507 (syms_of_w32font): Update for above changes.
8508
8509 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8510
8511 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8512 removed #if.
8513 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8514
8515 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8516 Eli Zaretskii <eliz@gnu.org>
8517
8518 * makefile.w32-in (LOCAL_FLAGS):
8519 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8520
8521 * sysdep.c (_spawnlp, _getpid):
8522 Declare with explicit _cdecl instead of _CRTAPI1.
8523
8524 * editfns.c (Fget_internal_run_time):
8525 Check for WINDOWSNT with #ifdef, not #if.
8526
8527 2008-06-26 Jason Rumney <jasonr@gnu.org>
8528
8529 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8530
8531 * w32term.c (x_draw_glyph_string_foreground)
8532 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8533 Use FONT_HANDLE macro.
8534 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8535
8536 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8537 (uniscribe_encode_char): Use FONT_HANDLE macro.
8538
8539 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8540 (w32font_text_extents): Use precast w32_font.
8541 (w32font_close): Free cached metrics.
8542 (w32font_open_internal): Allocate space for name on stack.
8543
8544 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8545
8546 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8547
8548 2008-06-26 Jason Rumney <jasonr@gnu.org>
8549
8550 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8551 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8552
8553 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8554
8555 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8556
8557 2008-06-26 Jason Rumney <jasonr@gnu.org>
8558
8559 * w32bdf.c, w32bdf.h: Remove obsolete files.
8560
8561 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8562
8563 * w32gui.h: Don't include w32bdf.h.
8564 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8565 Remove obsolete font support.
8566
8567 * w32font.h (struct w32font_info): Remove compat_w32_font.
8568 Add hfont member.
8569 (FONT_COMPAT): Remove obsolete macro.
8570
8571 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8572 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8573 (w32font_open_internal): Remove compat code. Set new hfont member.
8574 (Fx_select_font): Use new hfont member.
8575
8576 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8577 (uniscribe_encode_char): Use new hfont member.
8578
8579 * w32term.c (x_draw_glyph_string_foreground)
8580 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8581 (x_draw_glyph_string): Use metrics in w32font_info.
8582
8583 2008-06-26 Kenichi Handa <handa@m17n.org>
8584
8585 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8586
8587 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8588
8589 * unexnext.c:
8590 * m/ews4800.h:
8591 * m/hp9000s300.h:
8592 * m/ibm370aix.h:
8593 * m/mips-siemens.h:
8594 * m/ncr386.h:
8595 * m/next.h:
8596 * m/pmax.h:
8597 * m/powerpcle.h:
8598 * m/tandem-s2.h:
8599 * s/386bsd.h:
8600 * s/bsd386.h:
8601 * s/bsd4-1.h:
8602 * s/bsd4-2.h:
8603 * s/bsdos2-1.h:
8604 * s/bsdos2.h:
8605 * s/bsdos3.h:
8606 * s/bsdos4.h:
8607 * s/nextstep.h:
8608 * s/ultrix4-3.h:
8609 * s/usg5-0.h:
8610 * s/usg5-2-2.h:
8611 * s/usg5-2.h:
8612 * s/usg5-4-3.h:
8613 * s/ux4800.h:
8614 * s/uxpds.h:
8615 * s/uxpv.h: Remove support for obsolete systems.
8616 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8617 Remove, insert contents in s/hpux10-20.h.
8618 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8619 Remove, insert contents in s/aix4-2.h.
8620 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8621 * s/bsd4-3.h: Rename to ...
8622 * s/bsd-common.h: ... this.
8623 * data.c:
8624 * doc.c:
8625 * ecrt0.c:
8626 * emacs.c:
8627 * fileio.c:
8628 * floatfns.c:
8629 * keyboard.c:
8630 * mem-limits.h:
8631 * print.c:
8632 * process.c:
8633 * sysdep.c:
8634 * syssignal.h:
8635 * systty.h:
8636 * syswait.h:
8637 * term.c:
8638 * unexec.c:
8639 * unexelf.c:
8640 * unexhp9k800.c:
8641 * m/hp800.h:
8642 * m/ibmrs6000.h:
8643 * m/mips.h:
8644 * m/vax.h:
8645 * s/darwin.h:
8646 * s/freebsd.h:
8647 * s/gnu.h:
8648 * s/ms-w32.h:
8649 * s/msdos.h:
8650 * s/netbsd.h:
8651 * s/template.h: Remove references to obsolete variables.
8652
8653 * Makefile.in: Add dependencies for all unexec files.
8654 (admindir): Remove unused variable.
8655 (UNEXEC_SRC): Remove references.
8656
8657 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8658
8659 * xfns.c (x_default_font_parameter): If Xft is available, first
8660 try Monospace-12 for the default font.
8661
8662 2008-06-25 Jason Rumney <jasonr@gnu.org>
8663
8664 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8665
8666 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8667
8668 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8669
8670 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8671
8672 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8673
8674 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8675 <scroll-conservatively>: Fix typo in docstring.
8676
8677 * xselect.c (Fx_send_client_event): Doc fix.
8678
8679 2008-06-25 Kenichi Handa <handa@m17n.org>
8680
8681 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8682
8683 * font.c (font_parse_fcname): Remove unused variables.
8684 (font_sort_entites): Delete the arg SPEC. Caller changed.
8685 Fix for the case of ! best_only.
8686 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8687
8688 * lisp.h (Fstring_to_unibyte): EXFUN it.
8689
8690 * character.h (str_to_unibyte): Extern it.
8691
8692 * character.c (str_to_unibyte): New function.
8693
8694 * fns.c (Fstring_to_unibyte): New function.
8695 (syms_of_fns): Defsubr it.
8696
8697 2008-06-24 Kenichi Handa <handa@m17n.org>
8698
8699 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8700 DPI too.
8701 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8702
8703 2008-06-24 Andreas Schwab <schwab@suse.de>
8704
8705 * Makefile.in (${lispsource}loaddefs.el): Rename from
8706 ../lisp/loaddefs.el.
8707 (bootstrap-clean): Do what distclean does but don't remove
8708 Makefile.
8709 (distclean): Depend on bootstrap-clean and remove Makefile.
8710
8711 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8712
8713 * buffer.h (struct buffer): New member word_wrap.
8714
8715 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8716 word-wrap.
8717 (init_buffer_once): Initialize them.
8718
8719 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8720 line_wrap enum possessing three possible values.
8721
8722 * termopts.h: Replace truncate_partial_width_windows with
8723 Vtruncate_partial_width_windows.
8724
8725 * dispnew.c (direct_output_for_insert): Avoid direct output when
8726 inserting a space with word wrap on.
8727
8728 * indent.c (compute_motion): Obey integer values of
8729 truncate-partial-width-windows.
8730
8731 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8732 replacing truncate_partial_width_windows.
8733 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8734 truncate only if the window width is below that integer.
8735 (start_display, resize_mini_window, produce_stretch_glyph)
8736 (display_string, move_it_in_display_line_to): Use line_wrap.
8737 (back_to_previous_visible_line_start, reseat_1): Reset
8738 string_from_display_prop_p.
8739 (display_line): Extend default face to end of line when wrapping.
8740
8741 2008-06-24 Kim F. Storm <storm@cua.dk>
8742
8743 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8744 to wrap continued lines at word boundaries.
8745
8746 2008-06-24 Jason Rumney <jasonr@gnu.org>
8747
8748 * font.c (Ffont_face_attributes): Multiply pixel size before point
8749 conversion to avoid multiplying rounding error.
8750
8751 2008-06-23 Jason Rumney <jasonr@gnu.org>
8752
8753 * w32term.c (x_draw_glyph_string_background)
8754 (x_draw_glyph_string): Remove old bdf font code.
8755
8756 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8757
8758 2008-06-22 Kenichi Handa <handa@m17n.org>
8759
8760 * font.c (font_find_for_lface): Try the adstyle specified in
8761 the property of LFACE_FONT of LFACE (if any).
8762
8763 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8764 Ryo Yoshitake <ryo@shiftmode.net>
8765
8766 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8767
8768 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8769
8770 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8771 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8772 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8773 (witness-emacs): Remove.
8774 (lisp, shortlisp): Move loaddefs.el earlier.
8775 (mostlyclean): Forget about witness-emacs.
8776
8777 2008-06-22 Glenn Morris <rgm@gnu.org>
8778
8779 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8780 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8781
8782 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8783
8784 * Makefile.in (PRECOMP): Remove.
8785 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8786 (witness-emacs): Run `compile-first'.
8787 (.el.elc): Use the new compile-onefile target.
8788
8789 2008-06-21 Kenichi Handa <handa@m17n.org>
8790
8791 * xftfont.c (xftfont_open): Handle QCembolden only when
8792 FC_EMBOLDEN is defined.
8793
8794 2008-06-21 Andreas Schwab <schwab@suse.de>
8795
8796 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8797 (.el.elc): Likewise.
8798
8799 2008-06-21 Miles Bader <miles@gnu.org>
8800
8801 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8802 build dir, not the lisp source dir.
8803
8804 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8805
8806 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8807 (bootstrapclean): Remove.
8808 (.el.elc): New rule.
8809 (PRECOMP): New var.
8810 (../lisp/subdirs.el): Remove.
8811 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8812 (witness-emacs): New target.
8813 (mostlyclean): Remove witness-emacs as well.
8814 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8815 Add witness-emacs dependency.
8816
8817 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8818
8819 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8820 defined by the font.
8821
8822 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8823
8824 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8825 (bootstrap-clean): New target that keeps TAGS around.
8826 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8827 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8828
8829 2008-06-20 Jason Rumney <jasonr@gnu.org>
8830
8831 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8832 Remove obsolete font code.
8833
8834 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8835 to determine language support.
8836
8837 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8838
8839 * sysdep.c (cfsetspeed): New fun extracted from the code.
8840 (cfmakeraw): Move before first use.
8841
8842 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8843
8844 * sysdep.c (cfmakeraw): Provide fallback implementation.
8845 (serial_configure): Provide fallback implementation of cfsetspeed.
8846
8847 2008-06-20 Kenichi Handa <handa@m17n.org>
8848
8849 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8850 the pattern.
8851
8852 * fontset.c (fontset_from_font): Copy font_spec before changing
8853 the elements.
8854
8855 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8856
8857 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8858
8859 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8860 for explicit `font' parameters.
8861
8862 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8863
8864 2008-06-19 Kenichi Handa <handa@m17n.org>
8865
8866 * frame.c: Include <ctype.h>.
8867 (x_set_font_backend): Allow spacing characters in the X resource
8868 for FontBackend.
8869
8870 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8871
8872 * w32fns.c, xfns.c (Qfont_param): New var.
8873 (syms_of_w32fns): Initialize it.
8874 (x_default_font_parameter): Record explicit `font' into
8875 `font-parameter'.
8876
8877 2008-06-18 Kenichi Handa <handa@m17n.org>
8878
8879 * font.c (font_parse_xlfd): Fix previous change.
8880 (font_parse_fcname): Don't use :fc-unknown-spec.
8881 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8882 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8883 (font_add_log): Prepend the driver name to the resulting fonts.
8884
8885 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8886 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8887 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8888
8889 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8890 (QCembolden): New variables.
8891 (syms_of_xftfont): DEFSYM them.
8892 (xftfont_open): Call XftFontMatch. Don't trust the result of
8893 XftTextExtents8 if the pixel_size is less than 5.
8894
8895 2008-06-18 Andreas Schwab <schwab@suse.de>
8896
8897 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8898 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8899
8900 2008-06-18 Jason Rumney <jasonr@gnu.org>
8901
8902 * w32font.c (w32font_list, w32font_match): Add logging.
8903
8904 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8905
8906 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8907
8908 * font.c (font_parse_fcname): Store divider characters for
8909 unknown-spec list. For known key symbols, intern using correct
8910 symbol name.
8911
8912 2008-06-17 Kenichi Handa <handa@m17n.org>
8913
8914 * xfaces.c (realize_default_face): If the frame is not on window
8915 system, set the fontset of face to nil.
8916
8917 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8918
8919 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8920
8921 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8922
8923 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8924 (build_font_name_from_vector): Delete externs.
8925
8926 * xfaces.c (struct font_name): Don't declare.
8927
8928 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8929
8930 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8931
8932 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8933
8934 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8935
8936 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8937
8938 * font.c (Ffont_spec): Fix usage in docstring.
8939 (Ffont_face_attributes): Doc fix.
8940
8941 2008-06-16 Andreas Schwab <schwab@suse.de>
8942
8943 * font.c (Ffont_face_attributes): Fix definition.
8944
8945 2008-06-16 Jason Rumney <jasonr@gnu.org>
8946
8947 * font.h (font_style_symbolic_from_value): Remove.
8948
8949 * font.c (font_style_symbolic_from_value): Remove.
8950 (font_style_symbolic): Revert to pre 2008-06-13 version.
8951
8952 * w32font.c (w32_to_fc_weight): New function.
8953 (w32font_full_name, logfont_to_fcname): Use it.
8954
8955 2008-06-16 Kenichi Handa <handa@m17n.org>
8956
8957 * font.c (font_check_object): Delete it.
8958 (font_clear_cache): Check if a font-object is alive.
8959 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8960 font-object to nil.
8961 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8962 (font_at): Don't call font_check_object.
8963 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8964
8965 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8966
8967 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8968
8969 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8970
8971 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8972
8973 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
8974
8975 * font.c (font_parse_fcname): Only one decimal point.
8976 (font_unparse_fcname): Handle data in family and foundry indices
8977 as symbols, not strings.
8978 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8979
8980 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8981
8982 * font.h (font_unparse_gtkname): Add prototype.
8983
8984 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8985
8986 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8987
8988 2008-06-15 Andreas Schwab <schwab@suse.de>
8989
8990 * font.c (font_update_drivers): Fix crash when no drivers match.
8991
8992 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8993
8994 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8995 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8996
8997 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8998
8999 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9000
9001 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9002
9003 * process.c (Fserial_process_configure, Fprocess_send_eof):
9004 Use EQ to compare Lisp_Objects.
9005
9006 2008-06-13 Jason Rumney <jasonr@gnu.org>
9007
9008 * w32fns.c (Fw32_select_font): Remove old font API function.
9009
9010 * w32font.c (logfont_to_fcname): New function.
9011 (Fx_select_font): New font dialog function compatible with
9012 GTK/fontconfig version.
9013
9014 * font.c (font_style_symbolic_from_value): New function.
9015 (font_style_symbolic): Use it.
9016
9017 * font.h (font_style_symbolic_from_value): Declare new function.
9018
9019 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9020
9021 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9022 <font-width-table>: Fix typos in docstrings.
9023
9024 2008-06-13 Daniel Engeler <engeler@gmail.com>
9025
9026 These changes add serial port access.
9027 * process.c: Add HAVE_SERIAL.
9028 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9029 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9030 (list_processes_1, select_wrapper, Fstop_process)
9031 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9032 (status_notify): Modify to handle serial processes.
9033 [HAVE_SERIAL] (Fserial_process_configure)
9034 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9035 New functions.
9036 * process.h (struct Lisp_Process): Add `type'.
9037 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9038 New functions.
9039 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9040 serial ports.
9041 (serial_open, serial_configure): New functions.
9042 * w32.h: Add FILE_SERIAL.
9043 (struct _child_process): Add ovl_read, ovl_write.
9044
9045 2008-06-13 Kenichi Handa <handa@m17n.org>
9046
9047 * dispextern.h (enum lface_attribute_index): New member
9048 LFACE_FOUNDRY_INDEX.
9049
9050 * font.c (font_score): Delete arg alternate_families. Check only
9051 weight, slant, width, and size. Ignore the difference of alias
9052 style symbols.
9053 (font_sort_entites): Adjust for the above change. Reflect the
9054 order of font-driver to scores.
9055 (font_list_entities): Don't check alternate_familes here.
9056 (font_clear_prop): Handle foundry.
9057 (font_update_lface): Don't parse "foundry-family" form here.
9058 Handle FONT_FOUNDRY_INDEX.
9059 (font_find_for_lface): Likewise. Handle alternate families here.
9060 If registry is nil, try iso8859-1 and ascii-0.
9061 (font_open_for_lface): Pay attention to size in ENTITY.
9062 (font_open_by_name): Simplify by calling font_load_for_lface.
9063 (free_font_driver_list): Delete it.
9064 (font_update_drivers): Preserve the order of backends.
9065 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9066 of font_score and font_sort_entites.
9067 (font_update_sort_order): Likewise.
9068
9069 * xfaces.c (LFACE_FOUNDRY): New macro.
9070 (check_lface_attrs): Check foundry.
9071 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9072 (merge_face_vectors): Check foundry.
9073 (merge_face_ref): Likewise.
9074 (Finternal_set_lisp_face_attribute): Likewise.
9075 (x_update_menu_appearance): Likewise.
9076 (Finternal_get_lisp_face_attribute): Likewise.
9077 (lface_hash): Likewise.
9078 (lface_same_font_attributes_p): Likewise.
9079 (x_supports_face_attributes_p): Likewise.
9080 (tty_supports_face_attributes_p): Likewise.
9081 (Finternal_set_alternative_font_family_alist): Intern strings.
9082 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9083 (realize_default_face): Set LFACE_FOUNDRY (lface).
9084
9085 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9086 font-driver at first.
9087
9088 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9089
9090 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9091
9092 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9093
9094 2008-06-12 Jim Meyering <meyering@redhat.com>
9095
9096 Make unexec_free handle NULL the same way free does.
9097 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9098
9099 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9100
9101 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9102 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9103 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9104 (WEAK_ALIAS): Simplify.
9105 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9106 when searching a unibyte buffer.
9107
9108 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9109
9110 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9111
9112 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9113
9114 * w32font.c: Include ctype.h.
9115
9116 2008-06-11 Jason Rumney <jasonr@gnu.org>
9117
9118 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9119 misreported as space.
9120 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9121 as aliases for registry iso10646-1.
9122
9123 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9124
9125 * buffer.c (clone_per_buffer_values): Skip `name'.
9126
9127 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9128
9129 * font.c (font_parse_fcname): Fix last change; accept decimal
9130 points in font size.
9131
9132 2008-06-10 Jason Rumney <jasonr@gnu.org>
9133
9134 * w32uniscribe.c (add_opentype_font_name_to_list):
9135 Skip non unicode fonts.
9136
9137 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9138
9139 * xfns.c (Fx_font_dialog): New function.
9140
9141 * gtkutil.c (xg_dialog_response_cb): Rename from
9142 xg_file_response_callback.
9143 (pop_down_dialog): Rename from pop_down_file_dialog.
9144 (xg_get_file_name): Callers changed.
9145 (xg_get_font_name): New function.
9146
9147 * gtkutil.h (xg_get_font_name): Insert prototype.
9148
9149 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9150
9151 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9152 x_underline_minimum_display_offset.
9153 (syms_of_xdisp): Declare it here rather than in xterm.c.
9154 * dispextern.h (underline_minimum_offset): Declare it.
9155 * w32term.c (x_draw_glyph_string): Use it.
9156 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9157 (syms_of_xterm): Don't declare it any more.
9158 (x_draw_glyph_string): Adjust to the new name.
9159
9160 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9161
9162 * xterm.c (x_underline_minimum_display_offset): New var.
9163 (x_draw_glyph_string): Use it.
9164 (syms_of_xterm): Declare it.
9165
9166 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9167
9168 * font.c (font_parse_fcname): Accept GTK-style font names too.
9169
9170 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * dired.c (file_name_completion): Don't return t if the match is exact
9173 but with different capitalization.
9174 * minibuf.c (Ftry_completion): Simplify.
9175
9176 * window.c (Vwindow_point_insertion_type): New var.
9177 (set_window_buffer): Use it.
9178 (syms_of_window): Init and export it to Lisp.
9179
9180 2008-06-10 Kenichi Handa <handa@m17n.org>
9181
9182 * font.h (font_intern_prop): Prototype adjusted.
9183
9184 * font.c (font_intern_prop): New arg force_symbol.
9185 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9186 Adjust for the change of font_intern_prop.
9187
9188 * ftfont.c (ftfont_pattern_entity):
9189 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9190 (w32_registry):
9191 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9192 the change of font_intern_prop.
9193
9194 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9195
9196 * w32menu.c (digest_single_submenu): Declare extern.
9197
9198 2008-06-09 Jason Rumney <jasonr@gnu.org>
9199
9200 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9201
9202 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9203 (parse_single_submenu): Remove.
9204 (digest_single_submenu): Remove.
9205 (syms_of_w32menu): Don't initialise variables that have moved
9206 to menu.c.
9207 (set_frame_menubar): Sync with version in xmenu.c.
9208 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9209
9210 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9211 Make static again.
9212
9213 2008-06-09 Jason Rumney <jasonr@gnu.org>
9214
9215 Changes to w32 files related to the move of common menu code
9216 to menu.c on 2008-06-08 by Chong Yidong.
9217
9218 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9219 defs to w32gui.h.
9220 (single_keymap_panes, push_menu_item, push_menu_pane):
9221 Make globally visible.
9222
9223 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9224 (local_free, malloc_widget_value, free_widget_value)
9225 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9226 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9227 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9228 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9229 (menu_items, menu_items_allocated, menu_items_used)
9230 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9231 (init_menu_items, finish_menu_items, discard_menu_items)
9232 (grow_menu_items, push_submenu_start, push_submenu_end)
9233 (push_left_right_boundary, push_menu_pane, push_menu_item)
9234 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9235 (free_menubar_widget_tree_value, parse_single_submenu)
9236 (update_submenu_strings): Remove functions.
9237 (xmalloc_widget_value): Remove and declare extern.
9238
9239 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9240 (OBJ1): Build it.
9241
9242 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9243 (local_heap, local_alloc, local_free, malloc_widget_value)
9244 (free_widget_value): Define here.
9245
9246 2008-06-09 Kenichi Handa <handa@m17n.org>
9247
9248 * font.h (Qascii_0): Extern it.
9249
9250 * font.c (Qascii_0): New variable.
9251 (syms_of_font): DEFSYM it.
9252 (font_open_by_name): If the registry "iso8859-1" fails, try also
9253 "ascii-0".
9254
9255 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9256
9257 2008-06-08 Kenichi Handa <handa@m17n.org>
9258
9259 * .gdbinit (xfont): New command.
9260
9261 2008-06-08 Andreas Schwab <schwab@suse.de>
9262
9263 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9264 * Makefile.in (menu.o): Update dependencies.
9265
9266 * Makefile.in (obj): Always add menu.o.
9267 * emacs.c (main): Always call syms_of_menu.
9268 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9269
9270 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
9271
9272 * Makefile.in: Compile menu.c.
9273
9274 * lisp.h: Declare syms_of_menu.
9275
9276 * emacs.c (main): Call syms_of_menu.
9277
9278 * keyboard.h: Relocate platform-independent menu definitions from
9279 xmenu.c.
9280
9281 * menu.c: New file. Relocate platform-independent menu
9282 definitions from xmenu.c. Suggested by Adrian Robert.
9283
9284 * xmenu.c: Remove platform-independent menu definitions.
9285 (menu_items menu_items_inuse, menu_items_allocated)
9286 (menu_items_used, menu_items_n_panes)
9287 (menu_items_submenu_depth): Move to keyboard.h.
9288 (init_menu_items, finish_menu_items, unuse_menu_items)
9289 (discard_menu_items, restore_menu_items, save_menu_items)
9290 (grow_menu_items, push_submenu_start, push_submenu_end)
9291 (push_left_right_boundary, push_menu_pane, push_menu_item)
9292 (keymap_panes, single_keymap_panes, single_menu_item)
9293 (list_of_panes, list_of_items, find_and_call_menu_selection)
9294 (xmalloc_widget_value, free_menubar_widget_value_tree)
9295 (parse_single_submenu, digest_single_submenu)
9296 (update_submenu_strings): Move to menu.c.
9297
9298 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9299
9300 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9301
9302 2008-06-06 Miles Bader <miles@gnu.org>
9303
9304 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9305 face, not frame default.
9306
9307 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9308
9309 * window.c (pop_up_windows, pop_up_frames)
9310 (display_buffer_reuse_frames, Vpop_up_frame_function)
9311 (Vdisplay_buffer_function, Veven_window_heights)
9312 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9313 (Vspecial_display_function, Vsame_window_buffer_names)
9314 (Vsame_window_regexps, split_height_threshold)
9315 (Vsplit_window_preferred_function): Move those vars to window.el.
9316 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9317 (Fdisplay_buffer): Move those functions to window.el.
9318 (syms_of_window): Remove corresponding declarations.
9319 (display_buffer): New function.
9320 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9321 * dispnew.c (Flast_nonminibuf_frame): New function.
9322 * buffer.c (Fpop_to_buffer): Move to window.el.
9323
9324 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9325
9326 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9327
9328 2008-06-05 Kenichi Handa <handa@m17n.org>
9329
9330 * coding.c (detect_coding): Fix previous change.
9331 (detect_coding_system): Likewise.
9332
9333 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9334
9335 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9336
9337 * keymap.c (Vminibuffer_local_filename_must_match_map):
9338 Rename from Vminibuffer_local_must_match_filename_map.
9339 (syms_of_keymap):
9340 * minibuf.c (Fcompleting_read): Adjust accordingly.
9341 * commands.h: Rename declaration as well.
9342
9343 2008-06-05 Kenichi Handa <handa@m17n.org>
9344
9345 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9346 family name.
9347 (Ffont_put): Likewise.
9348
9349 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9350 current font-spec.
9351
9352 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9353 is unspecified.
9354
9355 * xfaces.c (realize_x_face): If the font-related face attributes
9356 are the same as those of default face, realize a new fontset from
9357 default->fontset.
9358 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9359
9360 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9361
9362 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9363 (move_it_in_display_line): New wrapper.
9364
9365 * window.c (window_scroll_pixel_based_preserve_x)
9366 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9367 (window_scroll_pixel_based, window_scroll_line_based):
9368 Use them to preserve column positions.
9369 (syms_of_window): Initialize them.
9370
9371 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9372 (HPOS . VPOS) pair.
9373
9374 * dispextern.h (move_it_in_display_line): Declare.
9375
9376 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9377
9378 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9379 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9380 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9381
9382 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9383
9384 * window.c (Fset_window_parameter): Doc fix.
9385 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9386
9387 2008-06-04 Joakim Verona <joakim@verona.se>
9388
9389 * window.h (struct window): Add new member window_parameters.
9390
9391 * window.c (Fwindow_parameters, Fwindow_parameter)
9392 (Fset_window_parameter): New defuns.
9393 (syms_of_window): Defsubr the new defuns.
9394 (make_window): Initialize window_parameters to nil.
9395
9396 2008-06-04 John Paul Wallington <jpw@pobox.com>
9397
9398 * eval.c (Fdefmacro): Doc fix.
9399
9400 2008-06-04 Kenichi Handa <handa@m17n.org>
9401
9402 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9403 Be sure to call setup_coding_system when we find a proper coding system.
9404 (detect_coding_system): Fix handling of coding->head_ascii.
9405
9406 2008-06-03 Andreas Schwab <schwab@suse.de>
9407
9408 * font.c (font_prop_validate_spacing): Fix last change.
9409
9410 2008-06-03 Kenichi Handa <handa@m17n.org>
9411
9412 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9413 (font_parse_fcname): Fix handling of unknown key.
9414
9415 * xfont.c (xfont_list): Try an alias.
9416
9417 * charset.c (char_charset): Return NULL if the arg charset_list is
9418 specified and C doesn't belong to any of them.
9419
9420 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9421
9422 * font.c (font_pixel_size): Don't take cdr of an integer.
9423
9424 2008-06-02 Jim Meyering <meyering@redhat.com>
9425
9426 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9427 * alloc.c (xfree): Return right away for a NULL arg.
9428 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9429 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9430 * mac.c (create_apple_event_from_event_ref): Likewise.
9431 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9432 Likewise.
9433 * doprnt.c (doprnt1): Likewise.
9434 * frame.c (frame): Likewise.
9435 * keyboard.c (wipe_kboard): Likewise.
9436 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9437 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9438 * term.c (tty_default_color_capabilities, maybe_fatal)
9439 (delete_tty): Likewise.
9440 * w16select.c (string): Likewise.
9441 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9442 * w32bdf.c (w32_free_bdf_font): Likewise.
9443 * w32fns.c (w32_unload_font): Likewise.
9444 * w32font.c (w32font_close): Likewise.
9445 * window.c (size_window): Likewise.
9446 * xselect.c (receive_incremental_selection): Likewise.
9447 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9448 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9449 * w32.c (stat): Likewise.
9450
9451 Remove useless if-before-free tests.
9452 * editfns.c (Fset_time_zone_rule): Likewise.
9453 * lread.c (nosuffix): Likewise.
9454 * ralloc.c (get_bloc): Likewise.
9455 * regex.c (reg_free): Likewise.
9456 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9457 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9458 * xsmfns.c (smc_save_yourself_CB): Likewise.
9459
9460 2008-06-02 Kenichi Handa <handa@m17n.org>
9461
9462 * font.c (font_find_for_lface): Handle float font size.
9463 (font_open_for_lface): Likewise.
9464
9465 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9466 comparing the properties.
9467
9468 2008-06-01 Jason Rumney <jasonr@gnu.org>
9469
9470 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9471 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9472 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9473 Don't add empty script list.
9474 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9475
9476 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9477
9478 * Makefile.in (dot, dotdot): Remove, update users.
9479 ".." has been used elsewhere in the file for a long time.
9480 (LIBXT_STATIC): Remove conditional based on unused variable.
9481
9482 2008-06-01 Miles Bader <miles@gnu.org>
9483
9484 * xfaces.c (Vface_remapping_alist): New variable.
9485 (syms_of_xfaces): Initialize it.
9486 (enum named_merge_point_kind): New type.
9487 (struct named_merge_point): Add `named_merge_point_kind' field.
9488 (push_named_merge_point): Make cycle detection respect different
9489 named-merge-point kinds.
9490 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9491 Remove face-name alias resolution.
9492 (lface_from_face_name): New definition using
9493 `lface_from_face_name_no_resolve'.
9494 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9495 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9496 (get_lface_attributes): New definition that layers face-remapping on
9497 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9498 (lookup_basic_face): New function.
9499 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9500 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9501 `get_lface_attributes'.
9502 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9503 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9504 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9505
9506 * xdisp.c (init_iterator): Pass base_face_id through
9507 `lookup_basic_face' when we actually use it as a face-id.
9508 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9509 DEFAULT_FACE_ID.
9510
9511 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9512 lookup the initial face-id.
9513
9514 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9515
9516 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9517
9518 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9519 (Fremove_text_properties): Fix typos in docstrings.
9520
9521 2008-05-31 Kenichi Handa <handa@m17n.org>
9522
9523 * font.c (font_list_entities): Fix the car part of data to be
9524 stored in the cache.
9525
9526 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9527
9528 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9529
9530 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9531 Add a `test' argument so another predicate than `equal' can be used.
9532 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9533 (map_char_table): Remove unused vars `c' and `i'.
9534 * lisp.h (Foptimize_char_table): Adjust declaration.
9535 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9536
9537 2008-05-30 Kenichi Handa <handa@m17n.org>
9538
9539 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9540 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9541 defined.
9542
9543 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9544
9545 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9546 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9547 frame-local settings for the same variable.
9548
9549 2008-05-30 Kenichi Handa <handa@m17n.org>
9550
9551 * fontset.c (Ffont_info): Move to font.c.
9552 (syms_of_fontset): Delete defsubr of Sfont_info.
9553
9554 * font.c (font_style_to_value, font_score): Delete casting of the
9555 args to xstcasecmp.
9556 (register_font_driver): Increment num_font_drivers only when
9557 registering the driver globally.
9558 (Ffont_info): Move from fontset.c. Handle a font object too.
9559 (syms_of_font): Defsubr Sfont_info.
9560
9561 2008-05-29 Kenichi Handa <handa@m17n.org>
9562
9563 * coding.h (enum define_coding_utf8_arg_index): New enum.
9564 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9565 coding_attr_utf_bom.
9566 (enum utf_bom_type): Rename from utf_16_bom_type.
9567 (struct utf_16_spec): Adjust for the above change.
9568 (struct coding_system): Add utf_8_bom in `spec' union.
9569
9570 * coding.c (CODING_UTF_8_BOM): New macro.
9571 (enum coding_category): Delete coding_category_utf_8, add
9572 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9573 coding_category_utf_8_sig.
9574 (CATEGORY_MASK_UTF_8): Delete it.
9575 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9576 (CATEGORY_MASK_UTF_8_SIG): New macros.
9577 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9578 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9579 CATEGORY_MASK_UTF_8_SIG.
9580 (CATEGORY_MASK_UTF_8): New macro.
9581 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9582 (detect_coding_utf_8): Check BOM.
9583 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9584 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9585 (encode_coding_utf_16): Likewise.
9586 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9587 (detect_coding, detect_coding_system): Handle utf-8-auto.
9588 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9589 (syms_of_coding): Fix setting up of Vcoding_category_table.
9590
9591 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9592
9593 * process.c (Faccept_process_output): If `millisec' is non-nil,
9594 `seconds' default to 0.
9595 (wait_reading_process_output): Also return non-nil if we read output
9596 from a non-running process.
9597
9598 2008-05-29 Jason Rumney <jasonr@gnu.org>
9599
9600 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9601 `raster' specified.
9602 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9603 in the uniscribe backend, but disallow any font that has no
9604 unicode subrange support.
9605
9606 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9607
9608 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9609 Fix typos in docstrings.
9610
9611 2008-05-29 Kenichi Handa <handa@m17n.org>
9612
9613 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9614 (Fx_family_fonts): Set frame correctly.
9615
9616 2008-05-28 Jason Rumney <jasonr@gnu.org>
9617
9618 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9619
9620 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9621
9622 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9623 calling build_annotations.
9624
9625 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9626
9627 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9628 (Fencode_coding_string):
9629 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9630 <latin-extra-code-table>: Fix typos in docstrings.
9631 (syms_of_coding) <coding-system-alist>: Doc fix.
9632 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9633
9634 2008-05-28 Kenichi Handa <handa@m17n.org>
9635
9636 * fontset.c (Ffont_info): Don't call font_close_object.
9637
9638 * font.c (font_parse_family_registry): Use Ffont_put to validate
9639 foundry and family.
9640 (font_delete_unmatched): Don't check spacing.
9641 (font_list_entities): Add spacing to the spec to list fonts.
9642
9643 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9644 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9645
9646 * coding.c (encode_coding_raw_text): Fix previous change.
9647 (encode_coding_object): When the dst_object is a buffer and is
9648 different from src_object, move gap to PT.
9649
9650 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9651
9652 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9653
9654 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9655
9656 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9657 all branches. Compute it differently.
9658
9659 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9660
9661 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9662
9663 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9664 into "else if () ... else ...".
9665
9666 2008-05-27 Jason Rumney <jasonr@gnu.org>
9667
9668 * w32font.c (w32font_open_internal): Determine if glyph indices
9669 are likely to work here.
9670
9671 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9672
9673 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9674 draw overlap glyphs with appropriate highlighting.
9675
9676 2008-05-27 Kenichi Handa <handa@m17n.org>
9677
9678 * xfont.c (xfont_open): Fix calculation of font->average_width.
9679
9680 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9681
9682 * casefiddle.c (casify_object): Try to guess better whether the
9683 argument is a byte or a char.
9684
9685 2008-05-26 Andreas Schwab <schwab@suse.de>
9686
9687 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9688 Always send multiples of format size.
9689
9690 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9691
9692 2008-05-26 Jason Rumney <jasonr@gnu.org>
9693
9694 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9695 (compute_metrics): Don't set failure if we just cleared the cache.
9696 (w32_weight_table): Remove unused variable.
9697 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9698 backwards compatibility.
9699
9700 2008-05-25 Kenichi Handa <handa@m17n.org>
9701
9702 * w32term.c (x_draw_glyph_string):
9703 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9704
9705 * xfaces.c: Delete unused function prototypes.
9706 (xstrlwr, font_frame): Delete them.
9707 (clear_face_cache): Delete unused variable.
9708
9709 * xftfont.c (xftfont_open): Delete unused variable.
9710 If underline_thickness is not 1, adjust underline_position.
9711
9712 * ftxfont.c (ftxfont_open): Delete unused variable.
9713
9714 * fontset.c (face_for_char): Optimize for the case of no charset
9715 property.
9716
9717 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9718 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9719 (otf_open, font_otf_capability, generate_otf_features)
9720 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9721 Comment out by surrounding "#if 0" and "#endif" for the moment.
9722 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9723 (syms_of_font): Codes for accessing above commented out.
9724
9725 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9726
9727 * w32proc.c: Include dispextern.h.
9728
9729 * w32.c: Include dispextern.h.
9730
9731 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9732
9733 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9734 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9735 Fix typos in docstrings.
9736
9737 2008-05-23 Jason Rumney <jasonr@gnu.org>
9738
9739 * xsmfns.c: Remove includes that are already included by config.h.
9740
9741 2008-05-23 Kenichi Handa <handa@m17n.org>
9742
9743 * charset.c (Qemacs, charset_emacs): New variables.
9744 (char_charset): Fix for non-Unicode characters.
9745 (syms_of_charset): Define charset_emacs.
9746
9747 * w32term.c (x_draw_glyph_string): Be sure to update
9748 s->underline_thickness and s->underline_position. Be sure to draw
9749 underline within the current line area.
9750
9751 * xterm.c (x_draw_glyph_string): Be sure to update
9752 s->underline_thickness and s->underline_position. Be sure to draw
9753 underline within the current line area.
9754
9755 * fontset.c: Delete unused variables and add casting for char *
9756 throughout the file.
9757 (fontset_font): Try the fallback fonts of the current fontset
9758 before consulting the default fontset.
9759
9760 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9761
9762 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9763
9764 2008-05-22 Jason Rumney <jasonr@gnu.org>
9765
9766 * font.c: Don't include strings.h.
9767
9768 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9769
9770 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9771 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9772 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9773 to call xstrcasecmp.
9774
9775 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9776
9777 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9778
9779 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9780
9781 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9782
9783 2008-05-22 Kenichi Handa <handa@m17n.org>
9784
9785 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9786
9787 * font.c (font_prop_validate_style): Adjust for the format
9788 change of font_style_table.
9789
9790 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9791 two args.
9792
9793 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9794 two args.
9795
9796 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9797
9798 * minibuf.c (keys_of_minibuf): Delete.
9799 * lisp.h (keys_of_minibuf): Delete.
9800 * emacs.c (main): Don't call keys_of_minibuf.
9801
9802 2008-05-22 Kenichi Handa <handa@m17n.org>
9803
9804 * ftfont.c (ftfont_resolve_generic_family): Rename from
9805 ftfont_list_generic_family. Return a single family for each
9806 generic family.
9807 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9808 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9809 Call font_add_log.
9810 (ftfont_match): Call font_add_log.
9811
9812 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9813 (FONT_DEBUG): Define it.
9814 (font_add_log): Extern it.
9815 (font_assert): Rename from xassert.
9816
9817 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9818 (xfont_list_family): Call font_add_log.
9819 (xfont_match): Likewise.
9820 (memq_no_quit): Delete.
9821
9822 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9823 call of Ffont_xlfd_name.
9824
9825 * xfaces.c (struct table_entry, slant_table, weight_table)
9826 (swidth_table): Move to font.c.
9827
9828 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9829 xassert are changed to font_assert. Delete many unused variables.
9830 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9831 New variables.
9832 (struct table_entry): Move from xfaces.c and modified.
9833 (weight_table, slant_table, width_table): Move from xfaces.c and
9834 contents adjusted for the change of struct table_entry.
9835 (font_style_to_value, font_style_symbolic): Adjust for the
9836 format change of font_style_table.
9837 (font_parse_family_registry): Don't overwrite existing foundry and
9838 family of font_spec.
9839 (font_score): Fix calculation of diff for sizes.
9840 (font_sort_entites): Call font_add_log.
9841 (font_delete_unmatched): Return a newly created list.
9842 (font_list_entities): Fix previous change. Call font_add_log.
9843 (font_matching_entity, font_open_entity, font_close_entity):
9844 Call font_add_log.
9845 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9846 (Finternal_set_font_style_table): Delete.
9847 (BUILD_STYLE_TABLE): New macro.
9848 (build_style_table): New function.
9849 (Vfont_log, font_log_env_checked): New variables.
9850 (font_add_log): New function.
9851 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9852 Declare Lisp variables "font-weight-table", "font-slant-table",
9853 "font-width-table", and "font-log". Initialize font_style_table.
9854
9855 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9856
9857 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9858
9859 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9860 Ryo Yoshitake <ryo@shiftmode.net>
9861
9862 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9863 (Vframe_alpha_lower_limit): New variable.
9864 (x_set_alpha): New function.
9865
9866 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9867
9868 * xfns.c (x-create-frame, Qalpha):
9869 Initialize the frame parameter `alpha'.
9870 * xterm.c (OPAQUE, OPACITY): New.
9871 (x_set_frame_alpha): New function.
9872 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9873
9874 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9875 * w32fns.c (w32_frame_parm_handlers): Likewise.
9876
9877 2008-05-20 Jason Rumney <jasonr@gnu.org>
9878
9879 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9880 truetype fonts to opentype list.
9881
9882 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9883
9884 * fontset.c (Ffontset_info): Doc fix.
9885 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9886 <ignore-relative-composition>: Fix typos in docstrings.
9887
9888 * font.c (syms-of-font) <font-encoding-alist>:
9889 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9890 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9891 (Ffont_otf_alternates): Doc fixes.
9892
9893 2008-05-20 Kenichi Handa <handa@m17n.org>
9894
9895 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9896 font.h through out the file.
9897 (FONT_DRIVERS): Rename from FONTOBJ.
9898 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9899 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9900
9901 * emacs.c (main): Call syms_of_font unconditionally.
9902
9903 * font.h (find_font_encoding): Extern it.
9904
9905 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9906 fontset.c.
9907 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9908 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9909 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9910 only when HAVE_WINDOW_SYSTEM is defined.
9911 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9912 when HAVE_WINDOW_SYSTEM is defined.
9913
9914 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9915 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9916
9917 * xfaces.c: Include font.h unconditionally.
9918 (merge_face_ref, merge_face_vectors)
9919 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9920
9921 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9922
9923 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9924 indirect_variable.
9925 * eval.c (lisp_indirect_variable): New fun.
9926 (Fuser_variable_p): Use it.
9927
9928 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9929
9930 * lisp.h (indirect_variable):
9931 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9932 Use Lisp_Symbol pointers rather than Lisp_Object.
9933 Adjust callers.
9934 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9935 To this end, change calling-convention.
9936
9937 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9938 if some non-hidden buffers are selected by string&pred.
9939
9940 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * process.c (wait_reading_process_output): Always check status
9943 when in batch mode.
9944
9945 2008-05-19 Kenichi Handa <handa@m17n.org>
9946
9947 * font.c (font_list_entities): Fix handling of cache.
9948 (font_matching_entity): Likewise.
9949
9950 * ftfont.c (cs_iso8859_1): Delete.
9951 (ft_face_cache): New variable.
9952 (struct ftfont_info): New member fc_charset_idx.
9953 (ftfont_build_basic_charsets): Delete.
9954 (fc_charset_table): New variable.
9955 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9956 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9957 Callers changed.
9958 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9959 (ftfont_spec_pattern): New argument fc_charset_idx.
9960 Check registry more rigidly. Change callers.
9961 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9962 change of :font-entity property of the font.
9963
9964 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9965 property of the font.
9966
9967 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
9968
9969 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9970 (Funencodable_char_position, Fcheck_coding_systems_region)
9971 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9972 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9973 (Ffind_operation_coding_system, Fset_coding_system_priority)
9974 (Fcoding_system_eol_type): Doc fixes.
9975
9976 2008-05-17 Glenn Morris <rgm@gnu.org>
9977
9978 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9979
9980 2008-05-16 Eli Zaretskii <eliz@gnu.org>
9981
9982 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9983 and st_gid.
9984
9985 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9986 HAVE_WINDOW_SYSTEM is not defined.
9987
9988 * xfaces.c (merge_face_ref, merge_face_vectors)
9989 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9990 HAVE_WINDOW_SYSTEM is defined.
9991 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9992
9993 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9994
9995 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9996
9997 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9998
9999 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10000
10001 2008-05-15 Kenichi Handa <handa@m17n.org>
10002
10003 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10004 preference.
10005
10006 2008-05-15 Glenn Morris <rgm@gnu.org>
10007
10008 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10009
10010 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10011
10012 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10013 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10014
10015 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10016
10017 2008-05-15 Kenichi Handa <handa@m17n.org>
10018
10019 * ftfont.c (ftfont_list): Downcase family name to check generic
10020 families.
10021
10022 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10023 font-spec for QCfont value.
10024
10025 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10026 buffer. Check the return value of it.
10027
10028 2008-05-14 Jason Rumney <jasonr@gnu.org>
10029
10030 * w32term.c (w32_get_glyph_overhangs): Remove.
10031 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10032
10033 2008-05-14 Kenichi Handa <handa@m17n.org>
10034
10035 * font.c (font_prop_validate): Make nil a valid value.
10036 (font_clear_cache): Check if the cached vector of entities is nil
10037 or not.
10038
10039 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10040
10041 * emacs.c (main_thread): Conditionalize on
10042 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10043 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10044
10045 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10046 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10047 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10048
10049 2008-05-14 Kenichi Handa <handa@m17n.org>
10050
10051 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10052 has no corresponding coding system.
10053
10054 2008-05-14 Jason Rumney <jasonr@gnu.org>
10055
10056 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10057
10058 * w32font.h (w32font_open_internal): Update declaration.
10059
10060 * w32font.c (w32font_open_internal): Change last argument from
10061 w32font_info struct to font object. Fill in font object from
10062 font_entity. Get Outline metrics if possible. Use them to
10063 calculate underline position and thickness. Use xlfd name as name
10064 property. Don't set codepage.
10065 (w32font_open): Pass font_object to w32font_open_internal. Don't
10066 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10067 (w32font_draw): Use s->font.
10068 (clear_cached_metrics): Don't clear non-existent blocks.
10069
10070 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10071 font was not found.
10072 (x_draw_glyph_string): Use underline position and thickness from font.
10073
10074 * w32uniscribe.c (uniscribe_open): Pass font_object to
10075 w32font_open_internal.
10076
10077 2008-05-14 Kenichi Handa <handa@m17n.org>
10078
10079 These changes are to delete all legacy font-handling codes, and
10080 make Emacs use only font-backends.
10081
10082 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10083 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10084
10085 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10086
10087 * charset.h (Vcharset_non_preferred_head)
10088 (Vcurrent_iso639_language): Extern them.
10089
10090 * charset.c (Vcharset_non_preferred_head): New variable.
10091 (Vcurrent_iso639_language): New variable.
10092 (syms_of_charset): Declare it as a Lisp variable.
10093 (char_charset): Don't check non preferred charsets. As a last
10094 resort, return charset_unicode.
10095 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10096
10097 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10098 conditionals. Don't check enable_font_backend. Delete all codes
10099 used only when USE_FONT_BACKEND is not defined.
10100
10101 * dispextern.h (struct glyph_string): Change type of `font' to
10102 `struct font *'.
10103 (struct glyph_string): New member underline_position and
10104 underline_thickness.
10105 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10106 (struct face): Change type of `font' to `struct font *'. Remove
10107 members `font_name', `font_info_id'.
10108 (per_char_metric, encode_char): Delete externs.
10109 (calc_pixel_width_or_height): Adjust the prototype.
10110
10111 * emacs.c (enable_font_backend): Delete extern.
10112 (main): Don't set enable_font_backend. Don't check the command
10113 line argument "-disable-font-backend".
10114
10115 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10116 (enum font_property_index): New members FONT_DPI_INDEX,
10117 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10118 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10119 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10120 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10121 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10122 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10123 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10124 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10125 (struct font_spec, struct font_entity): New structs.
10126 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10127 (struct font): Many members from old "struct font_info" moved to
10128 here. Members font and entity deleted.
10129 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10130 the new font-related objects.
10131 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10132 (CHECK_FONT_GET_OBJECT): Likewise.
10133 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10134 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10135 (struct font_driver): New members case_sensitive anc check. Type
10136 of the member list and open changed.
10137 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10138 (font_symbolic_width, font_find_object, font_get_spec)
10139 (font_set_lface_from_name): Delete extern.
10140 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10141
10142 * font.c: Include <strings.h>.
10143 (enable_font_backend): Delete it.
10144 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10145 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10146 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10147 (null_string): Delete it.
10148 (null_vector): Make it static.
10149 (font_family_alist): Delete it.
10150 (Qnormal): Extern it.
10151 (QCextra, QClanguage): Delete it.
10152 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10153 (font_make_spec, font_make_entity, font_make_object)
10154 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10155 the string. Callers changed.
10156 (font_pixel_size): Adjusted for the format change of font-related
10157 objects.
10158 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10159 (font_style_to_value, font_style_symbolic): New function.
10160 (build_font_family_alist): Delete it.
10161 (font_registry_charsets): Use Fassoc_string instead of
10162 assq_no_quit.
10163 (font_prop_validate_symbol): Don't return null_string.
10164 (font_prop_validate_style): Adjusted for the change of
10165 style-related values in a font vector.
10166 (font_property_table): Delete entries for QClanguage and
10167 QCantialias, add entries for QCavgwidth.
10168 (get_font_prop_index): Delete the 2nd argument FROM.
10169 (font_prop_validate): Arguments changed.
10170 (font_put_extra): Adjusted for the change of font-related objects.
10171 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10172 (font_parse_fcname, font_unparse_fcname)
10173 (font_prepare_composition): Likewise.
10174 (font_parse_family_registry): Renamed from font_merge_old_spec.
10175 (otf_open): Delete the 1st arg entity.
10176 (font_otf_capability): Adjusted for the above change.
10177 (font_score): New arg alternate_families. Adjusted for the change
10178 of font-related objects.
10179 (font_sort_entites): New arg best_only.
10180 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10181 Delete them.
10182 (font_match_p): Check alternate families.
10183 (font_find_object): Delete it.
10184 (font_check_object): New function.
10185 (font_clear_cache): Adjusted for the change of font-related objects.
10186 (font_delete_unmatched): New arg.
10187 (font_list_entities): Call font_driver->list with a spec that
10188 doesn't specify style-related properties.
10189 (font_matching_entity): Arguments changed. Caller changed.
10190 (font_open_entity): Adjusted for the change of font-related objects.
10191 (font_close_object, font_has_char, font_encode_char)
10192 (font_get_name, font_get_spec): Likewise.
10193 (font_spec_from_name, font_clear_prop, font_update_lface):
10194 New functions.
10195 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10196 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10197 (font_at): Adjusted for the change of font-related objects.
10198 (font_range): New function.
10199 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10200 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10201 (Fcopy_font_spec, Fmerge_font_spec): New function.
10202 (Ffont_family_list): Renamed from list-families.
10203 (Finternal_set_font_style_table): Arguments changed.
10204 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10205 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10206 change of font-related objects.
10207 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10208
10209 * fontset.h (struct font_info): Delete it. Most members go to
10210 struct font.
10211 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10212 (enum FONT_SPEC_INDEX): Delete it.
10213 (font_info, list_fonts_func, load_font_func, query_font_func)
10214 (set_frame_fontset_func, find_ccl_program_func)
10215 (get_font_repertory_func, new_fontset_from_font_name): Delete
10216 externs.
10217 (fontset_from_font_name): Extern it.
10218 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10219 (FONT_INFO_FROM_FACE): Deleted.
10220 (face_for_font): Adjust prototype.
10221
10222 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10223 conditionals. Don't check enable_font_backend. Delete all codes
10224 used only when USE_FONT_BACKEND is not defined.
10225 (get_font_info_func, list_font_func, load_font_func)
10226 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10227 (get_font_repertory_func): Delete them.
10228 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10229 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10230 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10231 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10232 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10233 (fontset_compare_rfontdef): New function.
10234 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10235 rfont-defs by qsort. Adjusted for the change of font-group vector.
10236 (load_font_get_repertory): Deleted.
10237 (fontset_find_font): Use new macros to ref/set elements of
10238 font-def and rfont-def.
10239 (fontset_font): Fix the timing of remembering that no font for C.
10240 (free_face_fontset): Do nothing if the face has no fontset.
10241 (face_suitable_for_char_p): Use new macros to ref/set elements of
10242 rfont-def.
10243 (face_for_char): Likewise. Call face_for_char with font_object.
10244 (fs_load_font): Delete. Delete #pragma surrounding it.
10245 (fs_query_fontset): Use strcasecmp instead of strcmp.
10246 (generate_ascii_font_name): Adjusted for the format change of
10247 font-spec.
10248 (Fset_fontset_font): Likewise. Use new macros to set elements of
10249 font-def.
10250 (Fnew_fontset): Use font_unparse_xlfd to generate
10251 FONTSET_ASCII (fontset).
10252 (new_fontset_from_font_name): Deleted.
10253 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10254 a fontset is already created for the font. FIx updating of
10255 Vfontset_alias_alist.
10256 (fontset_ascii_font): Deleted.
10257 (Ffont_info): Adjusted for the format change of font-spec.
10258 (Finternal_char_font): Likewise.
10259 (Ffontset_info): Likewise.
10260 (syms_of_fontset): Don't check load_font_func.
10261
10262 * fns.c (internal_equal): Handle PREV_FONT.
10263
10264 * frame.h: Delete USE_FONT_BACKEND conditional.
10265
10266 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10267 conditionals. Don't check enable_font_backend. Delete all codes
10268 used only when USE_FONT_BACKEND is not defined.
10269 (x_set_font): Call x_new_font, not x_new_fontset2.
10270 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10271 already set for the frame.
10272
10273 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10274 a font-entity by font_make_entity. Use font_intern_prop instead
10275 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10276 font property. If a font is scalable, set avgwidth property to 0.
10277 Set font-entity property by font_put_extra.
10278 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10279 (ffont_driver): Adjusted for the change of struct font_driver.
10280 (ftfont_spec_pattern): New function.
10281 (ftfont_list): Return a list, not vector.
10282 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10283 (ftfont_list_family): Don't downcase names.
10284 (ftfont_free_entity): Deleted.
10285 (ftfont_open): Return a font-object. Adjusted for the change of
10286 struct font. Get underline_thickness and underline_position from
10287 font property. Don't update dpyinfo->smallest_font_height and
10288 dpyinfo->smallest_char_width.
10289 (ftfont_close): Don't free `struct font'.
10290 (ftfont_has_char): Adjusted for the format change of font-entity.
10291 (ftfont_encode_char, ftfont_text_extents): Likewise.
10292
10293 * ftxfont.c (ftxfont_list): Return a list, not vector.
10294 (ftxfont_open): Return a font-object. Adjusted for the change of
10295 struct font. Get underline_thickness and underline_position from
10296 font property. Don't update dpyinfo->smallest_font_height and
10297 dpyinfo->smallest_char_width.
10298 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10299 (ftxfont_draw): Adjusted for the change of struct font.
10300
10301 * image.c (image_ascent): Don't include "charset.h". Include
10302 "character.h" and "font.h".
10303
10304 * lisp.h (enum pvec_type): New member PREV_FONT.
10305 (Fassoc_string): EXFUN it.
10306
10307 * print.c: Include font.h.
10308 (print_object): Handle font-related objects.
10309
10310 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10311 conditionals. Don't check enable_font_backend. Delete all codes
10312 used only when USE_FONT_BACKEND is not defined.
10313 (handle_auto_composed_prop): Do nothing if it->f is not on a
10314 window system. Check how many following characters can be
10315 displayed by the same font.
10316 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10317 'struct font *'.
10318 (get_char_face_and_encoding): Assign the whole encoding task to
10319 the `encode-char' method of a font driver.
10320 (fill_composite_glyph_string): Adjusted for the change of `struct
10321 face' and `struct glyph_string'.
10322 (fill_glyph_string): Likewise.
10323 (get_per_char_metric): Arguments changed.
10324 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10325 and `struct glyph_string'.
10326 (produce_stretch_glyph, calc_line_height_property)
10327 (x_produce_glyphs): Likewise.
10328
10329 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10330 conditionals. Don't check enable_font_backend. Delete all codes
10331 used only when USE_FONT_BACKEND is not defined. Use
10332 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10333 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10334 (Qp): Extern them.
10335 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10336 Deleted.
10337 (struct font_name): Deleted.
10338 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10339 (compare_fonts_by_sort_order): New function.
10340 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10341 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10342 Deleted.
10343 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10344 compare_fonts_by_sort_order.
10345 (Fx_font_family_list): Call Ffont_family_list.
10346 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10347 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10348 (face_symbolic_slant, face_symbolic_swidth)
10349 (split_font_name_into_vector, build_font_name_from_vector)
10350 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10351 (font_rescale_ratio, split_font_name, build_font_name)
10352 (free_font_names, sort_fonts, x_face_list_fonts)
10353 (face_font_available_p, sorted_font_list, cmp_font_names)
10354 (font_list_1, concat_font_list, font_list, remove_duplicates):
10355 Deleted.
10356 (Fx_list_fonts): Use Ffont_list.
10357 (LFACE_AVGWIDTH): Deleted.
10358 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10359 by FONTP.
10360 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10361 (set_lface_from_font_name): Delete it.
10362 (set_lface_from_font): Renamed from
10363 set_lface_from_font_and_fontset. Caller changed. Don't set
10364 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10365 for face.
10366 (merge_face_vectors): Copy font-spec if necessary.
10367 Clear properties of the font-spec if necessary.
10368 (merge_face_ref): Clear properties of the font-spec if necessary.
10369 (Finternal_set_lisp_face_attribute): Likewise.
10370 (set_font_frame_param): Use font_load_for_lface to load a
10371 font-object, and call Fmodify_frame_parameters with it.
10372 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10373 font name by Ffont_xlfd_name.
10374 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10375 QCslant, and QCwidth.
10376 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10377 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10378 Compare fonts by EQ.
10379 (lookup_non_ascii_face): Deleted.
10380 (face_for_font): The 2nd argument changed.
10381 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10382 Check atomic font properties by case insensitive.
10383 (realize_non_ascii_face): Set face->overstrike correctly.
10384 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10385 (dump_realized_face): Get font name from
10386 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10387
10388 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10389 conditionals. Don't check enable_font_backend. Delete all codes
10390 used only when USE_FONT_BACKEND is not defined.
10391 (xic_create_xfontset): Original code deleted and renamed from
10392 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10393 (x_make_gc): Don't set GCFont in GCs.
10394 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10395 opened by "fixed".
10396 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10397 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10398 get_font_repertory_func.
10399
10400 * xfont.c: Include <stdlib.h> and "ccl.h".
10401 (struct xfont_info): New structure.
10402 (xfont_query_font): Deleted.
10403 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10404 moved from xterm.c.
10405 (xfont_driver): Adjusted for the change of struct font_driver.
10406 (compare_font_names): New function.
10407 (xfont_list_pattern): Sort font names case insensitively. Make
10408 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10409 (xfont_list): Return a list, not vector.
10410 (xfont_match): If the font doesn't have QCname property, generate
10411 a name from the other font properties.
10412 (xfont_open): Return a font-object. Adjusted for the change of
10413 struct font. Get underline_thickness and underline_position from
10414 font property. Don't update dpyinfo->smallest_font_height and
10415 dpyinfo->smallest_char_width.
10416 (xfont_close): Don't free struct font.
10417 (xfont_prepare_face): Adjusted for the change of struct font.
10418 (xfont_done_face): Deleted.
10419 (xfont_has_char): Adjusted for the change of struct font.
10420 (xfont_encode_char, xfont_draw): Likewise.
10421 (xfont_check): New function.
10422
10423 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10424 callback function.
10425 (xftfont_match): Adjusted for the format change of font-entity.
10426 (xftfont_open): Adjusted for the format change of font-entity and
10427 font-object. Adjusted for the change of struct font. Return a
10428 font-object. Don't update dpyinfo->smallest_font_height and
10429 dpyinfo->smallest_char_width.
10430 (xftfont_close): Block input while calling XftFontClose.
10431 (xftfont_prepare_face): Don't block input while calling
10432 xftfont_get_colors. Adjusted for the change of struct font.
10433 (xftfont_shape): Return value of error case fixed.
10434
10435 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10436
10437 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10438 conditionals.
10439 (FONT_WIDTH): Return (f)->max_width.
10440 (struct x_display_info): Delete member `font'.
10441 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10442 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10443 (struct x_output): Change type of `font' to `struct font *'.
10444
10445 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10446 conditionals. Don't check enable_font_backend. Delete all codes
10447 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10448 (x_per_char_metric, x_encode_char): Deleted.
10449 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10450 (x_compute_glyph_string_overhangs): Adjusted for the change of
10451 `struct face'.
10452 (x_draw_glyph_string_foreground)
10453 (x_draw_composite_glyph_string_foreground): Likewise.
10454 (x_draw_glyph_string): Likewise. Use font->underline_position and
10455 font->underline_thickness.
10456 (x_new_font): Renamed from x_new_fontset2.
10457 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10458 (x_check_font): Call `check' method of a font driver.
10459 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10460 (x_query_font, x_get_font_repertory): Deleted.
10461 (x_find_ccl_program): Renamed and moved to xfont.c.
10462 (x_redisplay_interface): Adjusted for the change of `struct
10463 redisplay_interface'.
10464
10465 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10466 conditionals. Don't check enable_font_backend. Delete all codes
10467 used only when USE_FONT_BACKEND is not defined. Surround non-used
10468 code by "#ifdef OLD_FONT" and "endif".
10469 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10470
10471 * w32font.h (struct w32font_info): New member.
10472 (FONT_COMPAT): New macro.
10473 (w32font_open_internal): Prototype adjusted.
10474
10475 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10476 OLD_FONT" and "endif".
10477
10478 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10479 conditionals. Don't check enable_font_backend. Delete all codes
10480 used only when USE_FONT_BACKEND is not defined.
10481 (w32font_open): Return a font-object. Make a font-object by
10482 font_make_object. Adjusted for the change of struct w32font_info.
10483 (w32font_close): Don't free struct font. Adjusted for the change
10484 of struct w32font_info.
10485 (w32font_encode_char, w32font_text_extents, w32font_draw):
10486 Adjusted for the change of struct w32font_info.
10487 (w32font_draw): Likewise.
10488 (w32font_list_internal): Return a list, not vector.
10489 (w32font_open_internal): Change the 4th arg to font-object.
10490 Adjusted for the change of struct w32font_info and font-object format.
10491 (add_font_name_to_list): Don't downcase names.
10492 (w32_enumfont_pattern_entity): Make a font-entity by
10493 font_make_entity. Adjusted for the format change of font-entity.
10494 Use FONT_SET_STYLE to set a style-related font property. If a
10495 font is scalable, set avgwidth property to 0. Set font-entity
10496 property by font_put_extra.
10497 (font_matches_spec): Adjusted for the format change of font-entity.
10498 (w32_weight_table, w32_decode_weight): New variables.
10499 (w32_encode_weight): New function.
10500 (fill_in_logfont): Adjusted for the format change of font-spec.
10501 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10502 weight value.
10503 (w32font_driver): Adjusted for the change of struct font_driver.
10504
10505 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10506 conditionals. Don't check enable_font_backend. Surround non-used
10507 code by "#ifdef OLD_FONT" and "endif".
10508 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10509 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10510
10511 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10512 conditionals. Don't check enable_font_backend. Delete all codes
10513 used only when USE_FONT_BACKEND is not defined. Surround non-used
10514 code by "#ifdef OLD_FONT" and "endif".
10515
10516 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10517 (uniscribe_open): Return value changed to font-object.
10518 Adjusted for the format change of font-object.
10519 (uniscribe_otf_capability): Adjusted for the change of struct font.
10520 (add_opentype_font_name_to_list): Don't downcase names.
10521 (uniscribe_font_driver): Adjusted for the change of struct
10522 font_driver.
10523
10524 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10525
10526 * dispnew.c (update_frame_1): Check if tty output is still valid
10527 before flushing it.
10528
10529 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10530
10531 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10532 to Gtk+ menus.
10533
10534 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10535
10536 * dired.c (file_name_completion): Tweak the code so as to always do it
10537 in a single pass. Tighten the scope of some variables.
10538
10539 * dired.c (Qdefault_directory): New var.
10540 (file_name_completion): Use it instead of Fexpand_file_name.
10541 (syms_of_dired): Initialize it.
10542
10543 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * fileio.c (double_dollars): Remove dead code.
10546
10547 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10548
10549 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10550 Mention w32-get-true-file-attributes in doc string.
10551
10552 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10553
10554 2008-05-09 Glenn Morris <rgm@gnu.org>
10555
10556 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10557 2008-04-23.
10558
10559 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10560
10561 Support for reporting owner and group of each file on MS-Windows:
10562 * dired.c (stat_uname, stat_gname): New functions, with special
10563 implementation for w32.
10564 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10565
10566 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10567 (dflt_group_name): New static variable.
10568 (dflt_group): Rename from the_group.
10569 (init_user_info): Init dflt_group fields. Get user's group name
10570 from LookupAccountSid.
10571 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10572 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10573 New initialization states.
10574 (globals_of_w32): Initialize them to zero. Initialize the default
10575 group name to "None".
10576 (GetFileSecurity_Name): New global var, the name of the function
10577 to call for GetFileSecurity.
10578 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10579 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10580 (get_file_security, get_security_descriptor_owner)
10581 (get_security_descriptor_group, is_valid_sid)
10582 (get_file_security_desc, get_rid, get_name_and_id)
10583 (get_file_owner_and_group): New functions.
10584 (stat): Use get_file_security_desc and get_file_owner_and_group to
10585 report the owner and primary group of each file. Don't ignore the
10586 high 32 bits of file's size, now that st_size is 64-bit wide.
10587 Fix test when to get true file attributes.
10588 (init_user_info): Use get_rid instead of equivalent inline code.
10589 (fstat): Don't ignore the high 32 bits of file's size.
10590
10591 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10592
10593 * image.c (png_load): Use correct bit-depth for setting background
10594 color.
10595
10596 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10597
10598 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10599 epa-hook.elc.
10600
10601 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10602
10603 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10604
10605 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10606
10607 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10608 because the original parameters are in pure storage now.
10609 (mac_window): Remove unused params. Update callers.
10610
10611 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10612
10613 * lread.c (substitute_object_recurse): Use lower-level primitives.
10614 Don't signal errors when traversing sub-char-tables.
10615 Don't loop over all the possible characters when traversing char-tables.
10616
10617 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10618 just like we do in print.c.
10619
10620 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10621
10622 * minibuf.c (Ftry_completion): Remove code left over from when we used
10623 scmp instead of Fcompare_strings.
10624
10625 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10626
10627 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10628
10629 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10630
10631 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10632 Create bitmap context in native byte order.
10633
10634 * macterm.c (XDrawLine)
10635 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10636 context in native byte order.
10637
10638 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10639
10640 * config.in: Regenerate.
10641
10642 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10643 New definitions for Image I/O support.
10644 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10645 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10646 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10647 (mac_data_provider_release_data, image_load_image_io)
10648 [USE_MAC_IMAGE_IO]: New functions.
10649 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10650 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10651 (init_image_func_pointer) [MAC_OSX]: Remove function.
10652 (image_load_quartz2d) [MAC_OSX]: Check availability of
10653 CGImageCreateWithPNGDataProvider at compile time.
10654 Use lowercase `false' for boolean constant.
10655 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10656 Use image_load_image_io.
10657 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10658 Don't check MyCGImageCreateWithPNGDataProvider.
10659 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10660 Don't call init_image_func_pointer.
10661
10662 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10663
10664 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10665 Make variable non-static.
10666 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10667 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10668
10669 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10670 (RED_FROM_ULONG): Mask off higher bits.
10671 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10672
10673 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10674 Include AvailabilityMacros.h.
10675 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10676 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10677
10678 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10679
10680 * chartab.c (Fset_char_table_range): If range is t, really set all
10681 chars to that value.
10682
10683 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10684
10685 * dired.c (Ffile_attributes): Don't allow the device number become
10686 negative.
10687
10688 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10689
10690 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10691
10692 2008-05-02 Juri Linkov <juri@jurta.org>
10693
10694 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10695 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10696 DEFAULT argument as a list of default values in docstrings.
10697
10698 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10699
10700 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10701
10702 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10703
10704 * dispnew.c (change_frame_size_1): Preserve small windows when
10705 shrinking frames by calling set_window_height|width with third
10706 arg 2.
10707
10708 * window.h (struct window): Replace field too_small_ok by field
10709 resize_proportionally.
10710
10711 * window.c (make_window): Initialize resize_proportionally.
10712 (enlarge_window): Temporarily set resize_proportionally to make
10713 sure that shrink_windows does scale the window proportionally.
10714 (shrink_windows): When window has resize_proportionally set try
10715 to shrink it proportionally by stealing from other windows.
10716 (struct saved_window, Fset_window_configuration)
10717 (compare_window_configurations): Handle resize_proportionally.
10718 (WINDOW_TOTAL_SIZE): New macro.
10719 (window_min_size, shrink_windows, size_window): Use it.
10720 (check_min_window_sizes): Remove. Invalid values of
10721 window-min-height|width are handled by window_min_size_2 now.
10722 (size_window, Fsplit_window, enlarge_window)
10723 (adjust_window_trailing_edge, grow_mini_window): Don't call
10724 check_min_window_sizes.
10725 (window_min_size_2, window_min_size_1, window_min_size):
10726 New argument safe_p for retrieving "safe" minimum sizes.
10727 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10728 (adjust_window_trailing_edge, grow_mini_window):
10729 Adjust arguments of window_min_size... functions.
10730 (shrink_windows): Argument min_size removed. New argument
10731 safe_p allows shrinking windows to their safe minimum sizes.
10732 Calculate minimum size and decide whether a window shall be
10733 deleted for each window individually.
10734 (size_window): When nodelete_p equals 2, tell shrink_windows to
10735 delete windows only if their new minimum size is no more safe.
10736 (shrink_window_lowest_first): Call window_min_size_1 to make
10737 sure to preserve modeline of bottom-most window when resizing
10738 the minibuffer.
10739 (Fset_window_configuration, Fcurrent_window_configuration)
10740 (compare_window_configurations): Do not handle
10741 window-min-height|width any more.
10742 (syms_of_window): Clarify window-min-height|width doc-strings.
10743
10744 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10745
10746 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10747 some more. Copy some of the code from Ftry_completions.
10748 Remove special case code that dates back to initial revision when the
10749 slash was only added when necessary and that can't trigger nowadays.
10750
10751 2008-04-27 Kenichi Handa <handa@m17n.org>
10752
10753 * font.c (font_prop_validate): Signal `error' instead of `font'.
10754
10755 2008-04-29 Jason Rumney <jasonr@gnu.org>
10756
10757 * w32fns.c (Fw32_battery_status): New defun.
10758 (syms_of_w32fns): Defsubr it.
10759
10760 2008-04-28 Andreas Schwab <schwab@suse.de>
10761
10762 * dired.c (file_name_completion): Fix another mixing of encoded
10763 and decoded names.
10764
10765 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10766
10767 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10768
10769 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10770
10771 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10772
10773 2008-04-27 Andreas Schwab <schwab@suse.de>
10774
10775 * dired.c (file_name_completion): Fix inappropriate mixing of
10776 encoded and decoded names.
10777
10778 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10779
10780 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10781
10782 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10783
10784 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10785 2008-03-31, it's not needed anymore with `struct stat' definition
10786 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10787 for the same reasons.
10788
10789 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10790
10791 * m/sparc.h: Additional redefinitions for GNU/Linux.
10792
10793 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10794
10795 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10796 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10797 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10798 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10799 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10800 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10801 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10802 Likewise.
10803
10804 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10805 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10806 (mac_ax_number_of_characters): Add externs.
10807 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10808 [USE_MAC_TSM]: Likewise.
10809 (mac_handle_text_input_event) [MAC_OSX]:
10810 Handle kEventTextInputOffsetToPos for no active input area case.
10811 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10812 (mac_handle_document_access_event)
10813 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10814 (install_application_handler) [MAC_OSX]: Register handlers for
10815 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10816 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10817 Register mac_handle_document_access_event.
10818
10819 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10820 Make functions non-static.
10821
10822 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10823
10824 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10825 (read_file_name_completion_ignore_case, insert_default_directory)
10826 (Qdefault_directory): Move to minibuffer.el.
10827 (Fread_file_name): Call the new `read-file-name' instead.
10828
10829 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10830
10831 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10832 Make function non-static.
10833 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10834 Remove function.
10835 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10836 Move to mactoolbox.c.
10837 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10838
10839 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10840 (mac_rect_make): New macro.
10841
10842 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10843 instead of float.
10844 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10845 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10846 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10847 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10848 CGRectMake.
10849 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10850 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10851 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10852 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10853 instead of WindowRef in argument type.
10854 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10855 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10856 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10857 instead of DISPLAY. All uses changed.
10858 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10859 (x_calc_absolute_position): Simplify so as not to use
10860 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10861
10862 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10863 instead of WindowRef in argument type.
10864 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10865 [TARGET_API_MAC_CARBON]: Remove externs.
10866 (create_apple_event, mac_event_parameters_to_lisp)
10867 [TARGET_API_MAC_CARBON]: Add externs.
10868
10869 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10870 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10871 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10872 is clicked.
10873 (x_activate_menubar): Remove extern for saved_menu_event_location.
10874 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10875 Move from mac.c.
10876
10877 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10878
10879 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10880 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10881
10882 2008-04-23 Jason Rumney <jasonr@gnu.org>
10883
10884 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10885 attributes only for local files.
10886
10887 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10888 default to Qlocal.
10889
10890 2008-04-22 Juri Linkov <juri@jurta.org>
10891
10892 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10893 read-buffer-to-switch instead of using the letter "B".
10894
10895 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10896
10897 * fileio.c (Qdefault_directory): New variable.
10898 (Fread_file_name): Use it to pass `dir' to the completion functions.
10899
10900 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10901
10902 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10903
10904 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10905
10906 * keyboard.c (Vpre_help_message): Remove.
10907 (show_help_echo): Remove default C code.
10908
10909 * dired.c (directory_files_internal, file_name_completion):
10910 Only call ENCODE_FILE if the string is indeed decoded.
10911
10912 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10913
10914 * Makefile.in (TOOLKIT_DEFINES): Remove.
10915 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10916
10917 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10918
10919 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10920 (mactoolbox.o): New target.
10921
10922 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10923 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10924
10925 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10926 Use mac_set_frame_window_background instead of XSetWindowBackground.
10927 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10928 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10929 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10930 instead of SetWindowTitleWithCFString.
10931 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10932 Move function to mactoolbox.c.
10933 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10934 Use mac_set_window_modified instead of SetWindowModified.
10935 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10936 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10937 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10938 FrontNonFloatingWindow. Use mac_activate_window instead of
10939 ActivateWindow. Use mac_active_non_floating_window instead of
10940 ActiveNonFloatingWindow.
10941 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10942 Use mac_show_hourglass and mac_hide_hourglass.
10943 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10944 instead of GetGlobalMouse.
10945 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10946 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10947 Use mac_bring_window_to_front instead of BringToFront.
10948 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10949 mactoolbox.c.
10950 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10951 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10952 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10953 mactoolbox.c.
10954
10955 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10956 (XtPointer): Move typedef from macmenu.c.
10957 (enum button_type): Move enum from macmenu.c.
10958 (widget_value): Move typedef from macmenu.c.
10959 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10960 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10961 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10962 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10963 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10964 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10965 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10966 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10967 (Selection): Move typedef from macselect.c.
10968 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10969 macterm.c.
10970 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10971 (mac_is_window_collapsed, mac_bring_window_to_front)
10972 (mac_send_window_behind, mac_hide_window, mac_show_window)
10973 (mac_collapse_window, mac_front_non_floating_window)
10974 (mac_active_non_floating_window, mac_activate_window)
10975 (mac_move_window_structure, mac_move_window, mac_size_window)
10976 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10977
10978 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10979 (enum mac_menu_kind): Move enum to mactoolbox.c.
10980 (min_menu_id): Move variable to mactoolbox.c.
10981 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10982 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10983 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10984 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10985 [TARGET_API_MAC_CARBON]: Likewise.
10986 (XtPointer): Move typedef to macgui.h.
10987 (enum button_type): Move enum to macgui.h.
10988 (widget_value): Move typedef to macgui.h.
10989 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10990 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10991 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10992 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10993 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10994 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10995 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10996 (popup_activated_flag): Make variable non-static.
10997 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10998 (add_menu_item, fill_menu, dispose_menus):
10999 Move functions to mactoolbox.c.
11000 (restore_show_help_function, menu_target_item_handler)
11001 (install_menu_target_item_handler, mac_handle_dialog_event)
11002 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11003 [TARGET_API_MAC_CARBON]: Likewise.
11004 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11005 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11006 (find_and_call_menu_selection, name_is_separator): Make function
11007 non-static.
11008 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11009 to mactoolbox.c.
11010 (set_frame_menubar): Don't call install_menu_quit_handler.
11011 (menu_item_selection): New variable.
11012 (mac_menu_show): Use create_and_show_popup_menu.
11013 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11014 selection but set variable menu_item_selection. All uses changed.
11015 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11016 Call install_menu_quit_handler. Move to mactoolbox.c.
11017
11018 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11019 (Selection): Move typedef to macgui.h.
11020 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11021 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11022 Make variables non-static.
11023 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11024 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11025 Make functions non-static.
11026 (Vmac_service_selection) [MAC_OSX]: Likewise.
11027 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11028 (mac_valid_selection_target_p, mac_clear_selection)
11029 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11030 (mac_put_selection_value, mac_selection_has_target_p)
11031 (mac_get_selection_value, mac_get_selection_target_list)
11032 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11033 Move functions to mactoolbox.c.
11034 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11035 Likewise.
11036 (copy_scrap_flavor_data, mac_handle_service_event)
11037 (install_service_handler) [MAC_OSX]: Likewise.
11038 (syms_of_macselect) <Vmac_dnd_known_types>:
11039 Use mac_dnd_default_known_types.
11040
11041 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11042 Move to mactoolbox.c.
11043 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11044 (Fx_selection_owner_p): Add EXFUN.
11045 (install_window_handler, remove_window_handler, XSetWindowBackground):
11046 Remove externs.
11047 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11048 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11049 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11050 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11051 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11052 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11053 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11054 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11055 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11056 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11057 (mac_valid_selection_target_p, mac_clear_selection)
11058 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11059 (mac_put_selection_value, mac_selection_has_target_p)
11060 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11061 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11062 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11063 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11064 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11065 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11066 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11067 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11068 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11069
11070 * mactoolbox.c: New file.
11071
11072 2008-04-18 Jason Rumney <jasonr@gnu.org>
11073
11074 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11075
11076 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11077
11078 * character.c (Fmultibyte_char_to_unibyte):
11079 Return latin1 chars unchanged.
11080
11081 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11082 relocated if it points to `name'.
11083
11084 2008-04-17 Kenichi Handa <handa@m17n.org>
11085
11086 * data.c (Faset): Allow setting a multibyte character in an
11087 ASCII-only unibyte string.
11088
11089 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11090
11091 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11092
11093 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11094 done in config.h.
11095
11096 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11097
11098 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11099 (Fchar_direction): Add usage in the docstring.
11100
11101 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11102
11103 * keyboard.c (read_key_sequence): Remove always-true checks.
11104
11105 2008-04-14 Jason Rumney <jasonr@gnu.org>
11106
11107 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11108 compatibility struct, for better underline positioning.
11109
11110 2008-04-13 David Hansen <david.hansen@gmx.net>
11111
11112 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11113 string.
11114
11115 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11116
11117 * m/hp800.h (XUINT, XSET): Remove.
11118
11119 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11120
11121 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11122 previous change.
11123
11124 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11125
11126 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11127 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11128
11129 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11130
11131 * keymap.h (map_keymap_canonical): Declare.
11132 * xmenu.c (single_keymap_panes): Use it.
11133
11134 2008-04-11 Glenn Morris <rgm@gnu.org>
11135
11136 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11137 set the target's value to that of the alias.
11138
11139 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11140
11141 * term.c (set_tty_color_mode): Left over typo.
11142
11143 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11144
11145 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11146 only after check for file name handler functions. Signal, when
11147 native functionality is not supported.
11148 (syms_of_fileio): Declare it unconditionally.
11149
11150 2008-04-10 Jason Rumney <jasonr@gnu.org>
11151
11152 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11153 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11154
11155 * w32.c (logon_network_drive): Also logon to remote drives that
11156 are mapped to drive letters.
11157
11158 2008-04-10 Glenn Morris <rgm@gnu.org>
11159
11160 * xdisp.c (truncate-partial-width-windows): Doc fix.
11161
11162 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11163
11164 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11165 Move functions to minibuffer.el.
11166 (syms_of_fileio): Don't declare them.
11167
11168 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11169
11170 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11171 (syms_of_minibuf): Remove its initialization.
11172
11173 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11174
11175 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11176
11177 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11178
11179 2008-04-09 Jason Rumney <jasonr@gnu.org>
11180
11181 * makefile.w32-in (distclean): Delete makefile too.
11182 (maintainer-clean): New target.
11183
11184 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11185
11186 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11187 for new font backend and composite cases.
11188
11189 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11190
11191 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11192 Most of the code moved to run_timers.
11193 (do_pending_atimers): Call run_timers.
11194 (run_timers): New function.
11195
11196 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11197 run atimers.
11198
11199 * process.c (wait_reading_process_output): The same as above.
11200
11201 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11202
11203 * minibuf.c (last_exact_completion): Remove variable.
11204 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11205 (complete_and_exit_1, complete_and_exit_2)
11206 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11207 (Fdisplay_completion_list, display_completion_list_1)
11208 (Fminibuffer_completion_help, Fself_insert_and_exit)
11209 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11210 minibuffer.el.
11211 (syms_of_minibuf): Remove corresponding initializations.
11212
11213 * keyboard.c (Qdeactivate_mark): New var.
11214 (command_loop_1): Use it to call `deactivate-mark'.
11215 (syms_of_keyboard): Initialize it.
11216
11217 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11218 to another frame.
11219 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11220 Don't call set_tty_color_mode.
11221 (store_frame_param): Reset previous_frame rather than call
11222 set_tty_color_mode.
11223 * term.c (set_tty_color_mode): Rewrite.
11224 * dispextern.h (set_tty_color_mode): New type.
11225 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11226
11227 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11228
11229 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11230 for generic chars, which do not exist any more in emacs-unicode.
11231
11232 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11233
11234 * coding.c (detect_coding_emacs_mule)
11235 (Ffind_operation_coding_system): Fix typo.
11236
11237 2008-04-08 Jason Rumney <jasonr@gnu.org>
11238
11239 * w32uniscribe.c (SNAME): Extract only symbol name.
11240
11241 * w32font.h (struct w32_metric_cache): New struct.
11242 (w32font_info): Use it.
11243 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11244 (CACHE_BLOCKSIZE): New constants.
11245
11246 * w32font.c (Qja, Qko, Qzh): New symbols.
11247 (syms_of_w32font): Initialise them.
11248 (font_matches_spec): Use them to filter by language.
11249 (recompute_cached_metrics): Remove function.
11250 (compute_metrics, clear_cached_metrics): New functions.
11251 (w32font_encode_char): Use them to manage metric cache.
11252 (w32font_text_extents): Cache metrics for all glyphs on demand.
11253 Delay converting glyph indices to WORD until needed.
11254 (w32font_open_internal): Initialize metric cache to empty.
11255 (registry_to_w32_charset): Charset should always be a symbol.
11256 (fill_in_logfont, list_all_matching_fonts): Family should
11257 always be a symbol.
11258
11259 2008-04-06 Jason Rumney <jasonr@gnu.org>
11260
11261 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11262 Give up if glyph indices not supported. Use uniscribe obtained
11263 ABC widths for individual metrics. Map glyph clusters back to
11264 characters using fClusterStart flag. Return number of glyphs
11265 produced, not chars processed.
11266 (uniscribe_shape): Map char at FROM to current glyph.
11267
11268 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11269
11270 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11271 Use SetMenuItemHierarchicalMenu.
11272
11273 2008-04-05 Jason Rumney <jasonr@gnu.org>
11274
11275 * image.c (pbm_load): Allow color values up to 65535.
11276 Throw an error if max_color_idx is outside the supported range.
11277 Report an error when image size is invalid.
11278 Read two bytes at a time when raw images have max_color_idx above 255.
11279
11280 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11281
11282 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11283 cFileName a file name that includes `?' characters, use the 8+3
11284 alias in cAlternateFileName instead.
11285
11286 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11287
11288 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11289 append "CCL: Quitted" when the CCL program is quitted.
11290 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11291
11292 * ccl.h (struct ccl_program): New member quit_silently.
11293
11294 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11295
11296 * search.c (compile_pattern_1): Treat non-nil and non-string of
11297 search-spaces-regexp as nil.
11298
11299 * minibuf.c (Fassoc_string): Tweak docstring.
11300
11301 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11302
11303 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11304 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11305 2008-03-14 to force inode be positive.
11306
11307 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11308 _S_* ones, since we now use our own sys/stat.h.
11309 (stat, fstat): Don't mangle the inode number.
11310 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11311
11312 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11313
11314 * frame.h (struct frame): Give one more bit to `visible' since we use
11315 values larger than 1 to indicate obscured frames on ttys.
11316
11317 * keymap.c (Qkeymap_canonicalize): New var.
11318 (Fmap_keymap_internal): New fun.
11319 (describe_map): Use keymap-canonicalize.
11320
11321 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11322 (Fundo_boundary): Set them.
11323 (syms_of_undo): Initialize them.
11324 (record_point): Use them instead of last_point_position*.
11325 (last_undo_buffer): Change type.
11326
11327 2008-04-04 Jason Rumney <jasonr@gnu.org>
11328
11329 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11330 (recompute_cached_metrics): Don't set ascent and descent per char.
11331
11332 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11333 (uniscribe_check_otf): Add GC protection before consing.
11334 Rearrange loop for counting features.
11335
11336 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11339 buffer with byte-size of source buffer.
11340
11341 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11342
11343 * callint.c (Fcall_interactively): Handle temporary region even
11344 when shift-select-mode is off.
11345
11346 2008-04-03 Jason Rumney <jasonr@gnu.org>
11347
11348 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11349
11350 2008-04-03 Kenichi Handa <handa@m17n.org>
11351
11352 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11353 (CATEGORY_MASK_UTF_16): Likewise.
11354 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11355 binary file.
11356 (detect_coding): Add null-byte detection for a binary file.
11357 (detect_coding_system): Likewise.
11358
11359 2008-04-03 Jason Rumney <jasonr@gnu.org>
11360
11361 * w32uniscribe.c: New file.
11362
11363 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11364
11365 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11366
11367 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11368 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11369 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11370 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11371 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11372 (Qphonetic): New symbols.
11373 (syms_of_w32font): Initialize them.
11374 (font_supported_scripts): Use them.
11375 (w32font_list_family): List all charsets.
11376 (w32font_text_extents, recompute_cached_metrics): Fix metric
11377 calculations.
11378 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11379 Give opentype fonts their own format.
11380 (font_matches_spec): New arguments backend and logfont.
11381 Handle :otf spec for uniscribe backend.
11382 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11383 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11384
11385 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11386 font backend.
11387 (globals_of_w32fns): Initialize uniscribe font backend.
11388
11389 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11390 dependencies.
11391 (w32uniscribe.$(O)): New file to build.
11392 (FONT_OBJ): Include w32uniscribe.$(O).
11393 (LIBS): Add uniscribe libraries.
11394
11395 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11396
11397 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11398
11399 * callint.c (Vshift_select_mode): New var.
11400 (Finteractive): Document new ^ spec.
11401 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11402 is present.
11403
11404 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11405 (command_loop_1): Avoid running the direct display versions of
11406 forward-char and backward-char if shift-selection may occur.
11407 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11408 shift-translation takes place.
11409
11410 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11411 avoid clobbering by define-minor-mode.
11412
11413 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11414 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11415
11416 * syntax.c (Fforward_word): Add ^ interactive spec.
11417
11418 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11419 (Fscroll_right): Add ^ interactive spec.
11420
11421 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11422
11423 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11424
11425 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11426
11427 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11428
11429 2008-03-31 Juri Linkov <juri@jurta.org>
11430
11431 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11432
11433 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11434
11435 * gtkutil.c (xg_set_geometry): Fix indentation.
11436 (xg_resize_outer_widget): Remove.
11437 (x_wm_size_hint_off): Fix indentation.
11438 (xg_frame_set_char_size): Call flush_and_sync after
11439 gtk_window_resize.
11440 (x_wm_set_size_hint): Pass NULL as geometry window to
11441 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11442 Add menu bar and tool bar height to base height.
11443 (xg_update_frame_menubar, free_frame_menubar)
11444 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11445 (update_frame_tool_bar, free_frame_tool_bar):
11446 Change xg_resize_outer_widget to xg_frame_set_char_size.
11447
11448 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11449
11450 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11451 (Fdbus_call_method): New parameter TIMEOUT.
11452 (dbus-send-signal): Optimize UNGCPRO call.
11453
11454 2008-03-29 Juri Linkov <juri@jurta.org>
11455
11456 * window.c (Fdisplay_buffer): Move call to
11457 Vsplit_window_preferred_function out of conditions that check
11458 if window is eligible for vertical splitting.
11459 When Vsplit_window_preferred_function is non-nil, call it and use
11460 its non-nil return value as window. Otherwise, continue doing
11461 vertical splitting using Fsplit_window with arg horflag=nil.
11462 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11463 default value from `split-window' to nil.
11464
11465 2008-03-29 Juri Linkov <juri@jurta.org>
11466
11467 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11468 for interactive code letters 'b' and 'B'.
11469
11470 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11471
11472 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11473 multibyte string.
11474
11475 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11476
11477 * keyboard.c (pending_funcalls): New var.
11478 (timer_check): Run it.
11479 (syms_of_keyboard): Initialize it.
11480 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11481 (Vdelete_terminal_functions): New vars.
11482 (syms_of_terminal): Initialize them.
11483 (Fdelete_terminal): Run delete-terminal-functions.
11484 * xdisp.c (safe_eval): Rewrite.
11485 (safe_call2): New fun.
11486 * frame.c (Qdelete_frame_functions): New var.
11487 (syms_of_frame): Initialize it.
11488 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11489 * lisp.h (safe_call2, pending_funcalls): Declare.
11490
11491 2008-03-28 Andreas Schwab <schwab@suse.de>
11492
11493 * indent.c (Fmove_to_column): Move declaration before statements.
11494
11495 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11496
11497 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11498 (struct frame): Use bit fields for boolean vars.
11499
11500 * process.c (server_accept_connection): Simplify naming.
11501 (emacs_get_tty_pgrp): Use SDATA.
11502
11503 * coding.c (decode_coding_object): Fix last change.
11504
11505 2008-03-27 Jason Rumney <jasonr@gnu.org>
11506
11507 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11508
11509 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11510
11511 * charset.c (Fdefine_charset_internal): Change the way of
11512 registering charsets in Vcharset_order_list.
11513 (syms_of_charset): Make the charset `eight-bit' supplementary.
11514
11515 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11516
11517 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11518 operations, to avoid having the difference between pointers
11519 overflow.
11520
11521 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11522
11523 * indent.c (check_display_width): New fun.
11524 (scan_for_column): Use it.
11525
11526 * data.c (syms_of_data): Mark most-positive-fixnum and
11527 most-negative-fixnum as constants.
11528
11529 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11530
11531 * indent.c (scan_for_column): Extract from current_column_1.
11532 Merge with the same code from Fmove_to_column.
11533 (current_column_1, Fmove_to_column): Use it.
11534
11535 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11536
11537 * keymap.c (map_keymap_internal): New fun.
11538 (map_keymap): Use it.
11539 (Fmap_keymap_internal): New fun.
11540 (Fmap_keymap): Remove left-out test from before make_save_value.
11541
11542 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11543
11544 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11545 Use XCAR/XCDR.
11546
11547 * process.h (struct Lisp_Process): Remove filter_multibyte.
11548 * process.c (QCfilter_multibyte): Remove.
11549 (setup_process_coding_systems): Don't use filter_multibyte.
11550 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11551 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11552 (Fset_process_filter_multibyte): Change the coding-system to
11553 approximate the previous behavior.
11554 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11555 coding-system.
11556
11557 * coding.c (decode_coding_object): When not decoding into a buffer,
11558 obey the coding system's preference of (uni|multi)byte.
11559
11560 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11561
11562 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11563 every char is changed and has a different byte-length.
11564 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11565 Fix int -> EMACS_INT.
11566
11567 2008-03-23 David Hansen <david.hansen@gmx.net>
11568
11569 * dbusbind.c (xd_read_message): Remove extra copying of message
11570 strings. Check for NULL `interface' or `member'.
11571
11572 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11573
11574 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11575 cFileName a file name that includes `?' characters, use the 8+3
11576 alias in cAlternateFileName instead.
11577
11578 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11579
11580 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11581
11582 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11583
11584 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11585 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11586 work on current_buffer only instead (that was already the case
11587 for some of the code anyway).
11588 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11589 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11590 (SET_PT, SET_PT_BOTH): Adjust.
11591 * intervals.h (set_point, temp_set_point, set_point_both)
11592 (temp_set_point_both): Remove redundant declarations.
11593
11594 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11595
11596 * fileio.c (Finsert_file_contents):
11597 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11598 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11599 when buffer != current_buffer anyway.
11600
11601 2008-03-20 Andreas Schwab <schwab@suse.de>
11602
11603 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11604 as default.
11605
11606 2008-03-19 Jason Rumney <jasonr@gnu.org>
11607
11608 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11609 (syms_of_w32fns): Initialize them.
11610 (HOURGLASS_ID): New constant.
11611 (x_window_to_frame): Don't check hourglass_window.
11612 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11613 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11614 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11615 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11616 Only change the cursor if hourglass is not active.
11617 (Fx_create_frame): Initialize frame's current_cursor.
11618 (hourglass_atimer): Remove.
11619 (hourglass_started): New function.
11620 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11621 (show_hourglass): Adapt to w32, changing argument to frame.
11622
11623 * w32term.h (struct w32_output): Remove hourglass_window.
11624 Add current_cursor.
11625
11626 * eval.c (call_debugger, Fsignal):
11627 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11628 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11629 (Fexecute_extended_command, cancel_hourglass_unwind):
11630 * minibuf.c (read_minibuf):
11631 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11632
11633 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11634
11635 * window.c (run_funs): New fun.
11636 (run_window_configuration_change_hook): Use it to run the buffer-local
11637 and the global part of the hook.
11638
11639 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11640 (unwind_format_mode_line): Restore selected window.
11641 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11642
11643 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11644
11645 * editfns.c (Fchar_equal): Check they are valid characters.
11646
11647 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11648
11649 2008-03-17 Andreas Schwab <schwab@suse.de>
11650
11651 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11652 against a charset.
11653
11654 * lisp.h (Fbuffer_list): Declare.
11655
11656 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11657
11658 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11659 handlebox_widget is != 0.
11660
11661 2008-03-16 Juri Linkov <juri@jurta.org>
11662
11663 * callint.c (Fcall_interactively): For interactive code letters
11664 'b' and 'B' put the buffer list into the list of default "future"
11665 values of the minibuffer.
11666
11667 2008-03-16 Andreas Schwab <schwab@suse.de>
11668
11669 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11670 modifiers.
11671
11672 * regex.c (re_match_2_internal): Correct matching of a charset
11673 against latin-1 characters.
11674
11675 2008-03-16 Kenichi Handa <handa@m17n.org>
11676
11677 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11678 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11679 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11680 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11681 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11682 CHAR_STRING_ADVANCE.
11683 (produce_chars): Fix for the case that the source and the
11684 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11685 instead of CHAR_STRING_ADVANCE.
11686 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11687 STRING_CHAR_ADVANCE.
11688
11689 2008-03-15 Andreas Schwab <schwab@suse.de>
11690
11691 * regex.c (re_match_2_internal): Correct matching of eight bit
11692 characters in unibyte strings.
11693
11694 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11695
11696 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11697 at end of range when it coincides with the end of the buffer.
11698
11699 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11700
11701 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11702
11703 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11704
11705 2008-03-14 Jason Rumney <jasonr@gnu.org>
11706
11707 * editfns.c (initial_tz): New variable.
11708 (syms_of_editfns): Initialize it.
11709 (Fset_time_zone_rule): Set it when first called.
11710 Use it when TZSTRING is nil.
11711
11712 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11713 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11714 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11715 (globals_of_w32fns): Initialize them.
11716 (compute_tip_xy): Use them to position tooltips.
11717
11718 2008-03-14 Glenn Morris <rgm@gnu.org>
11719
11720 * emacs.c (main): Revert previous change.
11721 (standard_args): Revert -internal-script back to -scriptload,
11722 and remove the long-option form.
11723
11724 2008-03-13 Glenn Morris <rgm@gnu.org>
11725
11726 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11727 Remove option -enable-font-backend.
11728
11729 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11730
11731 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11732
11733 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11734
11735 * xterm.c (x_connection_closed): For GTK: If this is the last
11736 terminal just exit without closing the display.
11737
11738 2008-03-11 Jason Rumney <jasonr@gnu.org>
11739
11740 * w32font.c (w32font_full_name): Use floor to round.
11741
11742 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11743
11744 * sound.c (alsa_configure): Declare vol at beginning of block.
11745
11746 * fontset.c (Ffontset_info): Remove extra semicolon.
11747
11748 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11749
11750 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11751 size of resulting string.
11752
11753 2008-03-10 Jason Rumney <jasonr@gnu.org>
11754
11755 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11756
11757 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11758
11759 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11760 Don't pretend as if characters with display property haven't been
11761 consumed for string-replacing-string case.
11762
11763 2008-03-08 Kim F. Storm <storm@cua.dk>
11764
11765 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11766 (get_next_display_element, next_element_from_string)
11767 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11768
11769 2008-03-08 Andreas Schwab <schwab@suse.de>
11770
11771 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11772
11773 2008-03-06 Jason Rumney <jasonr@gnu.org>
11774
11775 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11776 when charset not specified. Only translate ANSI to unicode when
11777 font_type is truetype.
11778 (w32font_coverage_ok): New function.
11779 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11780
11781 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11782
11783 * lread.c (Fread_char): Resolve modifiers.
11784 (Fread_char_exclusive): Likewise.
11785
11786 * character.c (char_resolve_modifier_mask): New function.
11787 (char_string): Use char_resolve_modifier_mask.
11788 (Fchar_resolve_modifiers): New function.
11789 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11790 function.
11791
11792 2008-03-04 Jason Rumney <jasonr@gnu.org>
11793
11794 * makefile.w32-in: Always include w32font.c in the build.
11795 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11796
11797 2008-03-04 Andreas Schwab <schwab@suse.de>
11798
11799 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11800 (versionclean): Likewise.
11801
11802 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11803
11804 * .cvsignore: Add oo.
11805
11806 2008-03-03 Andreas Schwab <schwab@suse.de>
11807
11808 * coding.c (decode_coding_object): Inhibit gap shrinking while
11809 decoding in place.
11810
11811 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * w32term.c: Remove unused include "gnu.h".
11814 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11815
11816 * gnu.h: Rename to ...
11817 * emacs-icon.h: ... this.
11818 * xterm.c: Use emacs-icon.h instead of gnu.h.
11819 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11820
11821 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11822
11823 * w32font.c: Include math.h.
11824
11825 2008-03-03 Jason Rumney <jasonr@gnu.org>
11826
11827 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11828 Compute options separately.
11829 (w32font_open_internal): Set glyph_idx before caching metrics.
11830
11831 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11832 Define if system headers don't.
11833 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11834 (w32font_encode_char): Don't declare here.
11835
11836 * w32font.c (Quniscribe, QCformat): New symbols.
11837 (syms_of_w32font): Define them.
11838 (w32font_has_char): Indicate uncertainty.
11839 (w32font_encode_char): Encode as glyph point. Make static.
11840 (recompute_cached_metrics): New function.
11841 (w32font_open_internal): Use it. Set font to use glyph points
11842 initially. Set format based on type of font.
11843 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11844 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11845 on it. Set format based on information available here.
11846 (add_font_entity_to_list): Identify backend based on opentype_only.
11847
11848 2008-03-02 Andreas Schwab <schwab@suse.de>
11849
11850 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11851
11852 * coding.c (decode_coding_big5, produce_chars):
11853 Fix typos in last change.
11854
11855 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11856
11857 * gnu.h: New icon.
11858
11859 2008-03-02 Kenichi Handa <handa@m17n.org>
11860
11861 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11862 `dos', don't decode '\r' if that is the last in the source.
11863 (decode_coding_utf_16, decode_coding_emacs_mule)
11864 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11865 (decode_coding_raw_text, decode_coding_charset): Likewise.
11866 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11867
11868 2008-03-01 Jason Rumney <jasonr@gnu.org>
11869
11870 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11871
11872 2008-03-01 Kim F. Storm <storm@cua.dk>
11873
11874 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11875
11876 2008-03-01 Jason Rumney <jasonr@gnu.org>
11877
11878 * w32font.c (w32font_full_name): New function.
11879 (w32font_open_internal): Use it.
11880
11881 2008-03-01 Kim F. Storm <storm@cua.dk>
11882
11883 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11884
11885 2008-03-01 Jason Rumney <jasonr@gnu.org>
11886
11887 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11888
11889 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11890
11891 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11892 xg_frame_resized when the event is for the edit widget.
11893
11894 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11895
11896 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11897 set_char_size.
11898 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11899 operations on widgets here. Just set frame size if needed.
11900 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11901 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11902 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11903 the whole frame.
11904 (xg_create_tool_bar): Move attachment of the tool bar to
11905 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11906 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11907
11908 2008-03-01 Jason Rumney <jasonr@gnu.org>
11909
11910 * w32fns.c (w32_msg_pump): Disable debug code.
11911
11912 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11913
11914 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11915
11916 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11917
11918 * xdisp.c (next_overlay_string): Don't set
11919 overlay_strings_at_end_processed_p if we're currently reading from
11920 a display string.
11921
11922 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11923
11924 * xdisp.c (get_overlay_strings_1): Fix typo.
11925
11926 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11927
11928 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11929
11930 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11931
11932 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11933
11934 * xdisp.c (display_mode_element): Cancel the previous change.
11935 (decode_mode_spec): Likewise.
11936 (handle_auto_composed_prop): Don't make composition if it->string
11937 is a string.
11938
11939 2008-02-27 Kim F. Storm <storm@cua.dk>
11940
11941 * lisp.h (GLYPH): Change type from int to struct with separate char
11942 and face_id members.
11943 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11944 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11945 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11946 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11947 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11948 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11949 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11950 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11951 handle new Lisp glyph code encoding, either an integer or a cons.
11952
11953 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11954 (GLYPH_ALIAS): Delete.
11955 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11956 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11957 (GLYPH_FROM_CHAR): Replace macro by ...
11958 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11959
11960 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11961 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11962 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11963 (GLYPH_INVALID_P): New macro.
11964 (spec_glyph_lookup_face): Update prototype.
11965
11966 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11967 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11968 new glyph code encoding.
11969 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11970 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11971
11972 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11973 Adapt to new glyph type and new glyph code encoding.
11974
11975 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11976
11977 * indent.c (current_column, current_column_1, Fmove_to_column)
11978 (compute_motion): Adapt to new glyph code encoding.
11979
11980 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11981
11982 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
11983
11984 * process.c (wait_reading_process_output): Check for window
11985 changes caused by timers.
11986 Suggested by Johan Bockgård.
11987
11988 2008-02-27 Glenn Morris <rgm@gnu.org>
11989
11990 * emacs.c (USAGE1): Add `--disable-font-backend'.
11991
11992 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11993
11994 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11995 is made to the buffer.
11996
11997 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11998
11999 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12000 (face_at_string_position):
12001 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12002 (face_at_string_position):
12003 * xdisp.c (display_string, next_overlay_change):
12004 * buffer.h (overlays_at):
12005 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12006 Update callers.
12007
12008 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12009
12010 * editfns.c (Fformat): Doc fix.
12011
12012 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12013
12014 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12015 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12016 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12017
12018 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12019
12020 * buffer.c (Fbuffer_swap_text): New function.
12021 (syms_of_buffer): Defsubr it.
12022
12023 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12024
12025 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12026
12027 2008-02-25 Jason Rumney <jasonr@gnu.org>
12028
12029 * w32font.c (w32font_draw): Draw one character at a time when padding.
12030
12031 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12032
12033 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12034 Handle a nil arg. Use run_window_configuration_change_hook.
12035 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12036 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12037 Use run_window_configuration_change_hook.
12038
12039 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12040
12041 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12042 1-pixel width.
12043
12044 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12045
12046 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12047 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12048 if the glyph in the font is zero pixel with.
12049
12050 * dispextern.h (struct glyph_string): New member padding_p.
12051
12052 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12053
12054 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12055
12056 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12057
12058 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12059
12060 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12061
12062 2008-02-25 Jason Rumney <jasonr@gnu.org>
12063
12064 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12065
12066 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12067
12068 Allow fine-grained image-cache flushing.
12069 * dispextern.h (struct image): Add `dependencies' field.
12070 (clear_image_caches): Change arg to Lisp_Object.
12071 * image.c (make_image): Initialize `dependencies' field.
12072 (clear_image_cache): Change arg to allow fine-grained flushing.
12073 Perform the flush even if image-cache-eviction-delay is nil.
12074 (clear_image_caches): Change arg to Lisp_Object.
12075 (Fclear_image_cache): Expand meaning of the argument.
12076 (mark_image): Mark `dependencies' field.
12077 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12078 (lface_hash): Use XHASH rather than XFASTINT.
12079 (face_at_buffer_position): Fix int -> EMACS_INT position.
12080 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12081 (select_frame_for_redisplay): Remove code duplication.
12082 (redisplay_internal): Adapt arg to call to clear_image_caches.
12083
12084 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12085
12086 * s/vms4-0.h:
12087 * s/vms4-2.h:
12088 * s/vms4-4.h:
12089 * s/vms5-5.h: Remove, unused.
12090
12091 * s/irix5-2.h:
12092 * s/irix6-0.h:
12093 * s/riscos5.h:
12094 * s/mach-bsd4-3.h:
12095 * m/mips4.h: Remove files for obsolete systems.
12096
12097 * Makefile.in:
12098 * filelock.c:
12099 * unexmips.c:
12100 * m/hp9000s300.h:
12101 * m/iris4d.h:
12102 * s/aix3-1.h:
12103 * s/hpux.h:
12104 * s/msdos.h:
12105 * s/usg5-0.h:
12106 * s/usg5-2-2.h:
12107 * s/usg5-2.h:
12108 * s/usg5-3.h: Remove references to obsolete variables.
12109
12110 * s/irix5-0.h: Remove, move all the contents ...
12111 * s/irix6-5.h: ... here. Simplify.
12112 * config.in: Regenerate.
12113
12114 2008-02-24 Jason Rumney <jasonr@gnu.org>
12115
12116 * w32term.c (x_draw_glyph_string_background): Clear the background
12117 manually when cleartype is in use.
12118 (x_draw_glyph_string_foreground): Draw text transparently when
12119 cleartype is in use.
12120
12121 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12122 a font into it unless we have to.
12123
12124 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12125
12126 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12127 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12128
12129 2008-02-18 Jason Rumney <jasonr@gnu.org>
12130
12131 * w32fns.c (Fw32_shell_execute): Encode parameters.
12132
12133 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12134
12135 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12136
12137 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12138
12139 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12140
12141 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12142
12143 * xterm.c (x_set_offset): Don't change the gravity if
12144 CHANGE_GRAVITY is -1.
12145
12146 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12147
12148 * fileio.c (auto_save_error_occurred): New var.
12149 (auto_save_error): Set it.
12150 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12151 error occurred.
12152
12153 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12154
12155 * w32.c (globals_of_w32): Add initializations for
12156 g_b_init_get_sid_sub_authority and
12157 g_b_init_get_sid_sub_authority_count.
12158
12159 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12160
12161 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12162 (font_parse_xlfd): Use them for sanity check.
12163 (Finternal_set_font_style_table): Make sure the table is bijective.
12164
12165 Consolidate the image_cache to the terminal struct.
12166 * termhooks.h (P_): Remove redundant def.
12167 (struct terminal): New field `image_cache'.
12168 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12169 of FRAME_X_IMAGE_CACHE.
12170 * xterm.h (struct x_display_info): Remove image_cache field.
12171 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12172 * w32term.h (struct w32_display_info): Remove image_cache field.
12173 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12174 * macterm.h (struct mac_display_info): Remove image_cache field.
12175 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12176 * xterm.c (x_term_init):
12177 * w32term.c (w32_term_init):
12178 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12179 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12180 Remove declarations.
12181 (clear_image_caches, mark_image_cache): New declarations.
12182 * xfaces.c (clear_face_cache):
12183 * xdisp.c (redisplay_internal): Use clear_image_caches.
12184 * image.c (clear_image_cache): Don't check that a frame is on
12185 a window-system before checking if it shares the same cache.
12186 (clear_image_caches): New function.
12187 (Fclear_image_cache): Use it.
12188 (mark_image): Move from allo.c.
12189 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12190 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12191 (mark_object): Don't call mark_image_cache for frames.
12192 (mark_terminals): Call mark_image_cache.
12193
12194 * lisp.h (Fdelete_terminal): Declare.
12195
12196 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12197 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12198 wrong_type_argument.
12199
12200 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12201
12202 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12203 malayalam.el, and tamil.el. Add sinhala.el.
12204
12205 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * xterm.c (x_connection_closed): Consolidate identical tests.
12208 (x_delete_terminal): Don't crash if called via x_connection_closed.
12209
12210 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12211
12212 * xdisp.c (decode_mode_spec): New arg string.
12213 (display_mode_element): Adjust for the above change.
12214
12215 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12216
12217 * callint.c (Fcall_interactively): Use AREF.
12218
12219 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12220
12221 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12222
12223 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12224
12225 * xfns.c (Fx_show_tip): Set string to " " if empty.
12226
12227 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12228
12229 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12230 with Qt.
12231
12232 2008-02-17 Kenichi Handa <handa@m17n.org>
12233
12234 * ftfont.c (ftfont_shape): Return Lispy number.
12235
12236 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12237 for GCs.
12238 (Finternal_set_font_selection_order): Call font_update_sort_order
12239 only when enable_font_backend is set.
12240 (realize_x_face): Set face->font_info to that of default face only
12241 when enable_font_backend is set.
12242
12243 * xdisp.c (handle_composition_prop): Set it->c to the fist
12244 character of the composed region.
12245 (fill_composite_glyph_string): Set base_face->font_info to
12246 s->font_info. Get a face for ascii from base_face->ascii_face.
12247 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12248 with a face already decided.
12249 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12250 non-negative.
12251 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12252 call font_prepare_composition unconditionally.
12253
12254 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12255
12256 * xterm.h (struct x_display_info): New member font.
12257
12258 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12259 (x_set_mouse_face_gc, x_new_font): Likewise.
12260 (x_term_init): Setup display_info->font.
12261 (x_delete_terminal): Free display_info->font.
12262
12263 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12264
12265 * ftxfont.c (ftxfont_default_fid): Delete it.
12266 (ftxfont_open): Set xfont->fid to 0.
12267 (ftxfont_end_for_frame): Clear data specific to the frame and the
12268 font-driver.
12269
12270 * xftfont.c (xftfont_default_fid): Delete it.
12271 (xftfont_open): Set xfont->fid to 0.
12272
12273 * fontset.c (FONTSET_OBJLIST): New macro.
12274 (fontset_find_font): Update font-object list of the fontset.
12275 (free_realized_fontset): New function.
12276 (free_face_fontset): Call free_realized_fontset.
12277 (Ffont_info): Call font_close_object only when enable_font_backend
12278 is set.
12279
12280 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12281 [HAVE_NTGUI]: Include w32term.h.
12282 [MAC_OS]: Include macterm.ch.
12283 (font_otf_ValueRecord): Use make_number.
12284 (font_finish_cache): Fix handling of reference count.
12285 (font_clear_cache): Update num_fonts.
12286 (font_open_entity): Update smallest_char_width and
12287 smallest_font_height of the frame.
12288 (font_close_object): Update num_fonts.
12289 (Fclear_font_cache): Fix finding the target cache data.
12290
12291 2008-02-16 Glenn Morris <rgm@gnu.org>
12292
12293 * fontset.c (Finternal_char_font): Fix compilation warning.
12294
12295 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12296
12297 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12298 instead of char arrays. Enlarge the size of array passed to
12299 get_token_information.
12300
12301 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12302 warnings.
12303
12304 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12305
12306 * .gdbinit: Don't set `args', it breaks gdb --args.
12307
12308 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12309
12310 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12311 within a narrowed buffer.
12312
12313 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12314
12315 * coding.c (decode_coding_object, encode_coding_object):
12316 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12317
12318 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12319
12320 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12321 hardcoding 1.
12322 (detect_coding_system):
12323 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12324 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12325 * insdel.c (insert_from_gap):
12326 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12327 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12328 (string_to_multibyte):
12329 * character.c (chars_in_text, multibyte_chars_in_text):
12330 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12331
12332 * character.h (FETCH_STRING_CHAR_ADVANCE)
12333 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12334 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12335 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12336
12337 * casefiddle.c (casify_region): Only call after-change and composition
12338 functions on the part of the region that was changed.
12339
12340 * keyboard.c (read_avail_input):
12341 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12342
12343 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12344
12345 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12346 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12347
12348 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12349
12350 * w32menu.c (push_submenu_start, push_submenu_end)
12351 (push_left_right_boundary, push_menu_pane, push_menu_item):
12352 * keyboard.c (read_key_sequence): Don't pass args with side effects
12353 to AREF, it fails when compiling with -DENABLE_CHECKING.
12354
12355 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12356
12357 * Makefile.in (${lispsource}international/charprop.el):
12358 Delete this target.
12359
12360 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12361 emacs-unicode-2.
12362
12363 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12364
12365 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12366
12367 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * frame.c (Qnoelisp): New symbol.
12370 (syms_of_frame): Initialize it.
12371 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12372 harmless Elisp code, from a strong `force' from x_connection_closed.
12373 * frame.h (Qnoelisp): Declare.
12374 * xterm.c (x_connection_closed): Pass `noelisp'.
12375
12376 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12377 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12378 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12379 rather than `int' for the type of `type'.
12380
12381 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12382
12383 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12384
12385 * Makefile.in (GNUC): Remove support for gcc-1.x.
12386
12387 2008-02-10 Richard Stallman <rms@gnu.org>
12388
12389 * lisp.h (ASET): Use AREF, not ASLOT.
12390
12391 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12392
12393 * lisp.h (ASET): Check bounds.
12394
12395 2008-02-10 Glenn Morris <rgm@gnu.org>
12396
12397 * buffer.c (mode-name): Doc fix.
12398
12399 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12400
12401 * Makefile.in:
12402 * emacs.c:
12403 * gmalloc.c:
12404 * keyboard.c:
12405 * lisp.h:
12406 * m/ibm370aix.h:
12407 * process.c:
12408 * regex.c:
12409 * s/hpux.h:
12410 * sysdep.c:
12411 * sysselect.h:
12412 * systty.h:
12413 * unexec.c:
12414 * w32term.c:
12415 * xsmfns.c:
12416 * xterm.c: Remove code that deals with obsolete variables.
12417
12418 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12419
12420 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12421 nothing else needs it anymore.
12422
12423 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12424
12425 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12426 instead of unibyte_char_to_multibyte.
12427
12428 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12429
12430 * s/gnu-linux.h: Remove commented out code.
12431
12432 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12433
12434 * Makefile.in: Update what RMS says about using autoconf.
12435 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12436 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12437 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12438 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12439
12440 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * keymap.c (Fkey_description): Move side effect outside of macro call.
12443
12444 * xfaces.c (Finternal_make_lisp_face):
12445 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12446
12447 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12448 (syms_of_fontset): Use ASET.
12449
12450 * fns.c (concat): Move side effect outside of macro call.
12451 (hash_clear): Use ASET.
12452
12453 2008-02-08 Richard Stallman <rms@gnu.org>
12454
12455 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12456 If FORCE, and frame has a surrogate minibuffer for another frame,
12457 delete the other frame first.
12458
12459 2008-02-07 Timo Savola <timo.savola@iki.fi>
12460
12461 * xterm.c (x_detect_focus_change): Handle embed client message.
12462 (handle_one_xevent): Ditto.
12463 (handle_one_xevent): If embedded and we get a button press/release,
12464 request focus.
12465 (xembed_set_info, xembed_send_message): New functions.
12466 (x_make_frame_visible): Call xembed_set_info if embedded.
12467 (x_make_frame_invisible): Call xembed_set_info if embedded.
12468 (x_term_init): Initialize Xatom_XEMBED.
12469 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12470 (x_iconify_frame): Ditto.
12471
12472 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12473 (enum xembed_info, enum xembed_message, enum xembed_focus)
12474 (enum xembed_modifier, enum xembed_accelerator): New.
12475 (xembed_set_info, xembed_send_message): Declare.
12476 (FRAME_X_EMBEDDED_P): New.
12477
12478 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12479 gtk_plug_new.
12480
12481 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12482 window ID of a frame.
12483 (x_window): Reparent frame if embedded.
12484 (Fx_create_frame): Don't set border width if embedded.
12485
12486 * emacs.c (USAGE3): Add --parent-id.
12487 (standard_args): Ditto.
12488
12489 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12490
12491 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12492
12493 2008-02-07 Jim Meyering <meyering@redhat.com>
12494
12495 Use "do...while (0)", not "if (1)...else" in macro definitions.
12496 The latter provokes a warning from gcc about the empty else, when
12497 followed by ";". Also, without that trailing semicolon, it would
12498 silently swallow up any following statement.
12499 * syntax.h (SETUP_SYNTAX_TABLE)
12500 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12501 * buffer.h (DECODE_POSITION): Likewise.
12502 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12503 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12504 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12505 (FETCH_CHAR_ADVANCE): Likewise.
12506 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12507
12508 2008-02-07 Jim Meyering <meyering@redhat.com>
12509
12510 * lread.c [lint]: Don't include <sys/inode.h>.
12511
12512 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12513
12514 * xselect.c (x_handle_dnd_message):
12515 * xmenu.c (digest_single_submenu, xmenu_show):
12516 * xdisp.c (with_echo_area_buffer_unwind_data)
12517 (format_mode_line_unwind_data, unwind_format_mode_line)
12518 (display_menu_bar):
12519 * eval.c (Ffetch_bytecode):
12520 * doc.c (store_function_docstring):
12521 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12522 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12523 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12524
12525 2008-02-07 Kenichi Handa <handa@m17n.org>
12526
12527 * ftxfont.c (ftxfont_open): Don't set
12528 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12529
12530 * ftfont.c (ftfont_open): Fix previous change.
12531
12532 2008-02-06 Jason Rumney <jasonr@gnu.org>
12533
12534 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12535 Use cached metrics for ASCII characters.
12536 (w32font_open_internal): Don't set font's owning_frame.
12537 Cache metrics for ASCII characters.
12538
12539 * w32font.h (struct w32font_info): Add ascii_metrics.
12540 Remove owning_frame.
12541
12542 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12543
12544 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12545 to negative value.
12546
12547 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12548
12549 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12550
12551 * charset.c (syms_of_charset): Set QCtest and Qeq.
12552
12553 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12554
12555 * process.c (Fstart_process):
12556 * callproc.c (Fcall_process): Handle the case where
12557 Funhandled_file_name_directory returns nil.
12558
12559 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12560 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12561 * font.c (check_gstring): Use them and AREF to access the vector before
12562 we know it's really a gstring.
12563 (Ffont_shape_text): Fix typo.
12564 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12565
12566 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12567 Declare.
12568
12569 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12570
12571 2008-02-05 Jason Rumney <jasonr@gnu.org>
12572
12573 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12574 Set smallest_font_height and smallest_char_width in display info.
12575
12576 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12577
12578 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12579
12580 2008-02-05 Miles Bader <miles@gnu.org>
12581
12582 * xfaces.c (get_lface_attributes, merge_named_face)
12583 (lookup_named_face, lookup_derived_face, realize_named_face):
12584 Revert 2008-02-01 change by cyd@stupidchicken.com.
12585
12586 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12587
12588 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12589 fallback fonts.
12590 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12591
12592 2008-02-04 Jason Rumney <jasonr@gnu.org>
12593
12594 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12595 set full_name.
12596 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12597
12598 2008-02-03 Jason Rumney <jasonr@gnu.org>
12599
12600 * makefile.w32-in (OBJ1): Include font.o here.
12601 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12602
12603 2008-02-02 Jason Rumney <jasonr@gnu.org>
12604
12605 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12606
12607 2008-02-01 Jason Rumney <jasonr@gnu.org>
12608
12609 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12610
12611 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12612
12613 2008-02-01 Andreas Schwab <schwab@suse.de>
12614
12615 * Makefile.in (shortlisp, lisp): Update for rename of
12616 ../lisp/language/myanmar.el.
12617
12618 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12619
12620 * xfaces.c (get_lface_attributes): Delete function.
12621 (merge_named_face, lookup_named_face, lookup_derived_face)
12622 (realize_named_face): Call lface_from_face_name directly, and use
12623 the fact that merge_face_vectors does not alter its FROM argument.
12624
12625 2008-02-01 Jason Rumney <jasonr@gnu.org>
12626
12627 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12628 input in the default locale. Handle non-Unicode multibyte input.
12629
12630 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12631
12632 * fontset.c (reorder_font_vector): Exclude nil elements from the
12633 font group. Don't try multiple fonts.
12634 (fontset_font): Adjust for the above change.
12635 (Finternal_char_font): Return nil if the found font doesn't
12636 contain the character ch.
12637
12638 * Makefile.in (lisp, shortlisp): Add cham.el.
12639
12640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12641
12642 * font.h (FONTP): Make it return 1 also for a font-object.
12643
12644 * .gdbinit (xfontset): New function.
12645
12646 * font.c (font_find_for_lface): Check if the character C is
12647 supported or not only for the first font.
12648
12649 * fontset.c (reorder_font_vector): Fix typo.
12650 (fontset_find_font): Don't add a font-spec specifying a script.
12651 Use 0 (not Qt) for the indication of empty font-group. Change the
12652 format of RFONT-DEF. Return Qt if no font in the font-group
12653 support the character.
12654 (fontset_font): Adjust for the above change. If no font was
12655 found the character, remember that.
12656 (face_for_char): Adjust for the change of RFONT-DEF.
12657 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12658 no font for the target.
12659 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12660
12661 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12662
12663 * font.c (font_load_for_face): Handle the case that the font in
12664 face->lface is a string.
12665
12666 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12667
12668 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12669
12670 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12671
12672 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12673 Fix previous change. If the frame is not on a window system,
12674 signal an error.
12675
12676 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12677
12678 * coding.c (decode_coding_object, encode_coding_object): Adjust
12679 marker positions after conversion.
12680
12681 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12682
12683 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12684
12685 * font.c (font_find_for_lface): Fix the handling of the return
12686 value of font_has_char.
12687 (Ffont_shape_text): Fix previous change.
12688
12689 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12690 (fontset_ref_and_range): Delete it.
12691 (fontset_find_font): Call char_table_ref_and_range instead of
12692 FONTSET_REF_AND_RANGE.
12693 (make_fontset): Don't setup font groups of Latin here.
12694 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12695 (new_fontset_from_font): Make the specified font the default for
12696 all Latin characters.
12697
12698 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12699
12700 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12701 is on a window system before accessing the fontset of the frame.
12702
12703 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12704
12705 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12706
12707 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12708 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12709
12710 * font.c (Ffont_shape_text): If the font driver doesn't have a
12711 shaper function, make zero-width glyphs to have at least one-pixel
12712 width. Fix setting of `to' field of glyphs.
12713
12714 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12715
12716 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12717 glyphs.
12718
12719 * font.h (struct font_driver): Improve docstring of member `shape'.
12720
12721 2008-02-01 Kenichi Handa <handa@m17n.org>
12722
12723 * composite.c (syms_of_composite): Fix docstring of
12724 auto-composition-function.
12725
12726 * font.h (LGLYPH_SIZE): New macro.
12727
12728 * font.c (Ffont_fill_gstring): Stop filling when a character not
12729 supported by the font is found.
12730 (Ffont_shape_text): When a shape callback function returns nil,
12731 try at most two more times with larger gstring.
12732 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12733
12734 * xdisp.c (handle_auto_composed_prop): Change the argument to
12735 auto-composition-function.
12736
12737 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12738 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12739 Lispy glyph and store it in the lgstring.
12740
12741 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12742
12743 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12744
12745 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12746
12747 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12748
12749 * fontset.c (Vfont_encoding_charset_alist): New variable.
12750 (syms_of_fontset): DEFVAR it.
12751 (reorder_font_vector, fontset_find_font): Optimize for the case of
12752 no need of reordering.
12753 (face_for_char): Map the charset property by
12754 Vfont_encoding_charset_alist.
12755
12756 2008-02-01 Jason Rumney <jasonr@gnu.org>
12757
12758 * w32font.c (logfonts_match): Don't check adstyle here.
12759 (font_matches_spec): Check here against physical font instead.
12760 (add_font_entity_to_list): Avoid some substitutions.
12761
12762 * font.c (font_parse_fcname): Default weight and slant to normal.
12763 (font_score): Prefer normal fonts if weight or slant unspecified.
12764 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12765 match freetype scores.
12766
12767 2008-02-01 Jason Rumney <jasonr@gnu.org>
12768
12769 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12770 font, as it may have been deleted.
12771 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12772 most common hyphenless variation.
12773 (logfonts_match): Check generic family.
12774 (font_matches_spec): Don't check generic family here.
12775 (fill_in_logfont): Set generic family based on adstyle.
12776
12777 * w32font.h (w32font_get_cache): Update declaration.
12778
12779 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12780
12781 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12782
12783 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12784 If none of the new drivers are available, call font_update_drivers
12785 with the old drivers.
12786
12787 * w32font.c (w32font_get_cache): Adjust the argument type.
12788
12789 * xfont.c (xfont_get_cache): Adjust the argument type.
12790
12791 * font.h (struct font_driver): Change argument type of get_cache.
12792
12793 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12794
12795 * font.c (Ffont_get): Fix arguments to Fassoc.
12796 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12797 (font_clear_cache): New function.
12798 (font_list_entities, font_matching_entity): Use font_get_cache.
12799 (font_update_drivers): Call font_clear_cache when finishing a driver.
12800
12801 * fontset.c (fontset_find_font): Fix previous change.
12802
12803 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12804
12805 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12806 dpyinfo->font_table.
12807 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12808 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12809
12810 * font.c (font_at): Handle the case that the arg C is negative.
12811 Handle the unibyte case.
12812 (Ffont_at): Call font_at with the arg C -1.
12813
12814 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12815 the position here, and call font_at with the arg C -1.
12816 Don't check the range of the existing composition at the point.
12817
12818 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12819
12820 * fontset.c (fontset_add): New args charset_id and family.
12821 Change caller.
12822 (load_font_get_repertory, fontset_find_font): Assume that
12823 font_spec is always a font-spec object.
12824 (Fset_fontset_font): Always store a font-spec object in a fontset.
12825
12826 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12827 instead of get_property_and_range.
12828
12829 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12830
12831 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12832 (xftfont_open): Don't keep locking face.
12833 (xftfont_close): Don't unlock face.
12834 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12835
12836 * fontset.c (fontset_find_font): Don't prefer a font of
12837 supplementary charset.
12838
12839 2008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12842 script, langsys_tag to langsys, new member script.
12843 (OTF_TAG_STR): Terminate by '\0'.
12844 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12845 listing to the script specified in that property. Fix arg to
12846 OTF_check_features.
12847
12848 2008-02-01 Jason Rumney <jasonr@gnu.org>
12849
12850 * w32font.h: New file.
12851
12852 * w32font.c: Include it.
12853 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12854 (w32font_open): Set owning_frame.
12855 (w32font_text_extents): Use owning_frame.
12856 (struct font_callback_data): Add opentype_only field.
12857 (add_font_entity_to_list): Use it to filter fonts.
12858 Don't check against full name.
12859 (w32font_list_internal): New function.
12860 (w32font_list): Use it.
12861 (w32font_match_internal): New function.
12862 (w32font_match): Use it.
12863 (w32font_open_internal): New function.
12864 (w32font_open): Use it.
12865 (w32font_get_cache, w32font_close, w32font_has_char)
12866 (w32font_encode_char, w32font_text_extents, w32font_draw):
12867 Make non-static.
12868
12869 * makefile.w32-in (w32font.o): Depend on w32font.h.
12870
12871 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12872
12873 * charset.c (Fdefine_charset_internal): Record a supplementary
12874 charset at the tail of Vcharset_order_list.
12875
12876 * font.c (Ffont_shape_text): Fix the return value.
12877
12878 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12879
12880 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12881
12882 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12883
12884 * ftfont.c (struct OpenTypeSpec): New struct.
12885 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12886 (ftfont_get_open_type_spec): New function.
12887 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12888
12889 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12890
12891 2008-02-01 Jason Rumney <jasonr@gnu.org>
12892
12893 * w32font.c (add_font_entity_to_list): Compare only the beginning
12894 of full name.
12895
12896 2008-02-01 Kenichi Handa <handa@m17n.org>
12897
12898 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12899 Never return HANDLED_RECOMPUTE_PROPS.
12900
12901 2008-02-01 Kenichi Handa <handa@m17n.org>
12902
12903 * font.c (font_gstring_produce): Delete it.
12904
12905 * composite.h (COMPOSITION_METHOD):
12906 Handle COMPOSITION_WITH_GLYPH_STRING.
12907
12908 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12909
12910 * xfont.c (Qx): Delete.
12911 (syms_of_xfont): Don't initialize Qx.
12912
12913 * composite.h (enum composition_method):
12914 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12915
12916 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12917
12918 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12919 (choose_face_font): Accept new form of font-spec.
12920
12921 * frame.h (font_driver_list): Declare it unconditionally.
12922 (struct frame): Define members font_driver_list and font_data_list
12923 unconditionally.
12924
12925 * fontset.c: Include "font.h" unconditionally.
12926 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12927 (Fset_fontset_font): Accept a font-spec object.
12928
12929 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12930 PIXEL_SIZE part a wild card.
12931
12932 * dispextern.h (struct glyph_string): Define members clip and
12933 num_clips unconditionally.
12934 (struct face): Define members font_info and extra unconditionally.
12935
12936 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12937 ftfont_info only when HAVE_LIBOTF is defined.
12938
12939 2008-02-01 Andreas Schwab <schwab@suse.de>
12940
12941 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12942 and end.
12943
12944 2008-02-01 Jason Rumney <jasonr@gnu.org>
12945
12946 * w32font.c (w32font_driver): Add new fields.
12947
12948 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12949
12950 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12951 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12952 (LIBES): Add @M17N_FLT_CFLAGS@.
12953
12954 * composite.c (compose_text): Don't treat the new style
12955 composition specially.
12956
12957 * emacs.c (main): Call syms_of_font unconditionally.
12958
12959 * font.h (FONT_ENTITY_NOT_LOADABLE)
12960 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12961 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12962 (struct font_driver): New member shape.
12963 (font_registry_charsets): Extern it.
12964 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12965 (font_otf_capability, font_drive_otf): Delete their externs.
12966
12967 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12968 (font_charset_alist, font_registry_charsets): Move from xfont.c
12969 and rename.
12970 (font_prop_validate_otf): New function.
12971 (font_property_table): Register it for QCotf.
12972 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12973 (font_drive_otf): Delete.
12974 (font_prepare_composition): New arg F. Adjust for the change of
12975 lispy gstring.
12976 (font_find_for_lface): New arg C.
12977 (font_load_for_face): Adjust for the change of font_find_for_lface.
12978 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12979 lispy gstring.
12980 (Ffont_shape_text): New function.
12981 (Fopen_font): If the font size is not given, use 12-pixel.
12982 (Ffont_at): New arg STRING.
12983 (syms_of_font): Initalize font_charset_alist.
12984 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12985 conditionally.
12986
12987 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12988 fonts of the same font-spec. Change the format of RFONT-DEF.
12989 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12990 Adjust for the change of RFONT-DEF.
12991 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12992
12993 * ftfont.h: New file.
12994
12995 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12996 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12997 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12998 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12999 font_otf_capability and font_drive_otf, set ftfont_shape.
13000 (ftfont_list): Adjust for the change of :otf property value.
13001 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13002 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13003 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13004 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13005 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13006 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13007
13008 * w32term.c (x_draw_composite_glyph_string_foreground):
13009 Adjust for the change of lispy gstring.
13010
13011 * xdisp.c (handle_composition_prop): Adjust for the change of
13012 lispy gstring. Call a function for auto-composition with the
13013 third arg it->window.
13014 (fill_composite_glyph_string): Adjust for the change of lispy string.
13015 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13016
13017 * xfaces.c (set_font_frame_param): Adjust for the change of
13018 font_find_for_lface.
13019
13020 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13021 (xfont_registry_charsets): Likewise. Change caller.
13022 (syms_of_xfont): Don't handle x_font_charset_alist.
13023
13024 * xftfont.c: Include "ftfont.h".
13025 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13026 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13027 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13028 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13029 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13030 Set xftfont_driver.shape to xftfont_shape.
13031
13032 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13033 the change of lispy gstring.
13034
13035 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13036
13037 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13038
13039 2008-02-01 Jason Rumney <jasonr@gnu.org>
13040
13041 * w32font.c (w32font_draw): Fill background manually.
13042
13043 2008-02-01 Jason Rumney <jasonr@gnu.org>
13044
13045 * font.c (Qfontp): Remove unused symbol.
13046 (QCantialias): New symbol.
13047 (syms_of_font): Define it.
13048 (font_property_table): Set a validator for QCantialias.
13049
13050 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13051 Define if not already.
13052 (QCfamily): Share with xfaces.c.
13053 (Qstandard, Qsubpixel, Qnatural): New symbols.
13054 (syms_of_w32font): Define them. Don't define QCfamily here.
13055 (w32_antialias_type, lispy_antialias_type): New functions.
13056 (w32_enumfont_pattern_entity): New arg requested_font.
13057 Set antialias parameter if non-default was requested.
13058 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13059
13060 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13061
13062 * lread.c (read1): Undo the previous change.
13063
13064 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13065
13066 * frame.c (Fdelete_frame): Call font_update_drivers only when
13067 USE_FONT_BACKEND is defined.
13068
13069 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13070
13071 * font.h (struct font_bitmap): New member bits_per_pixel.
13072 (struct font_driver): New members start_for_frame and end_for_frame.
13073 (struct font_data_list): New struct.
13074 (font_put_frame_data, font_get_frame_data): Extern them.
13075
13076 * frame.h (struct frame): New member font_data_list.
13077
13078 * font.c (font_update_drivers): Call driver->start_for_frame and
13079 driver->end_for_frame at proper timings.
13080 (font_put_frame_data, font_get_frame_data): New functions.
13081 (Ffont_spec): Add usage in the docstring.
13082
13083 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13084 (Fdelete_frame): Call font_update_drivers.
13085
13086 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13087 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13088 (xftfont_get_xft_draw): New function.
13089 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13090 (xftfont_end_for_frame): New function.
13091 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13092
13093 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13094 Change argument. Cache GCs in the per-frame data.
13095 (struct ftxfont_frame_data): New struct.
13096 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13097 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13098 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13099 (ftxfont_end_for_frame): New function.
13100 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13101
13102 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13103
13104 2008-02-01 Kenichi Handa <handa@m17n.org>
13105
13106 * xselect.c (Vselection_coding_system)
13107 (Vnext_selection_coding_system): Delete them.
13108 (syms_of_xselect): Don't declare selection-coding-system and
13109 next-selection-coding-system. They are declared in select.el.
13110
13111 2008-02-01 Jason Rumney <jasonr@gnu.org>
13112
13113 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13114
13115 * w32fns.c: Include imm.h.
13116 (get_composition_string_fn, get_ime_context_fn): New optional
13117 system functions.
13118 (globals_of_w32fns): Load them from imm32.dll.
13119 (ignore_ime_char): New flag.
13120 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13121 WM_IME_ENDCOMPOSITION messages.
13122
13123 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13124 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13125
13126 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13127
13128 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13129 (READCHAR_REPORT_MULTIBYTE): New macro.
13130 (readchar): New 2nd arg MULTIBYTE.
13131 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13132 Make symbol's name multibyte according to the multibyteness of the
13133 source.
13134
13135 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13136
13137 * xfaces.c (face_for_overlay_string): Call lookup_face with
13138 correct arguments (fix of synching with the trunk).
13139
13140 2008-02-01 Kenichi Handa <handa@m17n.org>
13141
13142 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13143 (font_prop_validate_non_neg, font_prop_validate_spacing):
13144 Delete argument prop_index.
13145 (font_property_table): Change arguments to validater. Change Callers.
13146 (font_lispy_object): Delete.
13147 (font_at): Use font_find_object instead fo font_lispy_object.
13148
13149 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13150
13151 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13152 and file names.
13153
13154 2008-02-01 Jason Rumney <jasonr@gnu.org>
13155
13156 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13157 (font_matches_spec): Remove debug output.
13158 (add_font_entity_to_list): Avoid using substituted fonts.
13159
13160 2008-02-01 Jason Rumney <jasonr@gnu.org>
13161
13162 * doc.c (Fsnarf_documentation):
13163 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13164
13165 2008-02-01 Miles Bader <miles@gnu.org>
13166
13167 * dispextern.h (struct glyph_row): Only define "clip" field if
13168 HAVE_WINDOW_SYSTEM is defined.
13169
13170 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13171
13172 Fix up multi-tty merge.
13173
13174 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13175 and indentation.
13176
13177 * xfaces.c (free_realized_face, clear_face_gcs):
13178 Include font_done_for_face in the input_blocked section, just in case.
13179
13180 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13181 (get_char_face_and_encoding): Undo last change and remove the *other*
13182 duplicate definition (i.e. keep the one that's better scoped and that
13183 includes code for the font-backend).
13184
13185 * terminal.c (create_terminal): Default keyboard_coding to
13186 `no-conversion' and terminal_coding to `undecided'.
13187
13188 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13189
13190 * fontset.c (free_realized_fontsets): Check that the table entry does
13191 contain a fontset before trying to compare it to `base'.
13192
13193 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13194 syms_of_charset, and syms_of_coding earlier because init_window_once
13195 now needs Vcoding_system_hash_table to be setup.
13196
13197 * coding.h (default_buffer_file_coding): Remove.
13198
13199 * coding.c (default_buffer_file_coding): Remove.
13200 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13201 than ->symbol, and use the terminal-local coding system.
13202 (syms_of_coding): Don't setup the coding-systems that are not
13203 terminal-local.
13204 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13205
13206 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13207 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13208
13209 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13210 in chartab.c and were re-added here by mistake.
13211 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13212
13213 * doc.c (Fsnarf_documentation):
13214 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13215 src to etc.
13216
13217 * ChangeLog.10: Add mistakenly removed entry.
13218
13219 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13220
13221 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13222
13223 2008-02-01 Miles Bader <miles@gnu.org>
13224
13225 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13226 Add extra args to FACE_FOR_CHAR.
13227
13228 2008-02-01 Kenichi Handa <handa@m17n.org>
13229
13230 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13231 in sequence.
13232
13233 * chartab.c (map_sub_char_table, map_char_table): If the range
13234 contains just one character, call the function with that character
13235 even if the depth is not 3.
13236
13237 2008-02-01 Jason Rumney <jasonr@gnu.org>
13238
13239 * w32font.c (w32font_text_extents): Calculate metrics for the
13240 whole string.
13241
13242 2008-02-01 Jason Rumney <jasonr@gnu.org>
13243
13244 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13245
13246 2008-02-01 Jason Rumney <jasonr@gnu.org>
13247
13248 * w32term.c (x_set_glyph_string_clipping): Use
13249 get_glyph_string_clip_rects.
13250 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13251 Adjust for the change of struct glyph_string.
13252
13253 * w32font.c (w32font_draw): Do clipping here.
13254
13255 2008-02-01 Kenichi Handa <handa@m17n.org>
13256
13257 * xftfont.c (xftfont_draw): Adjust for the change of struct
13258 glyph_string.
13259
13260 * xterm.c (x_set_glyph_string_clipping): Use
13261 get_glyph_string_clip_rects.
13262 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13263 Adjust for the change of struct glyph_string.
13264
13265 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13266 the resulting clip(s}.
13267 (expose_overlaps): Add arg r. Change callers. Set it to
13268 row->clip temporarily.
13269 (expose_window): Redraw rows overlapping the exposed area.
13270
13271 * dispextern.h (struct glyph_row): New member clip.
13272 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13273 clip_height, new member clip, and num_clips.
13274
13275 2008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * data.c (Fchar_or_string_p): Fix docstring.
13278
13279 2008-02-01 Kenichi Handa <handa@m17n.org>
13280
13281 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13282 create a temporary XftDraw object.
13283
13284 2008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * font.c (Ffontp): Fix docstring.
13287
13288 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13289 strong evidence of ISO-2022.
13290
13291 2008-02-01 Kenichi Handa <handa@m17n.org>
13292
13293 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13294 SYNTAX_ENTRY_FOLLOW_PARENT.
13295
13296 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13297
13298 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13299 its type.
13300 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13301 Update to the new type of weak_hash_tables and next_weak.
13302
13303 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13304 a plain C pointer to Lisp_Hash_Table.
13305
13306 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13307 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13308 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13309 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13310 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13311 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13312 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13313 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13314 (GC_EQ): Remove since they've been identical to their non-GC_
13315 alter-egos ever since the markbit was eradicated.
13316
13317 * alloc.c:
13318 * buffer.c:
13319 * buffer.h:
13320 * data.c:
13321 * fileio.c:
13322 * filelock.c:
13323 * fns.c:
13324 * frame.h:
13325 * lisp.h:
13326 * macterm.c:
13327 * print.c:
13328 * process.c:
13329 * w32fns.c:
13330 * w32menu.c:
13331 * w32term.c:
13332 * xfns.c:
13333 * xmenu.c:
13334 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13335
13336 2008-02-01 Kenichi Handa <handa@m17n.org>
13337
13338 * chartab.c (map_sub_char_table): Make it work for the top-level
13339 char-table. Fix handling of parent char-table.
13340 (map_char_table): Adjust for the above change.
13341
13342 2008-02-01 Jason Rumney <jasonr@gnu.org>
13343
13344 * w32font.c (Qgdi): Rename from Qw32.
13345
13346 2008-02-01 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32bdf.c (get_quoted_string): Make function static.
13349
13350 2008-02-01 Kenichi Handa <handa@m17n.org>
13351
13352 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13353 bigger ascent and descent than those of the font, use them as
13354 font's ascent and descent.
13355
13356 2008-02-01 Kenichi Handa <handa@m17n.org>
13357
13358 * Makefile.in (${lispsource}international/charprop.el): Move this
13359 target within "#ifdef HAVE_UNIDATA" and "#endif".
13360
13361 2008-02-01 Kenichi Handa <handa@m17n.org>
13362
13363 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13364 (shortlisp): Add ../lisp/language/tai-viet.el.
13365
13366 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13367
13368 * Makefile.in (${lispsource}international/charprop.el): Depend on
13369 temacs${EXEEXT}.
13370
13371 2008-02-01 Jason Rumney <jasonr@gnu.org>
13372
13373 * w32font.c (w32font_close): Delete the GDI font object.
13374
13375 * w32menu.c: Include character.h.
13376
13377 * w32proc.c: Likewise.
13378
13379 * w32select.c: Likewise.
13380
13381 * makefile.w32-in (w32proc.o): Depend on character.h.
13382
13383 2008-02-01 Jason Rumney <jasonr@gnu.org>
13384
13385 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13386
13387 * w32menu.c (syms_of_w32menu): Likewise.
13388
13389 * w32proc.c (syms_of_ntproc): Likewise.
13390
13391 * w32select.c (syms_of_w32select): Likewise.
13392
13393 * w32term.c (syms_of_w32term): Likewise.
13394
13395 2008-02-01 Jason Rumney <jasonr@gnu.org>
13396
13397 * w32font.c (w32font_draw): Delete brush after using it.
13398
13399 2008-02-01 Jason Rumney <jasonr@gnu.org>
13400
13401 * w32font.c (w32font_open): Don't set font_idx.
13402 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13403 to font settings.
13404 (w32font_draw): Fill background explicitly.
13405
13406 2008-02-01 Jason Rumney <jasonr@gnu.org>
13407
13408 * w32term.c (w32_initialize): Don't call w32font_initialize.
13409
13410 * w32font.c (w32font_info): Remove subranges.
13411 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13412 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13413 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13414 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13415 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13416 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13417 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13418 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13419 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13420 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13421 New symbols.
13422 (font_callback_data): New struct.
13423 (w32font_list, w32font_match): Use it.
13424 (w32font_open): Don't populate subranges.
13425 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13426 (w32font_encode_char): Always return unicode code-point as-is.
13427 (w32font_text_extents): Supply a transformation matrix to
13428 GetGlyphOutline. Never look up by glyph index. Avoid looping
13429 twice. Use unicode version of GetTexExtentPoint32 instead of
13430 glyph index version.
13431 (set_fonts_frame): Remove.
13432 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13433 set frame parameter. Use backward compatible fake foundries.
13434 Save generic family in extra slot under QCfamily. Make width slot
13435 constant. Save QCspacing value. Save list of scripts instead of
13436 binary subranges.
13437 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13438 (add_font_entity_to_list): Use font_callback_data struct. Filter
13439 unwanted fonts.
13440 (add_one_font_entity_to_list): Use font_callback_data struct.
13441 (w32_registry): Default to iso10646_1.
13442 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13443 string font registries. Don't fill in font name if it is a generic
13444 family name, fill family instead. Use spacing, family and script
13445 extra info to fill pitch, family and charset fields.
13446 (list_all_matching_fonts): Use font_callback_data struct.
13447 (unicode_range_for_char): Remove.
13448 (font_supported_scripts): New function.
13449 (w32font_initialize): Remove.
13450 (syms_of_w32font): Update which symbols are defined.
13451
13452 2008-02-01 Jason Rumney <jasonr@gnu.org>
13453
13454 * font.c (font_pixel_size): Reverse assq_no_quit args.
13455
13456 * w32term.h (FONT_WIDTH): Report max width, not average.
13457 (FONT_MAX_WIDTH): Remove.
13458 (FONT_AVG_WIDTH): New macro.
13459
13460 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13461 redefinition of FONT_WIDTH.
13462
13463 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13464 (w32_cache_char_metrics): Use FONT_WIDTH.
13465
13466 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13467
13468 2008-02-01 Jason Rumney <jasonr@gnu.org>
13469
13470 * w32font.c (w32font_open): Make lfHeight negative.
13471
13472 * w32fns.c (x_default_font_parameter): Use new style font name.
13473 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13474
13475 2008-02-01 Jason Rumney <jasonr@gnu.org>
13476
13477 * w32font.c (QCsubranges): New symbol.
13478 (w32font_open, w32font_has_char): Get subranges from subproperty
13479 of extra.
13480 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13481 (syms_of_w32font): Define :subranges symbol.
13482
13483 * font.c (font_put_extra): Expose externally.
13484
13485 * font.h (font_put_extra): Move declaration from font.c.
13486
13487 * font.c (Ffont_get): Use font driver to determine otf capability.
13488 (adjust_anchor): Check if driver defines anchor_point before using.
13489
13490 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13491 (w32font_draw): Use options.
13492 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13493 Fix detection of truetype fonts.
13494 (registry_to_w32_charset): Handle charsets other than iso8859-1
13495 expressed as lisp symbols.
13496 (w32_registry): Express charset as lisp symbol.
13497 (fill_in_logfont): Reverse pixel and point height logic.
13498 Don't set width here. Set quality to default.
13499
13500 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13501 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13502
13503 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13504 Remove redundant loop and allocation.
13505
13506 * makefile.w32-in (font.o, w32font.o): New objects.
13507 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13508 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13509
13510 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13511 STORE_XCHARB a valid l-value.
13512
13513 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13514 calculations for non-Truetype fonts.
13515 (x_draw_glyph_string): Sync with xterm.c.
13516 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13517 Remove redundant code.
13518 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13519
13520 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13521 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13522
13523 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13524 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13525
13526 * w32font.c: New file for w32 font backend.
13527
13528 2008-02-01 Kenichi Handa <handa@m17n.org>
13529
13530 * term.c: Don't include "buffer.h" twice.
13531
13532 2008-02-01 Kenichi Handa <handa@m17n.org>
13533
13534 * character.c (Funibyte_string): New function.
13535 (syms_of_character): Defsubr it.
13536
13537 2008-02-01 Jason Rumney <jasonr@gnu.org>
13538
13539 * w32term.c [USE_FONT_BACKEND]:
13540 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13541 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13542 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13543 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13544 (x_free_frame_resources): Sync with xterm.c.
13545
13546 2008-02-01 Andreas Schwab <schwab@suse.de>
13547
13548 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13549 char-table size.
13550
13551 2008-02-01 Kenichi Handa <handa@m17n.org>
13552
13553 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13554
13555 2008-02-01 Kenichi Handa <handa@m17n.org>
13556
13557 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13558 font_otf_gpos, add font_drive_otf.
13559
13560 * fontset.c (fontset_find_font): Pay attention to font size
13561 specified for a font.
13562 (reorder_font_vector): Check contents of font_def.
13563
13564 * font.c (struct otf_list): Delete it.
13565 (otf_list): Make it a lisp variable.
13566 (otf_open): Use lispy otf_list.
13567 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13568 (check_otf_features): New function.
13569 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13570 New functions.
13571 (font_drive_otf): New function merging font_otf_gsub and
13572 font_otf_gpos.
13573 (font_open_for_lface): New arg spec. Change argument order.
13574 (font_load_for_face): Adjust for the change of font_open_for_lface.
13575 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13576 Ffont_otf_gpos.
13577 (syms_of_font): Staticpro otf_list. Delete defsubr of
13578 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13579
13580 * xfaces.c (set_font_frame_param): Adjust for the change of
13581 font_open_for_lface.
13582
13583 * font.h (font_open_for_lface): Adjust prototype.
13584 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13585 member otf_drive.
13586 (font_otf_gsub, font_otf_gpos): Delete externs.
13587 (font_drive_otf): Extern it.
13588
13589 2008-02-01 Kenichi Handa <handa@m17n.org>
13590
13591 * font.c (font_at): If the window W is not on a window system,
13592 return Qnil.
13593
13594 * coding.c (produce_chars, encode_coding): Don't call
13595 insert_from_gap if no characters to produce.
13596
13597 2008-02-01 Kenichi Handa <handa@m17n.org>
13598
13599 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13600 Fclear_face_cache.
13601
13602 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13603
13604 2008-02-01 Miles Bader <miles@gnu.org>
13605
13606 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13607 Parse "--disable-font-backend" option.
13608 (standard_args): Add "--disable-font-backend" option.
13609
13610 2008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * fontset.c (fontset_find_font): New function.
13613 (fontset_font): Use fontset_find_font.
13614 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13615 Register the specified font for all Latin characters.
13616 (new_fontset_from_font): Register the specified font for all Latin
13617 characters.
13618 (dump_fontset): For a realized fontset, include the base fontset
13619 name in the returned vector.
13620
13621 2008-02-01 Kenichi Handa <handa@m17n.org>
13622
13623 * character.h (CHAR_STRING): Cast C to unsigned on calling
13624 char_string.
13625
13626 * character.c (char_string): Type of arg C changed to unsigned.
13627 Signal an error if C is an invalid character code.
13628
13629 * editfns.c (general_insert_function, Fchar_to_string):
13630 Use CHARACTERP, not INTEGERP.
13631
13632 2008-02-01 Kenichi Handa <handa@m17n.org>
13633
13634 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13635 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13636
13637 * regex.c (analyse_first): Fix for multibyte characters in "case
13638 charset:" and "case categoryspec:".
13639
13640 2008-02-01 Andreas Schwab <schwab@suse.de>
13641
13642 * Makefile.in (LIBES): Move standard libraries to the end.
13643
13644 2008-02-01 Kenichi Handa <handa@m17n.org>
13645
13646 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13647 nonzero, don't shrink the buffer nextb.
13648
13649 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13650
13651 * coding.c (coding_alloc_by_making_gap): New arg offset.
13652 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13653 offset.
13654 (decode_coding_iso_2022): Update coding->safe_charsets.
13655 (decode_coding_gap): Temporarily set
13656 current_buffer->text->inhibit_shrinking to 1.
13657
13658 2008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13661 indexing into elements of s->cmp and s->char2b.
13662
13663 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13664
13665 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13666
13667 2008-02-01 Kenichi Handa <handa@m17n.org>
13668
13669 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13670 target_multibyte instead of multibyte.
13671 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13672 (bcmp_translate): Change the argument name from multibyte to
13673 target_multibyte.
13674
13675 2008-02-01 Kenichi Handa <handa@m17n.org>
13676
13677 These changes are to compile a regexp into a pattern that can be
13678 used both for multibyte and unibyte targets.
13679
13680 * Makefile.in (search.o): Depend on charset.h.
13681
13682 * character.c (multibyte_char_to_unibyte_safe): New function.
13683
13684 * search.c: Include "charset.h".
13685 (compile_pattern_1): Delete argument multibyte. Don't set
13686 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13687 (compile_pattern): Don't compare cp->buf.target_multibyte.
13688 Compare cp->buf.charset_unibyte.
13689 (compile_pattern): Set cp->buf.target_multibyte.
13690
13691 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13692
13693 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13694
13695 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13696 multibyte. Change callers.
13697 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13698 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13699 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13700 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13701 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13702 (regex_compile): Make the compiled pattern usable both for
13703 multibyte and unibyte targets.
13704 (analyse_first): Make the fastmap usable both for multibyte and
13705 unibyte targets.
13706 (TRANSLATE_VIA_MULTIBYTE): Delete.
13707 (re_match_2_internal): Pay attention to the case that the
13708 multibyteness of bufp and target may be different.
13709
13710 2008-02-01 Kenichi Handa <handa@m17n.org>
13711
13712 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13713 empty box occupy at least one column width.
13714
13715 2008-02-01 Miles Bader <miles@gnu.org>
13716
13717 * Makefile.in: Remove redundant HAVE_XFT clause.
13718
13719 2008-02-01 Kenichi Handa <handa@m17n.org>
13720
13721 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13722
13723 2008-02-01 Kenichi Handa <handa@m17n.org>
13724
13725 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13726 being nil.
13727
13728 2008-02-01 Kenichi Handa <handa@m17n.org>
13729
13730 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13731
13732 2008-02-01 Kenichi Handa <handa@m17n.org>
13733
13734 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13735
13736 2008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * search.c (simple_search): Fix previous change.
13739
13740 2008-02-01 Kenichi Handa <handa@m17n.org>
13741
13742 * xftfont.c (ftfont_font_format): Extern declaration.
13743
13744 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13745
13746 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13747 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13748
13749 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13750 (ftfont_font_format): Fix previous change.
13751
13752 * font.h (Ffont_xlfd_name): EXFUN it.
13753
13754 * font.c (font_parse_xlfd): Fix the array size of `f'.
13755 (register_font_driver): Use EQ to compare driver->type.
13756
13757 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13758 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13759 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13760
13761 2008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13764 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13765
13766 2008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * xfont.c (xfont_open): Set font->format.
13769
13770 * xftfont.c (xftfont_open): Set font->format.
13771
13772 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13773 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13774 (ftfont_open): Set font->format.
13775 (ftfont_font_format): New function.
13776
13777 * font.h (struct font): New member format.
13778
13779 * font.c (Qopentype): New variable.
13780 (syms_of_font): Defsym it.
13781 (Fquery_font): Change the format of the last element of the return
13782 value.
13783
13784 2008-02-01 Kenichi Handa <handa@m17n.org>
13785
13786 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13787 last resort.
13788
13789 2008-02-01 Kenichi Handa <handa@m17n.org>
13790
13791 * coding.c (detect_coding_charset): Fix detection of multi-byte
13792 charset.
13793
13794 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13795
13796 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13797
13798 2008-02-01 Kenichi Handa <handa@m17n.org>
13799
13800 * xdisp.c (get_next_display_element): Set it->face_id for the
13801 first component of a composition.
13802 (x_produce_glyphs): Check if the font is changed or not for composition.
13803
13804 2008-02-01 Kenichi Handa <handa@m17n.org>
13805
13806 * fontset.c (Qlatin): New variable.
13807 (syms_of_fontset): Define it as a lisp symbol.
13808 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13809
13810 2008-02-01 Kenichi Handa <handa@m17n.org>
13811
13812 * font.c (font_unparse_fcname): Pay attention to the case that
13813 some of font property is a null string.
13814
13815 2008-02-01 Kenichi Handa <handa@m17n.org>
13816
13817 * term.c: Include "composite.h".
13818 (encode_terminal_code): Output all components of composition.
13819 Check the size of encode_terminal_src.
13820 (produce_glyphs): For composition, call produce_composite_glyph.
13821 (append_composite_glyph, produce_composite_glyph): New functions.
13822
13823 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13824 is not found, get font_info from the current ascii face.
13825
13826 2008-02-01 Kenichi Handa <handa@m17n.org>
13827
13828 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13829 buffer-file-name to Qnil before calling insert_from_buffer.
13830
13831 * font.c (font_unparse_fcname): Pay attention to the case that
13832 foundry is a null string.
13833
13834 2008-02-01 Kenichi Handa <handa@m17n.org>
13835
13836 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13837
13838 * font.c (Qunicode_sip): New variable.
13839 (syms_of_font): Declare it as a Lisp symbol.
13840
13841 * font.h (Qunicode_sip): Extern it.
13842
13843 2008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * composite.c (get_composition_id): Pay attention to TAB component.
13846
13847 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13848 TAB. Adjust for the change of s->char2b which always points to
13849 the first element of allocated memory.
13850
13851 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13852
13853 * xdisp.c (handle_composition_prop): Set it->c to the first
13854 non-TAB component.
13855 (fill_composite_glyph_string): Change argument.
13856 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13857 (x_produce_glyphs): Fix handling of left/right padding.
13858
13859 2008-02-01 Kenichi Handa <handa@m17n.org>
13860
13861 * coding.c (detect_coding_system): Fix for handling off
13862 inhibit_iso_escape_detection. Fix for the case that no coding
13863 system is defined for a specific coding category.
13864
13865 2008-02-01 Kenichi Handa <handa@m17n.org>
13866
13867 * font.c (font_matching_entity): Delete unused local var.
13868
13869 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13870 opening a font.
13871
13872 * fileio.c (Finsert_file_contents): On recovering a file, assume
13873 Unix-like eol.
13874 (choose_write_coding_system): On auto-saving a file, force
13875 Unix-like eol.
13876
13877 * coding.c (setup_coding_system): Fix setting of
13878 coding->common_flags based on eol_type.
13879 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13880 inherit from it.
13881
13882 2008-02-01 Kenichi Handa <handa@m17n.org>
13883
13884 * alloc.c (NSTATICS): Increas to 0x600.
13885
13886 2008-02-01 Kenichi Handa <handa@m17n.org>
13887
13888 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13889 (ftfont_list): Don't check :name property.
13890 (ftfont_match): New function.
13891 (ftfont_pattern_entity): If the pattern doesn't contain
13892 FC_SPACING, don't assume FC_MONO.
13893
13894 * font.h (struct font_driver): New member `match'.
13895 (font_update_drivers): Adjust prototype.
13896
13897 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13898 property of FONT.
13899 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13900 them unconditionally.
13901 (font_matching_entity): New function.
13902 (font_open_by_name): Try font_matching_entity if exact match is
13903 not found.
13904 (font_update_drivers): Delete the arg FONT. Return a list of
13905 actually used backends. Don't free faces, font caches here.
13906 Don't store data in frame parameters. Don't call x_set_font.
13907 (Ffont_spec): Store :name property as is.
13908 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13909 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13910 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13911 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13912 Call font->driver->otf_gsub instead of font_otf_gsub.
13913
13914 * frame.c (x_set_font_backend): Do more works that were done in
13915 font_update_drivers before.
13916
13917 * xfont.c (xfont_match): New function.
13918 (xfont_driver): Set xfont_driver.match to xfont_match.
13919 (xfont_draw): Set font in GC if necessary.
13920
13921 * ftxfont.c (ftxfont_match): New function.
13922 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13923
13924 * xftfont.c (xftfont_match): New function.
13925 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13926
13927 2008-02-01 Kenichi Handa <handa@m17n.org>
13928
13929 * font.h (struct font): New member scalable.
13930 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13931 (font_otf_gsub): Adjust prototype.
13932
13933 * font.c (font_otf_capability): Fix handling of the default langsys.
13934 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13935 Check the contents of SPEC.
13936 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13937 (check_gstring): New function.
13938 (REPLACEMENT_CHARACTER): New macro.
13939 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13940 glyph codes of GSTRING.
13941 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13942 (font_prepare_composition): Set cmp->glyph_len.
13943 (font_open_entity): Set font->scalable.
13944 (Ffont_get): Handle :otf property.
13945 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13946 functions.
13947 (Fquery_font): Use font->font.full_name.
13948 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13949 Sfont_otf_alternates.
13950
13951 * ftfont.c (ftfont_open): Set font->font.full_name and
13952 font->font.name properly. Fix calculation of font->font.height
13953 and font->min_width.
13954
13955 * ftxfont.c (ftxfont_create_gcs): New function.
13956 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13957 (ftxfont_draw_backgrond): Fix filling region.
13958 (ftxfont_default_fid): New function.
13959 (ftxfont_open): Set xfont->fid to the return value of
13960 ftxfont_default_fid.
13961 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13962 (ftxfont_done_face): Free only GCs that are created by
13963 ftxfont_create_gcs.
13964 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13965
13966 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13967 Clip to src->width, etc (not src->clip_XXX).
13968
13969 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13970 FontBackend frame parameter.
13971
13972 2008-02-01 Kenichi Handa <handa@m17n.org>
13973
13974 * font.h (struct font_driver_list): New member `on'.
13975 (Fclear_font_cache): EXFUN it.
13976 (font_update_drivers): Extern it.
13977
13978 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13979 (font_list_entities): Check driver_list->on.
13980 (register_font_driver): Initalize `on' member to 0.
13981 (font_update_drivers): New function.
13982 (Fclear_font_cache): Check driver_list->on.
13983
13984 * frame.h (Qfont_backend): Extern it.
13985 (x_set_font_backend): Extern it.
13986
13987 * frame.c (Qfont_backend): New variable.
13988 (frame_parms): New element for font-backend.
13989 (x_set_font_backend): New function.
13990
13991 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13992 FontBackend frame parameter.
13993 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13994 x_set_font_backend.
13995
13996 * xfont.c (xfont_list): Don't try listing by :name property if the
13997 name is not for XLFD.
13998
13999 2008-02-01 Kenichi Handa <handa@m17n.org>
14000
14001 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14002 (LGLYPH_SET_TO): New macros.
14003 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14004 element of G is vector or not.
14005 (font_at): Extern it.
14006
14007 * font.c: Include window.h.
14008 (font_lispy_object): New function.
14009 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14010 end of valid glyph.
14011 (font_close_object): Fix getting (struct font *).
14012 (font_at): New function.
14013 (Ffont_get): If FONT is a font-object, get entity from it.
14014 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14015 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14016 range check.
14017 (Ffont_at): New function.
14018 (syms_of_font): Defsubr Sfont_at.
14019
14020 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14021 before the entry for Qcomposition.
14022 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14023 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14024 the font in gstring.
14025 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14026 LGLYPH_FORM (g) to detect the end of valid glyph.
14027 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14028 we are composing with gstring.
14029
14030 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14031 Check if adjustment is vector or not.
14032
14033 * Makefile.in (font.o): Make it depends on window.h.
14034
14035 2008-02-01 Kenichi Handa <handa@m17n.org>
14036
14037 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14038 adjustment is vector or not.
14039
14040 2008-02-01 Miles Bader <miles@gnu.org>
14041
14042 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14043
14044 2008-02-01 Kenichi Handa <handa@m17n.org>
14045
14046 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14047 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14048 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14049
14050 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14051 (DEVICE_DELTA): Fix typo.
14052 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14053 LGLYPH format.
14054
14055 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14056 the change of LGLYPH format.
14057
14058 2008-02-01 Kenichi Handa <handa@m17n.org>
14059
14060 * ftfont.c (ftfont_list): Fix typo.
14061 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14062
14063 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14064
14065 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14066
14067 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14068 xftface_info is non-NULL.
14069
14070 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14071
14072 * ftfont.c (ftfont_list): Move misplaced #endif.
14073
14074 2008-02-01 Kenichi Handa <handa@m17n.org>
14075
14076 * ftfont.c (ftfont_list): Pay attention to the case that
14077 FC_CAPABILITY is not defined.
14078
14079 2008-02-01 Kenichi Handa <handa@m17n.org>
14080
14081 * xftfont.c (xftfont_open): Set charset related members to -1.
14082
14083 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14084 QCname.
14085 (ftfont_open): Set charset related members to -1.
14086
14087 * fontset.c (Votf_script_alist): New variable.
14088 (syms_of_fontset): Initialize it.
14089 (fontset_font): Delete unused variable.
14090
14091 * fontset.h (Votf_script_alist): Extern it.
14092
14093 * font.c (font_find_for_lface): Optimize code.
14094
14095 * font.h (font_close_object, font_merge_old_spec): Extern them.
14096
14097 2008-02-01 Kenichi Handa <handa@m17n.org>
14098
14099 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14100 (syms_of_font): Initialize them.
14101 (font_pixel_size): Allow float value in dpi.
14102 (font_prop_validate_type): Delete.
14103 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14104 Change caller.
14105 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14106 (font_prop_validate_extra): Delete.
14107 (font_prop_validate_spacing): New function.
14108 (font_property_table): Add elements for all known properties.
14109 (get_font_prop_index): Rename from check_font_prop_name. New
14110 argument FROM. Change caller.
14111 (font_prop_validate): Validate all known properties.
14112 (font_put_extra): Delete argument force. Change caller.
14113 (font_expand_wildcards): Make it static. Fix the way of shrinking
14114 the possible range.
14115 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14116 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14117 Change caller.
14118 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14119 (font_parse_fcname): Delete argument merge. Fix parsing of point
14120 size. Don't validate properties values here. Change caller.
14121 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14122 (font_open_by_name): Delete unused variable.
14123 (Ffont_spec): Likewise. Validate property values.
14124 (Ffont_match_p): New function.
14125
14126 * font.h (QCscalable): Extern it.
14127 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14128
14129 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14130
14131 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14132 (xfont_list_pattern): New function.
14133 (xfont_list): Use xfont_list_pattern.
14134
14135 2008-02-01 Kenichi Handa <handa@m17n.org>
14136
14137 * font.h (Flist_fonts): EXFUN it.
14138
14139 2008-02-01 Jason Rumney <jasonr@gnu.org>
14140
14141 * w32term.c (w32_initialize): Add back smoothing_type and
14142 smoothing_enabled definitions.
14143
14144 2008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14147 s->face->font on determining underline position.
14148
14149 2008-02-01 Kenichi Handa <handa@m17n.org>
14150
14151 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14152 (font_has_char): Accept font-object too.
14153 (font_find_for_lface): Try at first with a size specified in face.
14154
14155 2008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14158 font_open_by_name.
14159
14160 2008-02-01 Kenichi Handa <handa@m17n.org>
14161
14162 * font.h (QCspacing, QCdpi): Extern them.
14163 (enum font_spacing): New enum.
14164 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14165
14166 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14167 (QCspacing, QCdpi): New variables.
14168 (syms_of_font): Initialize them.
14169 (font_pixel_size): New function.
14170 (font_put_extra): New function.
14171 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14172 in FONT_EXTRA.
14173 (font_parse_fcname): Handle enumerated values (e.g. bold).
14174 Fix handling font size. Add QCname property that contains only
14175 unknown properties.
14176 (font_score): Change argument. Change caller. Pay attention to
14177 FONT_PIXEL_SIZE_QUANTUM.
14178 (font_sort_entites, font_list_entities, font_find_for_lface)
14179 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14180 (Ffont_spec): Add QCname property that contains only unknown properties.
14181
14182 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14183 include weight in listing pattern, instead check weight of each
14184 listed font. Don't include scalable in pattern. Pay attention to
14185 FONT_PIXEL_SIZE_QUANTUM.
14186
14187 2008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * font.c (font_parse_fcname): Fix parsing of point-size.
14190 (font_unparse_fcname): Produce symbolic names for style properties.
14191 (font_list_entities): Handle float size correctly.
14192 (font_open_by_name): Prefer `normal' property values if the name
14193 doesn't specify them.
14194
14195 * fontset.c (Finternal_char_font): Use font_get_name, not
14196 Ffont_xlfd_name.
14197
14198 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14199 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14200 pattern. Don't force scalable.
14201
14202 * xftfont.c (xftfont_open): For generating a name, start from
14203 96-byte buffer.
14204
14205 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14206
14207 * frame.h (x_new_fontset2): Fix prototype.
14208
14209 2008-02-01 Kenichi Handa <handa@m17n.org>
14210
14211 * font.h (struct font_driver): Delete member parse_name.
14212 (font_match_p, font_get_spec, font_parse_fcname)
14213 (font_unparse_fcname): Extern them.
14214 (font_get_name): Adjust prototype.
14215
14216 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14217 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14218 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14219 unnecessary checks for weight, slant, and swidth.
14220 (font_parse_fcname): New function.
14221 (font_unparse_fcname): New function.
14222 (font_parse_name): New function.
14223 (font_match_p): New function.
14224 (font_get_name): Change return value to Lisp string.
14225 (font_get_spec): New function.
14226 (Qunspecified, Qignore_defface): Don't extern them.
14227 (font_find_for_lface): Assume that LFACE is fully specified.
14228 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14229 object, use it for FACE.
14230 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14231 driver->parse_name.
14232 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14233
14234 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14235 prototype.
14236
14237 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14238 argument F. Don't call Fnew_fontset. Instead, directly call
14239 make_fontset.
14240
14241 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14242
14243 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14244 of x_new_fontset2.
14245
14246 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14247 (Qsans__serif): New variables.
14248 (ftfont_generic_family_list): New variable.
14249 (syms_of_ftfont): Initialize the above variables.
14250 (ftfont_pattern_entity): Delete argument NAME.
14251 (ftfont_list_generic_family): New function.
14252 (ftfont_parse_name): Delete this function.
14253 (ftfont_list): Try generic family only when FcFontList found no font.
14254 (ftfont_list_family): Fix args to FcObjectSetBuild.
14255
14256 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14257 object in attrs[LFACE_FONT_INDEX].
14258 (set_lface_from_font_name): Cancel all changes for font-backend.
14259 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14260 function.
14261 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14262 font object in QCfont attribute.
14263 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14264 (realize_default_face) [USE_FONT_BACKEND]: Call
14265 set_lface_from_font_and_fontset.
14266
14267 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14268 "fixed", and signal error here if no suitable font was found.
14269
14270 * xfont.c (xfont_parse_name): Delete this function.
14271
14272 * xftfont.c (xftfont_open): Change coding style of error
14273 handling. Generate fontconfig's fontname pattern.
14274
14275 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14276 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14277
14278 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14279 Both args FONTSET and FONT_OBJECT must be existing ones.
14280
14281 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14282
14283 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14284
14285 2008-02-01 Kenichi Handa <handa@m17n.org>
14286
14287 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14288
14289 * font.h (struct font): Fix typo.
14290
14291 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14292 XLFD_XXX_INDEX.
14293 (enum xlfd_field_mask): New enum.
14294 (intern_font_field): Changed argument. Change caller. If digits
14295 are followed by non-digits, return a symbol.
14296 (font_expand_wildcards): New function.
14297 (font_parse_xlfd): Fix wildcard handling.
14298 (Ffont_spec): If :name is specified, reflect the info in the other
14299 properties.
14300
14301 * ftfont.c (ftfont_pattern_entity): Fix typo.
14302 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14303 locale.
14304
14305 2008-02-01 Kenichi Handa <handa@m17n.org>
14306
14307 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14308
14309 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14310 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14311 registry doesn't specify encoding part.
14312 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14313 (font_open_by_name): At first try parsing the name.
14314 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14315 as Lisp symbols.
14316
14317 * fontset.c (reorder_font_vector): Pay attention to the case that
14318 the 3rd element of font_def is nil.
14319 (fontset_font): For the default fontset, append one more fontset
14320 elements for a script-based font specification. Don't add script
14321 attribute on finding a font.
14322 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14323 font name.
14324 (fontset_ascii_font): If a font can't be opened, return nil.
14325
14326 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14327 (ftfont_pattern_entity): New function.
14328 (ftfont_get_cache): Assume that freetype_font_cache is already
14329 initialized.
14330 (ftfont_list): Handle the case that a file is specified in font
14331 name. Use ftfont_pattern_entity to generate entities.
14332 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14333 (syms_of_ftfont): Initialize freetype_font_cache.
14334
14335 * xftfont.c (xftfont_open): Make the font name fontconfig's
14336 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14337 (xftfont_close): Free font->font.name if not NULL.
14338
14339 * xfont.c (xfont_list): If script is specified for a font, return
14340 null_vector.
14341 (xfont_list_family): Declare argument type.
14342
14343 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14344 name, set LFACE_FONT (lface) to nil.
14345
14346 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14347 return Qnil.
14348
14349 2008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14352 (standard_args): Add "-enable-font-backend".
14353
14354 2008-02-01 Kenichi Handa <handa@m17n.org>
14355
14356 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14357 (struct xftdraw_list, xftdraw_list): Delete them.
14358 (register_xftdraw, check_xftdraw): Delete them.
14359 (xftfont_prepare_face): Don't call register_xftdraw.
14360 (xftfont_done_face): Don't call check_xftdraw.
14361 (xftfont_draw): Get background color only when with_background is
14362 nonzero.
14363
14364 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14365
14366 2008-02-01 Kenichi Handa <handa@m17n.org>
14367
14368 These changes are for the new font handling codes.
14369
14370 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14371 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14372 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14373 (FONTSRC, FONTOBJ): New variables.
14374 (obj): Add $(FONTOBJ).
14375 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14376 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14377 @LIBOTF_LIBS@.
14378 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14379 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14380
14381 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14382
14383 * character.h (Vscript_representative_chars): Extern it.
14384
14385 * character.c (Vscript_representative_chars): New variable.
14386 (syms_of_character): Declare it as a Lisp variable.
14387
14388 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14389 enable_font_backend is nonzero, accept the composition method
14390 COMPOSITION_WITH_GLYPH_STRING.
14391
14392 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14393 enumeration COMPOSITION_WITH_GLYPH_STRING.
14394
14395 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14396 members clip_x, clip_y, clip_width, and clip_height.
14397 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14398
14399 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14400 --enable-font-backend. Call syms_of_font.
14401
14402 * fns.c (assoc_no_quit): New function.
14403
14404 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14405 (face_for_font, new_fontset_from_font)
14406 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14407
14408 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14409 (fontset_font, fontset_ascii, face_for_char)
14410 (make_fontset_for_ascii_face, Ffont_info)
14411 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14412 is nonzero, use font-backend mechanism.
14413 (find_font_encoding): Make it non-static.
14414 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14415 New functions.
14416
14417 * frame.h (struct frame): New members resx and resy.
14418 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14419 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14420
14421 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14422 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14423
14424 * lisp.h (assoc_no_quit): Extern it.
14425
14426 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14427 Through out the file, use FONT_INFO_FROM_FACE instead of
14428 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14429 rif->per_char_metric.
14430 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14431 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14432 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14433 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14434 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14435 nonzero, use font-backend mechanism.
14436 (get_per_char_metric): New function.
14437
14438 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14439 (set_lface_from_font_name)
14440 (set_font_frame_param, free_realized_face)
14441 (prepare_face_for_display, clear_face_gcs)
14442 (Finternal_set_font_selection_order, realize_x_face)
14443 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14444 font-backend mechanism.
14445 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14446 (load_face_font) [USE_FONT_BACKEND]: Abort.
14447 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14448 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14449
14450 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14451 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14452 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14453 nonzero, register all available font drivers. Call
14454 x_default_font_parameter for deciding a font.
14455 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14456
14457 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14458 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14459 (x_set_glyph_string_clipping_exactly)
14460 (x_compute_glyph_string_overhangs)
14461 (x_draw_glyph_string_foreground)
14462 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14463 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14464 enable_font_backend is nonzero, use font-backend mechanism.
14465 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14466
14467 2008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14470 system_eol_type.
14471 (syms_of_coding): Initialize system_eol_type.
14472
14473 * process.c (Fset_process_coding_system): Inherit system's eol
14474 format if necessary.
14475
14476 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14477
14478 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14479
14480 2008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * coding.c (decode_eol): Pay attention to buffer relocation in
14483 del_range_2.
14484 (decode_coding): Call decode_eol before restoring undo_list.
14485
14486 2008-02-01 Kenichi Handa <handa@m17n.org>
14487
14488 * charset.c (Fdefine_charset_internal): Fix setting of
14489 emacs_mule_bytes.
14490
14491 2008-02-01 Kenichi Handa <handa@m17n.org>
14492
14493 * keyboard.c (read_char): Check if C is a character or not before
14494 looking up Vkeyboard_translate_table.
14495
14496 2008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14499 condition to terminate the loop.
14500
14501 2008-02-01 Kenichi Handa <handa@m17n.org>
14502
14503 * coding.c (produce_composition): Compare charbuf[i] instead of
14504 args[i] against 0.
14505 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14506
14507 2008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14510 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14511 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14512 detect_coding.
14513 (emacs_mule_char): Handle old style (Emacs 20) component character
14514 of a composition.
14515 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14516 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14517 composition rule.
14518 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14519
14520 2008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * coding.c (encode_coding_ccl): Allocate destination dynamically
14523 when necessary.
14524
14525 2008-02-01 Kenichi Handa <handa@m17n.org>
14526
14527 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14528 the loop. When quitted, show a proper error message.
14529
14530 2008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14533 src->clip_head and src->clip_tail temporarily instead of src->hl.
14534
14535 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14536 character sequence.
14537 (Fccl_execute_on_string): Use ASET, not XSET.
14538
14539 2008-02-01 Kenichi Handa <handa@m17n.org>
14540
14541 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14542
14543 2008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * coding.c (decode_coding): Fix the condition of terminating the
14546 decoding loop.
14547
14548 2008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * data.c (Faset): On setting a character bigger than 255 in a
14551 unibyte string, signal an error instead of make the string multibyte.
14552
14553 2008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14556 made by a mapping table.
14557
14558 2008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14561 not.
14562 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14563 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14564
14565 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14566 s->face is NULL or not.
14567
14568 2008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14571 (x_draw_glyph_string): Fix drawing of right_overhang and
14572 left_overhang around/on cursor.
14573
14574 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14575
14576 2008-02-01 Kenichi Handa <handa@m17n.org>
14577
14578 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14579
14580 2008-02-01 Kenichi Handa <handa@m17n.org>
14581
14582 * coding.c (Fdefine_coding_system_internal)
14583 (Fdefine_coding_system_alias): Avoid a duplicated element in
14584 Vcoding_system_alist.
14585
14586 2008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14589
14590 * coding.c (Qcoding_system_define_form): New variable.
14591 (syms_of_coding): Intern and staticpro it.
14592 (Fcoding_system_p): Check Qcoding_system_define_form.
14593 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14594
14595 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14596 Fcoding_system_p.
14597 (CHECK_CODING_SYSTEM): If ID is not available, call
14598 Fcheck_coding_system.
14599 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14600 Try also Fcheck_coding_system.
14601
14602 2008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * coding.c (code_conversion_restore): GCPRO arg.
14605
14606 2008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * character.c (lisp_string_width): Check multibyteness of STRING.
14609
14610 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14611
14612 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14613 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14614 (decode_mac_font_name): Use decode_coding_c_string instead of
14615 decode_coding.
14616 (x_load_font): Initialize fontp->fontset to -1. Set
14617 fontp->encoding_type.
14618
14619 2008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * search.c (search_buffer): Give up BM search on case-fold-search
14622 if one of a target character has a case-equivalence of different
14623 byte length even if that target charcter is an ASCII.
14624 (simple_search): Fix calculation of byte length of matched text.
14625 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14626
14627 2008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * coding.c (decode_coding): Fix handling of invalid bytes.
14630
14631 2008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14634 Unicode characters.
14635
14636 2008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * coding.c (encode_coding_object): If a pre-write-conversion
14639 function makes a new buffer, kill it.
14640
14641 2008-02-01 Kenichi Handa <handa@m17n.org>
14642
14643 * coding.c (QCascii_compatible_p): New variable.
14644 (syms_of_coding): Initialize it.
14645 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14646 calling string_char.
14647 (record_conversion_result): Add `default:' case.
14648 (coding_charset_list): Delete unused variable `coding_type'.
14649 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14650 property in the plist of the coding system.
14651 (Fcoding_system_put): Check QCascii_compatible_p.
14652
14653 2008-02-01 Miles Bader <miles@gnu.org>
14654
14655 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14656 removed calculation of frame `f', as it's now used.
14657
14658 2008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14661 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14662 (UNIDATA): New variable.
14663 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14664 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14665 $(RUN_TEMACS) unconditionally.
14666
14667 2008-02-01 Kenichi Handa <handa@m17n.org>
14668
14669 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14670 (admindir): New variable.
14671 ($(lispsource)international/charprop.el): New target.
14672
14673 2008-02-01 Miles Bader <miles@gnu.org>
14674
14675 * character.c (chars-in-region): Remove obsolete function.
14676 (syms_of_character): Remove its initialization.
14677
14678 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14679
14680 * w32select.c (validate_coding_system)
14681 (setup_windows_coding_system): New functions.
14682 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14683 setup_windows_coding_system.
14684 (setup_config, Fw32_get_clipboard_data): Use
14685 validate_coding_system.
14686 (Fx_selection_exists): Move call to setup_config to a place
14687 where signals are allowed.
14688
14689 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14690 (Fcheck_coding_system): Add declarations.
14691
14692 2008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14695
14696 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14697
14698 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14699 string as the second argument for x_new_fontset.
14700
14701 2008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14704 (encode_coding_object): Use safe_call instead of call2.
14705
14706 2008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14709
14710 * Makefile.in (lisp): Include charprop.el.
14711
14712 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14713
14714 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14715 Not sure if it's unnecessary.
14716
14717 2008-02-01 Steven Tamm <steventamm@mac.com>
14718
14719 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14720 some possibly unnecessary fontset checking code that crashed
14721 when creating a new frame.
14722
14723 2008-02-01 Kenichi Handa <handa@m17n.org>
14724
14725 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14726 lookup_face.
14727
14728 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14729
14730 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14731
14732 2008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14735 (coding_charset_list): New function.
14736
14737 * coding.h (coding_charset_list): Extern it.
14738
14739 2008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14742 concatenation of family and registry.
14743
14744 2008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * character.h (BYTE8_STRING): Fix typo.
14747
14748 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14749 string to multibyte (sync to HEAD).
14750
14751 * casefiddle.c (casify_region): Handle changes in byte-length
14752 using replace_range_2 (sync to HEAD).
14753
14754 2008-02-01 Andreas Schwab <schwab@suse.de>
14755
14756 * chartab.c (map_char_table): GCPRO table and arg.
14757
14758 2008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14761 already at limit.
14762
14763 2008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14766 instead of fast_c_string_match_ignore_case.
14767 (find_font_encoding): Change argument to Lisp_Object. Use
14768 fast_string_match_ignore_case instead of
14769 fast_c_string_match_ignore_case. Change caller.
14770
14771 2008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * xdisp.c (get_next_display_element): In unibyte case, decide to
14774 display in octal form by checking a character by
14775 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14776
14777 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14778
14779 * character.c (unibyte_has_multibyte_table): New variable.
14780
14781 * character.h (unibyte_has_multibyte_table): Extern it.
14782 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14783
14784 2008-02-01 Kenichi Handa <handa@m17n.org>
14785
14786 * coding.c (encode_coding_iso_2022): Fix handling of charset
14787 annotation.
14788
14789 2008-02-01 Kenichi Handa <handa@m17n.org>
14790
14791 * coding.c (setup_coding_system): If coding_system is nil, use
14792 Qundecided.
14793 (Fterminal_coding_system): Return nil if terminal coding system is
14794 `undecided'.
14795 (syms_of_coding): Define coding-system `undecided' here. Setup
14796 terminal_coding as `undecided'.
14797
14798 2008-02-01 Kenichi Handa <handa@m17n.org>
14799
14800 * xdisp.c (message_dolog, set_message_1): Call
14801 unibyte_char_to_multibyte with arg type int.
14802
14803 * lread.c (read1): Fix reading of a char-table.
14804
14805 * print.c (print_object): Include sub char-table in circularities
14806 detection.
14807
14808 2008-02-01 Kenichi Handa <handa@m17n.org>
14809
14810 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14811 Append the found sequences in car of ARGS instead of prepending.
14812
14813 2008-02-01 Kenichi Handa <handa@m17n.org>
14814
14815 * fileio.c (report_file_error): Make a unibyte string from
14816 strerror (errorno).
14817 (Fsubstitute_in_file_name): Fix the arg to
14818 unibyte_char_to_multibyte. It is evaluated twice.
14819
14820 2008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14823
14824 2008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14827 BOM is not found.
14828 (detect_coding, detect_coding_system): Optimization for ISO-2022
14829 when no 8-bit data is found.
14830
14831 2008-02-01 Jason Rumney <jasonr@gnu.org>
14832
14833 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14834
14835 2008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14838 CHARS.
14839
14840 2008-02-01 Steven Tamm <steventamm@mac.com>
14841
14842 * macterm.c (mac_encode_char): Add charset argument and update
14843 to use encoding_type.
14844 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14845 switch to pure fontset.
14846 (decode_mac_font_name): Temporarily remove decoding.
14847 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14848 (x_load_font): Temporarily remove encoding.
14849
14850 2008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * xfaces.c (Fface_font): If frame is not on a window system,
14853 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14854 refer to face->font.
14855 (split_font_name_into_vector, build_font_name_from_vector)
14856 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14857 when HAVE_WINDOW_SYSTEM is defined.
14858
14859 2008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14862 (x_produce_glyphs): Fix setting of members of cmp in case
14863 cmp->glyph_len is zero.
14864
14865 * fontset.c (Fset_fontset_font): Fix docstring.
14866 (Ffontset_info): Make it backward compatible. New arg ALL.
14867
14868 2008-02-01 Kim F. Storm <storm@cua.dk>
14869
14870 * process.c (read_process_output): Grow decoding_buf when needed;
14871 this could cause a crash in allocate_string and compact_small_strings.
14872
14873 2008-02-01 Kenichi Handa <handa@m17n.org>
14874
14875 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14876
14877 2008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * coding.c (setup_coding_system): Set coding->common_flags
14880 correctly for raw-text.
14881 (consume_chars): On encoding unibyte text by raw-text, don't check
14882 multibyte form.
14883 (encode_coding): On encoding by raw-text, never use translation tables.
14884
14885 * fileio.c (e_write): Short cut for the case of no encoding.
14886
14887 2008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * coding.c (detect_coding, detect_coding_system): Delete unused
14890 variables.
14891
14892 2008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14895 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14896
14897 2008-02-01 Kenichi Handa <handa@m17n.org>
14898
14899 * coding.c (Ffind_coding_systems_region_internal): Include
14900 raw-text and no-conversion in the result.
14901
14902 2008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14905 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14906 FONT_DEF.
14907 (font_def_arg, add_arg, from_arg, to_arg): New args.
14908 (set_fontset_font): Change argument.
14909 (Fset_fontset_font): Fix for the case that TARGET is a script
14910 name and charset name.
14911 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14912
14913 2008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * fontset.c (fontset_font): Rename from fontset_face. Change return
14916 value.
14917 (face_suitable_for_char_p, face_for_char): Adjust for the change
14918 of fontset_font.
14919 (make_fontset_for_ascii_face): Fix setting of the fontset element
14920 for ASCII.
14921 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14922 to get a font name.
14923 (Ffontset_info): Adjust for the change of fontset_font.
14924
14925 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14926
14927 * character.h (LEADING_CODE_LATIN_1_MIN)
14928 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14929
14930 2008-02-01 Kenichi Handa <handa@m17n.org>
14931
14932 * editfns.c (check_translation): New function.
14933 (Ftranslate_region_internal): Handle M:N mapping.
14934
14935 2008-02-01 Kenichi Handa <handa@m17n.org>
14936
14937 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14938
14939 2008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14942 goto invalid_code.
14943 (decode_coding_iso_2022): Fix handling of invalid designation.
14944
14945 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14946 after calling code_conversion_save.
14947
14948 2008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14951
14952 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14953
14954 * fontset.c: Include "intervals.h".
14955 (fontset_face): Fix comparing of Lisp_Objects.
14956 (free_face_fontset, new_fontset_from_font_name): Fix
14957 Lisp_Object/int mixup.
14958
14959 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14960
14961 * coding.c: Add many prototypes for static functions.
14962 (get_translation_table): Allow max_lookup to be NULL.
14963 (decode_coding, Ffind_coding_systems_region_internal)
14964 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14965 get_translation_table with max_lookup NULL.
14966
14967 2008-02-01 Kenichi Handa <handa@m17n.org>
14968
14969 * coding.c (get_translation_table): Declare it as Lisp_Object.
14970 (LOOKUP_TRANSLATION_TABLE): New macro.
14971 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14972 instead of CHAR_TABLE_REF.
14973
14974 2008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14977 annotation data format.
14978 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14979 Change arguments FROM and TO to single argument NCHARS. Change caller.
14980 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14981 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14982 (decode_coding_ccl, decode_coding_charset): Pay attention to
14983 coding->charbuf_used.
14984 (get_translation): New function.
14985 (produce_chars): New arguments translation_table and last_block.
14986 Translate characters here. Return number of carryover chars.
14987 Change caller.
14988 (produce_composition): New argument pos. Change caller.
14989 Adjust for the change of annotation data format.
14990 (produce_charset, produce_annotation): Likewise.
14991 (decode_coding, encode_coding): Don't call translate_chars.
14992 (consume_chars): New arg translation_table. Change caller.
14993 (translate_chars): Delete.
14994 (syms_of_coding): Make translation-table's number of extra slots 2.
14995
14996 2008-02-01 Kenichi Handa <handa@m17n.org>
14997
14998 * search.c (simple_search): Fix setting this_pos_byte in backward
14999 search.
15000
15001 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15002 byte sequence.
15003 (detect_coding_ccl): Fix setting of the variable valids.
15004
15005 2008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15008
15009 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15010
15011 * editfns.c (Ftranslate_region_internal): Rename from
15012 Ftranslate_region. Accept a char-table in TABLE.
15013 (syms_of_editfns): Defsubr Stranslate_region_internal.
15014
15015 * xfaces.c (set_lface_from_font_name): If a font is specified for
15016 a frame, generate a fontset from the font.
15017 (build_scalable_font_name): If the scalable font is requested for
15018 a specific size, don't change that size.
15019 (try_font_list): Try a scalable font also in the case that a
15020 pattern string is specified.
15021
15022 2008-02-01 Kenichi Handa <handa@m17n.org>
15023
15024 * xfaces.c (Fface_font): New optional arg CHARACTER.
15025
15026 2008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * charset.h (CHARSET_OFFSET): New macro.
15029
15030 2008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15033
15034 * fontset.c (fontset_face): Handle the case that repertory is a
15035 char-table.
15036 (find_font_encoding): Return nil for unknown encoding.
15037 (Fset_fontset_font): Ignore a font of unknown encoding.
15038
15039 2008-02-01 Kenichi Handa <handa@m17n.org>
15040
15041 * keymap.c (describe_vector): Handle default value of a char table.
15042
15043 * fontset.c (fontset_face): Handle fallback fonts correctly.
15044 (Ffontset_info): Return infomation about fallback fonts.
15045
15046 2008-02-01 Kenichi Handa <handa@m17n.org>
15047
15048 * fontset.c (FONTSET_DEFAULT): New macro.
15049 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15050 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15051 the case that it is nil.
15052 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15053 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15054
15055 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15056 subset or superset.
15057
15058 2008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * emacs.c (main): Call init_charset after syms_of_XXX.
15061
15062 * charset.c (Vcharset_map_directory): Delete.
15063 (Vcharset_map_path): New variable.
15064 (load_charset_map_from_file): Use Vcharset_map_path instead.
15065 (init_charset): Initialize Vcharset_map_path.
15066 (syms_of_charset): Delete declaration of "charset-map-directory",
15067 add declaration of "charset-map-path".
15068
15069 2008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15072 ASCII only string.
15073
15074 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15075
15076 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15077 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15078
15079 2008-02-01 Kenichi Handa <handa@m17n.org>
15080
15081 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15082
15083 * coding.c (QCmnemonic, QCdefalut_char)
15084 (QCdecode_translation_table, QCencode_translation_table)
15085 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15086 (get_translation_table): Return a list of translation tables if
15087 necessary.
15088 (decode_coding): Call get_translation_table with ENCODEP 0.
15089 (char_encodable_p): If translation_table is non-nil, always call
15090 translate_char.
15091 (Fdefine_coding_system_internal): Accept list of translation
15092 tables as :encode-translation-table and :decode-translation-table.
15093 (Fcoding_system_put): New function.
15094 (syms_of_coding): Declare new symbols. Defsubr
15095 Scoding_system_put.
15096 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15097 typically JISX0212.
15098
15099 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15100 when the charset is superset type.
15101
15102 * character.c (translate_char): Accept list of translation tables.
15103
15104 2008-02-01 Kenichi Handa <handa@m17n.org>
15105
15106 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15107 (CODING_ATTR_TRANS_TBL): New macro.
15108
15109 * coding.c (get_translation_table): New function.
15110 (translate_chars): Fix the bug of skipping annotation data.
15111 (decode_coding, encode_coding): Utilize get_translation_table.
15112 (char_encodable_p, Funencodable_char_position): Translate char if
15113 necessary.
15114 (Ffind_coding_systems_region_internal)
15115 (Fcheck_coding_systems_region): Setup translation table for encode
15116 in a coding system attribute vector in advance.
15117 (Fdefine_coding_system_internal): Allow a symbol as translation
15118 table. For shift-jis type coding system, allow 4th charset.
15119
15120 2008-02-01 Kenichi Handa <handa@m17n.org>
15121
15122 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15123
15124 * xdisp.c (get_next_display_element): Pass -1 as POS to
15125 FACE_FOR_CHAR if displaying a C-string.
15126
15127 2008-02-01 Kenichi Handa <handa@m17n.org>
15128
15129 * composite.c (get_composition_id): Handle xoff and yoff in a
15130 composition rule.
15131
15132 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15133 (struct composition): New member lbearing and rbearing.
15134
15135 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15136 (x_get_glyph_overhangs): Handle a composition glyph.
15137 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15138
15139 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15140 composition glyph.
15141
15142 2008-02-01 Kenichi Handa <handa@m17n.org>
15143
15144 * print.c: Include charset.h.
15145 (Vprint_charset_text_property): New variable.
15146 (Qdefault): Extern it.
15147 (PRINT_STRING_NON_CHARSET_FOUND)
15148 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15149 (print_check_string_result): New variable.
15150 (print_check_string_charset_prop): New function.
15151 (print_prune_charset_plist): New variable.
15152 (print_prune_string_charset): New function.
15153 (print_object): Call print_prune_string_charset if
15154 Vprint_charset_text_property is not t.
15155 (print_interval): Print nothing if interval->plist is nil.
15156 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15157 variable. Init and staticpro print_prune_charset_plist.
15158
15159 2008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * fontset.c (new_fontset_from_font_name): Use the specified font
15162 for all characters in the new fontset.
15163
15164 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15165 OBJECT args.
15166
15167 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15168 OBJECT args for composition too.
15169
15170 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15171 OBJECT args.
15172
15173 2008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15176
15177 * fontset.c (reorder_font_vector): Adjust for the change of
15178 FONT_DEF format.
15179 (fontset_face): New arg id. Change caller.
15180 (face_for_char): New args pos and object.
15181 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15182 (fs_query_fontset): Check NAME by Fassoc too.
15183 (Fset_fontset_font): Allow non-XLFD font name.
15184 (Ffontset_info): Adjust for the change of FONT_DEF format.
15185
15186 * fontset.h (face_for_char): Adjust prototype.
15187
15188 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15189 (append_space, extend_face_to_end_of_line)
15190 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15191 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15192
15193 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15194 POS and OBJECT args.
15195
15196 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15197 POS and OBJECT args.
15198
15199 2008-02-01 Jason Rumney <jasonr@gnu.org>
15200
15201 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15202 of GlobalAlloc'ed memory.
15203
15204 2008-02-01 Kenichi Handa <handa@m17n.org>
15205
15206 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15207
15208 * charset.h (charset_table_used): Delete extern.
15209
15210 * charset.c (charset_table_used): Make it static.
15211 (map_charset_chars): Fix args to c_function with.
15212
15213 * chartab.c (map_sub_char_table_for_charset): Fix args to
15214 c_function with.
15215
15216 * coding.h (enum coding_result_code): Delete
15217 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15218
15219 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15220 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15221 (Vlast_code_conversion_error): New variables.
15222 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15223 (ONE_MORE_BYTE): Record error if any instead of signaling an
15224 error. If non-ASCII multibyte char is found, return the negative
15225 value of the code. All callers changed to check it.
15226 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15227 (record_conversion_result): New function. Change all codes setting
15228 coding->result to call this function.
15229 (detect_coding_utf_8, decode_coding_utf_8)
15230 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15231 Don't use the local variable incomplete.
15232 (emacs_mule_char): Change the second arg to `const'.
15233 (decode_coding): Fix of flushing out unprocessed data.
15234 (make_conversion_work_buffer): Fix making of a work buffer.
15235 (decode_coding_object): Return coding->dst_object.
15236
15237 * fontset.c (set_fontset_font): Fix args.
15238
15239 * lisp.h (CHARACTERBITS): Define as 22.
15240
15241 * process.c (send_process): Be sure to set coding->src_multibyte.
15242
15243 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15244
15245 2008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * xdisp.c (handle_auto_composed_prop): Give limit to
15248 Fnext_single_char_property_change.
15249
15250 2008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * composite.c (syms_of_composite): Don't make the composition hash
15253 table weak.
15254
15255 * fontset.c (Fset_fontset_font): Fix docstring.
15256
15257 * lisp.h (detect_coding_system): Adjust prototype.
15258
15259 * fileio.c (kill_workbuf_unwind): Delete this function.
15260 (Finsert_file_contents): Adjust the call of detect_coding_system.
15261 Get conversion_buffer by code_conversion_save. Use the macro
15262 CODING_MAY_REQUIRE_DECODING. After decoding, update
15263 coding_system.
15264
15265 * coding.h (make_conversion_work_buffer): Delete extern.
15266 (code_conversion_save): Extern it.
15267
15268 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15269 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15270 (decode_coding_utf_8): Don't do eol converion.
15271 (detect_coding_utf_16): Check coding->src_chars, not
15272 coding->src_bytes. Add heuristics for those that have no signature.
15273 (decode_coding_emacs_mule, decode_coding_iso_2022)
15274 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15275 Don't do eol converion.
15276 (adjust_coding_eol_type): Return a new coding system.
15277 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15278 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15279 each change.
15280 (decode_coding): Pay attention to undo_list. Do eol conversion for
15281 all types of coding-systems (if necessary).
15282 (Vcode_conversion_work_buf_list): Delete it.
15283 (Vcode_conversion_reused_workbuf): Rename from
15284 Vcode_conversion_reused_work_buf.
15285 (Vcode_conversion_workbuf_name): New variable.
15286 (reused_workbuf_in_use): New variable.
15287 (make_conversion_work_buffer): Delete the arg DEPTH.
15288 (code_conversion_restore): Change argument to cons.
15289 (code_conversion_save): Delete the argument BUFFER. Change callers.
15290 (detect_coding_system): New argument src_chars. Change callers.
15291 Fix for utf-16 detection.
15292 (init_coding_once): Don't use ISO_carriage_return.
15293 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15294 reused_workbuf_in_use.
15295
15296 2008-02-01 Kenichi Handa <handa@m17n.org>
15297
15298 * keymap.c (store_in_keymap): Pay attention to the case that idx
15299 is a cons specifying a character range.
15300
15301 2008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15304 HANDLED_RECOMPUTE_PROPS.
15305
15306 * coding.c (Fdefine_coding_system_internal): Fix checking of
15307 ascii compatibility.
15308
15309 2008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * charset.c (find_charsets_in_text): Delete unused locale variable.
15312 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15313
15314 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15315 Resync charset_list to Vemacs_mule_charset_list.
15316
15317 * keymap.c (store_in_keymap): Pay attention to the case that idx
15318 is a cons specifying a character range.
15319
15320 2008-02-01 Kenichi Handa <handa@m17n.org>
15321
15322 * composite.c (update_compositions): Bind inhibit-read-only, etc
15323 to t before calling remove-list-of-text-properties.
15324
15325 * print.c (print_object): Always print ASCII chars as is.
15326
15327 2008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15330
15331 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15332 is a char table.
15333
15334 2008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15337
15338 2008-02-01 Kenichi Handa <handa@m17n.org>
15339
15340 * xfaces.c (set_lface_from_font_name): Fix for the case that
15341 FONTNAME is not fontset name.
15342
15343 2008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * fns.c (base64_encode_1): Fix previous change.
15346
15347 2008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * fontset.c (set_fontset_font): New function.
15350 (Fset_fontset_font): If a font is specified for a charset, use
15351 map_charset_chars to store the font spec in a fontset.
15352
15353 2008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * fontset.c (fontset_face): Create a fallback fontset on demand.
15356 (make_fontset): Don't create a fallback fontset here.
15357 (free_face_fontset): Free a fallback fontset (if any) too.
15358 (n_auto_fontsets): Delete this variable.
15359 (auto_fontset_alist): New variable.
15360 (new_fontset_from_font_name): Check auto_fontset_alist.
15361 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15362 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15363 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15364 Defsubr Sfontset_list_all.
15365
15366 2008-02-01 Kenichi Handa <handa@m17n.org>
15367
15368 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15369
15370 2008-02-01 Kenichi Handa <handa@m17n.org>
15371
15372 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15373
15374 2008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * editfns.c (Fgoto_char): Fix docstring.
15377
15378 2008-02-01 Kenichi Handa <handa@m17n.org>
15379
15380 * insdel.c (insert_from_gap): Adjust intervals correctly.
15381
15382 2008-02-01 Jason Rumney <jasonr@gnu.org>
15383
15384 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15385 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15386 (w32_initialize): Try to load it.
15387 (x_get_font_repertory): Use it if available.
15388 (w32_encode_char): Add shortcut for unicode output.
15389
15390 * w32fns.c (w32_load_system_font): Default charset to -1.
15391 (x_to_w32_charset): Match all fonts for unicode.
15392 (w32_to_x_charset): New parameter matching. Don't return partial
15393 or wildcard charsets.
15394 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15395 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15396 (w32_to_x_font): Match charset to real charset.
15397 (enum_font_cb2): Always list unicode versions.
15398
15399 * makefile.w32-in (temacs): Increase EMHEAP.
15400
15401 2008-02-01 Jason Rumney <jasonr@gnu.org>
15402
15403 * w32term.c (w32_encode_char): New charset parameter.
15404 font_info.encoding becomes encoding_type.
15405 (x_get_font_repertory): New function. Warning: stub only!
15406 (x_new_font): Return quickly if font already set.
15407 (x_new_fontset): fontsetname parameter is Lisp_Object.
15408 Use new fs_query_fontset. Try new_fontset_from_font_name.
15409 Use fontset_name for return value.
15410
15411 * w32term.h: Declare x_get_font_repertory.
15412
15413 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15414 place of find_charset_in_text. Use encode_coding_object in place
15415 of encode_coding.
15416 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15417 decode_coding.
15418
15419 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15420 of x_new_fontset.
15421 (w32_load_system_font): Initialize charset as unicode.
15422 font_info.encoding becomes encoding_type.
15423 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15424 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15425 (syms_of_w32fns): Set get_font_repertory_func.
15426
15427 * w32console.c: Include character.h. Use terminal_encode_buffer
15428 from term.c.
15429 (write_glyphs): Use new version of encode_terminal_code. Use
15430 encode_coding_object in place of encode_coding.
15431
15432 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15433 encoding becomes encoding_type.
15434
15435 * term.c (terminal_encode_buffer): Make externally visible.
15436
15437 * makefile.w32-in: Add character.h dependancies.
15438 (character.o, chartab.o): New targets.
15439
15440 2008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15443 CODING_ID_EOL_TYPE.
15444
15445 2008-02-01 Andreas Schwab <schwab@suse.de>
15446
15447 * coding.c (produce_chars): Revert last change.
15448
15449 2008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * charset.h (charset_unicode): Extern it.
15452
15453 * charset.c (string_xstring_p): Check by (C >= 0x100).
15454 (find_charsets_in_text): Change format of the arc CHARSETS. New
15455 arg MULTIBYTE.
15456 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15457 change of find_charsets_in_text.
15458 (Fsplit_char): Fix doc. Never return unknown.
15459
15460 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15461
15462 * coding.c (Fdefine_coding_system_alias): Update
15463 Vcoding_system_list.
15464
15465 * fontset.c (load_font_get_repertory): Pay attention to the case
15466 that ENCODING of a font is specified by a char-table.
15467
15468 * xterm.c (x_get_font_repertory): Handle the case that the
15469 encoding of font is other than Unicode.
15470
15471 2008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15474 if a character is encodable by the terminal coding system. If
15475 not, produces proper number of `?'s. Update
15476 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15477 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15478
15479 2008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15482 variables.
15483 (encode_terminal_code): Change argument. Encode multiple
15484 characters at once. Store the result of encoding in
15485 terminal_encode_buffer.
15486 (write_glyphs, insert_glyphs): Adjust for the change of
15487 encode_terminal_code.
15488 (term_init): Initialize terminal_encode_buffer and
15489 terminal_encode_buf_size.
15490
15491 * coding.c (consume_chars): If coding->src_object is nil, don't
15492 check annotation.
15493
15494 2008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * character.c (char_string): Use ASCII_CHAR_P instead of
15497 SINGLE_BYTE_CHAR_P.
15498
15499 2008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * xdisp.c (handle_auto_composed_prop): Check if the last
15502 characters of auto-composed region is newly composed with the
15503 following characters.
15504 (handle_composition_prop): Fix checking of point being inside
15505 composition.
15506
15507 2008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * fns.c (concat): Don't change multibyteness of the result by
15510 concatenating an 8-bit character.
15511
15512 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15513 multibyteness of the result when newelt is an 8-bit character.
15514
15515 2008-02-01 Dave Love <fx@gnu.org>
15516
15517 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15518 EMACS_INT.
15519
15520 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15521
15522 * xfaces.c (face_numeric_value): Declare dim size_t.
15523 (Finternal_lisp_face_equal_p): Remove unused f.
15524
15525 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15526 (MATRIX_ROW): Remove unused vars.
15527 (draw_glyphs, x_insert_glyphs, fast_find_position)
15528 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15529 byte/char counts.
15530
15531 * regex.c (regex_compile): Remove unused var.
15532
15533 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15534
15535 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15536 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15537
15538 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15539
15540 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15541
15542 * fileio.c (Fwrite_region): Remove unused var.
15543
15544 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15545 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15546
15547 * composite.c (Fremove_list_of_text_properties): Declare.
15548
15549 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15550 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15551 (coding_inherit_eol_type): Remove unused attrs.
15552 (detect_coding): Cast arg of detect_eol.
15553
15554 * charset.c (syms_of_charset): Remove unused var p.
15555 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15556 byte/char counts.
15557
15558 * casetab.c (set_case_table): Remove unused var.
15559
15560 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15561 unused vars.
15562
15563 2008-02-01 Dave Love <fx@gnu.org>
15564
15565 * xterm.c (x_bitmap_mask): Declare.
15566
15567 2008-02-01 Dave Love <fx@gnu.org>
15568
15569 * xterm.c (x_term_init): Fix type error.
15570
15571 * lisp.h: Add Funibyte_char_to_multibyte.
15572
15573 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15574 (Fset_coding_system_priority): Doc fix.
15575
15576 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15577
15578 * indent.c (check_composition): Make start and end EMACS_INT.
15579
15580 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15581
15582 * xdisp.c (handle_composition_prop, check_point_in_composition):
15583 Make buffer positions EMACS_INT.
15584
15585 * composite.c (find_composition, run_composition_function)
15586 (update_compositions, Ffind_composition_internal): Make buffer
15587 positions EMACS_INT.
15588
15589 * composite.h (find_composition, update_compositions): Make
15590 position args EMACS_INT.
15591
15592 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15593
15594 * intervals.c (get_property_and_range):
15595 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15596
15597 * unexalpha.c: Don't include varargs.h.
15598
15599 2008-02-01 Dave Love <fx@gnu.org>
15600
15601 * coding.h (ENCODE_UTF_8): New.
15602
15603 * Makefile.in (gtkutil.o): Depend on coding.h.
15604
15605 * coding.c (Fset_coding_system_priority): Doc fix.
15606
15607 2008-02-01 Kenichi Handa <handa@m17n.org>
15608
15609 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15610 the case of auto saving.
15611
15612 2008-02-01 Andreas Schwab <schwab@suse.de>
15613
15614 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15615 `range' from GC.
15616
15617 2008-02-01 Kenichi Handa <handa@m17n.org>
15618
15619 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15620
15621 2008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * fileio.c (choose_write_coding_system): Return a decided coding system.
15624 (Fwrite_region): Set Vlast_coding_system_used to the return value
15625 of choose_write_coding_system.
15626
15627 2008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * charset.c (Fset_charset_priority): Pay attention to duplicated
15630 arguments.
15631
15632 * coding.c (QCcategory): New variable.
15633 (syms_of_coding): Defsym it. Set all elements of
15634 Vcoding_category_table and their symbol values.
15635 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15636 coding-category-XXX, and coding-category-list.
15637 (Fdefine_coding_system_internal): Add category in the plist.
15638
15639 2008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * callproc.c (Fcall_process): Handle carryover correctly.
15642
15643 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15644 (raw_text_coding_system): Check NILP (coding_system).
15645 (coding_inherit_eol_type): Check NILP (coding_system) and
15646 NILP (parent).
15647 (consume_chars): Fix for the case of raw-text.
15648
15649 * process.c (read_process_output): Handle carryover correctly.
15650
15651 2008-02-01 Dave Love <fx@gnu.org>
15652
15653 * regex.c (re_search_2): Fix last change.
15654
15655 2008-02-01 Kenichi Handa <handa@m17n.org>
15656
15657 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15658 target_multibyte. Even in a unibyte case, return a converted
15659 multibyte char.
15660 (GET_CHAR_AFTER): New macro.
15661 (PATFETCH): Translate via multibyte char.
15662 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15663 (SETUP_MULTIBYTE_RANGE): New macro.
15664 (regex_compile): Setup compiled code so that its multibyteness
15665 matches that of a target. Fix the handling of "[X-YZ]" using
15666 SETUP_MULTIBYTE_RANGE.
15667 (analyse_first) <charset>: For filling fastmap for all multibyte
15668 characters, don't check by BASE_LEADING_CODE_P.
15669 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15670 the same as RE_MULTIBYTE_P (bufp) now.
15671 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15672 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15673 (TRANSLATE_VIA_MULTIBYTE): New macro.
15674 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15675 It is the same as RE_MULTIBYTE_P (bufp) now.
15676 <exactn>: Translate via multibyte.
15677 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15678 translate it.
15679 <charset, charset_not>: Fetch a character by
15680 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15681 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15682 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15683 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15684 by GET_CHAR_AFTER.
15685 (bcmp_translate): Likewise.
15686
15687 * search.c (compile_pattern): Check the member target_multibyte,
15688 not the member multibyte of buf.
15689
15690 * lread.c (read1): While reading a string, set force_singlebyte
15691 and force_multibyte correctly.
15692
15693 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15694 up of unibyte_to_multibyte_table.
15695
15696 2008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * coding.c (setup_coding_system): If coding has
15699 post-read-conversion or pre-write-conversion, set
15700 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15701 respectively.
15702 (decode_coding_gap): Run post-read-conversion if any.
15703
15704 * fileio.c (Finsert_file_contents): Even if we read into a
15705 unibyte buffer, check if we must decode the result or not.
15706
15707 2008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * coding.c (make_conversion_work_buffer): Change the work buffer
15710 name to the same one as that of Emacs 21.
15711
15712 2008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * coding.h (make_conversion_work_buffer): Adjust prototype.
15715 (code_conversion_restore): Don't extern it.
15716
15717 * coding.c (detected_mask): Delete unused variable.
15718 (decode_coding_iso_2022): Pay attention to the byte sequence of
15719 CTEXT extended segment, and retain those bytes as is.
15720 (decode_coding_ccl): Delete unused variable `valids'.
15721 (setup_coding_system): Delete unused variable `category'.
15722 (consume_chars): Delete unused variable `category'. Make it work
15723 for non-multibyte case.
15724 (make_conversion_work_buffer): Change argument.
15725 (saved_coding): Delete unused variable.
15726 (code_conversion_restore): Don't check saved_coding->destination.
15727 (code_conversion_save): New function.
15728 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15729 instead of record_unwind_protect.
15730 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15731 (detect_coding_system): Delete unused variable `mask'.
15732 (Fdefine_coding_system_internal): Delete unused variable id.
15733
15734 * fileio.c (kill_workbuf_unwind): New function.
15735 (Finsert_file_contents): On replacing, call
15736 make_conversion_work_buffer with correct args, and call
15737 record_unwind_protect with the first arg kill_workbuf_unwind.
15738
15739 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15740
15741 2008-02-01 Kenichi Handa <handa@m17n.org>
15742
15743 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15744 (fontset_add): Fix for the case that TO is less than TO1.
15745 (Ffontset_info): Don't use fallback fontset on checking the
15746 default fontset.
15747 (dump_fontset): New function for debugging.
15748
15749 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15750 coding_type is Qcharset.
15751
15752 2008-02-01 Kenichi Handa <handa@m17n.org>
15753
15754 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15755 (map_char_table): Don't inherit the value from the parent on
15756 initializing VAL. Adjust for the above change.
15757
15758 2008-02-01 Kenichi Handa <handa@m17n.org>
15759
15760 * coding.c (Qsignature, Qendian): Delete these variables.
15761 (syms_of_coding): Don't initialize them.
15762 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15763 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15764 detect_info->found.
15765 (decode_coding_utf_16): Don't detect BOM here.
15766 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15767 is NOT utf_16_without_bom.
15768 (setup_coding_system): For a coding system of type utf-16, check
15769 if the attribute :endian is Qbig or not (not nil or not), and set
15770 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15771 (detect_coding): If coding type is utf-16 and BOM detection is
15772 required, detect it.
15773 (Fdefine_coding_system_internal): For a coding system of type
15774 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15775
15776 2008-02-01 Kenichi Handa <handa@m17n.org>
15777
15778 * coding.c (coding_set_source): Fix for the case that the current
15779 buffer is different from coding->src_object.
15780 (decode_coding_object): Don't use the conversion work buffer if
15781 DST_OBJECT is a buffer.
15782
15783 2008-02-01 Dave Love <fx@gnu.org>
15784
15785 * lread.c (read_emacs_mule_char) [len==2]: Index
15786 emacs_mule_charset correctly.
15787
15788 2008-02-01 Dave Love <fx@gnu.org>
15789
15790 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15791 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15792 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15793 treated specially.)
15794 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15795 (detected_mask): Remove Big5 bits.
15796
15797 2008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 The following changes are to make the font rescaling facility
15800 compatible with Emacs 21.
15801
15802 * xfaces.c (Vface_font_rescale_alist): Rename from
15803 Vface_resizing_fonts.
15804 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15805 (font_rescale_ratio): Rename from font_resizing_ratio.
15806 (split_font_name): Set font->rescale_ratio.
15807 (better_font_p): Pay attention to font->rescale_ratio.
15808 (build_scalable_font_name): Likewise. Change RESX, and RESY
15809 fields.
15810 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15811
15812 2008-02-01 Kenichi Handa <handa@m17n.org>
15813
15814 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15815 (Qutf_16_le): Remove these variables.
15816 (syms_of_coding): Don't DEFSYM them.
15817 (decode_coding_utf_16): Fix handling of BOM.
15818 (encode_coding_utf_16): Fix handling of BOM.
15819
15820 2008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * fileio.c (Finsert_file_contents): On replacing, before decoding
15823 the file into the work buffer, set point of the work buffer to the end.
15824
15825 2008-02-01 Dave Love <fx@gnu.org>
15826
15827 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15828
15829 2008-02-01 Dave Love <fx@gnu.org>
15830
15831 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15832 and fix C types.
15833
15834 2008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * xdisp.c (SKIP_GLYPHS): New macro.
15837 (set_cursor_from_row): Pay attention to string display properties.
15838
15839 * category.c (copy_category_entry): Fix for the case that RANGE
15840 is an integer.
15841
15842 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15843
15844 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15845
15846 2008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * charset.c (Fcharset_id_internal): New function.
15849 (syms_of_charset): Defsubr it.
15850
15851 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15852 with the last arg charset_list acquired from coding.
15853 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15854 the attribute coding_attr_ccl_valids.
15855
15856 * coding.h (enum define_coding_ccl_arg_index): Set the first
15857 member coding_arg_ccl_decoder to coding_arg_max.
15858
15859 * ccl.h (ccl_driver): Adjust prototype.
15860
15861 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15862 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15863 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15864 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15865 last arg Qnil.
15866
15867 2008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15870 call encode_char.
15871
15872 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15873
15874 2008-02-01 Dave Love <fx@gnu.org>
15875
15876 * composite.c (syms_of_composite): Make composition_hash_table weak.
15877
15878 2008-02-01 Kenichi Handa <handa@m17n.org>
15879
15880 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15881 (font_name_registry): Don't extern them.
15882 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15883
15884 * fontset.h (Qfontset): Don't extern it.
15885 (new_fontset_from_font_name): Extern it.
15886
15887 * fontset.c: Give 8 extra slots to fontset objects.
15888 (Qfontset_info): New variable.
15889 (syms_of_fontset): Defsym it.
15890 (FONTSET_FALLBACK): New macro.
15891 (fontset_face): Try also the default fontset.
15892 (make_fontset): Realize a fallback fontset from the default fontset.
15893 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15894 using split_font_name_into_vector and build_font_name_from_vector.
15895 (Fset_fontset_font): Access the elements of font_spec by enum
15896 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15897 name by using split_font_name_into_vector.
15898 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15899 generate a proper font name from the fontset name. Update
15900 Vfontset_alias_alist.
15901 (n_auto_fontsets): New variable.
15902 (new_fontset_from_font_name): New function.
15903 (Ffont_info): Store the information about fonts generated from the
15904 default fontset in the first extra slot of the returned char-table.
15905
15906 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15907 (font_name_registry): Delete function.
15908 (split_font_name_into_vector): New function.
15909 (build_font_name_from_vector): New function.
15910 (font_list): The argument REGISTRY is now a list of registry names.
15911 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15912 specifies an explicit font name, return the name as is. Make a
15913 list of registy names.
15914
15915 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15916 of x_new_fontset.
15917 (Fx_create_frame): Don't call x_new_fontset here. Just use
15918 x_list_fonts to check the existence of fonts.
15919
15920 * xterm.h (x_new_fontset): Adjust prototype.
15921
15922 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15923 string. Use new_fontset_from_font_name to create a fontset from a
15924 font name.
15925
15926 2008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * syntax.c (Vfind_word_boundary_function_table): New name for
15929 Vnext_word_boundary_function_table.
15930 (find-word-boundary-function-table): New name for
15931 next-word-boundary-function-table.
15932
15933 2008-02-01 Dave Love <fx@gnu.org>
15934
15935 * Makefile.in: Fix some dependencies.
15936
15937 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15938 set it to nil before returning.
15939
15940 * composite.c (update_compositions): Fix type error.
15941
15942 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15943
15944 2008-02-01 Kenichi Handa <handa@m17n.org>
15945
15946 * xterm.c (x_new_font): Optimize for the case that the font is
15947 already set for the frame.
15948
15949 2008-02-01 Kenichi Handa <handa@m17n.org>
15950
15951 * chartab.c (char_table_ascii): Check if the char table contents
15952 is sub-char-table or not.
15953 (char_table_set, char_table_set_range): Fix argument to
15954 char_table_ascii.
15955
15956 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15957 (detect_coding_utf_8, detect_coding_utf_16)
15958 (detect_coding_emacs_mule, detect_coding_iso_2022)
15959 (detect_coding_sjis, detect_coding_big5)
15960 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15961 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15962 sequence is valid in this coding system. Change callers.
15963 (MAX_ANNOTATION_LENGTH): New macro.
15964 (ADD_ANNOTATION_DATA): New macro.
15965 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15966 ADD_ANNOTATION_DATA. Change the format of annotation data.
15967 (ADD_CHARSET_DATA): New macro.
15968 (emacs_mule_char): New argument ID. Change callers.
15969 (decode_coding_emacs_mule, decode_coding_iso_2022)
15970 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15971 Produce charset annotation data in coding->charbuf.
15972 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15973 to charset annotation data in coding->charbuf.
15974 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15975 coding->common_flags if the coding system is iso-2022 based and
15976 uses designation.
15977 (produce_composition): Adjust for the new annotation data format.
15978 (produce_charset): New function.
15979 (produce_annotation): Handle charset annotation.
15980 (handle_composition_annotation, handle_charset_annotation): New
15981 functions.
15982 (consume_chars): Handle charset annotation. Utilize the above two
15983 functions.
15984 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15985 buffer, get the deleted text as a string and set
15986 coding->src_object to that string.
15987 (detect_coding, detect_coding_system): Use the new struct
15988 coding_detection_info.
15989
15990 * coding.h (struct coding_detection_info): New structure.
15991 (struct coding_system): Adjust prototype of the member `detector'.
15992 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15993
15994 2008-02-01 Kenichi Handa <handa@m17n.org>
15995
15996 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15997
15998 2008-02-01 Dave Love <fx@gnu.org>
15999
16000 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16001 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16002 to new local and nullify apropos_accumulate before returning.
16003 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16004
16005 2008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16008 correctly.
16009
16010 2008-02-01 Dave Love <fx@gnu.org>
16011
16012 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16013
16014 2008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 The following changes are to make character composition happen
16017 automatically on displaying.
16018
16019 * Makefile.in (lisp, shortlisp): Add composite.elc.
16020
16021 * composite.h (Qauto_composed, Vauto_composition_function)
16022 (Qauto_composition_function): Extern them.
16023
16024 * composite.c (Vcomposition_function_table)
16025 (Qcomposition_function_table): Delete variables.
16026 (Qauto_composed, Vauto_composition_function)
16027 (Qauto_composition_function): New variables.
16028 (run_composition_function): Don't call
16029 compose-chars-after-function.
16030 (update_compositions): Clear `auto-composed' text property.
16031 (compose_chars_in_text): Delete this function.
16032 (syms_of_composite): Staticpro Qauto_composed and
16033 Qauto_composition_function. Declare Vauto_composition_function as
16034 a Lisp variable.
16035
16036 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16037
16038 * xdisp.c (it_props): Add an entry for Qauto_composed.
16039 (handle_auto_composed_prop): New function.
16040
16041 * xselect.c (selection_data_to_lisp_data): Don't call
16042 compose_chars_in_text.
16043
16044 2008-02-01 Dave Love <fx@gnu.org>
16045
16046 * keyboard.c (read_char): Modify checking around use of
16047 Vkeyboard_translate_table.
16048
16049 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16050 and fix C types.
16051
16052 2008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16055 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16056 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16057 the case that the last byte is '\r' correctly.
16058 (decode_coding): Flush out the unprocessed data correctly.
16059 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16060
16061 2008-02-01 Dave Love <fx@gnu.org>
16062
16063 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16064 Add XK_ISO... case.
16065 (xaw_scroll_callback): Revert last change.
16066
16067 2008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16070
16071 2008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * xfaces.c (Vface_resizing_fonts): New variable.
16074 (struct font_name): New member `resizing_ratio'.
16075 (font_resizing_ratio): New function.
16076 (split_font_name): Set font->resizing_ratio.
16077 (better_font_p): Pay attention to font->resizing_ratio.
16078 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16079 RESX, and RESY fields.
16080 (try_alternative_families): Try scalable fonts if
16081 Vscalable_fonts_allowed is not Qt.
16082 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16083
16084 2008-02-01 Dave Love <fx@gnu.org>
16085
16086 * xterm.c (xaw_scroll_callback): Cast correctly.
16087
16088 2008-02-01 Dave Love <fx@gnu.org>
16089
16090 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16091 (lispy_kana_keys): Comment out.
16092 (make_lispy_event) [XK_kana_A]: Comment out.
16093
16094 * xterm.c (xaw_scroll_callback): Cast call_data.
16095 (XTread_socket): Deal with ASCII keysyms.
16096 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16097
16098 2008-02-01 Dave Love <fx@gnu.org>
16099
16100 * xterm.c (Vx_keysym_table): New.
16101 (syms_of_xterm): Initialize it.
16102 (XTread_socket): Use it.
16103 From head: Eliminate incorrect optimization that tried to avoid
16104 decoding the output of X*LookupString.
16105 (x_get_font_repertory): Delete charset declaration.
16106
16107 2008-02-01 Kenichi Handa <handa@m17n.org>
16108
16109 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16110 return 0.
16111 (Fdefine_coding_system_internal): Setup
16112 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16113
16114 2008-02-01 Dave Love <fx@gnu.org>
16115
16116 * coding.c (Fcheck_coding_system): Doc fix.
16117
16118 * editfns.c (Finsert_byte): Return a proper value.
16119
16120 2008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * coding.c (decode_coding): Fix args to translate_chars. Pay
16123 attention to Vstandard_translation_table_for_decode.
16124 (encode_coding): Fix args to translate_chars. Pay attention to
16125 Vstandard_translation_table_for_encode.
16126
16127 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16128 SINGLE_BYTE_CHAR_P.
16129
16130 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16131 not by SINGLE_BYTE_CHAR_P.
16132
16133 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16134 SINGLE_BYTE_CHAR_P.
16135
16136 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16137 SINGLE_BYTE_CHAR_P.
16138
16139 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16140 by SINGLE_BYTE_CHAR_P.
16141
16142 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16143 SINGLE_BYTE_CHAR_P.
16144
16145 2008-02-01 Dave Love <fx@gnu.org>
16146
16147 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16148
16149 2008-02-01 Dave Love <fx@gnu.org>
16150
16151 * fns.c (Flanginfo): Fix typo.
16152
16153 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16154
16155 2008-02-01 Kenichi Handa <handa@m17n.org>
16156
16157 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16158 (detect_coding_emacs_mule, detect_coding_iso_2022)
16159 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16160 incomplete byte sequence. Don't update *mask when correctly detected.
16161 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16162 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16163 (detect_coding, detect_coding_system): Adjust for the changes above.
16164
16165 2008-02-01 Kenichi Handa <handa@m17n.org>
16166
16167 * character.c (char_string): Rename from
16168 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16169 (string_char): Rename from string_char.
16170
16171 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16172 if C is greater than MAX_3_BYTE_CHAR.
16173 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16174 string_char instead of string_char_with_unification.
16175
16176 2008-02-01 Dave Love <fx@gnu.org>
16177
16178 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16179
16180 2008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * keymap.c (push_key_description): Pay attention to force_multibyte.
16183
16184 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16185
16186 2008-02-01 Dave Love <fx@gnu.org>
16187
16188 * charset.c (define_charset_internal): Rename `supprementary'.
16189
16190 * Makefile.in (lisp, shortlisp): Remove latin-N.
16191
16192 2008-02-01 Dave Love <fx@gnu.org>
16193
16194 * xfns.c (x_window, x_window): Use use_xim.
16195
16196 * xterm.c (use_xim): Initialize.
16197 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16198 (x_term_init): Maybe set use_xim.
16199
16200 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16201
16202 2008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * search.c (search_buffer): Fix case-fold-search of multibyte
16205 characters.
16206 (boyer_moore): Rename the last argument to char_high_bits.
16207
16208 2008-02-01 Kenichi Handa <handa@m17n.org>
16209
16210 * xdisp.c (display_string): Fix for the case of zero width glyph.
16211
16212 * xfns.c (x_set_font): Change the error message of the case that
16213 x_new_fontset returns Qt.
16214
16215 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16216 (Finternal_set_lisp_face_attribute): Use signal_error for the
16217 error of invalid fontset.
16218
16219 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16220 fontset, return Qt.
16221
16222 2008-02-01 Dave Love <fx@gnu.org>
16223
16224 * unexelf.c (unexec): Make .got handling not SGI-specific.
16225
16226 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16227
16228 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16229
16230 * keyboard.c (read_key_sequence): Fix type error.
16231
16232 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16233 type error.
16234
16235 * fontset.c (fontset_add): Return Lisp_Object.
16236
16237 2008-02-01 Dave Love <fx@gnu.org>
16238
16239 * charset.h (charset_ordered_list_tick): Declare extern.
16240
16241 2008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 The following changes (and some of 2008-02-01 changes of mine) are
16244 for handling syntax, category, and case conversion for unibyte
16245 characters by converting them to multibyte on the fly. With these
16246 changes, we don't have to setup syntax and case tables for unibyte
16247 characters in each language environment.
16248
16249 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16250 multibyte if necessary.
16251
16252 * bytecode.c (Fbyte_code): Likewise.
16253
16254 * character.h (LEADING_CODE_LATIN_1_MIN)
16255 (LEADING_CODE_LATIN_1_MAX): New macros.
16256 (unibyte_to_multibyte_table): Extern it.
16257 (unibyte_char_to_multibyte): New macro.
16258 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16259 (CHAR_LEADING_CODE): New macro.
16260 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16261
16262 * character.c (unibyte_to_multibyte_table): New variable.
16263 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16264 (multibyte_char_to_unibyte): If C is an eight-bit character,
16265 convert it to the corresponding byte value.
16266
16267 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16268 not 1, signals an error. Update the elements of
16269 unibyte_to_multibyte_table.
16270 (init_charset_once): Initialize unibyte_to_multibyte_table.
16271 (syms_of_charset): Define the charset `iso-8859-1'.
16272
16273 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16274 as is without converting it to unibyte. In a unibyte buffer,
16275 convert C to multibyte before checking the syntax.
16276
16277 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16278
16279 * minibuf.c (Fminibuffer_complete_word): Use the macro
16280 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16281
16282 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16283
16284 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16285 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16286 that is zero, convert an eight-bit char to multibyte.
16287 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16288 non-emacs case.
16289 (PATFETCH): Convert an eight-bit char to multibyte.
16290 (HANDLE_UNIBYTE_RANGE): New macro.
16291 (regex_compile): Setup the compiled pattern for multibyte chars
16292 even if the given regex string is unibyte. Use PATFETCH_RAW
16293 instead of PATFETCH in many places. To handle `charset'
16294 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16295 only for ASCII chars.
16296 (analyse_first) <exactn>: Simplify because the compiled pattern
16297 is multibyte.
16298 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16299 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16300 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16301 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16302 multibyte always 1.
16303 (re_search_2): In emacs, set the locale variable multibyte to 1,
16304 otherwise to 0. New local variable target_multibyte. Check it
16305 to decide the multibyteness of STR1 and STR2. If
16306 target_multibyte is zero, convert unibyte chars to multibyte
16307 before translating and checking fastmap.
16308 (TARGET_CHAR_AND_LENGTH): New macro.
16309 (re_match_2_internal): In emacs, set the locale variable multibyte
16310 to 1, otherwise to 0. New local variable target_multibyte. Check
16311 it to decide the multibyteness of STR1 and STR2. Use
16312 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16313 <charset, charset_not>: If multibyte is nonzero, check fastmap
16314 only for ASCII chars. Call bcmp_translate with
16315 target_multibyte, not with multibyte.
16316 <begline>: Declare the local variable C as `unsigned'.
16317 (bcmp_translate): Change the last arg name to target_multibyte.
16318
16319 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16320 the regexp pattern and the matching target. Set cp->buf.multibyte
16321 to the multibyteness of the regexp pattern. Set
16322 cp->but.target_multibyte to the multibyteness of the matching target.
16323 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16324 FETCH_STRING_CHAR_ADVANCE.
16325 (Freplace_match): Convert unibyte chars to multibyte.
16326
16327 * syntax.c (char_quoted, back_comment, scan_words)
16328 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16329 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16330 unibyte chars to multibyte.
16331 (skip_chars): Delete the arg syntaxp, and move the code for
16332 handling syntaxes to skip_syntaxes. Change callers.
16333 Fix the case that the multibyteness of STRING and the current
16334 buffer doesn't match.
16335 (skip_syntaxes): New function.
16336 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16337 SINGLE_BYTE_CHAR_P.
16338
16339 2008-02-01 Kenichi Handa <handa@m17n.org>
16340
16341 * xfaces.c (QCfontset): New variable.
16342 (LFACE_FONTSET): New macro.
16343 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16344 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16345 (Finternal_set_lisp_face_attribute)
16346 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16347 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16348 check also LFACE_FONTSET_INDEX.
16349 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16350 attrs[LFACE_FONT_INDEX].
16351 (syms_of_xfaces): Intern and staticpro QCfontset.
16352
16353 * dispextern.h (enum lface_attribute_index): New member
16354 LFACE_FONTSET_INDEX.
16355
16356 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16357
16358 2008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * coding.c (coding_set_destination): Fix coding->destination for
16361 the case converting a region.
16362 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16363 (encode_coding_object): Fix coding->dst_pos and
16364 coding->dst_pos_byte for the case converting a region.
16365
16366 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16367
16368 * character.h (BYTE8_STRING): New macro.
16369
16370 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16371
16372 2008-02-01 Kenichi Handa <handa@m17n.org>
16373
16374 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16375 characters by octal form.
16376
16377 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16378
16379 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16380 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16381 _fetch_multibyte_char_len.
16382 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16383
16384 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16385
16386 * casefiddle.c (casify_object): Simplify. Handle the case that
16387 the case conversion change the byte length.
16388 (casify_region): Likewise.
16389
16390 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16391
16392 * character.c (_fetch_multibyte_char_len): Delete this variable.
16393 (syms_of_character): Setup Vprintable_chars.
16394
16395 * editfns.c (Fchar_equal): Fix for the unibyte case.
16396 (Finsert_byte): New function.
16397 (syms_of_editfns): Defsubr it.
16398
16399 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16400 of direct code 0x3ffff.
16401
16402 * search.c (Freplace_match): Fix for the unibyte case.
16403
16404 2008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * lread.c (safe_to_load_p): Fix the logic.
16407
16408 * syntax.c (scan_words): Don't treat characters belonging to
16409 different scripts as constituting a word.
16410
16411 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16412
16413 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16414
16415 * emacs.c (main): In the case of --unibyte, instead of aborting on
16416 finding non-empty buffer, make it unibyte.
16417
16418 2008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16421 to create a fontset.
16422
16423 2008-02-01 Dave Love <fx@gnu.org>
16424
16425 * character.c (Funibyte_char_to_multibyte): Doc fix.
16426
16427 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16428
16429 2008-02-01 Kenichi Handa <handa@m17n.org>
16430
16431 * fontset.c (fontset_add): Make the type `int'.
16432 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16433
16434 * character.c (unibyte_char_to_multibyte)
16435 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16436 charset_unibyte, not charset_primary.
16437
16438 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16439
16440 * charset.c (charset_unibyte): Rename from charset_primary.
16441 (Funibyte_charset): Rename from Fprimary_charset.
16442 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16443 (syms_of_charset): Adjust for the above changes.
16444
16445 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16446 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16447 it->multibyte_p is zero.
16448
16449 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16450 Delete extern.
16451
16452 2008-02-01 Kenichi Handa <handa@m17n.org>
16453
16454 * coding.c (Fdefine_coding_system_internal): Fix category setting
16455 for a coding system of type iso-2022.
16456
16457 2008-02-01 Kenichi Handa <handa@m17n.org>
16458
16459 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16460
16461 2008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * syntax.c (Vnext_word_boundary_function_table): New variable.
16464 (next-word-boundary-function-table): Declare it as a Lisp variable
16465 in syms_of_syntax.
16466 (scan_words): Call functions in Vnext_word_boundary_function_table
16467 if any.
16468
16469 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16470
16471 * fontset.c (fs_load_font): If fontp->charset is not negative,
16472 return fontp without setting its members.
16473
16474 2008-02-01 Dave Love <fx@gnu.org>
16475
16476 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16477
16478 * m/sparc.h (HAVE_ALLOCA): Delete.
16479
16480 * s/irix6-5.h: Don't include strings.h.
16481 (bcopy, bzero, bcmp): Don't undef.
16482
16483 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16484
16485 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16486 (TIOCSIGSEND): Don't test IRIX6.
16487 (bcopy, bzero, bcmp): Define conditionally.
16488
16489 2008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * buffer.c (Qas, Qmake, Qto): New variables.
16492 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16493 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16494
16495 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16496 we are inserting a process output into a multibyte buffer.
16497
16498 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16499 multibyte_char_to_unibyte.
16500
16501 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16502 by the primary charset, make it eight-bit char.
16503 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16504
16505 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16506 (charset_8_bit__control, charset_8_bit_graphic)
16507 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16508 (define_charset_internal): New function.
16509 (syms_of_charset): Call define_charset_internal for pre-defined
16510 charsets.
16511
16512 * charset.h (charset_8_bit): Extern it.
16513
16514 * coding.c (make_conversion_work_buffer): Adjust for the change
16515 of Fset_buffer_multibyte.
16516 (encode_coding_raw_text): Increment p0 in the loop.
16517
16518 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16519
16520 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16521 for the change of Fset_buffer_multibyte.
16522
16523 * fns.c (Fstring_to_multibyte): New function.
16524 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16525
16526 2008-02-01 Dave Love <fx@gnu.org>
16527
16528 * xfns.c (x_put_x_image): Declare args.
16529
16530 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16531 (try_font_list): Declare an arg.
16532
16533 * xdisp.c (message2_nolog, set_message): Declare an arg.
16534
16535 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16536
16537 * syntax.c (scan_sexps_forward): Declare an arg.
16538
16539 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16540 Declare an arg.
16541
16542 * lisp.h (Fnew_fontset): Declare.
16543
16544 * keymap.c (push_key_description): Call CHARACTERP correctly.
16545
16546 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16547 (face_for_char): Delete unused vars.
16548 (Fset_fontset_font): Doc fix. Delete unused vars.
16549
16550 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16551
16552 * composite.c (update_compositions): Declare arg.
16553
16554 * cm.c (calccost, cmgoto): Declare args.
16555
16556 * charset.c: Remove `emacs' conditional. Doc fixes.
16557 (map_char_table_for_charset): Declare.
16558
16559 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16560
16561 * ccl.c: Remove `emacs' conditional.
16562
16563 2008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 The following changes are to allow specifying multiple font
16566 patterns for a character range (specified by script or charset).
16567
16568 * Makefile.in (abbrev.o): Depend on syntax.h.
16569 (xfaces.o): Depend on charset.h.
16570
16571 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16572 SINGLE_BYTE_CHAR_P.
16573
16574 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16575
16576 * character.h (Vchar_script_table): Extern it.
16577
16578 * character.c (Vscript_alist): Delete.
16579 (Vchar_script_table, Qchar_script_table): New variable.
16580 (syms_of_character): Declare Vchar_script_table as a lisp variable
16581 and initialize it.
16582
16583 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16584 have property char-table-extra-slots, make no extra slot.
16585
16586 * dispextern.h (struct face): Delete member `charset'.
16587 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16588 SINGLE_BYTE_CHAR_P.
16589 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16590 Add prototypes.
16591 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16592 (generate_ascii_font_name): Rename from generate_ascii_font.
16593
16594 * fontset.h (get_font_repertory_func): New prototype.
16595 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16596 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16597
16598 * fontset.c (Qprepend, Qappend): New variables.
16599 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16600 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16601 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16602 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16603 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16604 (load_font_get_repertory): New functions.
16605 (fontset_set): Delete.
16606 (fontset_face): New arg FACE. Return face ID, not face.
16607 Complete re-write to handle new fontset structure. Change caller.
16608 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16609 (face_for_char): Don't call lookup_face.
16610 (make_fontset_for_ascii_face): New arg FACE.
16611 (fs_load_font): New arg CHARSET_ID. Don't check
16612 Vfont_encoding_alist here.
16613 (find_font_encoding): New function.
16614 (list_fontsets): Use STRINGP, not ! NILP.
16615 (accumulate_script_ranges): New function.
16616 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16617 re-written to handle new fontset structure.
16618 (Ffontset_font): Return a copy of element.
16619 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16620 docstring of font-encoding-alist.
16621
16622 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16623 (Fset_fotset_font): Fix arguments to 5.
16624
16625 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16626
16627 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16628 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16629 (highlight_trailing_whitespace): Adjust for the change of
16630 lookup_named_face.
16631
16632 * xfaces.c: Include charset.h.
16633 (load_face_font): Delete argument C. Change caller.
16634 (generate_ascii_font_name): Rename from generate_ascii_font.
16635 (font_name_registry): New function.
16636 (cache_face): Store ascii faces before non-ascii faces in buckets.
16637 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16638 Lookup only ascii faces.
16639 (lookup_non_ascii_face): New function.
16640 (lookup_named_face): Delete argument C. Change caller.
16641 (lookup_derived_face): Delete argument C. Change caller.
16642 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16643 a string, just call font_list with it.
16644 (choose_face_font): Delete arguments FACE and C. New arg
16645 FONT_SPEC. Change caller.
16646 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16647 Change caller.
16648 (realize_non_ascii_face): New function.
16649 (realize_x_face): Call load_face_font here.
16650 (realize_tty_face): Delete argument C. Change caller.
16651 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16652 get a face ID.
16653 (dump_realized_face): Don't print charset of FACE.
16654
16655 * xfns.c (x_set_font): Always call x_new_fontset and
16656 store_frame_parameter.
16657 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16658 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16659
16660 * xterm.h (x_get_font_repertory): Extern it.
16661
16662 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16663 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16664 it->multibyte_p is zero.
16665 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16666 (x_new_fontset): If FONTSETNAME doesn't match any existing
16667 fontsets, create a new one.
16668 (x_get_font_repertory): New function.
16669
16670 2008-02-01 Kenichi Handa <handa@m17n.org>
16671
16672 * coding.c (Ffind_coding_systems_region_internal): Detect an
16673 ASCII only string correctly.
16674
16675 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16676 version is 0.
16677
16678 2008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * lread.c: Include "coding.h".
16681 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16682 (load_each_byte, unread_char): New variables.
16683 (readchar_backlog): Delete.
16684 (readchar): Return a character unless load_each_byte is nonzero.
16685 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16686 cons. If unread_char is not -1, simply return it.
16687 (unreadchar): Handle the case that readcharfun is
16688 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16689 (read_multibyte): Delete.
16690 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16691 (read_emacs_mule_char): New functions.
16692 (Fload): Even if the file doesn't have the extension ".elc", if
16693 safe_to_load_p returns a positive version number, assume that the
16694 file contains bytecompiled code. If the version is less than 22,
16695 load the file while decoding multibyte sequences by emacs-mule.
16696 (readevalloop): Don't use readchar_backlog.
16697 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16698 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16699 (read_escape): Delete the arg BYTEREP.
16700 (read1): Set load_each_byte to 1 temporarily while handling
16701 #@NUMBER. Don't call read_multibyte.
16702 (read_vector): Call Fread with a cons. If readcharfun is
16703 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16704 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16705 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16706 and Qload_force_doc_strings.
16707
16708 2008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * xdisp.c (face_before_or_after_it_pos): Call
16711 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16712
16713 2008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * character.h (TRAILING_CODE_P): New macro.
16716 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16717 (string_char_with_unification): Fix prototype.
16718 (Vscript_alist): Extern it.
16719
16720 * character.c (Vscript_alist): New variable.
16721 (string_char_with_unification, str_as_unibyte)
16722 (string_escape_byte8): Add `const' to local variables.
16723 (syms_of_character): Declare script-alist as a Lisp variable.
16724
16725 * charset.h (Vcharset_ordered_list): Extern it.
16726 (charset_ordered_list_tick): Extern it.
16727 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16728 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16729 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16730 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16731 (Funify_charset): Adjust for the change of Funify_charset.
16732
16733 * charset.c (charset_ordered_list_tick): New variable.
16734 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16735 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16736 deunify intead of unify a charset.
16737 (string_xstring_p): Add `const' to local variables.
16738 (find_charsets_in_text): Add `const' to arguments and local variables.
16739 (encode_char): Adjust for the change of Funify_charset. Fix
16740 detecting of invalid code.
16741 (Fset_charset_priority): Increment charset_ordered_list_tick.
16742 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16743 and TO_CODE.
16744
16745 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16746 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16747 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16748 (decode_coding_ccl, consume_chars)
16749 (Ffind_coding_systems_region_internal)
16750 (Fcheck_coding_systems_region): Add `const' to local variables.
16751
16752 * print.c (print_object): Use octal form for printing the
16753 contents of a bool vector.
16754
16755 2008-02-01 Dave Love <fx@gnu.org>
16756
16757 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16758 <version == 20>: Refuse to load.
16759
16760 2008-02-01 Dave Love <fx@gnu.org>
16761
16762 * fns.c: Move coding.h.
16763 (Qcodeset, Qdays, Qmonths): New.
16764 (concat): Use CHARACTERP instead of INTEGERP.
16765 (Flocale_codeset): Delete.
16766 (Flanginfo): New function.
16767 (syms_of_fns): Change accordingly.
16768
16769 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16770
16771 2008-02-01 Dave Love <fx@gnu.org>
16772
16773 * casetab.c (init_casetab_once, init_casetab_once): Fix
16774 CHAR_TABLE_SET call.
16775
16776 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16777
16778 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16779
16780 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16781 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16782 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16783
16784 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16785
16786 * coding.c (ENCODE_DESIGNATION, decode_eol)
16787 (make_conversion_work_buffer, code_conversion_restore)
16788 (Fdefine_coding_system_internal): Convert Lisp types.
16789 (code_conversion_restore): Use EQ, not ==.
16790 (Fencode_coding_string): Fix code_convert_string call.
16791
16792 * coding.h (code_convert_region): Fix prototype.
16793
16794 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16795
16796 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16797 (Ffontset_info): Convert Lisp types.
16798
16799 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16800
16801 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16802
16803 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16804
16805 * chartab.c: Include "...h", not <...h> in some cases.
16806
16807 * callproc.c (Fcall_process): Remove unused variables.
16808
16809 2008-02-01 Dave Love <fx@gnu.org>
16810
16811 * coding.c (Fset_coding_system_priority): Allow null arg list.
16812
16813 2008-02-01 Dave Love <fx@gnu.org>
16814
16815 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16816 (Fself_insert_and_exit): Use CHARACTERP.
16817
16818 * callproc.c (Fcall_process): Remove unused vars.
16819
16820 * xterm.c (XTread_socket): Add extra dead keysyms.
16821
16822 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16823
16824 * dispextern.h: Remove prototypes for redraw_frame,
16825 redraw_garbaged_frames.
16826
16827 * cmds.c (Fself_insert_command): Use CHARACTERP.
16828
16829 * chartab.c (make_sub_char_table): Remove unused var.
16830 (Fset_char_table_default, Fmap_char_table): Doc fix.
16831
16832 * keymap.c (access_keymap): Remove generic char code.
16833 (push_key_description): Use CHARACTERP.
16834
16835 2008-02-01 Dave Love <fx@gnu.org>
16836
16837 * charset.c: Doc fixes.
16838 (Funify_charset): Extra checking.
16839
16840 2008-02-01 Dave Love <fx@gnu.org>
16841
16842 * lread.c: Remove some unused variables.
16843 (safe_to_load_p): If safe, return the magic number version byte.
16844 (Fload): Maybe use load-with-code-conversion.
16845
16846 2008-02-01 Kenichi Handa <handa@m17n.org>
16847
16848 * category.c (Fmodify_category_entry): Don't modify the contents
16849 of category_set for characters out of the range. Avoid
16850 unnecessary modification.
16851
16852 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16853 Vchar_unify_table. The default value of the table is now nil.
16854
16855 * character.c (syms_of_character): Setup Vchar_width_table for
16856 eight-bit-control and raw-byte chars.
16857
16858 * charset.h (enum define_charset_arg_index): Delete
16859 charset_arg_parents and add charset_arg_subset and
16860 charset_arg_superset.
16861 (enum charset_attr_index): Delete charset_parents and add
16862 charset_subset and charset_superset.
16863 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16864 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16865 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16866 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16867 (CHARSET_SUPERSET): New macros.
16868 (charset_work): Extern it.
16869 (ENCODE_CHAR): Use charset_work.
16870 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16871 (map_charset_chars): Extern it.
16872
16873 * charset.c (load_charset_map): Set the default value of encoder
16874 and deunifier char-tables to nil.
16875 (map_charset_chars): Change argument. Change callers. Use
16876 map_char_table_for_charset instead of map_char_table.
16877 (Fmap_charset_chars): New optional args from_code and to_code.
16878 (Fdefine_charset_internal): Adjust for the change of
16879 `define-charset' (:parents -> :subset or :superset).
16880 (charset_work): New variable.
16881 (encode_char, syms_of_charset): Adjust for the change of
16882 Fdefine_charset_internal.
16883 (Ffind_charset_string): Setup the vector `charsets' correctly.
16884
16885 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16886 the previous change.
16887 (char_table_ref_and_range): Adjust for the above change.
16888 (map_sub_char_table_for_charset): New function.
16889 (map_char_table_for_charset): New function.
16890
16891 * keymap.c (describe_vector): Handle a char-table directly here.
16892 (describe_char_table): Delete.
16893
16894 * lisp.h (map_charset_chars): Delete.
16895
16896 2008-02-01 Dave Love <fx@gnu.org>
16897
16898 * fns.c (count_combining): Comment out (unused).
16899 (Flocale_codeset): New.
16900 (syms_of_fns): Defsubr it.
16901
16902 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16903 (size_t): Remove.
16904
16905 2008-02-01 Dave Love <fx@gnu.org>
16906
16907 * Makefile.in (chartab.o): Depend on charset.h.
16908
16909 2008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * character.c (syms_of_character): Set the default value of
16912 Vprintable_chars to Qnil.
16913
16914 2008-02-01 Dave Love <fx@gnu.org>
16915
16916 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16917
16918 2008-02-01 Kenichi Handa <handa@m17n.org>
16919
16920 * charset.c (load_charset_map): Handle the case that from < to
16921 correctly.
16922
16923 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16924 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16925 Pay attention to raw-8-bit chars.
16926
16927 2008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16930 It is not bytecompiled now.
16931
16932 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16933 (charset_jisx0208): New variables.
16934 (Fdefine_charset_internal): Setup them if appropriate.
16935 (init_charset_once): Initialize them to -1.
16936
16937 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16938 (charset_jisx0208): Extern them.
16939
16940 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16941 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16942 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16943 (setup_iso_safe_charsets): Fix arguments to Fassq.
16944 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16945 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16946 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16947 (encode_coding_iso_2022): Change the 1st arg to
16948 ENCODE_ISO_CHARACTER to a variable.
16949
16950 2008-02-01 Kenichi Handa <handa@m17n.org>
16951
16952 * charset.h (enum define_charset_arg_index): New enums
16953 charset_arg_min_code and charset_arg_max_code.
16954 (struct charset): New member char_index_offset.
16955
16956 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16957 Take charset->char_index_offset into account.
16958 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16959 args[charset_arg_max_code]. Setup charset.char_index_offset.
16960 (syms_of_charset): Fix args to Fdefine_charset_internal.
16961
16962 2008-02-01 Dave Love <fx@gnu.org>
16963
16964 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16965
16966 2008-02-01 Dave Love <fx@gnu.org>
16967
16968 * coding.c: Doc fixes.
16969 (Fcoding_system_aliases): Fix return value.
16970 (Qmac): Remove (duplicated) definition.
16971
16972 2008-02-01 Dave Love <fx@gnu.org>
16973
16974 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16975 New functions.
16976
16977 * character.c (Fstring): Doc fix.
16978
16979 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16980
16981 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
16982 (font-encoding-alist): Doc fix.
16983
16984 2008-02-01 Dave Love <fx@gnu.org>
16985
16986 * term.c (costs_set): Declare static, non-initialized for pcc.
16987 (encode_terminal_code): Remove unused var.
16988
16989 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16990 for K&R.
16991
16992 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16993
16994 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16995 (suffixes): Move out of make_subsidiaries for K&R.
16996
16997 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16998
16999 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17000
17001 2008-02-01 Dave Love <fx@gnu.org>
17002
17003 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17004
17005 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17006
17007 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17008
17009 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17010
17011 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17012
17013 2008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17016 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17017
17018 2008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * coding.c (decode_coding_charset): Adjust for the change of
17021 Fdefine_coding_system_internal.
17022 (Fdefine_coding_system_internal): For a coding system of
17023 `charset' type, store a list of charset IDs in
17024 `charset_attr_charset_valids' element of coding attributes.
17025
17026 2008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17029 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17030 caller. Handle 2-byte and 3-byte charsets correctly.
17031 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17032 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17033 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17034 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17035 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17036 sequence.
17037 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17038 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17039 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17040 and alt&rule composition.
17041 (decode_coding_iso_2022): Handle composition correctly.
17042 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17043
17044 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17045 re-defining a charset. If the charset has :emacs-mule-id, setup
17046 emacs_mule_bytes.
17047 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17048
17049 2008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17052 (encode_coding_big5, encode_coding_charset): If coding requires safe
17053 encoding, produce a character specified by
17054 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17055
17056 2008-02-01 Dave Love <fx@gnu.org>
17057
17058 * xterm.c (XSetIMValues): Declare.
17059
17060 * process.c: Conditionally include sys/wait.h, pty.h.
17061
17062 * print.c (print_object): Fix print format for 64-bit systems.
17063
17064 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17065
17066 * buffer.c (emacs_strerror): Declare.
17067
17068 * fontset.c (Fclear_face_cache): Declare.
17069 (accumulate_font_info): Comment-out (unused).
17070 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17071 variables.
17072
17073 * character.h (string_escape_byte8): Declare.
17074
17075 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17076 unused vars.
17077 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17078 (Fmap_charset_chars): Doc fix.
17079
17080 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17081 (Fset_coding_system_priority, Fset_coding_system_priority)
17082 (Fdefine_coding_system_internal): Doc fix.
17083
17084 2008-02-01 Dave Love <fx@gnu.org>
17085
17086 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17087
17088 2008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * character.c (string_escape_byte8): Make multibyte string with
17091 correct size.
17092
17093 * charset.c (Fmake_char): Delete unnecessary code.
17094
17095 2008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * xfns.c (x_encode_text): Allocate coding.destination here, and
17098 call encode_coding_object with dst_object Qnil.
17099
17100 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17101 multibyte form correctly.
17102
17103 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17104 against Vfont_encoding_alist.
17105
17106 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17107 handling of charset list.
17108 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17109 (decode_coding_object): Move point to coding->dst_pos before
17110 calling post-read-conversion function.
17111 (encode_coding_object): Give correct arguments to
17112 pre-write-conversion. Ignore the return value of
17113 pre-write-conversion function. Pay attention to the case that
17114 pre-write-conversion changes the current buffer. If dst_object is
17115 Qt, even if coding->src_bytes is zero, allocate at least one byte
17116 to coding->destination.
17117
17118 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17119
17120 * charset.c (Fmake_char): Make it more backward compatible.
17121 (Fmap_charset_chars): Fix docstring.
17122
17123 2008-02-01 Dave Love <fx@gnu.org>
17124
17125 * coding.c: Doc fixes.
17126 (Fdefine_coding_system_alias): Use names, not symbols, in
17127 coding-system-alist.
17128
17129 2008-02-01 Kenichi Handa <handa@m17n.org>
17130
17131 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17132 of calling free_realized_face.
17133
17134 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17135
17136 * charset.c (read_hex): Don't treat SPC as a comment starter.
17137 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17138 (Fdecode_char): Fix typo.
17139
17140 2008-02-01 Kenichi Handa <handa@m17n.org>
17141
17142 * charset.h (struct charset): New member `code_space_mask'.
17143
17144 * coding.c (coding_set_source): Delete the local variable beg_byte.
17145 (encode_coding_charset, Fdefine_coding_system_internal):
17146 Delete the local variable charset.
17147 (Fdefine_coding_system_internal): Setup
17148 attrs[coding_attr_charset_valids] correctly.
17149
17150 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17151 member to check if CODE is valid or not.
17152 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17153 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17154 is within the range of charset->min_code and carset->max_code.
17155
17156 2008-02-01 Dave Love <fx@gnu.org>
17157
17158 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17159
17160 * dispextern.h (generate_ascii_font): Fix return type.
17161
17162 * xfaces.c (generate_ascii_font): Fix arg declaration.
17163
17164 * coding.c (coding_inherit_eol_type)
17165 (Fset_terminal_coding_system_internal)
17166 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17167
17168 2008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17171 multiple charsets correctly.
17172
17173 2008-02-01 Kenichi Handa <handa@m17n.org>
17174
17175 * search.c (boyer_moore): Fix handling of multibyte character
17176 translation.
17177
17178 * xdisp.c (display_mode_element): When the variable `elt' is
17179 changed, update `this' and `lisp_string'.
17180
17181 2008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17184
17185 * callproc.c (Fcall_process): Be sure to give the current buffer
17186 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17187
17188 * charset.c (struct charset_map_entries): New struct.
17189 (load_charset_map): Rename from parse_charset_map. New args
17190 entries and n_entries. Change caller.
17191 (load_charset_map_from_file): Rename from load_charset_map.
17192 Change caller. New arg control_flag. Call load_charset_map at
17193 the tail.
17194 (load_charset_map_from_vector): New function.
17195 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17196 (encode_char): If the charset is compact, change a character index
17197 to a code point.
17198
17199 * coding.c (coding_alloc_by_making_gap): Check the case that the
17200 source and destination are the same correctly.
17201 (decode_coding_raw_text): Set coding->consumed_char and
17202 coding->consumed to 0.
17203 (produce_chars): If coding->chars_at_source is nonzero, update
17204 coding->consumed_char and coding->consumed before calling
17205 alloc_destination.
17206 (Fdefine_coding_system_alias): Register ALIAS in
17207 Vcoding_system_alist.
17208 (syms_of_coding): Define `no-conversion' coding system at the tail.
17209
17210 * fileio.c (Finsert_file_contents): Set coding_system instead of
17211 val. If the current buffer is multibyte, always call
17212 decode_coding_gap.
17213
17214 * xfaces.c (try_font_list): Give higher priority to fontset's
17215 family than face's family.
17216
17217 2008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * callproc.c (Fcall_process): Be sure to give the current buffer
17220 to decode_coding_c_string.
17221
17222 * xfaces.c (try_font_list): Give a family specified in a fontset
17223 higher priority than a family specified in a face.
17224
17225 2008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17228 Fix arguments to insert_from_buffer.
17229
17230 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17231
17232 2008-02-01 Kenichi Handa <handa@m17n.org>
17233
17234 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17235 (decode_coding_gap): Set coding->dst_multibyte correctly.
17236
17237 2008-02-01 Kenichi Handa <handa@m17n.org>
17238
17239 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17240 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17241 (encode_coding_utf_16): Substitute coding->default_char for
17242 non-Unicode characters.
17243 (decode_coding): Don't call record_insert here.
17244 (setup_coding_system): Initialize `surrogate' of
17245 coding->spec.utf_16 to 0.
17246 (EMIT_ONE_BYTE): Fix for multibyte case.
17247
17248 * insdel.c (insert_from_gap): Call record_insert.
17249
17250 2008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * casefiddle.c (casify_region): Fix multibyte case.
17253
17254 * character.c (c_string_width): Add return type `int'.
17255 (char_string_with_unification): Delete arg ADVANCED.
17256
17257 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17258 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17259 (CHAR_STRING_ADVANCE): Make it do-while statement.
17260
17261 * chartab.c (sub_char_table_set_range): Optimize for the case
17262 DEPTH == 3. Add workaround code for a GCC optimization bug.
17263
17264 * charset.c (parse_charset_map): Remove an unused variable.
17265
17266 * coding.c: Delete unused variables.
17267
17268 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17269 earlier. If inserted is zero and the coding system doesn't
17270 require flushing, don't call decode_coding_gap.
17271
17272 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17273
17274 2008-02-01 Kenichi Handa <handa@m17n.org>
17275
17276 The following changes are for using Unicode as an internal
17277 character model, and use UTF-8 format for buffer/string
17278 representation.
17279
17280 * .gdbinit (xchartable): Adjust for the change of char table structure.
17281 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17282
17283 * Makefile.in (obj): Add character.o and chartab.o.
17284 (lisp, shortlisp): Remove utf-8.elc.
17285 (*.o): For many files, change dependency on charset.h to
17286 character.h, and add dependency on character.h.
17287 (character.o, chartab.o): New targets.
17288
17289 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17290 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17291 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17292 of "charset.h".
17293
17294 * dired.c, filelock.c: Include "character.h".
17295
17296 * alloc.c: Include "character.h" instead of "charset.h".
17297 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17298 (syms_of_alloc): Remove defsubr for Smake_char_table.
17299
17300 * buffer.c: Include "character.h" instead of "charset.h", don't
17301 include "coding.h".
17302 (Fset_buffer_multibyte): Adjust for UTF-8.
17303
17304 * buffer.h: EXFUN Fbuffer_live_p.
17305
17306 * callproc.c: Include "character.h" instead of "charset.h".
17307 (Fcall_process): Big change for the new code-conversion APIs.
17308
17309 * casetab.c: Include "character.h" instead of "charset.h".
17310 (set_canon, set_identity, shuffle): Adjust for the new
17311 map_char_table spec.
17312 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17313 accessing the char table structure.
17314
17315 * chartab.c: New file that implements char table.
17316
17317 * category.c: Include "character.h".
17318 (copy_category_entry): New function.
17319 (copy_category_table): Call map_char_table and copy_category_entry.
17320 (Fmake_category_table): Initialize all top-level slots.
17321 (char_category_set): New function.
17322 (modify_lower_category_set): Delete.
17323 (Fmodify_category_entry): Call char_table_ref_and_range.
17324
17325 * category.h (CATEGORY_SET): Just call char_category_set.
17326
17327 * ccl.c: Include "character.h".
17328 (Qccl, Qcclp): New variables.
17329 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17330 it's less than 256.
17331 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17332 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17333 and DST type.
17334 (ccl_driver): Change types of argument, adjust code accordingly.
17335 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17336 ccl_driver.
17337 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17338
17339 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17340 New members src_multibyte, dst_multibyte, consumed, and produced.
17341 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17342 (CODING_SPEC_CCL_PROGRAM): New macro.
17343 (ccl_driver): Update prototype.
17344 (Qccl, Qcclp, Fccl_program_p): Extern them.
17345 (CHECK_CCL_PROGRAM): New macro.
17346
17347 * character.c, character.h, chartab.c: New files.
17348
17349 * charset.c: Mostly re-written. Move character and multibyte sequence
17350 handling codes to character.c.
17351
17352 * charset.h: Mostly re-written. Move character and multibyte sequence
17353 handling codes to character.h.
17354
17355 * coding.c, coding.h: Mostly re-written.
17356
17357 * composite.c: Include "character.h" instead of "charset.h".
17358 (CHAR_WIDTH): Move to character.h.
17359 (HASH_KEY, HASH_VALUE): Delete.
17360
17361 * composite.h (enum composition_method): Change order of enumeration
17362 symbols.
17363
17364 * data.c: Include "character.h" instead of "charset.h".
17365 (Faref): Call CHAR_TABLE_REF for a char table.
17366 (Faset): Call CHAR_TABLE_SET for a char table.
17367
17368 * dispextern.h (free_realized_face, check_face_attribytes)
17369 (generate_ascii_font): Extern them.
17370 (free_realized_multibyte_face): Delete extern.
17371
17372 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17373 table structure.
17374
17375 * editfns.c: Include "character.h" instead of "charset.h".
17376 (Fchar_to_string): Always call CHAR_STRING.
17377
17378 * emacs.c (main): Call init_charset_once, init_charset,
17379 syms_of_chartab, and syms_of_character.
17380
17381 * fileio.c: Include "character.h" instead of "charset.h".
17382 (Finsert_file_contents): Big change for the new code-conversion API.
17383 (choose_write_coding_system, Fwrite_region): Likewise.
17384 (build_annotations_2): Delete.
17385 (e_write): Big change for the new code-conversion API.
17386
17387 * fns.c: Include "character.h" instead of "charset.h".
17388 (copy_sub_char_table): Move to chartab.c.
17389 (Fcopy_sequence): Call copy_char_table for a char table.
17390 (concat): Delete codes calling count_multibyte.
17391 (string_char_to_byte, string_byte_to_char): Adjust for the new
17392 multibyte form.
17393 (internal_equal): Adjust for the change of char table structure.
17394 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17395 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17396 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17397 (char_table_translate, optimize_sub_char_table)
17398 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17399 chartab.c.
17400 (char_table_ref_and_index): Delete.
17401 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17402 (Fmd5): Call preferred_coding_system instead of accessing
17403 Vcoding_category_list. Adjust for the new code-conversion API.
17404 (syms_of_fns): Move defsubr for char table related functions to
17405 chartab.c.
17406
17407 * fontset.c: Mostly re-written.
17408
17409 * fontset.h (struct font_info): Change type of the member encoding_type.
17410 (enum FONT_SPEC_INDEX): New enum.
17411 (fontset_font_pattern, fs_load_font): Update prototype.
17412 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17413
17414 * indent.c: Include "character.h" instead of "charset.h".
17415 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17416
17417 * insdel.c: Include "character.h" instead of "charset.h".
17418 (copy_text): Don't refer to Vnonascii_translation_table.
17419 (insert_from_gap): New function.
17420
17421 * keyboard.c: Include "character.h" instead of "charset.h".
17422 (command_loop_1): Never call direct_output_forward_char before
17423 a non-ASCII character.
17424 (read_char): If Vkeyboard_translate_table is a char table, always
17425 translate a character.
17426
17427 * keymap.c: Include "character.h".
17428 (store_in_keymap): Handle the case that IDX is a cons.
17429 (Fdefine_key): Handle the case that KEY is a cons and the car part
17430 is also a cons (range).
17431 (push_key_description): Adjust for the new character code.
17432 (describe_vector): Call describe_char_table for a char table.
17433 (describe_char_table): New function.
17434
17435 * keymap.h (describe_char_table): Extern it.
17436
17437 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17438 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17439 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17440 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17441 Delete.
17442 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17443 structure.
17444 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17445 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17446 (CHARTAB_SIZE_BITS_3): New macros.
17447 (chartab_size): Extern it.
17448 (struct Lisp_Char_Table): Re-design.
17449 (struct Lisp_Sub_Char_Table): New structure.
17450 (HASH_KEY, HASH_VALUE): Move from fns.c.
17451 (CHARACTERBITS): Define as 22.
17452 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17453 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17454 (GC_SUB_CHAR_TABLE_P): New macro.
17455 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17456 (code_convert_string_norecord): Deleted extern.
17457 (init_character_once, syms_of_character, init_charset)
17458 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17459
17460 * lread.c: Include "character.h".
17461 (read_multibyte): New arg NBYTES.
17462 (read_escape): Change the meaning of returned *BYTEREP.
17463 (to_multibyte): Delete.
17464 (read1): Adjust the handling of char table and string.
17465
17466 * print.c: Include "character.h" instead of "charset.h".
17467 (print_string): Convert 8-bit raw bytes to octal form by
17468 string_escape_byte8.
17469 (print_object): Adjust for the new multibyte form. Print 8-bit
17470 raw bytes always in octal form. Handle sub char table correctly.
17471
17472 * process.c: Include "character.h" instead of "charset.h".
17473 (read_process_output, send_process): Adjust for the new
17474 code-conversion API.
17475
17476 * puresize.h (BASE_PURESIZE): Increase.
17477
17478 * regex.c: Include "character.h" instead of "charset.h".
17479 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17480 (regex_compile): Accept a range whose starting and ending
17481 character have different leading bytes.
17482 (analyse_first): Adjust for the above change.
17483
17484 * search.c: Include "character.h" instead of "charset.h".
17485 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17486 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17487
17488 * syntax.c: Include "character.h" instead of "charset.h".
17489 (syntax_parent_lookup): Delete.
17490 (Fmodify_syntax_entry): Accept a cons as CHAR.
17491 (skip_chars): Adjust for the new multibyte form.
17492 (init_syntax_once): Call char_table_set_range instead of directly
17493 accessing the structure of a char table.
17494
17495 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17496 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17497 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17498 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17499
17500 * term.c: Include "buffer.h" and "character.h".
17501 (encode_terminal_code, write_glyphs): Adjust for the new
17502 code-conversion API.
17503 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17504
17505 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17506
17507 * xdisp.c: Include "character.h".
17508 (get_next_display_element): Adjust for the new multibyte form.
17509 (disp_char_vector): Adjust for the new char table structure.
17510 (decode_mode_spec_coding): Adjust for the new structure of
17511 coding system.
17512 (decode_mode_spec): Adjust for the new code-conversion API.
17513
17514 * xfaces.c: Include "character.h" instead of "charset.h".
17515 (load_face_font): Adjust for the change of choose_face_font and
17516 FS_LOAD_FONT.
17517 (generate_ascii_font): New function.
17518 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17519 (set_font_frame_param): Adjust for the change of choose_face_font.
17520 (free_realized_face): Make it public.
17521 (free_realized_faces_for_fontset): Rename from
17522 free_realized_multibyte_face. Free also faces realized for ASCII.
17523 (choose_face_font): Change arguments. Adjust for the change of
17524 fontset_font_pattern and FS_LOAD_FONT.
17525
17526 * xfns.c: Include "character.h".
17527 (x_encode_text): Adjust for the new code-conversion API.
17528
17529 * xselect.c: Don't include "charset.h".
17530 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17531
17532 * xterm.c: Include "character.h".
17533 (x_encode_char): New argument CHARSET. Change caller.
17534 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17535 Call ENCODE_CHAR instead of SPLIT_CHAR.
17536 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17537 CHAR_WIDTH instead of CHARSET_WIDTH.
17538 (XTread_socket): Adjust for the new code-conversion API.
17539 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17540 (x_load_font): Adjust for the change of struct font.
17541
17542 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17543
17544 * xfaces.c (face_at_buffer_position): Remove unused vars.
17545
17546 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17547
17548 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17549 Fix overflow checking.
17550
17551 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17552
17553 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17554 Cancel previous change.
17555
17556 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17557
17558 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17559 ccl->eight_bit_control. Fix check for buffer overflow.
17560 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17561 (ccl_driver): Initialize extra_bytes to 0.
17562
17563 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17564
17565 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17566 return it ORed with ctrl_modifier.
17567
17568 2008-01-29 Miles Bader <miles@gnu.org>
17569
17570 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17571
17572 2008-01-28 Jason Rumney <jasonr@gnu.org>
17573
17574 * w32.c (stat): Don't double check for networked drive.
17575
17576 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17577
17578 * window.c (run_window_configuration_change_hook): New function.
17579 Code extracted from set_window_buffer. Set the selected frame.
17580 (set_window_buffer): Use it.
17581 * window.h (run_window_configuration_change_hook): Declare.
17582 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17583
17584 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17585
17586 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17587
17588 * Makefile.in: Remove references to unused macros.
17589
17590 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17591
17592 * w32.c (g_b_init_get_sid_sub_authority)
17593 (g_b_init_get_sid_sub_authority_count): New static variables.
17594 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17595 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17596 (init_user_info): Use them to retrieve uid and gid.
17597 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17598 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17599 st_uid and st_gid of the file.
17600
17601 2008-01-26 Jason Rumney <jasonr@gnu.org>
17602
17603 * w32.c (logon_network_drive): New function.
17604 (stat): Use it.
17605
17606 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17607
17608 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17609 invisible text covered with an ellipsis.
17610
17611 2008-01-25 Richard Stallman <rms@gnu.org>
17612
17613 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17614 jump back to beginning. Move some other initializations after that.
17615 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17616 New variables.
17617 (syms_of_xdisp): Init them.
17618
17619 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17620
17621 * buffer.c (reset_buffer_local_variables):
17622 Implement `permanent-local-hook'.
17623 (Qpermanent_local_hook): New variable.
17624 (syms_of_buffer): Init and staticpro it.
17625
17626 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17627
17628 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17629
17630 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17631
17632 * fns.c (Fclrhash): Return TABLE.
17633
17634 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17635
17636 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17637 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17638 is set even without positional changes.
17639 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17640
17641 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17642
17643 2008-01-23 Jason Rumney <jasonr@gnu.org>
17644
17645 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17646
17647 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17648 the unicode range available in MULE by locale-coding-system.
17649 Improve dbcs lead byte detection. Set event timestamp and modifiers
17650 earlier.
17651
17652 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17653
17654 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17655 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17656 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17657 when used on child processes.
17658
17659 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17660
17661 * dbusbind.c (Fdbus_method_return_internal): Rename from
17662 Fdbus_method_return.
17663 (Fdbus_unregister_object): Move to dbus.el.
17664 (Fdbus_call_method, Fdbus_method_return_internal)
17665 (Fdbus_send_signal): Improve debug messages.
17666
17667 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17668
17669 * undo.c (undo_inhibit_record_point): New variable.
17670 (syms_of_undo): Initialize it.
17671 (record_point): Don't record point when undo_inhibit_record_point
17672 is set.
17673
17674 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17675
17676 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17677
17678 * xdisp.c (Qauto_hscroll_mode): New var.
17679 (syms_of_xdisp): Initialize it.
17680 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17681 window's buffer.
17682 (hscroll_windows): Don't check automatic_hscrolling_p here.
17683
17684 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17685 vscroll if we're setting window-buffer to the value it already has.
17686
17687 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17688
17689 * m/intel386.h: Remove references to XENIX.
17690
17691 2008-01-17 Andreas Schwab <schwab@suse.de>
17692
17693 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17694 instead of HAVE_X86_64_LIB64_DIR.
17695 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17696
17697 2008-01-17 Glenn Morris <rgm@gnu.org>
17698
17699 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17700 to HAVE_X86_64_LIB64_DIR.
17701
17702 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17703
17704 * s/irix3-3.h:
17705 * s/irix4-0.h:
17706 * s/386-ix.h:
17707 * s/domain.h:
17708 * s/hpux9-x11r4.h:
17709 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17710
17711 * sysdep.c: Remove code containing references to symbols defined
17712 by unsupported systems.
17713
17714 2008-01-16 Glenn Morris <rgm@gnu.org>
17715
17716 * coding.c (select-safe-coding-system-function): Doc fix.
17717
17718 2008-01-15 Glenn Morris <rgm@gnu.org>
17719
17720 * config.in: Revert 2008-01-13 change: this is a generated file.
17721
17722 2008-01-13 Tom Tromey <tromey@redhat.com>
17723
17724 * lisp.h: Fix typo.
17725
17726 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17727
17728 * m/sequent-ptx.h:
17729 * m/sequent.h:
17730 * s/ptx.h:
17731 * s/ptx4-2.h:
17732 * s/ptx4.h: Remove files for systems no longer supported.
17733
17734 * callproc.c (Fcall_process): Fix previous change.
17735
17736 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17737
17738 * unexsunos4.c: Remove file, system not supported anymore.
17739
17740 * m/mips.h:
17741 * m/intel386.h:
17742 * callproc.c:
17743 * config.in:
17744 * ecrt0.c:
17745 * emacs.c:
17746 * fileio.c:
17747 * frame.c:
17748 * getpagesize.h:
17749 * keyboard.c:
17750 * lread.c:
17751 * process.c:
17752 * puresize.h:
17753 * sysdep.c:
17754 * systty.h:
17755 * syswait.h:
17756 * unexec.c:
17757 * xdisp.c:
17758 * alloc.c: Remove code containing references to symbols defined by
17759 unsupported systems.
17760
17761 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17762
17763 * coding.c (detect_coding_mask): Fix previous change.
17764
17765 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17766
17767 * coding.c (detect_coding_iso2022): New arg
17768 latin_extra_code_state. Allow Latin extra codes only
17769 when *latin_extra_code_state is nonzero.
17770 (detect_coding_mask): If there is a NULL byte, detect the encoding
17771 as UTF-16 or binary. If Latin extra codes exist, detect the
17772 encoding as ISO-2022 only when there's no other proper encoding is
17773 found.
17774
17775 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17776
17777 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17778 #ifdef MAC_OS.
17779
17780 2008-01-08 Richard Stallman <rms@gnu.org>
17781
17782 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17783
17784 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17785
17786 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17787 menu bar in parentheses.
17788
17789 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17790
17791 * m/7300.h:
17792 * m/acorn.h:
17793 * m/alliant-2800.h:
17794 * m/alliant.h:
17795 * m/alliant1.h:
17796 * m/alliant4.h:
17797 * m/altos.h:
17798 * m/amdahl.h:
17799 * m/apollo.h:
17800 * m/att3b.h:
17801 * m/aviion-intel.h:
17802 * m/aviion.h:
17803 * m/celerity.h:
17804 * m/clipper.h:
17805 * m/cnvrgnt.h:
17806 * m/convex.h:
17807 * m/cydra5.h:
17808 * m/delta88k.h:
17809 * m/dpx2.h:
17810 * m/dual.h:
17811 * m/elxsi.h:
17812 * m/f301.h:
17813 * m/gould-np1.h:
17814 * m/gould.h:
17815 * m/i860.h:
17816 * m/ibmps2-aix.h:
17817 * m/ibmrt-aix.h:
17818 * m/ibmrt.h:
17819 * m/irist.h:
17820 * m/is386.h:
17821 * m/isi-ov.h:
17822 * m/mega68.h:
17823 * m/mg1.h:
17824 * m/news-r6.h:
17825 * m/news-risc.h:
17826 * m/news.h:
17827 * m/nh3000.h:
17828 * m/nh4000.h:
17829 * m/ns16000.h:
17830 * m/ns32000.h:
17831 * m/nu.h:
17832 * m/orion.h:
17833 * m/orion105.h:
17834 * m/paragon.h:
17835 * m/pfa50.h:
17836 * m/plexus.h:
17837 * m/pyramid.h:
17838 * m/pyrmips.h:
17839 * m/sh3el.h:
17840 * m/sps7.h:
17841 * m/sr2k.h:
17842 * m/stride.h:
17843 * m/sun1.h:
17844 * m/sun2.h:
17845 * m/sun3-68881.h:
17846 * m/sun3-fpa.h:
17847 * m/sun3-soft.h:
17848 * m/sun3.h:
17849 * m/sun386.h:
17850 * m/symmetry.h:
17851 * m/tad68k.h:
17852 * m/tahoe.h:
17853 * m/targon31.h:
17854 * m/tek4300.h:
17855 * m/tekxd88.h:
17856 * m/tower32.h:
17857 * m/tower32v3.h:
17858 * m/ustation.h:
17859 * m/wicat.h:
17860 * m/xps100.h:
17861 * s/cxux.h:
17862 * s/cxux7.h:
17863 * s/dgux.h:
17864 * s/dgux4.h:
17865 * s/dgux5-4-3.h:
17866 * s/dgux5-4r2.h:
17867 * s/esix.h:
17868 * s/esix5r4.h:
17869 * s/hiuxmpp.h:
17870 * s/hiuxwe2.h:
17871 * s/iris3-5.h:
17872 * s/iris3-6.h:
17873 * s/isc2-2.h:
17874 * s/isc3-0.h:
17875 * s/isc4-0.h:
17876 * s/isc4-1.h:
17877 * s/newsos5.h:
17878 * s/newsos6.h:
17879 * s/osf1.h:
17880 * s/osf5-0.h:
17881 * s/riscix1-1.h:
17882 * s/riscix12.h:
17883 * s/sco4.h:
17884 * s/sco5.h:
17885 * s/sunos4-0.h:
17886 * s/sunos4-1.h:
17887 * s/sunos413.h:
17888 * s/sunos4shr.h:
17889 * s/umax.h:
17890 * s/unipl5-2.h:
17891 * s/xenix.h:
17892 * cxux-crt0.s:
17893 * unexapollo.c:
17894 * unexconvex.c:
17895 * unexenix.c:
17896 * unexsni.c: Remove files for systems no longer supported.
17897
17898 * m/intel386.h: Remove references to unsupported systems.
17899
17900 * w32.c (get_emacs_configuration): Remove reference to i860.
17901
17902 * sysdep.c: Remove dead code.
17903
17904 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17905
17906 * s/rtu.h:
17907 * m/masscomp.h: Remove files. Platform is obsolete.
17908
17909 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17910
17911 * dbusbind.c (Fdbus_method_return): New function.
17912 (xd_read_message): Add the serial number to the event.
17913 (Fdbus_register_method): Activate the function.
17914
17915 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17916
17917 * keyboard.c (read_key_sequence): Fix typo.
17918
17919 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17920
17921 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17922 (xd_signature, xd_append_arg): Handle element type detection for
17923 empty arrays.
17924 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17925 SDATA () calls; this must be solved more general.
17926 (Fdbus_register_signal): Use SBYTES instead of strlen.
17927
17928 2008-01-03 Magnus Henoch <magnus@zemdatav>
17929
17930 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17931 unsigned int for byte values (necessary for big-endian platform).
17932 (Fdbus_call_method): Handle the case of no returned arguments.
17933
17934 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17935
17936 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17937
17938 2007-12-31 Magnus Henoch <mange@freemail.hu>
17939
17940 * dbusbind.c (xd_signature): Signature of variant is just "v".
17941
17942 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17943
17944 * dbusbind.c: Fix several errors and compiler warnings.
17945 Reported by Tom Tromey <tromey@redhat.com>.
17946 (XD_ERROR, XD_DEBUG_MESSAGE)
17947 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17948 (xd_append_arg): Part for basic D-Bus types rewritten.
17949 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17950 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17951 appropriate.
17952 (xd_read_message): Return Qnil. Don't signal an error; it is not
17953 useful during event reading.
17954 (Fdbus_register_signal): Signal an error if the check for
17955 FUNCTIONP fails.
17956 (Fdbus_register_method): New function. The implementation is not
17957 complete, the call of the function signals an error therefore.
17958 (Fdbus_unregister_object): New function, renamed from
17959 Fdbus_unregister_signal. The initial check signals an error, if
17960 the object is not well formed.
17961
17962 2007-12-30 Richard Stallman <rms@gnu.org>
17963
17964 * textprop.c (get_char_property_and_overlay):
17965 Signal error if POSITION is out of range in a buffer.
17966
17967 2007-12-29 Martin Rudalics <rudalics@gmx.at>
17968
17969 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17970 because the original parameters are in pure storage now.
17971
17972 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17973
17974 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17975
17976 2007-12-22 Eli Zaretskii <eliz@gnu.org>
17977
17978 * callint.c (syms_of_callint) <command-history>: Add reference to
17979 history-length in the doc string.
17980
17981 2007-12-17 Jason Rumney <jasonr@gnu.org>
17982
17983 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17984 before passing as wParam.
17985
17986 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
17987
17988 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17989 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17990 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17991 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17992 as number.
17993 (Fdbus_call_method): Fix docstring.
17994
17995 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
17996
17997 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17998 New macros.
17999 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18000 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18001 Simplify.
18002 (xd_signature): New function.
18003 (xd_append_arg): Compute also signatures. Major rewrite.
18004 (xd_retrieve_arg): Make debug messages friendly.
18005 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18006 Check for signatures of arguments.
18007
18008 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18009
18010 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18011 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18012 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18013 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18014 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18015 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18016 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18017 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18018 (xd_retrieve_value): Remove. Functionality included in ...
18019 (xd_append_arg): New function.
18020 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18021
18022 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18023
18024 * dbusbind.c (top): Include <stdio.h>.
18025 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18026 dbus_message_new_method_call and dbus_message_new_signal.
18027 (Fdbus_register_signal): Rename unique_name to uname.
18028 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18029 non-existing unique name. Fix typos in matching rule. Return an
18030 object which is useful in Fdbus_unregister_signal.
18031 (Fdbus_unregister_signal): Reimplementation, in order to remove
18032 only the corresponding entry.
18033 (Vdbus_registered_functions_table): Change the order of entries.
18034 Apply these changes in xd_read_message and Fdbus_register_signal.
18035
18036 2007-12-16 Andreas Schwab <schwab@suse.de>
18037
18038 * fileio.c (Finsert_file_contents): Fix overflow check to not
18039 depend on undefined integer overflow.
18040
18041 2007-12-14 Jason Rumney <jasonr@gnu.org>
18042
18043 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18044 for characters above 127.
18045
18046 2007-12-13 Jason Rumney <jasonr@gnu.org>
18047
18048 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18049 before dereferencing array.
18050 (lookup_vk_code): Remove zero comparison.
18051
18052 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18053
18054 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18055 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18056 Use `unsigned int' instead of `uint'.
18057 (xd_read_message, Fdbus_register_signal): Split expressions into
18058 multiple lines before operators "&&" and "||", according to the
18059 GNU Coding Standards.
18060
18061 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18062
18063 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18064
18065 2007-12-12 Juri Linkov <juri@jurta.org>
18066
18067 * buffer.c (Frename_buffer): In interactive spec replace
18068 `read-buffer' with `read-string' that uses `buffer-name-history'
18069 as history, and the current buffer's name as default.
18070
18071 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18072
18073 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18074 manipulating the backtrace manually.
18075 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18076 (struct backtrace, backtrace_list): Remove.
18077 (command_loop_1): Remove dead var `no_direct'.
18078
18079 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18080 preserve non-built-in buffer-local variables.
18081 (Fkill_all_local_variables): Don't re-create&re-set permanent
18082 buffer-local variables.
18083
18084 2007-12-09 Juri Linkov <juri@jurta.org>
18085
18086 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18087 Lisp code that uses `read-buffer' with current buffer as default.
18088
18089 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18090
18091 * dbusbind.c (xd_read_message): Generate an event for every
18092 registered handler. There might be several handlers registered
18093 for the same signal.
18094 (Fdbus_register_signal): Don't overwrite a registration for the
18095 same signal. Add a new registration if handlers are different.
18096 (Vdbus_registered_functions_table): Rework doc string.
18097
18098 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18099
18100 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18101 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18102 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18103 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18104 Unify argument lists.
18105 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18106 arguments and hash table keys. Use unique name for service.
18107 (Fdbus_unregister_signal): Remove checks.
18108 (Vdbus_registered_functions_table): Fix doc string.
18109
18110 2007-12-05 Magnus Henoch <mange@freemail.hu>
18111
18112 * process.c (make_process): Initialize pty_flag to 0.
18113
18114 2007-12-05 Jason Rumney <jasonr@gnu.org>
18115
18116 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18117 specified XBMs.
18118
18119 2007-12-05 Richard Stallman <rms@gnu.org>
18120
18121 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18122
18123 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18124
18125 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18126 New variable.
18127 (mac_try_close_socket) [MAC_OSX]: New function.
18128 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18129 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18130
18131 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18132 Use mac_try_close_socket.
18133
18134 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18135
18136 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18137 reloc_base.
18138 (copy_dysymtab): Compute relocation base here.
18139 (rebase_reloc_address) [__ppc64__]: New function.
18140 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18141 changed.
18142
18143 2007-12-05 Jason Rumney <jasonr@gnu.org>
18144
18145 * w32proc.c (sys_spawnve): Quote args with wildcards.
18146
18147 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18148
18149 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18150 __objc_* sections.
18151 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18152
18153 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18154
18155 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18156 Move check for Vdbus_registered_functions_table to
18157 xd_read_queued_messages.
18158 (xd_read_queued_messages): Protect xd_read_message calls by
18159 internal_condition_case_1.
18160
18161 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18162
18163 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18164 Qdbus_system_bus and Qdbus_session_bus, respectively.
18165 (Vdbus_intern_symbols): Remove.
18166 (Vdbus_registered_functions_table): New hash table.
18167 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18168 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18169 Rewrite in order to manage registered functions by hash table
18170 Vdbus_registered_functions_table.
18171
18172 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18173
18174 * xterm.c: Update URL to Window Manager Specification in comment.
18175
18176 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18177
18178 * config.in (HAVE_DBUS): Add.
18179
18180 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18181 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18182 (obj): Add $(DBUS_OBJ).
18183 (LIBES): Add $(DBUS_LIBS).
18184 (dbusbind.o): New target.
18185
18186 * dbusbind.c: New file.
18187
18188 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18189
18190 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18191 (Qdbus_event): New Lisp symbol.
18192 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18193 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18194 (keys_of_keyboard): Define dbus-event.
18195
18196 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18197
18198 2007-12-01 Richard Stallman <rms@gnu.org>
18199
18200 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18201
18202 2007-11-30 Jason Rumney <jasonr@gnu.org>
18203
18204 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18205 (w32con_reset_terminal_modes): Clear screen buffer.
18206 (w32_face_attributes): Don't use color indexes that are out of range.
18207 Only reverse the default colors.
18208
18209 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18210 WINDOWSNT.
18211
18212 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18213
18214 2007-11-29 Jason Rumney <jasonr@gnu.org>
18215
18216 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18217 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18218 if the terminal colors are initialized.
18219 (unspecified_fg, unspecified_bg): Remove unused declarations.
18220
18221 2007-11-29 Andreas Schwab <schwab@suse.de>
18222
18223 * keyboard.c (apply_modifiers): Fix typo.
18224
18225 2007-11-29 Richard Stallman <rms@gnu.org>
18226
18227 * keymap.c (Fcurrent_local_map): Doc fix.
18228
18229 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18230
18231 * s/gnu-kfreebsd.h: New file.
18232
18233 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18234
18235 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18236 Don't cast redundantly.
18237
18238 * keyboard.c (KEY_TO_CHAR): New macro.
18239 (parse_modifiers, apply_modifiers): Accept integer arguments.
18240 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18241 for chars and symbol keys.
18242 After doing such remapping, apply function-key-map again.
18243
18244 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18245
18246 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18247 compiled anymore.
18248
18249 2007-11-26 Andreas Schwab <schwab@suse.de>
18250
18251 * process.c (list_processes_1): Fix indentation level of the
18252 command column.
18253
18254 2007-11-23 Andreas Schwab <schwab@suse.de>
18255
18256 * editfns.c (Fformat): Handle %c specially since it requires the
18257 argument to be of type int.
18258
18259 2007-11-23 Markus Triska <markus.triska@gmx.at>
18260
18261 * emacs.c (main): Call init_editfns before init_process, since
18262 init_process sets Vprocess_connection_type depending on OS release.
18263
18264 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18265
18266 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18267 (find_symbol_value): Use do_symval_forwarding.
18268
18269 * data.c (set_internal): Set the value in the `cons-cell' (for
18270 Buffer_Local_values) not only for frame-local variables.
18271
18272 2007-11-22 Andreas Schwab <schwab@suse.de>
18273
18274 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18275 values to sprintf.
18276 * keymap.c (Fsingle_key_description): Likewise.
18277 * print.c (print_object): Likewise.
18278
18279 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18280
18281 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18282 file for image is nil.
18283
18284 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18285
18286 * term.c: Include stdarg.h.
18287 (fatal): Implement using varargs.
18288 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18289
18290 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18291
18292 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18293 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18294 Update call to buffer_slot_type_mismatch.
18295 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18296 (buffer_slot_type_mismatch): Update.
18297 * buffer.c (buffer_local_types): Remove.
18298 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18299 (defvar_per_buffer): Set the type in the buffer_objfwd.
18300
18301 2007-11-21 Jason Rumney <jasonr@gnu.org>
18302
18303 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18304 CreateFileMapping returns NULL on failure.
18305
18306 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18307
18308 * search.c (Fset_match_data): Remove the `evaporate' feature.
18309 (unwind_set_match_data): Don't use the `evaporate' feature.
18310
18311 2007-11-21 Jason Rumney <jasonr@gnu.org>
18312
18313 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18314
18315 * w32console.c (w32con_write_glyphs): Remove unused variables.
18316
18317 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18318
18319 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18320
18321 * s/darwin.h (MULTI_KBOARD): Remove.
18322
18323 * macfns.c (x_create_tip_frame, Fx_create_frame)
18324 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18325
18326 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * buffer.c (Fbuffer_local_value): Remove redundant test.
18329 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18330 than in `current-buffer' to match the comment.
18331 Do the swap using swap_in_global_binding.
18332
18333 * data.c (store_symval_forwarding, set_internal):
18334 * eval.c (specbind): Remove dead code.
18335
18336 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18337 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18338 Since we do not want to see internal Lisp_*fwd objects here.
18339
18340 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18341
18342 * sysdep.c (init_system_name): Use getaddrinfo if available.
18343
18344 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18345 (x_scroll_bar_note_movement): start, end, with, height in struct
18346 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18347
18348 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18349
18350 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18351
18352 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18353
18354 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18355 This undoes Richard's change of 14-Oct-2002.
18356
18357 * alloc.c (allocate_other_vector):
18358 * lisp.h (allocate_other_vector): Remove.
18359
18360 * window.c (struct save_window_data): Move non-lisp data to the end
18361 and make it `int' rather than Lisp_Object.
18362 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18363 Done wrap/unwrap integer values.
18364 (Fset_window_configuration, compare_window_configurations):
18365 Update use of fields to their new types.
18366
18367 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18368 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18369 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18370 (SET_SCROLL_BAR_X_WINDOW): Remove.
18371 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18372 Access the new x_window field directly.
18373 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18374 Don't wrap/unwrap integers into Lisp_Objects.
18375 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18376 (x_scroll_bar_report_motion):
18377 Don't wrap/unwrap integers into Lisp_Objects.
18378 (x_term_init): Use SDATA.
18379 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18380 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18381 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18382 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18383 * xfns.c (x_set_background_color):
18384 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18385 Access the new x_window field directly.
18386
18387 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18388 (allocate_pseudovector): Make non-static.
18389
18390 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18391 (allocate_pseudovector): Declare.
18392 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18393
18394 2007-11-15 Andreas Schwab <schwab@suse.de>
18395
18396 * editfns.c (Fformat): Correctly format EMACS_INT values.
18397 Also take precision into account when formatting an integer.
18398
18399 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18400
18401 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18404 (syms_of_keyboard): Defsubr it.
18405
18406 * data.c (swap_in_global_binding): Fix longstanding bug where
18407 store_symval_forwarding was not called with the right second argument,
18408 thus causing objfwd-ing from being dropped.
18409
18410 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18411
18412 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18413 (Fx_display_pixel_height, Fx_display_planes)
18414 (Fx_display_color_cells, Fx_server_max_request_size)
18415 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18416 (Fx_display_visual_class, Fx_display_save_under):
18417 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18418 (Fx_display_pixel_height, Fx_display_planes)
18419 (Fx_display_color_cells, Fx_server_max_request_size)
18420 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18421 (Fx_display_mm_height, Fx_display_mm_width)
18422 (Fx_display_backing_store, Fx_display_visual_class)
18423 (Fw32_select_font, Fx_display_save_under):
18424 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18425 (Fx_display_pixel_height, Fx_display_planes)
18426 (Fx_display_color_cells, Fx_server_max_request_size)
18427 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18428 (Fx_display_save_under): Fix typos in docstrings.
18429
18430 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18431
18432 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18433 corresponding to deleted entries; they are an implementation detail.
18434 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18435 Remove variables.
18436 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18437 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18438 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18439 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18440 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18441 (Fw32_define_rgb_color, Fw32_load_color_file)
18442 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18443 Fix typos in docstrings.
18444 (Fx_server_version): Reflow docstring.
18445 (Fw32_shell_execute): Doc fixes.
18446
18447 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18448
18449 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18450 if w32_parse_hot_key returned nil.
18451
18452 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18455
18456 2007-11-09 Jason Rumney <jasonr@gnu.org>
18457
18458 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18459
18460 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18461
18462 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18463 Remove W32_SCROLL_BAR_CLICK_EVENT.
18464
18465 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18466 Add MULTIMEDIA_KEY_EVENT.
18467
18468 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18469 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18470 (make_lispy_event) [WINDOWSNT]: Use it to translate
18471 MULTIMEDIA_KEY_EVENT.
18472
18473 * w32term.h (WM_APPCOMMAND): Define if not already.
18474 (GET_APPCOMMAND_LPARAM): Likewise.
18475
18476 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18477 WM_APPCOMMAND.
18478
18479 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18480 (syms_of_w32fns): Export and initialize it.
18481 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18482
18483 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18484
18485 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18486 twice.
18487
18488 * xdisp.c (handle_face_prop): Fix last change.
18489
18490 2007-11-09 Richard Stallman <rms@gnu.org>
18491
18492 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18493 not just for after-strings and before-strings.
18494 Call face_for_overlay_string and pass the overlay to it.
18495 (handle_display_prop): Determine whether property came from an overlay.
18496 Pass OVERLAY arg to handle_single_display_spec.
18497 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18498 (load_overlay_strings): Fill in it->string_overlays.
18499 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18500
18501 * xfaces.c (face_for_overlay_string): Function renamed from
18502 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18503
18504 * dispextern.h (struct it): New elt string_overlays.
18505 New elt from_overlay, also in stack.
18506 Rearrange a few elements.
18507 (face_for_overlay_string): Decl renamed from
18508 face_at_buffer_position_no_overlays, and add argument.
18509
18510 2007-11-09 Richard Stallman <rms@gnu.org>
18511
18512 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18513 to get the base face for an overlay string.
18514
18515 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18516
18517 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18518
18519 * xdisp.c (handle_stop): Move some code out of loop.
18520
18521 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18522
18523 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18524 Fix conversion from Lisp object to ATSUFontID.
18525
18526 2007-11-09 Jason Rumney <jasonr@gnu.org>
18527
18528 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18529
18530 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18531
18532 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18533 Don't assume regions are aligned to page boundary.
18534 (print_load_command_name): Add LC_UUID if defined.
18535
18536 2007-11-09 Richard Stallman <rms@gnu.org>
18537
18538 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18539
18540 2007-11-07 Jason Rumney <jasonr@gnu.org>
18541
18542 * s/windows95.h: Remove.
18543
18544 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18545
18546 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18547 abort with a message on unhandled store_type values.
18548
18549 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18550
18551 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18552 Remove HAVE_X11R5 and HAVE_X11R4.
18553
18554 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18555
18556 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18557
18558 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18559
18560 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18561 Don't set s->stippled_p here, since it has already been set by
18562 x_set_glyph_string_gc from x_draw_glyph_string.
18563
18564 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18565
18566 * sunfns.c: Remove file.
18567
18568 * m/sun386.h:
18569 * m/sun2.h:
18570 * m/sparc.h: Remove Sun windows code.
18571
18572 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18573
18574 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18575 (init_keyboard): Set current_kboard's window-system to nil.
18576 (tty_read_avail_input): Typo.
18577 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18578
18579 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18580
18581 * s/usg5-4.h:
18582 * s/usg5-3.h:
18583 * s/ptx.h:
18584 * m/is386.h:
18585 * m/ibmps2-aix.h:
18586 * Makefile.in: Remove all mentions of X10.
18587
18588 * dispnew.c (syms_of_display): Don't mention version 10.
18589
18590 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18591
18592 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18593 ($(BLD)/abbrev.$(O)): Remove.
18594
18595 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18596
18597 Rewrite abbrev.c in Elisp.
18598 * image.c (Qcount): Don't declare as extern.
18599 (syms_of_image): Initialize and staticpro `Qcount'.
18600 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18601 * emacs.c (main): Don't call syms_of_abbrev.
18602 * Makefile.in (obj): Remove abbrev.o.
18603 (abbrev.o): Remove.
18604 * abbrev.c: Remove.
18605
18606 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18607
18608 * window.c (window_min_size_2): Don't count header-line.
18609
18610 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18611
18612 * frame.h (struct frame): Move all bit fields after the first bit
18613 field to take advantage of the available space. Group all the
18614 chars together to reduce wasted space due to padding.
18615
18616 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18617
18618 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18619
18620 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18621 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18622 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18623 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18624 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18625 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18626 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18627 (last_marked, mark_object_loop_halt): Make static.
18628
18629 * frame.c (syms_of_frame) <delete-frame-functions>:
18630 Fix typo in docstring.
18631
18632 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18633
18634 * w32.c (init_environment): Fix tiny memory leak.
18635 (w32_get_resource): Remove unused variable `ok'.
18636
18637 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18638
18639 Make `window-system' into a keyboard-local variable (rather than
18640 frame-local as done originally by multi-tty).
18641
18642 * keyboard.h (struct kboard): Add Vwindow_system.
18643 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18644 (mark_kboards): Mark Vwindow_system.
18645
18646 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18647 (init_display): Don't set the obsolete `window-system' frame-param.
18648
18649 * xterm.c (x_term_init):
18650 * w32term.c (w32_create_terminal):
18651 * term.c (init_tty): Set Vwindow_system.
18652 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18653 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18654
18655 * xfns.c (Fx_create_frame, x_create_tip_frame):
18656 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18657 * macfns.c (Fx_create_frame):
18658 Don't set the obsolete `window-system' frame-param.
18659
18660 * frame.h (Qwindow_system): Remove.
18661 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18662 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18663
18664 2007-10-24 Richard Stallman <rms@gnu.org>
18665
18666 * frame.c (x_figure_window_size): For fullscreen case,
18667 set USPosition | PPosition without clobbering rest of window_prompting.
18668
18669 * keyboard.c (Fcurrent_idle_time): Doc fix.
18670
18671 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18672
18673 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18674
18675 * process.c (unwind_request_sigio): Only define if __ultrix__.
18676
18677 * callproc.c (child_setup): Remove spurious *.
18678
18679 * lisp.h (Fget_text_property): Declare.
18680 (have_menus_p): Declare it here rather than in sys-dep header files.
18681 * macterm.h (have_menus_p):
18682 * msdos.h (have_menus_p):
18683 * xterm.h (have_menus_p): Remove.
18684
18685 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18686 (Fmake_variable_frame_local): Just check the variable's const-ness
18687 rather than checking nil or t.
18688
18689 2007-10-22 Jason Rumney <jasonr@gnu.org>
18690
18691 * w32fns.c: Include math.h.
18692 (w32_abort): Declaration moved to nt/config.nt.
18693
18694 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18695 (abort): Redefinition moved to nt/config.nt.
18696
18697 * m/windowsnt.h: Remove.
18698
18699 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18700
18701 * emacs.c (Fdump_emacs): Fix typo in message.
18702 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18703 <installation-directory>: Reflow docstring.
18704
18705 2007-10-22 Juri Linkov <juri@jurta.org>
18706
18707 * minibuf.c: Allow minibuffer default to be a list of default values.
18708 With empty input use the first element of this list as returned default.
18709 (string_to_object)
18710 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18711 (read_minibuf): If defalt is cons, set histstring to its car.
18712 (Fread_string): If default_value is cons, set val to its car.
18713 (Fread_buffer): If def is cons, use its car.
18714 (Fcompleting_read): If defalt is cons, set val to its car.
18715
18716 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18717
18718 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18719
18720 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18721
18722 * doc.c (Fdocumentation): Check for advice in all cases.
18723
18724 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18725
18726 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18727
18728 2007-10-19 Richard Stallman <rms@gnu.org>
18729
18730 * doc.c (Fdocumentation): Check for and handle an advised function.
18731
18732 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18733
18734 * process.c (Fset_process_filter): Doc fix.
18735
18736 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18737
18738 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18739 which caused key-translation-map to applied repeatedly (thus breaking
18740 double-mode).
18741
18742 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18743
18744 * xselect.c (x_own_selection, x_handle_selection_clear)
18745 (x_clear_frame_selections):
18746 * w32menu.c (list_of_panes, list_of_items):
18747 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18748 * textprop.c (validate_plist, interval_has_all_properties)
18749 (interval_has_some_properties, interval_has_some_properties_list)
18750 (add_properties, text_property_list):
18751 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18752 * minibuf.c (Fassoc_string):
18753 * macselect.c (x_own_selection, x_clear_frame_selections)
18754 (Fx_disown_selection_internal):
18755 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18756 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18757
18758 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18759
18760 * process.c: Link to libs for calling res_init() if available.
18761 (Fmake_network_process): Call res_init() before getaddrinfo or
18762 gethostbyname, if possible.
18763
18764 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18765
18766 * lread.c (read1): Set pvectype for char_tables.
18767
18768 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18769 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18770 Add type checks.
18771 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18772
18773 * alloc.c (free_misc): Use XMISCTYPE.
18774 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18775
18776 2007-10-17 Glenn Morris <rgm@gnu.org>
18777
18778 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18779 (syms_of_minibuf): Add Qcompletion_ignore_case.
18780 * dired.c (Qcompletion_ignore_case): Change to external.
18781 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18782 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18783 (Fread_file_name): Use it rather than intern'ing.
18784
18785 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18786 (Fread_coding_system): Ignore case of user input.
18787
18788 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18789
18790 * xdisp.c (handle_display_prop): Ignore display specs after
18791 replacing one when string text is being replaced.
18792 (handle_single_display_spec): Pretend as if characters with display
18793 property haven't been consumed only when buffer text is being replaced.
18794
18795 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18796
18797 * xfns.c (Fx_create_frame, Fx_display_list):
18798 * window.c (window_fixed_size_p, enlarge_window)
18799 (shrink_window_lowest_first):
18800 * macterm.c (init_font_name_table):
18801 * macfns.c (Fx_create_frame, Fx_display_list):
18802 * lread.c (close_load_descs):
18803 * keyboard.c (read_char_x_menu_prompt):
18804 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18805 * coding.c (code_convert_region_unwind): Test the type of an object
18806 rather than just !NILP before extracting data from it.
18807
18808 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18809
18810 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18811 (XMISCANY): New macro.
18812 (XMISCTYPE): Use it.
18813 (struct Lisp_Misc_Any): New type.
18814 (union Lisp_Misc): Use it.
18815 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18816 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18817 (find_symbol_value, set_internal, default_value, Fset_default)
18818 (Fmake_variable_buffer_local, Fmake_local_variable)
18819 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18820 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18821 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18822 * alloc.c (allocate_buffer): Set the size and tag.
18823 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18824 Use XMISCANY.
18825 (die): Follow the GNU convention for error messages.
18826 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18827 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18828 tag any more.
18829 (set_buffer_internal_1):
18830 * frame.c (store_frame_param):
18831 * eval.c (specbind):
18832 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18833
18834 * doc.c (Fsnarf_documentation): Simplify.
18835
18836 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18837
18838 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18839 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18840
18841 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18842
18843 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18844
18845 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18846
18847 * eval.c (do_autoload): Don't save autoloads.
18848
18849 * data.c (Ffset): Save autoload of the function being set.
18850
18851 2007-10-07 John Paul Wallington <jpw@pobox.com>
18852
18853 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18854 parameter before setting up faces.
18855
18856 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18857
18858 * ccl.c (Fregister_code_conversion_map):
18859 * keyboard.c (append_tool_bar_item): Reformat last change.
18860
18861 * lisp.h (eabs): Rename from `abs'. All callers changed.
18862
18863 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18864
18865 * buffer.c (add_overlay_mod_hooklist):
18866 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18867 * fontset.c (make_fontset):
18868 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18869 (append_tool_bar_item):
18870 * macmenu.c (grow_menu_items):
18871 * w32menu.c (grow_menu_items):
18872 * xmenu.c (grow_menu_items): Use larger_vector.
18873
18874 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18875
18876 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18877 selected frame'' on MSDOS).
18878
18879 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18880
18881 * frame.c (Qexplicit_name): New variable.
18882 (x_report_frame_params): Report it in parameter alist.
18883 (syms_of_frame): Intern and staticpro it.
18884
18885 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18886
18887 * macfns.c (x_create_tip_frame): Set terminal for frame.
18888
18889 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18890
18891 * frame.c (Qenvironment): Remove.
18892 (syms_of_frame) <Qenvironment>: Don't initialize.
18893 (Fdelete_frame): Don't treat the `environment' param specially.
18894 * frame.h (Qenvironment): Don't declare.
18895 * callproc.c (set_initial_environment): Don't set unused frame param.
18896
18897 * frame.c (Fframe_with_environment): Remove.
18898 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18899
18900 * lisp.h (Fframe_with_environment): Don't declare.
18901
18902 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18903
18904 * indent.c (indent_tabs_mode, last_known_column)
18905 (last_known_column_modified): Make static.
18906 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18907
18908 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18909
18910 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18911
18912 2007-10-09 Jason Rumney <jasonr@gnu.org>
18913
18914 * w32term.c (x_set_window_size): Disable code that attempts to tell
18915 Lisp code about a size change before it actually happens.
18916
18917 2007-10-09 Richard Stallman <rms@gnu.org>
18918
18919 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18920 return HANDLED_RETURN.
18921
18922 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18923
18924 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18925 when there's an unread command event.
18926
18927 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18928 window autoselection act appropriately when leaving selected frame.
18929 (syms_of_frame): Initialize focus_follows_mouse.
18930 * frame.h (focus_follows_mouse): Extern it.
18931 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18932 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18933 * msdos.c (dos_rawgetc): Likewise.
18934 * w32term.c (w32_read_socket): Likewise.
18935 * xterm.c (handle_one_xevent): Likewise.
18936 * xdisp.c (syms_of_xdisp): In doc-string of
18937 mouse-autoselect-window mention focus-follows-mouse.
18938
18939 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18940
18941 * macterm.c (mac_load_query_font): Fix missing return value.
18942 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18943 Add BLOCK_INPUT.
18944
18945 2007-10-08 Richard Stallman <rms@gnu.org>
18946
18947 * xdisp.c (get_window_cursor_type): Implement documented behavior
18948 for cursor-in-non-selected-windows = t.
18949
18950 2007-10-08 Jason Rumney <jasonr@gnu.org>
18951
18952 * w32.c (w32_get_resource): Always close registry keys.
18953
18954 2007-10-08 Jason Rumney <jasonr@gnu.org>
18955
18956 * makefile.w32-in (LIBS): Add COMCTL32.
18957
18958 * w32fns.c (globals_of_w32fns): Init common controls.
18959
18960 2007-10-08 Richard Stallman <rms@gnu.org>
18961
18962 * image.c (our_memory_buffer): Rename from omfib_buffer.
18963
18964 2007-10-08 Richard Stallman <rms@gnu.org>
18965
18966 * buffer.c (Foverlays_at): Doc fix.
18967
18968 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18969
18970 * fns.c (Fplist_put): Preserve uneven tail data.
18971
18972 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18973
18974 * termhooks.h (enum event_kind): Remove trailing comma.
18975
18976 * frame.h (enum): Remove trailing comma.
18977
18978 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18979
18980 * w32proc.c (delete_child): Don't terminate threads of zombies.
18981
18982 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18983
18984 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18985
18986 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18987 last-repeatable-command.
18988 (init_kboard): Initialize Vlast_repeatable_command.
18989 (command_loop_1): Set it to real_this_command unless that was
18990 bound to an input event.
18991 (mark_kboards): Mark it.
18992
18993 2007-10-08 Richard Stallman <rms@gnu.org>
18994
18995 * eval.c (condition-case): Doc fix.
18996
18997 2007-10-08 Masatake YAMATO <jet@gyve.org>
18998
18999 * xfaces.c (tty_supports_face_attributes_p): Fix code
19000 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19001 was copied and not edited.
19002
19003 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19004
19005 Add new `input-decode-map' keymap and use it for terminal
19006 escape sequences.
19007 * keyboard.h (struct kboard): Add Vinput_decode_map.
19008 Remove Vlocal_key_translation_map.
19009 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19010 (init_kboard): Init input-decode-map.
19011 Replace local-key-translation-map back with key-translation-map.
19012 (syms_of_keyboard): Declare input-decode-map.
19013 Remove local-key-translation-map. Update docstrings.
19014 (mark_kboards): Mark Vinput_decode_map.
19015 Don't mark Vlocal_key_translation_map.
19016 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19017 Replace local-key-translation-map back with key-translation-map.
19018 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19019 Bind in input-decode-map rather than function-key-map.
19020
19021 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19022 This was made redundant by the previous introduction of XSETPVECTYPE.
19023
19024 2007-10-09 Richard Stallman <rms@gnu.org>
19025
19026 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19027
19028 2007-09-29 Richard Stallman <rms@gnu.org>
19029
19030 * eval.c (internal_condition_case_2, internal_condition_case_1)
19031 (internal_condition_case): Reenable abort if x_catching_errors ()
19032 to see if that really happens and why.
19033
19034 2007-10-06 Andreas Schwab <schwab@suse.de>
19035
19036 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19037
19038 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19039
19040 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19041
19042 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19043
19044 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19045
19046 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19047
19048 * window.h (struct window):
19049 * window.c (struct save_window_data, struct saved_window):
19050 * termhooks.h (struct terminal):
19051 * process.h (struct Lisp_Process):
19052 * frame.h (struct frame):
19053 * buffer.h (struct buffer):
19054 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19055 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19056 The size field of (pseudo)vectors is now unsigned.
19057 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19058
19059 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19060 Turn `count' into an integer.
19061
19062 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19063 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19064 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19065 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19066 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19067
19068 * alloc.c (allocate_pseudovector): New fun.
19069 (ALLOCATE_PSEUDOVECTOR): New macro.
19070 (allocate_window, allocate_terminal, allocate_frame)
19071 (allocate_process): Use it.
19072 (mark_vectorlike): New function.
19073 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19074 (mark_terminals): Use it.
19075 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19076 (Fmake_byte_code): Use XSETPVECTYPE.
19077
19078 * frame.c (Fframe_parameters): Minor simplification.
19079
19080 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19081
19082 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19083
19084 * buffer.c (Fget_buffer_create, init_buffer_once):
19085 * lread.c (defsubr):
19086 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19087
19088 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19089 defined differently in the m/*.h files.
19090 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19091 (XSETPVECTYPE): New macro.
19092 (XSETPSEUDOVECTOR): Use it.
19093
19094 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19095 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19096
19097 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19098 * lread.c (defvar_per_buffer):
19099 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19100
19101 * window.c (candidate_window_p): Only consider as visible frames that
19102 are on the same terminal.
19103
19104 * m/ibms390x.h (MARKBIT): Remove unused macro.
19105
19106 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19107
19108 * lread.c (Fload): Fix typo in docstring.
19109
19110 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19111
19112 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19113 of a non-zero value can't yield zero.
19114
19115 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19116
19117 * term.c (term_clear_mouse_face, term_mouse_highlight)
19118 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19119
19120 * print.c (safe_debug_print): Use XHASH.
19121
19122 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19123 Lisp elements such as tags.
19124 (XHASH): New macro.
19125 (EQ): Use it.
19126 (SREF, SSET, STRING_COPYIN): Use SDATA.
19127 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19128
19129 * alloc.c (mark_terminal): Remove left-over declaration.
19130 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19131 (allocate_vectorlike): Remove type argument. Adjust callers.
19132 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19133 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19134
19135 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19136 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19137 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19138 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19139 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19140 Use them.
19141
19142 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19143 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19144 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19145
19146 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19147
19148 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19149 loaded by default.
19150
19151 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19152
19153 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19154 on this tty.
19155 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19156
19157 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19158 Update all users.
19159 (handle_one_term_event): Use Gpm_DrawPointer.
19160 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19161 Signal errors instead of returning nil. Always return nil.
19162 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19163 Make it a noop if gpm-mouse was not activated.
19164 (syms_of_term): Update names.
19165
19166 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19167
19168 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19169 (init_sys_modes): Check that gpm_tty is the current tty.
19170
19171 * alloc.c (allocate_terminal): Set the vector size to only count the
19172 lisp fields. Initialize those to nil.
19173 (mark_object): Don't treat terminals specially.
19174 (mark_terminal): Remove.
19175 (mark_terminals): Use mark_object instead.
19176
19177 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19178 the GC to the beginning.
19179
19180 * indent.h:
19181 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19182
19183 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19184
19185 2007-09-25 Jason Rumney <jasonr@gnu.org>
19186
19187 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19188
19189 * w32console.c (create_w32cons_output): Remove.
19190
19191 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19192
19193 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19194 (reset_sys_modes): Use reset_terminal_modes_hook.
19195
19196 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * eval.c (do_autoload): Don't output any message.
19199
19200 2007-09-24 Juri Linkov <juri@jurta.org>
19201
19202 * emacs.c (standard_args): Change priority of "--no-splash"
19203 from 40 to 3. Add "--no-desktop" with the same priority.
19204
19205 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19206
19207 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19208 and optimize the case where they are all 1.
19209
19210 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19211
19212 * lisp.h (abs): Define if not defined.
19213 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19214 Don't define `abs', since it's defined in lisp.h.
19215
19216 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19217
19218 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19219 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19220 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19221 (init_tty): Use DEV_TTY instead of "/dev/tty".
19222 [WINDOWSNT]: No need to protect from NAME arg being null.
19223
19224 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19227 up the tty state.
19228
19229 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19230
19231 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19232 (gpm_tty): Change its type.
19233 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19234 (gpm_tty): Change its type and initialize it.
19235 (Fterm_open_connection): Check the frame is indeed a tty.
19236 Use the new gpm_tty.
19237 (Fterm_close_connection): Use the new gpm_tty.
19238 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19239 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19240
19241 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19242
19243 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19244 underline_color, to draw strike-through.
19245
19246 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19247
19248 * lisp.h (allocate_terminal): Declare.
19249
19250 * window.c (candidate_window_p): Consider frames that are being placed
19251 by the user as somewhere between visible and iconified.
19252 (window_loop): Prefer windows on the current frame.
19253 (Fselect_window): Move the use of select-frame to the beginning so we
19254 can just delegate all the work (it'll call us back anyway).
19255
19256 * frame.c (Qdisplay_environment_variable):
19257 * frame.h (Qdisplay_environment_variable): Delete.
19258
19259 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19260 of the first arg, since that value may be a union.
19261
19262 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19263 parameter rather than Qdisplay_environment_variable. If all else
19264 fails, look for DISPLAY in initial-environment.
19265
19266 2007-09-21 Glenn Morris <rgm@gnu.org>
19267
19268 * Makefile.in (emacstool): Remove target.
19269 (lisp, shortlisp): Remove termdev.elc.
19270
19271 2007-09-21 Markus Triska <markus.triska@gmx.at>
19272
19273 * xterm.c (x_delete_display): Compile session management conditionally.
19274
19275 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19276
19277 * callproc.c (getenv_internal_1): New function.
19278 (getenv_internal): Use it.
19279 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19280
19281 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19282 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19283 (Fset_terminal_parameter): Work with dead terminals as well.
19284 (Fmodify_terminal_parameters): Remove.
19285
19286 * terminal.c (get_terminal): Handle terminals.
19287 Make sure the terminal returned is live.
19288 (create_terminal): Use allocate_terminal.
19289 (mark_terminals): Move to alloc.c.
19290 (delete_terminal): Use terminal->name as liveness status.
19291 NULL out fields after freeing their contents.
19292 Don't deallocate the object.
19293 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19294 rather than an int.
19295 (Fterminal_live_p): Accept non-integer arguments.
19296 (Fterminal_list): Return terminal objects rather than an ints.
19297
19298 * alloc.c (enum mem_type): New member for `terminal' objects.
19299 (allocate_terminal): New function.
19300 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19301 Handle terminals.
19302 (mark_terminal): New fun.
19303 (mark_terminals): Move from terminal.c.
19304
19305 * term.c (get_tty_terminal): Don't treat output_initial specially.
19306 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19307 (delete_tty): Use terminal->name as liveness status.
19308
19309 * termhooks.h (struct terminal): Make it into a pseudovector.
19310 Remove `deleted' replaced by checking `name's nullness.
19311
19312 * print.c (print_object): Handle terminals.
19313
19314 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19315 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19316
19317 * frame.c (make_terminal_frame):
19318 * keyboard.c (tty_read_avail_input):
19319 * w32term.c (x_delete_terminal):
19320 * xfns.c (Fx_create_frame, x_create_tip_frame):
19321 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19322
19323 2007-09-20 Glenn Morris <rgm@gnu.org>
19324
19325 * process.c (Fmake_network_process): Doc fix.
19326
19327 2007-09-19 Jason Rumney <jasonr@gnu.org>
19328
19329 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19330
19331 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19332
19333 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19334 Fix a C warning regarding variable constness.
19335
19336 * xterm.c (handle_one_xevent): Fix a C warning.
19337
19338 2007-09-18 Jason Rumney <jasonr@gnu.org>
19339
19340 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19341
19342 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19343
19344 * gtkutil.c (gdpy_def): New variable.
19345 (xg_initialize): Initialize gdpy_def.
19346 (xg_display_close): If no other display exists, set gdpy_def to a
19347 new connection.
19348
19349 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19350
19351 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19352 when we have no file name for the icon.
19353 (xg_tool_bar_expose_callback): Remove.
19354 (xg_create_tool_bar): Don't connect expose signal to
19355 xg_tool_bar_expose_callback.
19356 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19357
19358 2007-09-16 Andreas Schwab <schwab@suse.de>
19359
19360 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19361 values instead of zapping them.
19362
19363 2007-09-14 Glenn Morris <rgm@gnu.org>
19364
19365 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19366 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19367 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19368 scope and rename to omfib_buffer for clarity.
19369 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19370
19371 2007-09-14 Kenichi Handa <handa@m17n.org>
19372
19373 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19374
19375 2007-09-13 Jason Rumney <jasonr@gnu.org>
19376
19377 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19378
19379 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19380
19381 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19382 (mac_term_init): Call here instead, passing rif.
19383
19384 2007-09-13 Glenn Morris <rgm@gnu.org>
19385
19386 * s/hpux.h: No longer define `static' as nothing.
19387
19388 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19389
19390 * callint.c (Fcall_interactively): Remove unused var `fun'.
19391
19392 2007-09-12 Romain Francoise <romain@orebokech.com>
19393
19394 * window.c (prefer_window_split_horizontally, display_buffer):
19395 Revert 2007-09-08 change.
19396
19397 2007-09-12 Glenn Morris <rgm@gnu.org>
19398
19399 * alloca.c: Remove file.
19400 * Makefile.in (alloca): Do not undef.
19401 (allocaobj, alloca.o): Remove.
19402 (otherobj): Remove allocaobj.
19403 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19404 * regex.c (C_ALLOCA): Remove all references and code that was only
19405 used when this was defined.
19406 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19407 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19408 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19409
19410 * Makefile.in (SOURCES, unlock, relock): Delete.
19411
19412 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19413 (menu_grab_callback): All uses changed.
19414
19415 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19416 (x_reply_selection_request): All uses changed.
19417
19418 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19419
19420 * lread.c (load_warn_old_style_backquotes): Change message to look
19421 better when it appears in the middle of byte-compiler messages.
19422
19423 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19424
19425 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19426
19427 * xterm.c (x_create_terminal): Add comment.
19428
19429 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19430
19431 2007-09-10 Richard Stallman <rms@gnu.org>
19432
19433 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19434
19435 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19436
19437 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19438 (DEFUN): Document `intspec', use it instead of `prompt'.
19439
19440 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19441
19442 * data.c (Finteractive_form): If the interactive specification starts
19443 with a `(', use it as a Lisp form.
19444
19445 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19446 name and file modes.
19447
19448 * callint.c (Fcall_interactively): Comment fixes.
19449
19450 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19451
19452 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19453 and compiled functions.
19454
19455 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19456
19457 * window.c (prefer_window_split_horizontally): New variable.
19458 (display_buffer): Consider splitting window horizontally depending
19459 on prefer_window_split_horizontally.
19460
19461 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19462
19463 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19464
19465 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19466
19467 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19468
19469 * frame.c (x_set_frame_parameters): Check number is positive before
19470 using XFASTINT.
19471
19472 * window.c (freeze_window_start): Don't presume selected_window holds
19473 a window object.
19474 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19475
19476 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19477
19478 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19479
19480 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19481
19482 * window.c (Vsplit_window_preferred_function): New var.
19483 (Fdisplay_buffer): Use it.
19484 (syms_of_window): Export, and initialize it.
19485
19486 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19487
19488 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19489
19490 2007-09-06 Glenn Morris <rgm@gnu.org>
19491
19492 * gtkutil.c (menu_grab_callback) <cnt>:
19493 * xselect.c (x_reply_selection_request) <cnt>: Move static
19494 variable to file scope.
19495
19496 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19497
19498 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19499 consistent values of selected_frame and selected_window.
19500
19501 2007-09-04 Jason Rumney <jasonr@gnu.org>
19502
19503 * w32console.c (initialize_w32_display): Zero unused hooks.
19504
19505 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19506
19507 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19508 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19509
19510 2007-09-04 Jason Rumney <jasonr@gnu.org>
19511
19512 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19513 in w32console.c. Set up input. Remove XXX comments that have been
19514 confirmed as correct.
19515
19516 * s/ms-w32.h (MULTI_KBOARD): Define.
19517
19518 * w32console.c (one_and_only_w32cons): Remove.
19519 (initialize_w32_display): Take terminal argument.
19520
19521 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19522 initialize_w32_display.
19523 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19524
19525 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19526
19527 * keyboard.c (discard_mouse_events): Discard it.
19528 (make_lispy_event): Translate it to a lisp event.
19529 (lispy_wheel_names): Add wheel-left and right events.
19530 (syms_of_keyboard): Enlarge wheel_syms.
19531
19532 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19533 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19534
19535 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19536
19537 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19538 from WM_MOUSEHWHEEL.
19539 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19540
19541 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19542 terminal.
19543
19544 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19545 keyboard for the terminal.
19546
19547 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19548
19549 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19550 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19551 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19552 and resume-tty-function to resume-tty-hook.
19553 (Fsuspend_tty, Fresume_tty): Use new names.
19554
19555 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19556
19557 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19558 if it starts with "n:".
19559
19560 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19561
19562 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19563
19564 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19565
19566 * frame.h:
19567 * frame.c (Qterm_environment_variable): Remove.
19568 (syms_of_frame): Don't init and staticpro it.
19569
19570 * callproc.c (getenv_internal): Remove special case for $TERM.
19571
19572 * callproc.c (Vinitial_environment): New variable.
19573 (set_initial_environment): Initialize it.
19574 (syms_of_callproc): Declare it.
19575 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19576 TERM under which a process runs is never related to the TERM in which
19577 Emacs is running.
19578
19579 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19580
19581 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19582 * s/darwin.h: ... do it here.
19583
19584 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19585
19586 * lisp.h (set_initial_environment): Rename from set_global_environment.
19587
19588 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19589 removed by mistake on the multi-tty branch.
19590
19591 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19592 (Fmodify_frame_parameters): Return a value.
19593
19594 * image.c (png_load): Comment-out var only used in commented-out code.
19595
19596 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19597 before passing it to mark_object.
19598
19599 * xfaces.c (internal_resolve_face_name): Return a value.
19600 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19601
19602 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19603 (x_icon): Comment-out var only used in commented-out code.
19604
19605 2007-08-29 Romain Francoise <romain@orebokech.com>
19606
19607 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19608 QUIT hasn't been provided.
19609
19610 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19611
19612 * callproc.c (child_setup, getenv_internal): Use the
19613 display-environment-variable and term-environment-variable frame params.
19614 (set_initial_environment): Initialise Vprocess_environment.
19615
19616 * config.in: Disable multi-keyboard support on a mac.
19617
19618 * frame.c (Qterm_environment_variable)
19619 (Qdisplay_environment_variable): New variables.
19620 (syms_of_frame): Intern and staticpro them.
19621 (Fmake_terminal_frame): Disable output method test.
19622
19623 * frame.h: Declare them here.
19624
19625 * macfns.c (x_set_mouse_color): Get rif from the frame.
19626 (x_set_tool_bar_lines): Don't use updating_frame.
19627 (mac_window): Add 2 new parameters for consistency with other systems.
19628 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19629 frame parameters following what is done in X11 and w32. Don't use
19630 FRAME_MAC_DISPLAY_INFO.
19631 (Fx_open_connection, start_hourglass): Remove window-system check.
19632 (x_create_tip_frame): Get the keyboard from the terminal.
19633
19634 * macmenu.c: Reorder includes.
19635 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19636
19637 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19638 terminal parameter.
19639 (x_clear_frame): Add a frame parameter.
19640 (note_mouse_movement): Get rif from the frame.
19641 (mac_term_init): Initialize the terminal.
19642 (mac_initialize): Make static and move terminal initialization ...
19643 (mac_create_terminal): ... to this new function.
19644
19645 * macterm.h (struct mac_display_info): Add terminal.
19646 (mac_initialize): Delete declaration.
19647
19648 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19649
19650 * sysdep.c: Comment out text after #endif.
19651
19652 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19653 is defined. Better initialize ttys in windows. Use terminal
19654 specific mouse_position_hook.
19655
19656 * termhooks.h (union display_info): Add mac_display_info.
19657
19658 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19659 Set the default minibuffer frame, window_system and the rest of the
19660 frame parameters following what is done in X11.
19661
19662 * w32term.c (w32_initialize): Make static.
19663
19664 * xselect.c (x_handle_selection_clear): Only access
19665 terminal->kboard when MULTI_KBOARD is defined.
19666
19667 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19668 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19669
19670 2007-08-29 Jason Rumney <jasonr@gnu.org>
19671
19672 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19673 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19674
19675 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19676 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19677
19678 * keyboard.c (restore_kboard_configuration): Only define when
19679 MULTI_KBOARD defined.
19680
19681 * makefile.w32-in: Update dependancies from Makefile.in.
19682 (OBJ1): Add terminal.$(O)
19683
19684 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19685 Don't define function body.
19686 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19687
19688 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19689
19690 * w32.c (request_sigio, unrequest_sigio): Remove.
19691
19692 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19693 (w32con_clear_frame, w32con_clear_end_of_line)
19694 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19695 (w32con_delete_glyphs, w32con_set_terminal_window)
19696 (scroll_line, w32_sys_ring_bell): Add frame arg.
19697 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19698 Add terminal arg.
19699 (PICK_FRAME): Remove.
19700 (w32con_write_glyphs): Use frame specific terminal coding.
19701 (one_and_only_w32cons): New global variable.
19702 (initialize_w32_display): Use it for storing hooks.
19703 (create_w32cons_output): New function.
19704
19705 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19706 arg a frame.
19707
19708 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19709 Set window_system.
19710 (x_set_tool_bar_lines): Don't use updating_frame.
19711 (Fx_create_frame): Set terminal and ref count.
19712 (Fx_open_connection): Remove window-system check.
19713
19714 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19715
19716 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19717 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19718 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19719 Add frame arg.
19720 (x_delete_terminal, w32_create_terminal): New functions.
19721 (w32_term_init): Create a terminal.
19722 (w32_initialize): Move terminal specific initialization to
19723 w32_create_terminal.
19724
19725 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19726 (w32_clear_rect, w32_clear_area): Use background from frame.
19727 (w32_display_info): Add terminal.
19728 (w32_sys_ring_bell, x_delete_display): Declare here.
19729
19730 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19731
19732 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19733
19734 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19735
19736 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19737 Fix get_named_tty calls for the controlling tty.
19738
19739 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19740
19741 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19742
19743 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19744
19745 * term.c (tty_insert_glyphs): Add missing first parameter.
19746
19747 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19748
19749 * buffer.c (Fbuffer_list, Fbury_buffer):
19750 Take frame->buried_buffer_list into account.
19751
19752 * cm.c (current_tty): New variable, for cmputc().
19753 (cmputc): Use it.
19754 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19755 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19756 (cmgoto): Add tty parameter. Pass it on to calccost().
19757 Use emacs_tputs() instead of tputs().
19758
19759 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19760 tputs().
19761 (current_tty): New variable, for cmputc().
19762 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19763
19764 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19765 (internal_condition_case, internal_condition_case_1)
19766 (internal_condition_case_2): Don't abort when x_catching_errors.
19767
19768 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19769 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19770 prevent crashes caused by bogus longjmps in read_char.
19771
19772 * keymap.h (Fset_keymap_parent): Add EXFUN.
19773
19774 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19775 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19776 Remove redundant definition.
19777
19778 * macfns.c (x_set_mouse_color, x_make_gc):
19779 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19780
19781 * w32term.c (x_free_frame_resources):
19782 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19783 (w32_initialize): Use the accessor macros for terminal characteristics.
19784
19785 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19786 Use the accessor macros for terminal characteristics.
19787 * msdos.c (internal_terminal_init): Use the accessor macros for
19788 terminal characteristics.
19789 (ScreenVisualBell, internal_terminal_init):
19790 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19791
19792 * termopts.h (no_redraw_on_reenter): Declare.
19793
19794 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19795 (mark_terminals, mark_ttys): Declare.
19796 (Fgarbage_collect): Call them.
19797 (mark_object): Mark buried_buffer_list.
19798
19799 * prefix-args.c: Include stdlib.h for exit.
19800
19801 * syssignal.h: Add comment.
19802
19803 * indent.c: Include stdio.h.
19804
19805 * window.h (Vinitial_window_system): Declare.
19806 (Vwindow_system): Delete declaration.
19807
19808 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19809
19810 * image.c (lookup_image): Don't initialize `c' until the xasserts
19811 have been run.
19812
19813 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19814 FRAME_FOREGROUND_PIXEL.
19815
19816 * print.c (print_preprocess): Don't lose print_depth levels while
19817 iterating.
19818
19819 * widget.c (update_from_various_frame_slots):
19820 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19821
19822 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19823 frames.
19824 (window_internal_height): Remove bogus make_number call.
19825 (init_window_once): Call make_terminal_frame with two zero parameters.
19826
19827 * fileio.c (Fread_file_name): Update comment.
19828
19829 * callint.c (Fcall_interactively):
19830 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19831 Make sure it is correctly unwound.
19832
19833 * xsmfns.c (x_session_close): New function.
19834
19835 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19836 Delete declarations.
19837
19838 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19839 (x_output): Remove background_pixel and foreground_pixel fields.
19840 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19841 (x_delete_device, x_session_close): Declare.
19842
19843 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19844 (read_filtered_event): Call `read_char' with a local
19845 `wrong_kboard_jmpbuf'.
19846
19847 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19848 Don't call single_kboard_state. Use FRAME_RIF.
19849
19850 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19851 systems.
19852
19853 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19854 (Fframe_with_environment, Fset_input_meta_mode)
19855 (Fset_quit_char): EXFUN.
19856 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19857 (init_sys_modes, reset_sys_modes): Update prototypes.
19858 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19859
19860 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19861 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19862 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19863 Delete declarations.
19864 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19865 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19866 New declarations.
19867
19868 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19869 already does that during init_display(). Call syms_of_keymap
19870 before syms_of_keyboard. Call `syms_of_terminal'.
19871 Call set_initial_environment, not set_process_environment.
19872 (shut_down_emacs): Call reset_all_sys_modes() instead of
19873 reset_sys_modes().
19874
19875 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19876 (internal_resolve_face_name, resolve_face_name_error): New functions.
19877 (resolve_face_name): Protect against loops and errors thrown by Fget.
19878 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19879 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19880
19881 * scroll.c: Replace CURTTY() with local variables throughout the
19882 file (where applicable).
19883 (calculate_scrolling, calculate_direct_scrolling)
19884 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19885 characteristics.
19886
19887 * keymap.c (Vfunction_key_map): Remove.
19888 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19889 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19890 (Vkey_translation_map): Remove.
19891 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19892 (Fdescribe_buffer_bindings)
19893 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19894 Update for terminal-local key-translation-map.
19895
19896 * Makefile.in (callproc.o): Update dependencies.
19897 (lisp, shortlisp): Add termdev.elc.
19898 (obj): Add terminal.o.
19899 (terminal.o): Add dependencies.
19900 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19901 (data.o, fns.o): Add termhooks.h dependency.
19902 (SOME_MACHINE_LISP): Add dnd.elc.
19903 (minibuf.o): Fix typo.
19904 Update dependencies.
19905
19906 * data.c (do_symval_forwarding, store_symval_forwarding)
19907 (find_symbol_value): Use the selected frame's keyboard, not
19908 current_kboard.
19909
19910 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19911 Vwindow_system.
19912
19913 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19914 Fmenu_bar_open.
19915 (syms_of_xmenu): Update defsubr.
19916 (mouse_position_for_popup, Fx_popup_menu)
19917 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19918 (set_frame_menubar, free_frame_menubar)
19919 (create_and_show_popup_menu, xmenu_show)
19920 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19921 an X frame.
19922
19923 * xselect.c (x_own_selection): Abort if not an X frame.
19924 (some_frame_on_display): Check if it is an X frame.
19925 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19926
19927 * coding.c: Include frame.h and termhooks.h.
19928 (terminal_coding, keyboard_coding): Delete.
19929 (Fset_terminal_coding_system_internal)
19930 (Fset_keyboard_coding_system_internal)
19931 (Fkeyboard_coding_system)
19932 (Fterminal_coding_system): Add a terminal parameter.
19933 Get terminal_coding from the terminal.
19934 (init_coding_once): Don't call setup_coding_system here.
19935
19936 * dispextern.h (set_scroll_region, turn_off_insert)
19937 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19938 (tty_clear_end_of_line, tty_setup_colors)
19939 (delete_tty, updating_frame)
19940 (produce_special_glyphs, produce_glyphs, write_glyphs)
19941 (insert_glyphs): Remove.
19942 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19943 (tty_turn_off_highlight, get_tty_size): Add declaration.
19944 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19945
19946 * frame.h (enum output_method): Add output_initial.
19947 (struct x_output): Delete.
19948 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19949 Access foreground_pixel and background_pixel directly from the frame.
19950 (tty_display): Delete.
19951 (struct frame): Add buried_buffer_list, foreground_pixel,
19952 background_pixel and terminal. Delete kboard.
19953 (union output_data): Add tty.
19954 (FRAME_KBOARD): Get the kboard from the terminal.
19955 (FRAME_INITIAL_P): New macro.
19956 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19957 (Qterm_environment_variable, Qdisplay_environment_variable)
19958 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19959 New declarations.
19960
19961 * termchar.h (tty_output, tty_display_info): New structures.
19962 (tty_list): Declare.
19963 (FRAME_TTY, CURTTY): New macros.
19964 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19965 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19966 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19967 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19968
19969 * callproc.c: Include frame.h and termhooks.h, for terminal
19970 parameters.
19971 (add_env): New function.
19972 (child_setup): Use it.
19973 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19974 (getenv_internal): Fix get_terminal_param call.
19975 (Fgetenv_internal, egetenv): Update doc.
19976 (syms_of_callproc): Initialize Vprocess_environment to nil.
19977 Register and initialize them. Remove obsolete defvars. Update doc
19978 strings.
19979 (child_setup): Handle Vlocal_environment_variables.
19980 (getenv_internal): Add terminal parameter.
19981 Handle Vlocal_environment_variables.
19982 (Fgetenv_internal): Add terminal parameter.
19983 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19984 environment in a frame (not terminal) parameter. Update doc strings.
19985 (set_initial_environment): Rename from set_global_environment.
19986 Store Emacs environment in initial frame parameter.
19987
19988 * xdisp.c (redisplay_internal): Update references to
19989 `previous_terminal_frame'.
19990 (display_mode_line, Fformat_mode_line): Replace calls to
19991 `push_frame_kboard' with `push_kboard'.
19992 (get_glyph_string_clip_rects): Add extra parentheses and
19993 braces to prevent compiler warnings.
19994 (calc_pixel_width_or_height): Add xassert to check that the
19995 frame is alive. Don't call `lookup_image' on a termcap frame.
19996 (message2_nolog, message3_nolog, redisplay_internal)
19997 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19998 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19999 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20000 (Fx_display_pixel_width, Fx_display_pixel_height)
20001 (Fx_display_planes, Fx_display_color_cells)
20002 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20003 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20004 (Fx_display_backing_store, Fx_display_visual_class)
20005 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20006 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20007
20008 * xfns.c (x_set_foreground_color x_set_background_color)
20009 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20010 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20011 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20012 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20013 terminal that is being deleted.
20014 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20015 frame parameter, and make sure it overrides any user-supplied setting.
20016 (Fx_close_connection, Fx_synchronize): Unify argument names with
20017 the rest of the DEFUNs.
20018
20019 * dispnew.c (Fsend_string_to_terminal): Update call to
20020 `get_tty_terminal'.
20021 (Fredraw_frame, Fsend_string_to_terminal)
20022 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20023 FRAME_TERMCAP_P and FRAME_TTY.
20024 (window_change_signal): Don't believe width/height values that are
20025 impossibly small.
20026 (Vinitial_window_system): Rename from Vwindow_system.
20027 (termscript, Wcm, rif): Delete.
20028
20029 * termhooks.h (struct terminal): New struct containing the
20030 previously global text display hooks and new members NAME,
20031 DELETED and PARAM_ALIST.
20032 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20033 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20034 (FRAME_RIF): New macros.
20035 (get_terminal_param, get_device): New declarations.
20036 (termscript): Delete declaration.
20037
20038 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20039 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20040 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20041 FRAME_FOREGROUND_PIXEL.
20042 (x_fully_uncatch_errors): Disable definition.
20043 (x_scroll_bar_expose): Fix reference to foreground pixel.
20044 (XTread_socket): Disable loop on all X displays.
20045 (x_delete_terminal): Don't set terminal->deleted and let
20046 delete_terminal delete the frames on the terminal.
20047 (x_delete_display): Doc update to reflect changes in
20048 delete_terminal.
20049 (x_display_info) <terminal>: Move member earlier in the struct.
20050 (deleting_tty): Remove old variable.
20051 (Fsuspend_tty): Call clear_tty_hooks.
20052 (Fresume_tty, init_tty): Call set_tty_hooks.
20053 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20054 errors on X frames.
20055 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20056 (handle_one_xevent): Initialize `f' to NULL.
20057 (x_delete_terminal, x_create_terminal): New functions.
20058 (XTset_terminal_modes, XTreset_terminal_modes)
20059 (XTread_socket, x_connection_closed, x_term_init)
20060 (x_term_init, x_delete_display): Add terminal parameter.
20061 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20062 X connections.
20063
20064 * frame.c: Include termchar.h.
20065 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20066 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20067 (Qdisplay_environment_variable): New vars.
20068 (Fframep): Deal with output_initial.
20069 (Fframe-live-p): Doc fix.
20070 (Fwindow-system): New function.
20071 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20072 (make_terminal_frame): Don't create frames on a terminal that is
20073 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20074 (store_frame_param): Check for found_for_frame before calling XFRAME.
20075 (Fmake_terminal_frame): Handle NULL tty names correctly.
20076 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20077 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20078 frames to refer to a deleted frame in their 'environment parameter.
20079 (Fframe_with_environment): New function.
20080 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20081 (get_future_frame_param): New function.
20082 (Fmake_terminal_frame): Use it.
20083 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20084
20085 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20086 * sysdep.c (reset_sys_modes): Update for renames.
20087
20088 * keyboard.c (tty_read_avail_input): New function.
20089 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20090 (syms_of_keyboard): Defsubr them.
20091 (Fset_input_meta_mode, Fset_quit_char): New functions.
20092 (Fset_input_mode): Split to above functions.
20093 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20094 parameter. Use it in call to `read_char'.
20095 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20096 Set wrong_kboard_jmpbuf correctly in recursive calls.
20097 Use current_kboard to access Vkeyboard_translate_table.
20098 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20099 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20100 Update longjmp invocations. Remember the original current_kboard,
20101 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20102 changes it. Comment out unnecessary calls to
20103 `record_single_kboard_state' and `any_kboard_state'.
20104 Update recursive calls.
20105 (wrong_kboard_jmpbuf): Remove global variable.
20106 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20107 Handle deleted interrupted_kboards correctly; that is a legal
20108 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20109 and read_char calls. Abort if interrupted_kboard died in read_char.
20110 (any_kboard_state, single_kboard_state)
20111 (push_frame_kboard): Remove function.
20112 (pop_kboard): Switch out of single_kboard mode if the kboard has
20113 been deleted. Remove unused variable. Help debugging by not
20114 changing current_kboard unnecessarily. Set current_kboard to the
20115 kboard of the selected frame when the stored kboard object has
20116 been deleted before pop_kboard.
20117 (temporarily_switch_to_single_kboard): Change first parameter to a
20118 frame pointer. Throw an error when caller wants to change kboards
20119 while in single_kboard mode. Don't push_kboard if we weren't in
20120 single kboard state. Don't pop_kboard if we popped into any
20121 kboard state.
20122 (restore_kboard_configuration): Abort if pop_kboard changed the
20123 kboard in single_kboard mode. Call pop_kboard only after setting
20124 up single_kboard mode.
20125 (Frecursive_edit): Switch to single_kboard mode only in nested
20126 command loops.
20127 (cmd_error, command_loop, command_loop_1, timer_check):
20128 Comment out unnecessary call to `any_kboard_state' and
20129 `record_single_kboard_state'.
20130 (delete_kboard): Exit single_kboard mode if we have just deleted
20131 that kboard. Use FRAME_KBOARD.
20132 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20133 `fatal_error_signal'.
20134 (record_single_kboard_state): Don't push_kboard if we weren't in
20135 single kboard state. Don't pop_kboard if we popped into any
20136 kboard state.
20137 (push_frame_kboard): Rename to push_kboard.
20138 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20139 (read_avail_input): Read input from all terminals.
20140 (mark_kboards): Also mark Vkeyboard_translate_table.
20141 (kbd_buffer_store_event_hold): Simplify condition.
20142 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20143 (Vkeyboard_translate_table): Move to struct kboard.
20144 (init_kboard): Initialize Vkeyboard_translate_table.
20145 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20146 Vkeyboard_translate_table. Update doc strings. Update docs of
20147 local-function-key-map and function-key-map.
20148
20149 * terminal.c: New file.
20150
20151 * term.c: Include errno.h.
20152 (Vring_bell_function, device_list, initial_device)
20153 (next_device_id, ring_bell, update_begin, update_end)
20154 (set_terminal_window, cursor_to, raw_cursor_to)
20155 (clear_to_end, clear_frame, clear_end_of_line)
20156 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20157 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20158 (syms_of_term): Move their initialization to terminal.c.
20159 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20160 (Ftty_display_color_cells)
20161 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20162 (clear_tty_hooks, set_tty_hooks)
20163 (init_tty, maybe_fatal): New functions.
20164 (Ftty_type): Return nil if terminal is not on a tty instead of
20165 throwing an error. Doc update.
20166 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20167 Doc update. Initialize new subrs and variables.
20168 (delete_tty): Use terminal->deleted.
20169 (tty_set_terminal_modes): Rename from set_terminal_modes.
20170 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20171 (set_scroll_region): Rename to `tty_set_scroll_region'.
20172 (turn_on_insert): Rename to `tty_turn_on_insert'.
20173 (turn_off_insert): Rename to `tty_turn_off_insert'.
20174 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20175 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20176 (toggle_highligh): Rename to `tty_toggle_highlight'.
20177 (background_highlight): Rename to `tty_background_highlight'.
20178 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20179 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20180 (tty_set_scroll_region, tty_background_highlight)
20181 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20182 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20183 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20184 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20185 Add static modifier.
20186 (tty_reset_terminal_modes, tty_set_terminal_window)
20187 (tty_set_scroll_region, tty_background_highlight)
20188 (tty_highlight_if_desired, tty_cursor_to)
20189 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20190 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20191 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20192 renames.
20193
20194 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20195
20196 * keyboard.c: Qrtl is new.
20197 (parse_tool_bar_item): Handle :rtl keyword.
20198 (syms_of_keyboard): Intern :rtl keyword.
20199
20200 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20201
20202 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20203 so no Lisp code is executed.
20204 (file_for_image, find_rtl_image): New functions.
20205 (xg_get_image_for_pixmap): Use file_for_image.
20206 (update_frame_tool_bar): If direction is RTL, use RTL image if
20207 defined. Use Gtk stock images if defined.
20208
20209 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20210
20211 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20212 for nonexistent or zero-width glyph in composition glyph.
20213
20214 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20215
20216 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20217
20218 * xdisp.c (Finvisible_p): New function.
20219 (syms_of_xdisp): defsubr it.
20220
20221 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20222
20223 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20224 Doc fixes.
20225
20226 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20227
20228 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20229
20230 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20231
20232 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20233 whether decoding has modified buffer contents.
20234
20235 2007-08-24 Jason Rumney <jasonr@gnu.org>
20236
20237 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20238 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20239 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20240 (init_svg_functions) [HAVE_NTGUI]: New function.
20241 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20242 (svg_load_image): Use them.
20243 (svg_load_image) [HAVE_NTGUI]: Implement background.
20244
20245 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20246
20247 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20248 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20249 (LIBX): Remove @RSVG_LIBS@.
20250 (LIBES): Add $(RSVG_LIBS).
20251
20252 * image.c (svg_load_image): Blend with specified background if exists.
20253 Use IMAGE_BACKGROUND. Add Mac OS Support.
20254
20255 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20256 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20257 Remove macros.
20258 [MAC_OSX] (socket_callback): Do nothing.
20259 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20260 ReceiveNextEvent.
20261 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20262 socket_callback.
20263 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20264
20265 2007-08-22 Glenn Morris <rgm@gnu.org>
20266
20267 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20268
20269 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20270
20271 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20272
20273 * image.c: Add support for SVG images. Some additional comments
20274 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20275 (svg_image_p): New function to test for SVG image.
20276 (svg_load): New function to load SVG image.
20277 (svg_load_image): New function, helper for svg_load.
20278 (Qsvg): New Lisp_object.
20279 (svg_keyword_index): New enum.
20280 (svg_format): New static `image_keyword' struct.
20281 (svg_type): New static `image_type' struct.
20282 (librsvg/rsvg.h): Include it.
20283
20284 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20285
20286 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20287
20288 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20289
20290 * lread.c (Qold_style_backquotes): New var.
20291 (syms_of_lread): Init and staticpro it.
20292 (load_warn_old_style_backquotes): New fun.
20293 (Fload): Use them to warn about old style backquotes.
20294 (end_of_file_error, Fload): Remove unused vars.
20295
20296 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20297
20298 * lread.c (Vold_style_backquotes): New var.
20299 (syms_of_lread): Init and export it to Elisp.
20300 (read1): Set it when we find an old-style (back)quote.
20301
20302 2007-08-22 Jason Rumney <jasonr@gnu.org>
20303
20304 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20305
20306 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20307
20308 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20309
20310 2007-08-19 Richard Stallman <rms@gnu.org>
20311
20312 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20313
20314 2007-08-19 Andreas Schwab <schwab@suse.de>
20315
20316 * alloc.c (pure): Round PURESIZE up.
20317
20318 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20319
20320 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20321 active frame.
20322
20323 2007-08-16 Richard Stallman <rms@gnu.org>
20324
20325 * eval.c (Fcommandp): Add parens to clarify.
20326
20327 * minibuf.c (Fall_completions): Use enum for type of table.
20328
20329 * emacs.c (USAGE2): Improve text.
20330
20331 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20332
20333 * term.c (tty_default_color_capabilities): Declare static
20334 variables in file scope, to avoid HPUX compiler problem.
20335
20336 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20337
20338 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20339 to gtk_toolbar_insert.
20340
20341 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20342
20343 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20344
20345 * insdel.c (reset_var_on_error): New fun.
20346 (signal_before_change, signal_after_change):
20347 Use it to reset (after|before)-change-functions to nil in case of error.
20348 Bind inhibit-modification-hooks to t.
20349 Don't bind (after|before)-change-functions to nil while they run.
20350
20351 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20352
20353 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20354 filling pixmap with stippled background.
20355
20356 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20357
20358 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20359 Don't use invisible frame as parent window for repositioning.
20360
20361 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20362
20363 * print.c (new_backquote_output): Rename from old_backquote_output.
20364 (print): Inverse its logic (according to its name) so as to match the
20365 behavior of new_backquote_flag in lread.c.
20366
20367 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20368
20369 * gmalloc.c (posix_memalign): New function.
20370
20371 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20372 ActivateControl/DeactivateControl here.
20373 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20374 frame-notice-user-settings is non-nil.
20375 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20376 for kEventParamFMFontStyle.
20377 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20378 mac_pass_command_to_system and mac_pass_control_to_system here.
20379 (XTread_socket): Call ActivateControl/DeactivateControl here.
20380 (XTread_socket) [TARGET_API_MAC_CARBON]:
20381 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20382 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20383 for window repositioning.
20384
20385 2007-08-08 Glenn Morris <rgm@gnu.org>
20386
20387 * Replace `iff' in doc-strings and comments.
20388
20389 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20390
20391 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20392
20393 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20394
20395 * fileio.c (Finsert_file_contents): Run format-decode and
20396 after_insert_file_functions on entire buffer when REPLACE is
20397 non-nil and inhibit modification_hooks and point_motion_hooks.
20398 For consistency, run after_insert_file_functions iff something
20399 got inserted. Move signal_after_change and update_compositions
20400 after code running after_insert_file_functions. Make sure that
20401 undo_list doesn't record intermediate steps of the decoding process.
20402
20403 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20404
20405 * emacs.c (main)
20406 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20407 Call malloc_enable_thread on interactive startup.
20408
20409 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20410 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20411 [USE_PTHREAD]: Conditionalize with it.
20412 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20413 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20414 New functions.
20415
20416 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20417
20418 * xdisp.c (redisplay_window): When restoring original buffer
20419 position, make sure it is still valid.
20420
20421 * image.c (png_load): Ignore png-supplied background color.
20422
20423 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20424
20425 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20426 Use kCFAbsoluteTimeIntervalSince1970.
20427
20428 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20429 New variable.
20430 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20431 event loop should be quit.
20432 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20433 Quit dialog event loop if quit_dialog_event_loop is set.
20434
20435 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20436 (Selection): New typedef. Use instead of ScrapRef.
20437 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20438 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20439 (mac_clear_selection): Rename from clear_scrap.
20440 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20441 scrap_has_target_type. All uses changed.
20442 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20443 (mac_selection_has_target_p): New functions.
20444 (mac_put_selection_value): Rename from put_scrap_string.
20445 (mac_get_selection_value): Rename from get_scrap_string.
20446 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20447 (put_scrap_private_timestamp, scrap_has_target_type)
20448 (get_scrap_private_timestamp): Remove functions.
20449 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20450 (x_own_selection, x_get_local_selection):
20451 Use mac_valid_selection_value_p.
20452 (x_own_selection): Don't use put_scrap_private_timestamp.
20453 Record OWNERSHIP-INFO into Vselection_alist instead.
20454 (x_get_local_selection): Don't check type if request is local.
20455 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20456 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20457
20458 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20459
20460 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20461 add comment explaining why.
20462
20463 2007-08-03 Richard Stallman <rms@gnu.org>
20464
20465 * fileio.c (Fvisited_file_modtime): Use make_time.
20466
20467 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20468
20469 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20470 build.
20471
20472 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20473
20474 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20475
20476 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20477
20478 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20479
20480 2007-07-30 Richard Stallman <rms@gnu.org>
20481
20482 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20483
20484 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20485
20486 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20487
20488 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20489
20490 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20491 remote default-directory.
20492
20493 * buffer.c (mode-line-format): Update doc string.
20494
20495 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20496
20497 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20498 scroll bar gap.
20499 (x_scroll_bar_create): Set bar->fringe_extended_p.
20500 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20501 on frame edge. Check fringe background extension. Don't clear
20502 extended fringe background area.
20503
20504 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20505 (w32_fill_area): Enclose multiple statements with do ... while (0).
20506
20507 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20508 Extend fringe background to scroll bar gap.
20509 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20510 Set bar->fringe_extended_p.
20511 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20512 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20513 background extension. Don't clear extended fringe background area.
20514
20515 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20516 New member fringe_extended_p.
20517
20518 2007-07-25 Glenn Morris <rgm@gnu.org>
20519
20520 * Relicense all FSF files to GPLv3 or later.
20521
20522 * COPYING: Switch to GPLv3.
20523
20524 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20525
20526 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20527
20528 * data.c (Finteractive_form): Check for the presence of an
20529 `interactive-form' symbol property more thoroughly.
20530
20531 * data.c (Finteractive_form): Use an `interactive-form' property if
20532 present, analogous to the function-documentation property.
20533
20534 2007-07-24 Jason Rumney <jasonr@gnu.org>
20535
20536 * w32fns.c (x_real_positions): Get real position from OS instead of
20537 calculating it.
20538
20539 2007-07-23 Jason Rumney <jasonr@gnu.org>
20540
20541 * filelock.c (current_lock_owner): Allow for @ sign in username.
20542
20543 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20544
20545 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20546 remote default-directory.
20547
20548 * buffer.c (mode-line-format): Describe above case in doc string.
20549
20550 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20551
20552 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20553 Define if not defined.
20554
20555 2007-07-18 Jason Rumney <jasonr@gnu.org>
20556
20557 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20558
20559 2007-07-18 Richard Stallman <rms@gnu.org>
20560
20561 * data.c (Fsetq_default): Doc fix.
20562
20563 * eval.c (Fsetq): Doc fix.
20564
20565 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20566
20567 * coding.c (Ffind_operation_coding_system):
20568 * eval.c (For, Fand): Doc fixes.
20569 Reported by Johan Bockgård.
20570
20571 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20572
20573 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20574
20575 * xterm.h: Declare x_ewmh_activate_frame.
20576
20577 * xterm.c (x_ewmh_activate_frame): New function.
20578 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20579
20580 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20581
20582 * window.c (Fdisplay_buffer): If largest or LRU window is the
20583 only window, split it even if it is not eligible for splitting.
20584 This restores the original behavior broken by the 2007-07-15
20585 change.
20586
20587 2007-07-17 Glenn Morris <rgm@gnu.org>
20588
20589 * abbrev.c (abbrev_check_chars): New function.
20590 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20591 Call abbrev_check_chars to check abbrev characters are word
20592 constituents. Doc fix.
20593
20594 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20595
20596 * process.c (Fstart_process, Fmake_network_process)
20597 (read_process_output): Fix up last changes.
20598
20599 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20600
20601 * makefile.w32-in (clean): Don't delete *~.
20602
20603 2007-07-16 Andreas Schwab <schwab@suse.de>
20604
20605 * window.c (Fdisplay_buffer): Use NILP.
20606 (Fset_window_scroll_bars): Likewise.
20607
20608 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20609
20610 * window.c (window_min_size_2): New function.
20611 (window_min_size_1, size_window, Fdisplay_buffer)
20612 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20613 windows without mode- or header-lines when window-min-height is
20614 too small.
20615 (size_window): Reset nodelete_p after testing it, following an
20616 earlier note by Kim F. Storm.
20617 (display_buffer): Do not set split_height_threshold to twice the
20618 value of window_min_height to avoid changing the value of a
20619 customizable variable. Rather explicitly check whether the
20620 height of the window that shall be splitted is at least as large
20621 as split_height_threshold.
20622 (Fwindow_full_width_p): New defun.
20623 (syms_of_window): Defsubr it.
20624
20625 * window.h: Add EXFUN for Fwindow_full_width_p.
20626
20627 2007-07-14 Jason Rumney <jasonr@gnu.org>
20628
20629 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20630
20631 2007-07-14 Richard Stallman <rms@gnu.org>
20632
20633 * eval.c (maybe_call_debugger): New function.
20634 (find_handler_clause): Use maybe_call_debugger.
20635 Call it when the handler says `debug'.
20636 Eliminate DEBUGGER_VALUE_PTR.
20637 (Fsignal): Eliminate debugger_value.
20638 (Qdebug): New variable.
20639 (syms_of_eval): Initialize it.
20640
20641 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20642
20643 * eval.c (Fprogn):
20644 * keyboard.c (Ftrack_mouse):
20645 * print.c (Fwith_output_to_temp_buffer):
20646 * window.c (Fsave_window_excursion): Doc fix.
20647
20648 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20649
20650 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20651
20652 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20653
20654 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20655 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20656 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20657 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20658 Remove unused encoding_carryover.
20659 * process.c: Adjust all functions accordingly.
20660
20661 2007-07-12 Richard Stallman <rms@gnu.org>
20662
20663 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20664
20665 2007-07-11 Jason Rumney <jasonr@gnu.org>
20666
20667 * makefile.w32-in (LIBS): Include OLE32.
20668
20669 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20670 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20671
20672 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20673
20674 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20675 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20676 from a Lisp_Object into a bare pointer.
20677 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20678 Adjust the code correspondingly.
20679
20680 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20681
20682 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20683 (term_show_mouse_face): Remove unused var `j'.
20684 (handle_one_term_event): Remove unused vars `i' and `j'.
20685 Don't cast return value of ttyname since it's not necessary.
20686
20687 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20688
20689 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20690 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20691
20692 * fns.c (map_char_table): Use an array of int for `indices' rather than
20693 an array of Lisp_Objects (which are only ever integers anyway).
20694 (Fmap_char_table): Update caller.
20695 * lisp.h: Update prototype.
20696 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20697 * fontset.c (Ffontset_info):
20698 * casetab.c (set_case_table): Update callers.
20699
20700 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20701
20702 * keymap.c (struct accessible_keymaps_data)
20703 (struct where_is_internal_data): New structures.
20704 (accessible_keymaps_1, where_is_internal_1): Use them to change
20705 interface to adhere to the one used by map_keymap.
20706 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20707 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20708
20709 * keymap.h (map_keymap_function_t): More informative prototype.
20710
20711 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20712
20713 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20714 (looking_at_1): Don't change search_regs and last_thing_searched
20715 if `inhibit-changing-match-data' is non-nil.
20716 (string_match_1, search_buffer, set_search_regs): Likewise.
20717 (syms_of_search): Add Lisp level definition for
20718 `inhibit-changing-match-data' and set it to nil.
20719 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20720 start and end of the match, instead of using values in search_regs.
20721
20722 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20723
20724 * minibuf.c (Fcompleting_read): New value `confirm-only'
20725 for `require-match'.
20726
20727 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20728
20729 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20730 part of the 2007-06-27 change to syms_of_fileio.
20731
20732 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20733
20734 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20735 Check WINDOWP before using XWINDOW. Consolidate return statements.
20736
20737 2007-06-27 Richard Stallman <rms@gnu.org>
20738
20739 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20740
20741 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20742
20743 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20744
20745 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20746
20747 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20748 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20749 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20750 (_free_internal, memalign): Use them.
20751 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20752 Initialize to PTHREAD_MUTEX_INITIALIZER.
20753 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20754 (morecore_nolock): Rename from morecore. All uses changed.
20755 Use only nolock versions of internal allocation functions.
20756 (_malloc_internal_nolock, _realloc_internal_nolock)
20757 (_free_internal_nolock): New functions created from
20758 _malloc_internal, _realloc_internal, and _free_internal.
20759 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20760 Copy hook value to automatic variable before its use.
20761 (memalign): Copy hook value to automatic variable before its use.
20762
20763 2007-06-26 Kenichi Handa <handa@m17n.org>
20764
20765 * coding.c (Ffind_operation_coding_system): Docstring improved.
20766 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20767
20768 2007-06-25 David Kastrup <dak@gnu.org>
20769
20770 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20771 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20772 cater for additional parameter.
20773
20774 * keymap.h: Adjust number of parameters to `current-active-maps'.
20775
20776 * doc.c (Fsubstitute_command_keys): Adjust call of
20777 `current-active-maps'.
20778
20779 2007-06-25 David Kastrup <dak@gnu.org>
20780
20781 * callint.c (Fcall_interactively): Make the parsing of interactive
20782 specs somewhat more readable.
20783
20784 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20785
20786 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20787 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20788 if extended background has already been filled.
20789
20790 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20791
20792 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20793 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20794
20795 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20796 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20797 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20798 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20799 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20800 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20801 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20802 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20803 Run timers during dialog popup.
20804 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20805
20806 2007-06-21 Jason Rumney <jasonr@gnu.org>
20807
20808 * image.c (convert_mono_to_color_image): Swap fore and background.
20809
20810 2007-06-20 Jason Rumney <jasonr@gnu.org>
20811
20812 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20813 (w32_free_bdf_font): Unmap memory not handle.
20814
20815 2007-06-20 Sam Steingold <sds@gnu.org>
20816
20817 * gmalloc.c (__morecore): Fix the declaration to comply with the
20818 definition.
20819
20820 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20821
20822 * w32term.c (w32_delete_display): Remove leftover declaration.
20823 (w32_define_cursor, w32_initialize): Make static.
20824
20825 * w32.c (_wsa_errlist): Fix typo in error message.
20826 (init_environment): Ignore any environment variable from the
20827 registry having a null value.
20828
20829 2007-06-20 Glenn Morris <rgm@gnu.org>
20830
20831 * Makefile.in (LIBGIF): Default to -lgif.
20832
20833 2007-06-17 Jason Rumney <jasonr@gnu.org>
20834
20835 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20836 unicode strings.
20837
20838 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20839
20840 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20841 Fix typo in docstring.
20842
20843 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20844
20845 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20846 and their keybindings.
20847
20848 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20849
20850 * composite.c (update_compositions): Fix last fix.
20851
20852 2007-06-14 Jason Rumney <jasonr@gnu.org>
20853
20854 * w32.c (get_process_times_fn): New function pointer.
20855 (globals_of_w32): Intialize it if present in kernel32.dll.
20856 (w32_get_internal_run_time): New function.
20857
20858 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20859
20860 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20861
20862 * composite.c (update_compositions): Check the validness of
20863 compositions.
20864
20865 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20866
20867 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20868 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20869
20870 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20871 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20872
20873 * macgui.h (USE_MAC_TOOLBAR): New define.
20874
20875 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20876 Return immediately unless popup is activated.
20877
20878 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20879 background to scroll bar gap.
20880 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20881 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20882 scroll bars on frame edge. Check fringe background extension.
20883 Don't clear extended fringe background area.
20884 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20885 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20886 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20887 [USE_MAC_TOOLBAR]: New macros.
20888 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20889 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20890 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20891 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20892 [USE_MAC_TOOLBAR]: New functions.
20893 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20894 manually if previous repositioning has failed.
20895 (mac_handle_keyboard_event): Use precomputed event kind.
20896 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20897 as tool bar item click. Handle mouse movement over tool bar items.
20898
20899 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20900 toolbar_win_gravity.
20901 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20902 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20903 Add externs.
20904
20905 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20906 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20907
20908 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20909
20910 * image.c (search_image_cache): Remove unused variable.
20911
20912 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20913
20914 * xfns.c, xmenu.c: Link to xaw3d if available.
20915
20916 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20917
20918 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20919 frame_foreground and frame_background.
20920
20921 * image.c (lookup_image): Save frame foreground and background colors.
20922 (search_image_cache): Check if saved and current frame colors match.
20923
20924 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20925
20926 * regex.c (regex_compile): Remove the `regnum' counter.
20927 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20928
20929 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20930
20931 * term.c: Include intervals.h to declare Fget_text_property.
20932
20933 2007-06-10 Jason Rumney <jasonr@gnu.org>
20934
20935 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20936
20937 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20938
20939 * callint.c (Fcall_interactively):
20940 * editfns.c (Fdelete_and_extract_region):
20941 * fileio.c (Fread_file_name):
20942 * fns.c (Fmapconcat):
20943 * keyboard.c (cmd_error_internal):
20944 * keymap.c (Fkey_description):
20945 * lread.c (openp):
20946 * minibuf.c (read_minibuf):
20947 * search.c (wordify):
20948 * sunfns.c (sel_read):
20949 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20950 * xfns.c (x_default_scroll_bar_color_parameter):
20951 * xmenu.c (menu_help_callback):
20952 * xselect.c (Fx_get_atom_name):
20953 * xterm.c (x_term_init): Use empty_unibyte_string.
20954
20955 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20956
20957 * alloc.c (init_strings): Initialize canonical empty strings.
20958 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20959 canonical empty string when the requested size is 0.
20960
20961 * emacs.c (empty_unibyte_string): Rename from empty_string.
20962 (empty_multibyte_string): New canonical empty string.
20963 (syms_of_emacs): Don't initialize empty_string.
20964
20965 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20966 string, if appropriate.
20967 (empty_unibyte_string, empty_multibyte_string): New externs.
20968 (empty_string): Remove extern.
20969
20970 * lread.c (syms_of_lread): Use empty_unibyte_string.
20971
20972 2007-06-07 Jason Rumney <jasonr@gnu.org>
20973
20974 * s/ms-w32.h: Don't define HAVE_TZNAME.
20975
20976 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20977
20978 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20979
20980 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20981
20982 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20983 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20984
20985 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20986 Don't call next handler.
20987 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20988 Remove argument. Install handler to application.
20989 (set_frame_menubar): Don't change deep_p.
20990 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20991 FRAME_OUTER_TO_INNER_DIFF_Y.
20992 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20993 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20994 [HAVE_DIALOGS]: New macros.
20995 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20996 Use them.
20997 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20998
20999 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21000 init_service_handler. All callers changed. Return OSStatus value.
21001
21002 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21003 All callers changed so as not to call SetPortWindowPort.
21004 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21005 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21006 mac_draw_string_common.
21007 (mac_draw_image_string_qd): Likewise.
21008 (mac_draw_string_common): Use them. Add INLINE.
21009 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21010 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21011 GetGlobalMouse.
21012 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21013 and FRAME_OUTER_TO_INNER_DIFF_Y.
21014 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21015 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21016 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21017 repositioning window to mac_handle_window_event.
21018 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21019 saving window location to mac_handle_window_event
21020 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21021 (install_menu_target_item_handler): Remove argument in extern.
21022 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21023 Also accept command events.
21024 (do_keystroke): New function created from XTread_socket.
21025 (init_command_handler): Remove functions.
21026 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21027 and save window location by kEventWindowShowing and kEventWindowHiding
21028 handlers here. Don't call next handler for window state change and
21029 focus events.
21030 (mac_handle_application_event, mac_handle_keyboard_event)
21031 [TARGET_API_MAC_CARBON]: New functions.
21032 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21033 kEventWindowShowing and kEventWindowHiding events. Move installation
21034 of mouse, font, text input and menu target item handlers to
21035 install_application_handler.
21036 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21037 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21038 New function.
21039 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21040 Register it.
21041 (XTread_socket) [TARGET_API_MAC_CARBON]:
21042 Consolidate SendEventToEventTarget calls.
21043 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21044 Move application activation handler to mac_handle_application_event.
21045 Move keyboard handler to mac_handle_keyboard_event.
21046 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21047 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21048 init_command_handler. Call install_application_handler.
21049
21050 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21051 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21052
21053 2007-06-07 Glenn Morris <rgm@gnu.org>
21054
21055 * emacs.c (main): Use `emacs-copyright' in --version output.
21056
21057 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21058
21059 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21060
21061 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21062
21063 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21064
21065 * macgui.h: Replace WindowPtr with WindowRef.
21066
21067 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21068 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21069 Replace ControlHandle with ControlRef.
21070 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21071
21072 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21073 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21074 Replace ControlHandle with ControlRef.
21075 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21076 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21077
21078 * macterm.h (struct scroll_bar): Rename member control_handle_low
21079 and control_handle_high to control_ref_low and control_ref_high.
21080 All uses changed.
21081 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21082 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21083 respectively. All uses changed.
21084 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21085 (install_window_handler, remove_window_handler): Replace WindowPtr
21086 with WindowRef in externs.
21087
21088 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21089
21090 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21091
21092 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21093
21094 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21095
21096 * frame.c (Fmouse_position, Fmouse_pixel_position):
21097 Condition on HAVE_GPM too.
21098
21099 * term.c (term_mouse_highlight): Remove unused variables.
21100 (Fterm_open_connection): Set gpm_zerobased to 1.
21101 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21102 Use zero based co-ordinates.
21103 (handle_one_term_event): Report a drag as mouse movement too.
21104
21105 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21106
21107 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21108
21109 * image.c (search_image_cache): New function. Require background
21110 color match if background color is unspecified in the image spec.
21111 (uncache_image, lookup_image): Use it.
21112
21113 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21114
21115 * window.c (Fshrink_window): Reflow docstring.
21116
21117 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21118
21119 * Version 22.1 released.
21120
21121 2007-06-01 Richard Stallman <rms@gnu.org>
21122
21123 * xfns.c (x_encode_text): Add GCPRO.
21124
21125 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21126
21127 * xfns.c (x_set_name_internal): Save encoded name before
21128 x_encode_text in case string data is relocated.
21129
21130 2007-05-31 Richard Stallman <rms@gnu.org>
21131
21132 * buffer.c (syms_of_buffer): Doc fix.
21133
21134 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21135
21136 * sysdep.c (init_sys_modes): Add rather than replace with
21137 O_NONBLOCK.
21138
21139 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21140 term_mouse_moveto.
21141
21142 * termhooks.h (term_mouse_moveto): New extern.
21143
21144 * term.c (mouse_face_window): Rename...
21145 (Qmouse_face_window): ...to this.
21146 (term_show_mouse_face, term_clear_mouse_face)
21147 (term_mouse_highlight): Use Qmouse_face_window.
21148 (term_mouse_moveto): New function.
21149 (term_mouse_position): Make it work.
21150 (syms_of_term): Uncomment assignment to mouse_position_hook.
21151 Staticpro Qmouse_face_window.
21152
21153 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21154
21155 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21156 around current_column call.
21157
21158 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21159
21160 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21161 * xdisp.c (next_element_from_buffer):
21162 * window.c (delete_window):
21163 * term.c (term_mouse_highlight):
21164 * msdos.c (getdefdir):
21165 * macterm.c (mac_create_bitmap_from_bitmap_data)
21166 (init_font_name_table):
21167 * fns.c (Fsxhash):
21168 * data.c (Fmake_local_variable):
21169 * ccl.c (ccl_driver): Likewise.
21170
21171 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21172
21173 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21174 Call mac_wakeup_from_rne on window size change.
21175
21176 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21177
21178 * image.c (uncache_image): Fix typo.
21179
21180 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21181
21182 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21183
21184 2007-05-22 Richard Stallman <rms@gnu.org>
21185
21186 * xterm.c (x_connection_closed): Remove NO_RETURN.
21187
21188 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21189
21190 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21191
21192 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21193
21194 * image.c (uncache_image): New function.
21195 (Fimage_refresh): New function.
21196
21197 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21198
21199 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21200
21201 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21202
21203 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21204 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21205
21206 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21207
21208 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21209 conditional on [HAVE_GPM_H].
21210
21211 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21212
21213 * syntax.c (skip_chars): Update syntax-table only after we checked that
21214 the new location is valid.
21215
21216 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21217
21218 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21219 mac_get_window_bounds.
21220
21221 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21222
21223 * Makefile.in (LIBGPM): Allow it to be set from configure.
21224 If set then link Emacs with it.
21225
21226 * config.in: Regenerate.
21227
21228 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21229 New externs.
21230
21231 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21232 Include gpm.h.
21233 (handle_one_term_event, term_gpm): New externs.
21234
21235 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21236 and allow it to be interrupted by SIGIO.
21237
21238 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21239 (wait_reading_process_output): Wait on gpm_fd too.
21240 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21241 (add_gpm_wait_descriptor_called_flag): New variable.
21242 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21243
21244 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21245 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21246 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21247 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21248 (make_lispy_event): Add case GPM_CLICK_EVENT.
21249 (read_avail_input): Handle mouse input.
21250
21251 * term.c (write_glyphs_with_face): New function.
21252 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21253 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21254 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21255 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21256 (last_mouse_x, last_mouse_y): New variables.
21257 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21258 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21259 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21260 (Fterm_close_connection): New functions.
21261 (term_init): Initialise mouse_face_window.
21262
21263 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
21264
21265 * xdisp.c (redisplay_window): If first window line is a
21266 continuation line, recompute the new window start instead of
21267 recentering.
21268
21269 2007-05-18 Glenn Morris <rgm@gnu.org>
21270
21271 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21272 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21273
21274 2007-05-17 Glenn Morris <rgm@gnu.org>
21275
21276 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21277
21278 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21279
21280 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21281 dead key repeat and up events.
21282
21283 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21284
21285 * image.c (pbm_load): Check image size for monochrome pbm.
21286
21287 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21288
21289 * xterm.c (XTread_socket): Revert last change.
21290
21291 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21292
21293 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21294
21295 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21296
21297 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21298
21299 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21300 mixup (YAILOM).
21301
21302 2007-05-07 Andreas Schwab <schwab@suse.de>
21303
21304 * keymap.c (Flookup_key): Fix typo in last change.
21305
21306 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21307
21308 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21309 mapping for unibyte strings.
21310
21311 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21312
21313 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21314 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21315
21316 2007-04-29 Richard Stallman <rms@gnu.org>
21317
21318 * insdel.c (replace_range): For undo, record insertion first.
21319
21320 2007-04-29 Andreas Schwab <schwab@suse.de>
21321
21322 * lisp.h (VECSIZE): Use OFFSETOF.
21323
21324 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21325
21326 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21327 disabled lines.
21328
21329 2007-04-28 Richard Stallman <rms@gnu.org>
21330
21331 * lread.c (read_escape): In a string, \s is always space.
21332
21333 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21334
21335 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21336
21337 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21338 submenu for menu bar items.
21339
21340 See ChangeLog.10 for earlier changes.
21341
21342 ;; Local Variables:
21343 ;; coding: utf-8
21344 ;; add-log-time-zone-rule: t
21345 ;; End:
21346
21347 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
21348
21349 This file is part of GNU Emacs.
21350
21351 GNU Emacs is free software: you can redistribute it and/or modify
21352 it under the terms of the GNU General Public License as published by
21353 the Free Software Foundation, either version 3 of the License, or
21354 (at your option) any later version.
21355
21356 GNU Emacs is distributed in the hope that it will be useful,
21357 but WITHOUT ANY WARRANTY; without even the implied warranty of
21358 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21359 GNU General Public License for more details.
21360
21361 You should have received a copy of the GNU General Public License
21362 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21363
21364 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40