]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Fix gc bug in terminal allocation.
[gnu-emacs] / src / ChangeLog
1 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4 during call to vendor-specific-keysyms (Bug#5365).
5
6 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7
8 * keyboard.c (input_available_signal) [SYNC_INPUT]:
9 Call SIGNAL_THREAD_CHECK (Bug#5333).
10
11 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
12 Call SIGNAL_THREAD_CHECK.
13
14 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 Try to fix bug#5314. This is probably not the final word, tho.
17 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
18 recent-auto-save-p as a side-effect.
19 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
20 * buffer.c (Fkill_buffer, reset_buffer):
21 * editfns.c (Fsubst_char_in_region):
22 * fileio.c (Finsert_file_contents, Fdo_auto_save)
23 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
24
25 2010-01-13 Kenichi Handa <handa@m17n.org>
26
27 Display buffer name, etc. in mode line by composing correctly.
28
29 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
30 STRING is not nil.
31 (display_mode_element): Adjust for the change of
32 decode_mode_spec and display_line.
33 (decode_mode_spec): Change arg MULTIBYTE to STRING.
34 (display_string): Handle the case that STRING is non-null and
35 LISP_STRING is not nil.
36
37 * xterm.c (x_draw_composite_glyph_string_foreground):
38 Pay attention to s->face->overstrike.
39
40 * composite.c (composition_reseat_it): Don't check PT if STRING is
41 non nil.
42
43 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
44
45 * keyboard.c (read_char): Don't apply previous change when current
46 buffer is unchanged by command execution.
47
48 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
49
50 * keyboard.c (read_char): Return after executing from special map.
51
52 2010-01-12 Glenn Morris <rgm@gnu.org>
53
54 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
55 bug-gnu-emacs rather than emacs-pretest-bug.
56
57 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
58
59 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
60 initializing the Lisp variables that depend on them.
61
62 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
63
64 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
65 Clear areas that will not be updated after change of menu bar lines.
66 Clear the menu bar window's current matrix when the window gets empty.
67
68 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
69
70 * intervals.h, textprop.c (extend_property_ranges): Return value
71 and args changed. Discard properties that begin at or after the
72 new end (Bug#5306).
73
74 * editfns.c (Fformat): Caller changed.
75
76 * nsterm.m (ns_set_default_prefs): Delete function.
77 (syms_of_nsterm): Initialize ns_command_modifier,
78 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
79 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
80
81 * xdisp.c (pos_visible_p): Check for invisible text at the correct
82 position (Bug#4040).
83
84 2010-01-09 Eli Zaretskii <eliz@gnu.org>
85
86 * editfns.c (Ffloat_time): Doc fix.
87
88 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
89
90 * xfns.c (Fx_create_frame): Don't create frame larger than display
91 by default bug#3643.
92
93 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
94
95 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
96 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
97 windows above internal border.
98
99 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
100 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
101 windows above internal border.
102
103 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
104 tool bar windows specially.
105
106 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
107
108 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
109 specially.
110 (XTflash): Take account of menu bar height.
111
112 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
113 specially.
114
115 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
116
117 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
118 also be true before we can return early (bug #5339).
119
120 2010-01-06 David Reitter <david.reitter@gmail.com>
121
122 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
123 (Fns_display_usable_bounds): Rewrite, computing bounds properly
124 (Bug#3233).
125
126 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
127
128 * font.c (font_open_entity): Enable chache and call cached_font_ok
129 for the driver if defined.
130 (QCuser_spec): New symbol.
131 (font_spec_from_name): Save name as user-spec.
132 (font_load_for_lface): Keep user-spec instead of name.
133 (font_open_by_name): Save name as user-spec.
134 (syms_of_font): Initialize QCuser_spec.
135 (font_clear_prop): Clear name if it exists in font (bug#5157).
136
137 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
138 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
139 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
140
141 * font.h (struct font_driver): Add cached_font_ok.
142
143 * xterm.c (x_clear_frame): Queue draw for scroll bars.
144
145 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
146
147 * xterm.c (x_new_font): Move code for setting rows/cols before
148 resizing ...
149 (x_set_window_size): ... to here. bug #2568.
150
151 * gtkutil.c (xg_clear_under_internal_border): New function.
152 (xg_frame_resized, xg_frame_set_char_size):
153 Call xg_clear_under_internal_border.
154 (xg_update_scrollbar_pos): Clear under old scroll bar position.
155
156 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
157
158 * keyboard.c (read_key_sequence): Catch keyboard switch after
159 making a new tty frame (Bug#5095).
160
161 2010-01-05 Kenichi Handa <handa@m17n.org>
162
163 * fontset.c (fontset_find_font): Fix getting the frame pointer.
164
165 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
166
167 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
168 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
169 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
170
171 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
172
173 * dbusbind.c (xd_add_watch): Improve debug message.
174 (xd_remove_watch): Improve debug message. If DATA is the session
175 bus, unset D-Bus session environment.
176 (Fdbus_init_bus): Pass the bus as argument to
177 dbus_connection_set_watch_functions. (Bug#5283)
178
179 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
180
181 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
182
183 * lread.c (syms_of_lread): Make it clearer that these are the
184 names of loaded files (Bug#5068).
185
186 * eval.c (run_hook_with_args): Handle the case where the global
187 value has the obsolete single-function form (Bug#5026).
188
189 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
190
191 * minibuf.c (Fall_completions): Minor optimization.
192
193 2009-12-26 Eli Zaretskii <eliz@gnu.org>
194
195 * .gdbinit (pgx): Fix display of composite glyphs.
196 Display cmp.from and cmp.to as well.
197 (pitx): Fix last change.
198
199 2009-12-25 Kenichi Handa <handa@m17n.org>
200
201 * composite.h (composition_adjust_point): Update prototype.
202
203 * composite.c (composition_reseat_it): Don't make a composition
204 spanning over point.
205 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
206 composable characters.
207 (composition_adjust_point): New arg NEW_PT. Callers changed.
208
209 * keyboard.c (command_loop_1): Force redisplay if the last point
210 was within a composition.
211 (adjust_point_for_property): Don't adjust point for automatic
212 composition when called after buffer modification.
213
214 2009-12-19 Eli Zaretskii <eliz@gnu.org>
215
216 * .gdbinit (pitx): Don't use enum names, use their values.
217 Remove reference to non-existing value GET_FROM_COMPOSITION.
218 (pgx): Don't use enum names, use their values.
219 (pitmethod): New helper command.
220 (pitx): Use it to display iteration method.
221 (pgrowit): New command.
222
223 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
224
225 Update dependencies in Makefile.in.
226
227 * Makefile.in (alloc.o): Depend on termhooks.h.
228 (atimer.o): Depend on blockinput.h.
229 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
230 and frame.h.
231 (callint.o): Depend on systime.h, coding.h, and composite.h.
232 (callproc.o): Depend on buffer.h.
233 (casefiddle.o): Don't depend on charset.h.
234 (casetab.o): Depend on character.h.
235 (ccl.o): Depend on composite.h.
236 (chartab.o): Depend on ccl.h.
237 (cm.o): Depend on dispextern.h.
238 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
239 (coding.o): Don't depend on $(INTERVALS_H).
240 (composite.o): Don't depend on dispextern.h explicitly (it's in
241 $(INTERVALS_H)). Depend on ccl.h.
242 (data.o): Depend on systime.h, coding.h, composite.h,
243 dispextern.h, font.h, and ccl.h.
244 (dired.o): Depend on composite.h.
245 (dispnew.o): Depend on coding.h. Don't depend explicitly on
246 composite.h (it's in $(INTERVALS_H)).
247 (doc.o): Depend on systime.h, coding.h, and composite.h.
248 (editfns.o): Don't depend explicitly on dispextern.h.
249 (emacs.o): Depend on frame.h and coding.h.
250 (eval.o): Depend on coding.h, composite.h, and xterm.h.
251 (fileio.o): Depend on frame.h and commands.h. Don't depend
252 explicitly on dispextern.h.
253 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
254 composite.h.
255 (fns.o): Don't depend on termhooks.h.
256 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
257 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
258 coding.h, $(INTERVALS_H), window.h, xterm.h.
259 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
260 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
261 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
262 fontset.h, ccl.h, and ftfont.h.
263 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
264 (gtkutil.o): Depend on dispextern.h and composite.h.
265 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
266 termhooks.h, and ccl.h.
267 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
268 (intervals.o): Depend on systime.h and coding.h.
269 (keyboard.o): Depend on composite.h and coding.h.
270 (keymap.o): Depend on coding.h and frame.h.
271 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
272 (macros.o): Depend on systime.h, coding.h, and composite.h.
273 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
274 and atimer.h.
275 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
276 dispextern.h explicitly.
277 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
278 Don't depend explicitly on dispextern.h and composite.h.
279 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
280 (regex.o): Don't depend on charset.h.
281 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
282 (search.o): Don't depend explicitly on composite.h.
283 (sound.o): Depend on atimer.h and systime.h.
284 (syntax.o): Don't depend explicitly on composite.h.
285 (sysdep.o): Depend on coding.h and composite.h.
286 (term.o): Depend on xterm.h and buffer.h.
287 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
288 (textprop.o): Don't depend on dispextern.h explicitly.
289 (undo.o): Depend on dispextern.h.
290 (window.o): Depend on coding.h and termhooks.h. Don't depend on
291 dispextern.h and composite.h explicitly.
292 (xdisp.o): Depend on ccl.h.
293 (xfaces.o): Depend on coding.h and ccl.h.
294 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
295 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
296 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
297 ftfont.h.
298 (xgselect.o): New dependency.
299 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
300 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
301 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
302 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
303 (xsmfns.o): Depend on frame.h and dispextern.h.
304 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
305 sysselect.h.
306
307 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
308
309 * font.c (Fclear_font_cache): Pass correct cache argument to
310 font_clear_cache.
311
312 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
313
314 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
315 twice.
316
317 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
318
319 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
320 calling file-remote-p. Reported by Jim Meyering.
321
322 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
323
324 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
325 avoid compiler warnings. (Bug #5217)
326
327 2009-12-14 Kenichi Handa <handa@m17n.org>
328
329 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
330 in 8-bit encoding.
331
332 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
333
334 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
335 tooltip windows.
336
337 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
338
339 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
340 Xatom_net_window_type.
341
342 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
343 Xatom_net_window_type.
344
345 * xterm.c (my_log_handler): New function.
346 (x_term_init): Set my_log_handler as log handler during gtk_init
347 so we can filter out buggy messages. (Bug #5120).
348
349 * xterm.c (xg_scroll_callback): Parameter list changed,
350 use parameter GtkScrollType to determine scroll/line/page.
351 Only allow dragging if a button < 4 is grabbed (bug #5177).
352 (xg_end_scroll_callback): New function.
353 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
354 xg_create_scroll_bar.
355
356 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
357 (scroll_end_callback): Remove.
358 (xg_create_scroll_bar): Add parameter end_callback, bind it to
359 button-release-event. Replace value-changed event with change-value,
360 bug #5177,
361 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
362 bug #5177.
363
364 * gtkutil.h (XG_LAST_SB_DATA): Remove.
365 (xg_create_scroll_bar): Add GCallback end_callback.
366
367 * xftfont.c (QClcdfilter): New variable.
368 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
369 (syms_of_xftfont): Initialize QClcdfilter.
370
371 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
372
373 * xsettings.c (struct xsettings): Add member seen.
374 (parse_xft_settings): Update member seen with what we have read.
375 Return non-zero if Xft-settings have been parsed, 0 otherwise.
376 (apply_xft_settings): Only update Xft settings with what member seen
377 indicates as new.
378
379 2009-12-12 Eli Zaretskii <eliz@gnu.org>
380
381 * dispextern.h (struct text_pos): Use EMACS_INT;
382 (struct glyph): Use EMACS_INT for charpos.
383 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
384 region_beg_charpos, region_end_charpos,
385 redisplay_end_trigger_charpos, and also for
386 iterator_stack_entry.end_charpos and
387 iterator_stack_entry.stop_charpos.
388
389 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
390
391 * gtkutil.c (scroll_end_callback): New function (bug #5177).
392 (xg_create_scroll_bar): Call scroll_end_callback on button release
393 event (bug #5177).
394 (xg_event_is_for_scrollbar): != replaced with ==.
395
396 2009-12-12 Kenichi Handa <handa@m17n.org>
397
398 * ftfont.c (struct ftfont_info): New member matrix.
399 (ftfont_open): Setup xftfont_info->matrix.
400 (MFLTFontFT): New member matrix.
401 (FLOOR, CEIL, ROUND): New macros.
402 (ftfont_get_metrics): Handle matrix transformation.
403 (ftfont_shape_by_flt): New arg matrix. Callers changed.
404
405 * xftfont.c (struct xftfont_info): New member matrix.
406 (xftfont_open): Setup xftfont_info->matrix.
407
408 2009-12-10 Kenichi Handa <handa@m17n.org>
409
410 * xdisp.c (append_space_for_newline): Consider face-remapping.
411
412 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
413
414 * xsettings.c: Include "keyboard.h".
415
416 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
417
418 Fix implicit function declarations.
419 * cmds.c: Include "frame.h".
420 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
421 * frame.h: Move declaration of delete_frame outside of
422 HAVE_WINDOW_SYSTEM.
423
424 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
425
426 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
427
428 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
429 GTK builds.
430
431 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
432
433 * unexelf.c (unexec): Don't search for .data twice.
434
435 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
436
437 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
438 if push failed.
439 (handle_line_prefix): Set avoid_cursor_p here. Check return value
440 of push_display_prop (Bug#5000).
441
442 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
443 value of font_list_entities (Bug#5085).
444
445 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
446
447 Fix `string-to-number' to deal consistently with integers and floats.
448 * lread.c (isfloat_string): New argument ignore_trailing to accept all
449 trailing characters, not just whitespace.
450 (read1): Pass new arg 0 to keep old behavior.
451 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
452 trailing chars, as it is already done for integers. Doc fixes.
453 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
454
455 2009-12-04 Eli Zaretskii <eliz@gnu.org>
456
457 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
458 Delete unused enumeration value.
459
460 2009-12-03 Eli Zaretskii <eliz@gnu.org>
461
462 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
463
464 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
465
466 * process.c (Fmake_network_process): Fix up the tests for
467 "connectionless socket", so they DTRT for seqpacket sockets as well.
468
469 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
470
471 * process.c (Qseqpacket): New symbol.
472 (HAVE_SEQPACKET): New macro.
473 (Fmake_network_process): Accept new :type `seqpacket'.
474 (init_process): Add `seqpacket' feature when applicable.
475 (syms_of_process): Initialize Qseqpacket.
476
477 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
478
479 * font.c (font_load_for_lface, font_open_by_name): Don't store name
480 if entity is Qnil.
481
482 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
483
484 * print.c (print_preprocess): Preprocess the key_and_value table of
485 hashtables, even tho they're "hidden" (bug#5082).
486
487 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
488
489 * frame.c (frame_make_pointer_invisible)
490 (frame_make_pointer_visible): Declare f before statements.
491
492 2009-11-28 Eli Zaretskii <eliz@gnu.org>
493
494 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
495 omitted dependencies on lisp.h.
496
497 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
498
499 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
500 is NULL.
501
502 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
503
504 * frame.c (frame_make_pointer_invisible)
505 (frame_make_pointer_visible): Just return if there isn't any selected
506 frame.
507
508 * search.c (simple_search): Remove warning by making *p const.
509
510 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
511
512 * xdisp.c (power_letter): Remove duplicate const.
513
514 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
515
516 * term.c (delete_tty): Remove check for last terminal (bug#4970).
517
518 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
519 defaults (bug #5025).
520
521 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
522
523 * insdel.c (adjust_markers_for_delete): Move it in the
524 right direction! (bug#4803)
525
526 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
527
528 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
529
530 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
531
532 2009-11-24 Glenn Morris <rgm@gnu.org>
533
534 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
535
536 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
537
538 * Makefile.in: Must create deps for ecrt0.o in its rule.
539
540 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
541 because that is what Gtk+ font dialog understands.
542
543 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
544 of Fcopy_sequence.
545 (font_open_by_name): Put name given into QCname for font-object returned.
546
547 * frame.c (x_set_font): Save original font name as frame parameter
548 font-parameter.
549
550 * xsettings.c (set_default_xft_settings): New function.
551 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
552 is found.
553
554 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
555
556 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
557 searching backwards through multibyte buffer.
558
559 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
560
561 * xterm.c: #include xgselect.h.
562 (x_initialize): Call xgselect_initialize.
563
564 * xsettings.c (something_changedCB): C++ comments => C comments.
565 (init_gconf): Do not deal with any GLib file descriptors, xg_select
566 does that now.
567
568 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
569 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
570 (scroll_bar_button_cb): Remove.
571 (create_menus): C++ comments => C comments. Don't bind grab-notify
572 event.
573 (xg_create_scroll_bar): Don't bind button-press-event and
574 button-release-event.
575
576 * process.c: Include xgselect.h if defined (USE_GTK) ||
577 defined (HAVE_GCONF).
578 (wait_reading_process_output): Call xg_select for the same condition.
579
580 * xgselect.c (xg_select): New function to better integrate with
581 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
582
583 * xgselect.h: New file, declare xg_select, xgselect_initialize.
584
585 * Makefile.in (XOBJ): Add xgselect.o.
586
587 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
588
589 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
590 Remove ignored second argument. All callers changed.
591 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
592 (RE_STRING_CHAR_AND_LENGTH): Likewise.
593 * xdisp.c (string_char_and_length): Likewise.
594
595 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
596
597 * xterm.c (x_new_font):
598 * print.c (print_object):
599 * cmds.c (Fself_insert_command): Move declarations before statements.
600
601 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
602
603 * s/cygwin.h: Remove unneeded linker flags.
604
605 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
606
607 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
608
609 * xsettings.h: Declare xsettings_get_system_font.
610
611 * xsettings.c (xsettings_get_system_font): New function.
612 (init_gconf): No use initiating gconf unless we have Xft also.
613 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
614 HAVE_GCONF.
615
616 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
617 add a blank entry so it doesn't collapse into nothing.
618
619 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
620
621 * lread.c (Funintern): Comment out last change.
622
623 2009-11-19 Richard Stallman <rms@gnu.org>
624
625 * lread.c (Funintern): Error if symbol is t or nil.
626
627 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
628
629 * insdel.c (make_gap_larger): Don't make as many assumptions about the
630 representation of Lisp integers.
631 Reported by MJ Chan <mjchan.inbox@gmail.com>.
632
633 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
634
635 * lisp.h: Remove declaration of Ffont_get_system_font.
636 * xfns.c: Move include of "xsettings.h".
637 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
638
639 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
640
641 * xsettings.c (something_changedCB, Ffont_get_system_font):
642 Check use_system_font.
643 (syms_of_xsettings): DEFVAR font-use-system-font.
644
645 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
646
647 * xfns.c (x_default_font_parameter): Remove dead assignment.
648
649 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
650
651 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
652
653 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
654 not have FC_LCD_*. #define them if not there.
655
656 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
657
658 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
659
660 * xterm.c (handle_one_xevent): Call xft_settings_event for
661 ClientMessage, PropertyNotify and DestroyNotify.
662 (x_term_init): If we have XFT, get DPI from Xft.dpi.
663 Call xsettings_initialize.
664
665 * xftfont.c (xftfont_fix_match): New function.
666 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
667 Call xftfont_fix_match after XftFontMatch.
668
669 * xfont.c (xfont_driver): Initialize all members.
670
671 * xfns.c (x_default_font_parameter):
672 Try font from Ffont_get_system_font.
673 Do not get font from x_default_parameter if we got one from
674 Ffont_get_system_font.
675 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
676
677 * w32font.c (w32font_driver): Initialize all members.
678
679 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
680
681 * lisp.h: Declare syms_of_xsettings.
682
683 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
684 Handle CONFIG_CHANGED_EVENT.
685
686 * ftfont.c (ftfont_filter_properties): New function.
687
688 * frame.c (x_set_font): Remove unused variable lval.
689
690 * font.h (struct font_driver): Add filter_properties.
691
692 * font.c (font_put_extra): Don't return if val is nil, it means
693 boolean option is off.
694 (font_parse_fcname): Collect all extra properties in extra_props
695 and call filter_properties for all drivers with extra_props and
696 font as parameter.
697 (font_open_entity): Do not use cache, it does not pick up new
698 fontconfig settings like hinting.
699 (font_load_for_lface): If spec had a name in it, store it in entity.
700
701 * emacs.c (main): Call syms_of_xsettings
702
703 * config.in: HAVE_GCONF is new.
704
705 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
706 xsettings.o is new.
707
708 2009-11-17 Kenichi Handa <handa@m17n.org>
709
710 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
711 back to the default font in case that no suitable font is found.
712
713 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
714
715 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
716 Suggested by Chad Brown <yandros@mit.edu>.
717 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
718
719 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
720
721 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
722
723 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
724
725 * Makefile.in: Ignore errors from mkdir when creating deps directory.
726
727 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
728
729 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
730 has a parent.
731
732 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
733 dependency files in deps/. Include those files into Makefile.
734
735 * config.in: Generated (AUTO_DEPEND).
736
737 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
738
739 * dbusbind.c (Vdbus_registered_objects_table): Rename from
740 Vdbus_registered_functions_table, because it contains also
741 properties. Fix docstring.
742 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
743
744 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
745
746 * alloc.c (mark_object): Don't reprocess marked strings.
747 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
748 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
749
750 2009-11-13 Kenichi Handa <handa@m17n.org>
751
752 * category.c (word_boundary_p): Adjust for the change of the
753 semantics of Vword_combining_categories.
754 (Vword_combining_categories): Describe the slight change of the
755 semantics.
756
757 2009-11-13 Eli Zaretskii <eliz@gnu.org>
758
759 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
760
761 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
762
763 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
764
765 * xdisp.c (syms_of_xdisp): Fix typo in last change.
766
767 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
768
769 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
770
771 2009-11-11 David Reitter <david.reitter@gmail.com>
772
773 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
774 variables to fix 2009-11-09 change.
775
776 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
777
778 * process.c (ifflag_def): Make flag_sym constant.
779 (Fnetwork_interface_info): Use a constant pointer.
780 (ifflag_table):
781 * xfns.c (cursor_bits):
782 * xdisp.c (power_letter):
783 * termcap.c (speeds, esctab):
784 * sysdep.c (baud_convert):
785 * keyboard.c (lispy_accent_codes, modifier_names):
786 * image.c (xbm_format, xpm_format, pbm_format, png_format)
787 (jpeg_format, tiff_format, gif_format, svg_format)
788 (interlace_start, interlace_increment, gs_format):
789 * gtkutil.c (separator_names):
790 * fringe.c (swap_nibble):
791 * fns.c (base64_value_to_char, base64_char_to_value):
792 * fileio.c (make_temp_name_tbl):
793 * coding.c (suffixes): Make constant.
794
795 * frame.c (make_initial_frame):
796 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
797 build_string.
798 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
799
800 * s/freebsd.h:
801 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
802
803 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
804 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
805
806 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
807 * xterm.c (syms_of_xterm):
808 * xfaces.c (syms_of_xfaces):
809 * xdisp.c (syms_of_xdisp):
810 * lread.c (syms_of_lread):
811 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
812 build_string.
813
814 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
815
816 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
817
818 * fns.c (Fplist_get): Merge the active and the commented out code.
819
820 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
821
822 * keyboard.h: Declare timer_check.
823
824 * keyboard.c (timer_check_2): New function that does what the old
825 timer_check did.
826 (timer_check): Call timer_check_2 until -1 or a non-zero time is
827 returned, i.e. don't return -1 with timers pending.
828
829 * process.c: Remove extern declaration of timer_check.
830
831 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
832 even if timer_check returned -1.
833
834 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
835 xg_dialog_data.
836 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
837 the event loop.
838 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
839 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
840 Destroy the dialog after xg_dialog_run.
841
842 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
843
844 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
845
846 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
847
848 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
849
850 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
851
852 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
853
854 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
855
856 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
857 w32menu.c, and nsmenu.m.
858 Simplify the obsolete case where position is nil.
859 (cleanup_popup_menu): New function, moved from nsmenu.m.
860 (struct skp): Remove slot `notreal'.
861 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
862 adjust callers.
863 (single_menu_item): Adjust call to parse_menu_item.
864 (syms_of_menu): Defsubr x-popup-menu.
865 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
866 (keymap_panes): Don't export any more.
867 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
868 (xmenu_show): Declare.
869 * keyboard.c (parse_menu_item): Remove arg `notreal'.
870 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
871 * keyboard.h (parse_menu_item): Update declaration.
872 * xmenu.c (Fx_popup_menu): Remove.
873 (syms_of_xmenu): Don't defsubr x-popup-menu.
874 * w32menu.c (Fx_popup_menu): Remove.
875 (syms_of_w32menu): Don't defsubr x-popup-menu.
876 * nsmenu.m (cleanup_popup_menu): Remove.
877 (ns_menu_show): Rename from ns_popup_menu and remove all the code
878 moved to menu.c's Fx_popup_menu.
879 (Fx_popup_menu): Remove.
880 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
881 menu_items (it's done in menu.c already).
882
883 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
884
885 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
886 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
887
888 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
889
890 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
891 xmenu_show. Hide any tooltip before opening a menu.
892 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
893 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
894
895 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
896
897 Let integers use up 2 tags to give them one extra bit and thus double
898 their range.
899 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
900 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
901 New macros.
902 (enum Lisp_Type): Use them. Give explicit values.
903 (Lisp_Type_Limit): Remove.
904 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
905 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
906 Pay attention to USE_2_TAGS_FOR_INTS.
907 (INTEGERP): Use LISP_INT_TAG_P.
908 * fns.c (internal_equal): Simplify the default case.
909 (sxhash): Use case_Lisp_Int.
910 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
911 any more.
912 (Ftype_of): Use case_Lisp_Int.
913 (store_symval_forwarding): Take into account the fact that Ints can
914 now have more than one tag.
915 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
916 buffer_slot_type_mismatch):
917 * xfaces.c (face_attr_equal_p):
918 * print.c (print_object):
919 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
920 Use case_Lisp_Int.
921
922 2009-11-06 Eli Zaretskii <eliz@gnu.org>
923
924 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
925
926 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
927 warning.
928
929 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
930
931 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
932
933 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
934
935 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
936 ButtonPressRelease and MotionNotify (bug#4870).
937
938 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
939
940 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
941
942 * xterm.c (syms_of_xterm):
943 * xselect.c (syms_of_xselect):
944 * xmenu.c (syms_of_xmenu):
945 * xfns.c (syms_of_xfns):
946 * xfaces.c (syms_of_xfaces):
947 * xdisp.c (syms_of_xdisp):
948 * window.c (syms_of_window):
949 * w32fns.c (syms_of_w32fns):
950 * undo.c (syms_of_undo):
951 * textprop.c (syms_of_textprop):
952 * terminal.c (syms_of_terminal):
953 * syntax.c (syms_of_syntax):
954 * sound.c (syms_of_sound):
955 * search.c (syms_of_search):
956 * print.c (syms_of_print):
957 * minibuf.c (syms_of_minibuf):
958 * macros.c (syms_of_macros):
959 * keymap.c (syms_of_keymap, initial_define_key)
960 (initial_define_lispy_key):
961 * keyboard.c (syms_of_keyboard):
962 * insdel.c (syms_of_insdel):
963 * image.c (syms_of_image):
964 * fringe.c (syms_of_fringe):
965 * frame.c (syms_of_frame):
966 * fontset.c (syms_of_fontset):
967 * fns.c (syms_of_fns):
968 * fns.c (syms_of_fns):
969 * fileio.c (syms_of_fileio):
970 * fileio.c (syms_of_fileio):
971 * eval.c (syms_of_eval):
972 * doc.c (syms_of_doc):
973 * dispnew.c (syms_of_display):
974 * dired.c (syms_of_dired):
975 * dbusbind.c (syms_of_dbusbind):
976 * data.c (syms_of_data):
977 * composite.c (syms_of_composite):
978 * coding.c (syms_of_coding):
979 * cmds.c (syms_of_cmds):
980 * charset.c (define_charset_internal, syms_of_character):
981 * ccl.c (syms_of_ccl):
982 * category.c (syms_of_category, init_category_once):
983 * casetab.c (syms_of_casetab):
984 * casefiddle.c (syms_of_casefiddle):
985 * callint.c (syms_of_callint):
986 * bytecode.c (syms_of_bytecode):
987 * buffer.c (keys_of_buffer, syms_of_buffer):
988 * alloc.c (syms_of_alloc):
989 * process.c (syms_of_process, init_process):
990 * lread.c (syms_of_lread, init_obarray):
991 * font.c (build_style_table):
992 * emacs.c (syms_of_emacs, main): Replace calls to intern with
993 intern_c_string, calls to make_pure_string with
994 make_pure_c_string. Use pure_cons instead of Fcons.
995
996 * process.c (socket_options): Make it const.
997 (set_socket_option, init_process): Use a const pointer.
998
999 * lread.c (intern_c_string): New function.
1000 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1001 (defvar_int): Uset it. Make the name const char*.
1002
1003 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1004 (defvar_int): Update prototypes.
1005 (DEFUN, EXFUN): Support for prototypes is now required.
1006 (intern_c_string): New prototype.
1007 (struct Lisp_Subr): Make symbol_name constant.
1008
1009 * font.c (struct table_entry): Remove unused member. Make NAMES
1010 constant.
1011 (weight_table, slant_table, width_table): Make constant.
1012
1013 * emacs.c (struct standard_args): Make name and longname constant.
1014
1015 * character.h (DEFSYM): Use intern_c_string.
1016
1017 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1018
1019 * alloc.c (make_pure_c_string): New function.
1020
1021 * eval.c (Fautoload): Purecopy all arguments.
1022
1023 2009-11-05 Kenichi Handa <handa@m17n.org>
1024
1025 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1026 the buffer in case of replace.
1027
1028 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1029
1030 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1031
1032 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1033
1034 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1035 when applicable (bug#4851).
1036
1037 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1038 (P_): Support for prototypes is now required.
1039
1040 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1041
1042 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1043 (Bug#4827).
1044
1045 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1046
1047 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1048
1049 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1050
1051 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1052
1053 * lread.c (Fload): Purecopy the file name when building
1054 Vpreloaded_file_list.
1055
1056 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1057
1058 * w32fns.c (syms_of_w32fns): Change default value of
1059 w32-scroll-lock-modifier to nil. (Bug#2827)
1060
1061 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1062
1063 * minibuf.c (Fall_completions): Fix typos in docstring.
1064
1065 2009-10-26 Andreas Schwab <schwab@redhat.com>
1066
1067 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1068
1069 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1070
1071 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1072 For delta < 0, skip check that only makes sense when the mini-window
1073 is going to be enlarged. (Bug#4534)
1074
1075 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1076
1077 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1078 string in menu maps (Bug#4471).
1079
1080 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1081
1082 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1083 FRAME_NS_VIEW on terminal frames (Bug#4765).
1084
1085 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1086
1087 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1088 DBUS_TYPE_UINTnn separately to get proper sign extension.
1089
1090 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1091 can properly handle unsigned types.
1092 (make_uid, make_gid): Remove.
1093
1094 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1095 types again.
1096
1097 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1098 (system_process_attributes): Likewise.
1099
1100 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1101
1102 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1103
1104 * eval.c (Fautoload): Purecopy the filename. Simplify.
1105
1106 * category.c (Fdefine_category): Purecopy docstring.
1107
1108 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1109
1110 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1111
1112 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1113
1114 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1115
1116 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1117 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1118 (Bug#4775).
1119
1120 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1121
1122 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1123 (init_fileio_once):
1124 * lisp.h (init_fileio_once): Remove.
1125 * emacs.c (main): Don't call init_fileio_once.
1126
1127 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1128
1129 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1130
1131 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1132
1133 * doprnt.c (doprnt): Fix overflow check.
1134
1135 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1136
1137 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1138
1139 * xterm.h (x_wait_for_event): Declare it.
1140
1141 * xterm.c (pending_event_wait): New variable.
1142 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1143 see pending_event_wait.eventtype.
1144 (handle_one_xevent): Don't change gravity when parent changes.
1145 (x_new_font): Call change_frame_size with new rows/columns before we
1146 try to resize the frame.
1147 (x_wait_for_event): New function.
1148 (x_set_window_size_1): Don't change gravity unless change_gravity
1149 is set.
1150 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1151 don't change frame size, instead wait for the ConfigureNotify.
1152 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1153 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1154 (x_initialize): Initialize pending_event_wait.
1155
1156 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1157 size.
1158
1159 * widget.c (EmacsFrameSetValues): Add comment.
1160 (EmacsFrameSetCharSize): Just call x_set_window_size.
1161
1162 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1163 x_wait_for_event.
1164 (flush_and_sync): Remove again.
1165 (xg_get_font_name): Suggest monospace if no previous font is known.
1166
1167 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1168
1169 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1170 8th bit, since that only made sense in the ASCII world (bug#4751).
1171
1172 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1173
1174 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1175 processing pending events when event is filtered for input method.
1176 (Bug#3681)
1177
1178 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1179
1180 * fns.c: Add #endif accidentally removed in previous change.
1181
1182 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1183
1184 * fns.c: Remove code for unsupported system: MAC_OS.
1185 * image.c: Likewise. Include setjmp.h.
1186
1187 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1188
1189 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1190 pixel -1 (bug #4742).
1191
1192 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1193
1194 * process.c (create_pty): Remove conditionals for no longer
1195 supported systems: UNIPLUS and RTU.
1196
1197 * xterm.c:
1198 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1199
1200 * alloc.c: Do not define struct catchtag.
1201 * eval.c: Move struct catchtag definition ...
1202 * lisp.h: ... here.
1203
1204 * image.c: Move png.h #include earlier to avoid warnings.
1205
1206 * xterm.c:
1207 * xsmfns.c:
1208 * xselect.c:
1209 * xrdb.c:
1210 * xmenu.c:
1211 * xftfont.c:
1212 * xfont.c:
1213 * xfns.c:
1214 * xfaces.c:
1215 * xdisp.c:
1216 * window.c:
1217 * widget.c:
1218 * w32xfns.c:
1219 * w32uniscribe.c:
1220 * w32term.c:
1221 * w32select.c:
1222 * w32reg.c:
1223 * w32proc.c:
1224 * w32menu.c:
1225 * w32inevt.c:
1226 * w32heap.c:
1227 * w32font.c:
1228 * w32fns.c:
1229 * w32console.c:
1230 * w32.c:
1231 * w16select.c:
1232 * vm-limit.c:
1233 * unexsol.c:
1234 * unexec.c:
1235 * unexcw.c:
1236 * unexaix.c:
1237 * undo.c:
1238 * tparam.c:
1239 * textprop.c:
1240 * terminfo.c:
1241 * terminal.c:
1242 * termcap.c:
1243 * term.c:
1244 * syntax.c:
1245 * sound.c:
1246 * sheap.c:
1247 * search.c:
1248 * scroll.c:
1249 * region-cache.c:
1250 * regex.c:
1251 * ralloc.c:
1252 * process.c:
1253 * print.c:
1254 * nsterm.m:
1255 * nsselect.m:
1256 * nsmenu.m:
1257 * nsimage.m:
1258 * nsfont.m:
1259 * nsfns.m:
1260 * msdos.c:
1261 * minibuf.c:
1262 * menu.c:
1263 * marker.c:
1264 * macros.c:
1265 * keymap.c:
1266 * keyboard.c:
1267 * intervals.c:
1268 * insdel.c:
1269 * indent.c:
1270 * gtkutil.c:
1271 * ftxfont.c:
1272 * ftfont.c:
1273 * fringe.c:
1274 * frame.c:
1275 * fontset.c:
1276 * font.c:
1277 * fns.c:
1278 * floatfns.c:
1279 * filelock.c:
1280 * fileio.c:
1281 * emacs.c:
1282 * editfns.c:
1283 * dosfns.c:
1284 * doprnt.c:
1285 * doc.c:
1286 * dispnew.c:
1287 * dired.c:
1288 * dbusbind.c:
1289 * data.c:
1290 * composite.c:
1291 * coding.c:
1292 * cmds.c:
1293 * cm.c:
1294 * chartab.c:
1295 * charset.c:
1296 * character.c:
1297 * ccl.c:
1298 * category.c:
1299 * casetab.c:
1300 * casefiddle.c:
1301 * callproc.c:
1302 * callint.c:
1303 * bytecode.c:
1304 * buffer.c:
1305 * atimer.c: Include setjmp.h. (Bug#4643)
1306
1307 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 Remove leftover table unibyte_to_multibyte_table.
1310 * character.c (unibyte_to_multibyte_table): Remove.
1311 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1312 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1313 * character.h (UNIBYTE_TO_CHAR): New macro.
1314 (MAKE_CHAR_MULTIBYTE): Use it.
1315 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1316 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1317 (message_dolog, set_message_1):
1318 * search.c (Freplace_match):
1319 * editfns.c (Fcompare_buffer_substrings):
1320 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1321 (concat):
1322 * insdel.c (copy_text, count_size_as_multibyte):
1323 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1324 * term.c (produce_glyphs):
1325 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1326 * regex.c (RE_CHAR_TO_MULTIBYTE):
1327 * cmds.c (internal_self_insert):
1328 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1329
1330 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1331
1332 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1333
1334 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1335
1336 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
1337
1338 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1339
1340 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1341
1342 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1343 still needed under Tiger.
1344
1345 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1346
1347 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1348 __Apple__.
1349
1350 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1351
1352 2009-10-15 Kenichi Handa <handa@m17n.org>
1353
1354 * print.c (print_object): Escape a symbol like "2E10" too.
1355
1356 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
1357
1358 Cleanups and changes for 64-bit compile under Snow Leopard.
1359 Based on suggestions by Erik Charlebois.
1360
1361 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1362
1363 * nsfont.m (ns_char_width): Replace deprecated call.
1364 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1365 cast argument.
1366 (nsfont_open): Use ns_char_width() everywhere.
1367 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
1368
1369 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1370
1371 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1372 where appropriate.
1373
1374 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1375 where appropriate.
1376 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1377 Use stringWithUTF8String.
1378 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1379
1380 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1381 Add formal protocol mention to inheritance.
1382 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1383
1384 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1385 Fix printf format.
1386 (ns_query_color): Use CGFloat where appropriate.
1387 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1388 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1389 argument.
1390
1391 * config.in (NS_HAVE_NSINTEGER): Drop.
1392
1393 * dbusbind.c (dbus-method-return-internal)
1394 (dbus-method-error-internal): Use long format in printf, and cast
1395 argument.
1396
1397 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1398 in printf, and cast argument.
1399
1400 * process.c (list_processes_1): Use long format in printf, and
1401 cast argument.
1402
1403 2009-10-11 Glenn Morris <rgm@gnu.org>
1404
1405 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1406
1407 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1410 menu bar with a small width so it doesn't enlarge the frame.
1411
1412 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
1413
1414 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1415
1416 2009-10-06 Glenn Morris <rgm@gnu.org>
1417
1418 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1419 SOME_MACHINE_LISP (this enters indirectly via DOC).
1420
1421 2009-10-05 Eli Zaretskii <eliz@gnu.org>
1422
1423 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1424
1425 2009-10-04 Eli Zaretskii <eliz@gnu.org>
1426
1427 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1428 Doc fix.
1429
1430 2009-10-03 Martin Rudalics <rudalics@gmx.at>
1431
1432 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1433
1434 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
1435
1436 * lisp.h (Qdelete_directory_internal): Remove, because it is not
1437 used anymore outside fileio.c.
1438
1439 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1440
1441 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
1442
1443 * lisp.h (Qdelete_directory_internal):
1444 Declare, instead of Qdelete_directory.
1445
1446 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1447
1448 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1449
1450 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1451
1452 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
1453
1454 * fileio.c (Fdelete_directory_internal): Rename from
1455 Fdelete_directory. It is not a command anymore. It has no file
1456 name handler.
1457
1458 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1459
1460 * xdisp.c (get_next_display_element): Use an enum in last change.
1461
1462 2009-09-28 Kenichi Handa <handa@m17n.org>
1463
1464 * xdisp.c (get_next_display_element): Pay attention to
1465 unibyte_display_via_language_environment in handling
1466 Vnobreak_char_display.
1467
1468 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1469
1470 * nsterm.h (ns_app_name): New extern variable.
1471
1472 * nsterm.m (ns_app_name): New variable.
1473 (ns_term_init): Set and use it.
1474 (ns_term_shutdown): Use it.
1475
1476 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1477 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1478
1479 * nsfns.m (ns_set_name_iconic, ns_set_name)
1480 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1481 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1482
1483 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1484 Remove double-casting in client_data comparison.
1485
1486 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1487
1488 * keyboard.c (make_lispy_event): Remember last wheel direction.
1489 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1490
1491 2009-09-26 Glenn Morris <rgm@gnu.org>
1492
1493 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1494 internal.elc. Add term/pc-win.elc.
1495 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1496 term/x-win.elc.
1497 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1498 term/w32-win.elc.
1499 (NS_SUPPORT): New.
1500 (lisp): Add NS_SUPPORT.
1501 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1502
1503 2009-09-25 David Reitter <david.reitter@gmail.com>
1504
1505 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1506 on Mac OS X 10.6+ (bug#4513).
1507
1508 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1509
1510 * frame.c (xrdb_get_resource): Return nil for empty string resources;
1511 some parts of Emacs code (like font selection) don't grok them.
1512 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
1513
1514 2009-09-24 Andreas Schwab <schwab@redhat.com>
1515
1516 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1517
1518 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
1519
1520 * dired.c (Fdirectory_files): Fix typo in docstring.
1521
1522 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1523
1524 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1525 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1526 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1527 under GNUstep.
1528 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1529
1530 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1531 glyph advancement.
1532
1533 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1534
1535 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
1536 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
1537
1538 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1539 deleted (bug #4492).
1540
1541 * nsfont.m (Vns_reg_to_script): New lisp variable.
1542 (syms_of_nsfont): Declare it.
1543 (ns_registry_to_script): New function.
1544 (ns_get_req_script): Call it.
1545 (ns_findfonts): Don't give up on non-unicode registry.
1546
1547 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1548
1549 2009-09-20 Tom Tromey <tromey@redhat.com>
1550
1551 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1552 batch mode (bug#4228).
1553
1554 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
1555
1556 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
1557 carefully. (Bug #4339)
1558
1559 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
1560
1561 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
1562
1563 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1564
1565 * emacs.c (inhibit_x_resources): Update doc string for NS.
1566 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
1567 legacy code for -NXHost. Fix error printf in daemon case.
1568
1569 * nsterm.h (ns_no_defaults): Remove.
1570
1571 * nsterm.m (ns_no_defaults): Remove.
1572 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1573 (ns_use_qd_smoothing): Remove legacy variable.
1574 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1575 don't update the NSWindow itself.
1576 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
1577 state detection and store user rect ourselves. (Bug #3581)
1578
1579 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1580 ns_use_qd_smoothing.
1581
1582 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1583 platform versions. Drop support for emacs-20-style face specs.
1584 (x-close-connection): Drop PSFlush() under OS X.
1585 (x-focus-frame): Activate the app first. (Bug #4180)
1586
1587 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
1588
1589 * emacs.c (inhibit_x_resources): New variable.
1590 (main) [HAVE_NS]: Don't process --quick command line option.
1591 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1592
1593 * lisp.h (inhibit_x_resources): Declare it extern.
1594
1595 * w32reg.c (x_get_string_resource):
1596 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1597
1598 2009-09-17 Eli Zaretskii <eliz@gnu.org>
1599
1600 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1601 Add lisp/term/internal.elc.
1602
1603 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1604
1605 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1606 (bug#4461).
1607
1608 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1609
1610 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1611
1612 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1613 (OBJECTS_MACHINE): Remove, unused.
1614
1615 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1616
1617 * frame.c (x_get_resource_string): Remove unused.
1618
1619 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1620
1621 * xterm.c (x_new_font): Call change_frame_size before calling
1622 x_set_window_size, in case frame size won't change.
1623
1624 * frame.c (x_set_font): Remove dead code.
1625
1626 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1627
1628 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1629
1630 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1631
1632 * lread.c (Fload): Don't output a message after loading an obsolete
1633 package any more (done in Lisp now).
1634
1635 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
1636
1637 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1638
1639 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1640
1641 * keymap.c (Fwhere_is_internal): Use nconc2.
1642
1643 2009-09-11 Alan Mackenzie <acm@muc.de>
1644
1645 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1646 batch mode.
1647
1648 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1649
1650 * xdisp.c (display_mode_element): Detect cycles.
1651
1652 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1653
1654 * keymap.c (where_is_internal): Don't erroneously return nil right after
1655 filling the cache.
1656 (where_is_internal_1): Fix up typo.
1657
1658 2009-09-11 Glenn Morris <rgm@gnu.org>
1659
1660 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1661 share a common doc-string.
1662
1663 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1664
1665 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1666 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1667
1668 * keymap.c (QCadvertised_binding): New constant.
1669 (syms_of_keymap): Initialize it.
1670 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1671 if applicable.
1672
1673 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1674
1675 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1676 (parse_menu_item): Streamline since bindings are recomputed all the
1677 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1678 more and don't support lmenu's menu-alias any more either.
1679
1680 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1681 (where_is_internal): Strip it down to only traverse the keymaps.
1682 Move the cache handling from Fwhere_is_internal to here.
1683 (Fwhere_is_internal): Move the handling of remapping and the choice of
1684 the best binding from where_is_internal to here.
1685 Unify the cached/noncached paths, so remapping is also handled
1686 correctly when the cache is used, and so the cache can be used to
1687 speed up remap-handling when applicable.
1688 Give preference to non-remapped bindings.
1689 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1690 non-remapped bindings.
1691 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1692 command remapping.
1693
1694 * xdisp.c (display_mode_element): Move list length limit from 50 to
1695 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1696
1697 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1698
1699 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1700
1701 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1702
1703 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1704 (Bug#4334)
1705
1706 * keymap.c (where_is_internal): Filter out shadowed remappings.
1707 Assume that where_is_internal returns unshadowed bindings to simplify
1708 the code and get rid of the gotos. Use ASIZE.
1709
1710 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1711
1712 * xterm.c (x_focus_changed): If we get a focusout and pointer
1713 is invisible, make it visible.
1714
1715 * xterm.h: Remove condition for declaration of
1716 x_*_window_to_frame.
1717
1718 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1719
1720 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1721 initial terminal as well.
1722
1723 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1724
1725 * xterm.h: Rename x_non_menubar_window_to_frame to
1726 x_menubar_window_to_frame.
1727
1728 * xterm.c: Remove declarations also in xterm.h
1729 (XTmouse_position): Do not return valid positions
1730 for clicks in the menubar and the toolbar for Gtk+.
1731
1732 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1733 if the widget for the event has the same top level as a frame,
1734 return the frame.
1735 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1736 internal windows, bug #4122.
1737 (x_non_menubar_window_to_frame): Remove.
1738
1739 2009-09-02 Glenn Morris <rgm@gnu.org>
1740
1741 * buffer.c (default-major-mode): Move most of the doc from here...
1742 (major-mode): ... to here.
1743
1744 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
1745
1746 * process.c (wait_reading_process_output): Keep the descriptor
1747 when pty is used by a non-child process, e.g., in I/O buffer of
1748 GDB this allows inferior to be restarted.
1749
1750 2009-08-29 Eli Zaretskii <eliz@gnu.org>
1751
1752 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1753 both branches into one.
1754
1755 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1756
1757 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1758 (main): Use enable-multibyte-characters rather than
1759 default-enable-multibyte-characters. Output a warning message when
1760 running a unibyte session.
1761
1762 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1763
1764 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1765 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1766 (copy_data_segment): Also copy __program_vars section.
1767 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1768 (dump_it) [LC_DYLD_INFO]: Use it.
1769
1770 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1771
1772 2009-08-28 Eli Zaretskii <eliz@gnu.org>
1773
1774 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1775 $(SRC)/buildobj.h.
1776 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1777 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1778 $(SRC)/buildobj.h.
1779 (clean): Add buildobj.h.
1780
1781 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1782
1783 * print.c (print_object): Set escapeflag to 1 when printing
1784 hashtable keys and values.
1785
1786 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1787
1788 * lread.c (read_integer): Use doubles (and potentially return a float
1789 number) as we do in string-to-number.
1790 (read1): Use strtol to read integers, signal errors on strtol's
1791 overflow and use floats if strtol's output is too large for
1792 Elisp integers.
1793
1794 2009-08-27 Eli Zaretskii <eliz@gnu.org>
1795
1796 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1797 (make-buildobj-SH): Fix last change.
1798 (SRC): Move to before where it's first used.
1799
1800 2009-08-27 Kenichi Handa <handa@m17n.org>
1801
1802 * process.c (send_process): Use encode_coding_object instead of
1803 encode_coding_string to perform eol-conversion even if the string
1804 is unibyte.
1805
1806 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1807 character.
1808
1809 * cmds.c (Fself_insert_command): Avoid unnecessay
1810 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
1811
1812 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1813
1814 * callproc.c (Fcall_process): Remove always true #if.
1815
1816 * lisp.h: Replace #if 0 code for checking with text pointing to
1817 the --enable-checking configure flag.
1818
1819 * emacs.c (main): Mention the --enable-profiling configure flag
1820 instead of using CFLAGS.
1821
1822 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
1823
1824 * Makefile.in (buildobj.h): New target.
1825 (doc.o): Depend on it.
1826 (temacs${EXEEXT}): Don't generate buildobj.lst.
1827 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1828 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1829 ($(BLD)/doc.$(O)): Depend on it.
1830 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1831 provided by Eli Zaretskii.)
1832 ($(TEMACS)): Don't generate buildobj.lst.
1833 * doc.c: Include buildobj.h.
1834 (buildobj): New static variable.
1835 (Fsnarf_documentation): Use it, instead of opening and reading
1836 buildobj.lst.
1837
1838 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
1839
1840 * dbusbind.c (Fdbus_call_method)
1841 (Fdbus_call_method_asynchronously): Use English numeric format for
1842 timeout values in doc string.
1843
1844 2009-08-25 Kenichi Handa <handa@m17n.org>
1845
1846 * alloc.c (mark_char_table): New function.
1847 (mark_object): Use mark_char_table for a char-table.
1848
1849 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1850 (CHAR_TABLE_REF): Use it.
1851
1852 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
1853
1854 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1855 before invoking the newly build emacs to check for load-path
1856 shadowing.
1857
1858 2009-08-22 Glenn Morris <rgm@gnu.org>
1859
1860 * Makefile.in (bootstrap_exe): New variable.
1861 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1862 Use ${bootstrap_exe}.
1863
1864 2009-08-22 Eli Zaretskii <eliz@gnu.org>
1865
1866 * coding.h (encode_coding_string): Don't encode unibyte strings.
1867 (Bug#4047)
1868
1869 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
1870
1871 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1872
1873 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1874 intended as hotfix only.
1875 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1876
1877 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1878
1879 * nsterm.m (ns_get_color): Update documentation properly for last
1880 change, and clean up loose ends in the code left by it. Fix
1881 longstanding bug with 16-bit hex parsing, and add support for
1882 yet another X11 format (rgb:r/g/b) for compatibility.
1883 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1884 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1885
1886 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1887
1888 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1889
1890 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
1891
1892 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1893 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1894 (xd_initialize, xd_pending_messages): Check, whether
1895 $DBUS_SESSION_BUS_ADDRESS is set.
1896
1897 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1898
1899 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1900
1901 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1902
1903 2009-08-20 Glenn Morris <rgm@gnu.org>
1904
1905 * emacs.c (system-type): Doc fix.
1906
1907 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1908
1909 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1910 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1911
1912 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
1913
1914 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1915 New functions.
1916 (xd_initialize): Revert change from 2009-08-16.
1917
1918 2009-08-18 Kenichi Handa <handa@m17n.org>
1919
1920 * fontset.c (Ffontset_font): If a nil element is found in a
1921 font-group vector, return nil.
1922
1923 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
1924
1925 * process.c (status_notify): Don't perform redisplay.
1926 (Fdelete_process, list_processes_1, process_send_signal):
1927 Expliticly perform redisplay.
1928 (wait_reading_process_output): Always check process status, but
1929 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1930
1931 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
1932
1933 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
1934 (XFLOAT_INIT): New macro for storing a float value.
1935 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1936 * fns.c (sxhash): Copy out the value of a float in order to
1937 examine its bytes.
1938 * dbusbind.c (xd_append_arg): Likewise.
1939
1940 * emacs.c (main): Don't call syms_of_data twice.
1941
1942 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
1943
1944 * dbusbind.c (xd_initialize): Add connection file descriptor to
1945 input_wait_mask, in order to let select() detect, whether a new
1946 message has been arrived.
1947 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
1948
1949 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
1950
1951 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1952 New functions.
1953
1954 * lisp.h (xd_pending_messages): Declare.
1955
1956 * keyboard.c (readable_events): Call xd_pending_messages.
1957
1958 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
1959
1960 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
1961
1962 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1963
1964 * buffer.c (set_buffer_internal_1)
1965 (swap_out_buffer_local_variables): Check for unbound local
1966 variables (Bug#4138).
1967
1968 2009-08-14 Eli Zaretskii <eliz@gnu.org>
1969
1970 * process.c (create_pty): Fix last change.
1971
1972 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
1973
1974 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1975 (xbm_load_image): Caller changed.
1976 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
1977
1978 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
1979
1980 * process.c (create_pty): New function.
1981 (Fstart_process): Use it to allow Emacs to just associate a pty
1982 with the buffer. See associated change in gdb-mi.el.
1983 (list_processes_1): Deal with no program name.
1984 (start_process_unwind): Use pid == -2 to mean no process.
1985
1986 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1987
1988 * cmds.c (nonundocount): New global variable.
1989 (keys_of_cmds): Initialize it.
1990 (Fself_insert_command): Use it to combine upto 20 sequential chars
1991 into a single undo entry, just like the Qself_insert_command code in
1992 keyboard.c does.
1993 Call frame_make_pointer_invisible, also like the Qself_insert_command
1994 code in keyboard.c does.
1995 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1996 than its own local replacement for it.
1997
1998 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
1999
2000 * fns.c (concat): Don't re-set string length to its current value.
2001
2002 * coding.h (decode_coding_string, encode_coding_string):
2003 Use SBYTES macro.
2004
2005 * doprnt.c (doprnt_lisp): Delete unused function.
2006 (doprnt): Merge with doprnt1, discarding lispstrings code.
2007 * lisp.h (doprnt_lisp): Don't declare.
2008
2009 2009-08-07 Juri Linkov <juri@jurta.org>
2010
2011 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2012
2013 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2014
2015 * print.c (syms_of_print): Undo previous change.
2016
2017 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2018
2019 * lread.c (read1, syms_of_lread): Read hashtables back from the
2020 readable format.
2021
2022 * print.c (print_preprocess, print_object): Print hashtables fully
2023 and readably.
2024 (syms_of_print): Provide 'hashtable-print-readable.
2025
2026 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2027
2028 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2029 no family set.
2030 (nsfont_open): Handle case when entity has no family.
2031
2032 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2033
2034 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2035 element, not a list, for match case.
2036
2037 2009-07-28 Kenichi Handa <handa@m17n.org>
2038
2039 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2040 rigidly.
2041
2042 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2043 font_parse_xlfd. Check font properties more rigidly.
2044
2045 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2046
2047 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2048 bsd-common.h.
2049
2050 2009-07-27 Kenichi Handa <handa@m17n.org>
2051
2052 * xfaces.c (face_with_height): Call font_clear_prop.
2053
2054 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2055
2056 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2057
2058 * xterm.c (x_term_init): Use Qx.
2059
2060 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2061
2062 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2063 (ns_get_color): Revert 2009-07-16 change.
2064
2065 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2066
2067 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2068 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2069
2070 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2071
2072 * coding.h (decode_coding_string, encode_coding_string):
2073 Use SCHARS macro.
2074
2075 * lread.c: Rewrite 2009-07-21 changes.
2076 (load_depth): Delete.
2077 (Qload_in_progress): New variable.
2078 (load_unwind): Don't reference load_depth or load_in_progress.
2079 (Fload): Likewise; specbind Qload_in_progress instead.
2080 (init_lread): Don't initialize load_depth.
2081 (syms_of_lread): Initialize and protect Qload_in_progress.
2082
2083 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2084
2085 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2086
2087 2009-07-23 Yavor Doganov <yavor@gnu.org>
2088
2089 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2090
2091 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2092
2093 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2094 Bugs 3792, 3720, 2402.
2095 (ns_lookup_indexed_color): Check for bad index.
2096 (ns_index_color): Init unused slot to 0.
2097 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2098 Bug 3714, possibly 3082.
2099
2100 2009-07-22 Jason Rumney <jasonr@gnu.org>
2101
2102 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2103 Position IME window at cursor (Bug#2570).
2104 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2105 (globals_of_w32fns): Dynamically load functions required above.
2106
2107 * w32term.c (w32_draw_window_cursor): Send message to reposition
2108 any IME window.
2109
2110 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2111
2112 * fileio.c: Revert 2009-07-16 changes.
2113 (Vauto_save_include_big_deletions): New variable.
2114 (Fdo_auto_save): Disable auto-save only if
2115 auto-save-include-big-deletions is nil.
2116
2117 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2118
2119 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2120 the overflowed pixels into account (Bug#3879).
2121
2122 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2123
2124 * lread.c (load_depth): New variable.
2125 (Fload, load_unwind, init_lread): Set it to the load recursion
2126 depth; set load_in_progress as a simple boolean based on the
2127 current load_depth. (Bug#3892)
2128
2129 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2130
2131 * nsfont.m (ns_has_attribute): Remove.
2132 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2133
2134 2009-07-18 Juri Linkov <juri@jurta.org>
2135
2136 * process.c (Fset_process_query_on_exit_flag): Mention killing
2137 a buffer in docstring.
2138
2139 2009-07-17 Kenichi Handa <handa@m17n.org>
2140
2141 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2142
2143 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2144
2145 * nsfns.m (Fns_set_alpha): Remove function.
2146 (syms_of_nsfns): Don't defsubr it.
2147
2148 * nsterm.m (ns_get_color): Remove incompatible color formats.
2149 (ns_color_to_lisp): Generate #rrggbb color format string.
2150
2151 2009-07-16 Richard Stallman <rms@gnu.org>
2152
2153 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2154 (Fset_buffer_auto_saved): Handle save_length = -2.
2155
2156 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2157
2158 * xterm.c (Qx_gtk_map_stock): New var.
2159
2160 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2161 of calling intern each time.
2162
2163 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2164
2165 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2166 does tiling.
2167
2168 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2169
2170 2009-07-14 Kenichi Handa <handa@m17n.org>
2171
2172 * font.c (font_vconcat_entity_vectors): New function.
2173 (struct font_sort_data): New member font_driver_preference.
2174 (font_compare): Check font_driver_preference.
2175 (font_sort_entities): The format of the first argument changed.
2176 (font_delete_unmatched): Likewise.
2177 (font_list_entities): The return type changed.
2178 (font_select_entity): The format of the second argument changed.
2179 (font_find_for_lface): Adjuste for the above changes.
2180 Don't suppress the checking of C even if the repertory supports it.
2181 (Flist_fonts): Adjust for the above changes.
2182
2183 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2184 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2185 Reject a font who has adstyle property that is different from a
2186 langname derived from registry property.
2187 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2188
2189 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2190
2191 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2192 local copy of dirfilename.
2193
2194 2009-07-13 Kenichi Handa <handa@m17n.org>
2195
2196 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2197 against max_char.
2198
2199 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2200 calling XSYMBOL (sym).
2201
2202 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2203
2204 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2205 New function.
2206 (directory_files_internal) [WINDOWSNT]:
2207 Bind w32-get-true-file-attributes to either t or nil, depending whether
2208 the filesystem of the directory is fast or slow.
2209
2210 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2211 file name.
2212 (is_slow_fs): New function.
2213 (stat): Use it to determine whether to issue more system calls to
2214 get accurate file attributes, when w32-get-true-file-attributes is
2215 `local'.
2216
2217 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2218
2219 * xfns.c (Fx_select_font): Remember last font selected in
2220 x_last_font_name and use that the next time. Also try the frame
2221 parameter font-parameter as default to the font dialog.
2222
2223 2009-07-10 Kenichi Handa <handa@m17n.org>
2224
2225 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2226
2227 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2228
2229 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2230
2231 * w32.c (stat): Treat UNC file names as residing on remote
2232 drives. (Bug#3542)
2233
2234 2009-07-09 Kenichi Handa <handa@m17n.org>
2235
2236 * fontset.c (fontset_find_font): Fix previous change.
2237
2238 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2239
2240 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2241 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2242 error flag.
2243
2244 2009-07-08 Kenichi Handa <handa@m17n.org>
2245
2246 * fontset.c (fontset_find_font): Fix the logic of handling
2247 charset_matched.
2248 (font_for_char): Delete unused var.
2249 (generate_ascii_font_name): Delete it.
2250
2251 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2252
2253 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2254 (encode_coding_sjis): Fix the code range check.
2255
2256 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2257
2258 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2259 (Fexpand_file_name): Copy string data properly (Bug#3772).
2260
2261 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2262
2263 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2264 first MapNotify.
2265
2266 2009-07-07 Kenichi Handa <handa@m17n.org>
2267
2268 * character.h (unibyte_has_multibyte_table): Delete extern.
2269 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2270
2271 * charset.c (Fset_charset_priority): Update charset_unibyte.
2272 (syms_of_charset): Initialize charset_unibyte.
2273
2274 * character.c (unibyte_has_multibyte_table): Delete it.
2275 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2276 charset_unibyte.
2277 (multibyte_char_to_unibyte_safe): Likewise.
2278 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2279
2280 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
2281 (x_produce_glyphs): Likewise.
2282
2283 * .gdbinit (xcharset): Fix the treating $arg0.
2284
2285 2009-07-04 Eli Zaretskii <eliz@gnu.org>
2286
2287 Emulation of `getloadavg' on MS-Windows.
2288 * w32.c: Include float.h
2289 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2290 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2291 (get_native_system_info, get_system_times): New functions.
2292 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2293 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2294 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2295 g_b_init_get_system_times, and num_of_processors.
2296
2297 2009-07-03 Jason Rumney <jasonr@gnu.org>
2298
2299 * w32term.c (w32_initialize): Use standard types.
2300
2301 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2302
2303 * dired.c (Ffile_attributes): Decode user and group names by the
2304 locale's encoding. (Bug#3443)
2305
2306 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2307
2308 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2309 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2310
2311 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2312
2313 * term.c (init_tty): Remove spurious #ifdef.
2314
2315 * m/mips.h: Mention this file is also used for netbsd.
2316 * m/pmax.h: Remove file.
2317
2318 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2319
2320 * xterm.h (struct x_display_info): Add invisible_cursor.
2321 (struct x_output): Add current_cursor.
2322
2323 * xterm.c (XTtoggle_invisible_pointer): New function.
2324 (x_define_frame_cursor): Don't define cursor if invisible or the
2325 same as before. Set current_cursor.
2326 (x_create_terminal): Set toggle_invisible_pointer_hook.
2327
2328 * xfns.c (make_invisible_cursor): New function.
2329 (x_set_mouse_color): Call make_invisible_cursor.
2330 Set current_cursor.
2331 (x_window): Set current_cursor.
2332
2333 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2334
2335 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2336 inserting a character.
2337 (read_avail_input): Call frame_make_pointer_visible.
2338
2339 * frame.c (Vmake_pointer_invisible): New variable.
2340 (frame_make_pointer_invisible, frame_make_pointer_visible):
2341 New functions.
2342 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2343
2344 * frame.h: Declare frame_make_pointer_invisible and
2345 frame_make_pointer_visible.
2346 (struct frame): Add pointer_invisible.
2347
2348 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2349
2350 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2351 frame isn't visible.
2352 (xg_frame_resized): If width/height is -1, get size of window
2353 from X server.
2354
2355 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2356 for MapNotify.
2357
2358 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
2359 here or call change_frame_size. Just call flush_and_sync.
2360 (flush_and_sync): Reintroduce.
2361
2362 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
2363
2364 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
2365
2366 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2367 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2368
2369 * frame.h: Declare Qsticky.
2370
2371 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2372
2373 * nsfns.m (ns_frame_parm_handlers): Ditto.
2374
2375 * frame.c: Declare Qsticky.
2376 (frame_parms): Add sticky.
2377
2378 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2379
2380 * xterm.h: Declare x_set_sticky.
2381
2382 * xterm.c (x_set_sticky): New function.
2383
2384 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2385 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2386 xg_tool_bar_proxy_help_callback.
2387
2388 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2389
2390 * frame.c: Qmaximized is new.
2391 (x_set_frame_parameters): Do not handle fullscreen specially.
2392 Only set width and height if explicitly set.
2393 (x_set_fullscreen): Handle Qmaximized.
2394 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2395 (syms_of_frame): Initialize Qmaximized.
2396
2397 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2398 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
2399
2400 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
2401 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2402 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
2403 set gravity to NorthWestGravity when USE_GTK.
2404 (set_wm_state): New function.
2405 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
2406 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2407 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
2408 or the case when no window manager is running. That means remove calls
2409 to x_real_positions and x_fullscreen_adjust.
2410
2411 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2412 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2413 flush_and_sync.
2414 (xg_height_changed): New function.
2415 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
2416 and gtk_window_set_policy. Set frame gravity after parsing the
2417 geometry string.
2418 (xg_update_frame_menubar, free_frame_menubar)
2419 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2420 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2421 Remove calls to xg_frame_set_char_size.
2422
2423 2009-07-01 Kenichi Handa <handa@m17n.org>
2424
2425 * keyboard.c (decode_keyboard_code): New function.
2426 (tty_read_avail_input): Decode the input bytes if necessary.
2427
2428 * coding.c (setup_coding_system):
2429 Initialize coding->carryover_bytes to 0.
2430 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2431 use Qno_conversion.
2432
2433 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2434
2435 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2436
2437 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
2438
2439 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
2440
2441 2009-06-30 Jason Rumney <jasonr@gnu.org>
2442
2443 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2444 is already loaded.
2445 Set user model ID if supported (bug#1849).
2446
2447 2009-06-29 Jim Meyering <meyering@redhat.com>
2448
2449 Remove useless if-before-xfree test.
2450 * nsfont.m (nsfont_close): Remove useless test.
2451 * term.c (delete_tty): Likewise.
2452 * w32.c (system_process_attributes): Likewise.
2453 * w32font.c (w32font_close): Likewise.
2454 * xfaces.c (x_free_gc): Likewise.
2455 * xselect.c (buffer): Likewise.
2456
2457 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2458
2459 * process.c (send_process): Keep decoded string in a local
2460 variable and protect it from GC. (Bug#3521)
2461
2462 2009-06-28 Eli Zaretskii <eliz@gnu.org>
2463
2464 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2465 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2466
2467 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
2468
2469 * xdisp.c (start_display, handle_face_prop)
2470 (move_it_vertically_backward, cursor_row_fully_visible_p)
2471 (redisplay_window, try_window_id, produce_image_glyph):
2472 Delete some #ifdef-ed out code chunks that are now obsolete.
2473
2474 * xterm.c (x_update_window_begin, x_new_focus_frame)
2475 (x_scroll_bar_handle_click, handle_one_xevent)
2476 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2477 (x_make_frame_visible, x_make_frame_invisible)
2478 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2479 code chunks that are now obsolete.
2480
2481 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
2482
2483 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2484 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2485 for hours, when optimzation is enabled.
2486 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2487 (xd_read_message): Make them static.
2488
2489 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2490
2491 * term.c (turn_on_face): Allow simultaneously bold and dim
2492 terminal faces (Bug#3530).
2493
2494 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
2495
2496 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2497
2498 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2499 truncation glyphs (Bug#3686).
2500
2501 2009-06-27 Glenn Morris <rgm@gnu.org>
2502
2503 * m/pmax.h: Restore file, with only netbsd portions.
2504
2505 2009-06-26 David Reitter <david.reitter@gmail.com>
2506
2507 * nsterm.m (keydown): Avoid infinite loop.
2508
2509 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2510
2511 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2512 the arg FORCE_SYMBOL.
2513
2514 2009-06-25 Kenichi Handa <handa@m17n.org>
2515
2516 * fontset.c (fontset_find_font): When a usable rfont_def is found
2517 in a fallback font-group, make it the first element of the group.
2518
2519 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
2520
2521 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2522
2523 2009-06-24 Kenichi Handa <handa@m17n.org>
2524
2525 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2526 set for C.
2527 (fontset_font): Record the availability of a font for C both in
2528 the realized fontsets of the current one and the default one.
2529
2530 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2531
2532 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2533 conditional, it is always defined on AIX.
2534
2535 2009-06-23 Miles Bader <miles@gnu.org>
2536
2537 * window.c (Vrecenter_redisplay): New variable.
2538 (syms_of_window): Initialize it.
2539 (Qtty): New extern declaration.
2540 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2541
2542 2009-06-23 Jim Meyering <meyering@redhat.com>
2543
2544 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2545 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
2546 pointer dereferences are guaranteed to be valid.
2547
2548 2009-06-23 Kenichi Handa <handa@m17n.org>
2549
2550 * emacs.c (main): Call init_font ().
2551
2552 * font.h (Vfont_log): Extern it.
2553 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2554
2555 * font.c (font_sort_entities, font_list_entities)
2556 (font_matching_entity, font_open_entity)
2557 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2558 (Vfont_log): Delete static.
2559 (font_log_env_checked): Delete this variable.
2560 (font_add_log): Don't check font_log_env_checked.
2561 (font_deferred_log): Check Vfont_log.
2562 (init_font): New function.
2563
2564 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2565
2566 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2567
2568 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2569
2570 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2571
2572 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2573 (face_for_char): Don't call font_deferred_log here.
2574 (font_for_char): Likewise.
2575
2576 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
2577
2578 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2579 rather than its background_width for drawing the overline and
2580 underline (Bug#489).
2581
2582 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2583 rather than its background_width for drawing the overline and
2584 underline (Bug#489).
2585 (xg_default_icon_file): New variable.
2586 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2587 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
2588
2589 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2590 (load_overlay_strings): Remove externs.
2591 (fast_find_position): Function deleted.
2592 (mouse_face_from_buffer_pos): New function, based on
2593 fast_find_position. Correctly handle before-strings,
2594 display-strings, and after-strings (Bug#1220).
2595 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2596
2597 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2598
2599 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
2600 (move_it_in_display_line_to, move_it_in_display_line_to)
2601 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2602
2603 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2604
2605 * Branch for 23.1.
2606
2607 2009-06-21 Jason Rumney <jasonr@gnu.org>
2608
2609 * w32term.c (keyboard_codepage): New static variable.
2610 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2611 (w32_read_socket) [WM_CHAR]: Use it to decode character
2612 input (bug#3237).
2613 (w32_initialize): Initialize it.
2614 (codepage_for_locale): New function.
2615
2616 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
2617
2618 * process.c (status_message): Pass Faset index argument as a lisp
2619 object, so as to work with USE_LISP_UNION_TYPE.
2620
2621 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2622
2623 * coding.c (Ffind_coding_systems_region_internal):
2624 Cache checked characters.
2625
2626 2009-06-18 Kenichi Handa <handa@m17n.org>
2627
2628 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
2629
2630 2009-06-18 Andreas Schwab <aschwab@redhat.com>
2631
2632 * xdisp.c (redisplay_internal): Check that the frame is still
2633 live after redisplay of its windows.
2634 (redisplay_windows): Check that the window is still live.
2635
2636 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2637
2638 * coding.c (detect_coding_utf_16): Fix previous change.
2639
2640 2009-06-16 Kenichi Handa <handa@m17n.org>
2641
2642 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2643 UTF-16 by checking the dispersion of Eth and Oth bytes.
2644
2645 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2646
2647 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2648
2649 2009-06-15 Kenichi Handa <handa@m17n.org>
2650
2651 * process.c (status_message): Fix previous change. Be sure to
2652 decode a localized string.
2653
2654 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2655
2656 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2657 add comment explaining why.
2658
2659 2009-06-14 Sidney Markowitz <sidney@sidney.com>
2660
2661 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
2662
2663 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2664
2665 * nsfont.m (ns_attribute_value): Remove.
2666 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2667 (ns_has_attribute): Shrink the normal range.
2668 (ns_findfonts): Don't worry about requested spec in determining
2669 need for synthItal.
2670 (ns_get_covering_families): Retain scriptToFamilies.
2671
2672 2009-06-14 Seiji Zenitani <zenitani@mac.com>
2673
2674 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2675
2676 2009-06-11 Kenichi Handa <handa@m17n.org>
2677
2678 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2679 overhang for the static composition case.
2680
2681 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2682
2683 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2684 overhang for the automatic composition case.
2685
2686 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2687 composition case.
2688
2689 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
2690
2691 * xdisp.c (get_next_display_element): When handling wrap-prefix
2692 and line-prefix, treat \n as a control character (bug#3502).
2693
2694 2009-06-10 Kenichi Handa <handa@m17n.org>
2695
2696 * font.c (font_parse_family_registry): Fix for one-char foundry.
2697 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2698
2699 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2700
2701 * process.c (status_message): Fix handling of multibyte signal
2702 string (Bug#3499).
2703
2704 2009-06-09 Jim Meyering <meyering@redhat.com>
2705
2706 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2707 color name is missing.
2708
2709 2009-06-09 Kenichi Handa <handa@m17n.org>
2710
2711 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2712 FROM-CODE and TO-CODE are codepoints of CHARSET.
2713
2714 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2715
2716 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2717
2718 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2719
2720 Changes to support :script/:lang/:otf in NS font driver.
2721 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2722 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2723 indicate not part of font driver interface, and change callers.
2724 (ns_get_family): Remove pointless null check.
2725 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2726 ns_spec_to_descriptor, ns_descriptor_to_entity.
2727 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2728 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2729 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2730 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2731 (ns_get_req_script, ns_accumulate_script_ranges)
2732 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2733 New functions.
2734 (nsfont_list, nsfont_match): Use ns_findfonts.
2735 (nsfont_open): Use font descriptor instead of traits.
2736 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2737 (dump_glyphstring): Rename to ns_dump_glyphstring.
2738
2739 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2740
2741 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2742
2743 * fontset.c (fontset_from_font): Remove NS-specific code.
2744
2745 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
2746
2747 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2748 nonactive windows.
2749
2750 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
2751
2752 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
2753
2754 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2755
2756 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2757
2758 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
2759
2760 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2761 account for the overflowing of newlines into the last glyph on the
2762 display line (Bug#3482).
2763
2764 2009-06-05 David Reitter <david.reitter@gmail.com>
2765
2766 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2767 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
2768 Fns_selection_exists_p, Fns_selection_owner_p.
2769
2770 2009-06-03 Jason Rumney <jasonr@gnu.org>
2771
2772 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2773 available. (Bug#3379)
2774
2775 2009-05-29 Kenichi Handa <handa@m17n.org>
2776
2777 * coding.c (get_translation_table):
2778 Check Venable_character_translation.
2779
2780 2009-05-26 David Reitter <david.reitter@gmail.com>
2781
2782 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2783 (x_make_frame_visible): Move frame to front rather than calling
2784 ns_raise_frame().
2785 (keyDown:): Do not swallow events that aren't re-sent if frame
2786 isn't key window.
2787 (drawRect:): Do not set visibility/iconified flags because
2788 drawRect may be called by NSView even if the frame is hidden.
2789
2790 * nsfns.m (Fx_create_frame): Follow other ports in
2791 determining visibility; default to t. Ensure async_visible is set.
2792
2793 2009-05-23 Eli Zaretskii <eliz@gnu.org>
2794
2795 * dired.c (Ffile_attributes): Doc fix.
2796
2797 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2800
2801 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2802
2803 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2804 and xfont_scratch_props.
2805 (syms_of_xfont): Do it here instead.
2806 (xfont_find_ccl_program): Delete, unused.
2807 (xfont_open): Delete unused var `i'.
2808
2809 2009-05-21 Kenichi Handa <handa@m17n.org>
2810
2811 * fontset.c (Qlatin): Don't make it static.
2812
2813 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2814 New functions.
2815 (xfont_scripts_cache, xfont_scratch_props): New variables.
2816 (Qlatin, Vscalable_fonts_allowed): Extern it.
2817 (xfont_list_pattern): Argument changed. Callers changed.
2818 Check Vscalable_fonts_allowed. Check the support of a script.
2819 (xfont_list): Don't reject a font spec with :script property.
2820 (xfont_has_char): Fix setting of encoding.
2821 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2822 xfont_scratch_props.
2823
2824 2009-05-19 Kenichi Handa <handa@m17n.org>
2825
2826 * font.c (font_sort_entities): Rename from font_sort_entites.
2827 Callers changed.
2828
2829 2009-05-18 Kenichi Handa <handa@m17n.org>
2830
2831 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2832
2833 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2834
2835 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2836 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2837
2838 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2839
2840 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2841 (x_delete_terminal): Dissociate resource database from display and
2842 then call XrmDestroyDatabase before closing display.
2843
2844 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2845
2846 * nsterm.m (ns_read_socket): Remove unused variable.
2847 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2848 whether selected frame is viable before raising it (based on patch
2849 by David Reitter), and improve commentary.
2850 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
2851
2852 2009-05-15 Kenichi Handa <handa@m17n.org>
2853
2854 * font.c (Ffont_spec): Check arguments.
2855
2856 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
2857
2858 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2859 weight when testing attributes (Bug#3282).
2860
2861 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2862
2863 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2864 what we expect to get in the next ConfigureNotify event.
2865
2866 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2867 before Xft one (Bug#1696).
2868
2869 2009-05-07 David Reitter <david.reitter@gmail.com>
2870
2871 * nsfns.m (Fx_display_planes): Compute bitplanes using
2872 NSBitsPerPixelFromDepth (Bug#3207).
2873
2874 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
2875
2876 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2877
2878 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
2879
2880 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2881
2882 2009-05-07 David Reitter <david.reitter@gmail.com>
2883
2884 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2885 Respect mouse face background.
2886
2887 2009-05-07 David Reitter <david.reitter@gmail.com>
2888
2889 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2890 Mouse movement/highlight: bracket drawing operations
2891 in ns_update_begin and ns_update_end.
2892
2893 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2894
2895 * nsfns.m (ns_get_screen): Rewrite.
2896 Don't presume selected-frame is of type `ns'.
2897
2898 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2899 all drivers.
2900
2901 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2902
2903 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2904
2905 * keyboard.h (add_user_signal): Fix typo in extern.
2906
2907 * lisp.h (add_user_signal): Remove extern.
2908
2909 * unexelf.c (unexec): Consider a section to precede the .bss section
2910 if its addresses overlap that of .bss.
2911 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2912 instead of dumping process.
2913
2914 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2915
2916 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2917
2918 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2919
2920 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2921
2922 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2923
2924 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2925 any statements.
2926
2927 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2928
2929 * process.c (read_process_output): Make sure the current buffer is
2930 always restored.
2931
2932 * coding.c (record_conversion_result): Don't modify
2933 Vlast_code_conversion_error for successful result.
2934 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2935
2936 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2937
2938 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
2939 (load_charset_map): Remove unnecessary code.
2940
2941 2009-04-30 David Reitter <david.reitter@gmail.com>
2942
2943 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
2944 through f24.
2945
2946 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
2947
2948 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2949
2950 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2951 face_at_buffer_position.
2952 (face_before_or_after_it_pos, get_next_display_element)
2953 (note_mouse_highlight): Update face_at_buffer_position call.
2954
2955 * term.c (term_mouse_highlight):
2956 * msdos.c (IT_note_mouse_highlight):
2957 * fontset.c (Finternal_char_font):
2958 * font.c (font_at, font_range): Update face_at_buffer_position call.
2959
2960 * dispextern.h (face_at_buffer_position): Update prototype.
2961
2962 2009-04-30 Kenichi Handa <handa@m17n.org>
2963
2964 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
2965
2966 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2967
2968 * callproc.c (Fcall_process): Fix GC protection. Make sure
2969 current buffer is always restored.
2970
2971 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2972
2973 * atimer.c (init_atimer): Also clear stopped_atimers.
2974
2975 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2976
2977 * process.c (create_process): Clean up merger residues of
2978 2008-07-17 change.
2979
2980 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
2981
2982 * lread.c (Vread_circle): New variable.
2983 (read1): Disable recursive read if Vread_circle is nil.
2984
2985 2009-04-29 Kenichi Handa <handa@m17n.org>
2986
2987 * fontset.h (set_default_ascii_font): Delete extern.
2988
2989 * fontset.c (set_default_ascii_font): Delete this unused function.
2990
2991 * frame.c (x_set_font): When ARG is a font-object, check if the
2992 font-object matches with the ASCII font-spec of the frame's
2993 fontset. If not, create a new fontset for the frame. (Bug #3075)
2994
2995 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2996
2997 * fns.c (Flocale_info): Protect vector from GC during decoding.
2998
2999 * process.c (Fstart_process): Protect argv strings from GC during
3000 encoding.
3001
3002 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3003
3004 * sysdep.c: Include <ctype.h>.
3005
3006 2009-04-27 David Reitter <david.reitter@gmail.com>
3007
3008 * nsfont.m (nsfont_open): Remove unused variable shrink.
3009 Remove commented-out code.
3010
3011 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3012
3013 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3014
3015 2009-04-25 Jason Rumney <jasonr@gnu.org>
3016
3017 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3018
3019 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3020
3021 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3022 Swap bytes in short integer if fringe bitmap width > 8.
3023
3024 2009-04-23 Kenichi Handa <handa@m17n.org>
3025
3026 * xfaces.c (Fx_list_fonts): If a font size is specified in
3027 PATTERN, set it in returned scalable fonts.
3028
3029 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3030
3031 * keyboard.c (Fset_input_meta_mode): Doc fix.
3032
3033 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3034
3035 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3036
3037 * coding.c (Fterminal_coding_system): Doc fix.
3038
3039 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3040 (Fx_display_pixel_height, Fx_display_planes)
3041 (Fx_display_color_cells, Fx_server_max_request_size)
3042 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3043 (Fx_display_mm_height, Fx_display_mm_width)
3044 (Fx_display_backing_store, Fx_display_visual_class)
3045 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3046 Doc fixes, replacing "terminal id" with "terminal object".
3047 (check_x_display_info): Handle terminal objects instead of
3048 terminal ids.
3049
3050 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3051 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3052 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3053 Doc fixes, replacing "terminal id" with "terminal object".
3054
3055 2009-04-21 Kenichi Handa <handa@m17n.org>
3056
3057 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3058 (font_score): Check AVGWIDTH too.
3059
3060 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3061 worst case.
3062 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3063 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3064
3065 2009-04-19 Jason Rumney <jasonr@gnu.org>
3066
3067 The following changes fix Bug#3005 for wide glyphs on each platform,
3068 without reintroducing Bug#1258 for stretch glyphs.
3069
3070 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3071 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3072 get_phys_cursor_geometry.
3073
3074 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3075 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3076 using get_phys_cursor_geometry.
3077
3078 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3079 correctly calculated.
3080
3081 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3082
3083 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3084 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3085 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3086 is deprecated.
3087
3088 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3089
3090 * font.c (font_put_frame_data): Use xfree instead of free.
3091
3092 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3093
3094 * w32font.c (Qja, Qko): Remove declarations.
3095 (syms_of_w32font): Don't DEFSYM them.
3096
3097 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3100
3101 * font.h (Qja, Qko): Extern them.
3102
3103 * ftfont.c (Qja, Qko): Remove declarations.
3104
3105 * xfont.c (Qja, Qko): Remove declarations.
3106
3107 2009-04-17 Kenichi Handa <handa@m17n.org>
3108
3109 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3110 string from a vector to handle Latin-1 characters correctly.
3111
3112 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3113 entity even if the cache hits.
3114
3115 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3116
3117 * search.c (boyer_moore): Use zero as marker value for a possible
3118 match instead of depending on overflow behavior. (Bug#2844)
3119
3120 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3121 * lisp.h: Adjust prototypes.
3122
3123 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3126 change (Bug#3003).
3127
3128 2009-04-16 Kenichi Handa <handa@m17n.org>
3129
3130 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3131
3132 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3133 adstyle.
3134
3135 * ftfont.c (Qja, Qko): Don't make them static.
3136 (enum ftfont_cache_for): New enum.
3137 (fc_charset_table): Undo the previous change.
3138 (ftfont_get_latin1_charset): Delete it.
3139 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3140 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3141 non-scarable font, try to get AVERAGE_WIDTH.
3142 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3143 Change ft_face_cache from a list of a hash-table. Don't check
3144 `ja' and `ko' adstyle here.
3145 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3146 FTFONT_CACHE_FOR_CHARET.
3147 (ftfont_get_charset): Undo the previous change.
3148 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3149 (ftfont_close): Likewise.
3150 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3151
3152 * font.c (font_sort_entites): Change the meaning of the arg
3153 BEST-ONLY. Don't optimize for VEC of lenght 1.
3154 (font_select_entity): Just return the value of font_sort_entites.
3155
3156 * xfaces.c (merge_face_vectors): Reflect font properties in
3157 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3158 font_clear_prop if a face attribute doesn't change.
3159
3160 * charset.h (charset_ksc5601): Extern it.
3161
3162 * charset.c (charset_ksc5601): New variable.
3163 (Fdefine_charset_internal): Set charset_ksc5601.
3164 (init_charset_once): Initialize charset_ksc5601 to -1.
3165
3166 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3167
3168 * fileio.c (history_delete_duplicates): Remove unused declaration.
3169
3170 * callint.c (history_delete_duplicates): New declaration.
3171 (Fcall_interactively): Remove command history duplicates when
3172 history_delete_duplicates is true.
3173
3174 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3175
3176 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3177
3178 2009-04-14 Kenichi Handa <handa@m17n.org>
3179
3180 * font.c (Ffont_info): Fix docstring. Fix the second element of
3181 the returned value (bug#2949).
3182
3183 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3184
3185 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3186
3187 2009-04-14 Kenichi Handa <handa@m17n.org>
3188
3189 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3190 encoding charset is ascii_compatible.
3191
3192 * charset.c (Fdefine_charset_internal): Make charset
3193 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3194 code_offset is 0, and covers all ASCII characters.
3195
3196 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3197
3198 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3199 (ns_string_to_pasteboard_internal):
3200 * nsmenu.m (process_dialog):
3201 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3202 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3203 * lisp.h (Fx_load_color_file): Declare.
3204
3205 2009-04-13 Kenichi Handa <handa@m17n.org>
3206
3207 * font.c (font_delete_unmatched): Preserve the order of list elements.
3208 (font_select_entity): Suppress the code to optimize for the same
3209 kind of fonts.
3210 (font_load_for_lface): Get a font that supports at least ASCII
3211 characters.
3212
3213 * ftfont.c (Qja, Qko): New variables.
3214 (fc_charset_table): Delete uniquifier data for iso8859-1.
3215 (ftfont_get_latin1_charset): New function.
3216 (get_adstyle_property): New function.
3217 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3218 bitmap fonts.
3219 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3220 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3221 `ko' or `ja'.
3222 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3223 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3224 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3225 property.
3226 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3227 (syms_of_ftfont): DEFSYM Qja and Qko.
3228
3229 2009-04-09 Kenichi Handa <handa@m17n.org>
3230
3231 * charset.c (map_charset_chars): For a charset of `superset'
3232 method, fix calculation of code range.
3233
3234 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3235 from the list of extra properties.
3236 (font_clear_prop): Be sure to delete `:name' font property.
3237
3238 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3239
3240 * dispnew.c (redraw_overlapping_rows): Fix detection of
3241 overlapping for topmost and bottommost rows.
3242
3243 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3244
3245 2009-04-06 Jason Rumney <jasonr@gnu.org>
3246
3247 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3248
3249 2009-04-06 Kenichi Handa <handa@m17n.org>
3250
3251 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3252
3253 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3254
3255 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3256
3257 * ftfont.c (ftfont_open): Fix checking of the return value of
3258 FT_Load_Char. Fix setting font->underline_thickness.
3259
3260 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3261
3262 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3263 (Fterminal_parameters, Fterminal_parameter)
3264 (Fset_terminal_parameter): In doc string, refer to terminal
3265 objects rather than terminal ids.
3266
3267 2009-04-04 Eli Zaretskii <eliz@gnu.org>
3268
3269 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3270 ret_lim_data. (Bug#2867)
3271
3272 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
3273
3274 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3275 so they don't get wider than the window, matching 2006-01-23
3276 change to the partner function in xdisp.c (Bug#2800).
3277
3278 2009-04-03 Kenichi Handa <handa@m17n.org>
3279
3280 * print.c (print_object): Make each lowest sub_char_table start a
3281 new line (Bug#2866).
3282
3283 2009-04-02 Kenichi Handa <handa@m17n.org>
3284
3285 * fontset.c (fontset_font): Record no-font when a fontset
3286 explicitly tells not to try another font-specs.
3287
3288 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3289
3290 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3291
3292 2009-03-30 Kenichi Handa <handa@m17n.org>
3293
3294 * fontset.c (fontset_from_font): Specify only registry in a
3295 font-spec for all characters supported by that registry.
3296
3297 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3298 even if HAVE_M17N_FLT is not defined.
3299
3300 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3301
3302 * ftfont.c: Conditionalize prototyping and use of
3303 ftfont_variation_glyphs.
3304
3305 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3306
3307 * frame.c (delete_frame): Work around compiler bug.
3308
3309 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3310 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3311 Some more EMACS_INT.
3312 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3313
3314 * xdisp.c (dump_glyph): Fix typo.
3315
3316 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3317 (adjust_markers_gap_motion, adjust_markers_for_delete)
3318 (adjust_markers_for_insert, adjust_point)
3319 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3320 (make_gap, copy_text, count_size_as_multibyte, insert)
3321 (insert_and_inherit, insert_before_markers)
3322 (insert_before_markers_and_inherit, insert_1)
3323 (count_combining_before, count_combining_after, insert_1_both)
3324 (insert_from_string, insert_from_string_before_markers)
3325 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3326 (insert_from_buffer_1, adjust_after_replace)
3327 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3328 (replace_range_2, del_range, del_range_1, del_range_byte)
3329 (del_range_both, del_range_2, modify_region)
3330 (prepare_to_modify_buffer, signal_before_change)
3331 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3332 for buffer positions and sizes.
3333 * lisp.h: Adjust prototypes accordingly.
3334
3335 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3336 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3337 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3338
3339 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3340
3341 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3342
3343 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3344 lines and columns so we keep the same pixel height and width.
3345
3346 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3347 the property _NET_WM_STATE has changed.
3348 (x_handle_net_wm_state): New function to update frame parameter
3349 fullscreen.
3350 (x_term_init): Initialize atoms for _NET_WM_STATE.
3351
3352 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3353
3354 2009-03-27 Kevin Ryde <user42@zip.com.au>
3355
3356 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3357 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3358 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3359 (Fgpm_mouse_stop): Pass that new parameter.
3360 * termhooks.h (close_gpm): Adjust prototype.
3361
3362 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3363
3364 * lisp.h (Fx_focus_frame): Declare.
3365
3366 * callint.c (Fcall_interactively): For '^' just delegate the work to
3367 handle-shift-selection.
3368 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3369
3370 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
3371
3372 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3373
3374 * data.c (Qinteractive_form): New variable.
3375 (Finteractive_form): Use it.
3376
3377 * eval.c (Fcommandp): Use Qinteractive_form.
3378
3379 2009-03-24 Jason Rumney <jasonr@gnu.org>
3380
3381 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3382 Calculate total size precisely. Decode environment variables
3383 before substituting. (Bug#38)
3384
3385 2009-03-24 Kenichi Handa <handa@m17n.org>
3386
3387 * font.c (find_font_encoding): Return Qnil for unsupported
3388 encoding (Bug#2722).
3389
3390 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3391
3392 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3393 that gdpy is set.
3394
3395 2009-03-22 Alan Mackenzie <acm@muc.de>
3396
3397 * callint.c (Finteractive): Clarify the doc string - even
3398 promptless elements need \n separators.
3399
3400 2009-03-22 Jason Rumney <jasonr@gnu.org>
3401
3402 * w32term.c (syms_of_w32term): Doc fix for
3403 x-use-underline-position-properties.
3404
3405 2009-03-21 Eli Zaretskii <eliz@gnu.org>
3406
3407 * w32.c (getpwuid): Change argument type to unsigned.
3408 (struct w32_id): Change type of `rid' member to unsigned.
3409 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3410 argument ID to unsigned. All callers changed.
3411 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3412
3413 2009-03-20 Eli Zaretskii <eliz@gnu.org>
3414
3415 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3416 negative, produce a float value.
3417
3418 * dired.c (make_uid, make_gid): New functions.
3419 (Ffile_attributes): Use them to avoid negative UID and GID.
3420
3421 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
3422
3423 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3424 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3425 Fix typos in docstrings.
3426
3427 2009-03-19 Kenichi Handa <handa@m17n.org>
3428
3429 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
3430 changed, use font_load_for_lface to get a new font object.
3431 Call free_realized_fontset after handling ASCII font change.
3432
3433 * frame.c (x_set_font): Handle the case that ARG is a cons.
3434
3435 2009-03-19 Glenn Morris <rgm@gnu.org>
3436
3437 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3438
3439 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
3440
3441 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3442
3443 2009-03-19 Kenichi Handa <handa@m17n.org>
3444
3445 * charset.c (load_charset_map_from_file): When a mapfile can't be
3446 loaded, signal an error.
3447
3448 2009-03-18 Eli Zaretskii <eliz@gnu.org>
3449
3450 * dired.c (Ffile_attributes): Make sure UID and GID are always
3451 positive, even if the value is too large for a positive EMACS_INT.
3452 Doc fix.
3453
3454 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3455
3456 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3457
3458 * xmenu.c (xdialog_show): Move Fredisplay call ...
3459 (Fx_popup_dialog): ... here.
3460
3461 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3462
3463 * dired.c (file_name_completion): Disable the first optimization just
3464 installed, since it is not implemented correctly.
3465
3466 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3467
3468 * dired.c (file_name_completion): Check completion-ignored-extensions
3469 only if the entry can affect bestmatch.
3470 Stop the search early, as Ftry_completion already does.
3471
3472 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
3473
3474 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
3475
3476 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
3477
3478 * keyboard.c (parse_menu_item): Don't display remappings as menu
3479 equivalent bindings (Bug#788).
3480
3481 2009-03-15 Jason Rumney <jasonr@gnu.org>
3482
3483 * w32term.h (WM_EMACS_PAINT): New message.
3484 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3485 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3486 before passing to lisp thread. (Bug#950)
3487
3488 2009-03-14 David Reitter <david.reitter@gmail.com>
3489
3490 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3491 variable as it was never reset.
3492 (ns_term_init): Remove initialization of Lisp-settable defaults
3493 and ns_expand_space.
3494 (-setPanelFromDefaultValues): Remove ns_expand_space.
3495 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3496 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
3497 i.e. no additional spacing, similar to Carbon port.
3498
3499 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3500 * nsfns.m (ns-popup-prefs-panel): Remove.
3501
3502 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3503
3504 * sound.c (alsa_configure): Remove call to deprecated
3505 snd_pcm_sw_params_set_xfer_align.
3506
3507 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
3508
3509 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3510 after clicking in a detached tool bar.
3511 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3512
3513 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3514
3515 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3516 int/Lisp_Object mixup).
3517
3518 2009-03-13 Kenichi Handa <handa@m17n.org>
3519
3520 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
3521 Handle NAME nil and t correctly. Callers changed.
3522 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3523 (set_fontset_font): Change ARG to a vector. Handle range_list in
3524 ARG correctly.
3525 (Fset_fontset_font): Fix the case that TARGET is both a script
3526 name and charset name. Adjust the arg to set_fontset_font for
3527 the above change.
3528 (fontset_from_font): Fix previous change.
3529 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
3530 entry. If FONTSET is the default fontset, don't set the extra
3531 slot of the returning char-table.
3532
3533 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
3534
3535 * nsfns.m (Fx_close_connection): Doc fix.
3536 (Fns_do_applescript): Reflow docstring.
3537 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3538 (Fx_display_pixel_width, Fx_display_pixel_height)
3539 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3540 Fix typos in docstrings.
3541 (Fns_set_alpha): Fix typos in error messages.
3542
3543 2009-03-12 David Reitter <david.reitter@gmail.com>
3544
3545 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
3546 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3547 were used for such events.
3548
3549 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3550 (toggleToolbar, performDragOperation, runHelp): Use it.
3551
3552 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
3553 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3554
3555 2009-03-11 Kenichi Handa <handa@m17n.org>
3556
3557 * font.h (font_open_by_spec): Extern it.
3558
3559 * font.c (font_open_by_spec): New function.
3560 (font_open_by_name): Use font_open_by_spec.
3561
3562 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3563 fontset of the frame.
3564
3565 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3566 modify the default font of frames that use this fontset.
3567 (num_auto_fontsets): New variable.
3568 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3569 name. Be sure to set FONTSET_ASCII to the correct font name.
3570 (update_auto_fontset_alist): New function.
3571
3572 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
3573
3574 * makefile.w32-in: Update dependencies.
3575
3576 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3577
3578 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3579
3580 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3581
3582 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3583
3584 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
3585
3586 * lread.c (Feval_buffer): Doc fix.
3587
3588 2009-03-09 Kenichi Handa <handa@m17n.org>
3589
3590 * charset.c (Qfile_name_handler_alist): Extern it.
3591 (load_charset_map_from_file): Temporarily bind
3592 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3593
3594 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
3595
3596 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3597 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
3598
3599 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3600
3601 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3602 (x_set_window_size): Change back to calculated method of setting
3603 toolbar height under Cocoa. (Bug#2546)
3604 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3605 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3606
3607 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3608
3609 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3610 accelerator in parens under GNUstep.
3611
3612 2009-03-06 Kenichi Handa <handa@m17n.org>
3613
3614 These changes are to detect incorrect composition sequence without
3615 looking ahead the source. (Bug#2370)
3616
3617 * coding.h: Include "composite.h".
3618 (enum compisition_state): New enum.
3619 (struct compisition_status): New struct.
3620 (struct iso_2022_spec): New member cmp_status.
3621 (struct emacs_mule_spec): New struct.
3622 (struct coding_system): New members ctext_extended_segment_len and
3623 embedded_utf_8. Change the union member
3624 spec.emacs_mule_full_support to spec.emacs_mule.
3625
3626 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3627 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
3628 (MAX_ANNOTATION_LENGTH): Define to 5.
3629 (ADD_COMPOSITION_DATA): New arg nbytes.
3630 (emacs_mule_char): New arg cmp_status.
3631 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3632 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3633 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3634 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3635 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3636 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3637 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3638 (EMACS_MULE_COMPOSITION_END): New macro.
3639 (emacs_mule_finish_composition): New function.
3640 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3641 (decode_coding_emacs_mule): Avoid long looking ahead while
3642 handling composition.
3643 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3644 (ENCODE_COMPOSITION_RULE): New macro.
3645 (finish_composition): New function.
3646 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3647 (DECODE_COMPOSITION_START): New implementation.
3648 (DECODE_COMPOSITION_END): Likewise.
3649 (STORE_COMPOSITION_RULE): New macro.
3650 (decode_coding_iso_2022): Avoid long looking ahead while handling
3651 composition, CTEXT extended segment, and embedded UTF-8.
3652 (setup_coding_system): For a coding of type iso-2022, reset
3653 CODING_ISO_EXTSEGMENT_LEN (coding) and
3654 CODING_ISO_EMBEDDED_UTF_8 (coding).
3655 (get_translation): Delete arguments last_block, from_nchars,
3656 to_nchars. Callers changed.
3657 (produce_chars): Don't modify charbuf. Adjusted for the change of
3658 get_translation.
3659 (produce_composition): Adjust for the new annotation sequence.
3660 (handle_composition_annotation): Likewise.
3661 (consume_chars): Adjust for the change of get_translation.
3662
3663 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3664
3665 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
3666
3667 2009-03-05 Kenichi Handa <handa@m17n.org>
3668
3669 * font.c (font_select_entity): New function.
3670 (font_find_for_lface): Use font_select_entity to select a font.
3671
3672 * fontset.c (fontset_find_font): If a font found without
3673 restricting to the characters C doesn't support C, try to find a
3674 font with C restriction.
3675
3676 2009-03-04 Nikolaj Schumacher <me@nschum.de>
3677
3678 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
3679
3680 2009-03-04 Jason Rumney <jasonr@gnu.org>
3681
3682 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
3683 characters that have already been read. (Bug#2569)
3684
3685 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3686 Log an error message if check_image_size failed.
3687 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
3688 (gs_load): Mention max-image-size in size error message. (Bug#2560)
3689
3690 2009-03-02 Eli Zaretskii <eliz@gnu.org>
3691
3692 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3693 when decoding process output.
3694
3695 2009-03-01 Richard M Stallman <rms@gnu.org>
3696
3697 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3698
3699 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3700
3701 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3702
3703 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3704 (decode_coding_emacs_mule, decode_coding_iso_2022)
3705 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3706 (decode_coding_raw_text, decode_coding_charset)
3707 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3708 Honor inhibit-eol-conversion. (Bug #2186)
3709
3710 2009-02-28 Jason Rumney <jasonr@gnu.org>
3711
3712 * coding.c (detect_coding_charset): If not checking latin extra,
3713 fail on characters between 0x80 and 0xA0. (Bug#2354)
3714
3715 2009-02-28 Eli Zaretskii <eliz@gnu.org>
3716
3717 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
3718 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
3719
3720 2009-02-27 Glenn Morris <rgm@gnu.org>
3721
3722 * callint.c (Finteractive): Doc fix.
3723
3724 2009-02-27 Kenichi Handa <handa@m17n.org>
3725
3726 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3727
3728 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
3729
3730 * font.c (font_style_to_value): Set value for unknown symbols to
3731 100 instead of 255.
3732 (weight_table, slant_table, width_table): Treat "unspecified" as
3733 the default value.
3734
3735 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
3736
3737 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3738
3739 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
3740
3741 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3742 error as soon as a recursive load is detected.
3743
3744 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3745
3746 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3747 before caching.
3748
3749 2009-02-24 Kenichi Handa <handa@m17n.org>
3750
3751 * fontset.c (fontset_find_font): Fix the condition for checking
3752 unavailable font.
3753
3754 2009-02-24 Glenn Morris <rgm@gnu.org>
3755
3756 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3757 whitespace that confuses documentation.
3758
3759 2009-02-23 Miles Bader <miles@gnu.org>
3760
3761 * process.c (Flist_system_processes, Fprocess_attributes)
3762 (syms_of_process): Rename `system-process-attributes' to
3763 `process-attributes'.
3764
3765 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3766
3767 * coding.h (struct coding_system): Make safe_charsets a pointer to
3768 unsigned char.
3769 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3770 being 255.
3771 (SAFE_CHARSET_P): Likewise.
3772 (setup_iso_safe_charsets): Properly setup safe_charsets.
3773 (Fdefine_coding_system_internal): Likewise.
3774 (setup_coding_system): Likewise. Remove unneeded casts.
3775 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3776 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3777 unneeded casts.
3778
3779 * insdel.c (del_range_2): Don't modify gap contents when called
3780 from decode_coding_object. (Bug#1809)
3781
3782 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
3783
3784 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3785 Qfont_object.
3786 (Ftype_of): Recognize font objects.
3787
3788 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3789
3790 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3791 moved to data.c.
3792
3793 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3794
3795 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3796 async_iconified. Based on a patch by Christian Lynbech
3797 <christian.lynbech@tieto.com>.
3798 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3799
3800 2009-02-20 Glenn Morris <rgm@gnu.org>
3801
3802 * syntax.c (Fskip_chars_forward): Fix doc typo.
3803
3804 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
3805
3806 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3807
3808 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
3809
3810 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3811
3812 2009-02-19 Kenichi Handa <handa@m17n.org>
3813
3814 * coding.c (detect_coding): Preserve coding->mode.
3815 Don't overflow coding->carryover. (Bug#2370)
3816
3817 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3818
3819 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3820
3821 2009-02-18 Kenichi Handa <handa@m17n.org>
3822
3823 * font.c (font_check_otf_features): Fix handling of `nil' element.
3824 (Ffont_spec): Describe :lang and :otf in the docstring.
3825
3826 2009-02-16 Andreas Schwab <schwab@suse.de>
3827
3828 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3829 string.
3830
3831 2009-02-16 Kenichi Handa <handa@m17n.org>
3832
3833 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
3834 (Bug#1723)
3835
3836 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
3837
3838 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
3839
3840 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3841 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3842
3843 2009-02-14 Eli Zaretskii <eliz@gnu.org>
3844
3845 * msdos.c (MAX_SCREEN_BUF): New macro.
3846 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3847 Encode the entire run of glyphs sharing the same face, instead of
3848 doing that one glyph at a time (fixes a bug with displaying
3849 double-size characters).
3850
3851 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3852
3853 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3854
3855 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3856 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
3857 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
3858
3859 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
3860 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
3861
3862 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3863
3864 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3865 invisible areas.
3866
3867 2009-02-12 Jason Rumney <jasonr@gnu.org>
3868
3869 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3870 (add_font_entity_to_list): Call check_face_name even when family
3871 is unspecified.
3872
3873 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3874 Release DC when finished. Use NULL window to refer to desktop.
3875 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
3876
3877 * w32font.c (add_font_entity_to_list): Fix check for substituted
3878 raster fonts. (Bug#2219)
3879
3880 2009-02-12 Kenichi Handa <handa@m17n.org>
3881
3882 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3883 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3884 (autocmp_chars): Use fast_looking_at. Don't compose more
3885 characters than MAX_COMPOSITION_COMPONENTS.
3886 (find_automatic_composition): While looking forward and backward,
3887 check static composition. Fix where to stop looking forward.
3888 (composition_adjust_point): Fix checking of static composition.
3889 (Fcomposition_get_gstring): Pay attention to
3890 MAX_COMPOSITION_COMPONENTS.
3891
3892 * lisp.h (fast_looking_at): Extern it.
3893
3894 * search.c (fast_looking_at): New function.
3895
3896 * term.c (encode_terminal_code): Adjust for the change of
3897 <struct glyph>.u.cmp.to.
3898 (append_composite_glyph): Likewise.
3899
3900 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
3901 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3902 composition.
3903 (append_composite_glyph): Adjust for the change of
3904 <strcut glyph>.u.cmp.to.
3905
3906 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
3907
3908 * casetab.c (init_casetab_once):
3909 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3910 * font.c (font_update_lface):
3911 * fontset.c (Fnew_fontset):
3912 * ftfont.c (ftfont_drive_otf):
3913 * xfont.c (xfont_open):
3914 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3915
3916 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3917
3918 * fileio.c (Fwrite_region): !NILP -> CONSP.
3919
3920 2009-02-10 Andreas Schwab <schwab@suse.de>
3921
3922 * process.c (send_process): Properly relocate pointer into data
3923 when using encoded data. (Bug#2272)
3924
3925 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3926
3927 * coding.c (detect_coding_charset): Fix previous change.
3928
3929 2009-02-08 Jason Rumney <jasonr@gnu.org>
3930
3931 * w32fns.c (w32_hide_hourglass): Handle case where frame
3932 disappeared while hourglass was displayed. (Bug #2193)
3933
3934 2009-02-07 Andreas Schwab <schwab@suse.de>
3935
3936 * unexelf.c (unexec): Fix error message.
3937
3938 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3939
3940 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
3941 when modal window is active. (Bug #2152)
3942 (applicationShouldTerminate:): Remove now-unneeded while loop
3943 around NSRunAlertPanel.
3944
3945 * nsmenu.m (popupSession): New file-global variable.
3946 (pop_down_menu): End the popupSession before closing dialog.
3947 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3948 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3949 don't query NSApp for events (just sleep instead).
3950
3951 2009-02-07 Eli Zaretskii <eliz@gnu.org>
3952
3953 * coding.c (syms_of_coding) <translation-table-for-input>:
3954 Modify doc string to discourage use for character code unification.
3955
3956 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3957
3958 * atimer.c (run_timers): Update pending_atimers.
3959
3960 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * image.c (svg_load_image): Fix last change.
3963
3964 * xfns.c (Fx_create_frame): Signal an error if no font is
3965 found (Bug#2147).
3966
3967 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
3968
3969 * character.c (syms_of_character) <script-representative-chars>:
3970 Fix typo in docstring.
3971
3972 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3973
3974 * nsmenu.m (pop_down_menu): New function.
3975 (ns_popup_dialog): Call it on unwind.
3976 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3977 call timer_check() (Bug#2154).
3978 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3979 handling_signal is set.
3980 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3981
3982 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
3983
3984 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3985
3986 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3987
3988 * keyboard.c (poll_for_input_1, handle_async_input):
3989 Set handling_signal under HAVE_NS.
3990
3991 2009-02-04 Glenn Morris <rgm@gnu.org>
3992
3993 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3994
3995 2009-02-04 Kenichi Handa <handa@m17n.org>
3996
3997 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3998
3999 * charset.c (Fchar_charset): New optional arg restriction.
4000
4001 * coding.h (coding_system_charset_list): Extern it.
4002
4003 * coding.c (coding_system_charset_list): New function.
4004
4005 * composite.c: Include coding.h and termhooks.h.
4006 (composition_gstring_p): Fix for the terminal case.
4007 (composition_gstring_width): Likewise.
4008 (fill_gstring_body): Likewise.
4009 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4010 the frame.
4011 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4012 is within a composition.
4013 (Fcomposition_get_gstring): Fix the terminal case.
4014
4015 * term.c (encode_terminal_code): Fix handling of composition.
4016 (produce_composite_glyph): For static composition, get pixel_width
4017 from struct composition.
4018
4019 2009-02-02 Andreas Schwab <schwab@suse.de>
4020
4021 * unexelf.c (unexec): Handle unaligned bss offset.
4022
4023 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4024
4025 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4026 XT,w32read_socket changes to ns_read_socket.
4027
4028 * keyboard.c (handle_interrupt): Don't call
4029 quit_throw_to_read_char() under NS.
4030
4031 * blockinput.h: Remove NS-specific code.
4032
4033 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4034
4035 * dispnew.c (window_change_signal): Don't try to get the size of a
4036 suspended tty frame.
4037 * term.c (Fresume_tty): Resize if the size has changed while the
4038 tty was suspended.
4039
4040 * alloc.c (mark_stack): Properly conditionalize previous change.
4041
4042 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4043
4044 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4045 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4046 Remove; this code is not used on Windows.
4047
4048 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4049
4050 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4051 EOLs that also has stray ^M characters.
4052
4053 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4054
4055 * atimer.c (run_timers, alarm_signal_handler):
4056 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4057 * w32inevt.c (w32_console_read_socket):
4058 * w32term.c (w32_read_socket):
4059 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4060
4061 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4062
4063 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4064 Initialize it as a relative filename pattern.
4065 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4066 (Fcall_process_region): Simplify temp file creation using
4067 temporary-file-directory.
4068
4069 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4070
4071 * msdos.c: Rename pending_signals to msdos_pending_signals.
4072 (sig_suspender, sigprocmask): Adjust.
4073
4074 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4075
4076 * keyboard.c (pending_signals): New var.
4077 (poll_for_input, input_available_signal, init_keyboard): Set it.
4078 (process_pending_signals): New function.
4079
4080 * lisp.h (QUIT): Check pending_signals instead of
4081 interrupt_input_pending. Use process_pending_signals.
4082
4083 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4084
4085 * process.c (wait_reading_process_output): Use process_pending_signals.
4086
4087 * sysdep.c (emacs_write): Use process_pending_signals.
4088
4089 * xterm.c (XTread_socket): Update pending_signals.
4090
4091 * w32term.c (w32_read_socket): Update pending_signals.
4092
4093 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4094
4095 2009-01-29 Kenichi Handa <handa@m17n.org>
4096
4097 * xftfont.c (xftfont_has_char): New function.
4098 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4099
4100 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4101
4102 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4103 under GNUstep.
4104 (ns_query_color): New declaration.
4105
4106 * nsterm.m (ns_confirm_quit): New variable.
4107 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4108 (EmacsApp-applicationShouldTerminate:): Use it.
4109 (EmacsPrefsController): Let user set it.
4110 (ns_query_color): New function.
4111 (ns_defined_color): Use it.
4112 (ns_initialize): Drop.
4113 (ns_term_init): Add two lines from ns_initialize(), and set
4114 input_interrupt_mode to nil.
4115
4116 * image.c (svg_load_image): Don't right-shift background RGB when
4117 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4118
4119 2009-01-28 Kenichi Handa <handa@m17n.org>
4120
4121 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4122 (fontset_get_font_group): Remember that no font-group is specified
4123 for C.
4124
4125 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4126
4127 * fns.c (concat): Check for string overflow (bug#1787).
4128
4129 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4130 Quadruple undo limits (bug#1501).
4131
4132 2009-01-27 Kenichi Handa <handa@m17n.org>
4133
4134 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4135 directly use GT_Get_Char_index.
4136
4137 * xftfont.c (struct xftfont_info): New member `index'.
4138
4139 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4140 (Ffontset_font): Adjust for the change of fontset entry.
4141
4142 2009-01-26 Kenichi Handa <handa@m17n.org>
4143
4144 * fontset.c (fontset_find_font): Fix handling of non-cons return
4145 value of fontset_get_font_group.
4146 (fontset_font): Revert last change.
4147
4148 2009-01-26 Jason Rumney <jasonr@gnu.org>
4149
4150 * w32font.c (w32font_list_internal): Return quickly if registry is
4151 unknown. Simplify final return.
4152 (add_font_entity_to_list): Break complex logic down into more
4153 manageable chunks. Move unknown registry check to
4154 w32font_list_internal.
4155
4156 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4157
4158 Changes to remove Feval calls from GUI under NS.
4159
4160 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4161 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4162 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4163
4164 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4165 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4166 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4167 instead of NON_ASCII_KEYSTROKE_EVENT.
4168 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4169 (EmacsApp-applicationShouldTerminate:): Query user.
4170 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4171 instead of Feval.
4172
4173 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4174
4175 * keyboard.c (kbd_buffer_get_event): Check for it.
4176 (keys_of_keyboard): Define lispy keys for
4177 ns-put/unput-working-text.
4178
4179 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4180 versions.
4181 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4182
4183 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4184
4185 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4186 setting current_buffer directly. (Bug#2044)
4187
4188 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4189
4190 * fontset.c (fontset_font): If we know there is no font, don't do
4191 any work. (Bug#1952, bug#1990).
4192
4193 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4194
4195 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4196
4197 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4198 (ns_no_defaults): New declaration.
4199 (main): Use it.
4200
4201 * nsterm.h (ns_no_defaults): New declaration.
4202
4203 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4204
4205 * nsterm.m (ns_no_defaults): New variable.
4206 (ns_initialize): Don't read defaults when ns_no_defaults.
4207 (EmacsView-readSelectionFromPasteboard:)
4208 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4209 NSServicesRequests protocol. (Bug#1435)
4210 (ns_dumpglyphs_stretch): New function.
4211 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4212 of 2008-11-15 to other terms. (Bug#615)
4213
4214 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4215
4216 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4217
4218 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4219 call for Sparc64.
4220
4221 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4222
4223 * nsfns.m:
4224 * nsgui.h:
4225 * nsmenu.m:
4226 * nsselect.m:
4227 * nsterm.h:
4228 * nsterm.m: Remove '23' comments that indicated code added during
4229 update from emacs-20 -> emacs-23.
4230
4231 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4232
4233 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4234 ns_alternate_modifier. (Bug#1217)
4235
4236 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4237 Display all shortcuts, including those w/o super modifier.
4238
4239 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4240
4241 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4242
4243 * fileio.c (Vwrite_region_post_annotation_function)
4244 (Vwrite_region_annotation_buffers): New vars.
4245 (build_annotations_unwind): Just reset
4246 Vwrite_region_annotation_buffers.
4247 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4248 Call write-region-post-annotation-function.
4249 (build_annotations): Add to Vwrite_region_annotation_buffers if
4250 buffer changes.
4251
4252 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4253
4254 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4255 Tiger.
4256 * nsfns.m (ns_do_applescript):
4257 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4258
4259 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4260
4261 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4262
4263 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4264
4265 * nsmenu.m (NSMENUPROFILE): Change #if style.
4266
4267 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4268
4269 * nsterm.m (x_set_frame_alpha): Add prototype.
4270 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4271 handle Ctrl-tab. (Bug#1841)
4272 (ns_get_color): Use unsigned long long for scanned hex string value.
4273 (ns_term_shutdown): Abort on non SIGTERM signals.
4274 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
4275 (EmacsPrefsController-setPanelFromDefaultValues): New function.
4276 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
4277 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
4278 (ns_defined_color): Fix settings of the XColor variable fields:
4279 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
4280
4281 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
4282 DPI. (Bug#1316)
4283 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4284 values in onTiger section.
4285
4286 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
4287
4288 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4289 Check return value of font_spec_from_name.
4290 (Fx_list_fonts): Doc fix. (Bug#1951)
4291
4292 * font.c (font_spec_from_name): Return Qnil if font name could not
4293 be parsed.
4294 (font_parse_name): Treat a `?' character as part of an XLFD.
4295
4296 * fns.c (Fsubstring): Doc fix.
4297
4298 2009-01-19 Kenichi Handa <handa@m17n.org>
4299
4300 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
4301 (ftfont_list): Likewise.
4302
4303 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
4304
4305 * dbusbind.c (Fdbus_register_signal):
4306 * process.c (conv_sockaddr_to_lisp):
4307 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4308
4309 * callproc.c (Fgetenv_internal): Doc fix.
4310
4311 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
4312
4313 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4314 it is not even used.
4315
4316 2009-01-16 Glenn Morris <rgm@gnu.org>
4317
4318 * font.c (Ffont_variation_glyphs): Silence compiler.
4319
4320 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
4321
4322 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4323 Reported by David Robinow <drobinow@gmail.com>.
4324
4325 2009-01-15 Kenichi Handa <handa@m17n.org>
4326
4327 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4328
4329 2009-01-14 Jason Rumney <jasonr@gnu.org>
4330
4331 * frame.c (x_set_font): Always store a font to the font parameter,
4332 never a fontset. (Bug#1562)
4333
4334 2009-01-14 Kenichi Handa <handa@m17n.org>
4335
4336 * coding.c (TWO_MORE_BYTES): New macro.
4337 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
4338
4339 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
4340
4341 * font.c (font_clear_prop): If clearing the family, clear the font
4342 width index too.
4343
4344 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4345
4346 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
4347
4348 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4349 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4350 functions, use sizeof.
4351
4352 2009-01-12 Martin Rudalics <rudalics@gmx.at>
4353
4354 * keyboard.c (read_char): Fix case where last_nonmenu_event
4355 returned a bad value with submenus. (Bug#447)
4356
4357 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
4358
4359 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4360 family, clear the font width index too.
4361
4362 2009-01-11 Jason Rumney <jasonr@gnu.org>
4363
4364 * keyboard.c (cmd_error_internal): Exit when errors occur before
4365 frame creation and not in daemon mode. (Bug#1836)
4366
4367 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
4368
4369 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4370 of a display vector, backtrack.
4371 (try_window_reusing_current_matrix): Check glyph type before
4372 referencing charpos member.
4373
4374 2009-01-10 Eli Zaretskii <eliz@gnu.org>
4375
4376 Fix Bug #876:
4377
4378 * coding.c (inhibit_null_byte_detection): New variable.
4379 (detect_coding, detect_coding_system): Don't pay attention to null
4380 bytes if inhibit_null_byte_detection is non-zero.
4381 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
4382 <inhibit-iso-escape-detection>: Doc fix.
4383
4384 2009-01-09 Jason Rumney <jasonr@gnu.org>
4385
4386 * w32font.c (add_font_entity_to_list): Don't report unknown
4387 Windows charset as any unrecognized registry. (Bug#1548)
4388 Only report Unicode Plane 2 fonts as unicode-sip.
4389
4390 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
4391
4392 * xfaces.c (Fx_font_family_list): Delete function.
4393 Move compatibility version to faces.el.
4394
4395 * font.c (Ffont_family_list): Return a list of strings, not symbols.
4396
4397 2009-01-09 Martin Rudalics <rudalics@gmx.at>
4398
4399 * frame.c (x_set_frame_parameters): Remember requested value for
4400 fullscreen before it's reset by the parameter handler.
4401
4402 2009-01-09 Glenn Morris <rgm@gnu.org>
4403
4404 * keyboard.c (last_command_char): For clarity, rename to...
4405 (last_command_event): ... and update all users.
4406 (last_input_char): For clarity, rename to...
4407 (last_input_event): ... and update all users.
4408 (last-command-char, last-input-char): Move to subr.el as aliases.
4409 * cmds.c, commands.h: Update for last_command_char rename.
4410
4411 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
4412
4413 * font.c (font_open_for_lface): Handle unspecified height attribute.
4414
4415 2009-01-08 Jason Rumney <jasonr@gnu.org>
4416
4417 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4418 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4419 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4420 Don't declare.
4421 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
4422 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4423
4424 2009-01-07 Kenichi Handa <handa@m17n.org>
4425
4426 * fileio.c (Finsert_file_contents): In the case of replace,
4427 remember the coding system used for decoding in
4428 coding_system (Bug#1039).
4429
4430 * coding.c (decode_coding_utf_8): Check byte_after_cr before
4431 breaking the loop. (Bug#870)
4432 (decode_coding_utf_16, decode_coding_emacs_mule)
4433 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4434 (decode_coding_charset): Likewise.
4435
4436 2009-01-05 Martin Rudalics <rudalics@gmx.at>
4437
4438 * frame.c (x_set_frame_parameters): Make sure height (width) get
4439 applied when fullwidth (fullheight) is set. (Bug#1522)
4440
4441 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
4442
4443 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4444 (utc_base): Declare as ULONGLONG, not long double.
4445 (convert_time_raw): Delete.
4446 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4447 (initialize_utc_base): New function.
4448 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4449 (convert_from_time_t): Use initialize_utc_base; compute result with
4450 64-bit arithmetic.
4451 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4452
4453 2009-01-03 Eli Zaretskii <eliz@gnu.org>
4454
4455 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
4456 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4457 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4458 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4459 [!subprocesses]: Define.
4460 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4461 (Flist_system_processes, Fsystem_process_attributes)
4462 [!subprocesses]: Call list_system_processes and
4463 system_process_attributes instead of returning Qnil.
4464
4465 * dosfns.c (system_process_attributes, list_system_processes):
4466 New functions.
4467
4468 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4469
4470 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4471 Don't use the default (no-op) implementation.
4472
4473 2009-01-03 Jason Rumney <jasonr@gnu.org>
4474
4475 * keyboard.c (parse_modifiers_uncached): Wheel events are
4476 clicks (bug#687).
4477
4478 * w32term.c (x_query_colors, x_query_color): New functions.
4479
4480 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4481 (svg_load_image): Cast returned pointers from dynamically loaded
4482 functions. Eliminate W32 specific code.
4483
4484 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4485
4486 * nsfns.m (x_set_foreground_color, x_set_background_color)
4487 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4488 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4489 x_ prefix instead of ns_. Update references.
4490 (syms_of_nsfns): Add a FIXME comment.
4491
4492 * nsterm.m (x_set_cursor_type): New prototype.
4493 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4494
4495 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4496 for Solaris instead of incorrectly providing Qutime and Qcutime.
4497
4498 2009-01-02 Eli Zaretskii <eliz@gnu.org>
4499
4500 * w32.c (process_times): Compute sum of utime and stime.
4501 (system_process_attributes): Add Qtime to the alist.
4502
4503 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4504 and add them to the alist.
4505
4506 * process.c (top level) <Qtime, Qctime>: New variables.
4507 (syms_of_process): staticpro them.
4508 (Fsystem_process_attributes): Add their documentation to the doc
4509 string.
4510
4511 * process.h: Declare Qtime and Qctime.
4512
4513 2009-01-02 Jason Rumney <jasonr@gnu.org>
4514
4515 * image.c (Qgobject): New symbol.
4516 (syms_of_image): Initialize it.
4517 (init_svg_functions): Load some functions from gobject library.
4518
4519 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4520
4521 * frame.c (make_terminal_frame): Remove redundant code and useless
4522 block.
4523
4524 2009-01-01 Andreas Schwab <schwab@suse.de>
4525
4526 * process.c (conv_sockaddr_to_lisp): Add workaround for
4527 getsockname bug on BSD.
4528
4529 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
4530
4531 * xfns.c (x_create_tip_frame): Set border width of the X window.
4532
4533 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
4534
4535 2009-01-01 Jason Rumney <jasonr@gnu.org>
4536
4537 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
4538 Don't block input, as per earlier xterm.c changes.
4539
4540 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4541
4542 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4543 (ns_appkit_version_int): New function.
4544 (x-server-version): Use ns_appkit_version_int and follow 21+
4545 convention of returning 3 integers.
4546
4547 2008-12-30 Kenichi Handa <handa@m17n.org>
4548
4549 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4550 (CHAR_SURROGATE_PAIR_P): New macro.
4551
4552 * font.h (struct font_driver): New member get_variation_glyphs.
4553
4554 * font.c (font_range): Don't require a font for a variation selector.
4555 (Ffont_variation_glyphs): New function.
4556 (syms_of_font): Defsubr it.
4557
4558 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4559 ftfont_variation_glyphs.
4560 (setup_otf_gstring): New function.
4561 (ftfont_drive_otf): Use it.
4562 (ftfont_shape_by_flt): Handle variation selector.
4563 (ftfont_variation_glyphs): New function.
4564
4565 2008-12-30 Martin Rudalics <rudalics@gmx.at>
4566
4567 * frame.c (Vemacs_iconified): Remove.
4568
4569 2008-12-30 Jason Rumney <jasonr@gnu.org>
4570
4571 * frame.c (store_frame_param, x_get_arg): Enable newer code on
4572 WINDOWSNT too, as related changes have already been synced. (Bug#117)
4573
4574 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * indent.c (Fvertical_motion): Don't advance iterator if we have
4577 reseated to the desired position.
4578
4579 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4580 checking for pos match.
4581
4582 2008-12-30 Kenichi Handa <handa@m17n.org>
4583
4584 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4585 just get the low 8-bit of the code.
4586
4587 * font.c (font_intern_prop): Validate str as multibyte.
4588
4589 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4590
4591 * dispextern.h (struct face): Move lface and hash from the middle
4592 of bitfields.
4593
4594 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4595
4596 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4597
4598 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4599 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4600 instead of intervals.h.
4601
4602 2008-12-26 Andreas Schwab <schwab@suse.de>
4603
4604 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4605 cons.
4606
4607 2008-12-26 Martin Rudalics <rudalics@gmx.at>
4608
4609 * textprop.c (Qminibuffer_prompt): New variable.
4610 (syms_of_textprop): Initialize it.
4611 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4612 in minibuffer-prompt face. (Bug#1662)
4613
4614 2008-12-25 Jason Rumney <jasonr@gnu.org>
4615
4616 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4617
4618 2008-12-24 Jason Rumney <jasonr@gnu.org>
4619
4620 * ralloc.c (r_alloc_reset_variable): New function.
4621
4622 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
4623 record of what points where. (Bug#716)
4624
4625 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4626
4627 * minibuf.c (read_minibuf): Follow the non-interactive case when
4628 running as a daemon, before detaching.
4629
4630 2008-12-22 Andreas Schwab <schwab@suse.de>
4631
4632 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4633 * gtkutil.c (free_widget_value): Use xfree instead of free.
4634
4635 2008-12-22 Martin Rudalics <rudalics@gmx.at>
4636
4637 * frame.c (delete_frame): New function derived from
4638 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4639 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4640 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4641 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4642 * frame.h: Extern delete_frame.
4643 * window.c (window_loop):
4644 * terminal.c (delete_terminal):
4645 * xterm.c (x_connection_closed):
4646 * xfns.c (Fx_hide_tip):
4647 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
4648
4649 2008-12-21 Jason Rumney <jasonr@gnu.org>
4650
4651 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4652 when character maps to .notdef character.
4653
4654 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4655
4656 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4657
4658 2008-12-20 Jason Rumney <jasonr@gnu.org>
4659
4660 * frame.c (Fmake_terminal_frame): Raise an error when called from
4661 a graphical frame on Windows. (Bug#1325)
4662
4663 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4664
4665 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4666
4667 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
4668
4669 * minibuf.c (Fread_buffer): Doc fix.
4670
4671 2008-12-20 Jason Rumney <jasonr@gnu.org>
4672
4673 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
4674 server name in UNC paths. (Bug#719)
4675
4676 * coding.c (decode_coding): Clear chars_at_source flag when using
4677 charbuf. (Bug#1035)
4678
4679 2008-12-19 Daniel Engeler <engeler@gmail.com>
4680
4681 * sysdep.c (serial_configure): Fix typo.
4682
4683 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4684
4685 * sysdep.c: Include alloca.h.
4686 (system_process_attributes): Add implementation for Solaris.
4687
4688 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
4689
4690 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4691
4692 Reorganize implementation of Flist_system_processes and
4693 Fsystem_process_attributes. No functional changes.
4694 * process.c: Don't #include pwd.h, grp.h and limits.h.
4695 (Flist_system_processes): Just call list_system_processes.
4696 (Fsystem_process_attributes): Just call system_process_attributes.
4697 (procfs_list_system_processes, time_from_jiffies)
4698 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4699 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4700
4701 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4702 (list_system_processes): Rename from
4703 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4704 Provide a do nothing implementation.
4705 (system_process_attributes): Rename from
4706 procfs_list_system_processes.
4707 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4708 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
4709
4710 * w32.c (list_system_processes): Rename from
4711 w32_list_system_processes.
4712 (system_process_attributes): Rename from
4713 w32_system_process_attributes.
4714
4715 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4716
4717 * process.h (w32_list_system_processes)
4718 (w32_system_process_attributes): Remove.
4719 (list_system_processes, system_process_attributes):
4720 New prototypes.
4721
4722 2008-12-19 Kenichi Handa <handa@m17n.org>
4723
4724 * xfont.c (xfont_decode_coding_xlfd): New function.
4725 (xfont_encode_coding_xlfd): New function.
4726 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4727 (xfont_list): Decode and encode XLFD by iso-8859-1.
4728 (xfont_match): Likewise.
4729 (xfont_list_family): Likewise.
4730 (xfont_open): Likewise.
4731
4732 * ftfont.c (ftfont_open): Generate a multibyte string if given
4733 names are utf-8.
4734
4735 * xftfont.c (xftfont_open): Generate a multibyte string if given
4736 names are utf-8.
4737
4738 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4739
4740 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4741 changed.
4742 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4743 clicked on a detached tool bar button.
4744
4745 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4746
4747 * emacs.c (main): Print and error and exit when no data is read
4748 from the pipe.
4749
4750 2008-12-17 Jason Rumney <jasonr@gnu.org>
4751
4752 * w32font.c (w32font_has_char): Always return -1.
4753
4754 2008-12-16 Kenichi Handa <handa@m17n.org>
4755
4756 * font.c (font_open_entity): Fix previous change.
4757
4758 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4759
4760 * process.c: Include <limits.h>.
4761
4762 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
4763
4764 * font.c (font_update_drivers): Fix mistake in reconstructing the
4765 driver list.
4766
4767 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * font.c (font_clear_cache): Fix format of font cache data.
4770
4771 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
4772
4773 * xftfont.c (xftfont_open): Free Xft font pattern if
4774 XftFontOpenPattern fails.
4775
4776 * xterm.c (x_free_frame_resources): Remove extraneous call to
4777 free_frame_faces.
4778
4779 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4780
4781 * xterm.c (x_delete_display): Move xim_close_dpy call to
4782 x_delete_terminal.
4783 (x_delete_terminal): Call xim_close_dpy.
4784
4785 2008-12-13 Jason Rumney <jasonr@gnu.org>
4786
4787 * w32font.c (intern_font_name): New function.
4788 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4789 (w32font_open_internal, Fx_select_font): Decode font name.
4790 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4791
4792 * w32font.h (intern_font_name): Declare new function.
4793
4794 * w32uniscribe.c (add_opentype_font_name_to_list):
4795 Use intern_font_name.
4796
4797 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4798
4799 * frame.c (Fdelete_frame): Call free_font_driver_list.
4800
4801 * font.c (free_font_driver_list): Implement missing function.
4802
4803 * w32term.c (w32_term_init): Don't initialize the image cache
4804 here; it will be done in init_frame_faces.
4805
4806 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4807 (struct x_display_info): Remove unused member null_pixel. New
4808 member xim_callback_data.
4809
4810 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4811 (xim_initialize): Save pointer to callback function data.
4812 (xim_close_dpy): Free callback function data. Call XCloseIM,
4813 reverting 2008-11-04 change by David Smith.
4814 (x_term_init): Don't initialize the image cache here; it will be
4815 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4816 (x_delete_display): Free x_dnd_atoms member.
4817
4818 2008-12-13 Kenichi Handa <handa@m17n.org>
4819
4820 * font.c (font_rescale_ratio): Moved from xfaces.c.
4821 Argument type changed. Handle a font-spec too.
4822 (font_score): Check Vface_font_rescale_alist.
4823 (font_open_entity): Likewise. (Bug#1547)
4824
4825 * xfaces.c (font_rescale_ratio): Moved to font.c.
4826
4827 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
4828
4829 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4830
4831 2008-12-12 Jason Rumney <jasonr@gnu.org>
4832
4833 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4834 Vwindow_system_version to the real w32 major version.
4835
4836 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4837
4838 * term.c (init_tty): Move setting the terminal name before the
4839 potential user: maybe_fatal.
4840
4841 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
4842
4843 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4844 all callers changed. Call free_frame_faces to free the face cache.
4845
4846 2008-12-11 Jason Rumney <jasonr@gnu.org>
4847
4848 * w32font.c (fill_in_logfont): Don't assume symbol script means
4849 SYMBOL_CHARSET. (Bug#547)
4850
4851 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
4852 size for surrogates. (Bug#1096, bug#872)
4853
4854 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4855
4856 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4857
4858 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4859
4860 * process.c (Fsystem_process_attributes, syms_of_process):
4861 Fix typo in name of Ssystem_process_attributes.
4862 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4863
4864 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
4865
4866 * syntax.c (Fmodify_syntax_entry): Doc fix.
4867
4868 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4869
4870 * font.c (Ffont_spec): Move usage to end of docstring.
4871
4872 2008-12-10 Jason Rumney <jasonr@gnu.org>
4873
4874 * w32font.c (Qcham): New symbol.
4875 (font_supported_scripts): Add cham, and comments for other new
4876 scripts in bitfield from OpenType spec.
4877 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4878 contain characters beyond the bmp.
4879
4880 2008-12-10 Kenichi Handa <handa@m17n.org>
4881
4882 * ftfont.c (fc_charset_table): Add "unicode-sip".
4883 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
4884 Qunicode_sip.
4885
4886 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
4887
4888 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4889 (Fcoding_system_put): Use QCdefault_char.
4890 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4891
4892 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
4893
4894 * xftfont.c (syms_of_xftfont): Fix typo.
4895
4896 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
4897
4898 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4899
4900 * emacs.c (main): Close daemon_pipe on exec.
4901
4902 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * termchar.h (struct tty): New members termcap_term_buffer and
4905 termcap_strings_buffer.
4906
4907 * term.c (encode_terminal_code): Free any previous memory blocks
4908 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
4909 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4910 All callers changed.
4911 (init_tty): Store termcap data and string buffers in new struct
4912 tty members termcap_term_buffer and termcap_strings_buffer.
4913 (delete_tty): Free them.
4914 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
4915
4916 2008-12-07 Seiji Zenitani <zenitani@mac.com>
4917
4918 * nsfns.m (ns_set_background_color): Remove code duplication.
4919 It was a substitute for face-transparency on OS X 10.3.
4920
4921 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
4922
4923 * coding.c (make_conversion_work_buffer): Disable buffer
4924 modification hooks in the work buffer.
4925
4926 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4927
4928 * process.c (procfs_system_process_attributes): If `nread' has a
4929 negative value, assign zero to it.
4930
4931 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
4932
4933 * eval.c (Vdebug_on_error): Doc fix.
4934
4935 2008-12-05 Kenichi Handa <handa@m17n.org>
4936
4937 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4938 second character is a combining character.
4939
4940 2008-12-05 Eli Zaretskii <eliz@gnu.org>
4941
4942 * process.c (procfs_system_process_attributes): Don't use cmd,
4943 cmdsize, and q without initializing them first.
4944
4945 2008-12-04 Jason Rumney <jasonr@gnu.org>
4946
4947 * w32font.c (w32font_draw): Initialize orig_clip before getting
4948 it, and delete it when finished.
4949
4950 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4951
4952 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4953 case when running as a daemon before detaching.
4954
4955 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
4956
4957 * w32.c (init_environment): Don't unload library shell32.dll.
4958
4959 2008-12-03 Kenichi Handa <handa@m17n.org>
4960
4961 * font.c (font_at): Set `multibyte' at first.
4962
4963 * coding.c (decode_coding_charset): Check type of an element of
4964 vector VALIDS.
4965 (encode_coding_emacs_mule): Be sure to set `code'.
4966
4967 * fontset.c (face_for_char): Handle invalid charset property correctly.
4968 (font_for_char): Likewise.
4969
4970 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
4971
4972 * font.c (Fopen_font): Compute pixel size correctly.
4973 (font_update_lface): Handle fonts with corrupted size specs,
4974 i.e. non-int and non-float.
4975
4976 * ftfont.c (ftfont_match): Initialize entity variable.
4977 (ftfont_resolve_generic_family): Avoid using uninitialized var.
4978 (ftfont_list_family): Initialize list var earlier.
4979
4980 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4981
4982 * xterm.c (x_draw_glyph_string): Fall back on
4983 underline_minimum_offset for underline position.
4984
4985 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4986
4987 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4988
4989 * character.c (c_string_width): Specify the type for LEN.
4990
4991 2008-12-03 Kenichi Handa <handa@m17n.org>
4992
4993 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
4994 (decode_coding_utf_8): Likewise.
4995 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4996 (produce_chars): Initialize consumed_chars to 0.
4997
4998 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
4999
5000 * keyboard.c (make_lispy_position): Only use PT if the selected
5001 window is current.
5002
5003 2008-12-02 Andreas Schwab <schwab@suse.de>
5004
5005 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5006
5007 * doprnt.c (doprnt1): Fix size of charbuf.
5008
5009 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5010
5011 * keyboard.c (timer_check): Revert last change.
5012
5013 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5014
5015 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5016
5017 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5018
5019 * makefile.w32-in: Update dependencies.
5020 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5021
5022 2008-12-01 Andreas Schwab <schwab@suse.de>
5023
5024 * font.c (register_font_driver): Use xmalloc.
5025 (font_put_frame_data): Likewise.
5026
5027 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5028
5029 * xfaces.c (realize_x_face): Make abort condition clearer.
5030
5031 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5032
5033 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5034
5035 * keyboard.c (timer_check): After a timer runs, ensure that the
5036 selected window's buffer is current.
5037
5038 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5039
5040 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5041 It was accidentally restored by the Unicode merge.
5042
5043 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5044
5045 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5046
5047 * w32proc.c: Include "coding.h".
5048 (Fw32_short_file_name): Encode filename passed to Windows API.
5049 (Fw32_long_file_name): Encode filename passed to Windows API and
5050 decode back the result. (Bug#1433)
5051
5052 2008-11-29 Kenichi Handa <handa@m17n.org>
5053
5054 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5055 not before accessing it.
5056
5057 * charset.c (Fdefine_charset_internal): After calculating
5058 min_char, max_char, and fastmap, copy the charset structure again.
5059 (encode_char): Fix the previous change.
5060
5061 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5062
5063 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5064
5065 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5066
5067 * nsterm.m (x_set_frame_alpha): New function.
5068
5069 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5070
5071 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5072
5073 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5074
5075 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5076 pointer to check_face_name.
5077
5078 2008-11-27 Kenichi Handa <handa@m17n.org>
5079
5080 * category.h (SET_CATEGORY_SET): Call set_category_set.
5081 (set_category_set): Extern it.
5082
5083 * category.c (hash_get_category_set): New function.
5084 (Fmodify_category_entry): Adjusted for the change of
5085 char_table_ref_and_range. Call hash_get_category_set to get a
5086 category set to store in the table.
5087
5088 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5089 Funify_charset.
5090
5091 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5092 (DECODE_CHAR): Check if the decoder vector is ready.
5093 (ENCODE_CHAR): Check if the encoder char-table is ready.
5094 (maybe_unify_char): Extern it.
5095
5096 * charset.c (Vchar_unified_charset_table): Delete it.
5097 (inhibit_load_charset_map): New variable.
5098 (temp_charset_work): New variable.
5099 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5100 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5101 New macros.
5102 (load_charset_map): Meaning of control_flag changed. If
5103 inhibit_load_charset_map is nonzero, setup a table in
5104 temp_charset_work.
5105 (load_charset): New argument control_flag.
5106 (map_charset_for_dump): New function.
5107 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5108 map_charset_for_dump.
5109 (Fdefine_charset_internal): If the charset method is MAP, load
5110 mapping tables by calling load_charset.
5111 (Funify_charset): Don't load a mapping table but directly set
5112 Vchar_unify_table.
5113 (maybe_unify_char): New function.
5114 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5115 Handle the case of inhibit_load_charset_map being nonzero.
5116 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5117 Handle the case of inhibit_load_charset_map being nonzero.
5118 (Fclear_charset_maps): Just free temp_charset_work.
5119 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5120 variable.
5121
5122 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5123 change of char_table_ref_and_range.
5124 (char_table_ref_and_range): Change the meaning of argument FROM
5125 and TO. Now the caller must provide initial values for *FROM
5126 and *TO.
5127
5128 * fontset.c (fontset_add): Adjusted for the change of
5129 char_table_ref_and_range.
5130 (fontset_get_font_group): Likewise.
5131 (Ffontset_info): Likewise.
5132
5133 * keymap.c (describe_vector): Adjusted for the change of
5134 char_table_ref_and_range. For char-table, put boundary between
5135 non-ASCII and 8-bit characters.
5136
5137 * print.c (print_object): For bool-vector, delete unnecessary
5138 check of ASCII_BYTE_P.
5139
5140 2008-11-26 Jason Rumney <jasonr@gnu.org>
5141
5142 * w32font.c (w32font_open_internal): Don't include external
5143 leading in font height. (Bug#879)
5144
5145 2008-11-26 Glenn Morris <rgm@gnu.org>
5146
5147 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5148 redefinition with ifdef. (Bug#1383)
5149
5150 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5151
5152 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5153
5154 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5155
5156 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5157 New EmacsView methods.
5158 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5159 Fixes bug #1048,1357,1414.
5160
5161 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5162
5163 Fix bug #1362.
5164 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5165 is not an indexed color.
5166 * nsterm.m (free_indexed_color): Add argument checking.
5167 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5168
5169 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5170
5171 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5172 Document confirm-after-completion value for
5173 minibuffer-completion-confirm.
5174
5175 2008-11-24 Jason Rumney <jasonr@gnu.org>
5176
5177 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5178 warning.
5179
5180 2008-11-23 Jason Rumney <jasonr@gnu.org>
5181
5182 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5183 restored before returning.
5184
5185 * w32font.c (check_face_name): New function.
5186 (add_font_entity_to_list): Use it to filter out common substituted
5187 fonts. (Bug#642)
5188
5189 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5190
5191 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5192 confirm-nonexistent-file-or-buffer in doc-string.
5193
5194 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5195
5196 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5197 Fix copy/paste typo. Add checks.
5198
5199 2008-11-21 Kenichi Handa <handa@m17n.org>
5200
5201 * coding.c (detect_coding_iso_2022): Reject invalid composition
5202 sequence.
5203 (DECODE_COMPOSITION_START): If the current source is the last
5204 block, and the current composition doesn't end, regard this
5205 sequence as invalid.
5206 (decode_coding_iso_2022): Handle invalid composition sequence.
5207
5208 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5209
5210 * window.c (coordinates_in_window): Don't return
5211 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5212 line when the window is not the rightmost one. (Bug#1372)
5213
5214 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5215
5216 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5217
5218 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5219
5220 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5221 and bright_bg if noninteractive is non-zero.
5222
5223 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5224
5225 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5226 x_draw_glyph_string_background.
5227
5228 * w32term.c (x_draw_glyph_string): Likewise.
5229
5230 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5231
5232 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5233 the next glyph string once past the overhang width.
5234
5235 * nsterm.m (ns_draw_glyph_string): Likewise.
5236
5237 * w32term.c (x_draw_glyph_string): Likewise.
5238
5239 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5240
5241 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5242 double file close.
5243
5244 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5245
5246 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5247 dedicated status of window before attempting to display another
5248 buffer in it.
5249
5250 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5251
5252 * msdos.c (Fmsdos_long_file_names):
5253 (syms_of_msdos) <dos-unsupported-char-glyph>:
5254 * dosfns.c (Fint86): Fix typos in docstrings.
5255
5256 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5257
5258 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5259
5260 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5261
5262 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5263
5264 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5265
5266 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5267
5268 * frame.h: Negative alpha means "don't touch".
5269
5270 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5271
5272 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5273
5274 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5275
5276 * hftctl.c:
5277 * chpdef.h:
5278 * acldef.h: Remove files used only for systems no longer supported.
5279
5280 * Makefile.in: Fix .o alphabetical ordering.
5281 (hftctl.o): Remove dependency, file removed.
5282 (keymap.o, print.o): Depend on charset.h.
5283
5284 2008-11-10 Kenichi Handa <handa@m17n.org>
5285
5286 * character.c (Fget_byte): Fix and make it faster for unibyte target.
5287
5288 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
5289
5290 * dired.c (file_name_completion): If completion_ignore_case is
5291 enabled, ignore case when checking completion-regexp-list.
5292
5293 2008-11-08 Eli Zaretskii <eliz@gnu.org>
5294
5295 * vm-limit.c (get_lim_data): Fix last change.
5296
5297 2008-11-08 Kenichi Handa <handa@m17n.org>
5298
5299 * character.c (Fget_byte): New function.
5300 (syms_of_character): Defsubr Fget_byte.
5301
5302 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5305 cursor position is valid after scrolling.
5306
5307 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
5308
5309 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5310
5311 2008-11-06 Glenn Morris <rgm@gnu.org>
5312
5313 * xterm.c (handle_one_xevent): Don't let popup menus cause
5314 mouse-autoselect-window related window switching. (Bug#1261)
5315
5316 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5317
5318 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5319
5320 2008-11-04 Andreas Schwab <schwab@suse.de>
5321
5322 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5323
5324 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
5325
5326 * xfns.c (Fx_wm_set_size_hint): New function.
5327
5328 2008-11-03 Martin Rudalics <rudalics@gmx.at>
5329
5330 * textprop.c (Fprevious_single_char_property_change): Return 0
5331 when there's no change in a string. (Bug#1301)
5332
5333 2008-11-02 Martin Rudalics <rudalics@gmx.at>
5334
5335 * frame.c (do_switch_frame): New argument NORECORD passed to
5336 Fselect_window.
5337 (Fselect_frame): New argument NORECORD passed to
5338 do_switch_frame.
5339 (Fset_frame_selected_window): New argument NORECORD passed to
5340 Fselect_frame.
5341 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5342 in call of do_switch_frame.
5343 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5344 Handle NORECORD argument in call of Fselect_frame.
5345 * lisp.h (do_switch_frame, Fselect_frame)
5346 (Fset_frame_selected_window): Adjust declarations.
5347 * window.c (select_frame_norecord): New function.
5348 (run_window_configuration_change_hook): Use it and call
5349 Fselect_frame with NORECORD set.
5350 (Fselect_window): Pass NORECORD to Fselect_frame.
5351 (Fset_window_configuration): Handle NORECORD argument in call of
5352 do_switch_frame.
5353 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5354 Fset_frame_selected_window.
5355 * keyboard.c (command_loop_1): Handle NORECORD in call of
5356 Fselect_frame (currently ifdefd).
5357
5358 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5359
5360 * emacs.c (USAGE2): Untabify.
5361
5362 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5363
5364 * composite.c (fill_gstring_header): Fix copy/paste typo.
5365
5366 2008-10-31 Martin Rudalics <rudalics@gmx.at>
5367
5368 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5369 (Fother_window): Rename argument and rewrite doc-string.
5370 (select_window_norecord): Fix return value. (Bug#1276)
5371
5372 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
5373
5374 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5375 new frames overriding foreground for tooltips. Based on similar patch
5376 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5377
5378 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
5379
5380 * emacs.c (Fdaemon_initialized): Initialize nfd.
5381
5382 2008-10-29 Martin Rudalics <rudalics@gmx.at>
5383
5384 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5385 (Fwindow_text_height): Clarify doc-strings.
5386 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5387 doc-string of window-scroll-functions.
5388
5389 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5390
5391 * category.c (syms_of_category): Fix typo in docstring.
5392
5393 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
5394
5395 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5396 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5397 Fix typos in docstrings.
5398
5399 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5400
5401 * emacs.c (daemon_pipe): Make non-static.
5402 (IS_DAEMON): Move definition ...
5403 * lisp.h (IS_DAEMON): ... here.
5404 (daemon_pipe): Declare.
5405 (is_daemon): Remove.
5406 * dispnew.c (init_display): Use IS_DAEMON.
5407
5408 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5409
5410 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5411 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5412
5413 * emacs.c (is_daemon): Remove.
5414 (main): Don't set is_daemon.
5415 (IS_DAEMON): New macro.
5416 (Fdaemonp, Fdaemon_initialized): Use it.
5417 (Fdaemon_initialized): Write a char into the pipe to make sure the
5418 parent exits.
5419 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5420
5421 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5424 over-sized glyph, draw it with the default glyph width.
5425
5426 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5427 glyph, draw it with the default glyph width.
5428
5429 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5430 glyph, draw it with the default glyph width.
5431
5432 * xdisp.c (try_scrolling): When computing the distance from the
5433 scroll margin to PT, try moving some distance past the window
5434 bottom before giving up.
5435
5436 2008-10-27 Martin Rudalics <rudalics@gmx.at>
5437
5438 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5439 (Fset_window_buffer): Explain in doc-string that a window can be
5440 "strongly" dedicated to its buffer.
5441
5442 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5443
5444 * emacs.c (daemon_name): New variable.
5445 (main): Deal with --daemon=SERVER_NAME.
5446 (Fdaemonp): Return a name if one was passed to --daemon.
5447
5448 2008-10-26 Romain Francoise <romain@orebokech.com>
5449
5450 * emacs.c (daemon_pipe): New variable.
5451 (main): Create a pipe before forking, make the parent exit only after
5452 the child has closed its end of the pipe. Move closing the
5453 descriptors ...
5454 (Fdaemon_initialized): ... here. New function.
5455
5456 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5457
5458 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5459 the previous unoptimized table.
5460
5461 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5462 the distinction between non-nil and non-t value of `dedicated'.
5463
5464 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
5465
5466 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
5467 read_char_minibuf_menu_text is large enough to hold the menu string.
5468
5469 2008-10-25 Martin Rudalics <rudalics@gmx.at>
5470
5471 * window.c (Fget_buffer_window, Fdelete_windows_on)
5472 (Freplace_buffer_in_windows): Make buffer argument optional and
5473 rename to buffer_or_name.
5474
5475 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
5476
5477 * xdisp.c (handle_single_display_spec, handle_display_prop):
5478 Undo 2005-05-16 change.
5479 (handle_stop): Pop iterator if it's loaded with an empty string.
5480 (get_overlay_strings_1): Don't save iterator if it's loaded with
5481 an empty string (bug#1201).
5482
5483 2008-10-24 Kenichi Handa <handa@m17n.org>
5484
5485 * ftfont.c (ftfont_otf_features): Fix previous change.
5486 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5487 calling ftfont_otf_features.
5488
5489 2008-10-24 Kenichi Handa <handa@m17n.org>
5490
5491 * font.c (font_match_p): Fix for the case that a vector of
5492 characters is in script-representative-chars.
5493
5494 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
5495
5496 * dbusbind.c (xd_in_read_queued_messages): New variable.
5497 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
5498 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5499 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5500 macro. (Bug#1186)
5501
5502 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
5503
5504 * s/sol2-10.h: New file.
5505
5506 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5507
5508 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5509 poor beast has survived 9+ years and the jump from xterm.c!).
5510
5511 2008-10-23 Martin Rudalics <rudalics@gmx.at>
5512
5513 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5514 Reword doc-string.
5515 (Fbury_buffer): In doc-string say what happens to the buffer's window.
5516
5517 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
5518
5519 * character.c (syms_of_character) <script-representative-chars>:
5520 <unicode-category-table>: Doc fixes.
5521
5522 2008-10-23 Noah Friedman <friedman@splode.com>
5523
5524 * coding.c (make_conversion_work_buffer): Check that
5525 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5526 Fget_buffer_create.
5527
5528 2008-10-23 Kenichi Handa <handa@m17n.org>
5529
5530 * font.c (font_add_log): Check the values of extra properties.
5531
5532 2008-10-22 Martin Rudalics <rudalics@gmx.at>
5533
5534 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5535 Reword doc-string.
5536 (Fset_window_parameter): Use NILP.
5537 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
5538 (Frecenter): Use "selected" instead of "current" window in doc-strings.
5539
5540 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5541
5542 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5543
5544 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5545
5546 * nsfns.m (ns_appkit_version): New function.
5547 (x-server-version): Use it.
5548 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5549 (x-server-vendor): Don't check_ns().
5550
5551 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5552
5553 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
5554
5555 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5556 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5557
5558 2008-10-22 Kenichi Handa <handa@m17n.org>
5559
5560 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5561 scripts.
5562
5563 * category.c (word_boundary_p): Check scripts instead of charset.
5564 Handle nil value in word-separating-categories and
5565 word-combining-categories.
5566 (syms_of_category): Fix docstrings of word-separating-categories
5567 and word-combining-categories.
5568
5569 2008-10-21 Eli Zaretskii <eliz@gnu.org>
5570
5571 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5572 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5573
5574 2008-10-21 Martin Rudalics <rudalics@gmx.at>
5575
5576 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5577 Rename arg "buffer" to "buffer_or_name".
5578 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5579 it optional.
5580 (no_switch_window): Remove since the return value is not used.
5581 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
5582 Consider window as dedicated when Fwindow_dedicated_p returns a
5583 non-nil value.
5584 * lisp.h: Remove prototype for no_switch_window.
5585
5586 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5587
5588 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
5589 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
5590
5591 2008-10-21 Kenichi Handa <handa@m17n.org>
5592
5593 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5594 check Vlatin_extra_code_table.
5595
5596 2008-10-20 Eli Zaretskii <eliz@gnu.org>
5597
5598 * fileio.c (Fset_file_modes): Doc fix.
5599
5600 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
5601
5602 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5603 in arrays.
5604
5605 2008-10-19 Martin Rudalics <rudalics@gmx.at>
5606
5607 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5608 Mention kill-buffer in doc-string.
5609 (Fset_window_buffer): Reinsert tem check removed in last commit.
5610 (Fenlarge_window, Fshrink_window): Have argument names and
5611 doc-string follow Elisp manual more closely.
5612
5613 2008-10-18 Eli Zaretskii <eliz@gnu.org>
5614
5615 * fileio.c (Fset_file_modes): Doc fix.
5616
5617 2008-10-18 Martin Rudalics <rudalics@gmx.at>
5618
5619 * window.c (Fwindow_width, Fset_window_start)
5620 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
5621 (Fdelete_windows_on, Freplace_buffer_in_windows):
5622 Make doc-strings follow code and Elisp manual more closely.
5623 (Fwindow_dedicated_p): Make window argument optional.
5624 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5625 (Fset_window_buffer): Respect any non-nil dedicated value for
5626 window. Rename "buffer" argument to "buffer_or_name".
5627
5628 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
5629
5630 * m/sh3.h: New file, machine description for SuperH.
5631
5632 2008-10-17 Martin Rudalics <rudalics@gmx.at>
5633
5634 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5635
5636 2008-10-17 Kenichi Handa <handa@m17n.org>
5637
5638 * ftfont.c (ftfont_otf_features): Fix indexing
5639 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5640
5641 2008-10-16 Magnus Henoch <mange@freemail.hu>
5642
5643 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5644 (Fdbus_call_method_asynchronously): Ditto.
5645 This change makes C-h f display the argument list.
5646
5647 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
5648
5649 * fileio.c (Fexpand_file_name): Doc fix.
5650
5651 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5652 of :foreground and :background equivalent to unspecified (20.x
5653 compatibility).
5654
5655 2008-10-15 Eli Zaretskii <eliz@gnu.org>
5656
5657 * buffer.c (syms_of_buffer): Doc fix.
5658
5659 2008-10-14 Kenichi Handa <handa@m17n.org>
5660
5661 * font.c (font_clear_prop): When clearing font width, clear the
5662 average width field too.
5663
5664 2008-10-12 Andreas Schwab <schwab@suse.de>
5665
5666 * ftfont.c (ftfont_shape_by_flt): Make static.
5667 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5668
5669 * font.c: Don't include <m17n-flt.h>.
5670
5671 2008-10-10 Eli Zaretskii <eliz@gnu.org>
5672
5673 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5674
5675 2008-10-09 Eli Zaretskii <eliz@gnu.org>
5676
5677 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5678 away code.
5679
5680 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
5681
5682 * dispnew.c (update_text_area): Avoid looping due to large glyph
5683 overhangs (bug#1070).
5684
5685 2008-10-09 Kenichi Handa <handa@m17n.org>
5686
5687 * fontset.c (face_for_char): If face->fontset is negative, just
5688 return ascii_face.
5689
5690 * font.c (font_delete_unmatched): Fix previous change.
5691 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
5692
5693 2008-10-09 Martin Rudalics <rudalics@gmx.at>
5694
5695 * frame.c (Fraise_frame): On text-only terminals select frame in
5696 order to make it visible. (Bug#1061)
5697
5698 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
5699
5700 * fontset.c (fontset_find_font): Check frame validity.
5701
5702 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
5703
5704 * gtkutil.c (xg_display_open): Reset default display if none exists.
5705 (xg_display_close): Allow Emacs to close all displays (bug#985).
5706
5707 2008-10-06 Andreas Schwab <schwab@suse.de>
5708
5709 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
5710
5711 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
5712
5713 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
5714
5715 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
5716
5717 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5718 during initialization.
5719
5720 2008-10-04 Eli Zaretskii <eliz@gnu.org>
5721
5722 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5723 whole thing on MSDOS frames as well as on a TTY.
5724
5725 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5726 well as for TTY.
5727 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5728 well as on a TTY.
5729
5730 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5731 as well as for TTY.
5732
5733 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5734
5735 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5736 MSDOS frames as well.
5737
5738 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5739
5740 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5741 correct arguments.
5742 * menu.c (find_and_return_menu_selection): Add cast.
5743
5744 2008-10-03 Glenn Morris <rgm@gnu.org>
5745
5746 * emacs.c (USAGE1): Add --daemon.
5747
5748 2008-10-02 Eli Zaretskii <eliz@gnu.org>
5749
5750 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5751 100, so it's in percents as advertised.
5752
5753 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5754
5755 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5756 (ns_output.current_cursor, ns_output.desired_cursor)
5757 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5758 (FRAME_NEW_CURSOR_COLOR): Remove.
5759
5760 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
5761 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
5762 enumeration (HOLLOW_BOX_CURSOR, etc.).
5763
5764 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5765 (draw_window_cursor): Simplify code.
5766 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5767 Don't change cursor type. In latter, call rehighlight instead of doing
5768 updates manually.
5769 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5770 Use core Emacs cursor types.
5771
5772 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
5773
5774 2008-10-02 Martin Rudalics <rudalics@gmx.at>
5775
5776 * process.c (Faccept_process_output): Fix doc-string.
5777
5778 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5779
5780 * gmalloc.c (__sbrk): Also define for uClibc.
5781
5782 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5783 for uClibc.
5784
5785 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5786
5787 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5788 styles.
5789 (nsfont_open): Reenable the cache.
5790
5791 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5792
5793 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5794 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5795
5796 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5797
5798 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5799 a suspended terminal.
5800
5801 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
5802
5803 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5804
5805 2008-09-30 Eli Zaretskii <eliz@gnu.org>
5806
5807 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5808
5809 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
5810
5811 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5812 in a continued line coincides with a line beginning.
5813
5814 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5815
5816 * nsfont.m (nsfont_trait_distance): Fix bug.
5817 (nsfont_list): Return a list rather than a vector (syncs with Handa
5818 changes of 2008-05-14).
5819 (nsfont_open): Improve logging.
5820
5821 2008-09-29 Andreas Schwab <schwab@suse.de>
5822
5823 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5824
5825 2008-09-28 Martin Rudalics <rudalics@gmx.at>
5826
5827 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5828 name as char-resolve-modifiers.
5829 Reported by: Markus Triska <markus.triska@gmx.at>
5830
5831 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5832
5833 * dispnew.c (init_display): Return earlier when running as a daemon.
5834
5835 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5836
5837 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5838
5839 2008-09-27 Eli Zaretskii <eliz@gnu.org>
5840
5841 * composite.c (Fcomposition_get_gstring)
5842 (Fcompose_region_internal, Fcompose_string_internal)
5843 (Ffind_composition_internal): Doc fix.
5844 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5845 (syms_of_composite) <auto-composition-function>: Doc fix.
5846 (syms_of_composite) <composition-function-table>: Doc fix.
5847
5848 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * search.c (wordify): New argument for lax word-ends.
5851 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5852
5853 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5854
5855 * lisp.h (is_daemon): Declare.
5856 * dispnew.c (init_display): Do not try to initialize the terminal
5857 when running as a daemon.
5858
5859 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
5860
5861 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5862 x_display_pixel_height.
5863
5864 2008-09-22 Martin Rudalics <rudalics@gmx.at>
5865
5866 * undo.c (record_point): Don't call Fundo_boundary for first
5867 change. (Bug#731)
5868
5869 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
5870
5871 * emacs.c (Fdaemonp): Doc fix.
5872
5873 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5874
5875 * emacs.c (main): Place #ifdef in the proper place.
5876
5877 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5878
5879 * emacs.c (standard_args): Add --daemon.
5880 (main): Disconnect from the terminal when --daemon is passed.
5881 (is_daemon): New variable.
5882 (Fdaemonp): New function.
5883 (syms_of_emacs): Defsubr it.
5884
5885 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
5886
5887 * xdisp.c (get_next_display_element): Handle string display
5888 correctly when checking for the end of a box run.
5889
5890 2008-09-20 Glenn Morris <rgm@gnu.org>
5891
5892 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5893 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5894 (Frename_file): Avoid copying to trash if a rename involves
5895 a delete. (Bug#964).
5896
5897 2008-09-20 Eli Zaretskii <eliz@gnu.org>
5898
5899 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5900 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5901 frames as well as termcap frames.
5902 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5903 get_named_tty.
5904
5905 2008-09-19 Eli Zaretskii <eliz@gnu.org>
5906
5907 * process.c (procfs_system_process_attributes): Fix cmdline in
5908 case /proc/PID/cmdline is empty.
5909
5910 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5911 x_display_pixel_height.
5912
5913 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
5914
5915 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5916
5917 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5918 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5919
5920 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5921
5922 * dispextern.h (struct it): Move line_wrap away from the middle of
5923 bitfields. Move voffset in struct iterator_stack_entry after the
5924 bitfields. Move tab_width near after another short.
5925
5926 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5927
5928 * frame.h (struct frame): Move alpha from the middle of bitfields.
5929
5930 * window.h (struct window): Move frozen_window_start_p after the
5931 rest of the bitfields to reduce padding.
5932
5933 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
5934
5935 * xterm.h (x_display_info): Remove `height' and `width' members.
5936
5937 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5938
5939 * w32term.h (w32_display_info): Remove `height', `width',
5940 `height_in', and `width_in' members.
5941
5942 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5943 New functions.
5944 (x_calc_absolute_position): Use them.
5945 (x_term_init): Omit removed `height' and `width' members.
5946
5947 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5948 New functions.
5949 (w32_read_socket, x_calc_absolute_position): Use them.
5950 (w32_initialize_display_info, w32_term_init): Omit removed members
5951 of w32_display_info.
5952
5953 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5954 New functions.
5955 (ns_initialize_display_info): Omit removed members of ns_display_info.
5956
5957 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5958 New functions.
5959 (x_calc_absolute_position): Use them.
5960 (x_term_init): Omit removed `height' and `width' members.
5961
5962 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5963 (compute_tip_xy):
5964 * frame.c (x_fullscreen_adjust):
5965 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5966 x_display_pixel_width.
5967
5968 2008-09-18 Kenichi Handa <handa@m17n.org>
5969
5970 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5971 (composition_compute_stop_pos): Fix handling of static composition.
5972 (Fcomposition_get_gstring): Check FROM and TO at first.
5973
5974 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5975
5976 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
5977 mixup (YAILOM).
5978
5979 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
5980
5981 * indent.c (Fvertical_motion): Use position reported by iterator
5982 instead of PT for determining screen motion (bug#943).
5983
5984 2008-09-17 Romain Francoise <romain@orebokech.com>
5985
5986 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5987
5988 2008-09-17 Kenichi Handa <handa@m17n.org>
5989
5990 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5991
5992 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5993 if necessary.
5994
5995 2008-09-16 Kenichi Handa <handa@m17n.org>
5996
5997 * coding.c (make_conversion_work_buffer): Avoid calling
5998 Fget_buffer_create if it is not necessary.
5999
6000 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6001
6002 * window.c (Fselect_window): Don't update window_select_count and
6003 use_time when norecord is not nil.
6004
6005 2008-09-14 Kenichi Handa <handa@m17n.org>
6006
6007 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6008 specpdl_ptr.
6009
6010 2008-09-12 Kenichi Handa <handa@m17n.org>
6011
6012 * indent.c (scan_for_column): Don't handle automatic composition
6013 if the current buffer is not associated with a window.
6014
6015 * composite.c (composition_reseat_it): If the current buffer is
6016 not associated with a window, ignore the automatic composition.
6017 (find_automatic_composition): Likewise.
6018
6019 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6020
6021 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6022 (Fgpm_mouse_stop): Use it.
6023 * termhooks.h (close_gpm): Declare.
6024 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6025 connection if Gpm_GetEvent fails.
6026
6027 * window.c (set_window_buffer): Always preserve current-buffer.
6028
6029 2008-09-12 Glenn Morris <rgm@gnu.org>
6030
6031 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6032
6033 2008-09-11 Glenn Morris <rgm@gnu.org>
6034
6035 * charset.c (charset-map-path): Doc fix.
6036
6037 2008-09-10 Kenichi Handa <handa@m17n.org>
6038
6039 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6040
6041 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6042 compose a grapheme cluster with the preceding base glyph.
6043
6044 * composite.c (composition_compute_stop_pos): Fix previous change.
6045 Reset cmp_it->id to -1 at first.
6046
6047 2008-09-10 Glenn Morris <rgm@gnu.org>
6048
6049 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6050
6051 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6052
6053 * keyboard.c (read_key_sequence): Reapply translation maps when
6054 switching keyboards.
6055
6056 2008-09-09 Kenichi Handa <handa@m17n.org>
6057
6058 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6059 characters.
6060
6061 * composite.c (FORWARD_CHAR): Fix calculation
6062 of (POSITION).pos_byte.
6063 (composition_compute_stop_pos): Limit the search of composition to
6064 at most 500 characters ahead. If we reach the limit or find a
6065 newline, set cmp_it->ch to -2 and return 0.
6066 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6067
6068 2008-09-08 Kenichi Handa <handa@m17n.org>
6069
6070 * indent.c (Fvertical_motion): Be sure to set
6071 it_overshoot_expected if it.cmp_it.id is non-negative.
6072
6073 2008-09-07 Andreas Schwab <schwab@suse.de>
6074
6075 * callproc.c (Fcall_process): Don't hold references to string data
6076 across garbage collection. Move initialisation of new_argv down
6077 to avoid compiler bug.
6078
6079 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6080
6081 * process.c (Fsystem_process_attributes): Doc fix.
6082
6083 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6084
6085 * callproc.c (Fcall_process): Canonicalize current directory name.
6086
6087 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6088 iterator advances to the next line if the current line ends in a
6089 continued tab.
6090
6091 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6092
6093 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6094 member to point to cmp_from.
6095
6096 * xdisp.c: Doc fix for references to gidx data member.
6097
6098 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6099
6100 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6101
6102 2008-09-07 Kenichi Handa <handa@m17n.org>
6103
6104 * composite.c (FORWARD_CHAR): Check STOP after
6105 incrementing (POSITION).pos.
6106
6107 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6108
6109 * process.c (Fsystem_process_attributes): Doc fix.
6110
6111 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6112
6113 * keyboard.c (Ftop_level): Doc fix.
6114
6115 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6116
6117 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6118 minibuffer, don't let lower part of menu invade the echo area.
6119
6120 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6121 "char *q" to access menu text and advance through it. Revert the
6122 change that displayed ">" instead of ASCII character 0x10.
6123
6124 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6125
6126 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6127 toggle boxes and radio buttons on MS-DOS as well.
6128
6129 2008-09-05 Kenichi Handa <handa@m17n.org>
6130
6131 * composite.c (autocmp_chars): Check lookback count.
6132 (composition_compute_stop_pos): Set cmp_it->lookback.
6133 (composition_reseat_it): Check lookback count.
6134 (struct position_record): New struct.
6135 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6136 (find_automatic_composition): New function.
6137 (composition_adjust_point): Use find_automatic_composition.
6138
6139 * dispextern.h (struct composition_it): New member lookback.
6140
6141 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6142
6143 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6144 if moving by a single line.
6145
6146 2008-09-02 Andreas Schwab <schwab@suse.de>
6147
6148 * xterm.c (x_delete_display): Fix merge error.
6149
6150 * fileio.c (Fexpand_file_name): Remove unused variables.
6151
6152 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6153
6154 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6155 storage on all platforms, not just on DOS_NT.
6156
6157 2008-09-02 Jason Rumney <jasonr@gnu.org>
6158
6159 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6160 Ensure mouse is not grabbed after menu is finished.
6161
6162 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6163
6164 * xfaces.c (Finternal_set_alternative_font_family_alist)
6165 (Finternal_set_alternative_font_registry_alist): Properly copy
6166 entire alist structure.
6167
6168 2008-09-01 Kenichi Handa <handa@m17n.org>
6169
6170 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6171 representative chars of the script is a vector.
6172 (ftfont_list): Handle the case where the representative chars of
6173 the script is a vector.
6174
6175 * character.c (syms_of_character): Docstring of
6176 script-representative-chars fixed.
6177
6178 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6179
6180 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6181 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6182 the menu. Allocate larger buffer for `text', to account for
6183 possible ^C characters.
6184
6185 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6186
6187 * xdisp.c (prepare_menu_bars): Don't call
6188 Vwindow_size_change_functions with arg Qt.
6189
6190 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6191
6192 * font.h (font_range):
6193 * fileio.c (report_file_error):
6194 * composite.c (composition_update_it): Yet another int/Lisp_Object
6195 mixup (YAILOM).
6196
6197 2008-08-30 Glenn Morris <rgm@gnu.org>
6198
6199 * data.c (Fmake_variable_frame_local): Doc fix.
6200
6201 * frame.c (Fmodify_frame_parameters): Doc fix.
6202
6203 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6204
6205 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6206 needed by GetTokenInformation.
6207 (w32_system_process_attributes): Check return values of all system
6208 APIs.
6209
6210 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6211 only when the state changes.
6212 (IT_update_begin, IT_update_end): Add termscript trace.
6213
6214 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6215 clipboard is unavailable. Set dst to NULL if it doesn't point to
6216 malloc'ed data.
6217 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6218 passing random values to xfree.
6219
6220 * dispnew.c (init_display): Set `tty's association in frame's
6221 parameters alist to the name of the terminal device, if that is known.
6222
6223 2008-08-29 Jason Rumney <jasonr@gnu.org>
6224
6225 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6226
6227 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6228
6229 * composite.c (fill_gstring_body): Avoid compiler warnings.
6230
6231 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6232 LGLYPH_SET_CODE to avoid compiler warnings.
6233
6234 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6235
6236 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6237
6238 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6239 LGLYPH_SET_CODE.
6240
6241 2008-08-29 Kenichi Handa <handa@m17n.org>
6242
6243 * fileio.c (report_file_error): Don't downcase the first character
6244 of errstring if it is still unibyte.
6245
6246 2008-08-29 Kenichi Handa <handa@m17n.org>
6247
6248 These changes are to re-implement the automatic composition so
6249 that it doesn't use text properties.
6250
6251 * Makefile.in (ftfont.o): Depend on composite.h.
6252 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6253
6254 * character.h (Vunicode_category_table): Extern it.
6255
6256 * character.c (Vunicode_category_table): New variable.
6257 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6258
6259 * chartab.c (optimize_sub_char_table): Perform more greedy
6260 optimization.
6261
6262 * composite.h (enum composition_method):
6263 Delete COMPOSITION_WITH_GLYPH_STRING.
6264 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6265 (Vcomposition_function_table): Extern it.
6266 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6267 (composition_gstring_put_cache, composition_gstring_from_id)
6268 (composition_gstring_p, composition_gstring_width)
6269 (composition_compute_stop_pos, composition_reseat_it)
6270 (composition_update_it, composition_adjust_point): Extern them.
6271 (Fcomposition_get_gstring): EXFUN it.
6272
6273 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
6274 (Vcomposition_function_table)
6275 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
6276 (gstring_hash_table, gstring_work, gstring_work_headers):
6277 New variables.
6278 (gstring_lookup_cache, composition_gstring_put_cache)
6279 (composition_gstring_from_id, composition_gstring_p)
6280 (composition_gstring_width, fill_gstring_header)
6281 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6282 (composition_reseat_it, composition_update_it)
6283 (composition_adjust_point, Fcomposition_get_gstring): New functions.
6284 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6285 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6286 Defsubr compostion_get_gstring.
6287
6288 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6289 cmp_id.
6290 (struct glyph_string): Delete the member gidx. New members
6291 cmp_id, cmp_from, and cmp_to.
6292 (enum it_method): Delete GET_FROM_COMPOSITION.
6293 (struct composition_it): New struct.
6294 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6295 Delete c, len, cmp_id, cmp_len in u.comp.
6296
6297 * font.h (enum lgstring_indices): Delete it.
6298 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
6299 (enum lglyph_indices): Likewise.
6300 (font_range): Adjust extern.
6301 (font_fill_lglyph_metrics): Extern it.
6302
6303 * font.c (QCf): New variable.
6304 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6305 (font_prepare_composition): Delete this function.
6306 (font_range): Type and arguments changed.
6307 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6308 (font_fill_lglyph_metrics): New function.
6309 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
6310 (syms_of_font): DEFSYM QCf. Delete defsubr for
6311 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6312 Defsubr Sfont_shape_gstring.
6313
6314 * fontset.h (font_for_char): Extern it.
6315
6316 * fontset.c (font_for_char): New function.
6317
6318 * ftfont.c: Include composite.h.
6319 (ftfont_resolve_generic_family): Add langset "en" to pattern.
6320 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6321
6322 * indent.c: Include composite.h and dispextern.h.
6323 (check_composition): Delete this function.
6324 (scan_for_column): Handle composition by
6325 composition_compute_stop_pos, composition_reseat_it, and
6326 composition_update_it.
6327 (compute_motion): Likewise.
6328 (Fvertical_motion): Fix checking of composition.
6329
6330 * keyboard.c (adjust_point_for_property): Check composition by
6331 composition_adjust_point.
6332
6333 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
6334 struct glyph_string.
6335
6336 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6337 (append_composite_glyph): Adjust for the change of struct it and
6338 struct glyph.
6339 (produce_composite_glyph): Likewise.
6340
6341 * w32term.c (x_draw_composite_glyph_string_foreground):
6342 Adjust for the change of struct glyph_string.
6343 (x_draw_glyph_string): Likewise.
6344
6345 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6346 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6347
6348 * xdisp.c: Include font.h.
6349 (it_props): Delete the entry for Qauto_composed.
6350 (init_iterator): Initialize it->cmp_it.id to -1.
6351 (compute_stop_pos): Call composition_compute_stop_pos.
6352 (face_before_or_after_it_pos): Adjust for the change of struct it.
6353 (handle_auto_composed_prop): Delete it.
6354 (handle_composition_prop): Handle only static composition.
6355 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6356 from xassert. Initialize it->cmp_it.stop_pos.
6357 (push_it): Adjust for the change of struct it.
6358 (pop_it): Likewise.
6359 (get_next_element): Delete next_element_from_composition.
6360 (CHAR_COMPOSED_P): New macro.
6361 (get_next_display_element): For automatic composition, get a face
6362 from the font in the glyph-string.
6363 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
6364 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
6365 (next_element_from_string): Check if the character at the current
6366 position is composed by CHAR_COMPOSED_P.
6367 (next_element_from_buffer): Likewise.
6368 (next_element_from_composition): Adjust for the change of struct it.
6369 Update it->cmp_it.
6370 (dump_glyph): Adjust for the change of struct glyph.
6371 (fill_composite_glyph_string): Adjust for the change of struct
6372 it and struct glyph. Don't handle automatic composition here.
6373 (fill_gstring_glyph_string): New function.
6374 (x_get_glyph_overhangs): Handle automatic composition.
6375 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
6376 (BUILD_GSTRING_GLYPH_STRING): New macro.
6377 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6378 automatic composition.
6379 (append_composite_glyph): Adjust for the change of struct it and
6380 struct glyph.
6381 (x_produce_glyphs): Adjust for the change of struct it.
6382
6383 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
6384 the change of struct glyph_string.
6385 (x_draw_glyph_string): Likewise.
6386
6387 2008-08-29 Glenn Morris <rgm@gnu.org>
6388
6389 * buffer.c (word-wrap): Doc fix.
6390 * xdisp.c (truncate-partial-width-windows): Doc fix.
6391 Increase default to 50.
6392
6393 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
6394
6395 * xdisp.c (update_tool_bar_unwind): New function.
6396 (update_tool_bar): Temporarily set selected frame before building
6397 tool-bar items.
6398
6399 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
6400
6401 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6402 snprintf, respectively.
6403 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6404
6405 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
6406
6407 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6408 LDFLAGS to GNUstep CC invocation.
6409
6410 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
6411
6412 * indent.c (Fvertical_motion): Revert last change. Handle the
6413 general case where we are moving forward, and PT spans multiple
6414 screen lines.
6415
6416 * eval.c (find_handler_clause): Temporarily increase
6417 max-lisp-eval-depth while printing the backtrace buffer, to
6418 guarantee that help-mode code can run.
6419
6420 2008-08-27 Eli Zaretskii <eliz@gnu.org>
6421
6422 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6423 colors under -rv.
6424 (IT_set_frame_parameters): Don't swap foreground and background
6425 colors if `(reverse . t)' is present in the frame properties.
6426 (internal_terminal_init): Call init_frame_faces only for the
6427 initial frame.
6428
6429 2008-08-27 Andreas Schwab <schwab@suse.de>
6430
6431 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6432
6433 2008-08-27 Andreas Schwab <schwab@suse.de>
6434
6435 * search.c (search_buffer): Set char_base to zero only at the end.
6436
6437 2008-08-27 Kenichi Handa <handa@m17n.org>
6438
6439 * fileio.c (report_file_error): Fix handling of multibyte error string.
6440
6441 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6442
6443 * xterm.c (x_term_init): Temporarily hide the partially
6444 initialized terminal while calling vendor-specific-keysyms.
6445
6446 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6447
6448 * msdos.c (internal_terminal_init): Most initializations done only
6449 once, especially initial_screen_colors[] and termscript open.
6450
6451 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6452
6453 * eval.c (Fcondition_case): Doc fix.
6454
6455 * widgetprv.h (EmacsFramePart): Change font member to the new font
6456 struct.
6457
6458 * widget.c: Include character.h and font.h for XSETFONT.
6459 (setup_frame_gcs): Compute X font id from font struct, just once.
6460
6461 2008-08-26 Eli Zaretskii <eliz@gnu.org>
6462
6463 * term.c (get_named_tty): Fix last change.
6464
6465 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
6466
6467 * indent.c (Fvertical_motion): If moving forward starting from a
6468 multi-line string, move the iterator to the last line of that string.
6469
6470 2008-08-25 Eli Zaretskii <eliz@gnu.org>
6471
6472 * frame.c (do_switch_frame): Mark previously displayed frame as
6473 obscured for FRAME_MSDOS_P frames as well.
6474
6475 2008-08-24 Eli Zaretskii <eliz@gnu.org>
6476
6477 * frame.c (make_terminal_frame): Initialize f->terminal,
6478 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6479 Set the top frame to newly created frame.
6480 (Fmake_terminal_frame): Reuse the_only_display_info.
6481
6482 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6483 estimating available memory.
6484
6485 2008-08-23 David Reitter <david.reitter@gmail.com>
6486
6487 * nsterm.m (ns_draw_window_cursor): Don't call
6488 NSDisableScreenUpdates and NSEnableScreenUpdates on
6489 non-NS_IMPL_COCOA systems.
6490
6491 2008-08-23 Andreas Schwab <schwab@suse.de>
6492
6493 * process.c (procfs_system_process_attributes): Fix use of
6494 uninitialized variables.
6495
6496 2008-08-23 Eli Zaretskii <eliz@gnu.org>
6497
6498 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6499
6500 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6501 calling tty-set-up-initial-frame-faces.
6502
6503 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6504 Allow MSDOS frames along with X frames.
6505
6506 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6507 addition to output_termcap.
6508
6509 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6510
6511 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6512 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6513 highlight.
6514
6515 * process.c [!subprocesses]: Define QCname.
6516 (syms_of_process): Intern and staticpro it.
6517
6518 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
6519 Adjust for changes in encoding/decoding routines.
6520 Use encode_coding_object and decode_coding_object instead of
6521 encode_coding and decode_coding.
6522
6523 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
6524
6525 * dosfns.c: Include frame.h before termhooks.h.
6526 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6527 variable termscript.
6528
6529 * s/msdos.h (USER_FULL_NAME): Define.
6530 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6531
6532 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6533 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6534 pw->pw_gecos.
6535
6536 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6537 SELECTED_FRAME as additional (1st) argument.
6538 (tty_read_avail_input): Handle output_msdos_raw in
6539 addition to output_termcap.
6540
6541 * msdos.c: Include frame.h before termhooks.h.
6542 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6543 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6544 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6545 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6546 (IT_set_terminal_modes, IT_reset_terminal_modes)
6547 (IT_set_frame_parameters): Use tty->termscript instead of a global
6548 variable termscript.
6549 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6550 global variable terminal_coding. Don't refer to
6551 Vnonascii_translation_table.
6552 (internal_terminal_init): Set Vwindow_system in current_kboard.
6553 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6554 Announce date and time of session start, if termscript is open.
6555 Don't zero out the_only_display_info (it is done in
6556 term.c:init_tty). Open termscript only of not already open.
6557 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
6558 here instead of dos_ttraw. Don't initialize display if this is an
6559 initial tty. Don't set FRAME_FONT.
6560 (Vwindow_system_version): Bump to 23.
6561 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6562 is available, set up mouse_position_hook.
6563 (dos_ttraw, IT_set_terminal_modes): If called with initial
6564 terminal, do nothing.
6565 (IT_set_frame_parameters): Handle the Qtty_type frame
6566 parameter by calling internal_terminal_init.
6567 (dos_set_window_size, show_mouse_face)
6568 (clear_mouse_face, IT_note_mode_line_highlight)
6569 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6570 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6571 (initialize_msdos_display): New function.
6572 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6573 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6574 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6575 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
6576 Accept additional argument: a pointer to a frame. Update all callers.
6577 (request_sigio, unrequest_sigio): Don't define, now defined on
6578 sysdep.c.
6579 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6580
6581 * term.c [MSDOS]: Include msdos.h.
6582 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6583 conditional to DOS_NT. Allow only one call to this function in a
6584 session. Don't allocate a new struct tty_display_info; instead,
6585 reuse the_only_display_info. Call get_tty_size to get screen
6586 dimensions. Call init_baud_rate to set bad_rate.
6587 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6588 (Fsuspend_tty) [MSDOS]: Don't close input and output.
6589 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
6590 (get_tty_terminal, get_named_tty, Ftty_type)
6591 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6592 output_termcap.
6593 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6594 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
6595 only when subprocesses are supported.
6596
6597 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6598 f->output_data.x.
6599 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6600 terminal devices.
6601
6602 * msdos.h: Remove definition of struct x_display_info and struct
6603 x_output.
6604 (FRAME_FONT): Use output_data.tty.
6605 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
6606 (struct x_display_info): Rename from display_info. Update all users in
6607 msdos.c.
6608 (struct x_output): Remove background_pixel and foreground_pixel.
6609 (the_only_display_info): Rename from the_only_x_display.
6610 (dos_ttraw): Update prototype.
6611
6612 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6613 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6614
6615 2008-08-23 Jason Rumney <jasonr@gnu.org>
6616
6617 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6618 (fn_TIFFSetDirectory): New library function used.
6619 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6620 (tiff_load): Use :index to select among multiple images. Set count
6621 property when multiple images exist.
6622 (gif_format): Use :index, not :image.
6623
6624 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
6625
6626 * xdisp.c (try_scrolling): Check INT_MAX instead of
6627 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6628 to obtain INT_MAX.
6629
6630 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6631
6632 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6633
6634 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6635
6636 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6637 GNUstep library location.
6638
6639 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
6640
6641 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6642 before using it.
6643
6644 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6645
6646 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6647
6648 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6649 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6650 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6651 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6652 (EmacsApp-cursor_blink_handler): Remove declaration.
6653 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6654 match 01 Feb 2008 changes in xterm.c.
6655 (ns_read_socket): Add cast to avoid warning.
6656 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6657 GNUstep.
6658
6659 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
6660
6661 * xselect.c (x_get_foreign_selection): Return nil if desired
6662 selection could not be obtained, instead of signalling an error.
6663
6664 2008-08-20 David Reitter <david.reitter@gmail.com>
6665
6666 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6667 * nsterm.m: Remove ns-specific code for cursor blinking.
6668 (ns_draw_window_cursor): Clear cursor properly rather than
6669 redrawing the area. Respect width of bar cursors.
6670 These changes enable the use of generic blink-cursor-mode and
6671 generic cursor types in NS and support smooth cursor movements (do
6672 not blink off after command).
6673 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6674 Nextstep, too.
6675
6676 2008-08-19 Kenichi Handa <handa@m17n.org>
6677
6678 * font.c (Vfont_log_deferred): New variable.
6679 (font_add_log): Check Vfont_log_deferred.
6680 (font_deferred_log): New function.
6681
6682 * font.h (font_deferred_log): Extern it.
6683
6684 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6685 for sorting.
6686 (face_for_char): Use deferred log.
6687
6688 2008-08-18 Kenichi Handa <handa@m17n.org>
6689
6690 * fontset.c (face_for_char): Add font log.
6691
6692 * font.c (font_add_log): Add the font properties :script, :lang,
6693 and :otf in the log.
6694
6695 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
6696
6697 * xdisp.c: Remove dead code.
6698 (handle_invisible_prop, next_overlay_string): Defer call to
6699 setup_for_ellipsis.
6700 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6701
6702 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
6703
6704 * xfaces.c (lookup_derived_face): Properly handle possible zero
6705 return value of get_lface_attributes.
6706 (merge_faces): Don't tell lookup_derived_face to signal an error
6707 if face is not found.
6708
6709 * dired.c (Fdirectory_files): Doc fix.
6710
6711 * process.c (make_process): Initialize kill_without_query struct
6712 member.
6713
6714 2008-08-15 Eli Zaretskii <eliz@gnu.org>
6715
6716 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6717 Alternative calculation of totphys for Visual Studio 6.
6718
6719 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6720
6721 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6722 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6723 All users changed.
6724 (stat): Only root directory passed to GetDriveType. Allow RAM
6725 disk as well as local fixed disk when w32-get-true-file-attributes
6726 is set to `local'.
6727 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6728 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6729 (w32_cached_id, w32_add_to_cache): New functions.
6730 (get_name_and_id): Look account names in the cache before calling
6731 lookup_account_sid.
6732 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6733 New initialization flags.
6734 (globals_of_w32): Initialize them to zero.
6735 (w32_system_process_attributes): Use w32_cached_id and
6736 w32_add_to_cache.
6737
6738 2008-08-14 Lawrence Mitchell <wence@gmx.li>
6739
6740 * lread.c (Fread_char, Fread_char_exclusive): If no character
6741 event is read before timeout is reached, return nil, rather than
6742 converting to a number.
6743
6744 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
6745
6746 * fns.c (use_dialog_box): Doc fix.
6747
6748 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6749 on OS X.
6750
6751 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
6752
6753 * frame.c (Qns_parse_geometry): New var.
6754 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6755
6756 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
6757
6758 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6759 space character in calculating tabs.
6760
6761 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6762
6763 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6764
6765 2008-08-10 Glenn Morris <rgm@gnu.org>
6766
6767 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6768 silence gcc "limited range of data type" warnings in some
6769 make_fixnum_or_float calls.
6770
6771 2008-08-09 Eli Zaretskii <eliz@gnu.org>
6772
6773 * w32.c (w32_system_process_attributes): If the process does not
6774 exist, return nil.
6775
6776 * w32.c: Include thelp32.h, psapi.h and coding.h.
6777 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6778 declarations.
6779 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6780 (Process32Next_Proc): New typedefs.
6781 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6782 (g_b_init_process32_next, g_b_init_open_thread_token)
6783 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6784 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6785 (g_b_init_get_process_working_set_size)
6786 (g_b_init_global_memory_status_ex): New static variables.
6787 (globals_of_w32): Initialize them.
6788 (create_toolhelp32_snapshot, process32_first, process32_next)
6789 (open_thread_token, impersonate_self, revert_to_self)
6790 (get_process_memory_info, get_process_working_set_size)
6791 (global_memory_status, global_memory_status_ex): New wrapper
6792 functions.
6793 (w32_list_system_processes, w32_system_process_attributes)
6794 (enable_privilege, restore_privilege, ltime, process_times):
6795 New functions.
6796 (convert_time_raw): New function.
6797 (convert_time): Remove conversion of FILETIME into time in 100
6798 nsec units, call convert_time_raw instead.
6799
6800 * process.h (w32_list_system_processes, w32_system_process_attributes):
6801 Add prototypes.
6802 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6803 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6804 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6805 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6806
6807 * process.c (Fsystem_process_attributes): Doc fix.
6808
6809 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
6810
6811 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6812 a continued multi-char glyph; if so, advance to the actual glyph.
6813
6814 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6815
6816 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6817
6818 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6819 (.m.o): Use it.
6820 * config.in: Regenerate.
6821
6822 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
6823
6824 * xdisp.c (redisplay_window): Revert last change.
6825 (try_window): Check bottom scroll margin too.
6826
6827 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6828
6829 * config.in: Regenerate.
6830
6831 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6832 -list-load-path-shadows'.
6833 (nsgui.h): Reduce number of things depending on it.
6834
6835 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
6836
6837 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6838 instead of window-end which does the wrong thing at eob.
6839 (try_cursor_movement): Minor optimization.
6840 (redisplay_window): If scroll margin is defined, don't assume
6841 window doesn't need scrolling.
6842
6843 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6844
6845 * config.in: Regenerate.
6846
6847 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6848 (mostlyclean): Don't delete *.d under NS.
6849
6850 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6851
6852 2008-08-06 Kenichi Handa <handa@m17n.org>
6853
6854 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6855
6856 2008-08-06 Andreas Schwab <schwab@suse.de>
6857
6858 * config.in: Regenerate.
6859
6860 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
6861
6862 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6863 forcing a window start.
6864
6865 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6866 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6867
6868 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6869
6870 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6871 argument.
6872
6873 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
6874
6875 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6876 <scroll-down-aggressively, before-change-functions>:
6877 <after-change-functions>: Reflow docstrings.
6878
6879 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6880 Ken Raeburn <raeburn@gnu.org>
6881
6882 Dock menu customization, based on a patch by Ken Raeburn, plus some
6883 other fixes.
6884 * nsmenu.m (dockMenu): New variable.
6885 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6886
6887 * nsterm.h (dockMenu): Declare.
6888
6889 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6890 (ns_term_init): Initialize dockMenu.
6891 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6892 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6893 left.
6894
6895 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6896
6897 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6898
6899 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6900
6901 * config.in: Regenerate.
6902
6903 2008-08-04 Seiji Zenitani <zenitani@mac.com>
6904
6905 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6906
6907 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
6908
6909 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6910
6911 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6912
6913 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6914
6915 * keyboard.h: Comment an #endif.
6916
6917 * lisp.h (have_menus_p): Adjust comment.
6918
6919 * menu.c (find_and_return_menu_selection): Fix comparison with
6920 client_data.
6921
6922 * nsmenu.m (popup_activated_flag): New variable.
6923 (popup_activated): New function.
6924 (menu-or-popup-active-p): New exported lisp definition.
6925 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6926 when popup done.
6927 (ns_popup_dialog): Set popup_activated_flag.
6928
6929 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6930 version for GNUstep (handled by conditional typedef in nsterm.m).
6931 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6932 in rgb.txt).
6933
6934 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6935
6936 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6937
6938 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6939
6940 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6941 shortcircuit if popup_activated like GTK and X toolkit.
6942
6943 * m/inter386.h: Change DARWIN to DARWIN_OS.
6944
6945 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6946 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6947 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6948 comment on NO_SOCK_SIGIO.
6949
6950 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
6951
6952 * nsterm.m (windowDidResize): Remove stopModal call.
6953
6954 2008-08-03 Andreas Schwab <schwab@suse.de>
6955
6956 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6957 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6958
6959 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
6960
6961 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6962 Don't use uninitialized pointer variable when using getrlimit.
6963
6964 2008-08-02 Jason Rumney <jasonr@gnu.org>
6965
6966 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6967
6968 2008-08-02 Eli Zaretskii <eliz@gnu.org>
6969
6970 * alloc.c (NSTATICS): Bump to 0x640.
6971
6972 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6973
6974 * lisp.h: Add prototype for directory_files_internal.
6975
6976 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6977 New functions.
6978 (syms_of_process): Defsubr them. Add initializations for various
6979 Q* symbols used in procfs_system_process_attributes.
6980 (procfs_list_system_processes, procfs_system_process_attributes)
6981 [HAVE_PROCFS]: New functions.
6982 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6983 (procfs_get_total_memory): New functions.
6984
6985 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
6986
6987 * xfaces.c (Fx_load_color_file): Fix previous change;
6988 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6989
6990 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
6991
6992 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6993
6994 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6995
6996 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6997
6998 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
6999
7000 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7001
7002 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7003 define NSApplicationDelegateReplySuccess.
7004 (EmacsView -converstationIdentifier): Use long instead of
7005 NSInteger for GNUstep, since it doesn't have NSInteger.
7006
7007 * xmenu.c: Revert last change.
7008
7009 * keyboard.h: Fix last change.
7010
7011 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7012
7013 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7014 on Windows.
7015
7016 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7017
7018 Warning clearing and clean-up in NS port.
7019 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7020 Add prototypes.
7021 * nsgui.h (FACE_DEFAULT): Remove, unused.
7022 (XGCValues): Change colors to unsigned long.
7023 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7024 nsterm.m.
7025 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7026 (ns_list_fonts): Remove, unused.
7027 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7028 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7029 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7030 (nsfont_draw): Compare face colors to 0, not nil.
7031 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7032 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7033 (-addSubmenuWithTitle:): Use NSMenuItem class.
7034 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7035 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7036 (ns_clip_to_row): Make gc arg a BOOL.
7037 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7038 ns_clip_to_row() call.
7039 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7040 used). Cast FRAME_FONT assignments.
7041 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7042 (ns_string_to_lispmod): Change arg to const char.
7043 (ns_term_init): Use NSMenuItem class.
7044 (EmacsApp -openFile:): Move to different section of file.
7045 (EmacsApp -application:openFiles:): Don't return a value, call
7046 -replyToOpenOrPrint:.
7047 (EmacsView -keyDown:): Fix up cast.
7048 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7049 (EmacsView -menuDown:): Cast tag in call to
7050 find_and_call_menu_selection().
7051 (ns_list_fonts): Remove, unused.
7052 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7053 (ns_fontname_to_xlfd): Make static.
7054 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7055 Remove prototypes (now in keyboard.h).
7056 (next_menubar_widget_id): Remove, unused.
7057 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7058 Remove prototypes (now in keyboard.h).
7059 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7060
7061 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7062
7063 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7064 (floatfns.o): Depend on syssignal.h.
7065 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7066
7067 * systty.h: Fix previous change that removed BSD_TERMIOS.
7068 Add comments to #ifdefs.
7069
7070 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7071
7072 * w32fns.c (w32-load-color-file): Remove.
7073 (x-open-connection): Use renamed Fx_load_color_file.
7074 * xfaces.c (x-load-color-file): Add.
7075 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7076 Emacs.clr.
7077 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7078
7079 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7080
7081 * dbusbind.c (Fdbus_call_method_asynchronously)
7082 (Fdbus_method_error_internal): New defuns.
7083 (xd_read_message): Handle also reply messages.
7084 (Vdbus_registered_functions_table): Extend docstring.
7085
7086 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7087
7088 * keyboard.c (gobble_input): Fix previous change.
7089
7090 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7091
7092 * bitmaps/README:
7093 * xfns.c:
7094 * termcap.c:
7095 * term.c:
7096 * syswait.h:
7097 * systty.h:
7098 * systime.h:
7099 * syssignal.h:
7100 * sysdep.c:
7101 * process.h:
7102 * process.c:
7103 * print.c:
7104 * ndir.h:
7105 * lread.c:
7106 * keyboard.c:
7107 * getpagesize.h:
7108 * floatfns.c:
7109 * fileio.c:
7110 * emacs.c:
7111 * doc.c:
7112 * dispnew.c:
7113 * dired.c:
7114 * data.c:
7115 * callproc.c:
7116 * buffer.c:
7117 * README:
7118 * Makefile.in:
7119 * s/template.h:
7120 * s/msdos.h:
7121 * m/vax.h: Remove VMS support.
7122 * s/vms.h:
7123 * vlimit.h:
7124 * uaf.h:
7125 * temacs.opt:
7126 * param.h:
7127 * ioctl.h: Remove file.
7128
7129 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7130
7131 * s/ms-w32.h (MULTI_KBOARD): Remove.
7132 * xterm.c:
7133 * xselect.c:
7134 * xfns.c:
7135 * window.c:
7136 * w32term.c:
7137 * w32fns.c:
7138 * terminal.c:
7139 * termhooks.h:
7140 * term.c:
7141 * sysdep.c:
7142 * keyboard.h:
7143 * keyboard.c:
7144 * frame.h:
7145 * frame.c:
7146 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7147 * config.in: Regenerate.
7148
7149 2008-07-30 Jason Rumney <jasonr@gnu.org>
7150
7151 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7152
7153 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7154 (w32font_open_internal): Get unicode version of textmetrics.
7155 Don't enable or disable glyph indices here.
7156 (w32font_open): Disable use of glyph indices.
7157
7158 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7159
7160 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7161
7162 * minibuf.c (Vread_buffer_function): Doc fix.
7163
7164 2008-07-30 John Paul Wallington <jpw@pobox.com>
7165
7166 * minibuf.c (read_buffer_completion_ignore_case): New var.
7167 (Fread_buffer): Use it.
7168
7169 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7170
7171 * systty.h (sensemode): Remove empty #if. Remove reference to
7172 BSD_TERMIOS, unused.
7173
7174 * sysdep.c: Remove reference to DGUX.
7175 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7176
7177 * config.in: Regenerate.
7178
7179 2008-07-30 Jason Rumney <jasonr@gnu.org>
7180
7181 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7182
7183 2008-07-29 Jason Rumney <jasonr@gnu.org>
7184
7185 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7186 is populated.
7187 (uniscribe_encode_char): Always use uniscribe.
7188 Avoid using context if cache is populated.
7189
7190 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7191
7192 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7193 open menu.
7194
7195 * gtkutil.c (menu_nav_ended): Remove.
7196 (create_menus): Remove signal connect for menu_nav_ended.
7197
7198 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7199
7200 * xdisp.c (redisplay_window): Check return value of
7201 compute_window_start_on_continuation_line before forcing a window
7202 start.
7203
7204 2008-07-28 Jason Rumney <jasonr@gnu.org>
7205
7206 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7207
7208 * w32term.c (w32_enable_unicode_output, cleartype_active):
7209 Remove obsolete display options.
7210 (x_draw_glyph_string_background): Don't use old cleartype_active
7211 workaround.
7212 (w32_initialize): Remove cleartype_active initialization.
7213 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7214
7215 2008-07-28 Andreas Schwab <schwab@suse.de>
7216
7217 * lisp.h (init_weak_hash_tables, syms_of_font)
7218 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7219 (remove_hash_entry): Don't declare.
7220 * eval.c (maybe_call_debugger): Make static and move before use.
7221 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7222 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7223 * xterm.h (x_set_frame_alpha): Declare.
7224
7225 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7226
7227 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7228 (create_menus): Connect selection-done to menu_nav_ended.
7229
7230 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7231
7232 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7233 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7234 parameter with read of 'alpha' one.
7235 (Qns_frame_parameter): Remove.
7236 * nsselect.m (selection-coding-system)
7237 (next-selection-coding-system, Vselection_coding_system)
7238 (Vnext_selection_coding_system): Drop.
7239
7240 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7241
7242 * nsfns.m (do-applescript, do_applescript): Rename to
7243 ns-do-applescript, ns_do_applescript, and move within file.
7244
7245 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7246
7247 Remove support for Mac Carbon.
7248 * mactoolbox.c:
7249 * macterm.h:
7250 * macterm.c:
7251 * macselect.c:
7252 * macmenu.c:
7253 * macgui.h:
7254 * macfns.c:
7255 * mac.c: Remove file.
7256 * s/darwin.h:
7257 * m/intel386.h:
7258 * xfaces.c:
7259 * xdisp.c:
7260 * window.c:
7261 * tparam.c:
7262 * termhooks.h:
7263 * termcap.c:
7264 * term.c:
7265 * syssignal.h:
7266 * sysselect.h:
7267 * sysdep.c:
7268 * process.c:
7269 * lread.c:
7270 * lisp.h:
7271 * keyboard.c:
7272 * image.c:
7273 * fringe.c:
7274 * frame.h:
7275 * frame.c:
7276 * fontset.c:
7277 * font.h:
7278 * font.c:
7279 * fns.c:
7280 * fileio.c:
7281 * emacs.c:
7282 * dispnew.c:
7283 * dispextern.h:
7284 * config.in:
7285 * atimer.c:
7286 * Makefile.in: Remove code for Carbon.
7287
7288 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7289
7290 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7291
7292 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7293
7294 * macterm.h (kCGBitmapByteOrder32Host): New define for
7295 non-universal SDKs.
7296
7297 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7298 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7299
7300 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7301 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7302
7303 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7304
7305 * w32inevt.c: Include dispextern.h.
7306
7307 2008-07-26 Andreas Schwab <schwab@suse.de>
7308
7309 * print.c (print_object): Fix off-by-one in last change.
7310
7311 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
7312
7313 * term.c (syms_of_term): Don't initialize default_orig_pair,
7314 default_set_foreground and default_set_background on Windows.
7315
7316 2008-07-25 Jason Rumney <jasonr@gnu.org>
7317
7318 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7319 ScriptItemize. Clean up return value checking. Remove unused
7320 variables.
7321 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7322 shaping engine.
7323
7324 * w32font.c (w32font_has_char): Handle the case where we can't
7325 determine the script for a character.
7326
7327 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * term.c (syms_of_term): Initialize default_orig_pair,
7330 default_set_foreground, and default_set_background.
7331
7332 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7333 clash (bug#86).
7334 (getloadavg): Callers changed.
7335
7336 * image.c (svg_load_image): Fix last change.
7337 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7338 image size is valid. Use g_object_unref instead of deprecated
7339 rsvg_handle_free to free rsvg handle.
7340 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7341
7342 2008-07-25 Jason Rumney <jasonr@gnu.org>
7343
7344 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7345 surrogates before looking up glyph index.
7346 (w32font_text_extents): Encode as surrogates if falling back to
7347 functions that need UTF-16 wide chars.
7348
7349 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7350 BMP as surrogates before looking up glyph index.
7351
7352 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
7353
7354 * image.c (svg_load_image): Check for failure in return value of
7355 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7356
7357 2008-07-25 Jason Rumney <jasonr@gnu.org>
7358
7359 * w32font.c (Fx_select_font): Reverse sense of second arg.
7360
7361 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7362
7363 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7364 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7365
7366 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7367 (PURESIZE): Use it.
7368
7369 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7370
7371 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7372 * m/alpha.h (TEXT_END):
7373 * m/ibmrs6000.h (TEXT_END):
7374 * m/macppc.h (TEXT_END):
7375 * s/darwin.h (TEXT_END):
7376 * s/msdos.h (TEXT_END): Remove, unused.
7377 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7378 * s/cygwin.h: Remove comment.
7379
7380 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7381 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7382 * m/intel386.h (DOT_GLOBAL_START):
7383 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7384 (USG): Remove, file not used on USG platforms.
7385
7386 * Makefile.in (HAVE_X11): Remove empty #else.
7387
7388 2008-07-24 Andreas Schwab <schwab@suse.de>
7389
7390 * fileio.c (Finsert_file_contents): Properly adjust undo list
7391 after format conversion.
7392
7393 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7394
7395 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7396 (menu_nav_ended): Remove.
7397 (create_menus): Remove signal connect for menu_nav_ended.
7398 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7399 create_menus.
7400 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7401
7402 2008-07-23 Jason Rumney <jasonr@gnu.org>
7403
7404 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7405 with opened font.
7406 (w32font_open): Set font type to gdi.
7407
7408 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7409
7410 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7411
7412 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7413 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7414 defines it.
7415 * unexec.c (ADDR_CORRECT): Define unconditionally.
7416
7417 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7418
7419 * unexec.c: Remove code depending on !COFF and USG, the file is
7420 not used for such systems.
7421
7422 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7423 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7424 (LD_SWITCH_SYSTEM_1): Remove, update users.
7425
7426 * s/darwin.h (DATA_END):
7427 * m/intel386.h (DATA_END):
7428 * m/ibmrs6000.h (DATA_END):
7429 * m/alpha.h (DATA_END): Remove, unused.
7430
7431 * config.in: Regenerate.
7432 * s/ms-w32.h (subprocesses): Define unconditionally.
7433 * s/template.h (subprocesses): Update comment.
7434 * s/vms.h (subprocesses):
7435 * s/usg5-4.h (subprocesses):
7436 * s/hpux10-20.h (subprocesses):
7437 * s/gnu-linux.h (subprocesses):
7438 * s/cygwin.h (subprocesses):
7439 * s/bsd-common.h (subprocesses):
7440 * s/aix4-2.h (subprocesses):
7441 * s/darwin.h (subprocesses): Do not define, defined by default now.
7442
7443 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7444 Remove all references.
7445 (temacs): Add GNUstep specific ld flags.
7446
7447 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7448 similarly to what X does.
7449
7450 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7451
7452 * nsfns.m (x-list-fonts): Remove.
7453 (syms_of_nsfns): Drop the x-list-fonts declaration.
7454 * nsterm.m: Get rid of remaining "//" comments.
7455
7456 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
7457
7458 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7459
7460 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7461 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7462 (Fns_own_selection_internal, Fx_disown_selection_internal)
7463 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7464
7465 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7466 ... */' style of docstrings. Doc fixes.
7467
7468 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7469
7470 * terminfo.c (UP, BC, PC): Undo previous change.
7471
7472 * nsfns.m: Rename ns prefixed functions/variables to the
7473 corresponding x versions. Update references.
7474
7475 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7476
7477 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7478
7479 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7480
7481 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7482 Remove forwarding functions.
7483 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7484 non-static.
7485 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7486 non-static.
7487 (ns_frame_parm_handlers): Use the new names.
7488 (syms_of_nsfns): Move to the end of file.
7489
7490 * nsterm.m (syms_of_nsterm): Move to the end of file.
7491
7492 * dispnew.c (init_display): Remove code for X10.
7493
7494 2008-07-22 Jason Rumney <jasonr@gnu.org>
7495
7496 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7497 bare drive.
7498
7499 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7500
7501 * nsterm.m (syms_of_nsterm): Remove debugging println.
7502
7503 2008-07-22 David Reitter <david.reitter@gmail.com>
7504
7505 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7506 Carbon implementation of the same functionality: execute arbitrary
7507 AppleScript code.
7508
7509 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7510
7511 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7512 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7513 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7514 (Fx_display_mm_height, Fx_display_mm_width)
7515 (Fx_display_backing_store, Fx_display_visual_class)
7516 (Fx_display_save_under, Fx_open_connection)
7517 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7518 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7519 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7520 (Fx_display_pixel_width, Fx_display_pixel_height)
7521 (Fx_display_usable_bounds, Fx_display_planes)
7522 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7523 ... */' style of docstrings.
7524
7525 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7526
7527 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7528 on this platform.
7529 (mips):
7530 * m/iris4d.h (mips): Do not define.
7531 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7532
7533 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7534
7535 * image.c:
7536 * nsfns.m:
7537 * nsselect.m:
7538 * nsterm.h:
7539 * nsterm.m: Rename ns prefixed functions/variables to the
7540 corresponding x versions. Update references.
7541
7542 * m/ibms390x.h (NO_REMAP): Do not undefine.
7543
7544 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7545
7546 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
7547
7548 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7549 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7550 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7551 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7552 (Fns_display_mm_height, Fns_display_mm_width)
7553 (Fns_display_backing_store, Fns_display_visual_class)
7554 (Fns_display_save_under, Fns_open_connection)
7555 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7556 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7557 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7558 (Fns_display_pixel_width, Fns_display_pixel_height)
7559 (Fns_display_usable_bounds, Fx_display_planes)
7560 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7561
7562 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7563
7564 * print.c (print_object): Check print_depth before searching for
7565 circularities.
7566
7567 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
7568
7569 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7570 only sprintf.
7571
7572 2008-07-21 Kenichi Handa <handa@m17n.org>
7573
7574 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7575
7576 2008-07-20 Andreas Schwab <schwab@suse.de>
7577
7578 * syntax.c (find_start_pos, find_start_value)
7579 (find_start_value_byte, find_start_begv, find_defun_start)
7580 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7581
7582 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7583
7584 * s/sol2-3.h: Insert contents of s/sol2.h.
7585 (LD_SWITCH_SYSTEM): Remove redundant definition.
7586 * s/sol2.h: Remove, unused.
7587
7588 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7589
7590 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7591
7592 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7593
7594 * Makefile.in (ns_appdir): Fix typo in find command.
7595
7596 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7597
7598 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7599
7600 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7601 added not supported anymore.
7602
7603 * s/usg5-4-2.h (LIBS_SYSTEM):
7604 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7605
7606 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7607 * s/lynxos.h (GETPGRP_NO_ARG):
7608 * s/hpux10-20.h (NO_SIOCTL_H):
7609 * s/gnu.h (GETPGRP_NO_ARG):
7610 * s/gnu-linux.h (NO_SIOCTL_H):
7611 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7612 * s/cygwin.h (GETPGRP_NO_ARG):
7613 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7614 (C_DEBUG_SWITCH): Remove duplicate definition.
7615
7616 * m/ibms390.h: Remove boilerplate comments.
7617
7618 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7619
7620 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7621 (wait_reading_process_output): Remove code for SunOS, platform not
7622 supported anymore. Use SOLARIS2 instead of sun.
7623
7624 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7625
7626 * font.c (font_open_by_name): Under NS, default lface height to zero.
7627 (font_open_for_lface): Under NS, set size based on frame fontsize.
7628 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7629 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7630
7631 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7632
7633 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7634 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7635 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7636 YES/NO.
7637 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7638 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7639 * Makefile.in (clean): Clear out build destination dir.
7640
7641 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7642
7643 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7644 xterm, xselect.
7645 * lisp.h: Remove declaration of hash_remove.
7646 * nsgui.h: Remove redefinitions of hash_remove.
7647 * fns.c (hash_remove): Rename to hash_remove_from_table.
7648
7649 2008-07-19 Seiji Zenitani <zenitani@mac.com>
7650
7651 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7652 strdup() the family UTF8String before modifying it.
7653
7654 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7655
7656 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7657 NS_FACE_BACKGROUND with 0 instead of nil.
7658 * nsfont.m (nsfont_draw): Same.
7659
7660 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
7661
7662 * nsfns.m (ns_set_background_color): Fix crash.
7663
7664 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
7665
7666 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7667
7668 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7669
7670 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7671
7672 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7673
7674 * gtkutil.c: Include <config.h> instead of "config.h".
7675
7676 * lisp.h (Foverlay_buffer): Add EXFUN.
7677
7678 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7679 child process to complete child_setup. Undo 2005-09-21 change.
7680
7681 * s/darwin.h: Mention setsid after vfork.
7682
7683 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7684
7685 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7686 Depend on macgui.h.
7687
7688 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7689 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7690
7691 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7692 and f19.
7693 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7694
7695 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7696 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7697 Remove enumerators.
7698
7699 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7700 Check if FACE_FROM_ID returns NULL.
7701
7702 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7703
7704 * w32inevt.c (change_frame_size): Remove extern declaration.
7705 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7706 change_frame_size.
7707
7708 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7709
7710 * getloadavg.c: Revert last change (2008-07-15).
7711
7712 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7713
7714 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
7715 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
7716 from configure.
7717
7718 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7719
7720 * s/sol2.h:
7721 * s/sol2-4.h: Reorganize conditionals.
7722
7723 * ecrt0.c: Remove code depending on m68000, not used anymore.
7724
7725 * fns.c (hash_remove): Make static.
7726 * lisp.h (hash_remove): Don't prototype.
7727
7728 * m/ibmrs6000.h:
7729 * m/ibms390x.h:
7730 * m/macppc.h: Remove boilerplate comments.
7731
7732 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7733 Solaris, which does not need them.
7734
7735 * m/vax.h: Remove comments about unsupported systems.
7736
7737 * s/darwin.h: Reorganize ifdefs.
7738
7739 2008-07-17 Andreas Schwab <schwab@suse.de>
7740
7741 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7742
7743 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7744
7745 Use SDATA. Follow coding convention of placing operators at
7746 beginning of next line rather than end of previous line, and placing
7747 spaces around infix operators.
7748
7749 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7750 in case it was defined already.
7751 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7752 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7753 ns_default.
7754 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7755 Lisp_Objects.
7756 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7757 (ns_defined_color, ns_color_to_lisp): Declare.
7758 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7759 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7760 it's accepted even with USE_LISP_UNION_TYPE.
7761 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7762 (update_frame_tool_bar): Remove apparently obsolete tests for
7763 non-integerness of f->tool_bar_lines.
7764 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7765 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7766 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7767 (nsfont_open): Don't confuse NULL for Qnil.
7768 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7769 * menu.h (find_and_call_menu_selection):
7770 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7771 (find_and_return_menu_selection): Always return something.
7772 * frame.h: Include dispextern.h for Display_Info.
7773 (display_x_get_resource): Declare.
7774
7775 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7776
7777 * syntax.c: Remove stdio.h include accidentally introduced in
7778 Emacs.app commit.
7779 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7780 NS_IMPL_COCOA.
7781 * keyboard.c (handle_async_input, input_available_signal): Remove
7782 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7783
7784 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7785
7786 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7787 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7788 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7789 Use SDATA.
7790
7791 * keymap.c: Remove all NS-specific code.
7792 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7793 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7794 where_is_preferred_modifier, return a different value depending on how
7795 preferred is the binding.
7796 (where_is_internal): Adjust accordingly.
7797 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7798 Adjust to new preferred_sequence_p.
7799 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7800 * keyboard.c (parse_solitary_modifier): Not static any more.
7801 * keyboard.h (parse_solitary_modifier): Declare.
7802
7803 2008-07-16 Andreas Schwab <schwab@suse.de>
7804
7805 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7806 of easymenu.
7807
7808 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
7809
7810 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7811 that we don't move off the line.
7812
7813 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7814
7815 * keyboard.c (Qsuper): Remove.
7816 (parse_menu_item): Don't call where_is_internal specially for NS.
7817
7818 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7819
7820 * s/gnu-linux.h: Remove boilerplate comments.
7821
7822 * m/alpha.h (__ELF__): Consolidate conditions.
7823
7824 * m/m68k.h (linux): Use GNU_LINUX instead.
7825 Remove boilerplate comments.
7826
7827 * m/intel386.h: Undo refactoring from previous change.
7828 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7829 too, remove dead code.
7830 (linux): Use GNU_LINUX instead.
7831
7832 2008-07-16 Jason Rumney <jasonr@gnu.org>
7833
7834 * w32gui.h: Repeat 26 June changes lost by last change.
7835
7836 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7837
7838 * systty.h: Remove code for Aix on 386, unsupported platform.
7839
7840 * s/ms-w32.h: Remove boilerplate comments.
7841 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7842
7843 * s/gnu-linux.h (TERM): Remove support.
7844 (HAVE_SYSVIPC): Remove, unused.
7845 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7846 for this system.
7847
7848 * process.c: Remove support for IRIS, unused.
7849 Remove support for TERM, not relevant anymore.
7850
7851 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7852 used with the definition.
7853
7854 * s/aix4-2.h (static): Do not undef.
7855
7856 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7857 only used on Aix.
7858 (HAVE_SYSVIPC): Remove, unused.
7859
7860 * m/hp800.h (CANNOT_DUMP): Do not undef.
7861
7862 * m/alpha.h: Fix comment.
7863
7864 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7865 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7866 used by this configuration.
7867 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7868 * unexec.c: Remove code depending on HPUX and
7869 USG_SHARED_LIBRARIES, not used with this file. Remove code
7870 depending on IRIS, unused. Remove if 0-ed code.
7871
7872 * s/template.h: Remove comments about static.
7873
7874 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7875 Remove if 0-ed code.
7876 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7877 were the same as the default.
7878 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7879 Remove boilerplate comments.
7880 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7881 (HAVE_SYSVIPC): Remove, unused.
7882 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7883
7884 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7885 Remove boilerplate comments.
7886 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7887 Remove boilerplate comments.
7888 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7889 Remove boilerplate comments.
7890 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7891
7892 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7893 USG systems which do not use DATA_SEG_BITS.
7894 Refactor code. Remove boilerplate comments.
7895
7896 * m/ibms390.h:
7897 * m/m68k.h:
7898 * s/bsd-common.h:
7899 * s/cygwin.h:
7900 * s/darwin.h:
7901 * s/freebsd.h:
7902 * s/gnu.h:
7903 * s/msdos.h: Remove boilerplate comments.
7904
7905 * m/iris4d.h: Remove boilerplate comments and code for systems that
7906 do not use this file.
7907 (IRIS_4D): Remove, unused.
7908
7909 * m/mips.h: Remove boilerplate comments and code for systems that
7910 do not use this file.
7911 (SIGN_EXTEND_CHAR):
7912 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7913 * unexmips.c: Remove file, unused.
7914
7915 * editfns.c (Fuser_full_name): Replace the only use of
7916 USER_FULL_NAME with its value.
7917 * config.in: Regenerate.
7918
7919 2008-07-16 David Reitter <david.reitter@gmail.com>
7920
7921 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7922 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7923
7924 2008-07-16 Glenn Morris <rgm@gnu.org>
7925
7926 * emacs.c (system-type): Doc fix.
7927
7928 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7929
7930 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7931 If the cache doesn't work, let's fix it, rather than work around it.
7932
7933 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7934
7935 * Makefile.in: Correct additions for nsfont.o in last commit.
7936 * nsfont.m: New file (forgot last commit).
7937
7938 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7939
7940 * callproc.c (set_initial_environment): Initialize
7941 Vprocess_environment under CANNOT_DUMP (fixes crash when
7942 batch-compiling for bootstrap).
7943
7944 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7945 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7946
7947 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7948 fix crash due to different init order.
7949
7950 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7951
7952 Changes and additions for NeXTstep windowing system (Cocoa and
7953 GNUstep) support.
7954
7955 * Makefile.in:
7956 * config.in: Support defines and build commands for NS port.
7957 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7958 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7959 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7960 windowing.
7961 (struct face): Add synth_ital field.
7962 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7963 (init_display): Initialize Vinitial_window_system to "ns" when so
7964 compiled.
7965 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7966 (display_arg): Use under NS.
7967 (main): Under NS, allocate autorelease pool and handle command line
7968 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7969 (standard_args): Add NS-specific args.
7970 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7971 * font.c (DEFAULT_ENCODING): New variable.
7972 (font_find_for_lface): Use it.
7973 (syms_of_font): Load syms_of_nsfont under NS.
7974 * font.h: Declare nsfont_driver when compiled under NS.
7975 * fontset.c: When compiling under NS, include nsterm.h.
7976 (fontset_from_font): Autoconstruct fontset under NS.
7977 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7978 symbol, document and use it.
7979 (do_switch_frame): When for_deletion under Cocoa, add
7980 Fraise_frame(Qnil).
7981 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7982 (x_get_arg): Allow "yes" and "no" as boolean values.
7983 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7984 Qright under Cocoa.
7985 (focus-follows-mouse): Default to 0 under NS.
7986 * frame.h (enum output_method): Add output_ns.
7987 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7988 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7989 (FRAME_WINDOW_P): NS-specific definition.
7990 * fringe.c (max_used_fringe_bitmap): Make public.
7991 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7992 (getloadavg): Use NeXT code under descendant OS's.
7993 * image.c (includes and header section, x_create_bitmap_from_data)
7994 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7995 (image_background_transparent, x_clear_image_1)
7996 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7997 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7998 (x_to_xcolors, x_from_xcolors, x_disable_image)
7999 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8000 other GUIs, including XPM support using code originally written for
8001 Carbon GUI.
8002 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8003 using NS API.
8004 (image_ascent): Use font metrics macros instead of direct struct field
8005 access.
8006 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8007 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8008 Also, handle NS as GTK for menu bar purposes.
8009 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8010 toolkit where they differ.
8011 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8012 use cachelist, still needed under NS.
8013 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8014 (struct widget_value): Define it here for menu.c.
8015 * keymap.c (includes): Include modifier internals.
8016 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8017 NS.
8018 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8019 support for preferring sequences using certain modifiers, specified by
8020 the FIRSTONLY argument.
8021 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8022 under NS GNUstep implementation.
8023 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8024 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8025 * menu.c: Include nsterm.h under NS.
8026 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8027 (free_menubar_widget_tree_value, update_submenu_strings)
8028 (find_and_call_menu_selection): Treat NS as X and NT.
8029 (find_and_return_menu_selection): New function, used for popup menus.
8030 * nsgui.h:
8031 * nsterm.h:
8032 * nsfns.m:
8033 * nsimage.m:
8034 * nsmenu.m:
8035 * nsselect.m:
8036 * nsterm.m: New files.
8037 * process.c (wait_reading_process_output): Under NS, call ns_select()
8038 instead of plain select().
8039 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8040 beginning of buffer.
8041 * sysselect.h (init_process): Rename when compiling under Cocoa to
8042 avoid name conflict.
8043 * termhooks.h (display_info): Add ns_display_info to union.
8044 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8045 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8046 COCOA environment.
8047 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8048 unexec() signature. (Note, this will dump, but the resulting file
8049 crashes; unexosx is used instead; keeping around for reference and
8050 possible aid in getting dump working under GNUstep.)
8051 * w32gui.h (button_type, widget_value): Remove definitions (now in
8052 keyboard.h).
8053 * window.c: Include nsterm.h when compiling under NS.
8054 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8055 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8056 other GUI windowing systems.
8057 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8058 GTK.
8059 (x_consider_frame_title): Under NS, set icon type and frame
8060 modified-state indicator; use ns_set_name_as_filename() when using
8061 formatted title.
8062 (update_window_cursor): Make public when compiling under NS.
8063 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8064 (hourglass_atimer, Vhourglass_delay
8065 * xfaces.c (header section, init_frame_faces, clear_font_table)
8066 (defined_color, unload_color, x_face_list_fonts)
8067 (prepare_face_for_display): Add NS support parallel to other GUIs.
8068 Emulate GCs like other non-X GUIs.
8069 (split_font_name): Don't lowercase font name under NS.
8070 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8071 under NS.
8072 * s/darwin.h: Add support for compilation under NS.
8073
8074 2008-07-15 Jason Rumney <jasonr@gnu.org>
8075
8076 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8077 (w32_show_hourglass): Rename from show_hourglass.
8078 (w32_hide_hourglass): Rename from hide_hourglass.
8079 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8080 (Vhourglass_delay): Declare extern.
8081 (hourglass_started): Remove.
8082
8083 * xdisp.c (Vhourglass_delay): Remove static.
8084 (hourglass_started, start_hourglass, cancel_hourglass):
8085 Don't include these versions on WINDOWSNT.
8086
8087 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8088
8089 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8090 variables (formerly in xfns.c).
8091 (show_hourglass, hide_hourglass): New prototypes (same).
8092 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8093 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8094 in xfns.c).
8095 (syms_of_xdisp): Declare/initialize display-hourglass,
8096 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8097 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8098 formerly in xfns.c.
8099 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8100 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8101 (start_hourglass, cancel_hourglass): Remove.
8102 (show_hourglass, hide_hourglass): Remove prototypes and static
8103 modifiers.
8104 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8105 hourglass_atimer, hourglass_shown_p declaration/initialization.
8106 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8107 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8108 (start_hourglass, cancel_hourglass): Remove.
8109 (show_hourglass, hide_hourglass): Remove prototypes and static
8110 modifiers.
8111 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8112 hourglass_atimer, hourglass_shown_p declaration/initialization.
8113 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8114 (DEFAULT_HOURGLASS_DELAY): Remove.
8115 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8116 hourglass_shown_p declaration/initialization.
8117
8118 2008-07-14 Jason Rumney <jasonr@gnu.org>
8119
8120 * w32fns.c (w32_get_arg): Remove wrapper function.
8121 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8122 directly.
8123 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8124
8125 2008-07-14 Kenichi Handa <handa@m17n.org>
8126
8127 * xfont.c (xfont_open): Add workaround for X's bug.
8128
8129 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8130
8131 * fontset.c: Include <stdio.h> unconditionally.
8132
8133 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8134
8135 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8136 for filtering.
8137
8138 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8139
8140 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8141
8142 * m/macppc.h:
8143 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8144
8145 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8146 (SPECIAL_EMACS_INT):
8147 * m/ia64.h (SPECIAL_EMACS_INT):
8148 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8149 * s/gnu.h (NLIST_STRUCT):
8150 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8151 * s/gnu-linux.h (LINUX):
8152 * s/msdos.h (HAVE_FACES):
8153 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8154
8155 * systty.h:
8156 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8157 anymore.
8158
8159 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8160
8161 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8162 always defined as int.
8163
8164 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8165 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8166 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8167 * s/freebsd.h (HAVE_WAIT_HEADER):
8168 * s/bsd-common.h (HAVE_UNION_WAIT):
8169 * s/aix4-2.h (HAVE_WAIT_HEADER):
8170 * m/mips.h (HAVE_UNION_WAIT):
8171 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8172 (COFF, static): Do not define, they are undefined later in the file.
8173
8174 * process.c (update_status): Don't use a union.
8175 (status_convert):
8176 (sigchld_handler): Use int instead of WAITTYPE.
8177
8178 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8179
8180 * indent.c (Fvertical_motion): Restore hscroll before moving to
8181 goal column.
8182
8183 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8184
8185 * lisp.h: Remove left over code.
8186
8187 2008-07-11 Andreas Schwab <schwab@suse.de>
8188
8189 * lisp.h: Fix logic in last change.
8190
8191 * menu.h: New file.
8192 * menu.c: Include it.
8193 * xmenu.c: Likewise.
8194 * Makefile.in: Update dependencies.
8195
8196 2008-07-11 Kenichi Handa <handa@m17n.org>
8197
8198 * fontset.c (fontset_from_font): Cancel the previous change.
8199
8200 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8201
8202 * lisp.h:
8203 * w32heap.c:
8204 * emacs.c:
8205 * alloc.c: Replace all references of NO_UNION_TYPE with
8206 USE_LISP_UNION_TYPE.
8207
8208 * m/xtensa.h (NO_UNION_TYPE):
8209 * m/vax.h (NO_UNION_TYPE):
8210 * m/template.h (NO_UNION_TYPE):
8211 * m/sparc.h (NO_UNION_TYPE):
8212 * m/mips.h (NO_UNION_TYPE):
8213 * m/macppc.h (NO_UNION_TYPE):
8214 * m/m68k.h (NO_UNION_TYPE):
8215 * m/iris4d.h (NO_UNION_TYPE):
8216 * m/intel386.h (NO_UNION_TYPE):
8217 * m/ibms390x.h (NO_UNION_TYPE):
8218 * m/ibms390.h (NO_UNION_TYPE):
8219 * m/ibmrs6000.h (NO_UNION_TYPE):
8220 * m/ia64.h (NO_UNION_TYPE):
8221 * m/hp800.h (NO_UNION_TYPE):
8222 * m/arm.h (NO_UNION_TYPE):
8223 * m/amdx86-64.h (NO_UNION_TYPE):
8224 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8225 defining it the same.
8226
8227 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8228
8229 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8230
8231 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8232
8233 * fileio.c:
8234 * sysdep.c
8235 * systty.h:
8236 * m/ibmrs6000.h:
8237 * m/iris4d.h:
8238 * s/aix4-2.h:
8239 * s/freebsd.h:
8240 * s/gnu-linux.h:
8241 * s/hpux10-20.h:
8242 * s/hpux11.h:
8243 * s/netbsd.h:
8244 * s/sol2-3.h:
8245 * s/sol2-4.h:
8246 * s/sol2.h:
8247 * s/usg5-4.h:
8248 * s/vms.h: Remove references to unused variables.
8249
8250 2008-07-10 Andreas Schwab <schwab@suse.de>
8251
8252 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8253 pattern before matching the generic family.
8254
8255 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8256
8257 * unexec.c:
8258 * s/vms.h:
8259 * s/usg5-4-2.h:
8260 * s/sol2-5.h:
8261 * s/freebsd.h:
8262 * s/darwin.h: Remove dead code.
8263
8264 * m/template.h:
8265 * m/sparc.h:
8266 * m/mips.h:
8267 * m/m68k.h:
8268 * m/iris4d.h:
8269 * m/intel386.h:
8270 * m/ibms390x.h:
8271 * m/ibms390.h:
8272 * m/ia64.h:
8273 * m/hp800.h:
8274 * m/arm.h:
8275 * m/amdx86-64.h: Remove dead code and references to unused
8276 and compiler defined symbols.
8277
8278 * unexmips.c:
8279 * unexelf.c: Remove references to desupported systems.
8280
8281 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8282
8283 * m/powermac.h: Remove boilerplate comments.
8284 (NO_REMAP): Remove unused definition.
8285
8286 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8287 define them.
8288
8289 2008-07-10 Kenichi Handa <handa@m17n.org>
8290
8291 * xfont.c (xfont_open): Log the reason of failure.
8292
8293 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * fontset.c (fontset_get_font_group):
8296 * font.c (font_check_otf): Specify argument types.
8297
8298 2008-07-09 Kenichi Handa <handa@m17n.org>
8299
8300 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8301 non-ASCII char is found.
8302
8303 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8304 (reorder_font_vector): Change the arg preferred_family to font.
8305 Prefer the spec matching with font.
8306 (fontset_get_font_group): New function.
8307 (fontset_find_font): Change the format of an element of a realized
8308 fontset. Use fontset_get_font_group.
8309 (fontset_font): Try the current fontset, the default fontset, the
8310 fallbacks of the current fontset, and the fallbacks of the default
8311 fontset in this order.
8312 (face_for_char): Delete the shortcut to use the current font.
8313 (fontset_from_font): Don't set fonts for Latin in the fontset.
8314
8315 * font.h (font_make_object, font_match_p): Adjust prototypes.
8316
8317 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8318
8319 * font.c (font_make_object): New arg entity and pixelsize.
8320 (font_check_otf_features, font_check_otf): New functions.
8321 (font_match_p): Check :lang, :script, and :otf properties.
8322
8323 * xfont.c (xfont_open): Adjust it for the change of
8324 font_make_object.
8325 (xfont_text_extents): Fix initial setting of metrics.
8326
8327 * ftfont.c (struct ftfont_info): New member index, delete member
8328 fc_charset_idx. Make the member order compatible with struct
8329 xftfont_info.
8330 (fc_charset_table): Change charset names to registry names.
8331 (ftfont_pattern_entity): Delete the args registry and
8332 fc_charset_idx. Change the value of :font-entity property
8333 to (FONTNAME . INDEX). Always set :registry property to
8334 `iso10646-1'.
8335 (struct ftfont_cache_data): New struct.
8336 (ftfont_lookup_cache): New arg for_face.
8337 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8338 (ftfont_driver): Set the member otf_capability.
8339 (ftfont_get_charset): Adjust it for the change of
8340 fc_charset_table.
8341 (OTF_TAG_SYM): New macro.
8342 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8343 for the change of fc_charset_table.
8344 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8345 ftfont_pattern_entity. Add FC_INDEX to objset.
8346 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8347 and ftfont_pattern_entity.
8348 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8349 font_make_object, struct ftfont_info.
8350 (ftfont_has_char): Use ftfont_get_fc_charset.
8351 (ftfont_otf_features, ftfont_otf_capability): New functions.
8352 (ftfont_shape): Use ftfont_get_otf.
8353 (ftfont_text_extents): Fix initial setting of metrics.
8354
8355 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8356 member order compatible with struct ftfont_info.
8357 (xftfont_open): Add FC_CHARSET to the pattern. Set
8358 xftfont_info->ft_size. Don't unlock the face. Check BDF
8359 properties if appropriate.
8360 (xftfont_close): Unlock the face.
8361 (xftfont_anchor_point, xftfont_shape): Deleted.
8362 (syms_of_xftfont): Don't set members anchor_point and shape of
8363 xftfont_driver.
8364
8365 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8366 font_make_object.
8367
8368 * w32font.c (w32font_open): Adjust it for the change of
8369 font_make_object.
8370 (w32font_open_internal): Don't set properties of font_object here.
8371
8372 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
8373
8374 * macfns.c (x_create_tip_frame):
8375 * w32fns.c (x_create_tip_frame):
8376 * xfns.c (x_create_tip_frame): Pass parameter argument to
8377 face-set-after-frame-default.
8378
8379 * xfaces.c (Finternal_merge_in_global_face): Save merged
8380 attributes for the default face back into the face vector.
8381
8382 2008-07-08 Andreas Schwab <schwab@suse.de>
8383
8384 * fontset.h: Declare fontset_from_font. Don't declare
8385 new_fontset_from_font and fontset_from_font_name.
8386 * xterm.c: Include "fontset.h".
8387 * Makefile.in (xterm.o): Update dependencies.
8388
8389 2008-07-08 Glenn Morris <rgm@gnu.org>
8390
8391 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8392 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8393
8394 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8397 (x_set_frame_parameters): Don't bind it.
8398
8399 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
8400
8401 * w32fns.c (map_w32_filename): Declare extern.
8402
8403 2008-07-07 Jason Rumney <jasonr@gnu.org>
8404
8405 * w32term.c (WS_EX_LAYERED): Define if not already.
8406
8407 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
8408
8409 * xfaces.c (set_font_frame_param): Don't try to set the font
8410 parameter if it is still unspecified in the lface.
8411
8412 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8413
8414 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8415 face if it didn't already exist.
8416
8417 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8418
8419 2008-07-05 Andreas Schwab <schwab@suse.de>
8420
8421 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8422
8423 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
8424
8425 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8426 word-wrapping.
8427 (IT_DISPLAYING_WHITESPACE): New macro.
8428 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8429 when word-wrapping. Simplify word-wrapping logic. Use correct
8430 pixel positions when saving copies of the iterator.
8431 (display_line): Use proper wrap point if the last character on a
8432 line was preceded by whitespace.
8433
8434 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8435
8436 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8437
8438 2008-07-04 Kenichi Handa <handa@m17n.org>
8439
8440 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8441
8442 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8443
8444 2008-07-02 Jason Rumney <jasonr@gnu.org>
8445
8446 * xfns.c (syms_of_xfns): Only define x-select-font when both
8447 HAVE_FREETYPE and USE_GTK.
8448
8449 * xdisp.c (next_element_from_display_vector): Move assignment out
8450 of if statement.
8451
8452 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8453
8454 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8455
8456 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8457 (syms_of_fileio): Initialize and export them.
8458 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8459
8460 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8461 (Fsystem_move_file_to_trash): New function.
8462 (syms_of_w32fns): Export it to lisp.
8463
8464 2008-07-01 Jason Rumney <jasonr@gnu.org>
8465
8466 * w32font.c (w32font_text_extents): Don't count overhang as part
8467 of width.
8468
8469 2008-06-30 Miles Bader <miles@gnu.org>
8470
8471 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8472 Add `avoid_cursor_p' field.
8473
8474 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8475 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8476 (append_glyph, append_composite_glyph, produce_image_glyph)
8477 (append_stretch_glyph): Initialize avoid_cursor_p.
8478 (get_it_property): Rename from `get_line_height_property'.
8479 (x_produce_glyphs): Use get_it_property.
8480 (handle_line_prefix, push_display_prop): New functions.
8481 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8482 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8483 New variables.
8484 (syms_of_xdisp): Initialize them.
8485
8486 2008-06-30 Kenichi Handa <handa@m17n.org>
8487
8488 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8489 XftDefaultSubstitute (they are called in XftFontMatch).
8490 (xftfont_open): Fix args to ftfont_font_format.
8491
8492 * ftfont.c (fc_charset_table): New member lang.
8493 (ftfont_resolve_generic_family): New arg pattern.
8494 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
8495 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8496 (ftfont_open): Fix args to ftfont_font_format.
8497 (ftfont_font_format): New arg filename.
8498
8499 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
8500
8501 * xfaces.c (Finternal_merge_in_global_face): If default face was
8502 modified, realize it again. Update the font face attribute.
8503
8504 2008-06-29 Jason Rumney <jasonr@gnu.org>
8505
8506 * w32term.c (x_set_frame_alpha): Fix logic.
8507
8508 2008-06-29 Kenichi Handa <handa@m17n.org>
8509
8510 * fontset.c (Finternal_char_font): Return font-object instead of
8511 font-name.
8512
8513 * composite.c (get_composition_id): Fix the width calculation for TAB.
8514
8515 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8516
8517 * indent.c (Fvertical_motion): Properly handle float column arg.
8518
8519 2008-06-28 Jason Rumney <jasonr@gnu.org>
8520
8521 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8522 (pfnSetLayeredWindowAttributes): New function pointer.
8523 (w32_initialize): Initialize it when supported.
8524 (x_set_frame_alpha): New function.
8525
8526 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8527 (w32_frame_parm_handlers): Set alpha handler.
8528
8529 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8530
8531 2008-06-27 Jason Rumney <jasonr@gnu.org>
8532
8533 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8534 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8535 (w32_to_x_charset, x_to_w32_charset)
8536 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8537 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8538 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8539 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8540 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8541 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8542 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8543 (Qw32_charset_unicode): Remove.
8544 (syms_of_w32fns): Update for above changes.
8545
8546 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8547 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8548 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8549 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8550 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8551 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8552 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8553 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8554 (syms_of_w32font): Update for above changes.
8555
8556 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8557
8558 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8559 removed #if.
8560 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8561
8562 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8563 Eli Zaretskii <eliz@gnu.org>
8564
8565 * makefile.w32-in (LOCAL_FLAGS):
8566 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8567
8568 * sysdep.c (_spawnlp, _getpid):
8569 Declare with explicit _cdecl instead of _CRTAPI1.
8570
8571 * editfns.c (Fget_internal_run_time):
8572 Check for WINDOWSNT with #ifdef, not #if.
8573
8574 2008-06-26 Jason Rumney <jasonr@gnu.org>
8575
8576 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8577
8578 * w32term.c (x_draw_glyph_string_foreground)
8579 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8580 Use FONT_HANDLE macro.
8581 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8582
8583 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8584 (uniscribe_encode_char): Use FONT_HANDLE macro.
8585
8586 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8587 (w32font_text_extents): Use precast w32_font.
8588 (w32font_close): Free cached metrics.
8589 (w32font_open_internal): Allocate space for name on stack.
8590
8591 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8594
8595 2008-06-26 Jason Rumney <jasonr@gnu.org>
8596
8597 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8598 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8599
8600 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
8601
8602 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8603
8604 2008-06-26 Jason Rumney <jasonr@gnu.org>
8605
8606 * w32bdf.c, w32bdf.h: Remove obsolete files.
8607
8608 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8609
8610 * w32gui.h: Don't include w32bdf.h.
8611 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8612 Remove obsolete font support.
8613
8614 * w32font.h (struct w32font_info): Remove compat_w32_font.
8615 Add hfont member.
8616 (FONT_COMPAT): Remove obsolete macro.
8617
8618 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8619 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8620 (w32font_open_internal): Remove compat code. Set new hfont member.
8621 (Fx_select_font): Use new hfont member.
8622
8623 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8624 (uniscribe_encode_char): Use new hfont member.
8625
8626 * w32term.c (x_draw_glyph_string_foreground)
8627 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8628 (x_draw_glyph_string): Use metrics in w32font_info.
8629
8630 2008-06-26 Kenichi Handa <handa@m17n.org>
8631
8632 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8633
8634 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8635
8636 * unexnext.c:
8637 * m/ews4800.h:
8638 * m/hp9000s300.h:
8639 * m/ibm370aix.h:
8640 * m/mips-siemens.h:
8641 * m/ncr386.h:
8642 * m/next.h:
8643 * m/pmax.h:
8644 * m/powerpcle.h:
8645 * m/tandem-s2.h:
8646 * s/386bsd.h:
8647 * s/bsd386.h:
8648 * s/bsd4-1.h:
8649 * s/bsd4-2.h:
8650 * s/bsdos2-1.h:
8651 * s/bsdos2.h:
8652 * s/bsdos3.h:
8653 * s/bsdos4.h:
8654 * s/nextstep.h:
8655 * s/ultrix4-3.h:
8656 * s/usg5-0.h:
8657 * s/usg5-2-2.h:
8658 * s/usg5-2.h:
8659 * s/usg5-4-3.h:
8660 * s/ux4800.h:
8661 * s/uxpds.h:
8662 * s/uxpv.h: Remove support for obsolete systems.
8663 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8664 Remove, insert contents in s/hpux10-20.h.
8665 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8666 Remove, insert contents in s/aix4-2.h.
8667 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8668 * s/bsd4-3.h: Rename to ...
8669 * s/bsd-common.h: ... this.
8670 * data.c:
8671 * doc.c:
8672 * ecrt0.c:
8673 * emacs.c:
8674 * fileio.c:
8675 * floatfns.c:
8676 * keyboard.c:
8677 * mem-limits.h:
8678 * print.c:
8679 * process.c:
8680 * sysdep.c:
8681 * syssignal.h:
8682 * systty.h:
8683 * syswait.h:
8684 * term.c:
8685 * unexec.c:
8686 * unexelf.c:
8687 * unexhp9k800.c:
8688 * m/hp800.h:
8689 * m/ibmrs6000.h:
8690 * m/mips.h:
8691 * m/vax.h:
8692 * s/darwin.h:
8693 * s/freebsd.h:
8694 * s/gnu.h:
8695 * s/ms-w32.h:
8696 * s/msdos.h:
8697 * s/netbsd.h:
8698 * s/template.h: Remove references to obsolete variables.
8699
8700 * Makefile.in: Add dependencies for all unexec files.
8701 (admindir): Remove unused variable.
8702 (UNEXEC_SRC): Remove references.
8703
8704 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
8705
8706 * xfns.c (x_default_font_parameter): If Xft is available, first
8707 try Monospace-12 for the default font.
8708
8709 2008-06-25 Jason Rumney <jasonr@gnu.org>
8710
8711 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8712
8713 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8714
8715 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8716
8717 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8718
8719 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
8720
8721 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8722 <scroll-conservatively>: Fix typo in docstring.
8723
8724 * xselect.c (Fx_send_client_event): Doc fix.
8725
8726 2008-06-25 Kenichi Handa <handa@m17n.org>
8727
8728 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8729
8730 * font.c (font_parse_fcname): Remove unused variables.
8731 (font_sort_entites): Delete the arg SPEC. Caller changed.
8732 Fix for the case of ! best_only.
8733 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8734
8735 * lisp.h (Fstring_to_unibyte): EXFUN it.
8736
8737 * character.h (str_to_unibyte): Extern it.
8738
8739 * character.c (str_to_unibyte): New function.
8740
8741 * fns.c (Fstring_to_unibyte): New function.
8742 (syms_of_fns): Defsubr it.
8743
8744 2008-06-24 Kenichi Handa <handa@m17n.org>
8745
8746 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8747 DPI too.
8748 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8749
8750 2008-06-24 Andreas Schwab <schwab@suse.de>
8751
8752 * Makefile.in (${lispsource}loaddefs.el): Rename from
8753 ../lisp/loaddefs.el.
8754 (bootstrap-clean): Do what distclean does but don't remove
8755 Makefile.
8756 (distclean): Depend on bootstrap-clean and remove Makefile.
8757
8758 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
8759
8760 * buffer.h (struct buffer): New member word_wrap.
8761
8762 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8763 word-wrap.
8764 (init_buffer_once): Initialize them.
8765
8766 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8767 line_wrap enum possessing three possible values.
8768
8769 * termopts.h: Replace truncate_partial_width_windows with
8770 Vtruncate_partial_width_windows.
8771
8772 * dispnew.c (direct_output_for_insert): Avoid direct output when
8773 inserting a space with word wrap on.
8774
8775 * indent.c (compute_motion): Obey integer values of
8776 truncate-partial-width-windows.
8777
8778 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8779 replacing truncate_partial_width_windows.
8780 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8781 truncate only if the window width is below that integer.
8782 (start_display, resize_mini_window, produce_stretch_glyph)
8783 (display_string, move_it_in_display_line_to): Use line_wrap.
8784 (back_to_previous_visible_line_start, reseat_1): Reset
8785 string_from_display_prop_p.
8786 (display_line): Extend default face to end of line when wrapping.
8787
8788 2008-06-24 Kim F. Storm <storm@cua.dk>
8789
8790 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8791 to wrap continued lines at word boundaries.
8792
8793 2008-06-24 Jason Rumney <jasonr@gnu.org>
8794
8795 * font.c (Ffont_face_attributes): Multiply pixel size before point
8796 conversion to avoid multiplying rounding error.
8797
8798 2008-06-23 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32term.c (x_draw_glyph_string_background)
8801 (x_draw_glyph_string): Remove old bdf font code.
8802
8803 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8804
8805 2008-06-22 Kenichi Handa <handa@m17n.org>
8806
8807 * font.c (font_find_for_lface): Try the adstyle specified in
8808 the property of LFACE_FONT of LFACE (if any).
8809
8810 2008-06-21 Seiji Zenitani <zenitani@mac.com>
8811 Ryo Yoshitake <ryo@shiftmode.net>
8812
8813 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8814
8815 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8816
8817 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8818 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8819 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8820 (witness-emacs): Remove.
8821 (lisp, shortlisp): Move loaddefs.el earlier.
8822 (mostlyclean): Forget about witness-emacs.
8823
8824 2008-06-22 Glenn Morris <rgm@gnu.org>
8825
8826 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8827 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8828
8829 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 * Makefile.in (PRECOMP): Remove.
8832 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8833 (witness-emacs): Run `compile-first'.
8834 (.el.elc): Use the new compile-onefile target.
8835
8836 2008-06-21 Kenichi Handa <handa@m17n.org>
8837
8838 * xftfont.c (xftfont_open): Handle QCembolden only when
8839 FC_EMBOLDEN is defined.
8840
8841 2008-06-21 Andreas Schwab <schwab@suse.de>
8842
8843 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8844 (.el.elc): Likewise.
8845
8846 2008-06-21 Miles Bader <miles@gnu.org>
8847
8848 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8849 build dir, not the lisp source dir.
8850
8851 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8852
8853 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8854 (bootstrapclean): Remove.
8855 (.el.elc): New rule.
8856 (PRECOMP): New var.
8857 (../lisp/subdirs.el): Remove.
8858 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8859 (witness-emacs): New target.
8860 (mostlyclean): Remove witness-emacs as well.
8861 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8862 Add witness-emacs dependency.
8863
8864 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
8865
8866 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8867 defined by the font.
8868
8869 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8870
8871 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8872 (bootstrap-clean): New target that keeps TAGS around.
8873 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8874 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8875
8876 2008-06-20 Jason Rumney <jasonr@gnu.org>
8877
8878 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8879 Remove obsolete font code.
8880
8881 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8882 to determine language support.
8883
8884 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8885
8886 * sysdep.c (cfsetspeed): New fun extracted from the code.
8887 (cfmakeraw): Move before first use.
8888
8889 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8890
8891 * sysdep.c (cfmakeraw): Provide fallback implementation.
8892 (serial_configure): Provide fallback implementation of cfsetspeed.
8893
8894 2008-06-20 Kenichi Handa <handa@m17n.org>
8895
8896 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8897 the pattern.
8898
8899 * fontset.c (fontset_from_font): Copy font_spec before changing
8900 the elements.
8901
8902 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8903
8904 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8905
8906 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8907 for explicit `font' parameters.
8908
8909 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8910
8911 2008-06-19 Kenichi Handa <handa@m17n.org>
8912
8913 * frame.c: Include <ctype.h>.
8914 (x_set_font_backend): Allow spacing characters in the X resource
8915 for FontBackend.
8916
8917 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8918
8919 * w32fns.c, xfns.c (Qfont_param): New var.
8920 (syms_of_w32fns): Initialize it.
8921 (x_default_font_parameter): Record explicit `font' into
8922 `font-parameter'.
8923
8924 2008-06-18 Kenichi Handa <handa@m17n.org>
8925
8926 * font.c (font_parse_xlfd): Fix previous change.
8927 (font_parse_fcname): Don't use :fc-unknown-spec.
8928 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8929 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8930 (font_add_log): Prepend the driver name to the resulting fonts.
8931
8932 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8933 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8934 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8935
8936 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8937 (QCembolden): New variables.
8938 (syms_of_xftfont): DEFSYM them.
8939 (xftfont_open): Call XftFontMatch. Don't trust the result of
8940 XftTextExtents8 if the pixel_size is less than 5.
8941
8942 2008-06-18 Andreas Schwab <schwab@suse.de>
8943
8944 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8945 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8946
8947 2008-06-18 Jason Rumney <jasonr@gnu.org>
8948
8949 * w32font.c (w32font_list, w32font_match): Add logging.
8950
8951 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8952
8953 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * font.c (font_parse_fcname): Store divider characters for
8956 unknown-spec list. For known key symbols, intern using correct
8957 symbol name.
8958
8959 2008-06-17 Kenichi Handa <handa@m17n.org>
8960
8961 * xfaces.c (realize_default_face): If the frame is not on window
8962 system, set the fontset of face to nil.
8963
8964 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8965
8966 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8967
8968 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8969
8970 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8971 (build_font_name_from_vector): Delete externs.
8972
8973 * xfaces.c (struct font_name): Don't declare.
8974
8975 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8976
8977 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8978
8979 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
8980
8981 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8982
8983 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
8984
8985 * font.c (Ffont_spec): Fix usage in docstring.
8986 (Ffont_face_attributes): Doc fix.
8987
8988 2008-06-16 Andreas Schwab <schwab@suse.de>
8989
8990 * font.c (Ffont_face_attributes): Fix definition.
8991
8992 2008-06-16 Jason Rumney <jasonr@gnu.org>
8993
8994 * font.h (font_style_symbolic_from_value): Remove.
8995
8996 * font.c (font_style_symbolic_from_value): Remove.
8997 (font_style_symbolic): Revert to pre 2008-06-13 version.
8998
8999 * w32font.c (w32_to_fc_weight): New function.
9000 (w32font_full_name, logfont_to_fcname): Use it.
9001
9002 2008-06-16 Kenichi Handa <handa@m17n.org>
9003
9004 * font.c (font_check_object): Delete it.
9005 (font_clear_cache): Check if a font-object is alive.
9006 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9007 font-object to nil.
9008 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9009 (font_at): Don't call font_check_object.
9010 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9011
9012 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9013
9014 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9015
9016 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9017
9018 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9019
9020 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * font.c (font_parse_fcname): Only one decimal point.
9023 (font_unparse_fcname): Handle data in family and foundry indices
9024 as symbols, not strings.
9025 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9026
9027 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9028
9029 * font.h (font_unparse_gtkname): Add prototype.
9030
9031 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9032
9033 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9034
9035 2008-06-15 Andreas Schwab <schwab@suse.de>
9036
9037 * font.c (font_update_drivers): Fix crash when no drivers match.
9038
9039 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9040
9041 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9042 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9043
9044 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9045
9046 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9047
9048 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9049
9050 * process.c (Fserial_process_configure, Fprocess_send_eof):
9051 Use EQ to compare Lisp_Objects.
9052
9053 2008-06-13 Jason Rumney <jasonr@gnu.org>
9054
9055 * w32fns.c (Fw32_select_font): Remove old font API function.
9056
9057 * w32font.c (logfont_to_fcname): New function.
9058 (Fx_select_font): New font dialog function compatible with
9059 GTK/fontconfig version.
9060
9061 * font.c (font_style_symbolic_from_value): New function.
9062 (font_style_symbolic): Use it.
9063
9064 * font.h (font_style_symbolic_from_value): Declare new function.
9065
9066 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9067
9068 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9069 <font-width-table>: Fix typos in docstrings.
9070
9071 2008-06-13 Daniel Engeler <engeler@gmail.com>
9072
9073 These changes add serial port access.
9074 * process.c: Add HAVE_SERIAL.
9075 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9076 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9077 (list_processes_1, select_wrapper, Fstop_process)
9078 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9079 (status_notify): Modify to handle serial processes.
9080 [HAVE_SERIAL] (Fserial_process_configure)
9081 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9082 New functions.
9083 * process.h (struct Lisp_Process): Add `type'.
9084 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9085 New functions.
9086 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9087 serial ports.
9088 (serial_open, serial_configure): New functions.
9089 * w32.h: Add FILE_SERIAL.
9090 (struct _child_process): Add ovl_read, ovl_write.
9091
9092 2008-06-13 Kenichi Handa <handa@m17n.org>
9093
9094 * dispextern.h (enum lface_attribute_index): New member
9095 LFACE_FOUNDRY_INDEX.
9096
9097 * font.c (font_score): Delete arg alternate_families. Check only
9098 weight, slant, width, and size. Ignore the difference of alias
9099 style symbols.
9100 (font_sort_entites): Adjust for the above change. Reflect the
9101 order of font-driver to scores.
9102 (font_list_entities): Don't check alternate_familes here.
9103 (font_clear_prop): Handle foundry.
9104 (font_update_lface): Don't parse "foundry-family" form here.
9105 Handle FONT_FOUNDRY_INDEX.
9106 (font_find_for_lface): Likewise. Handle alternate families here.
9107 If registry is nil, try iso8859-1 and ascii-0.
9108 (font_open_for_lface): Pay attention to size in ENTITY.
9109 (font_open_by_name): Simplify by calling font_load_for_lface.
9110 (free_font_driver_list): Delete it.
9111 (font_update_drivers): Preserve the order of backends.
9112 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9113 of font_score and font_sort_entites.
9114 (font_update_sort_order): Likewise.
9115
9116 * xfaces.c (LFACE_FOUNDRY): New macro.
9117 (check_lface_attrs): Check foundry.
9118 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9119 (merge_face_vectors): Check foundry.
9120 (merge_face_ref): Likewise.
9121 (Finternal_set_lisp_face_attribute): Likewise.
9122 (x_update_menu_appearance): Likewise.
9123 (Finternal_get_lisp_face_attribute): Likewise.
9124 (lface_hash): Likewise.
9125 (lface_same_font_attributes_p): Likewise.
9126 (x_supports_face_attributes_p): Likewise.
9127 (tty_supports_face_attributes_p): Likewise.
9128 (Finternal_set_alternative_font_family_alist): Intern strings.
9129 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9130 (realize_default_face): Set LFACE_FOUNDRY (lface).
9131
9132 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9133 font-driver at first.
9134
9135 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9136
9137 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9138
9139 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9140
9141 2008-06-12 Jim Meyering <meyering@redhat.com>
9142
9143 Make unexec_free handle NULL the same way free does.
9144 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9145
9146 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9147
9148 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9149 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9150 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9151 (WEAK_ALIAS): Simplify.
9152 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9153 when searching a unibyte buffer.
9154
9155 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9156
9157 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9158
9159 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9160
9161 * w32font.c: Include ctype.h.
9162
9163 2008-06-11 Jason Rumney <jasonr@gnu.org>
9164
9165 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9166 misreported as space.
9167 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9168 as aliases for registry iso10646-1.
9169
9170 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * buffer.c (clone_per_buffer_values): Skip `name'.
9173
9174 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9175
9176 * font.c (font_parse_fcname): Fix last change; accept decimal
9177 points in font size.
9178
9179 2008-06-10 Jason Rumney <jasonr@gnu.org>
9180
9181 * w32uniscribe.c (add_opentype_font_name_to_list):
9182 Skip non unicode fonts.
9183
9184 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9185
9186 * xfns.c (Fx_font_dialog): New function.
9187
9188 * gtkutil.c (xg_dialog_response_cb): Rename from
9189 xg_file_response_callback.
9190 (pop_down_dialog): Rename from pop_down_file_dialog.
9191 (xg_get_file_name): Callers changed.
9192 (xg_get_font_name): New function.
9193
9194 * gtkutil.h (xg_get_font_name): Insert prototype.
9195
9196 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9197
9198 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9199 x_underline_minimum_display_offset.
9200 (syms_of_xdisp): Declare it here rather than in xterm.c.
9201 * dispextern.h (underline_minimum_offset): Declare it.
9202 * w32term.c (x_draw_glyph_string): Use it.
9203 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9204 (syms_of_xterm): Don't declare it any more.
9205 (x_draw_glyph_string): Adjust to the new name.
9206
9207 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9208
9209 * xterm.c (x_underline_minimum_display_offset): New var.
9210 (x_draw_glyph_string): Use it.
9211 (syms_of_xterm): Declare it.
9212
9213 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9214
9215 * font.c (font_parse_fcname): Accept GTK-style font names too.
9216
9217 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9218
9219 * dired.c (file_name_completion): Don't return t if the match is exact
9220 but with different capitalization.
9221 * minibuf.c (Ftry_completion): Simplify.
9222
9223 * window.c (Vwindow_point_insertion_type): New var.
9224 (set_window_buffer): Use it.
9225 (syms_of_window): Init and export it to Lisp.
9226
9227 2008-06-10 Kenichi Handa <handa@m17n.org>
9228
9229 * font.h (font_intern_prop): Prototype adjusted.
9230
9231 * font.c (font_intern_prop): New arg force_symbol.
9232 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9233 Adjust for the change of font_intern_prop.
9234
9235 * ftfont.c (ftfont_pattern_entity):
9236 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9237 (w32_registry):
9238 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9239 the change of font_intern_prop.
9240
9241 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9242
9243 * w32menu.c (digest_single_submenu): Declare extern.
9244
9245 2008-06-09 Jason Rumney <jasonr@gnu.org>
9246
9247 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9248
9249 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9250 (parse_single_submenu): Remove.
9251 (digest_single_submenu): Remove.
9252 (syms_of_w32menu): Don't initialise variables that have moved
9253 to menu.c.
9254 (set_frame_menubar): Sync with version in xmenu.c.
9255 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9256
9257 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9258 Make static again.
9259
9260 2008-06-09 Jason Rumney <jasonr@gnu.org>
9261
9262 Changes to w32 files related to the move of common menu code
9263 to menu.c on 2008-06-08 by Chong Yidong.
9264
9265 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9266 defs to w32gui.h.
9267 (single_keymap_panes, push_menu_item, push_menu_pane):
9268 Make globally visible.
9269
9270 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9271 (local_free, malloc_widget_value, free_widget_value)
9272 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9273 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9274 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9275 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9276 (menu_items, menu_items_allocated, menu_items_used)
9277 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9278 (init_menu_items, finish_menu_items, discard_menu_items)
9279 (grow_menu_items, push_submenu_start, push_submenu_end)
9280 (push_left_right_boundary, push_menu_pane, push_menu_item)
9281 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9282 (free_menubar_widget_tree_value, parse_single_submenu)
9283 (update_submenu_strings): Remove functions.
9284 (xmalloc_widget_value): Remove and declare extern.
9285
9286 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9287 (OBJ1): Build it.
9288
9289 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9290 (local_heap, local_alloc, local_free, malloc_widget_value)
9291 (free_widget_value): Define here.
9292
9293 2008-06-09 Kenichi Handa <handa@m17n.org>
9294
9295 * font.h (Qascii_0): Extern it.
9296
9297 * font.c (Qascii_0): New variable.
9298 (syms_of_font): DEFSYM it.
9299 (font_open_by_name): If the registry "iso8859-1" fails, try also
9300 "ascii-0".
9301
9302 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9303
9304 2008-06-08 Kenichi Handa <handa@m17n.org>
9305
9306 * .gdbinit (xfont): New command.
9307
9308 2008-06-08 Andreas Schwab <schwab@suse.de>
9309
9310 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9311 * Makefile.in (menu.o): Update dependencies.
9312
9313 * Makefile.in (obj): Always add menu.o.
9314 * emacs.c (main): Always call syms_of_menu.
9315 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9316
9317 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
9318
9319 * Makefile.in: Compile menu.c.
9320
9321 * lisp.h: Declare syms_of_menu.
9322
9323 * emacs.c (main): Call syms_of_menu.
9324
9325 * keyboard.h: Relocate platform-independent menu definitions from
9326 xmenu.c.
9327
9328 * menu.c: New file. Relocate platform-independent menu
9329 definitions from xmenu.c. Suggested by Adrian Robert.
9330
9331 * xmenu.c: Remove platform-independent menu definitions.
9332 (menu_items menu_items_inuse, menu_items_allocated)
9333 (menu_items_used, menu_items_n_panes)
9334 (menu_items_submenu_depth): Move to keyboard.h.
9335 (init_menu_items, finish_menu_items, unuse_menu_items)
9336 (discard_menu_items, restore_menu_items, save_menu_items)
9337 (grow_menu_items, push_submenu_start, push_submenu_end)
9338 (push_left_right_boundary, push_menu_pane, push_menu_item)
9339 (keymap_panes, single_keymap_panes, single_menu_item)
9340 (list_of_panes, list_of_items, find_and_call_menu_selection)
9341 (xmalloc_widget_value, free_menubar_widget_value_tree)
9342 (parse_single_submenu, digest_single_submenu)
9343 (update_submenu_strings): Move to menu.c.
9344
9345 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9346
9347 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9348
9349 2008-06-06 Miles Bader <miles@gnu.org>
9350
9351 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9352 face, not frame default.
9353
9354 2008-06-05 Martin Rudalics <rudalics@gmx.at>
9355
9356 * window.c (pop_up_windows, pop_up_frames)
9357 (display_buffer_reuse_frames, Vpop_up_frame_function)
9358 (Vdisplay_buffer_function, Veven_window_heights)
9359 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9360 (Vspecial_display_function, Vsame_window_buffer_names)
9361 (Vsame_window_regexps, split_height_threshold)
9362 (Vsplit_window_preferred_function): Move those vars to window.el.
9363 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9364 (Fdisplay_buffer): Move those functions to window.el.
9365 (syms_of_window): Remove corresponding declarations.
9366 (display_buffer): New function.
9367 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9368 * dispnew.c (Flast_nonminibuf_frame): New function.
9369 * buffer.c (Fpop_to_buffer): Move to window.el.
9370
9371 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9374
9375 2008-06-05 Kenichi Handa <handa@m17n.org>
9376
9377 * coding.c (detect_coding): Fix previous change.
9378 (detect_coding_system): Likewise.
9379
9380 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9381
9382 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9383
9384 * keymap.c (Vminibuffer_local_filename_must_match_map):
9385 Rename from Vminibuffer_local_must_match_filename_map.
9386 (syms_of_keymap):
9387 * minibuf.c (Fcompleting_read): Adjust accordingly.
9388 * commands.h: Rename declaration as well.
9389
9390 2008-06-05 Kenichi Handa <handa@m17n.org>
9391
9392 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9393 family name.
9394 (Ffont_put): Likewise.
9395
9396 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9397 current font-spec.
9398
9399 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9400 is unspecified.
9401
9402 * xfaces.c (realize_x_face): If the font-related face attributes
9403 are the same as those of default face, realize a new fontset from
9404 default->fontset.
9405 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9406
9407 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9408
9409 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9410 (move_it_in_display_line): New wrapper.
9411
9412 * window.c (window_scroll_pixel_based_preserve_x)
9413 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9414 (window_scroll_pixel_based, window_scroll_line_based):
9415 Use them to preserve column positions.
9416 (syms_of_window): Initialize them.
9417
9418 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9419 (HPOS . VPOS) pair.
9420
9421 * dispextern.h (move_it_in_display_line): Declare.
9422
9423 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
9424
9425 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9426 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9427 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9428
9429 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
9430
9431 * window.c (Fset_window_parameter): Doc fix.
9432 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9433
9434 2008-06-04 Joakim Verona <joakim@verona.se>
9435
9436 * window.h (struct window): Add new member window_parameters.
9437
9438 * window.c (Fwindow_parameters, Fwindow_parameter)
9439 (Fset_window_parameter): New defuns.
9440 (syms_of_window): Defsubr the new defuns.
9441 (make_window): Initialize window_parameters to nil.
9442
9443 2008-06-04 John Paul Wallington <jpw@pobox.com>
9444
9445 * eval.c (Fdefmacro): Doc fix.
9446
9447 2008-06-04 Kenichi Handa <handa@m17n.org>
9448
9449 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9450 Be sure to call setup_coding_system when we find a proper coding system.
9451 (detect_coding_system): Fix handling of coding->head_ascii.
9452
9453 2008-06-03 Andreas Schwab <schwab@suse.de>
9454
9455 * font.c (font_prop_validate_spacing): Fix last change.
9456
9457 2008-06-03 Kenichi Handa <handa@m17n.org>
9458
9459 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9460 (font_parse_fcname): Fix handling of unknown key.
9461
9462 * xfont.c (xfont_list): Try an alias.
9463
9464 * charset.c (char_charset): Return NULL if the arg charset_list is
9465 specified and C doesn't belong to any of them.
9466
9467 2008-06-02 Chip Coldwell <coldwell@redhat.com>
9468
9469 * font.c (font_pixel_size): Don't take cdr of an integer.
9470
9471 2008-06-02 Jim Meyering <meyering@redhat.com>
9472
9473 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9474 * alloc.c (xfree): Return right away for a NULL arg.
9475 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9476 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9477 * mac.c (create_apple_event_from_event_ref): Likewise.
9478 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9479 Likewise.
9480 * doprnt.c (doprnt1): Likewise.
9481 * frame.c (frame): Likewise.
9482 * keyboard.c (wipe_kboard): Likewise.
9483 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9484 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9485 * term.c (tty_default_color_capabilities, maybe_fatal)
9486 (delete_tty): Likewise.
9487 * w16select.c (string): Likewise.
9488 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9489 * w32bdf.c (w32_free_bdf_font): Likewise.
9490 * w32fns.c (w32_unload_font): Likewise.
9491 * w32font.c (w32font_close): Likewise.
9492 * window.c (size_window): Likewise.
9493 * xselect.c (receive_incremental_selection): Likewise.
9494 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9495 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9496 * w32.c (stat): Likewise.
9497
9498 Remove useless if-before-free tests.
9499 * editfns.c (Fset_time_zone_rule): Likewise.
9500 * lread.c (nosuffix): Likewise.
9501 * ralloc.c (get_bloc): Likewise.
9502 * regex.c (reg_free): Likewise.
9503 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9504 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9505 * xsmfns.c (smc_save_yourself_CB): Likewise.
9506
9507 2008-06-02 Kenichi Handa <handa@m17n.org>
9508
9509 * font.c (font_find_for_lface): Handle float font size.
9510 (font_open_for_lface): Likewise.
9511
9512 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9513 comparing the properties.
9514
9515 2008-06-01 Jason Rumney <jasonr@gnu.org>
9516
9517 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9518 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9519 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9520 Don't add empty script list.
9521 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9522
9523 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9524
9525 * Makefile.in (dot, dotdot): Remove, update users.
9526 ".." has been used elsewhere in the file for a long time.
9527 (LIBXT_STATIC): Remove conditional based on unused variable.
9528
9529 2008-06-01 Miles Bader <miles@gnu.org>
9530
9531 * xfaces.c (Vface_remapping_alist): New variable.
9532 (syms_of_xfaces): Initialize it.
9533 (enum named_merge_point_kind): New type.
9534 (struct named_merge_point): Add `named_merge_point_kind' field.
9535 (push_named_merge_point): Make cycle detection respect different
9536 named-merge-point kinds.
9537 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9538 Remove face-name alias resolution.
9539 (lface_from_face_name): New definition using
9540 `lface_from_face_name_no_resolve'.
9541 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9542 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9543 (get_lface_attributes): New definition that layers face-remapping on
9544 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9545 (lookup_basic_face): New function.
9546 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9547 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9548 `get_lface_attributes'.
9549 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9550 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9551 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9552
9553 * xdisp.c (init_iterator): Pass base_face_id through
9554 `lookup_basic_face' when we actually use it as a face-id.
9555 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9556 DEFAULT_FACE_ID.
9557
9558 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9559 lookup the initial face-id.
9560
9561 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9562
9563 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
9564
9565 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9566 (Fremove_text_properties): Fix typos in docstrings.
9567
9568 2008-05-31 Kenichi Handa <handa@m17n.org>
9569
9570 * font.c (font_list_entities): Fix the car part of data to be
9571 stored in the cache.
9572
9573 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9574
9575 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9576
9577 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9578 Add a `test' argument so another predicate than `equal' can be used.
9579 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9580 (map_char_table): Remove unused vars `c' and `i'.
9581 * lisp.h (Foptimize_char_table): Adjust declaration.
9582 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9583
9584 2008-05-30 Kenichi Handa <handa@m17n.org>
9585
9586 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9587 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9588 defined.
9589
9590 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9591
9592 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9593 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9594 frame-local settings for the same variable.
9595
9596 2008-05-30 Kenichi Handa <handa@m17n.org>
9597
9598 * fontset.c (Ffont_info): Move to font.c.
9599 (syms_of_fontset): Delete defsubr of Sfont_info.
9600
9601 * font.c (font_style_to_value, font_score): Delete casting of the
9602 args to xstcasecmp.
9603 (register_font_driver): Increment num_font_drivers only when
9604 registering the driver globally.
9605 (Ffont_info): Move from fontset.c. Handle a font object too.
9606 (syms_of_font): Defsubr Sfont_info.
9607
9608 2008-05-29 Kenichi Handa <handa@m17n.org>
9609
9610 * coding.h (enum define_coding_utf8_arg_index): New enum.
9611 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9612 coding_attr_utf_bom.
9613 (enum utf_bom_type): Rename from utf_16_bom_type.
9614 (struct utf_16_spec): Adjust for the above change.
9615 (struct coding_system): Add utf_8_bom in `spec' union.
9616
9617 * coding.c (CODING_UTF_8_BOM): New macro.
9618 (enum coding_category): Delete coding_category_utf_8, add
9619 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9620 coding_category_utf_8_sig.
9621 (CATEGORY_MASK_UTF_8): Delete it.
9622 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9623 (CATEGORY_MASK_UTF_8_SIG): New macros.
9624 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9625 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9626 CATEGORY_MASK_UTF_8_SIG.
9627 (CATEGORY_MASK_UTF_8): New macro.
9628 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9629 (detect_coding_utf_8): Check BOM.
9630 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9631 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9632 (encode_coding_utf_16): Likewise.
9633 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9634 (detect_coding, detect_coding_system): Handle utf-8-auto.
9635 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9636 (syms_of_coding): Fix setting up of Vcoding_category_table.
9637
9638 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9639
9640 * process.c (Faccept_process_output): If `millisec' is non-nil,
9641 `seconds' default to 0.
9642 (wait_reading_process_output): Also return non-nil if we read output
9643 from a non-running process.
9644
9645 2008-05-29 Jason Rumney <jasonr@gnu.org>
9646
9647 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9648 `raster' specified.
9649 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9650 in the uniscribe backend, but disallow any font that has no
9651 unicode subrange support.
9652
9653 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
9654
9655 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9656 Fix typos in docstrings.
9657
9658 2008-05-29 Kenichi Handa <handa@m17n.org>
9659
9660 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9661 (Fx_family_fonts): Set frame correctly.
9662
9663 2008-05-28 Jason Rumney <jasonr@gnu.org>
9664
9665 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9666
9667 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9668
9669 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9670 calling build_annotations.
9671
9672 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
9673
9674 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9675 (Fencode_coding_string):
9676 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9677 <latin-extra-code-table>: Fix typos in docstrings.
9678 (syms_of_coding) <coding-system-alist>: Doc fix.
9679 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9680
9681 2008-05-28 Kenichi Handa <handa@m17n.org>
9682
9683 * fontset.c (Ffont_info): Don't call font_close_object.
9684
9685 * font.c (font_parse_family_registry): Use Ffont_put to validate
9686 foundry and family.
9687 (font_delete_unmatched): Don't check spacing.
9688 (font_list_entities): Add spacing to the spec to list fonts.
9689
9690 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9691 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9692
9693 * coding.c (encode_coding_raw_text): Fix previous change.
9694 (encode_coding_object): When the dst_object is a buffer and is
9695 different from src_object, move gap to PT.
9696
9697 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9698
9699 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9700
9701 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9702
9703 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9704 all branches. Compute it differently.
9705
9706 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9707
9708 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
9709
9710 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9711 into "else if () ... else ...".
9712
9713 2008-05-27 Jason Rumney <jasonr@gnu.org>
9714
9715 * w32font.c (w32font_open_internal): Determine if glyph indices
9716 are likely to work here.
9717
9718 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
9719
9720 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9721 draw overlap glyphs with appropriate highlighting.
9722
9723 2008-05-27 Kenichi Handa <handa@m17n.org>
9724
9725 * xfont.c (xfont_open): Fix calculation of font->average_width.
9726
9727 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9728
9729 * casefiddle.c (casify_object): Try to guess better whether the
9730 argument is a byte or a char.
9731
9732 2008-05-26 Andreas Schwab <schwab@suse.de>
9733
9734 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9735 Always send multiples of format size.
9736
9737 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9738
9739 2008-05-26 Jason Rumney <jasonr@gnu.org>
9740
9741 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9742 (compute_metrics): Don't set failure if we just cleared the cache.
9743 (w32_weight_table): Remove unused variable.
9744 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9745 backwards compatibility.
9746
9747 2008-05-25 Kenichi Handa <handa@m17n.org>
9748
9749 * w32term.c (x_draw_glyph_string):
9750 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9751
9752 * xfaces.c: Delete unused function prototypes.
9753 (xstrlwr, font_frame): Delete them.
9754 (clear_face_cache): Delete unused variable.
9755
9756 * xftfont.c (xftfont_open): Delete unused variable.
9757 If underline_thickness is not 1, adjust underline_position.
9758
9759 * ftxfont.c (ftxfont_open): Delete unused variable.
9760
9761 * fontset.c (face_for_char): Optimize for the case of no charset
9762 property.
9763
9764 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9765 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9766 (otf_open, font_otf_capability, generate_otf_features)
9767 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9768 Comment out by surrounding "#if 0" and "#endif" for the moment.
9769 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9770 (syms_of_font): Codes for accessing above commented out.
9771
9772 2008-05-24 Eli Zaretskii <eliz@gnu.org>
9773
9774 * w32proc.c: Include dispextern.h.
9775
9776 * w32.c: Include dispextern.h.
9777
9778 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
9779
9780 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9781 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9782 Fix typos in docstrings.
9783
9784 2008-05-23 Jason Rumney <jasonr@gnu.org>
9785
9786 * xsmfns.c: Remove includes that are already included by config.h.
9787
9788 2008-05-23 Kenichi Handa <handa@m17n.org>
9789
9790 * charset.c (Qemacs, charset_emacs): New variables.
9791 (char_charset): Fix for non-Unicode characters.
9792 (syms_of_charset): Define charset_emacs.
9793
9794 * w32term.c (x_draw_glyph_string): Be sure to update
9795 s->underline_thickness and s->underline_position. Be sure to draw
9796 underline within the current line area.
9797
9798 * xterm.c (x_draw_glyph_string): Be sure to update
9799 s->underline_thickness and s->underline_position. Be sure to draw
9800 underline within the current line area.
9801
9802 * fontset.c: Delete unused variables and add casting for char *
9803 throughout the file.
9804 (fontset_font): Try the fallback fonts of the current fontset
9805 before consulting the default fontset.
9806
9807 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9808
9809 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9810
9811 2008-05-22 Jason Rumney <jasonr@gnu.org>
9812
9813 * font.c: Don't include strings.h.
9814
9815 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9816
9817 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9818 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9819 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9820 to call xstrcasecmp.
9821
9822 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9823
9824 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9825
9826 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9827
9828 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9829
9830 2008-05-22 Kenichi Handa <handa@m17n.org>
9831
9832 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9833
9834 * font.c (font_prop_validate_style): Adjust for the format
9835 change of font_style_table.
9836
9837 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9838 two args.
9839
9840 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9841 two args.
9842
9843 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9844
9845 * minibuf.c (keys_of_minibuf): Delete.
9846 * lisp.h (keys_of_minibuf): Delete.
9847 * emacs.c (main): Don't call keys_of_minibuf.
9848
9849 2008-05-22 Kenichi Handa <handa@m17n.org>
9850
9851 * ftfont.c (ftfont_resolve_generic_family): Rename from
9852 ftfont_list_generic_family. Return a single family for each
9853 generic family.
9854 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9855 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9856 Call font_add_log.
9857 (ftfont_match): Call font_add_log.
9858
9859 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9860 (FONT_DEBUG): Define it.
9861 (font_add_log): Extern it.
9862 (font_assert): Rename from xassert.
9863
9864 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9865 (xfont_list_family): Call font_add_log.
9866 (xfont_match): Likewise.
9867 (memq_no_quit): Delete.
9868
9869 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9870 call of Ffont_xlfd_name.
9871
9872 * xfaces.c (struct table_entry, slant_table, weight_table)
9873 (swidth_table): Move to font.c.
9874
9875 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9876 xassert are changed to font_assert. Delete many unused variables.
9877 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9878 New variables.
9879 (struct table_entry): Move from xfaces.c and modified.
9880 (weight_table, slant_table, width_table): Move from xfaces.c and
9881 contents adjusted for the change of struct table_entry.
9882 (font_style_to_value, font_style_symbolic): Adjust for the
9883 format change of font_style_table.
9884 (font_parse_family_registry): Don't overwrite existing foundry and
9885 family of font_spec.
9886 (font_score): Fix calculation of diff for sizes.
9887 (font_sort_entites): Call font_add_log.
9888 (font_delete_unmatched): Return a newly created list.
9889 (font_list_entities): Fix previous change. Call font_add_log.
9890 (font_matching_entity, font_open_entity, font_close_entity):
9891 Call font_add_log.
9892 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9893 (Finternal_set_font_style_table): Delete.
9894 (BUILD_STYLE_TABLE): New macro.
9895 (build_style_table): New function.
9896 (Vfont_log, font_log_env_checked): New variables.
9897 (font_add_log): New function.
9898 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9899 Declare Lisp variables "font-weight-table", "font-slant-table",
9900 "font-width-table", and "font-log". Initialize font_style_table.
9901
9902 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9903
9904 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9905
9906 2008-05-21 Seiji Zenitani <zenitani@mac.com>
9907 Ryo Yoshitake <ryo@shiftmode.net>
9908
9909 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9910 (Vframe_alpha_lower_limit): New variable.
9911 (x_set_alpha): New function.
9912
9913 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9914
9915 * xfns.c (x-create-frame, Qalpha):
9916 Initialize the frame parameter `alpha'.
9917 * xterm.c (OPAQUE, OPACITY): New.
9918 (x_set_frame_alpha): New function.
9919 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9920
9921 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9922 * w32fns.c (w32_frame_parm_handlers): Likewise.
9923
9924 2008-05-20 Jason Rumney <jasonr@gnu.org>
9925
9926 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9927 truetype fonts to opentype list.
9928
9929 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
9930
9931 * fontset.c (Ffontset_info): Doc fix.
9932 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9933 <ignore-relative-composition>: Fix typos in docstrings.
9934
9935 * font.c (syms-of-font) <font-encoding-alist>:
9936 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9937 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9938 (Ffont_otf_alternates): Doc fixes.
9939
9940 2008-05-20 Kenichi Handa <handa@m17n.org>
9941
9942 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9943 font.h through out the file.
9944 (FONT_DRIVERS): Rename from FONTOBJ.
9945 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9946 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9947
9948 * emacs.c (main): Call syms_of_font unconditionally.
9949
9950 * font.h (find_font_encoding): Extern it.
9951
9952 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9953 fontset.c.
9954 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9955 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9956 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9957 only when HAVE_WINDOW_SYSTEM is defined.
9958 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9959 when HAVE_WINDOW_SYSTEM is defined.
9960
9961 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9962 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9963
9964 * xfaces.c: Include font.h unconditionally.
9965 (merge_face_ref, merge_face_vectors)
9966 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9967
9968 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9969
9970 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9971 indirect_variable.
9972 * eval.c (lisp_indirect_variable): New fun.
9973 (Fuser_variable_p): Use it.
9974
9975 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * lisp.h (indirect_variable):
9978 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9979 Use Lisp_Symbol pointers rather than Lisp_Object.
9980 Adjust callers.
9981 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9982 To this end, change calling-convention.
9983
9984 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9985 if some non-hidden buffers are selected by string&pred.
9986
9987 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
9988
9989 * process.c (wait_reading_process_output): Always check status
9990 when in batch mode.
9991
9992 2008-05-19 Kenichi Handa <handa@m17n.org>
9993
9994 * font.c (font_list_entities): Fix handling of cache.
9995 (font_matching_entity): Likewise.
9996
9997 * ftfont.c (cs_iso8859_1): Delete.
9998 (ft_face_cache): New variable.
9999 (struct ftfont_info): New member fc_charset_idx.
10000 (ftfont_build_basic_charsets): Delete.
10001 (fc_charset_table): New variable.
10002 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10003 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10004 Callers changed.
10005 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10006 (ftfont_spec_pattern): New argument fc_charset_idx.
10007 Check registry more rigidly. Change callers.
10008 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10009 change of :font-entity property of the font.
10010
10011 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10012 property of the font.
10013
10014 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10015
10016 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10017 (Funencodable_char_position, Fcheck_coding_systems_region)
10018 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10019 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10020 (Ffind_operation_coding_system, Fset_coding_system_priority)
10021 (Fcoding_system_eol_type): Doc fixes.
10022
10023 2008-05-17 Glenn Morris <rgm@gnu.org>
10024
10025 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10026
10027 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10028
10029 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10030 and st_gid.
10031
10032 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10033 HAVE_WINDOW_SYSTEM is not defined.
10034
10035 * xfaces.c (merge_face_ref, merge_face_vectors)
10036 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10037 HAVE_WINDOW_SYSTEM is defined.
10038 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10039
10040 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10041
10042 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10043
10044 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10045
10046 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10047
10048 2008-05-15 Kenichi Handa <handa@m17n.org>
10049
10050 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10051 preference.
10052
10053 2008-05-15 Glenn Morris <rgm@gnu.org>
10054
10055 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10056
10057 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10060 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10061
10062 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10063
10064 2008-05-15 Kenichi Handa <handa@m17n.org>
10065
10066 * ftfont.c (ftfont_list): Downcase family name to check generic
10067 families.
10068
10069 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10070 font-spec for QCfont value.
10071
10072 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10073 buffer. Check the return value of it.
10074
10075 2008-05-14 Jason Rumney <jasonr@gnu.org>
10076
10077 * w32term.c (w32_get_glyph_overhangs): Remove.
10078 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10079
10080 2008-05-14 Kenichi Handa <handa@m17n.org>
10081
10082 * font.c (font_prop_validate): Make nil a valid value.
10083 (font_clear_cache): Check if the cached vector of entities is nil
10084 or not.
10085
10086 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10087
10088 * emacs.c (main_thread): Conditionalize on
10089 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10090 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10091
10092 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10093 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10094 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10095
10096 2008-05-14 Kenichi Handa <handa@m17n.org>
10097
10098 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10099 has no corresponding coding system.
10100
10101 2008-05-14 Jason Rumney <jasonr@gnu.org>
10102
10103 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10104
10105 * w32font.h (w32font_open_internal): Update declaration.
10106
10107 * w32font.c (w32font_open_internal): Change last argument from
10108 w32font_info struct to font object. Fill in font object from
10109 font_entity. Get Outline metrics if possible. Use them to
10110 calculate underline position and thickness. Use xlfd name as name
10111 property. Don't set codepage.
10112 (w32font_open): Pass font_object to w32font_open_internal. Don't
10113 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10114 (w32font_draw): Use s->font.
10115 (clear_cached_metrics): Don't clear non-existent blocks.
10116
10117 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10118 font was not found.
10119 (x_draw_glyph_string): Use underline position and thickness from font.
10120
10121 * w32uniscribe.c (uniscribe_open): Pass font_object to
10122 w32font_open_internal.
10123
10124 2008-05-14 Kenichi Handa <handa@m17n.org>
10125
10126 These changes are to delete all legacy font-handling codes, and
10127 make Emacs use only font-backends.
10128
10129 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10130 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10131
10132 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10133
10134 * charset.h (Vcharset_non_preferred_head)
10135 (Vcurrent_iso639_language): Extern them.
10136
10137 * charset.c (Vcharset_non_preferred_head): New variable.
10138 (Vcurrent_iso639_language): New variable.
10139 (syms_of_charset): Declare it as a Lisp variable.
10140 (char_charset): Don't check non preferred charsets. As a last
10141 resort, return charset_unicode.
10142 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10143
10144 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10145 conditionals. Don't check enable_font_backend. Delete all codes
10146 used only when USE_FONT_BACKEND is not defined.
10147
10148 * dispextern.h (struct glyph_string): Change type of `font' to
10149 `struct font *'.
10150 (struct glyph_string): New member underline_position and
10151 underline_thickness.
10152 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10153 (struct face): Change type of `font' to `struct font *'. Remove
10154 members `font_name', `font_info_id'.
10155 (per_char_metric, encode_char): Delete externs.
10156 (calc_pixel_width_or_height): Adjust the prototype.
10157
10158 * emacs.c (enable_font_backend): Delete extern.
10159 (main): Don't set enable_font_backend. Don't check the command
10160 line argument "-disable-font-backend".
10161
10162 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10163 (enum font_property_index): New members FONT_DPI_INDEX,
10164 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10165 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10166 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10167 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10168 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10169 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10170 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10171 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10172 (struct font_spec, struct font_entity): New structs.
10173 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10174 (struct font): Many members from old "struct font_info" moved to
10175 here. Members font and entity deleted.
10176 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10177 the new font-related objects.
10178 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10179 (CHECK_FONT_GET_OBJECT): Likewise.
10180 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10181 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10182 (struct font_driver): New members case_sensitive anc check. Type
10183 of the member list and open changed.
10184 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10185 (font_symbolic_width, font_find_object, font_get_spec)
10186 (font_set_lface_from_name): Delete extern.
10187 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10188
10189 * font.c: Include <strings.h>.
10190 (enable_font_backend): Delete it.
10191 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10192 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10193 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10194 (null_string): Delete it.
10195 (null_vector): Make it static.
10196 (font_family_alist): Delete it.
10197 (Qnormal): Extern it.
10198 (QCextra, QClanguage): Delete it.
10199 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10200 (font_make_spec, font_make_entity, font_make_object)
10201 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10202 the string. Callers changed.
10203 (font_pixel_size): Adjusted for the format change of font-related
10204 objects.
10205 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10206 (font_style_to_value, font_style_symbolic): New function.
10207 (build_font_family_alist): Delete it.
10208 (font_registry_charsets): Use Fassoc_string instead of
10209 assq_no_quit.
10210 (font_prop_validate_symbol): Don't return null_string.
10211 (font_prop_validate_style): Adjusted for the change of
10212 style-related values in a font vector.
10213 (font_property_table): Delete entries for QClanguage and
10214 QCantialias, add entries for QCavgwidth.
10215 (get_font_prop_index): Delete the 2nd argument FROM.
10216 (font_prop_validate): Arguments changed.
10217 (font_put_extra): Adjusted for the change of font-related objects.
10218 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10219 (font_parse_fcname, font_unparse_fcname)
10220 (font_prepare_composition): Likewise.
10221 (font_parse_family_registry): Renamed from font_merge_old_spec.
10222 (otf_open): Delete the 1st arg entity.
10223 (font_otf_capability): Adjusted for the above change.
10224 (font_score): New arg alternate_families. Adjusted for the change
10225 of font-related objects.
10226 (font_sort_entites): New arg best_only.
10227 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10228 Delete them.
10229 (font_match_p): Check alternate families.
10230 (font_find_object): Delete it.
10231 (font_check_object): New function.
10232 (font_clear_cache): Adjusted for the change of font-related objects.
10233 (font_delete_unmatched): New arg.
10234 (font_list_entities): Call font_driver->list with a spec that
10235 doesn't specify style-related properties.
10236 (font_matching_entity): Arguments changed. Caller changed.
10237 (font_open_entity): Adjusted for the change of font-related objects.
10238 (font_close_object, font_has_char, font_encode_char)
10239 (font_get_name, font_get_spec): Likewise.
10240 (font_spec_from_name, font_clear_prop, font_update_lface):
10241 New functions.
10242 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10243 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10244 (font_at): Adjusted for the change of font-related objects.
10245 (font_range): New function.
10246 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10247 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10248 (Fcopy_font_spec, Fmerge_font_spec): New function.
10249 (Ffont_family_list): Renamed from list-families.
10250 (Finternal_set_font_style_table): Arguments changed.
10251 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10252 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10253 change of font-related objects.
10254 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10255
10256 * fontset.h (struct font_info): Delete it. Most members go to
10257 struct font.
10258 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10259 (enum FONT_SPEC_INDEX): Delete it.
10260 (font_info, list_fonts_func, load_font_func, query_font_func)
10261 (set_frame_fontset_func, find_ccl_program_func)
10262 (get_font_repertory_func, new_fontset_from_font_name): Delete
10263 externs.
10264 (fontset_from_font_name): Extern it.
10265 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10266 (FONT_INFO_FROM_FACE): Deleted.
10267 (face_for_font): Adjust prototype.
10268
10269 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10270 conditionals. Don't check enable_font_backend. Delete all codes
10271 used only when USE_FONT_BACKEND is not defined.
10272 (get_font_info_func, list_font_func, load_font_func)
10273 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10274 (get_font_repertory_func): Delete them.
10275 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10276 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10277 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10278 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10279 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10280 (fontset_compare_rfontdef): New function.
10281 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10282 rfont-defs by qsort. Adjusted for the change of font-group vector.
10283 (load_font_get_repertory): Deleted.
10284 (fontset_find_font): Use new macros to ref/set elements of
10285 font-def and rfont-def.
10286 (fontset_font): Fix the timing of remembering that no font for C.
10287 (free_face_fontset): Do nothing if the face has no fontset.
10288 (face_suitable_for_char_p): Use new macros to ref/set elements of
10289 rfont-def.
10290 (face_for_char): Likewise. Call face_for_char with font_object.
10291 (fs_load_font): Delete. Delete #pragma surrounding it.
10292 (fs_query_fontset): Use strcasecmp instead of strcmp.
10293 (generate_ascii_font_name): Adjusted for the format change of
10294 font-spec.
10295 (Fset_fontset_font): Likewise. Use new macros to set elements of
10296 font-def.
10297 (Fnew_fontset): Use font_unparse_xlfd to generate
10298 FONTSET_ASCII (fontset).
10299 (new_fontset_from_font_name): Deleted.
10300 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10301 a fontset is already created for the font. FIx updating of
10302 Vfontset_alias_alist.
10303 (fontset_ascii_font): Deleted.
10304 (Ffont_info): Adjusted for the format change of font-spec.
10305 (Finternal_char_font): Likewise.
10306 (Ffontset_info): Likewise.
10307 (syms_of_fontset): Don't check load_font_func.
10308
10309 * fns.c (internal_equal): Handle PREV_FONT.
10310
10311 * frame.h: Delete USE_FONT_BACKEND conditional.
10312
10313 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10314 conditionals. Don't check enable_font_backend. Delete all codes
10315 used only when USE_FONT_BACKEND is not defined.
10316 (x_set_font): Call x_new_font, not x_new_fontset2.
10317 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10318 already set for the frame.
10319
10320 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10321 a font-entity by font_make_entity. Use font_intern_prop instead
10322 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10323 font property. If a font is scalable, set avgwidth property to 0.
10324 Set font-entity property by font_put_extra.
10325 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10326 (ffont_driver): Adjusted for the change of struct font_driver.
10327 (ftfont_spec_pattern): New function.
10328 (ftfont_list): Return a list, not vector.
10329 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10330 (ftfont_list_family): Don't downcase names.
10331 (ftfont_free_entity): Deleted.
10332 (ftfont_open): Return a font-object. Adjusted for the change of
10333 struct font. Get underline_thickness and underline_position from
10334 font property. Don't update dpyinfo->smallest_font_height and
10335 dpyinfo->smallest_char_width.
10336 (ftfont_close): Don't free `struct font'.
10337 (ftfont_has_char): Adjusted for the format change of font-entity.
10338 (ftfont_encode_char, ftfont_text_extents): Likewise.
10339
10340 * ftxfont.c (ftxfont_list): Return a list, not vector.
10341 (ftxfont_open): Return a font-object. Adjusted for the change of
10342 struct font. Get underline_thickness and underline_position from
10343 font property. Don't update dpyinfo->smallest_font_height and
10344 dpyinfo->smallest_char_width.
10345 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10346 (ftxfont_draw): Adjusted for the change of struct font.
10347
10348 * image.c (image_ascent): Don't include "charset.h". Include
10349 "character.h" and "font.h".
10350
10351 * lisp.h (enum pvec_type): New member PREV_FONT.
10352 (Fassoc_string): EXFUN it.
10353
10354 * print.c: Include font.h.
10355 (print_object): Handle font-related objects.
10356
10357 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10358 conditionals. Don't check enable_font_backend. Delete all codes
10359 used only when USE_FONT_BACKEND is not defined.
10360 (handle_auto_composed_prop): Do nothing if it->f is not on a
10361 window system. Check how many following characters can be
10362 displayed by the same font.
10363 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10364 'struct font *'.
10365 (get_char_face_and_encoding): Assign the whole encoding task to
10366 the `encode-char' method of a font driver.
10367 (fill_composite_glyph_string): Adjusted for the change of `struct
10368 face' and `struct glyph_string'.
10369 (fill_glyph_string): Likewise.
10370 (get_per_char_metric): Arguments changed.
10371 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10372 and `struct glyph_string'.
10373 (produce_stretch_glyph, calc_line_height_property)
10374 (x_produce_glyphs): Likewise.
10375
10376 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10377 conditionals. Don't check enable_font_backend. Delete all codes
10378 used only when USE_FONT_BACKEND is not defined. Use
10379 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10380 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10381 (Qp): Extern them.
10382 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10383 Deleted.
10384 (struct font_name): Deleted.
10385 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10386 (compare_fonts_by_sort_order): New function.
10387 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10388 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10389 Deleted.
10390 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10391 compare_fonts_by_sort_order.
10392 (Fx_font_family_list): Call Ffont_family_list.
10393 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10394 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10395 (face_symbolic_slant, face_symbolic_swidth)
10396 (split_font_name_into_vector, build_font_name_from_vector)
10397 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10398 (font_rescale_ratio, split_font_name, build_font_name)
10399 (free_font_names, sort_fonts, x_face_list_fonts)
10400 (face_font_available_p, sorted_font_list, cmp_font_names)
10401 (font_list_1, concat_font_list, font_list, remove_duplicates):
10402 Deleted.
10403 (Fx_list_fonts): Use Ffont_list.
10404 (LFACE_AVGWIDTH): Deleted.
10405 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10406 by FONTP.
10407 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10408 (set_lface_from_font_name): Delete it.
10409 (set_lface_from_font): Renamed from
10410 set_lface_from_font_and_fontset. Caller changed. Don't set
10411 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10412 for face.
10413 (merge_face_vectors): Copy font-spec if necessary.
10414 Clear properties of the font-spec if necessary.
10415 (merge_face_ref): Clear properties of the font-spec if necessary.
10416 (Finternal_set_lisp_face_attribute): Likewise.
10417 (set_font_frame_param): Use font_load_for_lface to load a
10418 font-object, and call Fmodify_frame_parameters with it.
10419 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10420 font name by Ffont_xlfd_name.
10421 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10422 QCslant, and QCwidth.
10423 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10424 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10425 Compare fonts by EQ.
10426 (lookup_non_ascii_face): Deleted.
10427 (face_for_font): The 2nd argument changed.
10428 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10429 Check atomic font properties by case insensitive.
10430 (realize_non_ascii_face): Set face->overstrike correctly.
10431 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10432 (dump_realized_face): Get font name from
10433 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10434
10435 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10436 conditionals. Don't check enable_font_backend. Delete all codes
10437 used only when USE_FONT_BACKEND is not defined.
10438 (xic_create_xfontset): Original code deleted and renamed from
10439 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10440 (x_make_gc): Don't set GCFont in GCs.
10441 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10442 opened by "fixed".
10443 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10444 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10445 get_font_repertory_func.
10446
10447 * xfont.c: Include <stdlib.h> and "ccl.h".
10448 (struct xfont_info): New structure.
10449 (xfont_query_font): Deleted.
10450 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10451 moved from xterm.c.
10452 (xfont_driver): Adjusted for the change of struct font_driver.
10453 (compare_font_names): New function.
10454 (xfont_list_pattern): Sort font names case insensitively. Make
10455 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10456 (xfont_list): Return a list, not vector.
10457 (xfont_match): If the font doesn't have QCname property, generate
10458 a name from the other font properties.
10459 (xfont_open): Return a font-object. Adjusted for the change of
10460 struct font. Get underline_thickness and underline_position from
10461 font property. Don't update dpyinfo->smallest_font_height and
10462 dpyinfo->smallest_char_width.
10463 (xfont_close): Don't free struct font.
10464 (xfont_prepare_face): Adjusted for the change of struct font.
10465 (xfont_done_face): Deleted.
10466 (xfont_has_char): Adjusted for the change of struct font.
10467 (xfont_encode_char, xfont_draw): Likewise.
10468 (xfont_check): New function.
10469
10470 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10471 callback function.
10472 (xftfont_match): Adjusted for the format change of font-entity.
10473 (xftfont_open): Adjusted for the format change of font-entity and
10474 font-object. Adjusted for the change of struct font. Return a
10475 font-object. Don't update dpyinfo->smallest_font_height and
10476 dpyinfo->smallest_char_width.
10477 (xftfont_close): Block input while calling XftFontClose.
10478 (xftfont_prepare_face): Don't block input while calling
10479 xftfont_get_colors. Adjusted for the change of struct font.
10480 (xftfont_shape): Return value of error case fixed.
10481
10482 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10483
10484 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10485 conditionals.
10486 (FONT_WIDTH): Return (f)->max_width.
10487 (struct x_display_info): Delete member `font'.
10488 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10489 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10490 (struct x_output): Change type of `font' to `struct font *'.
10491
10492 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10493 conditionals. Don't check enable_font_backend. Delete all codes
10494 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10495 (x_per_char_metric, x_encode_char): Deleted.
10496 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10497 (x_compute_glyph_string_overhangs): Adjusted for the change of
10498 `struct face'.
10499 (x_draw_glyph_string_foreground)
10500 (x_draw_composite_glyph_string_foreground): Likewise.
10501 (x_draw_glyph_string): Likewise. Use font->underline_position and
10502 font->underline_thickness.
10503 (x_new_font): Renamed from x_new_fontset2.
10504 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10505 (x_check_font): Call `check' method of a font driver.
10506 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10507 (x_query_font, x_get_font_repertory): Deleted.
10508 (x_find_ccl_program): Renamed and moved to xfont.c.
10509 (x_redisplay_interface): Adjusted for the change of `struct
10510 redisplay_interface'.
10511
10512 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10513 conditionals. Don't check enable_font_backend. Delete all codes
10514 used only when USE_FONT_BACKEND is not defined. Surround non-used
10515 code by "#ifdef OLD_FONT" and "endif".
10516 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10517
10518 * w32font.h (struct w32font_info): New member.
10519 (FONT_COMPAT): New macro.
10520 (w32font_open_internal): Prototype adjusted.
10521
10522 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10523 OLD_FONT" and "endif".
10524
10525 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10526 conditionals. Don't check enable_font_backend. Delete all codes
10527 used only when USE_FONT_BACKEND is not defined.
10528 (w32font_open): Return a font-object. Make a font-object by
10529 font_make_object. Adjusted for the change of struct w32font_info.
10530 (w32font_close): Don't free struct font. Adjusted for the change
10531 of struct w32font_info.
10532 (w32font_encode_char, w32font_text_extents, w32font_draw):
10533 Adjusted for the change of struct w32font_info.
10534 (w32font_draw): Likewise.
10535 (w32font_list_internal): Return a list, not vector.
10536 (w32font_open_internal): Change the 4th arg to font-object.
10537 Adjusted for the change of struct w32font_info and font-object format.
10538 (add_font_name_to_list): Don't downcase names.
10539 (w32_enumfont_pattern_entity): Make a font-entity by
10540 font_make_entity. Adjusted for the format change of font-entity.
10541 Use FONT_SET_STYLE to set a style-related font property. If a
10542 font is scalable, set avgwidth property to 0. Set font-entity
10543 property by font_put_extra.
10544 (font_matches_spec): Adjusted for the format change of font-entity.
10545 (w32_weight_table, w32_decode_weight): New variables.
10546 (w32_encode_weight): New function.
10547 (fill_in_logfont): Adjusted for the format change of font-spec.
10548 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10549 weight value.
10550 (w32font_driver): Adjusted for the change of struct font_driver.
10551
10552 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10553 conditionals. Don't check enable_font_backend. Surround non-used
10554 code by "#ifdef OLD_FONT" and "endif".
10555 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10556 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10557
10558 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10559 conditionals. Don't check enable_font_backend. Delete all codes
10560 used only when USE_FONT_BACKEND is not defined. Surround non-used
10561 code by "#ifdef OLD_FONT" and "endif".
10562
10563 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10564 (uniscribe_open): Return value changed to font-object.
10565 Adjusted for the format change of font-object.
10566 (uniscribe_otf_capability): Adjusted for the change of struct font.
10567 (add_opentype_font_name_to_list): Don't downcase names.
10568 (uniscribe_font_driver): Adjusted for the change of struct
10569 font_driver.
10570
10571 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * dispnew.c (update_frame_1): Check if tty output is still valid
10574 before flushing it.
10575
10576 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10577
10578 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10579 to Gtk+ menus.
10580
10581 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10582
10583 * dired.c (file_name_completion): Tweak the code so as to always do it
10584 in a single pass. Tighten the scope of some variables.
10585
10586 * dired.c (Qdefault_directory): New var.
10587 (file_name_completion): Use it instead of Fexpand_file_name.
10588 (syms_of_dired): Initialize it.
10589
10590 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10591
10592 * fileio.c (double_dollars): Remove dead code.
10593
10594 2008-05-10 Eli Zaretskii <eliz@gnu.org>
10595
10596 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10597 Mention w32-get-true-file-attributes in doc string.
10598
10599 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10600
10601 2008-05-09 Glenn Morris <rgm@gnu.org>
10602
10603 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10604 2008-04-23.
10605
10606 2008-05-09 Eli Zaretskii <eliz@gnu.org>
10607
10608 Support for reporting owner and group of each file on MS-Windows:
10609 * dired.c (stat_uname, stat_gname): New functions, with special
10610 implementation for w32.
10611 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10612
10613 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10614 (dflt_group_name): New static variable.
10615 (dflt_group): Rename from the_group.
10616 (init_user_info): Init dflt_group fields. Get user's group name
10617 from LookupAccountSid.
10618 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10619 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10620 New initialization states.
10621 (globals_of_w32): Initialize them to zero. Initialize the default
10622 group name to "None".
10623 (GetFileSecurity_Name): New global var, the name of the function
10624 to call for GetFileSecurity.
10625 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10626 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10627 (get_file_security, get_security_descriptor_owner)
10628 (get_security_descriptor_group, is_valid_sid)
10629 (get_file_security_desc, get_rid, get_name_and_id)
10630 (get_file_owner_and_group): New functions.
10631 (stat): Use get_file_security_desc and get_file_owner_and_group to
10632 report the owner and primary group of each file. Don't ignore the
10633 high 32 bits of file's size, now that st_size is 64-bit wide.
10634 Fix test when to get true file attributes.
10635 (init_user_info): Use get_rid instead of equivalent inline code.
10636 (fstat): Don't ignore the high 32 bits of file's size.
10637
10638 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
10639
10640 * image.c (png_load): Use correct bit-depth for setting background
10641 color.
10642
10643 2008-05-08 Eli Zaretskii <eliz@gnu.org>
10644
10645 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10646 epa-hook.elc.
10647
10648 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
10649
10650 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10651
10652 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10653
10654 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10655 because the original parameters are in pure storage now.
10656 (mac_window): Remove unused params. Update callers.
10657
10658 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10659
10660 * lread.c (substitute_object_recurse): Use lower-level primitives.
10661 Don't signal errors when traversing sub-char-tables.
10662 Don't loop over all the possible characters when traversing char-tables.
10663
10664 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10665 just like we do in print.c.
10666
10667 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10668
10669 * minibuf.c (Ftry_completion): Remove code left over from when we used
10670 scmp instead of Fcompare_strings.
10671
10672 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
10673
10674 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10675
10676 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10677
10678 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10679 Create bitmap context in native byte order.
10680
10681 * macterm.c (XDrawLine)
10682 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10683 context in native byte order.
10684
10685 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10686
10687 * config.in: Regenerate.
10688
10689 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10690 New definitions for Image I/O support.
10691 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10692 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10693 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10694 (mac_data_provider_release_data, image_load_image_io)
10695 [USE_MAC_IMAGE_IO]: New functions.
10696 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10697 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10698 (init_image_func_pointer) [MAC_OSX]: Remove function.
10699 (image_load_quartz2d) [MAC_OSX]: Check availability of
10700 CGImageCreateWithPNGDataProvider at compile time.
10701 Use lowercase `false' for boolean constant.
10702 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10703 Use image_load_image_io.
10704 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10705 Don't check MyCGImageCreateWithPNGDataProvider.
10706 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10707 Don't call init_image_func_pointer.
10708
10709 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10710
10711 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10712 Make variable non-static.
10713 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10714 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10715
10716 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10717 (RED_FROM_ULONG): Mask off higher bits.
10718 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10719
10720 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10721 Include AvailabilityMacros.h.
10722 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10723 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10724
10725 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10726
10727 * chartab.c (Fset_char_table_range): If range is t, really set all
10728 chars to that value.
10729
10730 2008-05-03 Eli Zaretskii <eliz@gnu.org>
10731
10732 * dired.c (Ffile_attributes): Don't allow the device number become
10733 negative.
10734
10735 2008-05-02 Daiki Ueno <ueno@unixuser.org>
10736
10737 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10738
10739 2008-05-02 Juri Linkov <juri@jurta.org>
10740
10741 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10742 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10743 DEFAULT argument as a list of default values in docstrings.
10744
10745 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10748
10749 2008-05-01 Martin Rudalics <rudalics@gmx.at>
10750
10751 * dispnew.c (change_frame_size_1): Preserve small windows when
10752 shrinking frames by calling set_window_height|width with third
10753 arg 2.
10754
10755 * window.h (struct window): Replace field too_small_ok by field
10756 resize_proportionally.
10757
10758 * window.c (make_window): Initialize resize_proportionally.
10759 (enlarge_window): Temporarily set resize_proportionally to make
10760 sure that shrink_windows does scale the window proportionally.
10761 (shrink_windows): When window has resize_proportionally set try
10762 to shrink it proportionally by stealing from other windows.
10763 (struct saved_window, Fset_window_configuration)
10764 (compare_window_configurations): Handle resize_proportionally.
10765 (WINDOW_TOTAL_SIZE): New macro.
10766 (window_min_size, shrink_windows, size_window): Use it.
10767 (check_min_window_sizes): Remove. Invalid values of
10768 window-min-height|width are handled by window_min_size_2 now.
10769 (size_window, Fsplit_window, enlarge_window)
10770 (adjust_window_trailing_edge, grow_mini_window): Don't call
10771 check_min_window_sizes.
10772 (window_min_size_2, window_min_size_1, window_min_size):
10773 New argument safe_p for retrieving "safe" minimum sizes.
10774 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10775 (adjust_window_trailing_edge, grow_mini_window):
10776 Adjust arguments of window_min_size... functions.
10777 (shrink_windows): Argument min_size removed. New argument
10778 safe_p allows shrinking windows to their safe minimum sizes.
10779 Calculate minimum size and decide whether a window shall be
10780 deleted for each window individually.
10781 (size_window): When nodelete_p equals 2, tell shrink_windows to
10782 delete windows only if their new minimum size is no more safe.
10783 (shrink_window_lowest_first): Call window_min_size_1 to make
10784 sure to preserve modeline of bottom-most window when resizing
10785 the minibuffer.
10786 (Fset_window_configuration, Fcurrent_window_configuration)
10787 (compare_window_configurations): Do not handle
10788 window-min-height|width any more.
10789 (syms_of_window): Clarify window-min-height|width doc-strings.
10790
10791 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10792
10793 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10794 some more. Copy some of the code from Ftry_completions.
10795 Remove special case code that dates back to initial revision when the
10796 slash was only added when necessary and that can't trigger nowadays.
10797
10798 2008-04-27 Kenichi Handa <handa@m17n.org>
10799
10800 * font.c (font_prop_validate): Signal `error' instead of `font'.
10801
10802 2008-04-29 Jason Rumney <jasonr@gnu.org>
10803
10804 * w32fns.c (Fw32_battery_status): New defun.
10805 (syms_of_w32fns): Defsubr it.
10806
10807 2008-04-28 Andreas Schwab <schwab@suse.de>
10808
10809 * dired.c (file_name_completion): Fix another mixing of encoded
10810 and decoded names.
10811
10812 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
10813
10814 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10815
10816 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
10817
10818 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10819
10820 2008-04-27 Andreas Schwab <schwab@suse.de>
10821
10822 * dired.c (file_name_completion): Fix inappropriate mixing of
10823 encoded and decoded names.
10824
10825 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10826
10827 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10828
10829 2008-04-26 Eli Zaretskii <eliz@gnu.org>
10830
10831 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10832 2008-03-31, it's not needed anymore with `struct stat' definition
10833 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10834 for the same reasons.
10835
10836 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10837
10838 * m/sparc.h: Additional redefinitions for GNU/Linux.
10839
10840 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10841
10842 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10843 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10844 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10845 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10846 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10847 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10848 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10849 Likewise.
10850
10851 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10852 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10853 (mac_ax_number_of_characters): Add externs.
10854 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10855 [USE_MAC_TSM]: Likewise.
10856 (mac_handle_text_input_event) [MAC_OSX]:
10857 Handle kEventTextInputOffsetToPos for no active input area case.
10858 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10859 (mac_handle_document_access_event)
10860 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10861 (install_application_handler) [MAC_OSX]: Register handlers for
10862 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10863 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10864 Register mac_handle_document_access_event.
10865
10866 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10867 Make functions non-static.
10868
10869 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10870
10871 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10872 (read_file_name_completion_ignore_case, insert_default_directory)
10873 (Qdefault_directory): Move to minibuffer.el.
10874 (Fread_file_name): Call the new `read-file-name' instead.
10875
10876 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10877
10878 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10879 Make function non-static.
10880 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10881 Remove function.
10882 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10883 Move to mactoolbox.c.
10884 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10885
10886 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10887 (mac_rect_make): New macro.
10888
10889 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10890 instead of float.
10891 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10892 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10893 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10894 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10895 CGRectMake.
10896 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10897 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10898 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10899 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10900 instead of WindowRef in argument type.
10901 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10902 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10903 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10904 instead of DISPLAY. All uses changed.
10905 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10906 (x_calc_absolute_position): Simplify so as not to use
10907 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10908
10909 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10910 instead of WindowRef in argument type.
10911 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10912 [TARGET_API_MAC_CARBON]: Remove externs.
10913 (create_apple_event, mac_event_parameters_to_lisp)
10914 [TARGET_API_MAC_CARBON]: Add externs.
10915
10916 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10917 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10918 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10919 is clicked.
10920 (x_activate_menubar): Remove extern for saved_menu_event_location.
10921 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10922 Move from mac.c.
10923
10924 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10925
10926 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10927 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10928
10929 2008-04-23 Jason Rumney <jasonr@gnu.org>
10930
10931 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10932 attributes only for local files.
10933
10934 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10935 default to Qlocal.
10936
10937 2008-04-22 Juri Linkov <juri@jurta.org>
10938
10939 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10940 read-buffer-to-switch instead of using the letter "B".
10941
10942 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10943
10944 * fileio.c (Qdefault_directory): New variable.
10945 (Fread_file_name): Use it to pass `dir' to the completion functions.
10946
10947 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
10948
10949 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10950
10951 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10952
10953 * keyboard.c (Vpre_help_message): Remove.
10954 (show_help_echo): Remove default C code.
10955
10956 * dired.c (directory_files_internal, file_name_completion):
10957 Only call ENCODE_FILE if the string is indeed decoded.
10958
10959 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10960
10961 * Makefile.in (TOOLKIT_DEFINES): Remove.
10962 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10963
10964 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10965
10966 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10967 (mactoolbox.o): New target.
10968
10969 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10970 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10971
10972 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10973 Use mac_set_frame_window_background instead of XSetWindowBackground.
10974 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10975 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10976 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10977 instead of SetWindowTitleWithCFString.
10978 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10979 Move function to mactoolbox.c.
10980 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10981 Use mac_set_window_modified instead of SetWindowModified.
10982 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10983 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10984 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10985 FrontNonFloatingWindow. Use mac_activate_window instead of
10986 ActivateWindow. Use mac_active_non_floating_window instead of
10987 ActiveNonFloatingWindow.
10988 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10989 Use mac_show_hourglass and mac_hide_hourglass.
10990 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10991 instead of GetGlobalMouse.
10992 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10993 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10994 Use mac_bring_window_to_front instead of BringToFront.
10995 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10996 mactoolbox.c.
10997 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10998 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10999 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11000 mactoolbox.c.
11001
11002 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11003 (XtPointer): Move typedef from macmenu.c.
11004 (enum button_type): Move enum from macmenu.c.
11005 (widget_value): Move typedef from macmenu.c.
11006 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11007 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11008 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11009 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11010 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11011 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11012 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11013 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11014 (Selection): Move typedef from macselect.c.
11015 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11016 macterm.c.
11017 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11018 (mac_is_window_collapsed, mac_bring_window_to_front)
11019 (mac_send_window_behind, mac_hide_window, mac_show_window)
11020 (mac_collapse_window, mac_front_non_floating_window)
11021 (mac_active_non_floating_window, mac_activate_window)
11022 (mac_move_window_structure, mac_move_window, mac_size_window)
11023 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11024
11025 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11026 (enum mac_menu_kind): Move enum to mactoolbox.c.
11027 (min_menu_id): Move variable to mactoolbox.c.
11028 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11029 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11030 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11031 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11032 [TARGET_API_MAC_CARBON]: Likewise.
11033 (XtPointer): Move typedef to macgui.h.
11034 (enum button_type): Move enum to macgui.h.
11035 (widget_value): Move typedef to macgui.h.
11036 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11037 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11038 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11039 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11040 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11041 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11042 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11043 (popup_activated_flag): Make variable non-static.
11044 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11045 (add_menu_item, fill_menu, dispose_menus):
11046 Move functions to mactoolbox.c.
11047 (restore_show_help_function, menu_target_item_handler)
11048 (install_menu_target_item_handler, mac_handle_dialog_event)
11049 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11050 [TARGET_API_MAC_CARBON]: Likewise.
11051 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11052 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11053 (find_and_call_menu_selection, name_is_separator): Make function
11054 non-static.
11055 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11056 to mactoolbox.c.
11057 (set_frame_menubar): Don't call install_menu_quit_handler.
11058 (menu_item_selection): New variable.
11059 (mac_menu_show): Use create_and_show_popup_menu.
11060 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11061 selection but set variable menu_item_selection. All uses changed.
11062 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11063 Call install_menu_quit_handler. Move to mactoolbox.c.
11064
11065 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11066 (Selection): Move typedef to macgui.h.
11067 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11068 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11069 Make variables non-static.
11070 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11071 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11072 Make functions non-static.
11073 (Vmac_service_selection) [MAC_OSX]: Likewise.
11074 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11075 (mac_valid_selection_target_p, mac_clear_selection)
11076 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11077 (mac_put_selection_value, mac_selection_has_target_p)
11078 (mac_get_selection_value, mac_get_selection_target_list)
11079 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11080 Move functions to mactoolbox.c.
11081 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11082 Likewise.
11083 (copy_scrap_flavor_data, mac_handle_service_event)
11084 (install_service_handler) [MAC_OSX]: Likewise.
11085 (syms_of_macselect) <Vmac_dnd_known_types>:
11086 Use mac_dnd_default_known_types.
11087
11088 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11089 Move to mactoolbox.c.
11090 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11091 (Fx_selection_owner_p): Add EXFUN.
11092 (install_window_handler, remove_window_handler, XSetWindowBackground):
11093 Remove externs.
11094 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11095 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11096 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11097 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11098 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11099 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11100 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11101 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11102 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11103 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11104 (mac_valid_selection_target_p, mac_clear_selection)
11105 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11106 (mac_put_selection_value, mac_selection_has_target_p)
11107 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11108 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11109 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11110 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11111 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11112 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11113 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11114 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11115 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11116
11117 * mactoolbox.c: New file.
11118
11119 2008-04-18 Jason Rumney <jasonr@gnu.org>
11120
11121 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11122
11123 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11124
11125 * character.c (Fmultibyte_char_to_unibyte):
11126 Return latin1 chars unchanged.
11127
11128 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11129 relocated if it points to `name'.
11130
11131 2008-04-17 Kenichi Handa <handa@m17n.org>
11132
11133 * data.c (Faset): Allow setting a multibyte character in an
11134 ASCII-only unibyte string.
11135
11136 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11137
11138 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11139
11140 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11141 done in config.h.
11142
11143 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11144
11145 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11146 (Fchar_direction): Add usage in the docstring.
11147
11148 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11149
11150 * keyboard.c (read_key_sequence): Remove always-true checks.
11151
11152 2008-04-14 Jason Rumney <jasonr@gnu.org>
11153
11154 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11155 compatibility struct, for better underline positioning.
11156
11157 2008-04-13 David Hansen <david.hansen@gmx.net>
11158
11159 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11160 string.
11161
11162 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11163
11164 * m/hp800.h (XUINT, XSET): Remove.
11165
11166 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11167
11168 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11169 previous change.
11170
11171 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11172
11173 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11174 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11175
11176 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11177
11178 * keymap.h (map_keymap_canonical): Declare.
11179 * xmenu.c (single_keymap_panes): Use it.
11180
11181 2008-04-11 Glenn Morris <rgm@gnu.org>
11182
11183 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11184 set the target's value to that of the alias.
11185
11186 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11187
11188 * term.c (set_tty_color_mode): Left over typo.
11189
11190 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11191
11192 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11193 only after check for file name handler functions. Signal, when
11194 native functionality is not supported.
11195 (syms_of_fileio): Declare it unconditionally.
11196
11197 2008-04-10 Jason Rumney <jasonr@gnu.org>
11198
11199 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11200 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11201
11202 * w32.c (logon_network_drive): Also logon to remote drives that
11203 are mapped to drive letters.
11204
11205 2008-04-10 Glenn Morris <rgm@gnu.org>
11206
11207 * xdisp.c (truncate-partial-width-windows): Doc fix.
11208
11209 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11210
11211 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11212 Move functions to minibuffer.el.
11213 (syms_of_fileio): Don't declare them.
11214
11215 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11216
11217 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11218 (syms_of_minibuf): Remove its initialization.
11219
11220 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11221
11222 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11223
11224 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11225
11226 2008-04-09 Jason Rumney <jasonr@gnu.org>
11227
11228 * makefile.w32-in (distclean): Delete makefile too.
11229 (maintainer-clean): New target.
11230
11231 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11232
11233 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11234 for new font backend and composite cases.
11235
11236 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11237
11238 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11239 Most of the code moved to run_timers.
11240 (do_pending_atimers): Call run_timers.
11241 (run_timers): New function.
11242
11243 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11244 run atimers.
11245
11246 * process.c (wait_reading_process_output): The same as above.
11247
11248 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11249
11250 * minibuf.c (last_exact_completion): Remove variable.
11251 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11252 (complete_and_exit_1, complete_and_exit_2)
11253 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11254 (Fdisplay_completion_list, display_completion_list_1)
11255 (Fminibuffer_completion_help, Fself_insert_and_exit)
11256 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11257 minibuffer.el.
11258 (syms_of_minibuf): Remove corresponding initializations.
11259
11260 * keyboard.c (Qdeactivate_mark): New var.
11261 (command_loop_1): Use it to call `deactivate-mark'.
11262 (syms_of_keyboard): Initialize it.
11263
11264 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11265 to another frame.
11266 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11267 Don't call set_tty_color_mode.
11268 (store_frame_param): Reset previous_frame rather than call
11269 set_tty_color_mode.
11270 * term.c (set_tty_color_mode): Rewrite.
11271 * dispextern.h (set_tty_color_mode): New type.
11272 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11273
11274 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11275
11276 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11277 for generic chars, which do not exist any more in emacs-unicode.
11278
11279 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
11280
11281 * coding.c (detect_coding_emacs_mule)
11282 (Ffind_operation_coding_system): Fix typo.
11283
11284 2008-04-08 Jason Rumney <jasonr@gnu.org>
11285
11286 * w32uniscribe.c (SNAME): Extract only symbol name.
11287
11288 * w32font.h (struct w32_metric_cache): New struct.
11289 (w32font_info): Use it.
11290 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11291 (CACHE_BLOCKSIZE): New constants.
11292
11293 * w32font.c (Qja, Qko, Qzh): New symbols.
11294 (syms_of_w32font): Initialise them.
11295 (font_matches_spec): Use them to filter by language.
11296 (recompute_cached_metrics): Remove function.
11297 (compute_metrics, clear_cached_metrics): New functions.
11298 (w32font_encode_char): Use them to manage metric cache.
11299 (w32font_text_extents): Cache metrics for all glyphs on demand.
11300 Delay converting glyph indices to WORD until needed.
11301 (w32font_open_internal): Initialize metric cache to empty.
11302 (registry_to_w32_charset): Charset should always be a symbol.
11303 (fill_in_logfont, list_all_matching_fonts): Family should
11304 always be a symbol.
11305
11306 2008-04-06 Jason Rumney <jasonr@gnu.org>
11307
11308 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11309 Give up if glyph indices not supported. Use uniscribe obtained
11310 ABC widths for individual metrics. Map glyph clusters back to
11311 characters using fClusterStart flag. Return number of glyphs
11312 produced, not chars processed.
11313 (uniscribe_shape): Map char at FROM to current glyph.
11314
11315 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11316
11317 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11318 Use SetMenuItemHierarchicalMenu.
11319
11320 2008-04-05 Jason Rumney <jasonr@gnu.org>
11321
11322 * image.c (pbm_load): Allow color values up to 65535.
11323 Throw an error if max_color_idx is outside the supported range.
11324 Report an error when image size is invalid.
11325 Read two bytes at a time when raw images have max_color_idx above 255.
11326
11327 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11328
11329 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11330 cFileName a file name that includes `?' characters, use the 8+3
11331 alias in cAlternateFileName instead.
11332
11333 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11334
11335 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11336 append "CCL: Quitted" when the CCL program is quitted.
11337 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11338
11339 * ccl.h (struct ccl_program): New member quit_silently.
11340
11341 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
11342
11343 * search.c (compile_pattern_1): Treat non-nil and non-string of
11344 search-spaces-regexp as nil.
11345
11346 * minibuf.c (Fassoc_string): Tweak docstring.
11347
11348 2008-04-05 Eli Zaretskii <eliz@gnu.org>
11349
11350 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11351 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11352 2008-03-14 to force inode be positive.
11353
11354 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11355 _S_* ones, since we now use our own sys/stat.h.
11356 (stat, fstat): Don't mangle the inode number.
11357 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11358
11359 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11360
11361 * frame.h (struct frame): Give one more bit to `visible' since we use
11362 values larger than 1 to indicate obscured frames on ttys.
11363
11364 * keymap.c (Qkeymap_canonicalize): New var.
11365 (Fmap_keymap_internal): New fun.
11366 (describe_map): Use keymap-canonicalize.
11367
11368 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11369 (Fundo_boundary): Set them.
11370 (syms_of_undo): Initialize them.
11371 (record_point): Use them instead of last_point_position*.
11372 (last_undo_buffer): Change type.
11373
11374 2008-04-04 Jason Rumney <jasonr@gnu.org>
11375
11376 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11377 (recompute_cached_metrics): Don't set ascent and descent per char.
11378
11379 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11380 (uniscribe_check_otf): Add GC protection before consing.
11381 Rearrange loop for counting features.
11382
11383 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11384
11385 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11386 buffer with byte-size of source buffer.
11387
11388 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
11389
11390 * callint.c (Fcall_interactively): Handle temporary region even
11391 when shift-select-mode is off.
11392
11393 2008-04-03 Jason Rumney <jasonr@gnu.org>
11394
11395 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11396
11397 2008-04-03 Kenichi Handa <handa@m17n.org>
11398
11399 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11400 (CATEGORY_MASK_UTF_16): Likewise.
11401 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11402 binary file.
11403 (detect_coding): Add null-byte detection for a binary file.
11404 (detect_coding_system): Likewise.
11405
11406 2008-04-03 Jason Rumney <jasonr@gnu.org>
11407
11408 * w32uniscribe.c: New file.
11409
11410 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11411
11412 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11413
11414 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11415 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11416 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11417 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11418 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11419 (Qphonetic): New symbols.
11420 (syms_of_w32font): Initialize them.
11421 (font_supported_scripts): Use them.
11422 (w32font_list_family): List all charsets.
11423 (w32font_text_extents, recompute_cached_metrics): Fix metric
11424 calculations.
11425 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11426 Give opentype fonts their own format.
11427 (font_matches_spec): New arguments backend and logfont.
11428 Handle :otf spec for uniscribe backend.
11429 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11430 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11431
11432 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11433 font backend.
11434 (globals_of_w32fns): Initialize uniscribe font backend.
11435
11436 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11437 dependencies.
11438 (w32uniscribe.$(O)): New file to build.
11439 (FONT_OBJ): Include w32uniscribe.$(O).
11440 (LIBS): Add uniscribe libraries.
11441
11442 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11443
11444 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
11445
11446 * callint.c (Vshift_select_mode): New var.
11447 (Finteractive): Document new ^ spec.
11448 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11449 is present.
11450
11451 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11452 (command_loop_1): Avoid running the direct display versions of
11453 forward-char and backward-char if shift-selection may occur.
11454 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11455 shift-translation takes place.
11456
11457 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11458 avoid clobbering by define-minor-mode.
11459
11460 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11461 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11462
11463 * syntax.c (Fforward_word): Add ^ interactive spec.
11464
11465 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11466 (Fscroll_right): Add ^ interactive spec.
11467
11468 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11469
11470 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11471
11472 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11473
11474 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11475
11476 2008-03-31 Juri Linkov <juri@jurta.org>
11477
11478 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11479
11480 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11481
11482 * gtkutil.c (xg_set_geometry): Fix indentation.
11483 (xg_resize_outer_widget): Remove.
11484 (x_wm_size_hint_off): Fix indentation.
11485 (xg_frame_set_char_size): Call flush_and_sync after
11486 gtk_window_resize.
11487 (x_wm_set_size_hint): Pass NULL as geometry window to
11488 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11489 Add menu bar and tool bar height to base height.
11490 (xg_update_frame_menubar, free_frame_menubar)
11491 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11492 (update_frame_tool_bar, free_frame_tool_bar):
11493 Change xg_resize_outer_widget to xg_frame_set_char_size.
11494
11495 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
11496
11497 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11498 (Fdbus_call_method): New parameter TIMEOUT.
11499 (dbus-send-signal): Optimize UNGCPRO call.
11500
11501 2008-03-29 Juri Linkov <juri@jurta.org>
11502
11503 * window.c (Fdisplay_buffer): Move call to
11504 Vsplit_window_preferred_function out of conditions that check
11505 if window is eligible for vertical splitting.
11506 When Vsplit_window_preferred_function is non-nil, call it and use
11507 its non-nil return value as window. Otherwise, continue doing
11508 vertical splitting using Fsplit_window with arg horflag=nil.
11509 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11510 default value from `split-window' to nil.
11511
11512 2008-03-29 Juri Linkov <juri@jurta.org>
11513
11514 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11515 for interactive code letters 'b' and 'B'.
11516
11517 2008-03-29 Eli Zaretskii <eliz@gnu.org>
11518
11519 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11520 multibyte string.
11521
11522 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11523
11524 * keyboard.c (pending_funcalls): New var.
11525 (timer_check): Run it.
11526 (syms_of_keyboard): Initialize it.
11527 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11528 (Vdelete_terminal_functions): New vars.
11529 (syms_of_terminal): Initialize them.
11530 (Fdelete_terminal): Run delete-terminal-functions.
11531 * xdisp.c (safe_eval): Rewrite.
11532 (safe_call2): New fun.
11533 * frame.c (Qdelete_frame_functions): New var.
11534 (syms_of_frame): Initialize it.
11535 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11536 * lisp.h (safe_call2, pending_funcalls): Declare.
11537
11538 2008-03-28 Andreas Schwab <schwab@suse.de>
11539
11540 * indent.c (Fmove_to_column): Move declaration before statements.
11541
11542 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11543
11544 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11545 (struct frame): Use bit fields for boolean vars.
11546
11547 * process.c (server_accept_connection): Simplify naming.
11548 (emacs_get_tty_pgrp): Use SDATA.
11549
11550 * coding.c (decode_coding_object): Fix last change.
11551
11552 2008-03-27 Jason Rumney <jasonr@gnu.org>
11553
11554 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11555
11556 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11557
11558 * charset.c (Fdefine_charset_internal): Change the way of
11559 registering charsets in Vcharset_order_list.
11560 (syms_of_charset): Make the charset `eight-bit' supplementary.
11561
11562 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11563
11564 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11565 operations, to avoid having the difference between pointers
11566 overflow.
11567
11568 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11569
11570 * indent.c (check_display_width): New fun.
11571 (scan_for_column): Use it.
11572
11573 * data.c (syms_of_data): Mark most-positive-fixnum and
11574 most-negative-fixnum as constants.
11575
11576 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11577
11578 * indent.c (scan_for_column): Extract from current_column_1.
11579 Merge with the same code from Fmove_to_column.
11580 (current_column_1, Fmove_to_column): Use it.
11581
11582 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11583
11584 * keymap.c (map_keymap_internal): New fun.
11585 (map_keymap): Use it.
11586 (Fmap_keymap_internal): New fun.
11587 (Fmap_keymap): Remove left-out test from before make_save_value.
11588
11589 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11590
11591 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11592 Use XCAR/XCDR.
11593
11594 * process.h (struct Lisp_Process): Remove filter_multibyte.
11595 * process.c (QCfilter_multibyte): Remove.
11596 (setup_process_coding_systems): Don't use filter_multibyte.
11597 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11598 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11599 (Fset_process_filter_multibyte): Change the coding-system to
11600 approximate the previous behavior.
11601 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11602 coding-system.
11603
11604 * coding.c (decode_coding_object): When not decoding into a buffer,
11605 obey the coding system's preference of (uni|multi)byte.
11606
11607 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11608
11609 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11610 every char is changed and has a different byte-length.
11611 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11612 Fix int -> EMACS_INT.
11613
11614 2008-03-23 David Hansen <david.hansen@gmx.net>
11615
11616 * dbusbind.c (xd_read_message): Remove extra copying of message
11617 strings. Check for NULL `interface' or `member'.
11618
11619 2008-03-22 Eli Zaretskii <eliz@gnu.org>
11620
11621 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11622 cFileName a file name that includes `?' characters, use the 8+3
11623 alias in cAlternateFileName instead.
11624
11625 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11626
11627 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11628
11629 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11630
11631 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11632 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11633 work on current_buffer only instead (that was already the case
11634 for some of the code anyway).
11635 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11636 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11637 (SET_PT, SET_PT_BOTH): Adjust.
11638 * intervals.h (set_point, temp_set_point, set_point_both)
11639 (temp_set_point_both): Remove redundant declarations.
11640
11641 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * fileio.c (Finsert_file_contents):
11644 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11645 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11646 when buffer != current_buffer anyway.
11647
11648 2008-03-20 Andreas Schwab <schwab@suse.de>
11649
11650 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11651 as default.
11652
11653 2008-03-19 Jason Rumney <jasonr@gnu.org>
11654
11655 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11656 (syms_of_w32fns): Initialize them.
11657 (HOURGLASS_ID): New constant.
11658 (x_window_to_frame): Don't check hourglass_window.
11659 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11660 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11661 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11662 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11663 Only change the cursor if hourglass is not active.
11664 (Fx_create_frame): Initialize frame's current_cursor.
11665 (hourglass_atimer): Remove.
11666 (hourglass_started): New function.
11667 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11668 (show_hourglass): Adapt to w32, changing argument to frame.
11669
11670 * w32term.h (struct w32_output): Remove hourglass_window.
11671 Add current_cursor.
11672
11673 * eval.c (call_debugger, Fsignal):
11674 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11675 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11676 (Fexecute_extended_command, cancel_hourglass_unwind):
11677 * minibuf.c (read_minibuf):
11678 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11679
11680 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11681
11682 * window.c (run_funs): New fun.
11683 (run_window_configuration_change_hook): Use it to run the buffer-local
11684 and the global part of the hook.
11685
11686 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11687 (unwind_format_mode_line): Restore selected window.
11688 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11689
11690 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11691
11692 * editfns.c (Fchar_equal): Check they are valid characters.
11693
11694 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11695
11696 2008-03-17 Andreas Schwab <schwab@suse.de>
11697
11698 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11699 against a charset.
11700
11701 * lisp.h (Fbuffer_list): Declare.
11702
11703 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
11704
11705 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11706 handlebox_widget is != 0.
11707
11708 2008-03-16 Juri Linkov <juri@jurta.org>
11709
11710 * callint.c (Fcall_interactively): For interactive code letters
11711 'b' and 'B' put the buffer list into the list of default "future"
11712 values of the minibuffer.
11713
11714 2008-03-16 Andreas Schwab <schwab@suse.de>
11715
11716 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11717 modifiers.
11718
11719 * regex.c (re_match_2_internal): Correct matching of a charset
11720 against latin-1 characters.
11721
11722 2008-03-16 Kenichi Handa <handa@m17n.org>
11723
11724 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11725 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11726 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11727 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11728 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11729 CHAR_STRING_ADVANCE.
11730 (produce_chars): Fix for the case that the source and the
11731 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11732 instead of CHAR_STRING_ADVANCE.
11733 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11734 STRING_CHAR_ADVANCE.
11735
11736 2008-03-15 Andreas Schwab <schwab@suse.de>
11737
11738 * regex.c (re_match_2_internal): Correct matching of eight bit
11739 characters in unibyte strings.
11740
11741 2008-03-15 Martin Rudalics <rudalics@gmx.at>
11742
11743 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11744 at end of range when it coincides with the end of the buffer.
11745
11746 2008-03-14 Eli Zaretskii <eliz@gnu.org>
11747
11748 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11749
11750 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11751
11752 2008-03-14 Jason Rumney <jasonr@gnu.org>
11753
11754 * editfns.c (initial_tz): New variable.
11755 (syms_of_editfns): Initialize it.
11756 (Fset_time_zone_rule): Set it when first called.
11757 Use it when TZSTRING is nil.
11758
11759 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11760 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11761 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11762 (globals_of_w32fns): Initialize them.
11763 (compute_tip_xy): Use them to position tooltips.
11764
11765 2008-03-14 Glenn Morris <rgm@gnu.org>
11766
11767 * emacs.c (main): Revert previous change.
11768 (standard_args): Revert -internal-script back to -scriptload,
11769 and remove the long-option form.
11770
11771 2008-03-13 Glenn Morris <rgm@gnu.org>
11772
11773 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11774 Remove option -enable-font-backend.
11775
11776 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11777
11778 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11779
11780 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11781
11782 * xterm.c (x_connection_closed): For GTK: If this is the last
11783 terminal just exit without closing the display.
11784
11785 2008-03-11 Jason Rumney <jasonr@gnu.org>
11786
11787 * w32font.c (w32font_full_name): Use floor to round.
11788
11789 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
11790
11791 * sound.c (alsa_configure): Declare vol at beginning of block.
11792
11793 * fontset.c (Ffontset_info): Remove extra semicolon.
11794
11795 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11796
11797 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11798 size of resulting string.
11799
11800 2008-03-10 Jason Rumney <jasonr@gnu.org>
11801
11802 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11803
11804 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11805
11806 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11807 Don't pretend as if characters with display property haven't been
11808 consumed for string-replacing-string case.
11809
11810 2008-03-08 Kim F. Storm <storm@cua.dk>
11811
11812 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11813 (get_next_display_element, next_element_from_string)
11814 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11815
11816 2008-03-08 Andreas Schwab <schwab@suse.de>
11817
11818 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11819
11820 2008-03-06 Jason Rumney <jasonr@gnu.org>
11821
11822 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11823 when charset not specified. Only translate ANSI to unicode when
11824 font_type is truetype.
11825 (w32font_coverage_ok): New function.
11826 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11827
11828 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11829
11830 * lread.c (Fread_char): Resolve modifiers.
11831 (Fread_char_exclusive): Likewise.
11832
11833 * character.c (char_resolve_modifier_mask): New function.
11834 (char_string): Use char_resolve_modifier_mask.
11835 (Fchar_resolve_modifiers): New function.
11836 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11837 function.
11838
11839 2008-03-04 Jason Rumney <jasonr@gnu.org>
11840
11841 * makefile.w32-in: Always include w32font.c in the build.
11842 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11843
11844 2008-03-04 Andreas Schwab <schwab@suse.de>
11845
11846 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11847 (versionclean): Likewise.
11848
11849 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
11850
11851 * .cvsignore: Add oo.
11852
11853 2008-03-03 Andreas Schwab <schwab@suse.de>
11854
11855 * coding.c (decode_coding_object): Inhibit gap shrinking while
11856 decoding in place.
11857
11858 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11859
11860 * w32term.c: Remove unused include "gnu.h".
11861 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11862
11863 * gnu.h: Rename to ...
11864 * emacs-icon.h: ... this.
11865 * xterm.c: Use emacs-icon.h instead of gnu.h.
11866 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11867
11868 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
11869
11870 * w32font.c: Include math.h.
11871
11872 2008-03-03 Jason Rumney <jasonr@gnu.org>
11873
11874 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11875 Compute options separately.
11876 (w32font_open_internal): Set glyph_idx before caching metrics.
11877
11878 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11879 Define if system headers don't.
11880 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11881 (w32font_encode_char): Don't declare here.
11882
11883 * w32font.c (Quniscribe, QCformat): New symbols.
11884 (syms_of_w32font): Define them.
11885 (w32font_has_char): Indicate uncertainty.
11886 (w32font_encode_char): Encode as glyph point. Make static.
11887 (recompute_cached_metrics): New function.
11888 (w32font_open_internal): Use it. Set font to use glyph points
11889 initially. Set format based on type of font.
11890 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11891 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11892 on it. Set format based on information available here.
11893 (add_font_entity_to_list): Identify backend based on opentype_only.
11894
11895 2008-03-02 Andreas Schwab <schwab@suse.de>
11896
11897 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11898
11899 * coding.c (decode_coding_big5, produce_chars):
11900 Fix typos in last change.
11901
11902 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11903
11904 * gnu.h: New icon.
11905
11906 2008-03-02 Kenichi Handa <handa@m17n.org>
11907
11908 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11909 `dos', don't decode '\r' if that is the last in the source.
11910 (decode_coding_utf_16, decode_coding_emacs_mule)
11911 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11912 (decode_coding_raw_text, decode_coding_charset): Likewise.
11913 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11914
11915 2008-03-01 Jason Rumney <jasonr@gnu.org>
11916
11917 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11918
11919 2008-03-01 Kim F. Storm <storm@cua.dk>
11920
11921 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11922
11923 2008-03-01 Jason Rumney <jasonr@gnu.org>
11924
11925 * w32font.c (w32font_full_name): New function.
11926 (w32font_open_internal): Use it.
11927
11928 2008-03-01 Kim F. Storm <storm@cua.dk>
11929
11930 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11931
11932 2008-03-01 Jason Rumney <jasonr@gnu.org>
11933
11934 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11935
11936 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11937
11938 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11939 xg_frame_resized when the event is for the edit widget.
11940
11941 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11942
11943 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11944 set_char_size.
11945 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11946 operations on widgets here. Just set frame size if needed.
11947 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11948 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11949 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11950 the whole frame.
11951 (xg_create_tool_bar): Move attachment of the tool bar to
11952 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11953 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11954
11955 2008-03-01 Jason Rumney <jasonr@gnu.org>
11956
11957 * w32fns.c (w32_msg_pump): Disable debug code.
11958
11959 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11960
11961 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11962
11963 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11964
11965 * xdisp.c (next_overlay_string): Don't set
11966 overlay_strings_at_end_processed_p if we're currently reading from
11967 a display string.
11968
11969 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11970
11971 * xdisp.c (get_overlay_strings_1): Fix typo.
11972
11973 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
11974
11975 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11976
11977 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11978
11979 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11980
11981 * xdisp.c (display_mode_element): Cancel the previous change.
11982 (decode_mode_spec): Likewise.
11983 (handle_auto_composed_prop): Don't make composition if it->string
11984 is a string.
11985
11986 2008-02-27 Kim F. Storm <storm@cua.dk>
11987
11988 * lisp.h (GLYPH): Change type from int to struct with separate char
11989 and face_id members.
11990 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11991 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11992 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11993 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11994 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11995 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11996 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11997 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11998 handle new Lisp glyph code encoding, either an integer or a cons.
11999
12000 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12001 (GLYPH_ALIAS): Delete.
12002 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12003 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12004 (GLYPH_FROM_CHAR): Replace macro by ...
12005 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12006
12007 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12008 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12009 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12010 (GLYPH_INVALID_P): New macro.
12011 (spec_glyph_lookup_face): Update prototype.
12012
12013 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12014 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12015 new glyph code encoding.
12016 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12017 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12018
12019 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12020 Adapt to new glyph type and new glyph code encoding.
12021
12022 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12023
12024 * indent.c (current_column, current_column_1, Fmove_to_column)
12025 (compute_motion): Adapt to new glyph code encoding.
12026
12027 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12028
12029 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12030
12031 * process.c (wait_reading_process_output): Check for window
12032 changes caused by timers.
12033 Suggested by Johan Bockgård.
12034
12035 2008-02-27 Glenn Morris <rgm@gnu.org>
12036
12037 * emacs.c (USAGE1): Add `--disable-font-backend'.
12038
12039 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12040
12041 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12042 is made to the buffer.
12043
12044 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12047 (face_at_string_position):
12048 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12049 (face_at_string_position):
12050 * xdisp.c (display_string, next_overlay_change):
12051 * buffer.h (overlays_at):
12052 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12053 Update callers.
12054
12055 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12056
12057 * editfns.c (Fformat): Doc fix.
12058
12059 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12060
12061 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12062 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12063 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12064
12065 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12066
12067 * buffer.c (Fbuffer_swap_text): New function.
12068 (syms_of_buffer): Defsubr it.
12069
12070 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12071
12072 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12073
12074 2008-02-25 Jason Rumney <jasonr@gnu.org>
12075
12076 * w32font.c (w32font_draw): Draw one character at a time when padding.
12077
12078 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12079
12080 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12081 Handle a nil arg. Use run_window_configuration_change_hook.
12082 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12083 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12084 Use run_window_configuration_change_hook.
12085
12086 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12087
12088 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12089 1-pixel width.
12090
12091 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12092
12093 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12094 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12095 if the glyph in the font is zero pixel with.
12096
12097 * dispextern.h (struct glyph_string): New member padding_p.
12098
12099 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12100
12101 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12102
12103 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12104
12105 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12106
12107 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12108
12109 2008-02-25 Jason Rumney <jasonr@gnu.org>
12110
12111 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12112
12113 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12114
12115 Allow fine-grained image-cache flushing.
12116 * dispextern.h (struct image): Add `dependencies' field.
12117 (clear_image_caches): Change arg to Lisp_Object.
12118 * image.c (make_image): Initialize `dependencies' field.
12119 (clear_image_cache): Change arg to allow fine-grained flushing.
12120 Perform the flush even if image-cache-eviction-delay is nil.
12121 (clear_image_caches): Change arg to Lisp_Object.
12122 (Fclear_image_cache): Expand meaning of the argument.
12123 (mark_image): Mark `dependencies' field.
12124 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12125 (lface_hash): Use XHASH rather than XFASTINT.
12126 (face_at_buffer_position): Fix int -> EMACS_INT position.
12127 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12128 (select_frame_for_redisplay): Remove code duplication.
12129 (redisplay_internal): Adapt arg to call to clear_image_caches.
12130
12131 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12132
12133 * s/vms4-0.h:
12134 * s/vms4-2.h:
12135 * s/vms4-4.h:
12136 * s/vms5-5.h: Remove, unused.
12137
12138 * s/irix5-2.h:
12139 * s/irix6-0.h:
12140 * s/riscos5.h:
12141 * s/mach-bsd4-3.h:
12142 * m/mips4.h: Remove files for obsolete systems.
12143
12144 * Makefile.in:
12145 * filelock.c:
12146 * unexmips.c:
12147 * m/hp9000s300.h:
12148 * m/iris4d.h:
12149 * s/aix3-1.h:
12150 * s/hpux.h:
12151 * s/msdos.h:
12152 * s/usg5-0.h:
12153 * s/usg5-2-2.h:
12154 * s/usg5-2.h:
12155 * s/usg5-3.h: Remove references to obsolete variables.
12156
12157 * s/irix5-0.h: Remove, move all the contents ...
12158 * s/irix6-5.h: ... here. Simplify.
12159 * config.in: Regenerate.
12160
12161 2008-02-24 Jason Rumney <jasonr@gnu.org>
12162
12163 * w32term.c (x_draw_glyph_string_background): Clear the background
12164 manually when cleartype is in use.
12165 (x_draw_glyph_string_foreground): Draw text transparently when
12166 cleartype is in use.
12167
12168 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12169 a font into it unless we have to.
12170
12171 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12174 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12175
12176 2008-02-18 Jason Rumney <jasonr@gnu.org>
12177
12178 * w32fns.c (Fw32_shell_execute): Encode parameters.
12179
12180 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12181
12182 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12183
12184 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12185
12186 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12187
12188 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12189
12190 * xterm.c (x_set_offset): Don't change the gravity if
12191 CHANGE_GRAVITY is -1.
12192
12193 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12194
12195 * fileio.c (auto_save_error_occurred): New var.
12196 (auto_save_error): Set it.
12197 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12198 error occurred.
12199
12200 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12201
12202 * w32.c (globals_of_w32): Add initializations for
12203 g_b_init_get_sid_sub_authority and
12204 g_b_init_get_sid_sub_authority_count.
12205
12206 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12207
12208 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12209 (font_parse_xlfd): Use them for sanity check.
12210 (Finternal_set_font_style_table): Make sure the table is bijective.
12211
12212 Consolidate the image_cache to the terminal struct.
12213 * termhooks.h (P_): Remove redundant def.
12214 (struct terminal): New field `image_cache'.
12215 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12216 of FRAME_X_IMAGE_CACHE.
12217 * xterm.h (struct x_display_info): Remove image_cache field.
12218 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12219 * w32term.h (struct w32_display_info): Remove image_cache field.
12220 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12221 * macterm.h (struct mac_display_info): Remove image_cache field.
12222 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12223 * xterm.c (x_term_init):
12224 * w32term.c (w32_term_init):
12225 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12226 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12227 Remove declarations.
12228 (clear_image_caches, mark_image_cache): New declarations.
12229 * xfaces.c (clear_face_cache):
12230 * xdisp.c (redisplay_internal): Use clear_image_caches.
12231 * image.c (clear_image_cache): Don't check that a frame is on
12232 a window-system before checking if it shares the same cache.
12233 (clear_image_caches): New function.
12234 (Fclear_image_cache): Use it.
12235 (mark_image): Move from allo.c.
12236 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12237 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12238 (mark_object): Don't call mark_image_cache for frames.
12239 (mark_terminals): Call mark_image_cache.
12240
12241 * lisp.h (Fdelete_terminal): Declare.
12242
12243 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12244 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12245 wrong_type_argument.
12246
12247 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12248
12249 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12250 malayalam.el, and tamil.el. Add sinhala.el.
12251
12252 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12253
12254 * xterm.c (x_connection_closed): Consolidate identical tests.
12255 (x_delete_terminal): Don't crash if called via x_connection_closed.
12256
12257 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12258
12259 * xdisp.c (decode_mode_spec): New arg string.
12260 (display_mode_element): Adjust for the above change.
12261
12262 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12263
12264 * callint.c (Fcall_interactively): Use AREF.
12265
12266 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12267
12268 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12269
12270 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12271
12272 * xfns.c (Fx_show_tip): Set string to " " if empty.
12273
12274 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12275
12276 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12277 with Qt.
12278
12279 2008-02-17 Kenichi Handa <handa@m17n.org>
12280
12281 * ftfont.c (ftfont_shape): Return Lispy number.
12282
12283 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12284 for GCs.
12285 (Finternal_set_font_selection_order): Call font_update_sort_order
12286 only when enable_font_backend is set.
12287 (realize_x_face): Set face->font_info to that of default face only
12288 when enable_font_backend is set.
12289
12290 * xdisp.c (handle_composition_prop): Set it->c to the fist
12291 character of the composed region.
12292 (fill_composite_glyph_string): Set base_face->font_info to
12293 s->font_info. Get a face for ascii from base_face->ascii_face.
12294 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12295 with a face already decided.
12296 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12297 non-negative.
12298 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12299 call font_prepare_composition unconditionally.
12300
12301 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12302
12303 * xterm.h (struct x_display_info): New member font.
12304
12305 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12306 (x_set_mouse_face_gc, x_new_font): Likewise.
12307 (x_term_init): Setup display_info->font.
12308 (x_delete_terminal): Free display_info->font.
12309
12310 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12311
12312 * ftxfont.c (ftxfont_default_fid): Delete it.
12313 (ftxfont_open): Set xfont->fid to 0.
12314 (ftxfont_end_for_frame): Clear data specific to the frame and the
12315 font-driver.
12316
12317 * xftfont.c (xftfont_default_fid): Delete it.
12318 (xftfont_open): Set xfont->fid to 0.
12319
12320 * fontset.c (FONTSET_OBJLIST): New macro.
12321 (fontset_find_font): Update font-object list of the fontset.
12322 (free_realized_fontset): New function.
12323 (free_face_fontset): Call free_realized_fontset.
12324 (Ffont_info): Call font_close_object only when enable_font_backend
12325 is set.
12326
12327 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12328 [HAVE_NTGUI]: Include w32term.h.
12329 [MAC_OS]: Include macterm.ch.
12330 (font_otf_ValueRecord): Use make_number.
12331 (font_finish_cache): Fix handling of reference count.
12332 (font_clear_cache): Update num_fonts.
12333 (font_open_entity): Update smallest_char_width and
12334 smallest_font_height of the frame.
12335 (font_close_object): Update num_fonts.
12336 (Fclear_font_cache): Fix finding the target cache data.
12337
12338 2008-02-16 Glenn Morris <rgm@gnu.org>
12339
12340 * fontset.c (Finternal_char_font): Fix compilation warning.
12341
12342 2008-02-16 Eli Zaretskii <eliz@gnu.org>
12343
12344 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12345 instead of char arrays. Enlarge the size of array passed to
12346 get_token_information.
12347
12348 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12349 warnings.
12350
12351 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12352
12353 * .gdbinit: Don't set `args', it breaks gdb --args.
12354
12355 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12356
12357 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12358 within a narrowed buffer.
12359
12360 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12361
12362 * coding.c (decode_coding_object, encode_coding_object):
12363 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12364
12365 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12366
12367 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12368 hardcoding 1.
12369 (detect_coding_system):
12370 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12371 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12372 * insdel.c (insert_from_gap):
12373 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12374 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12375 (string_to_multibyte):
12376 * character.c (chars_in_text, multibyte_chars_in_text):
12377 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12378
12379 * character.h (FETCH_STRING_CHAR_ADVANCE)
12380 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12381 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12382 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12383
12384 * casefiddle.c (casify_region): Only call after-change and composition
12385 functions on the part of the region that was changed.
12386
12387 * keyboard.c (read_avail_input):
12388 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12389
12390 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12391
12392 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12393 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12394
12395 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
12396
12397 * w32menu.c (push_submenu_start, push_submenu_end)
12398 (push_left_right_boundary, push_menu_pane, push_menu_item):
12399 * keyboard.c (read_key_sequence): Don't pass args with side effects
12400 to AREF, it fails when compiling with -DENABLE_CHECKING.
12401
12402 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12403
12404 * Makefile.in (${lispsource}international/charprop.el):
12405 Delete this target.
12406
12407 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12408 emacs-unicode-2.
12409
12410 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12411
12412 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12413
12414 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12415
12416 * frame.c (Qnoelisp): New symbol.
12417 (syms_of_frame): Initialize it.
12418 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12419 harmless Elisp code, from a strong `force' from x_connection_closed.
12420 * frame.h (Qnoelisp): Declare.
12421 * xterm.c (x_connection_closed): Pass `noelisp'.
12422
12423 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12424 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12425 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12426 rather than `int' for the type of `type'.
12427
12428 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12429
12430 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12431
12432 * Makefile.in (GNUC): Remove support for gcc-1.x.
12433
12434 2008-02-10 Richard Stallman <rms@gnu.org>
12435
12436 * lisp.h (ASET): Use AREF, not ASLOT.
12437
12438 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12439
12440 * lisp.h (ASET): Check bounds.
12441
12442 2008-02-10 Glenn Morris <rgm@gnu.org>
12443
12444 * buffer.c (mode-name): Doc fix.
12445
12446 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12447
12448 * Makefile.in:
12449 * emacs.c:
12450 * gmalloc.c:
12451 * keyboard.c:
12452 * lisp.h:
12453 * m/ibm370aix.h:
12454 * process.c:
12455 * regex.c:
12456 * s/hpux.h:
12457 * sysdep.c:
12458 * sysselect.h:
12459 * systty.h:
12460 * unexec.c:
12461 * w32term.c:
12462 * xsmfns.c:
12463 * xterm.c: Remove code that deals with obsolete variables.
12464
12465 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12466
12467 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12468 nothing else needs it anymore.
12469
12470 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12471
12472 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12473 instead of unibyte_char_to_multibyte.
12474
12475 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12476
12477 * s/gnu-linux.h: Remove commented out code.
12478
12479 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12480
12481 * Makefile.in: Update what RMS says about using autoconf.
12482 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12483 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12484 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12485 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12486
12487 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12488
12489 * keymap.c (Fkey_description): Move side effect outside of macro call.
12490
12491 * xfaces.c (Finternal_make_lisp_face):
12492 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12493
12494 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12495 (syms_of_fontset): Use ASET.
12496
12497 * fns.c (concat): Move side effect outside of macro call.
12498 (hash_clear): Use ASET.
12499
12500 2008-02-08 Richard Stallman <rms@gnu.org>
12501
12502 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12503 If FORCE, and frame has a surrogate minibuffer for another frame,
12504 delete the other frame first.
12505
12506 2008-02-07 Timo Savola <timo.savola@iki.fi>
12507
12508 * xterm.c (x_detect_focus_change): Handle embed client message.
12509 (handle_one_xevent): Ditto.
12510 (handle_one_xevent): If embedded and we get a button press/release,
12511 request focus.
12512 (xembed_set_info, xembed_send_message): New functions.
12513 (x_make_frame_visible): Call xembed_set_info if embedded.
12514 (x_make_frame_invisible): Call xembed_set_info if embedded.
12515 (x_term_init): Initialize Xatom_XEMBED.
12516 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12517 (x_iconify_frame): Ditto.
12518
12519 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12520 (enum xembed_info, enum xembed_message, enum xembed_focus)
12521 (enum xembed_modifier, enum xembed_accelerator): New.
12522 (xembed_set_info, xembed_send_message): Declare.
12523 (FRAME_X_EMBEDDED_P): New.
12524
12525 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12526 gtk_plug_new.
12527
12528 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12529 window ID of a frame.
12530 (x_window): Reparent frame if embedded.
12531 (Fx_create_frame): Don't set border width if embedded.
12532
12533 * emacs.c (USAGE3): Add --parent-id.
12534 (standard_args): Ditto.
12535
12536 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12537
12538 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12539
12540 2008-02-07 Jim Meyering <meyering@redhat.com>
12541
12542 Use "do...while (0)", not "if (1)...else" in macro definitions.
12543 The latter provokes a warning from gcc about the empty else, when
12544 followed by ";". Also, without that trailing semicolon, it would
12545 silently swallow up any following statement.
12546 * syntax.h (SETUP_SYNTAX_TABLE)
12547 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12548 * buffer.h (DECODE_POSITION): Likewise.
12549 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12550 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12551 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12552 (FETCH_CHAR_ADVANCE): Likewise.
12553 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12554
12555 2008-02-07 Jim Meyering <meyering@redhat.com>
12556
12557 * lread.c [lint]: Don't include <sys/inode.h>.
12558
12559 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12560
12561 * xselect.c (x_handle_dnd_message):
12562 * xmenu.c (digest_single_submenu, xmenu_show):
12563 * xdisp.c (with_echo_area_buffer_unwind_data)
12564 (format_mode_line_unwind_data, unwind_format_mode_line)
12565 (display_menu_bar):
12566 * eval.c (Ffetch_bytecode):
12567 * doc.c (store_function_docstring):
12568 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12569 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12570 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12571
12572 2008-02-07 Kenichi Handa <handa@m17n.org>
12573
12574 * ftxfont.c (ftxfont_open): Don't set
12575 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12576
12577 * ftfont.c (ftfont_open): Fix previous change.
12578
12579 2008-02-06 Jason Rumney <jasonr@gnu.org>
12580
12581 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12582 Use cached metrics for ASCII characters.
12583 (w32font_open_internal): Don't set font's owning_frame.
12584 Cache metrics for ASCII characters.
12585
12586 * w32font.h (struct w32font_info): Add ascii_metrics.
12587 Remove owning_frame.
12588
12589 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12590
12591 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12592 to negative value.
12593
12594 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12595
12596 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12597
12598 * charset.c (syms_of_charset): Set QCtest and Qeq.
12599
12600 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * process.c (Fstart_process):
12603 * callproc.c (Fcall_process): Handle the case where
12604 Funhandled_file_name_directory returns nil.
12605
12606 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12607 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12608 * font.c (check_gstring): Use them and AREF to access the vector before
12609 we know it's really a gstring.
12610 (Ffont_shape_text): Fix typo.
12611 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
12612
12613 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12614 Declare.
12615
12616 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12617
12618 2008-02-05 Jason Rumney <jasonr@gnu.org>
12619
12620 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12621 Set smallest_font_height and smallest_char_width in display info.
12622
12623 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12624
12625 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12626
12627 2008-02-05 Miles Bader <miles@gnu.org>
12628
12629 * xfaces.c (get_lface_attributes, merge_named_face)
12630 (lookup_named_face, lookup_derived_face, realize_named_face):
12631 Revert 2008-02-01 change by cyd@stupidchicken.com.
12632
12633 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12634
12635 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12636 fallback fonts.
12637 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12638
12639 2008-02-04 Jason Rumney <jasonr@gnu.org>
12640
12641 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12642 set full_name.
12643 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12644
12645 2008-02-03 Jason Rumney <jasonr@gnu.org>
12646
12647 * makefile.w32-in (OBJ1): Include font.o here.
12648 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12649
12650 2008-02-02 Jason Rumney <jasonr@gnu.org>
12651
12652 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12653
12654 2008-02-01 Jason Rumney <jasonr@gnu.org>
12655
12656 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12657
12658 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12659
12660 2008-02-01 Andreas Schwab <schwab@suse.de>
12661
12662 * Makefile.in (shortlisp, lisp): Update for rename of
12663 ../lisp/language/myanmar.el.
12664
12665 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
12666
12667 * xfaces.c (get_lface_attributes): Delete function.
12668 (merge_named_face, lookup_named_face, lookup_derived_face)
12669 (realize_named_face): Call lface_from_face_name directly, and use
12670 the fact that merge_face_vectors does not alter its FROM argument.
12671
12672 2008-02-01 Jason Rumney <jasonr@gnu.org>
12673
12674 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12675 input in the default locale. Handle non-Unicode multibyte input.
12676
12677 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12678
12679 * fontset.c (reorder_font_vector): Exclude nil elements from the
12680 font group. Don't try multiple fonts.
12681 (fontset_font): Adjust for the above change.
12682 (Finternal_char_font): Return nil if the found font doesn't
12683 contain the character ch.
12684
12685 * Makefile.in (lisp, shortlisp): Add cham.el.
12686
12687 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12688
12689 * font.h (FONTP): Make it return 1 also for a font-object.
12690
12691 * .gdbinit (xfontset): New function.
12692
12693 * font.c (font_find_for_lface): Check if the character C is
12694 supported or not only for the first font.
12695
12696 * fontset.c (reorder_font_vector): Fix typo.
12697 (fontset_find_font): Don't add a font-spec specifying a script.
12698 Use 0 (not Qt) for the indication of empty font-group. Change the
12699 format of RFONT-DEF. Return Qt if no font in the font-group
12700 support the character.
12701 (fontset_font): Adjust for the above change. If no font was
12702 found the character, remember that.
12703 (face_for_char): Adjust for the change of RFONT-DEF.
12704 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12705 no font for the target.
12706 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12707
12708 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12709
12710 * font.c (font_load_for_face): Handle the case that the font in
12711 face->lface is a string.
12712
12713 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12714
12715 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12716
12717 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12718
12719 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12720 Fix previous change. If the frame is not on a window system,
12721 signal an error.
12722
12723 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12724
12725 * coding.c (decode_coding_object, encode_coding_object): Adjust
12726 marker positions after conversion.
12727
12728 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12729
12730 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12731
12732 * font.c (font_find_for_lface): Fix the handling of the return
12733 value of font_has_char.
12734 (Ffont_shape_text): Fix previous change.
12735
12736 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12737 (fontset_ref_and_range): Delete it.
12738 (fontset_find_font): Call char_table_ref_and_range instead of
12739 FONTSET_REF_AND_RANGE.
12740 (make_fontset): Don't setup font groups of Latin here.
12741 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12742 (new_fontset_from_font): Make the specified font the default for
12743 all Latin characters.
12744
12745 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12746
12747 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12748 is on a window system before accessing the fontset of the frame.
12749
12750 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12751
12752 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12753
12754 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12755 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12756
12757 * font.c (Ffont_shape_text): If the font driver doesn't have a
12758 shaper function, make zero-width glyphs to have at least one-pixel
12759 width. Fix setting of `to' field of glyphs.
12760
12761 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12762
12763 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12764 glyphs.
12765
12766 * font.h (struct font_driver): Improve docstring of member `shape'.
12767
12768 2008-02-01 Kenichi Handa <handa@m17n.org>
12769
12770 * composite.c (syms_of_composite): Fix docstring of
12771 auto-composition-function.
12772
12773 * font.h (LGLYPH_SIZE): New macro.
12774
12775 * font.c (Ffont_fill_gstring): Stop filling when a character not
12776 supported by the font is found.
12777 (Ffont_shape_text): When a shape callback function returns nil,
12778 try at most two more times with larger gstring.
12779 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12780
12781 * xdisp.c (handle_auto_composed_prop): Change the argument to
12782 auto-composition-function.
12783
12784 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12785 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12786 Lispy glyph and store it in the lgstring.
12787
12788 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12789
12790 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12791
12792 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12793
12794 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12795
12796 * fontset.c (Vfont_encoding_charset_alist): New variable.
12797 (syms_of_fontset): DEFVAR it.
12798 (reorder_font_vector, fontset_find_font): Optimize for the case of
12799 no need of reordering.
12800 (face_for_char): Map the charset property by
12801 Vfont_encoding_charset_alist.
12802
12803 2008-02-01 Jason Rumney <jasonr@gnu.org>
12804
12805 * w32font.c (logfonts_match): Don't check adstyle here.
12806 (font_matches_spec): Check here against physical font instead.
12807 (add_font_entity_to_list): Avoid some substitutions.
12808
12809 * font.c (font_parse_fcname): Default weight and slant to normal.
12810 (font_score): Prefer normal fonts if weight or slant unspecified.
12811 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12812 match freetype scores.
12813
12814 2008-02-01 Jason Rumney <jasonr@gnu.org>
12815
12816 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12817 font, as it may have been deleted.
12818 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12819 most common hyphenless variation.
12820 (logfonts_match): Check generic family.
12821 (font_matches_spec): Don't check generic family here.
12822 (fill_in_logfont): Set generic family based on adstyle.
12823
12824 * w32font.h (w32font_get_cache): Update declaration.
12825
12826 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12827
12828 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12829
12830 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12831 If none of the new drivers are available, call font_update_drivers
12832 with the old drivers.
12833
12834 * w32font.c (w32font_get_cache): Adjust the argument type.
12835
12836 * xfont.c (xfont_get_cache): Adjust the argument type.
12837
12838 * font.h (struct font_driver): Change argument type of get_cache.
12839
12840 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12841
12842 * font.c (Ffont_get): Fix arguments to Fassoc.
12843 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12844 (font_clear_cache): New function.
12845 (font_list_entities, font_matching_entity): Use font_get_cache.
12846 (font_update_drivers): Call font_clear_cache when finishing a driver.
12847
12848 * fontset.c (fontset_find_font): Fix previous change.
12849
12850 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12851
12852 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12853 dpyinfo->font_table.
12854 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12855 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12856
12857 * font.c (font_at): Handle the case that the arg C is negative.
12858 Handle the unibyte case.
12859 (Ffont_at): Call font_at with the arg C -1.
12860
12861 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12862 the position here, and call font_at with the arg C -1.
12863 Don't check the range of the existing composition at the point.
12864
12865 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12866
12867 * fontset.c (fontset_add): New args charset_id and family.
12868 Change caller.
12869 (load_font_get_repertory, fontset_find_font): Assume that
12870 font_spec is always a font-spec object.
12871 (Fset_fontset_font): Always store a font-spec object in a fontset.
12872
12873 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12874 instead of get_property_and_range.
12875
12876 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12877
12878 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12879 (xftfont_open): Don't keep locking face.
12880 (xftfont_close): Don't unlock face.
12881 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12882
12883 * fontset.c (fontset_find_font): Don't prefer a font of
12884 supplementary charset.
12885
12886 2008-02-01 Kenichi Handa <handa@m17n.org>
12887
12888 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12889 script, langsys_tag to langsys, new member script.
12890 (OTF_TAG_STR): Terminate by '\0'.
12891 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
12892 listing to the script specified in that property. Fix arg to
12893 OTF_check_features.
12894
12895 2008-02-01 Jason Rumney <jasonr@gnu.org>
12896
12897 * w32font.h: New file.
12898
12899 * w32font.c: Include it.
12900 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12901 (w32font_open): Set owning_frame.
12902 (w32font_text_extents): Use owning_frame.
12903 (struct font_callback_data): Add opentype_only field.
12904 (add_font_entity_to_list): Use it to filter fonts.
12905 Don't check against full name.
12906 (w32font_list_internal): New function.
12907 (w32font_list): Use it.
12908 (w32font_match_internal): New function.
12909 (w32font_match): Use it.
12910 (w32font_open_internal): New function.
12911 (w32font_open): Use it.
12912 (w32font_get_cache, w32font_close, w32font_has_char)
12913 (w32font_encode_char, w32font_text_extents, w32font_draw):
12914 Make non-static.
12915
12916 * makefile.w32-in (w32font.o): Depend on w32font.h.
12917
12918 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12919
12920 * charset.c (Fdefine_charset_internal): Record a supplementary
12921 charset at the tail of Vcharset_order_list.
12922
12923 * font.c (Ffont_shape_text): Fix the return value.
12924
12925 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12926
12927 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12928
12929 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12930
12931 * ftfont.c (struct OpenTypeSpec): New struct.
12932 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12933 (ftfont_get_open_type_spec): New function.
12934 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12935
12936 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12937
12938 2008-02-01 Jason Rumney <jasonr@gnu.org>
12939
12940 * w32font.c (add_font_entity_to_list): Compare only the beginning
12941 of full name.
12942
12943 2008-02-01 Kenichi Handa <handa@m17n.org>
12944
12945 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12946 Never return HANDLED_RECOMPUTE_PROPS.
12947
12948 2008-02-01 Kenichi Handa <handa@m17n.org>
12949
12950 * font.c (font_gstring_produce): Delete it.
12951
12952 * composite.h (COMPOSITION_METHOD):
12953 Handle COMPOSITION_WITH_GLYPH_STRING.
12954
12955 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12956
12957 * xfont.c (Qx): Delete.
12958 (syms_of_xfont): Don't initialize Qx.
12959
12960 * composite.h (enum composition_method):
12961 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12962
12963 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12964
12965 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12966 (choose_face_font): Accept new form of font-spec.
12967
12968 * frame.h (font_driver_list): Declare it unconditionally.
12969 (struct frame): Define members font_driver_list and font_data_list
12970 unconditionally.
12971
12972 * fontset.c: Include "font.h" unconditionally.
12973 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12974 (Fset_fontset_font): Accept a font-spec object.
12975
12976 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12977 PIXEL_SIZE part a wild card.
12978
12979 * dispextern.h (struct glyph_string): Define members clip and
12980 num_clips unconditionally.
12981 (struct face): Define members font_info and extra unconditionally.
12982
12983 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12984 ftfont_info only when HAVE_LIBOTF is defined.
12985
12986 2008-02-01 Andreas Schwab <schwab@suse.de>
12987
12988 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12989 and end.
12990
12991 2008-02-01 Jason Rumney <jasonr@gnu.org>
12992
12993 * w32font.c (w32font_driver): Add new fields.
12994
12995 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12996
12997 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12998 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12999 (LIBES): Add @M17N_FLT_CFLAGS@.
13000
13001 * composite.c (compose_text): Don't treat the new style
13002 composition specially.
13003
13004 * emacs.c (main): Call syms_of_font unconditionally.
13005
13006 * font.h (FONT_ENTITY_NOT_LOADABLE)
13007 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13008 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13009 (struct font_driver): New member shape.
13010 (font_registry_charsets): Extern it.
13011 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13012 (font_otf_capability, font_drive_otf): Delete their externs.
13013
13014 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13015 (font_charset_alist, font_registry_charsets): Move from xfont.c
13016 and rename.
13017 (font_prop_validate_otf): New function.
13018 (font_property_table): Register it for QCotf.
13019 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13020 (font_drive_otf): Delete.
13021 (font_prepare_composition): New arg F. Adjust for the change of
13022 lispy gstring.
13023 (font_find_for_lface): New arg C.
13024 (font_load_for_face): Adjust for the change of font_find_for_lface.
13025 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13026 lispy gstring.
13027 (Ffont_shape_text): New function.
13028 (Fopen_font): If the font size is not given, use 12-pixel.
13029 (Ffont_at): New arg STRING.
13030 (syms_of_font): Initalize font_charset_alist.
13031 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13032 conditionally.
13033
13034 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13035 fonts of the same font-spec. Change the format of RFONT-DEF.
13036 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13037 Adjust for the change of RFONT-DEF.
13038 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13039
13040 * ftfont.h: New file.
13041
13042 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13043 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13044 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13045 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13046 font_otf_capability and font_drive_otf, set ftfont_shape.
13047 (ftfont_list): Adjust for the change of :otf property value.
13048 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13049 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13050 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13051 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13052 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13053 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13054
13055 * w32term.c (x_draw_composite_glyph_string_foreground):
13056 Adjust for the change of lispy gstring.
13057
13058 * xdisp.c (handle_composition_prop): Adjust for the change of
13059 lispy gstring. Call a function for auto-composition with the
13060 third arg it->window.
13061 (fill_composite_glyph_string): Adjust for the change of lispy string.
13062 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13063
13064 * xfaces.c (set_font_frame_param): Adjust for the change of
13065 font_find_for_lface.
13066
13067 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13068 (xfont_registry_charsets): Likewise. Change caller.
13069 (syms_of_xfont): Don't handle x_font_charset_alist.
13070
13071 * xftfont.c: Include "ftfont.h".
13072 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13073 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13074 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13075 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13076 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13077 Set xftfont_driver.shape to xftfont_shape.
13078
13079 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13080 the change of lispy gstring.
13081
13082 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13083
13084 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13085
13086 2008-02-01 Jason Rumney <jasonr@gnu.org>
13087
13088 * w32font.c (w32font_draw): Fill background manually.
13089
13090 2008-02-01 Jason Rumney <jasonr@gnu.org>
13091
13092 * font.c (Qfontp): Remove unused symbol.
13093 (QCantialias): New symbol.
13094 (syms_of_font): Define it.
13095 (font_property_table): Set a validator for QCantialias.
13096
13097 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13098 Define if not already.
13099 (QCfamily): Share with xfaces.c.
13100 (Qstandard, Qsubpixel, Qnatural): New symbols.
13101 (syms_of_w32font): Define them. Don't define QCfamily here.
13102 (w32_antialias_type, lispy_antialias_type): New functions.
13103 (w32_enumfont_pattern_entity): New arg requested_font.
13104 Set antialias parameter if non-default was requested.
13105 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13106
13107 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13108
13109 * lread.c (read1): Undo the previous change.
13110
13111 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13112
13113 * frame.c (Fdelete_frame): Call font_update_drivers only when
13114 USE_FONT_BACKEND is defined.
13115
13116 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13117
13118 * font.h (struct font_bitmap): New member bits_per_pixel.
13119 (struct font_driver): New members start_for_frame and end_for_frame.
13120 (struct font_data_list): New struct.
13121 (font_put_frame_data, font_get_frame_data): Extern them.
13122
13123 * frame.h (struct frame): New member font_data_list.
13124
13125 * font.c (font_update_drivers): Call driver->start_for_frame and
13126 driver->end_for_frame at proper timings.
13127 (font_put_frame_data, font_get_frame_data): New functions.
13128 (Ffont_spec): Add usage in the docstring.
13129
13130 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13131 (Fdelete_frame): Call font_update_drivers.
13132
13133 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13134 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13135 (xftfont_get_xft_draw): New function.
13136 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13137 (xftfont_end_for_frame): New function.
13138 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13139
13140 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13141 Change argument. Cache GCs in the per-frame data.
13142 (struct ftxfont_frame_data): New struct.
13143 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13144 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13145 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13146 (ftxfont_end_for_frame): New function.
13147 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13148
13149 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13150
13151 2008-02-01 Kenichi Handa <handa@m17n.org>
13152
13153 * xselect.c (Vselection_coding_system)
13154 (Vnext_selection_coding_system): Delete them.
13155 (syms_of_xselect): Don't declare selection-coding-system and
13156 next-selection-coding-system. They are declared in select.el.
13157
13158 2008-02-01 Jason Rumney <jasonr@gnu.org>
13159
13160 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13161
13162 * w32fns.c: Include imm.h.
13163 (get_composition_string_fn, get_ime_context_fn): New optional
13164 system functions.
13165 (globals_of_w32fns): Load them from imm32.dll.
13166 (ignore_ime_char): New flag.
13167 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13168 WM_IME_ENDCOMPOSITION messages.
13169
13170 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13171 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13172
13173 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13174
13175 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13176 (READCHAR_REPORT_MULTIBYTE): New macro.
13177 (readchar): New 2nd arg MULTIBYTE.
13178 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13179 Make symbol's name multibyte according to the multibyteness of the
13180 source.
13181
13182 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13183
13184 * xfaces.c (face_for_overlay_string): Call lookup_face with
13185 correct arguments (fix of synching with the trunk).
13186
13187 2008-02-01 Kenichi Handa <handa@m17n.org>
13188
13189 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13190 (font_prop_validate_non_neg, font_prop_validate_spacing):
13191 Delete argument prop_index.
13192 (font_property_table): Change arguments to validater. Change Callers.
13193 (font_lispy_object): Delete.
13194 (font_at): Use font_find_object instead fo font_lispy_object.
13195
13196 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13197
13198 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13199 and file names.
13200
13201 2008-02-01 Jason Rumney <jasonr@gnu.org>
13202
13203 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13204 (font_matches_spec): Remove debug output.
13205 (add_font_entity_to_list): Avoid using substituted fonts.
13206
13207 2008-02-01 Jason Rumney <jasonr@gnu.org>
13208
13209 * doc.c (Fsnarf_documentation):
13210 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13211
13212 2008-02-01 Miles Bader <miles@gnu.org>
13213
13214 * dispextern.h (struct glyph_row): Only define "clip" field if
13215 HAVE_WINDOW_SYSTEM is defined.
13216
13217 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13218
13219 Fix up multi-tty merge.
13220
13221 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13222 and indentation.
13223
13224 * xfaces.c (free_realized_face, clear_face_gcs):
13225 Include font_done_for_face in the input_blocked section, just in case.
13226
13227 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13228 (get_char_face_and_encoding): Undo last change and remove the *other*
13229 duplicate definition (i.e. keep the one that's better scoped and that
13230 includes code for the font-backend).
13231
13232 * terminal.c (create_terminal): Default keyboard_coding to
13233 `no-conversion' and terminal_coding to `undecided'.
13234
13235 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13236
13237 * fontset.c (free_realized_fontsets): Check that the table entry does
13238 contain a fontset before trying to compare it to `base'.
13239
13240 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13241 syms_of_charset, and syms_of_coding earlier because init_window_once
13242 now needs Vcoding_system_hash_table to be setup.
13243
13244 * coding.h (default_buffer_file_coding): Remove.
13245
13246 * coding.c (default_buffer_file_coding): Remove.
13247 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13248 than ->symbol, and use the terminal-local coding system.
13249 (syms_of_coding): Don't setup the coding-systems that are not
13250 terminal-local.
13251 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13252
13253 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13254 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13255
13256 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13257 in chartab.c and were re-added here by mistake.
13258 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13259
13260 * doc.c (Fsnarf_documentation):
13261 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13262 src to etc.
13263
13264 * ChangeLog.10: Add mistakenly removed entry.
13265
13266 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13267
13268 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13269
13270 2008-02-01 Miles Bader <miles@gnu.org>
13271
13272 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13273 Add extra args to FACE_FOR_CHAR.
13274
13275 2008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13278 in sequence.
13279
13280 * chartab.c (map_sub_char_table, map_char_table): If the range
13281 contains just one character, call the function with that character
13282 even if the depth is not 3.
13283
13284 2008-02-01 Jason Rumney <jasonr@gnu.org>
13285
13286 * w32font.c (w32font_text_extents): Calculate metrics for the
13287 whole string.
13288
13289 2008-02-01 Jason Rumney <jasonr@gnu.org>
13290
13291 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13292
13293 2008-02-01 Jason Rumney <jasonr@gnu.org>
13294
13295 * w32term.c (x_set_glyph_string_clipping): Use
13296 get_glyph_string_clip_rects.
13297 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13298 Adjust for the change of struct glyph_string.
13299
13300 * w32font.c (w32font_draw): Do clipping here.
13301
13302 2008-02-01 Kenichi Handa <handa@m17n.org>
13303
13304 * xftfont.c (xftfont_draw): Adjust for the change of struct
13305 glyph_string.
13306
13307 * xterm.c (x_set_glyph_string_clipping): Use
13308 get_glyph_string_clip_rects.
13309 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13310 Adjust for the change of struct glyph_string.
13311
13312 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13313 the resulting clip(s}.
13314 (expose_overlaps): Add arg r. Change callers. Set it to
13315 row->clip temporarily.
13316 (expose_window): Redraw rows overlapping the exposed area.
13317
13318 * dispextern.h (struct glyph_row): New member clip.
13319 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13320 clip_height, new member clip, and num_clips.
13321
13322 2008-02-01 Kenichi Handa <handa@m17n.org>
13323
13324 * data.c (Fchar_or_string_p): Fix docstring.
13325
13326 2008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13329 create a temporary XftDraw object.
13330
13331 2008-02-01 Kenichi Handa <handa@m17n.org>
13332
13333 * font.c (Ffontp): Fix docstring.
13334
13335 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13336 strong evidence of ISO-2022.
13337
13338 2008-02-01 Kenichi Handa <handa@m17n.org>
13339
13340 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13341 SYNTAX_ENTRY_FOLLOW_PARENT.
13342
13343 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13344
13345 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13346 its type.
13347 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13348 Update to the new type of weak_hash_tables and next_weak.
13349
13350 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13351 a plain C pointer to Lisp_Hash_Table.
13352
13353 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13354 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13355 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13356 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13357 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13358 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13359 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13360 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13361 (GC_EQ): Remove since they've been identical to their non-GC_
13362 alter-egos ever since the markbit was eradicated.
13363
13364 * alloc.c:
13365 * buffer.c:
13366 * buffer.h:
13367 * data.c:
13368 * fileio.c:
13369 * filelock.c:
13370 * fns.c:
13371 * frame.h:
13372 * lisp.h:
13373 * macterm.c:
13374 * print.c:
13375 * process.c:
13376 * w32fns.c:
13377 * w32menu.c:
13378 * w32term.c:
13379 * xfns.c:
13380 * xmenu.c:
13381 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13382
13383 2008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * chartab.c (map_sub_char_table): Make it work for the top-level
13386 char-table. Fix handling of parent char-table.
13387 (map_char_table): Adjust for the above change.
13388
13389 2008-02-01 Jason Rumney <jasonr@gnu.org>
13390
13391 * w32font.c (Qgdi): Rename from Qw32.
13392
13393 2008-02-01 Jason Rumney <jasonr@gnu.org>
13394
13395 * w32bdf.c (get_quoted_string): Make function static.
13396
13397 2008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13400 bigger ascent and descent than those of the font, use them as
13401 font's ascent and descent.
13402
13403 2008-02-01 Kenichi Handa <handa@m17n.org>
13404
13405 * Makefile.in (${lispsource}international/charprop.el): Move this
13406 target within "#ifdef HAVE_UNIDATA" and "#endif".
13407
13408 2008-02-01 Kenichi Handa <handa@m17n.org>
13409
13410 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13411 (shortlisp): Add ../lisp/language/tai-viet.el.
13412
13413 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
13414
13415 * Makefile.in (${lispsource}international/charprop.el): Depend on
13416 temacs${EXEEXT}.
13417
13418 2008-02-01 Jason Rumney <jasonr@gnu.org>
13419
13420 * w32font.c (w32font_close): Delete the GDI font object.
13421
13422 * w32menu.c: Include character.h.
13423
13424 * w32proc.c: Likewise.
13425
13426 * w32select.c: Likewise.
13427
13428 * makefile.w32-in (w32proc.o): Depend on character.h.
13429
13430 2008-02-01 Jason Rumney <jasonr@gnu.org>
13431
13432 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13433
13434 * w32menu.c (syms_of_w32menu): Likewise.
13435
13436 * w32proc.c (syms_of_ntproc): Likewise.
13437
13438 * w32select.c (syms_of_w32select): Likewise.
13439
13440 * w32term.c (syms_of_w32term): Likewise.
13441
13442 2008-02-01 Jason Rumney <jasonr@gnu.org>
13443
13444 * w32font.c (w32font_draw): Delete brush after using it.
13445
13446 2008-02-01 Jason Rumney <jasonr@gnu.org>
13447
13448 * w32font.c (w32font_open): Don't set font_idx.
13449 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13450 to font settings.
13451 (w32font_draw): Fill background explicitly.
13452
13453 2008-02-01 Jason Rumney <jasonr@gnu.org>
13454
13455 * w32term.c (w32_initialize): Don't call w32font_initialize.
13456
13457 * w32font.c (w32font_info): Remove subranges.
13458 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13459 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13460 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13461 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13462 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13463 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13464 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13465 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13466 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13467 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13468 New symbols.
13469 (font_callback_data): New struct.
13470 (w32font_list, w32font_match): Use it.
13471 (w32font_open): Don't populate subranges.
13472 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13473 (w32font_encode_char): Always return unicode code-point as-is.
13474 (w32font_text_extents): Supply a transformation matrix to
13475 GetGlyphOutline. Never look up by glyph index. Avoid looping
13476 twice. Use unicode version of GetTexExtentPoint32 instead of
13477 glyph index version.
13478 (set_fonts_frame): Remove.
13479 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13480 set frame parameter. Use backward compatible fake foundries.
13481 Save generic family in extra slot under QCfamily. Make width slot
13482 constant. Save QCspacing value. Save list of scripts instead of
13483 binary subranges.
13484 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13485 (add_font_entity_to_list): Use font_callback_data struct. Filter
13486 unwanted fonts.
13487 (add_one_font_entity_to_list): Use font_callback_data struct.
13488 (w32_registry): Default to iso10646_1.
13489 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13490 string font registries. Don't fill in font name if it is a generic
13491 family name, fill family instead. Use spacing, family and script
13492 extra info to fill pitch, family and charset fields.
13493 (list_all_matching_fonts): Use font_callback_data struct.
13494 (unicode_range_for_char): Remove.
13495 (font_supported_scripts): New function.
13496 (w32font_initialize): Remove.
13497 (syms_of_w32font): Update which symbols are defined.
13498
13499 2008-02-01 Jason Rumney <jasonr@gnu.org>
13500
13501 * font.c (font_pixel_size): Reverse assq_no_quit args.
13502
13503 * w32term.h (FONT_WIDTH): Report max width, not average.
13504 (FONT_MAX_WIDTH): Remove.
13505 (FONT_AVG_WIDTH): New macro.
13506
13507 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13508 redefinition of FONT_WIDTH.
13509
13510 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13511 (w32_cache_char_metrics): Use FONT_WIDTH.
13512
13513 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13514
13515 2008-02-01 Jason Rumney <jasonr@gnu.org>
13516
13517 * w32font.c (w32font_open): Make lfHeight negative.
13518
13519 * w32fns.c (x_default_font_parameter): Use new style font name.
13520 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13521
13522 2008-02-01 Jason Rumney <jasonr@gnu.org>
13523
13524 * w32font.c (QCsubranges): New symbol.
13525 (w32font_open, w32font_has_char): Get subranges from subproperty
13526 of extra.
13527 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13528 (syms_of_w32font): Define :subranges symbol.
13529
13530 * font.c (font_put_extra): Expose externally.
13531
13532 * font.h (font_put_extra): Move declaration from font.c.
13533
13534 * font.c (Ffont_get): Use font driver to determine otf capability.
13535 (adjust_anchor): Check if driver defines anchor_point before using.
13536
13537 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13538 (w32font_draw): Use options.
13539 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13540 Fix detection of truetype fonts.
13541 (registry_to_w32_charset): Handle charsets other than iso8859-1
13542 expressed as lisp symbols.
13543 (w32_registry): Express charset as lisp symbol.
13544 (fill_in_logfont): Reverse pixel and point height logic.
13545 Don't set width here. Set quality to default.
13546
13547 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13548 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13549
13550 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13551 Remove redundant loop and allocation.
13552
13553 * makefile.w32-in (font.o, w32font.o): New objects.
13554 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13555 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13556
13557 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13558 STORE_XCHARB a valid l-value.
13559
13560 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13561 calculations for non-Truetype fonts.
13562 (x_draw_glyph_string): Sync with xterm.c.
13563 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13564 Remove redundant code.
13565 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13566
13567 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13568 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13569
13570 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13571 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13572
13573 * w32font.c: New file for w32 font backend.
13574
13575 2008-02-01 Kenichi Handa <handa@m17n.org>
13576
13577 * term.c: Don't include "buffer.h" twice.
13578
13579 2008-02-01 Kenichi Handa <handa@m17n.org>
13580
13581 * character.c (Funibyte_string): New function.
13582 (syms_of_character): Defsubr it.
13583
13584 2008-02-01 Jason Rumney <jasonr@gnu.org>
13585
13586 * w32term.c [USE_FONT_BACKEND]:
13587 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13588 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13589 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13590 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13591 (x_free_frame_resources): Sync with xterm.c.
13592
13593 2008-02-01 Andreas Schwab <schwab@suse.de>
13594
13595 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13596 char-table size.
13597
13598 2008-02-01 Kenichi Handa <handa@m17n.org>
13599
13600 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13601
13602 2008-02-01 Kenichi Handa <handa@m17n.org>
13603
13604 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13605 font_otf_gpos, add font_drive_otf.
13606
13607 * fontset.c (fontset_find_font): Pay attention to font size
13608 specified for a font.
13609 (reorder_font_vector): Check contents of font_def.
13610
13611 * font.c (struct otf_list): Delete it.
13612 (otf_list): Make it a lisp variable.
13613 (otf_open): Use lispy otf_list.
13614 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13615 (check_otf_features): New function.
13616 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13617 New functions.
13618 (font_drive_otf): New function merging font_otf_gsub and
13619 font_otf_gpos.
13620 (font_open_for_lface): New arg spec. Change argument order.
13621 (font_load_for_face): Adjust for the change of font_open_for_lface.
13622 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13623 Ffont_otf_gpos.
13624 (syms_of_font): Staticpro otf_list. Delete defsubr of
13625 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13626
13627 * xfaces.c (set_font_frame_param): Adjust for the change of
13628 font_open_for_lface.
13629
13630 * font.h (font_open_for_lface): Adjust prototype.
13631 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13632 member otf_drive.
13633 (font_otf_gsub, font_otf_gpos): Delete externs.
13634 (font_drive_otf): Extern it.
13635
13636 2008-02-01 Kenichi Handa <handa@m17n.org>
13637
13638 * font.c (font_at): If the window W is not on a window system,
13639 return Qnil.
13640
13641 * coding.c (produce_chars, encode_coding): Don't call
13642 insert_from_gap if no characters to produce.
13643
13644 2008-02-01 Kenichi Handa <handa@m17n.org>
13645
13646 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13647 Fclear_face_cache.
13648
13649 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13650
13651 2008-02-01 Miles Bader <miles@gnu.org>
13652
13653 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13654 Parse "--disable-font-backend" option.
13655 (standard_args): Add "--disable-font-backend" option.
13656
13657 2008-02-01 Kenichi Handa <handa@m17n.org>
13658
13659 * fontset.c (fontset_find_font): New function.
13660 (fontset_font): Use fontset_find_font.
13661 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13662 Register the specified font for all Latin characters.
13663 (new_fontset_from_font): Register the specified font for all Latin
13664 characters.
13665 (dump_fontset): For a realized fontset, include the base fontset
13666 name in the returned vector.
13667
13668 2008-02-01 Kenichi Handa <handa@m17n.org>
13669
13670 * character.h (CHAR_STRING): Cast C to unsigned on calling
13671 char_string.
13672
13673 * character.c (char_string): Type of arg C changed to unsigned.
13674 Signal an error if C is an invalid character code.
13675
13676 * editfns.c (general_insert_function, Fchar_to_string):
13677 Use CHARACTERP, not INTEGERP.
13678
13679 2008-02-01 Kenichi Handa <handa@m17n.org>
13680
13681 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13682 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13683
13684 * regex.c (analyse_first): Fix for multibyte characters in "case
13685 charset:" and "case categoryspec:".
13686
13687 2008-02-01 Andreas Schwab <schwab@suse.de>
13688
13689 * Makefile.in (LIBES): Move standard libraries to the end.
13690
13691 2008-02-01 Kenichi Handa <handa@m17n.org>
13692
13693 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13694 nonzero, don't shrink the buffer nextb.
13695
13696 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13697
13698 * coding.c (coding_alloc_by_making_gap): New arg offset.
13699 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13700 offset.
13701 (decode_coding_iso_2022): Update coding->safe_charsets.
13702 (decode_coding_gap): Temporarily set
13703 current_buffer->text->inhibit_shrinking to 1.
13704
13705 2008-02-01 Kenichi Handa <handa@m17n.org>
13706
13707 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13708 indexing into elements of s->cmp and s->char2b.
13709
13710 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
13711
13712 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13713
13714 2008-02-01 Kenichi Handa <handa@m17n.org>
13715
13716 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13717 target_multibyte instead of multibyte.
13718 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13719 (bcmp_translate): Change the argument name from multibyte to
13720 target_multibyte.
13721
13722 2008-02-01 Kenichi Handa <handa@m17n.org>
13723
13724 These changes are to compile a regexp into a pattern that can be
13725 used both for multibyte and unibyte targets.
13726
13727 * Makefile.in (search.o): Depend on charset.h.
13728
13729 * character.c (multibyte_char_to_unibyte_safe): New function.
13730
13731 * search.c: Include "charset.h".
13732 (compile_pattern_1): Delete argument multibyte. Don't set
13733 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13734 (compile_pattern): Don't compare cp->buf.target_multibyte.
13735 Compare cp->buf.charset_unibyte.
13736 (compile_pattern): Set cp->buf.target_multibyte.
13737
13738 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13739
13740 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13741
13742 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13743 multibyte. Change callers.
13744 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13745 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13746 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13747 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13748 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13749 (regex_compile): Make the compiled pattern usable both for
13750 multibyte and unibyte targets.
13751 (analyse_first): Make the fastmap usable both for multibyte and
13752 unibyte targets.
13753 (TRANSLATE_VIA_MULTIBYTE): Delete.
13754 (re_match_2_internal): Pay attention to the case that the
13755 multibyteness of bufp and target may be different.
13756
13757 2008-02-01 Kenichi Handa <handa@m17n.org>
13758
13759 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13760 empty box occupy at least one column width.
13761
13762 2008-02-01 Miles Bader <miles@gnu.org>
13763
13764 * Makefile.in: Remove redundant HAVE_XFT clause.
13765
13766 2008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13769
13770 2008-02-01 Kenichi Handa <handa@m17n.org>
13771
13772 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13773 being nil.
13774
13775 2008-02-01 Kenichi Handa <handa@m17n.org>
13776
13777 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13778
13779 2008-02-01 Kenichi Handa <handa@m17n.org>
13780
13781 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13782
13783 2008-02-01 Kenichi Handa <handa@m17n.org>
13784
13785 * search.c (simple_search): Fix previous change.
13786
13787 2008-02-01 Kenichi Handa <handa@m17n.org>
13788
13789 * xftfont.c (ftfont_font_format): Extern declaration.
13790
13791 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13792
13793 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13794 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13795
13796 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13797 (ftfont_font_format): Fix previous change.
13798
13799 * font.h (Ffont_xlfd_name): EXFUN it.
13800
13801 * font.c (font_parse_xlfd): Fix the array size of `f'.
13802 (register_font_driver): Use EQ to compare driver->type.
13803
13804 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13805 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13806 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13807
13808 2008-02-01 Kenichi Handa <handa@m17n.org>
13809
13810 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13811 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13812
13813 2008-02-01 Kenichi Handa <handa@m17n.org>
13814
13815 * xfont.c (xfont_open): Set font->format.
13816
13817 * xftfont.c (xftfont_open): Set font->format.
13818
13819 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13820 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13821 (ftfont_open): Set font->format.
13822 (ftfont_font_format): New function.
13823
13824 * font.h (struct font): New member format.
13825
13826 * font.c (Qopentype): New variable.
13827 (syms_of_font): Defsym it.
13828 (Fquery_font): Change the format of the last element of the return
13829 value.
13830
13831 2008-02-01 Kenichi Handa <handa@m17n.org>
13832
13833 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13834 last resort.
13835
13836 2008-02-01 Kenichi Handa <handa@m17n.org>
13837
13838 * coding.c (detect_coding_charset): Fix detection of multi-byte
13839 charset.
13840
13841 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13842
13843 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13844
13845 2008-02-01 Kenichi Handa <handa@m17n.org>
13846
13847 * xdisp.c (get_next_display_element): Set it->face_id for the
13848 first component of a composition.
13849 (x_produce_glyphs): Check if the font is changed or not for composition.
13850
13851 2008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * fontset.c (Qlatin): New variable.
13854 (syms_of_fontset): Define it as a lisp symbol.
13855 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13856
13857 2008-02-01 Kenichi Handa <handa@m17n.org>
13858
13859 * font.c (font_unparse_fcname): Pay attention to the case that
13860 some of font property is a null string.
13861
13862 2008-02-01 Kenichi Handa <handa@m17n.org>
13863
13864 * term.c: Include "composite.h".
13865 (encode_terminal_code): Output all components of composition.
13866 Check the size of encode_terminal_src.
13867 (produce_glyphs): For composition, call produce_composite_glyph.
13868 (append_composite_glyph, produce_composite_glyph): New functions.
13869
13870 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13871 is not found, get font_info from the current ascii face.
13872
13873 2008-02-01 Kenichi Handa <handa@m17n.org>
13874
13875 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13876 buffer-file-name to Qnil before calling insert_from_buffer.
13877
13878 * font.c (font_unparse_fcname): Pay attention to the case that
13879 foundry is a null string.
13880
13881 2008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13884
13885 * font.c (Qunicode_sip): New variable.
13886 (syms_of_font): Declare it as a Lisp symbol.
13887
13888 * font.h (Qunicode_sip): Extern it.
13889
13890 2008-02-01 Kenichi Handa <handa@m17n.org>
13891
13892 * composite.c (get_composition_id): Pay attention to TAB component.
13893
13894 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13895 TAB. Adjust for the change of s->char2b which always points to
13896 the first element of allocated memory.
13897
13898 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13899
13900 * xdisp.c (handle_composition_prop): Set it->c to the first
13901 non-TAB component.
13902 (fill_composite_glyph_string): Change argument.
13903 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13904 (x_produce_glyphs): Fix handling of left/right padding.
13905
13906 2008-02-01 Kenichi Handa <handa@m17n.org>
13907
13908 * coding.c (detect_coding_system): Fix for handling off
13909 inhibit_iso_escape_detection. Fix for the case that no coding
13910 system is defined for a specific coding category.
13911
13912 2008-02-01 Kenichi Handa <handa@m17n.org>
13913
13914 * font.c (font_matching_entity): Delete unused local var.
13915
13916 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13917 opening a font.
13918
13919 * fileio.c (Finsert_file_contents): On recovering a file, assume
13920 Unix-like eol.
13921 (choose_write_coding_system): On auto-saving a file, force
13922 Unix-like eol.
13923
13924 * coding.c (setup_coding_system): Fix setting of
13925 coding->common_flags based on eol_type.
13926 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13927 inherit from it.
13928
13929 2008-02-01 Kenichi Handa <handa@m17n.org>
13930
13931 * alloc.c (NSTATICS): Increas to 0x600.
13932
13933 2008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13936 (ftfont_list): Don't check :name property.
13937 (ftfont_match): New function.
13938 (ftfont_pattern_entity): If the pattern doesn't contain
13939 FC_SPACING, don't assume FC_MONO.
13940
13941 * font.h (struct font_driver): New member `match'.
13942 (font_update_drivers): Adjust prototype.
13943
13944 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13945 property of FONT.
13946 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13947 them unconditionally.
13948 (font_matching_entity): New function.
13949 (font_open_by_name): Try font_matching_entity if exact match is
13950 not found.
13951 (font_update_drivers): Delete the arg FONT. Return a list of
13952 actually used backends. Don't free faces, font caches here.
13953 Don't store data in frame parameters. Don't call x_set_font.
13954 (Ffont_spec): Store :name property as is.
13955 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13956 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13957 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13958 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13959 Call font->driver->otf_gsub instead of font_otf_gsub.
13960
13961 * frame.c (x_set_font_backend): Do more works that were done in
13962 font_update_drivers before.
13963
13964 * xfont.c (xfont_match): New function.
13965 (xfont_driver): Set xfont_driver.match to xfont_match.
13966 (xfont_draw): Set font in GC if necessary.
13967
13968 * ftxfont.c (ftxfont_match): New function.
13969 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13970
13971 * xftfont.c (xftfont_match): New function.
13972 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13973
13974 2008-02-01 Kenichi Handa <handa@m17n.org>
13975
13976 * font.h (struct font): New member scalable.
13977 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13978 (font_otf_gsub): Adjust prototype.
13979
13980 * font.c (font_otf_capability): Fix handling of the default langsys.
13981 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13982 Check the contents of SPEC.
13983 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13984 (check_gstring): New function.
13985 (REPLACEMENT_CHARACTER): New macro.
13986 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13987 glyph codes of GSTRING.
13988 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13989 (font_prepare_composition): Set cmp->glyph_len.
13990 (font_open_entity): Set font->scalable.
13991 (Ffont_get): Handle :otf property.
13992 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13993 functions.
13994 (Fquery_font): Use font->font.full_name.
13995 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13996 Sfont_otf_alternates.
13997
13998 * ftfont.c (ftfont_open): Set font->font.full_name and
13999 font->font.name properly. Fix calculation of font->font.height
14000 and font->min_width.
14001
14002 * ftxfont.c (ftxfont_create_gcs): New function.
14003 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14004 (ftxfont_draw_backgrond): Fix filling region.
14005 (ftxfont_default_fid): New function.
14006 (ftxfont_open): Set xfont->fid to the return value of
14007 ftxfont_default_fid.
14008 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14009 (ftxfont_done_face): Free only GCs that are created by
14010 ftxfont_create_gcs.
14011 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14012
14013 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14014 Clip to src->width, etc (not src->clip_XXX).
14015
14016 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14017 FontBackend frame parameter.
14018
14019 2008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * font.h (struct font_driver_list): New member `on'.
14022 (Fclear_font_cache): EXFUN it.
14023 (font_update_drivers): Extern it.
14024
14025 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14026 (font_list_entities): Check driver_list->on.
14027 (register_font_driver): Initalize `on' member to 0.
14028 (font_update_drivers): New function.
14029 (Fclear_font_cache): Check driver_list->on.
14030
14031 * frame.h (Qfont_backend): Extern it.
14032 (x_set_font_backend): Extern it.
14033
14034 * frame.c (Qfont_backend): New variable.
14035 (frame_parms): New element for font-backend.
14036 (x_set_font_backend): New function.
14037
14038 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14039 FontBackend frame parameter.
14040 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14041 x_set_font_backend.
14042
14043 * xfont.c (xfont_list): Don't try listing by :name property if the
14044 name is not for XLFD.
14045
14046 2008-02-01 Kenichi Handa <handa@m17n.org>
14047
14048 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14049 (LGLYPH_SET_TO): New macros.
14050 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14051 element of G is vector or not.
14052 (font_at): Extern it.
14053
14054 * font.c: Include window.h.
14055 (font_lispy_object): New function.
14056 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14057 end of valid glyph.
14058 (font_close_object): Fix getting (struct font *).
14059 (font_at): New function.
14060 (Ffont_get): If FONT is a font-object, get entity from it.
14061 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14062 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14063 range check.
14064 (Ffont_at): New function.
14065 (syms_of_font): Defsubr Sfont_at.
14066
14067 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14068 before the entry for Qcomposition.
14069 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14070 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14071 the font in gstring.
14072 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14073 LGLYPH_FORM (g) to detect the end of valid glyph.
14074 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14075 we are composing with gstring.
14076
14077 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14078 Check if adjustment is vector or not.
14079
14080 * Makefile.in (font.o): Make it depends on window.h.
14081
14082 2008-02-01 Kenichi Handa <handa@m17n.org>
14083
14084 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14085 adjustment is vector or not.
14086
14087 2008-02-01 Miles Bader <miles@gnu.org>
14088
14089 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14090
14091 2008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14094 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14095 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14096
14097 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14098 (DEVICE_DELTA): Fix typo.
14099 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14100 LGLYPH format.
14101
14102 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14103 the change of LGLYPH format.
14104
14105 2008-02-01 Kenichi Handa <handa@m17n.org>
14106
14107 * ftfont.c (ftfont_list): Fix typo.
14108 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14109
14110 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14111
14112 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14113
14114 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14115 xftface_info is non-NULL.
14116
14117 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14118
14119 * ftfont.c (ftfont_list): Move misplaced #endif.
14120
14121 2008-02-01 Kenichi Handa <handa@m17n.org>
14122
14123 * ftfont.c (ftfont_list): Pay attention to the case that
14124 FC_CAPABILITY is not defined.
14125
14126 2008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * xftfont.c (xftfont_open): Set charset related members to -1.
14129
14130 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14131 QCname.
14132 (ftfont_open): Set charset related members to -1.
14133
14134 * fontset.c (Votf_script_alist): New variable.
14135 (syms_of_fontset): Initialize it.
14136 (fontset_font): Delete unused variable.
14137
14138 * fontset.h (Votf_script_alist): Extern it.
14139
14140 * font.c (font_find_for_lface): Optimize code.
14141
14142 * font.h (font_close_object, font_merge_old_spec): Extern them.
14143
14144 2008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14147 (syms_of_font): Initialize them.
14148 (font_pixel_size): Allow float value in dpi.
14149 (font_prop_validate_type): Delete.
14150 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14151 Change caller.
14152 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14153 (font_prop_validate_extra): Delete.
14154 (font_prop_validate_spacing): New function.
14155 (font_property_table): Add elements for all known properties.
14156 (get_font_prop_index): Rename from check_font_prop_name. New
14157 argument FROM. Change caller.
14158 (font_prop_validate): Validate all known properties.
14159 (font_put_extra): Delete argument force. Change caller.
14160 (font_expand_wildcards): Make it static. Fix the way of shrinking
14161 the possible range.
14162 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14163 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14164 Change caller.
14165 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14166 (font_parse_fcname): Delete argument merge. Fix parsing of point
14167 size. Don't validate properties values here. Change caller.
14168 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14169 (font_open_by_name): Delete unused variable.
14170 (Ffont_spec): Likewise. Validate property values.
14171 (Ffont_match_p): New function.
14172
14173 * font.h (QCscalable): Extern it.
14174 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14175
14176 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14177
14178 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14179 (xfont_list_pattern): New function.
14180 (xfont_list): Use xfont_list_pattern.
14181
14182 2008-02-01 Kenichi Handa <handa@m17n.org>
14183
14184 * font.h (Flist_fonts): EXFUN it.
14185
14186 2008-02-01 Jason Rumney <jasonr@gnu.org>
14187
14188 * w32term.c (w32_initialize): Add back smoothing_type and
14189 smoothing_enabled definitions.
14190
14191 2008-02-01 Kenichi Handa <handa@m17n.org>
14192
14193 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14194 s->face->font on determining underline position.
14195
14196 2008-02-01 Kenichi Handa <handa@m17n.org>
14197
14198 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14199 (font_has_char): Accept font-object too.
14200 (font_find_for_lface): Try at first with a size specified in face.
14201
14202 2008-02-01 Kenichi Handa <handa@m17n.org>
14203
14204 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14205 font_open_by_name.
14206
14207 2008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * font.h (QCspacing, QCdpi): Extern them.
14210 (enum font_spacing): New enum.
14211 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14212
14213 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14214 (QCspacing, QCdpi): New variables.
14215 (syms_of_font): Initialize them.
14216 (font_pixel_size): New function.
14217 (font_put_extra): New function.
14218 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14219 in FONT_EXTRA.
14220 (font_parse_fcname): Handle enumerated values (e.g. bold).
14221 Fix handling font size. Add QCname property that contains only
14222 unknown properties.
14223 (font_score): Change argument. Change caller. Pay attention to
14224 FONT_PIXEL_SIZE_QUANTUM.
14225 (font_sort_entites, font_list_entities, font_find_for_lface)
14226 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14227 (Ffont_spec): Add QCname property that contains only unknown properties.
14228
14229 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14230 include weight in listing pattern, instead check weight of each
14231 listed font. Don't include scalable in pattern. Pay attention to
14232 FONT_PIXEL_SIZE_QUANTUM.
14233
14234 2008-02-01 Kenichi Handa <handa@m17n.org>
14235
14236 * font.c (font_parse_fcname): Fix parsing of point-size.
14237 (font_unparse_fcname): Produce symbolic names for style properties.
14238 (font_list_entities): Handle float size correctly.
14239 (font_open_by_name): Prefer `normal' property values if the name
14240 doesn't specify them.
14241
14242 * fontset.c (Finternal_char_font): Use font_get_name, not
14243 Ffont_xlfd_name.
14244
14245 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14246 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14247 pattern. Don't force scalable.
14248
14249 * xftfont.c (xftfont_open): For generating a name, start from
14250 96-byte buffer.
14251
14252 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14253
14254 * frame.h (x_new_fontset2): Fix prototype.
14255
14256 2008-02-01 Kenichi Handa <handa@m17n.org>
14257
14258 * font.h (struct font_driver): Delete member parse_name.
14259 (font_match_p, font_get_spec, font_parse_fcname)
14260 (font_unparse_fcname): Extern them.
14261 (font_get_name): Adjust prototype.
14262
14263 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14264 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14265 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14266 unnecessary checks for weight, slant, and swidth.
14267 (font_parse_fcname): New function.
14268 (font_unparse_fcname): New function.
14269 (font_parse_name): New function.
14270 (font_match_p): New function.
14271 (font_get_name): Change return value to Lisp string.
14272 (font_get_spec): New function.
14273 (Qunspecified, Qignore_defface): Don't extern them.
14274 (font_find_for_lface): Assume that LFACE is fully specified.
14275 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14276 object, use it for FACE.
14277 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14278 driver->parse_name.
14279 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14280
14281 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14282 prototype.
14283
14284 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14285 argument F. Don't call Fnew_fontset. Instead, directly call
14286 make_fontset.
14287
14288 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14289
14290 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14291 of x_new_fontset2.
14292
14293 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14294 (Qsans__serif): New variables.
14295 (ftfont_generic_family_list): New variable.
14296 (syms_of_ftfont): Initialize the above variables.
14297 (ftfont_pattern_entity): Delete argument NAME.
14298 (ftfont_list_generic_family): New function.
14299 (ftfont_parse_name): Delete this function.
14300 (ftfont_list): Try generic family only when FcFontList found no font.
14301 (ftfont_list_family): Fix args to FcObjectSetBuild.
14302
14303 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14304 object in attrs[LFACE_FONT_INDEX].
14305 (set_lface_from_font_name): Cancel all changes for font-backend.
14306 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14307 function.
14308 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14309 font object in QCfont attribute.
14310 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14311 (realize_default_face) [USE_FONT_BACKEND]: Call
14312 set_lface_from_font_and_fontset.
14313
14314 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14315 "fixed", and signal error here if no suitable font was found.
14316
14317 * xfont.c (xfont_parse_name): Delete this function.
14318
14319 * xftfont.c (xftfont_open): Change coding style of error
14320 handling. Generate fontconfig's fontname pattern.
14321
14322 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14323 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14324
14325 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14326 Both args FONTSET and FONT_OBJECT must be existing ones.
14327
14328 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14329
14330 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14331
14332 2008-02-01 Kenichi Handa <handa@m17n.org>
14333
14334 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14335
14336 * font.h (struct font): Fix typo.
14337
14338 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14339 XLFD_XXX_INDEX.
14340 (enum xlfd_field_mask): New enum.
14341 (intern_font_field): Changed argument. Change caller. If digits
14342 are followed by non-digits, return a symbol.
14343 (font_expand_wildcards): New function.
14344 (font_parse_xlfd): Fix wildcard handling.
14345 (Ffont_spec): If :name is specified, reflect the info in the other
14346 properties.
14347
14348 * ftfont.c (ftfont_pattern_entity): Fix typo.
14349 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14350 locale.
14351
14352 2008-02-01 Kenichi Handa <handa@m17n.org>
14353
14354 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14355
14356 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14357 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14358 registry doesn't specify encoding part.
14359 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14360 (font_open_by_name): At first try parsing the name.
14361 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14362 as Lisp symbols.
14363
14364 * fontset.c (reorder_font_vector): Pay attention to the case that
14365 the 3rd element of font_def is nil.
14366 (fontset_font): For the default fontset, append one more fontset
14367 elements for a script-based font specification. Don't add script
14368 attribute on finding a font.
14369 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14370 font name.
14371 (fontset_ascii_font): If a font can't be opened, return nil.
14372
14373 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14374 (ftfont_pattern_entity): New function.
14375 (ftfont_get_cache): Assume that freetype_font_cache is already
14376 initialized.
14377 (ftfont_list): Handle the case that a file is specified in font
14378 name. Use ftfont_pattern_entity to generate entities.
14379 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14380 (syms_of_ftfont): Initialize freetype_font_cache.
14381
14382 * xftfont.c (xftfont_open): Make the font name fontconfig's
14383 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14384 (xftfont_close): Free font->font.name if not NULL.
14385
14386 * xfont.c (xfont_list): If script is specified for a font, return
14387 null_vector.
14388 (xfont_list_family): Declare argument type.
14389
14390 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14391 name, set LFACE_FONT (lface) to nil.
14392
14393 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14394 return Qnil.
14395
14396 2008-02-01 Kenichi Handa <handa@m17n.org>
14397
14398 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14399 (standard_args): Add "-enable-font-backend".
14400
14401 2008-02-01 Kenichi Handa <handa@m17n.org>
14402
14403 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14404 (struct xftdraw_list, xftdraw_list): Delete them.
14405 (register_xftdraw, check_xftdraw): Delete them.
14406 (xftfont_prepare_face): Don't call register_xftdraw.
14407 (xftfont_done_face): Don't call check_xftdraw.
14408 (xftfont_draw): Get background color only when with_background is
14409 nonzero.
14410
14411 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14412
14413 2008-02-01 Kenichi Handa <handa@m17n.org>
14414
14415 These changes are for the new font handling codes.
14416
14417 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14418 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14419 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14420 (FONTSRC, FONTOBJ): New variables.
14421 (obj): Add $(FONTOBJ).
14422 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14423 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14424 @LIBOTF_LIBS@.
14425 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14426 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14427
14428 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14429
14430 * character.h (Vscript_representative_chars): Extern it.
14431
14432 * character.c (Vscript_representative_chars): New variable.
14433 (syms_of_character): Declare it as a Lisp variable.
14434
14435 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14436 enable_font_backend is nonzero, accept the composition method
14437 COMPOSITION_WITH_GLYPH_STRING.
14438
14439 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14440 enumeration COMPOSITION_WITH_GLYPH_STRING.
14441
14442 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14443 members clip_x, clip_y, clip_width, and clip_height.
14444 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14445
14446 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14447 --enable-font-backend. Call syms_of_font.
14448
14449 * fns.c (assoc_no_quit): New function.
14450
14451 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14452 (face_for_font, new_fontset_from_font)
14453 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14454
14455 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14456 (fontset_font, fontset_ascii, face_for_char)
14457 (make_fontset_for_ascii_face, Ffont_info)
14458 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14459 is nonzero, use font-backend mechanism.
14460 (find_font_encoding): Make it non-static.
14461 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14462 New functions.
14463
14464 * frame.h (struct frame): New members resx and resy.
14465 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14466 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14467
14468 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14469 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14470
14471 * lisp.h (assoc_no_quit): Extern it.
14472
14473 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14474 Through out the file, use FONT_INFO_FROM_FACE instead of
14475 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14476 rif->per_char_metric.
14477 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14478 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14479 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14480 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14481 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14482 nonzero, use font-backend mechanism.
14483 (get_per_char_metric): New function.
14484
14485 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14486 (set_lface_from_font_name)
14487 (set_font_frame_param, free_realized_face)
14488 (prepare_face_for_display, clear_face_gcs)
14489 (Finternal_set_font_selection_order, realize_x_face)
14490 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14491 font-backend mechanism.
14492 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14493 (load_face_font) [USE_FONT_BACKEND]: Abort.
14494 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14495 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14496
14497 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14498 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14499 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14500 nonzero, register all available font drivers. Call
14501 x_default_font_parameter for deciding a font.
14502 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14503
14504 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14505 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14506 (x_set_glyph_string_clipping_exactly)
14507 (x_compute_glyph_string_overhangs)
14508 (x_draw_glyph_string_foreground)
14509 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14510 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14511 enable_font_backend is nonzero, use font-backend mechanism.
14512 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14513
14514 2008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14517 system_eol_type.
14518 (syms_of_coding): Initialize system_eol_type.
14519
14520 * process.c (Fset_process_coding_system): Inherit system's eol
14521 format if necessary.
14522
14523 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14524
14525 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14526
14527 2008-02-01 Kenichi Handa <handa@m17n.org>
14528
14529 * coding.c (decode_eol): Pay attention to buffer relocation in
14530 del_range_2.
14531 (decode_coding): Call decode_eol before restoring undo_list.
14532
14533 2008-02-01 Kenichi Handa <handa@m17n.org>
14534
14535 * charset.c (Fdefine_charset_internal): Fix setting of
14536 emacs_mule_bytes.
14537
14538 2008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * keyboard.c (read_char): Check if C is a character or not before
14541 looking up Vkeyboard_translate_table.
14542
14543 2008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14546 condition to terminate the loop.
14547
14548 2008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * coding.c (produce_composition): Compare charbuf[i] instead of
14551 args[i] against 0.
14552 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14553
14554 2008-02-01 Kenichi Handa <handa@m17n.org>
14555
14556 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14557 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14558 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14559 detect_coding.
14560 (emacs_mule_char): Handle old style (Emacs 20) component character
14561 of a composition.
14562 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14563 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14564 composition rule.
14565 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14566
14567 2008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * coding.c (encode_coding_ccl): Allocate destination dynamically
14570 when necessary.
14571
14572 2008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14575 the loop. When quitted, show a proper error message.
14576
14577 2008-02-01 Kenichi Handa <handa@m17n.org>
14578
14579 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14580 src->clip_head and src->clip_tail temporarily instead of src->hl.
14581
14582 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14583 character sequence.
14584 (Fccl_execute_on_string): Use ASET, not XSET.
14585
14586 2008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14589
14590 2008-02-01 Kenichi Handa <handa@m17n.org>
14591
14592 * coding.c (decode_coding): Fix the condition of terminating the
14593 decoding loop.
14594
14595 2008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * data.c (Faset): On setting a character bigger than 255 in a
14598 unibyte string, signal an error instead of make the string multibyte.
14599
14600 2008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14603 made by a mapping table.
14604
14605 2008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14608 not.
14609 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14610 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14611
14612 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14613 s->face is NULL or not.
14614
14615 2008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14618 (x_draw_glyph_string): Fix drawing of right_overhang and
14619 left_overhang around/on cursor.
14620
14621 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14622
14623 2008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14626
14627 2008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * coding.c (Fdefine_coding_system_internal)
14630 (Fdefine_coding_system_alias): Avoid a duplicated element in
14631 Vcoding_system_alist.
14632
14633 2008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14636
14637 * coding.c (Qcoding_system_define_form): New variable.
14638 (syms_of_coding): Intern and staticpro it.
14639 (Fcoding_system_p): Check Qcoding_system_define_form.
14640 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14641
14642 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14643 Fcoding_system_p.
14644 (CHECK_CODING_SYSTEM): If ID is not available, call
14645 Fcheck_coding_system.
14646 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14647 Try also Fcheck_coding_system.
14648
14649 2008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * coding.c (code_conversion_restore): GCPRO arg.
14652
14653 2008-02-01 Kenichi Handa <handa@m17n.org>
14654
14655 * character.c (lisp_string_width): Check multibyteness of STRING.
14656
14657 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14658
14659 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14660 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14661 (decode_mac_font_name): Use decode_coding_c_string instead of
14662 decode_coding.
14663 (x_load_font): Initialize fontp->fontset to -1. Set
14664 fontp->encoding_type.
14665
14666 2008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * search.c (search_buffer): Give up BM search on case-fold-search
14669 if one of a target character has a case-equivalence of different
14670 byte length even if that target charcter is an ASCII.
14671 (simple_search): Fix calculation of byte length of matched text.
14672 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14673
14674 2008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * coding.c (decode_coding): Fix handling of invalid bytes.
14677
14678 2008-02-01 Kenichi Handa <handa@m17n.org>
14679
14680 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14681 Unicode characters.
14682
14683 2008-02-01 Kenichi Handa <handa@m17n.org>
14684
14685 * coding.c (encode_coding_object): If a pre-write-conversion
14686 function makes a new buffer, kill it.
14687
14688 2008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * coding.c (QCascii_compatible_p): New variable.
14691 (syms_of_coding): Initialize it.
14692 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14693 calling string_char.
14694 (record_conversion_result): Add `default:' case.
14695 (coding_charset_list): Delete unused variable `coding_type'.
14696 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14697 property in the plist of the coding system.
14698 (Fcoding_system_put): Check QCascii_compatible_p.
14699
14700 2008-02-01 Miles Bader <miles@gnu.org>
14701
14702 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14703 removed calculation of frame `f', as it's now used.
14704
14705 2008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14708 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14709 (UNIDATA): New variable.
14710 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14711 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14712 $(RUN_TEMACS) unconditionally.
14713
14714 2008-02-01 Kenichi Handa <handa@m17n.org>
14715
14716 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14717 (admindir): New variable.
14718 ($(lispsource)international/charprop.el): New target.
14719
14720 2008-02-01 Miles Bader <miles@gnu.org>
14721
14722 * character.c (chars-in-region): Remove obsolete function.
14723 (syms_of_character): Remove its initialization.
14724
14725 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14726
14727 * w32select.c (validate_coding_system)
14728 (setup_windows_coding_system): New functions.
14729 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14730 setup_windows_coding_system.
14731 (setup_config, Fw32_get_clipboard_data): Use
14732 validate_coding_system.
14733 (Fx_selection_exists): Move call to setup_config to a place
14734 where signals are allowed.
14735
14736 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14737 (Fcheck_coding_system): Add declarations.
14738
14739 2008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14742
14743 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14744
14745 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14746 string as the second argument for x_new_fontset.
14747
14748 2008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14751 (encode_coding_object): Use safe_call instead of call2.
14752
14753 2008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14756
14757 * Makefile.in (lisp): Include charprop.el.
14758
14759 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14760
14761 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14762 Not sure if it's unnecessary.
14763
14764 2008-02-01 Steven Tamm <steventamm@mac.com>
14765
14766 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14767 some possibly unnecessary fontset checking code that crashed
14768 when creating a new frame.
14769
14770 2008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14773 lookup_face.
14774
14775 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14776
14777 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14778
14779 2008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14782 (coding_charset_list): New function.
14783
14784 * coding.h (coding_charset_list): Extern it.
14785
14786 2008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14789 concatenation of family and registry.
14790
14791 2008-02-01 Kenichi Handa <handa@m17n.org>
14792
14793 * character.h (BYTE8_STRING): Fix typo.
14794
14795 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14796 string to multibyte (sync to HEAD).
14797
14798 * casefiddle.c (casify_region): Handle changes in byte-length
14799 using replace_range_2 (sync to HEAD).
14800
14801 2008-02-01 Andreas Schwab <schwab@suse.de>
14802
14803 * chartab.c (map_char_table): GCPRO table and arg.
14804
14805 2008-02-01 Kenichi Handa <handa@m17n.org>
14806
14807 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14808 already at limit.
14809
14810 2008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14813 instead of fast_c_string_match_ignore_case.
14814 (find_font_encoding): Change argument to Lisp_Object. Use
14815 fast_string_match_ignore_case instead of
14816 fast_c_string_match_ignore_case. Change caller.
14817
14818 2008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * xdisp.c (get_next_display_element): In unibyte case, decide to
14821 display in octal form by checking a character by
14822 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14823
14824 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14825
14826 * character.c (unibyte_has_multibyte_table): New variable.
14827
14828 * character.h (unibyte_has_multibyte_table): Extern it.
14829 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14830
14831 2008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * coding.c (encode_coding_iso_2022): Fix handling of charset
14834 annotation.
14835
14836 2008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * coding.c (setup_coding_system): If coding_system is nil, use
14839 Qundecided.
14840 (Fterminal_coding_system): Return nil if terminal coding system is
14841 `undecided'.
14842 (syms_of_coding): Define coding-system `undecided' here. Setup
14843 terminal_coding as `undecided'.
14844
14845 2008-02-01 Kenichi Handa <handa@m17n.org>
14846
14847 * xdisp.c (message_dolog, set_message_1): Call
14848 unibyte_char_to_multibyte with arg type int.
14849
14850 * lread.c (read1): Fix reading of a char-table.
14851
14852 * print.c (print_object): Include sub char-table in circularities
14853 detection.
14854
14855 2008-02-01 Kenichi Handa <handa@m17n.org>
14856
14857 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14858 Append the found sequences in car of ARGS instead of prepending.
14859
14860 2008-02-01 Kenichi Handa <handa@m17n.org>
14861
14862 * fileio.c (report_file_error): Make a unibyte string from
14863 strerror (errorno).
14864 (Fsubstitute_in_file_name): Fix the arg to
14865 unibyte_char_to_multibyte. It is evaluated twice.
14866
14867 2008-02-01 Kenichi Handa <handa@m17n.org>
14868
14869 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14870
14871 2008-02-01 Kenichi Handa <handa@m17n.org>
14872
14873 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14874 BOM is not found.
14875 (detect_coding, detect_coding_system): Optimization for ISO-2022
14876 when no 8-bit data is found.
14877
14878 2008-02-01 Jason Rumney <jasonr@gnu.org>
14879
14880 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14881
14882 2008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14885 CHARS.
14886
14887 2008-02-01 Steven Tamm <steventamm@mac.com>
14888
14889 * macterm.c (mac_encode_char): Add charset argument and update
14890 to use encoding_type.
14891 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14892 switch to pure fontset.
14893 (decode_mac_font_name): Temporarily remove decoding.
14894 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14895 (x_load_font): Temporarily remove encoding.
14896
14897 2008-02-01 Kenichi Handa <handa@m17n.org>
14898
14899 * xfaces.c (Fface_font): If frame is not on a window system,
14900 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14901 refer to face->font.
14902 (split_font_name_into_vector, build_font_name_from_vector)
14903 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14904 when HAVE_WINDOW_SYSTEM is defined.
14905
14906 2008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14909 (x_produce_glyphs): Fix setting of members of cmp in case
14910 cmp->glyph_len is zero.
14911
14912 * fontset.c (Fset_fontset_font): Fix docstring.
14913 (Ffontset_info): Make it backward compatible. New arg ALL.
14914
14915 2008-02-01 Kim F. Storm <storm@cua.dk>
14916
14917 * process.c (read_process_output): Grow decoding_buf when needed;
14918 this could cause a crash in allocate_string and compact_small_strings.
14919
14920 2008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14923
14924 2008-02-01 Kenichi Handa <handa@m17n.org>
14925
14926 * coding.c (setup_coding_system): Set coding->common_flags
14927 correctly for raw-text.
14928 (consume_chars): On encoding unibyte text by raw-text, don't check
14929 multibyte form.
14930 (encode_coding): On encoding by raw-text, never use translation tables.
14931
14932 * fileio.c (e_write): Short cut for the case of no encoding.
14933
14934 2008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * coding.c (detect_coding, detect_coding_system): Delete unused
14937 variables.
14938
14939 2008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14942 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14943
14944 2008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * coding.c (Ffind_coding_systems_region_internal): Include
14947 raw-text and no-conversion in the result.
14948
14949 2008-02-01 Kenichi Handa <handa@m17n.org>
14950
14951 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14952 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14953 FONT_DEF.
14954 (font_def_arg, add_arg, from_arg, to_arg): New args.
14955 (set_fontset_font): Change argument.
14956 (Fset_fontset_font): Fix for the case that TARGET is a script
14957 name and charset name.
14958 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14959
14960 2008-02-01 Kenichi Handa <handa@m17n.org>
14961
14962 * fontset.c (fontset_font): Rename from fontset_face. Change return
14963 value.
14964 (face_suitable_for_char_p, face_for_char): Adjust for the change
14965 of fontset_font.
14966 (make_fontset_for_ascii_face): Fix setting of the fontset element
14967 for ASCII.
14968 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14969 to get a font name.
14970 (Ffontset_info): Adjust for the change of fontset_font.
14971
14972 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14973
14974 * character.h (LEADING_CODE_LATIN_1_MIN)
14975 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14976
14977 2008-02-01 Kenichi Handa <handa@m17n.org>
14978
14979 * editfns.c (check_translation): New function.
14980 (Ftranslate_region_internal): Handle M:N mapping.
14981
14982 2008-02-01 Kenichi Handa <handa@m17n.org>
14983
14984 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14985
14986 2008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14989 goto invalid_code.
14990 (decode_coding_iso_2022): Fix handling of invalid designation.
14991
14992 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14993 after calling code_conversion_save.
14994
14995 2008-02-01 Kenichi Handa <handa@m17n.org>
14996
14997 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14998
14999 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15000
15001 * fontset.c: Include "intervals.h".
15002 (fontset_face): Fix comparing of Lisp_Objects.
15003 (free_face_fontset, new_fontset_from_font_name): Fix
15004 Lisp_Object/int mixup.
15005
15006 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15007
15008 * coding.c: Add many prototypes for static functions.
15009 (get_translation_table): Allow max_lookup to be NULL.
15010 (decode_coding, Ffind_coding_systems_region_internal)
15011 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15012 get_translation_table with max_lookup NULL.
15013
15014 2008-02-01 Kenichi Handa <handa@m17n.org>
15015
15016 * coding.c (get_translation_table): Declare it as Lisp_Object.
15017 (LOOKUP_TRANSLATION_TABLE): New macro.
15018 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15019 instead of CHAR_TABLE_REF.
15020
15021 2008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15024 annotation data format.
15025 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15026 Change arguments FROM and TO to single argument NCHARS. Change caller.
15027 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15028 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15029 (decode_coding_ccl, decode_coding_charset): Pay attention to
15030 coding->charbuf_used.
15031 (get_translation): New function.
15032 (produce_chars): New arguments translation_table and last_block.
15033 Translate characters here. Return number of carryover chars.
15034 Change caller.
15035 (produce_composition): New argument pos. Change caller.
15036 Adjust for the change of annotation data format.
15037 (produce_charset, produce_annotation): Likewise.
15038 (decode_coding, encode_coding): Don't call translate_chars.
15039 (consume_chars): New arg translation_table. Change caller.
15040 (translate_chars): Delete.
15041 (syms_of_coding): Make translation-table's number of extra slots 2.
15042
15043 2008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * search.c (simple_search): Fix setting this_pos_byte in backward
15046 search.
15047
15048 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15049 byte sequence.
15050 (detect_coding_ccl): Fix setting of the variable valids.
15051
15052 2008-02-01 Kenichi Handa <handa@m17n.org>
15053
15054 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15055
15056 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15057
15058 * editfns.c (Ftranslate_region_internal): Rename from
15059 Ftranslate_region. Accept a char-table in TABLE.
15060 (syms_of_editfns): Defsubr Stranslate_region_internal.
15061
15062 * xfaces.c (set_lface_from_font_name): If a font is specified for
15063 a frame, generate a fontset from the font.
15064 (build_scalable_font_name): If the scalable font is requested for
15065 a specific size, don't change that size.
15066 (try_font_list): Try a scalable font also in the case that a
15067 pattern string is specified.
15068
15069 2008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * xfaces.c (Fface_font): New optional arg CHARACTER.
15072
15073 2008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * charset.h (CHARSET_OFFSET): New macro.
15076
15077 2008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15080
15081 * fontset.c (fontset_face): Handle the case that repertory is a
15082 char-table.
15083 (find_font_encoding): Return nil for unknown encoding.
15084 (Fset_fontset_font): Ignore a font of unknown encoding.
15085
15086 2008-02-01 Kenichi Handa <handa@m17n.org>
15087
15088 * keymap.c (describe_vector): Handle default value of a char table.
15089
15090 * fontset.c (fontset_face): Handle fallback fonts correctly.
15091 (Ffontset_info): Return infomation about fallback fonts.
15092
15093 2008-02-01 Kenichi Handa <handa@m17n.org>
15094
15095 * fontset.c (FONTSET_DEFAULT): New macro.
15096 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15097 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15098 the case that it is nil.
15099 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15100 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15101
15102 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15103 subset or superset.
15104
15105 2008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * emacs.c (main): Call init_charset after syms_of_XXX.
15108
15109 * charset.c (Vcharset_map_directory): Delete.
15110 (Vcharset_map_path): New variable.
15111 (load_charset_map_from_file): Use Vcharset_map_path instead.
15112 (init_charset): Initialize Vcharset_map_path.
15113 (syms_of_charset): Delete declaration of "charset-map-directory",
15114 add declaration of "charset-map-path".
15115
15116 2008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15119 ASCII only string.
15120
15121 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15122
15123 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15124 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15125
15126 2008-02-01 Kenichi Handa <handa@m17n.org>
15127
15128 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15129
15130 * coding.c (QCmnemonic, QCdefalut_char)
15131 (QCdecode_translation_table, QCencode_translation_table)
15132 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15133 (get_translation_table): Return a list of translation tables if
15134 necessary.
15135 (decode_coding): Call get_translation_table with ENCODEP 0.
15136 (char_encodable_p): If translation_table is non-nil, always call
15137 translate_char.
15138 (Fdefine_coding_system_internal): Accept list of translation
15139 tables as :encode-translation-table and :decode-translation-table.
15140 (Fcoding_system_put): New function.
15141 (syms_of_coding): Declare new symbols. Defsubr
15142 Scoding_system_put.
15143 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15144 typically JISX0212.
15145
15146 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15147 when the charset is superset type.
15148
15149 * character.c (translate_char): Accept list of translation tables.
15150
15151 2008-02-01 Kenichi Handa <handa@m17n.org>
15152
15153 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15154 (CODING_ATTR_TRANS_TBL): New macro.
15155
15156 * coding.c (get_translation_table): New function.
15157 (translate_chars): Fix the bug of skipping annotation data.
15158 (decode_coding, encode_coding): Utilize get_translation_table.
15159 (char_encodable_p, Funencodable_char_position): Translate char if
15160 necessary.
15161 (Ffind_coding_systems_region_internal)
15162 (Fcheck_coding_systems_region): Setup translation table for encode
15163 in a coding system attribute vector in advance.
15164 (Fdefine_coding_system_internal): Allow a symbol as translation
15165 table. For shift-jis type coding system, allow 4th charset.
15166
15167 2008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15170
15171 * xdisp.c (get_next_display_element): Pass -1 as POS to
15172 FACE_FOR_CHAR if displaying a C-string.
15173
15174 2008-02-01 Kenichi Handa <handa@m17n.org>
15175
15176 * composite.c (get_composition_id): Handle xoff and yoff in a
15177 composition rule.
15178
15179 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15180 (struct composition): New member lbearing and rbearing.
15181
15182 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15183 (x_get_glyph_overhangs): Handle a composition glyph.
15184 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15185
15186 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15187 composition glyph.
15188
15189 2008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * print.c: Include charset.h.
15192 (Vprint_charset_text_property): New variable.
15193 (Qdefault): Extern it.
15194 (PRINT_STRING_NON_CHARSET_FOUND)
15195 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15196 (print_check_string_result): New variable.
15197 (print_check_string_charset_prop): New function.
15198 (print_prune_charset_plist): New variable.
15199 (print_prune_string_charset): New function.
15200 (print_object): Call print_prune_string_charset if
15201 Vprint_charset_text_property is not t.
15202 (print_interval): Print nothing if interval->plist is nil.
15203 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15204 variable. Init and staticpro print_prune_charset_plist.
15205
15206 2008-02-01 Kenichi Handa <handa@m17n.org>
15207
15208 * fontset.c (new_fontset_from_font_name): Use the specified font
15209 for all characters in the new fontset.
15210
15211 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15212 OBJECT args.
15213
15214 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15215 OBJECT args for composition too.
15216
15217 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15218 OBJECT args.
15219
15220 2008-02-01 Kenichi Handa <handa@m17n.org>
15221
15222 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15223
15224 * fontset.c (reorder_font_vector): Adjust for the change of
15225 FONT_DEF format.
15226 (fontset_face): New arg id. Change caller.
15227 (face_for_char): New args pos and object.
15228 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15229 (fs_query_fontset): Check NAME by Fassoc too.
15230 (Fset_fontset_font): Allow non-XLFD font name.
15231 (Ffontset_info): Adjust for the change of FONT_DEF format.
15232
15233 * fontset.h (face_for_char): Adjust prototype.
15234
15235 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15236 (append_space, extend_face_to_end_of_line)
15237 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15238 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15239
15240 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15241 POS and OBJECT args.
15242
15243 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15244 POS and OBJECT args.
15245
15246 2008-02-01 Jason Rumney <jasonr@gnu.org>
15247
15248 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15249 of GlobalAlloc'ed memory.
15250
15251 2008-02-01 Kenichi Handa <handa@m17n.org>
15252
15253 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15254
15255 * charset.h (charset_table_used): Delete extern.
15256
15257 * charset.c (charset_table_used): Make it static.
15258 (map_charset_chars): Fix args to c_function with.
15259
15260 * chartab.c (map_sub_char_table_for_charset): Fix args to
15261 c_function with.
15262
15263 * coding.h (enum coding_result_code): Delete
15264 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15265
15266 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15267 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15268 (Vlast_code_conversion_error): New variables.
15269 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15270 (ONE_MORE_BYTE): Record error if any instead of signaling an
15271 error. If non-ASCII multibyte char is found, return the negative
15272 value of the code. All callers changed to check it.
15273 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15274 (record_conversion_result): New function. Change all codes setting
15275 coding->result to call this function.
15276 (detect_coding_utf_8, decode_coding_utf_8)
15277 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15278 Don't use the local variable incomplete.
15279 (emacs_mule_char): Change the second arg to `const'.
15280 (decode_coding): Fix of flushing out unprocessed data.
15281 (make_conversion_work_buffer): Fix making of a work buffer.
15282 (decode_coding_object): Return coding->dst_object.
15283
15284 * fontset.c (set_fontset_font): Fix args.
15285
15286 * lisp.h (CHARACTERBITS): Define as 22.
15287
15288 * process.c (send_process): Be sure to set coding->src_multibyte.
15289
15290 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15291
15292 2008-02-01 Kenichi Handa <handa@m17n.org>
15293
15294 * xdisp.c (handle_auto_composed_prop): Give limit to
15295 Fnext_single_char_property_change.
15296
15297 2008-02-01 Kenichi Handa <handa@m17n.org>
15298
15299 * composite.c (syms_of_composite): Don't make the composition hash
15300 table weak.
15301
15302 * fontset.c (Fset_fontset_font): Fix docstring.
15303
15304 * lisp.h (detect_coding_system): Adjust prototype.
15305
15306 * fileio.c (kill_workbuf_unwind): Delete this function.
15307 (Finsert_file_contents): Adjust the call of detect_coding_system.
15308 Get conversion_buffer by code_conversion_save. Use the macro
15309 CODING_MAY_REQUIRE_DECODING. After decoding, update
15310 coding_system.
15311
15312 * coding.h (make_conversion_work_buffer): Delete extern.
15313 (code_conversion_save): Extern it.
15314
15315 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15316 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15317 (decode_coding_utf_8): Don't do eol converion.
15318 (detect_coding_utf_16): Check coding->src_chars, not
15319 coding->src_bytes. Add heuristics for those that have no signature.
15320 (decode_coding_emacs_mule, decode_coding_iso_2022)
15321 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15322 Don't do eol converion.
15323 (adjust_coding_eol_type): Return a new coding system.
15324 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15325 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15326 each change.
15327 (decode_coding): Pay attention to undo_list. Do eol conversion for
15328 all types of coding-systems (if necessary).
15329 (Vcode_conversion_work_buf_list): Delete it.
15330 (Vcode_conversion_reused_workbuf): Rename from
15331 Vcode_conversion_reused_work_buf.
15332 (Vcode_conversion_workbuf_name): New variable.
15333 (reused_workbuf_in_use): New variable.
15334 (make_conversion_work_buffer): Delete the arg DEPTH.
15335 (code_conversion_restore): Change argument to cons.
15336 (code_conversion_save): Delete the argument BUFFER. Change callers.
15337 (detect_coding_system): New argument src_chars. Change callers.
15338 Fix for utf-16 detection.
15339 (init_coding_once): Don't use ISO_carriage_return.
15340 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15341 reused_workbuf_in_use.
15342
15343 2008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * keymap.c (store_in_keymap): Pay attention to the case that idx
15346 is a cons specifying a character range.
15347
15348 2008-02-01 Kenichi Handa <handa@m17n.org>
15349
15350 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15351 HANDLED_RECOMPUTE_PROPS.
15352
15353 * coding.c (Fdefine_coding_system_internal): Fix checking of
15354 ascii compatibility.
15355
15356 2008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * charset.c (find_charsets_in_text): Delete unused locale variable.
15359 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15360
15361 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15362 Resync charset_list to Vemacs_mule_charset_list.
15363
15364 * keymap.c (store_in_keymap): Pay attention to the case that idx
15365 is a cons specifying a character range.
15366
15367 2008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * composite.c (update_compositions): Bind inhibit-read-only, etc
15370 to t before calling remove-list-of-text-properties.
15371
15372 * print.c (print_object): Always print ASCII chars as is.
15373
15374 2008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15377
15378 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15379 is a char table.
15380
15381 2008-02-01 Kenichi Handa <handa@m17n.org>
15382
15383 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15384
15385 2008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * xfaces.c (set_lface_from_font_name): Fix for the case that
15388 FONTNAME is not fontset name.
15389
15390 2008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * fns.c (base64_encode_1): Fix previous change.
15393
15394 2008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * fontset.c (set_fontset_font): New function.
15397 (Fset_fontset_font): If a font is specified for a charset, use
15398 map_charset_chars to store the font spec in a fontset.
15399
15400 2008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * fontset.c (fontset_face): Create a fallback fontset on demand.
15403 (make_fontset): Don't create a fallback fontset here.
15404 (free_face_fontset): Free a fallback fontset (if any) too.
15405 (n_auto_fontsets): Delete this variable.
15406 (auto_fontset_alist): New variable.
15407 (new_fontset_from_font_name): Check auto_fontset_alist.
15408 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15409 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15410 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15411 Defsubr Sfontset_list_all.
15412
15413 2008-02-01 Kenichi Handa <handa@m17n.org>
15414
15415 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15416
15417 2008-02-01 Kenichi Handa <handa@m17n.org>
15418
15419 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15420
15421 2008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * editfns.c (Fgoto_char): Fix docstring.
15424
15425 2008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * insdel.c (insert_from_gap): Adjust intervals correctly.
15428
15429 2008-02-01 Jason Rumney <jasonr@gnu.org>
15430
15431 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15432 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15433 (w32_initialize): Try to load it.
15434 (x_get_font_repertory): Use it if available.
15435 (w32_encode_char): Add shortcut for unicode output.
15436
15437 * w32fns.c (w32_load_system_font): Default charset to -1.
15438 (x_to_w32_charset): Match all fonts for unicode.
15439 (w32_to_x_charset): New parameter matching. Don't return partial
15440 or wildcard charsets.
15441 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15442 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15443 (w32_to_x_font): Match charset to real charset.
15444 (enum_font_cb2): Always list unicode versions.
15445
15446 * makefile.w32-in (temacs): Increase EMHEAP.
15447
15448 2008-02-01 Jason Rumney <jasonr@gnu.org>
15449
15450 * w32term.c (w32_encode_char): New charset parameter.
15451 font_info.encoding becomes encoding_type.
15452 (x_get_font_repertory): New function. Warning: stub only!
15453 (x_new_font): Return quickly if font already set.
15454 (x_new_fontset): fontsetname parameter is Lisp_Object.
15455 Use new fs_query_fontset. Try new_fontset_from_font_name.
15456 Use fontset_name for return value.
15457
15458 * w32term.h: Declare x_get_font_repertory.
15459
15460 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15461 place of find_charset_in_text. Use encode_coding_object in place
15462 of encode_coding.
15463 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15464 decode_coding.
15465
15466 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15467 of x_new_fontset.
15468 (w32_load_system_font): Initialize charset as unicode.
15469 font_info.encoding becomes encoding_type.
15470 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15471 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15472 (syms_of_w32fns): Set get_font_repertory_func.
15473
15474 * w32console.c: Include character.h. Use terminal_encode_buffer
15475 from term.c.
15476 (write_glyphs): Use new version of encode_terminal_code. Use
15477 encode_coding_object in place of encode_coding.
15478
15479 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15480 encoding becomes encoding_type.
15481
15482 * term.c (terminal_encode_buffer): Make externally visible.
15483
15484 * makefile.w32-in: Add character.h dependancies.
15485 (character.o, chartab.o): New targets.
15486
15487 2008-02-01 Kenichi Handa <handa@m17n.org>
15488
15489 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15490 CODING_ID_EOL_TYPE.
15491
15492 2008-02-01 Andreas Schwab <schwab@suse.de>
15493
15494 * coding.c (produce_chars): Revert last change.
15495
15496 2008-02-01 Kenichi Handa <handa@m17n.org>
15497
15498 * charset.h (charset_unicode): Extern it.
15499
15500 * charset.c (string_xstring_p): Check by (C >= 0x100).
15501 (find_charsets_in_text): Change format of the arc CHARSETS. New
15502 arg MULTIBYTE.
15503 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15504 change of find_charsets_in_text.
15505 (Fsplit_char): Fix doc. Never return unknown.
15506
15507 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15508
15509 * coding.c (Fdefine_coding_system_alias): Update
15510 Vcoding_system_list.
15511
15512 * fontset.c (load_font_get_repertory): Pay attention to the case
15513 that ENCODING of a font is specified by a char-table.
15514
15515 * xterm.c (x_get_font_repertory): Handle the case that the
15516 encoding of font is other than Unicode.
15517
15518 2008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15521 if a character is encodable by the terminal coding system. If
15522 not, produces proper number of `?'s. Update
15523 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15524 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15525
15526 2008-02-01 Kenichi Handa <handa@m17n.org>
15527
15528 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15529 variables.
15530 (encode_terminal_code): Change argument. Encode multiple
15531 characters at once. Store the result of encoding in
15532 terminal_encode_buffer.
15533 (write_glyphs, insert_glyphs): Adjust for the change of
15534 encode_terminal_code.
15535 (term_init): Initialize terminal_encode_buffer and
15536 terminal_encode_buf_size.
15537
15538 * coding.c (consume_chars): If coding->src_object is nil, don't
15539 check annotation.
15540
15541 2008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * character.c (char_string): Use ASCII_CHAR_P instead of
15544 SINGLE_BYTE_CHAR_P.
15545
15546 2008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * xdisp.c (handle_auto_composed_prop): Check if the last
15549 characters of auto-composed region is newly composed with the
15550 following characters.
15551 (handle_composition_prop): Fix checking of point being inside
15552 composition.
15553
15554 2008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * fns.c (concat): Don't change multibyteness of the result by
15557 concatenating an 8-bit character.
15558
15559 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15560 multibyteness of the result when newelt is an 8-bit character.
15561
15562 2008-02-01 Dave Love <fx@gnu.org>
15563
15564 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15565 EMACS_INT.
15566
15567 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15568
15569 * xfaces.c (face_numeric_value): Declare dim size_t.
15570 (Finternal_lisp_face_equal_p): Remove unused f.
15571
15572 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15573 (MATRIX_ROW): Remove unused vars.
15574 (draw_glyphs, x_insert_glyphs, fast_find_position)
15575 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15576 byte/char counts.
15577
15578 * regex.c (regex_compile): Remove unused var.
15579
15580 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15581
15582 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15583 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15584
15585 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15586
15587 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15588
15589 * fileio.c (Fwrite_region): Remove unused var.
15590
15591 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15592 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15593
15594 * composite.c (Fremove_list_of_text_properties): Declare.
15595
15596 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15597 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15598 (coding_inherit_eol_type): Remove unused attrs.
15599 (detect_coding): Cast arg of detect_eol.
15600
15601 * charset.c (syms_of_charset): Remove unused var p.
15602 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15603 byte/char counts.
15604
15605 * casetab.c (set_case_table): Remove unused var.
15606
15607 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15608 unused vars.
15609
15610 2008-02-01 Dave Love <fx@gnu.org>
15611
15612 * xterm.c (x_bitmap_mask): Declare.
15613
15614 2008-02-01 Dave Love <fx@gnu.org>
15615
15616 * xterm.c (x_term_init): Fix type error.
15617
15618 * lisp.h: Add Funibyte_char_to_multibyte.
15619
15620 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15621 (Fset_coding_system_priority): Doc fix.
15622
15623 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15624
15625 * indent.c (check_composition): Make start and end EMACS_INT.
15626
15627 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15628
15629 * xdisp.c (handle_composition_prop, check_point_in_composition):
15630 Make buffer positions EMACS_INT.
15631
15632 * composite.c (find_composition, run_composition_function)
15633 (update_compositions, Ffind_composition_internal): Make buffer
15634 positions EMACS_INT.
15635
15636 * composite.h (find_composition, update_compositions): Make
15637 position args EMACS_INT.
15638
15639 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15640
15641 * intervals.c (get_property_and_range):
15642 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15643
15644 * unexalpha.c: Don't include varargs.h.
15645
15646 2008-02-01 Dave Love <fx@gnu.org>
15647
15648 * coding.h (ENCODE_UTF_8): New.
15649
15650 * Makefile.in (gtkutil.o): Depend on coding.h.
15651
15652 * coding.c (Fset_coding_system_priority): Doc fix.
15653
15654 2008-02-01 Kenichi Handa <handa@m17n.org>
15655
15656 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15657 the case of auto saving.
15658
15659 2008-02-01 Andreas Schwab <schwab@suse.de>
15660
15661 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15662 `range' from GC.
15663
15664 2008-02-01 Kenichi Handa <handa@m17n.org>
15665
15666 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15667
15668 2008-02-01 Kenichi Handa <handa@m17n.org>
15669
15670 * fileio.c (choose_write_coding_system): Return a decided coding system.
15671 (Fwrite_region): Set Vlast_coding_system_used to the return value
15672 of choose_write_coding_system.
15673
15674 2008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * charset.c (Fset_charset_priority): Pay attention to duplicated
15677 arguments.
15678
15679 * coding.c (QCcategory): New variable.
15680 (syms_of_coding): Defsym it. Set all elements of
15681 Vcoding_category_table and their symbol values.
15682 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15683 coding-category-XXX, and coding-category-list.
15684 (Fdefine_coding_system_internal): Add category in the plist.
15685
15686 2008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * callproc.c (Fcall_process): Handle carryover correctly.
15689
15690 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15691 (raw_text_coding_system): Check NILP (coding_system).
15692 (coding_inherit_eol_type): Check NILP (coding_system) and
15693 NILP (parent).
15694 (consume_chars): Fix for the case of raw-text.
15695
15696 * process.c (read_process_output): Handle carryover correctly.
15697
15698 2008-02-01 Dave Love <fx@gnu.org>
15699
15700 * regex.c (re_search_2): Fix last change.
15701
15702 2008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15705 target_multibyte. Even in a unibyte case, return a converted
15706 multibyte char.
15707 (GET_CHAR_AFTER): New macro.
15708 (PATFETCH): Translate via multibyte char.
15709 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15710 (SETUP_MULTIBYTE_RANGE): New macro.
15711 (regex_compile): Setup compiled code so that its multibyteness
15712 matches that of a target. Fix the handling of "[X-YZ]" using
15713 SETUP_MULTIBYTE_RANGE.
15714 (analyse_first) <charset>: For filling fastmap for all multibyte
15715 characters, don't check by BASE_LEADING_CODE_P.
15716 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15717 the same as RE_MULTIBYTE_P (bufp) now.
15718 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15719 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15720 (TRANSLATE_VIA_MULTIBYTE): New macro.
15721 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15722 It is the same as RE_MULTIBYTE_P (bufp) now.
15723 <exactn>: Translate via multibyte.
15724 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15725 translate it.
15726 <charset, charset_not>: Fetch a character by
15727 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15728 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15729 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15730 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15731 by GET_CHAR_AFTER.
15732 (bcmp_translate): Likewise.
15733
15734 * search.c (compile_pattern): Check the member target_multibyte,
15735 not the member multibyte of buf.
15736
15737 * lread.c (read1): While reading a string, set force_singlebyte
15738 and force_multibyte correctly.
15739
15740 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15741 up of unibyte_to_multibyte_table.
15742
15743 2008-02-01 Kenichi Handa <handa@m17n.org>
15744
15745 * coding.c (setup_coding_system): If coding has
15746 post-read-conversion or pre-write-conversion, set
15747 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15748 respectively.
15749 (decode_coding_gap): Run post-read-conversion if any.
15750
15751 * fileio.c (Finsert_file_contents): Even if we read into a
15752 unibyte buffer, check if we must decode the result or not.
15753
15754 2008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * coding.c (make_conversion_work_buffer): Change the work buffer
15757 name to the same one as that of Emacs 21.
15758
15759 2008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * coding.h (make_conversion_work_buffer): Adjust prototype.
15762 (code_conversion_restore): Don't extern it.
15763
15764 * coding.c (detected_mask): Delete unused variable.
15765 (decode_coding_iso_2022): Pay attention to the byte sequence of
15766 CTEXT extended segment, and retain those bytes as is.
15767 (decode_coding_ccl): Delete unused variable `valids'.
15768 (setup_coding_system): Delete unused variable `category'.
15769 (consume_chars): Delete unused variable `category'. Make it work
15770 for non-multibyte case.
15771 (make_conversion_work_buffer): Change argument.
15772 (saved_coding): Delete unused variable.
15773 (code_conversion_restore): Don't check saved_coding->destination.
15774 (code_conversion_save): New function.
15775 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15776 instead of record_unwind_protect.
15777 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15778 (detect_coding_system): Delete unused variable `mask'.
15779 (Fdefine_coding_system_internal): Delete unused variable id.
15780
15781 * fileio.c (kill_workbuf_unwind): New function.
15782 (Finsert_file_contents): On replacing, call
15783 make_conversion_work_buffer with correct args, and call
15784 record_unwind_protect with the first arg kill_workbuf_unwind.
15785
15786 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15791 (fontset_add): Fix for the case that TO is less than TO1.
15792 (Ffontset_info): Don't use fallback fontset on checking the
15793 default fontset.
15794 (dump_fontset): New function for debugging.
15795
15796 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15797 coding_type is Qcharset.
15798
15799 2008-02-01 Kenichi Handa <handa@m17n.org>
15800
15801 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15802 (map_char_table): Don't inherit the value from the parent on
15803 initializing VAL. Adjust for the above change.
15804
15805 2008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * coding.c (Qsignature, Qendian): Delete these variables.
15808 (syms_of_coding): Don't initialize them.
15809 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15810 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15811 detect_info->found.
15812 (decode_coding_utf_16): Don't detect BOM here.
15813 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15814 is NOT utf_16_without_bom.
15815 (setup_coding_system): For a coding system of type utf-16, check
15816 if the attribute :endian is Qbig or not (not nil or not), and set
15817 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15818 (detect_coding): If coding type is utf-16 and BOM detection is
15819 required, detect it.
15820 (Fdefine_coding_system_internal): For a coding system of type
15821 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15822
15823 2008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * coding.c (coding_set_source): Fix for the case that the current
15826 buffer is different from coding->src_object.
15827 (decode_coding_object): Don't use the conversion work buffer if
15828 DST_OBJECT is a buffer.
15829
15830 2008-02-01 Dave Love <fx@gnu.org>
15831
15832 * lread.c (read_emacs_mule_char) [len==2]: Index
15833 emacs_mule_charset correctly.
15834
15835 2008-02-01 Dave Love <fx@gnu.org>
15836
15837 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15838 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15839 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15840 treated specially.)
15841 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15842 (detected_mask): Remove Big5 bits.
15843
15844 2008-02-01 Kenichi Handa <handa@m17n.org>
15845
15846 The following changes are to make the font rescaling facility
15847 compatible with Emacs 21.
15848
15849 * xfaces.c (Vface_font_rescale_alist): Rename from
15850 Vface_resizing_fonts.
15851 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15852 (font_rescale_ratio): Rename from font_resizing_ratio.
15853 (split_font_name): Set font->rescale_ratio.
15854 (better_font_p): Pay attention to font->rescale_ratio.
15855 (build_scalable_font_name): Likewise. Change RESX, and RESY
15856 fields.
15857 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15858
15859 2008-02-01 Kenichi Handa <handa@m17n.org>
15860
15861 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15862 (Qutf_16_le): Remove these variables.
15863 (syms_of_coding): Don't DEFSYM them.
15864 (decode_coding_utf_16): Fix handling of BOM.
15865 (encode_coding_utf_16): Fix handling of BOM.
15866
15867 2008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * fileio.c (Finsert_file_contents): On replacing, before decoding
15870 the file into the work buffer, set point of the work buffer to the end.
15871
15872 2008-02-01 Dave Love <fx@gnu.org>
15873
15874 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15875
15876 2008-02-01 Dave Love <fx@gnu.org>
15877
15878 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15879 and fix C types.
15880
15881 2008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * xdisp.c (SKIP_GLYPHS): New macro.
15884 (set_cursor_from_row): Pay attention to string display properties.
15885
15886 * category.c (copy_category_entry): Fix for the case that RANGE
15887 is an integer.
15888
15889 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15890
15891 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15892
15893 2008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * charset.c (Fcharset_id_internal): New function.
15896 (syms_of_charset): Defsubr it.
15897
15898 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15899 with the last arg charset_list acquired from coding.
15900 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15901 the attribute coding_attr_ccl_valids.
15902
15903 * coding.h (enum define_coding_ccl_arg_index): Set the first
15904 member coding_arg_ccl_decoder to coding_arg_max.
15905
15906 * ccl.h (ccl_driver): Adjust prototype.
15907
15908 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15909 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
15910 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
15911 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15912 last arg Qnil.
15913
15914 2008-02-01 Kenichi Handa <handa@m17n.org>
15915
15916 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15917 call encode_char.
15918
15919 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15920
15921 2008-02-01 Dave Love <fx@gnu.org>
15922
15923 * composite.c (syms_of_composite): Make composition_hash_table weak.
15924
15925 2008-02-01 Kenichi Handa <handa@m17n.org>
15926
15927 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15928 (font_name_registry): Don't extern them.
15929 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15930
15931 * fontset.h (Qfontset): Don't extern it.
15932 (new_fontset_from_font_name): Extern it.
15933
15934 * fontset.c: Give 8 extra slots to fontset objects.
15935 (Qfontset_info): New variable.
15936 (syms_of_fontset): Defsym it.
15937 (FONTSET_FALLBACK): New macro.
15938 (fontset_face): Try also the default fontset.
15939 (make_fontset): Realize a fallback fontset from the default fontset.
15940 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15941 using split_font_name_into_vector and build_font_name_from_vector.
15942 (Fset_fontset_font): Access the elements of font_spec by enum
15943 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15944 name by using split_font_name_into_vector.
15945 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15946 generate a proper font name from the fontset name. Update
15947 Vfontset_alias_alist.
15948 (n_auto_fontsets): New variable.
15949 (new_fontset_from_font_name): New function.
15950 (Ffont_info): Store the information about fonts generated from the
15951 default fontset in the first extra slot of the returned char-table.
15952
15953 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15954 (font_name_registry): Delete function.
15955 (split_font_name_into_vector): New function.
15956 (build_font_name_from_vector): New function.
15957 (font_list): The argument REGISTRY is now a list of registry names.
15958 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15959 specifies an explicit font name, return the name as is. Make a
15960 list of registy names.
15961
15962 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15963 of x_new_fontset.
15964 (Fx_create_frame): Don't call x_new_fontset here. Just use
15965 x_list_fonts to check the existence of fonts.
15966
15967 * xterm.h (x_new_fontset): Adjust prototype.
15968
15969 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15970 string. Use new_fontset_from_font_name to create a fontset from a
15971 font name.
15972
15973 2008-02-01 Kenichi Handa <handa@m17n.org>
15974
15975 * syntax.c (Vfind_word_boundary_function_table): New name for
15976 Vnext_word_boundary_function_table.
15977 (find-word-boundary-function-table): New name for
15978 next-word-boundary-function-table.
15979
15980 2008-02-01 Dave Love <fx@gnu.org>
15981
15982 * Makefile.in: Fix some dependencies.
15983
15984 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15985 set it to nil before returning.
15986
15987 * composite.c (update_compositions): Fix type error.
15988
15989 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15990
15991 2008-02-01 Kenichi Handa <handa@m17n.org>
15992
15993 * xterm.c (x_new_font): Optimize for the case that the font is
15994 already set for the frame.
15995
15996 2008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * chartab.c (char_table_ascii): Check if the char table contents
15999 is sub-char-table or not.
16000 (char_table_set, char_table_set_range): Fix argument to
16001 char_table_ascii.
16002
16003 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16004 (detect_coding_utf_8, detect_coding_utf_16)
16005 (detect_coding_emacs_mule, detect_coding_iso_2022)
16006 (detect_coding_sjis, detect_coding_big5)
16007 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16008 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16009 sequence is valid in this coding system. Change callers.
16010 (MAX_ANNOTATION_LENGTH): New macro.
16011 (ADD_ANNOTATION_DATA): New macro.
16012 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16013 ADD_ANNOTATION_DATA. Change the format of annotation data.
16014 (ADD_CHARSET_DATA): New macro.
16015 (emacs_mule_char): New argument ID. Change callers.
16016 (decode_coding_emacs_mule, decode_coding_iso_2022)
16017 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16018 Produce charset annotation data in coding->charbuf.
16019 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16020 to charset annotation data in coding->charbuf.
16021 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16022 coding->common_flags if the coding system is iso-2022 based and
16023 uses designation.
16024 (produce_composition): Adjust for the new annotation data format.
16025 (produce_charset): New function.
16026 (produce_annotation): Handle charset annotation.
16027 (handle_composition_annotation, handle_charset_annotation): New
16028 functions.
16029 (consume_chars): Handle charset annotation. Utilize the above two
16030 functions.
16031 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16032 buffer, get the deleted text as a string and set
16033 coding->src_object to that string.
16034 (detect_coding, detect_coding_system): Use the new struct
16035 coding_detection_info.
16036
16037 * coding.h (struct coding_detection_info): New structure.
16038 (struct coding_system): Adjust prototype of the member `detector'.
16039 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16040
16041 2008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16044
16045 2008-02-01 Dave Love <fx@gnu.org>
16046
16047 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16048 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16049 to new local and nullify apropos_accumulate before returning.
16050 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16051
16052 2008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16055 correctly.
16056
16057 2008-02-01 Dave Love <fx@gnu.org>
16058
16059 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16060
16061 2008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 The following changes are to make character composition happen
16064 automatically on displaying.
16065
16066 * Makefile.in (lisp, shortlisp): Add composite.elc.
16067
16068 * composite.h (Qauto_composed, Vauto_composition_function)
16069 (Qauto_composition_function): Extern them.
16070
16071 * composite.c (Vcomposition_function_table)
16072 (Qcomposition_function_table): Delete variables.
16073 (Qauto_composed, Vauto_composition_function)
16074 (Qauto_composition_function): New variables.
16075 (run_composition_function): Don't call
16076 compose-chars-after-function.
16077 (update_compositions): Clear `auto-composed' text property.
16078 (compose_chars_in_text): Delete this function.
16079 (syms_of_composite): Staticpro Qauto_composed and
16080 Qauto_composition_function. Declare Vauto_composition_function as
16081 a Lisp variable.
16082
16083 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16084
16085 * xdisp.c (it_props): Add an entry for Qauto_composed.
16086 (handle_auto_composed_prop): New function.
16087
16088 * xselect.c (selection_data_to_lisp_data): Don't call
16089 compose_chars_in_text.
16090
16091 2008-02-01 Dave Love <fx@gnu.org>
16092
16093 * keyboard.c (read_char): Modify checking around use of
16094 Vkeyboard_translate_table.
16095
16096 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16097 and fix C types.
16098
16099 2008-02-01 Kenichi Handa <handa@m17n.org>
16100
16101 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16102 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16103 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16104 the case that the last byte is '\r' correctly.
16105 (decode_coding): Flush out the unprocessed data correctly.
16106 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16107
16108 2008-02-01 Dave Love <fx@gnu.org>
16109
16110 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16111 Add XK_ISO... case.
16112 (xaw_scroll_callback): Revert last change.
16113
16114 2008-02-01 Kenichi Handa <handa@m17n.org>
16115
16116 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16117
16118 2008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * xfaces.c (Vface_resizing_fonts): New variable.
16121 (struct font_name): New member `resizing_ratio'.
16122 (font_resizing_ratio): New function.
16123 (split_font_name): Set font->resizing_ratio.
16124 (better_font_p): Pay attention to font->resizing_ratio.
16125 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16126 RESX, and RESY fields.
16127 (try_alternative_families): Try scalable fonts if
16128 Vscalable_fonts_allowed is not Qt.
16129 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16130
16131 2008-02-01 Dave Love <fx@gnu.org>
16132
16133 * xterm.c (xaw_scroll_callback): Cast correctly.
16134
16135 2008-02-01 Dave Love <fx@gnu.org>
16136
16137 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16138 (lispy_kana_keys): Comment out.
16139 (make_lispy_event) [XK_kana_A]: Comment out.
16140
16141 * xterm.c (xaw_scroll_callback): Cast call_data.
16142 (XTread_socket): Deal with ASCII keysyms.
16143 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16144
16145 2008-02-01 Dave Love <fx@gnu.org>
16146
16147 * xterm.c (Vx_keysym_table): New.
16148 (syms_of_xterm): Initialize it.
16149 (XTread_socket): Use it.
16150 From head: Eliminate incorrect optimization that tried to avoid
16151 decoding the output of X*LookupString.
16152 (x_get_font_repertory): Delete charset declaration.
16153
16154 2008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16157 return 0.
16158 (Fdefine_coding_system_internal): Setup
16159 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16160
16161 2008-02-01 Dave Love <fx@gnu.org>
16162
16163 * coding.c (Fcheck_coding_system): Doc fix.
16164
16165 * editfns.c (Finsert_byte): Return a proper value.
16166
16167 2008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 * coding.c (decode_coding): Fix args to translate_chars. Pay
16170 attention to Vstandard_translation_table_for_decode.
16171 (encode_coding): Fix args to translate_chars. Pay attention to
16172 Vstandard_translation_table_for_encode.
16173
16174 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16175 SINGLE_BYTE_CHAR_P.
16176
16177 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16178 not by SINGLE_BYTE_CHAR_P.
16179
16180 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16181 SINGLE_BYTE_CHAR_P.
16182
16183 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16184 SINGLE_BYTE_CHAR_P.
16185
16186 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16187 by SINGLE_BYTE_CHAR_P.
16188
16189 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16190 SINGLE_BYTE_CHAR_P.
16191
16192 2008-02-01 Dave Love <fx@gnu.org>
16193
16194 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16195
16196 2008-02-01 Dave Love <fx@gnu.org>
16197
16198 * fns.c (Flanginfo): Fix typo.
16199
16200 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16201
16202 2008-02-01 Kenichi Handa <handa@m17n.org>
16203
16204 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16205 (detect_coding_emacs_mule, detect_coding_iso_2022)
16206 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16207 incomplete byte sequence. Don't update *mask when correctly detected.
16208 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16209 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16210 (detect_coding, detect_coding_system): Adjust for the changes above.
16211
16212 2008-02-01 Kenichi Handa <handa@m17n.org>
16213
16214 * character.c (char_string): Rename from
16215 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16216 (string_char): Rename from string_char.
16217
16218 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16219 if C is greater than MAX_3_BYTE_CHAR.
16220 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16221 string_char instead of string_char_with_unification.
16222
16223 2008-02-01 Dave Love <fx@gnu.org>
16224
16225 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16226
16227 2008-02-01 Kenichi Handa <handa@m17n.org>
16228
16229 * keymap.c (push_key_description): Pay attention to force_multibyte.
16230
16231 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16232
16233 2008-02-01 Dave Love <fx@gnu.org>
16234
16235 * charset.c (define_charset_internal): Rename `supprementary'.
16236
16237 * Makefile.in (lisp, shortlisp): Remove latin-N.
16238
16239 2008-02-01 Dave Love <fx@gnu.org>
16240
16241 * xfns.c (x_window, x_window): Use use_xim.
16242
16243 * xterm.c (use_xim): Initialize.
16244 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16245 (x_term_init): Maybe set use_xim.
16246
16247 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16248
16249 2008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * search.c (search_buffer): Fix case-fold-search of multibyte
16252 characters.
16253 (boyer_moore): Rename the last argument to char_high_bits.
16254
16255 2008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * xdisp.c (display_string): Fix for the case of zero width glyph.
16258
16259 * xfns.c (x_set_font): Change the error message of the case that
16260 x_new_fontset returns Qt.
16261
16262 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16263 (Finternal_set_lisp_face_attribute): Use signal_error for the
16264 error of invalid fontset.
16265
16266 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16267 fontset, return Qt.
16268
16269 2008-02-01 Dave Love <fx@gnu.org>
16270
16271 * unexelf.c (unexec): Make .got handling not SGI-specific.
16272
16273 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16274
16275 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16276
16277 * keyboard.c (read_key_sequence): Fix type error.
16278
16279 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16280 type error.
16281
16282 * fontset.c (fontset_add): Return Lisp_Object.
16283
16284 2008-02-01 Dave Love <fx@gnu.org>
16285
16286 * charset.h (charset_ordered_list_tick): Declare extern.
16287
16288 2008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 The following changes (and some of 2008-02-01 changes of mine) are
16291 for handling syntax, category, and case conversion for unibyte
16292 characters by converting them to multibyte on the fly. With these
16293 changes, we don't have to setup syntax and case tables for unibyte
16294 characters in each language environment.
16295
16296 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16297 multibyte if necessary.
16298
16299 * bytecode.c (Fbyte_code): Likewise.
16300
16301 * character.h (LEADING_CODE_LATIN_1_MIN)
16302 (LEADING_CODE_LATIN_1_MAX): New macros.
16303 (unibyte_to_multibyte_table): Extern it.
16304 (unibyte_char_to_multibyte): New macro.
16305 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16306 (CHAR_LEADING_CODE): New macro.
16307 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16308
16309 * character.c (unibyte_to_multibyte_table): New variable.
16310 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16311 (multibyte_char_to_unibyte): If C is an eight-bit character,
16312 convert it to the corresponding byte value.
16313
16314 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16315 not 1, signals an error. Update the elements of
16316 unibyte_to_multibyte_table.
16317 (init_charset_once): Initialize unibyte_to_multibyte_table.
16318 (syms_of_charset): Define the charset `iso-8859-1'.
16319
16320 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16321 as is without converting it to unibyte. In a unibyte buffer,
16322 convert C to multibyte before checking the syntax.
16323
16324 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16325
16326 * minibuf.c (Fminibuffer_complete_word): Use the macro
16327 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16328
16329 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16330
16331 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16332 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16333 that is zero, convert an eight-bit char to multibyte.
16334 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16335 non-emacs case.
16336 (PATFETCH): Convert an eight-bit char to multibyte.
16337 (HANDLE_UNIBYTE_RANGE): New macro.
16338 (regex_compile): Setup the compiled pattern for multibyte chars
16339 even if the given regex string is unibyte. Use PATFETCH_RAW
16340 instead of PATFETCH in many places. To handle `charset'
16341 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16342 only for ASCII chars.
16343 (analyse_first) <exactn>: Simplify because the compiled pattern
16344 is multibyte.
16345 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16346 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16347 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16348 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16349 multibyte always 1.
16350 (re_search_2): In emacs, set the locale variable multibyte to 1,
16351 otherwise to 0. New local variable target_multibyte. Check it
16352 to decide the multibyteness of STR1 and STR2. If
16353 target_multibyte is zero, convert unibyte chars to multibyte
16354 before translating and checking fastmap.
16355 (TARGET_CHAR_AND_LENGTH): New macro.
16356 (re_match_2_internal): In emacs, set the locale variable multibyte
16357 to 1, otherwise to 0. New local variable target_multibyte. Check
16358 it to decide the multibyteness of STR1 and STR2. Use
16359 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16360 <charset, charset_not>: If multibyte is nonzero, check fastmap
16361 only for ASCII chars. Call bcmp_translate with
16362 target_multibyte, not with multibyte.
16363 <begline>: Declare the local variable C as `unsigned'.
16364 (bcmp_translate): Change the last arg name to target_multibyte.
16365
16366 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16367 the regexp pattern and the matching target. Set cp->buf.multibyte
16368 to the multibyteness of the regexp pattern. Set
16369 cp->but.target_multibyte to the multibyteness of the matching target.
16370 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16371 FETCH_STRING_CHAR_ADVANCE.
16372 (Freplace_match): Convert unibyte chars to multibyte.
16373
16374 * syntax.c (char_quoted, back_comment, scan_words)
16375 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16376 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16377 unibyte chars to multibyte.
16378 (skip_chars): Delete the arg syntaxp, and move the code for
16379 handling syntaxes to skip_syntaxes. Change callers.
16380 Fix the case that the multibyteness of STRING and the current
16381 buffer doesn't match.
16382 (skip_syntaxes): New function.
16383 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16384 SINGLE_BYTE_CHAR_P.
16385
16386 2008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * xfaces.c (QCfontset): New variable.
16389 (LFACE_FONTSET): New macro.
16390 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16391 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16392 (Finternal_set_lisp_face_attribute)
16393 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16394 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16395 check also LFACE_FONTSET_INDEX.
16396 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16397 attrs[LFACE_FONT_INDEX].
16398 (syms_of_xfaces): Intern and staticpro QCfontset.
16399
16400 * dispextern.h (enum lface_attribute_index): New member
16401 LFACE_FONTSET_INDEX.
16402
16403 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16404
16405 2008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * coding.c (coding_set_destination): Fix coding->destination for
16408 the case converting a region.
16409 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16410 (encode_coding_object): Fix coding->dst_pos and
16411 coding->dst_pos_byte for the case converting a region.
16412
16413 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16414
16415 * character.h (BYTE8_STRING): New macro.
16416
16417 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16418
16419 2008-02-01 Kenichi Handa <handa@m17n.org>
16420
16421 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16422 characters by octal form.
16423
16424 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16425
16426 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16427 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16428 _fetch_multibyte_char_len.
16429 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16430
16431 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16432
16433 * casefiddle.c (casify_object): Simplify. Handle the case that
16434 the case conversion change the byte length.
16435 (casify_region): Likewise.
16436
16437 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16438
16439 * character.c (_fetch_multibyte_char_len): Delete this variable.
16440 (syms_of_character): Setup Vprintable_chars.
16441
16442 * editfns.c (Fchar_equal): Fix for the unibyte case.
16443 (Finsert_byte): New function.
16444 (syms_of_editfns): Defsubr it.
16445
16446 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16447 of direct code 0x3ffff.
16448
16449 * search.c (Freplace_match): Fix for the unibyte case.
16450
16451 2008-02-01 Kenichi Handa <handa@m17n.org>
16452
16453 * lread.c (safe_to_load_p): Fix the logic.
16454
16455 * syntax.c (scan_words): Don't treat characters belonging to
16456 different scripts as constituting a word.
16457
16458 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16459
16460 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16461
16462 * emacs.c (main): In the case of --unibyte, instead of aborting on
16463 finding non-empty buffer, make it unibyte.
16464
16465 2008-02-01 Kenichi Handa <handa@m17n.org>
16466
16467 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16468 to create a fontset.
16469
16470 2008-02-01 Dave Love <fx@gnu.org>
16471
16472 * character.c (Funibyte_char_to_multibyte): Doc fix.
16473
16474 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16475
16476 2008-02-01 Kenichi Handa <handa@m17n.org>
16477
16478 * fontset.c (fontset_add): Make the type `int'.
16479 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16480
16481 * character.c (unibyte_char_to_multibyte)
16482 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16483 charset_unibyte, not charset_primary.
16484
16485 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16486
16487 * charset.c (charset_unibyte): Rename from charset_primary.
16488 (Funibyte_charset): Rename from Fprimary_charset.
16489 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16490 (syms_of_charset): Adjust for the above changes.
16491
16492 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16493 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16494 it->multibyte_p is zero.
16495
16496 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16497 Delete extern.
16498
16499 2008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * coding.c (Fdefine_coding_system_internal): Fix category setting
16502 for a coding system of type iso-2022.
16503
16504 2008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16507
16508 2008-02-01 Kenichi Handa <handa@m17n.org>
16509
16510 * syntax.c (Vnext_word_boundary_function_table): New variable.
16511 (next-word-boundary-function-table): Declare it as a Lisp variable
16512 in syms_of_syntax.
16513 (scan_words): Call functions in Vnext_word_boundary_function_table
16514 if any.
16515
16516 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16517
16518 * fontset.c (fs_load_font): If fontp->charset is not negative,
16519 return fontp without setting its members.
16520
16521 2008-02-01 Dave Love <fx@gnu.org>
16522
16523 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16524
16525 * m/sparc.h (HAVE_ALLOCA): Delete.
16526
16527 * s/irix6-5.h: Don't include strings.h.
16528 (bcopy, bzero, bcmp): Don't undef.
16529
16530 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16531
16532 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16533 (TIOCSIGSEND): Don't test IRIX6.
16534 (bcopy, bzero, bcmp): Define conditionally.
16535
16536 2008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * buffer.c (Qas, Qmake, Qto): New variables.
16539 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16540 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16541
16542 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16543 we are inserting a process output into a multibyte buffer.
16544
16545 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16546 multibyte_char_to_unibyte.
16547
16548 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16549 by the primary charset, make it eight-bit char.
16550 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16551
16552 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16553 (charset_8_bit__control, charset_8_bit_graphic)
16554 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16555 (define_charset_internal): New function.
16556 (syms_of_charset): Call define_charset_internal for pre-defined
16557 charsets.
16558
16559 * charset.h (charset_8_bit): Extern it.
16560
16561 * coding.c (make_conversion_work_buffer): Adjust for the change
16562 of Fset_buffer_multibyte.
16563 (encode_coding_raw_text): Increment p0 in the loop.
16564
16565 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16566
16567 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16568 for the change of Fset_buffer_multibyte.
16569
16570 * fns.c (Fstring_to_multibyte): New function.
16571 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16572
16573 2008-02-01 Dave Love <fx@gnu.org>
16574
16575 * xfns.c (x_put_x_image): Declare args.
16576
16577 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16578 (try_font_list): Declare an arg.
16579
16580 * xdisp.c (message2_nolog, set_message): Declare an arg.
16581
16582 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16583
16584 * syntax.c (scan_sexps_forward): Declare an arg.
16585
16586 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16587 Declare an arg.
16588
16589 * lisp.h (Fnew_fontset): Declare.
16590
16591 * keymap.c (push_key_description): Call CHARACTERP correctly.
16592
16593 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16594 (face_for_char): Delete unused vars.
16595 (Fset_fontset_font): Doc fix. Delete unused vars.
16596
16597 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16598
16599 * composite.c (update_compositions): Declare arg.
16600
16601 * cm.c (calccost, cmgoto): Declare args.
16602
16603 * charset.c: Remove `emacs' conditional. Doc fixes.
16604 (map_char_table_for_charset): Declare.
16605
16606 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16607
16608 * ccl.c: Remove `emacs' conditional.
16609
16610 2008-02-01 Kenichi Handa <handa@m17n.org>
16611
16612 The following changes are to allow specifying multiple font
16613 patterns for a character range (specified by script or charset).
16614
16615 * Makefile.in (abbrev.o): Depend on syntax.h.
16616 (xfaces.o): Depend on charset.h.
16617
16618 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16619 SINGLE_BYTE_CHAR_P.
16620
16621 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16622
16623 * character.h (Vchar_script_table): Extern it.
16624
16625 * character.c (Vscript_alist): Delete.
16626 (Vchar_script_table, Qchar_script_table): New variable.
16627 (syms_of_character): Declare Vchar_script_table as a lisp variable
16628 and initialize it.
16629
16630 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16631 have property char-table-extra-slots, make no extra slot.
16632
16633 * dispextern.h (struct face): Delete member `charset'.
16634 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16635 SINGLE_BYTE_CHAR_P.
16636 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16637 Add prototypes.
16638 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16639 (generate_ascii_font_name): Rename from generate_ascii_font.
16640
16641 * fontset.h (get_font_repertory_func): New prototype.
16642 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16643 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16644
16645 * fontset.c (Qprepend, Qappend): New variables.
16646 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16647 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16648 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16649 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16650 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16651 (load_font_get_repertory): New functions.
16652 (fontset_set): Delete.
16653 (fontset_face): New arg FACE. Return face ID, not face.
16654 Complete re-write to handle new fontset structure. Change caller.
16655 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16656 (face_for_char): Don't call lookup_face.
16657 (make_fontset_for_ascii_face): New arg FACE.
16658 (fs_load_font): New arg CHARSET_ID. Don't check
16659 Vfont_encoding_alist here.
16660 (find_font_encoding): New function.
16661 (list_fontsets): Use STRINGP, not ! NILP.
16662 (accumulate_script_ranges): New function.
16663 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16664 re-written to handle new fontset structure.
16665 (Ffontset_font): Return a copy of element.
16666 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16667 docstring of font-encoding-alist.
16668
16669 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16670 (Fset_fotset_font): Fix arguments to 5.
16671
16672 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16673
16674 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16675 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16676 (highlight_trailing_whitespace): Adjust for the change of
16677 lookup_named_face.
16678
16679 * xfaces.c: Include charset.h.
16680 (load_face_font): Delete argument C. Change caller.
16681 (generate_ascii_font_name): Rename from generate_ascii_font.
16682 (font_name_registry): New function.
16683 (cache_face): Store ascii faces before non-ascii faces in buckets.
16684 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16685 Lookup only ascii faces.
16686 (lookup_non_ascii_face): New function.
16687 (lookup_named_face): Delete argument C. Change caller.
16688 (lookup_derived_face): Delete argument C. Change caller.
16689 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16690 a string, just call font_list with it.
16691 (choose_face_font): Delete arguments FACE and C. New arg
16692 FONT_SPEC. Change caller.
16693 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16694 Change caller.
16695 (realize_non_ascii_face): New function.
16696 (realize_x_face): Call load_face_font here.
16697 (realize_tty_face): Delete argument C. Change caller.
16698 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16699 get a face ID.
16700 (dump_realized_face): Don't print charset of FACE.
16701
16702 * xfns.c (x_set_font): Always call x_new_fontset and
16703 store_frame_parameter.
16704 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16705 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16706
16707 * xterm.h (x_get_font_repertory): Extern it.
16708
16709 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16710 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16711 it->multibyte_p is zero.
16712 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16713 (x_new_fontset): If FONTSETNAME doesn't match any existing
16714 fontsets, create a new one.
16715 (x_get_font_repertory): New function.
16716
16717 2008-02-01 Kenichi Handa <handa@m17n.org>
16718
16719 * coding.c (Ffind_coding_systems_region_internal): Detect an
16720 ASCII only string correctly.
16721
16722 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16723 version is 0.
16724
16725 2008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * lread.c: Include "coding.h".
16728 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16729 (load_each_byte, unread_char): New variables.
16730 (readchar_backlog): Delete.
16731 (readchar): Return a character unless load_each_byte is nonzero.
16732 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16733 cons. If unread_char is not -1, simply return it.
16734 (unreadchar): Handle the case that readcharfun is
16735 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16736 (read_multibyte): Delete.
16737 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16738 (read_emacs_mule_char): New functions.
16739 (Fload): Even if the file doesn't have the extension ".elc", if
16740 safe_to_load_p returns a positive version number, assume that the
16741 file contains bytecompiled code. If the version is less than 22,
16742 load the file while decoding multibyte sequences by emacs-mule.
16743 (readevalloop): Don't use readchar_backlog.
16744 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16745 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16746 (read_escape): Delete the arg BYTEREP.
16747 (read1): Set load_each_byte to 1 temporarily while handling
16748 #@NUMBER. Don't call read_multibyte.
16749 (read_vector): Call Fread with a cons. If readcharfun is
16750 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16751 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16752 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16753 and Qload_force_doc_strings.
16754
16755 2008-02-01 Kenichi Handa <handa@m17n.org>
16756
16757 * xdisp.c (face_before_or_after_it_pos): Call
16758 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16759
16760 2008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * character.h (TRAILING_CODE_P): New macro.
16763 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16764 (string_char_with_unification): Fix prototype.
16765 (Vscript_alist): Extern it.
16766
16767 * character.c (Vscript_alist): New variable.
16768 (string_char_with_unification, str_as_unibyte)
16769 (string_escape_byte8): Add `const' to local variables.
16770 (syms_of_character): Declare script-alist as a Lisp variable.
16771
16772 * charset.h (Vcharset_ordered_list): Extern it.
16773 (charset_ordered_list_tick): Extern it.
16774 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16775 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16776 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16777 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16778 (Funify_charset): Adjust for the change of Funify_charset.
16779
16780 * charset.c (charset_ordered_list_tick): New variable.
16781 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16782 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16783 deunify intead of unify a charset.
16784 (string_xstring_p): Add `const' to local variables.
16785 (find_charsets_in_text): Add `const' to arguments and local variables.
16786 (encode_char): Adjust for the change of Funify_charset. Fix
16787 detecting of invalid code.
16788 (Fset_charset_priority): Increment charset_ordered_list_tick.
16789 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16790 and TO_CODE.
16791
16792 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16793 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16794 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16795 (decode_coding_ccl, consume_chars)
16796 (Ffind_coding_systems_region_internal)
16797 (Fcheck_coding_systems_region): Add `const' to local variables.
16798
16799 * print.c (print_object): Use octal form for printing the
16800 contents of a bool vector.
16801
16802 2008-02-01 Dave Love <fx@gnu.org>
16803
16804 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16805 <version == 20>: Refuse to load.
16806
16807 2008-02-01 Dave Love <fx@gnu.org>
16808
16809 * fns.c: Move coding.h.
16810 (Qcodeset, Qdays, Qmonths): New.
16811 (concat): Use CHARACTERP instead of INTEGERP.
16812 (Flocale_codeset): Delete.
16813 (Flanginfo): New function.
16814 (syms_of_fns): Change accordingly.
16815
16816 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16817
16818 2008-02-01 Dave Love <fx@gnu.org>
16819
16820 * casetab.c (init_casetab_once, init_casetab_once): Fix
16821 CHAR_TABLE_SET call.
16822
16823 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16824
16825 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16826
16827 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16828 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16829 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16830
16831 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16832
16833 * coding.c (ENCODE_DESIGNATION, decode_eol)
16834 (make_conversion_work_buffer, code_conversion_restore)
16835 (Fdefine_coding_system_internal): Convert Lisp types.
16836 (code_conversion_restore): Use EQ, not ==.
16837 (Fencode_coding_string): Fix code_convert_string call.
16838
16839 * coding.h (code_convert_region): Fix prototype.
16840
16841 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16842
16843 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16844 (Ffontset_info): Convert Lisp types.
16845
16846 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16847
16848 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16849
16850 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16851
16852 * chartab.c: Include "...h", not <...h> in some cases.
16853
16854 * callproc.c (Fcall_process): Remove unused variables.
16855
16856 2008-02-01 Dave Love <fx@gnu.org>
16857
16858 * coding.c (Fset_coding_system_priority): Allow null arg list.
16859
16860 2008-02-01 Dave Love <fx@gnu.org>
16861
16862 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16863 (Fself_insert_and_exit): Use CHARACTERP.
16864
16865 * callproc.c (Fcall_process): Remove unused vars.
16866
16867 * xterm.c (XTread_socket): Add extra dead keysyms.
16868
16869 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16870
16871 * dispextern.h: Remove prototypes for redraw_frame,
16872 redraw_garbaged_frames.
16873
16874 * cmds.c (Fself_insert_command): Use CHARACTERP.
16875
16876 * chartab.c (make_sub_char_table): Remove unused var.
16877 (Fset_char_table_default, Fmap_char_table): Doc fix.
16878
16879 * keymap.c (access_keymap): Remove generic char code.
16880 (push_key_description): Use CHARACTERP.
16881
16882 2008-02-01 Dave Love <fx@gnu.org>
16883
16884 * charset.c: Doc fixes.
16885 (Funify_charset): Extra checking.
16886
16887 2008-02-01 Dave Love <fx@gnu.org>
16888
16889 * lread.c: Remove some unused variables.
16890 (safe_to_load_p): If safe, return the magic number version byte.
16891 (Fload): Maybe use load-with-code-conversion.
16892
16893 2008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * category.c (Fmodify_category_entry): Don't modify the contents
16896 of category_set for characters out of the range. Avoid
16897 unnecessary modification.
16898
16899 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16900 Vchar_unify_table. The default value of the table is now nil.
16901
16902 * character.c (syms_of_character): Setup Vchar_width_table for
16903 eight-bit-control and raw-byte chars.
16904
16905 * charset.h (enum define_charset_arg_index): Delete
16906 charset_arg_parents and add charset_arg_subset and
16907 charset_arg_superset.
16908 (enum charset_attr_index): Delete charset_parents and add
16909 charset_subset and charset_superset.
16910 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16911 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16912 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16913 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16914 (CHARSET_SUPERSET): New macros.
16915 (charset_work): Extern it.
16916 (ENCODE_CHAR): Use charset_work.
16917 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16918 (map_charset_chars): Extern it.
16919
16920 * charset.c (load_charset_map): Set the default value of encoder
16921 and deunifier char-tables to nil.
16922 (map_charset_chars): Change argument. Change callers. Use
16923 map_char_table_for_charset instead of map_char_table.
16924 (Fmap_charset_chars): New optional args from_code and to_code.
16925 (Fdefine_charset_internal): Adjust for the change of
16926 `define-charset' (:parents -> :subset or :superset).
16927 (charset_work): New variable.
16928 (encode_char, syms_of_charset): Adjust for the change of
16929 Fdefine_charset_internal.
16930 (Ffind_charset_string): Setup the vector `charsets' correctly.
16931
16932 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16933 the previous change.
16934 (char_table_ref_and_range): Adjust for the above change.
16935 (map_sub_char_table_for_charset): New function.
16936 (map_char_table_for_charset): New function.
16937
16938 * keymap.c (describe_vector): Handle a char-table directly here.
16939 (describe_char_table): Delete.
16940
16941 * lisp.h (map_charset_chars): Delete.
16942
16943 2008-02-01 Dave Love <fx@gnu.org>
16944
16945 * fns.c (count_combining): Comment out (unused).
16946 (Flocale_codeset): New.
16947 (syms_of_fns): Defsubr it.
16948
16949 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16950 (size_t): Remove.
16951
16952 2008-02-01 Dave Love <fx@gnu.org>
16953
16954 * Makefile.in (chartab.o): Depend on charset.h.
16955
16956 2008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * character.c (syms_of_character): Set the default value of
16959 Vprintable_chars to Qnil.
16960
16961 2008-02-01 Dave Love <fx@gnu.org>
16962
16963 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16964
16965 2008-02-01 Kenichi Handa <handa@m17n.org>
16966
16967 * charset.c (load_charset_map): Handle the case that from < to
16968 correctly.
16969
16970 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16971 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16972 Pay attention to raw-8-bit chars.
16973
16974 2008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16977 It is not bytecompiled now.
16978
16979 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16980 (charset_jisx0208): New variables.
16981 (Fdefine_charset_internal): Setup them if appropriate.
16982 (init_charset_once): Initialize them to -1.
16983
16984 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16985 (charset_jisx0208): Extern them.
16986
16987 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16988 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16989 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16990 (setup_iso_safe_charsets): Fix arguments to Fassq.
16991 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16992 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16993 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16994 (encode_coding_iso_2022): Change the 1st arg to
16995 ENCODE_ISO_CHARACTER to a variable.
16996
16997 2008-02-01 Kenichi Handa <handa@m17n.org>
16998
16999 * charset.h (enum define_charset_arg_index): New enums
17000 charset_arg_min_code and charset_arg_max_code.
17001 (struct charset): New member char_index_offset.
17002
17003 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17004 Take charset->char_index_offset into account.
17005 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17006 args[charset_arg_max_code]. Setup charset.char_index_offset.
17007 (syms_of_charset): Fix args to Fdefine_charset_internal.
17008
17009 2008-02-01 Dave Love <fx@gnu.org>
17010
17011 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17012
17013 2008-02-01 Dave Love <fx@gnu.org>
17014
17015 * coding.c: Doc fixes.
17016 (Fcoding_system_aliases): Fix return value.
17017 (Qmac): Remove (duplicated) definition.
17018
17019 2008-02-01 Dave Love <fx@gnu.org>
17020
17021 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17022 New functions.
17023
17024 * character.c (Fstring): Doc fix.
17025
17026 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17027
17028 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17029 (font-encoding-alist): Doc fix.
17030
17031 2008-02-01 Dave Love <fx@gnu.org>
17032
17033 * term.c (costs_set): Declare static, non-initialized for pcc.
17034 (encode_terminal_code): Remove unused var.
17035
17036 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17037 for K&R.
17038
17039 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17040
17041 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17042 (suffixes): Move out of make_subsidiaries for K&R.
17043
17044 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17045
17046 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17047
17048 2008-02-01 Dave Love <fx@gnu.org>
17049
17050 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17051
17052 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17053
17054 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17055
17056 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17057
17058 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17059
17060 2008-02-01 Kenichi Handa <handa@m17n.org>
17061
17062 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17063 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17064
17065 2008-02-01 Kenichi Handa <handa@m17n.org>
17066
17067 * coding.c (decode_coding_charset): Adjust for the change of
17068 Fdefine_coding_system_internal.
17069 (Fdefine_coding_system_internal): For a coding system of
17070 `charset' type, store a list of charset IDs in
17071 `charset_attr_charset_valids' element of coding attributes.
17072
17073 2008-02-01 Kenichi Handa <handa@m17n.org>
17074
17075 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17076 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17077 caller. Handle 2-byte and 3-byte charsets correctly.
17078 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17079 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17080 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17081 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17082 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17083 sequence.
17084 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17085 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17086 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17087 and alt&rule composition.
17088 (decode_coding_iso_2022): Handle composition correctly.
17089 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17090
17091 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17092 re-defining a charset. If the charset has :emacs-mule-id, setup
17093 emacs_mule_bytes.
17094 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17095
17096 2008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17099 (encode_coding_big5, encode_coding_charset): If coding requires safe
17100 encoding, produce a character specified by
17101 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17102
17103 2008-02-01 Dave Love <fx@gnu.org>
17104
17105 * xterm.c (XSetIMValues): Declare.
17106
17107 * process.c: Conditionally include sys/wait.h, pty.h.
17108
17109 * print.c (print_object): Fix print format for 64-bit systems.
17110
17111 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17112
17113 * buffer.c (emacs_strerror): Declare.
17114
17115 * fontset.c (Fclear_face_cache): Declare.
17116 (accumulate_font_info): Comment-out (unused).
17117 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17118 variables.
17119
17120 * character.h (string_escape_byte8): Declare.
17121
17122 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17123 unused vars.
17124 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17125 (Fmap_charset_chars): Doc fix.
17126
17127 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17128 (Fset_coding_system_priority, Fset_coding_system_priority)
17129 (Fdefine_coding_system_internal): Doc fix.
17130
17131 2008-02-01 Dave Love <fx@gnu.org>
17132
17133 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17134
17135 2008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * character.c (string_escape_byte8): Make multibyte string with
17138 correct size.
17139
17140 * charset.c (Fmake_char): Delete unnecessary code.
17141
17142 2008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * xfns.c (x_encode_text): Allocate coding.destination here, and
17145 call encode_coding_object with dst_object Qnil.
17146
17147 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17148 multibyte form correctly.
17149
17150 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17151 against Vfont_encoding_alist.
17152
17153 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17154 handling of charset list.
17155 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17156 (decode_coding_object): Move point to coding->dst_pos before
17157 calling post-read-conversion function.
17158 (encode_coding_object): Give correct arguments to
17159 pre-write-conversion. Ignore the return value of
17160 pre-write-conversion function. Pay attention to the case that
17161 pre-write-conversion changes the current buffer. If dst_object is
17162 Qt, even if coding->src_bytes is zero, allocate at least one byte
17163 to coding->destination.
17164
17165 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17166
17167 * charset.c (Fmake_char): Make it more backward compatible.
17168 (Fmap_charset_chars): Fix docstring.
17169
17170 2008-02-01 Dave Love <fx@gnu.org>
17171
17172 * coding.c: Doc fixes.
17173 (Fdefine_coding_system_alias): Use names, not symbols, in
17174 coding-system-alist.
17175
17176 2008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17179 of calling free_realized_face.
17180
17181 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17182
17183 * charset.c (read_hex): Don't treat SPC as a comment starter.
17184 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17185 (Fdecode_char): Fix typo.
17186
17187 2008-02-01 Kenichi Handa <handa@m17n.org>
17188
17189 * charset.h (struct charset): New member `code_space_mask'.
17190
17191 * coding.c (coding_set_source): Delete the local variable beg_byte.
17192 (encode_coding_charset, Fdefine_coding_system_internal):
17193 Delete the local variable charset.
17194 (Fdefine_coding_system_internal): Setup
17195 attrs[coding_attr_charset_valids] correctly.
17196
17197 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17198 member to check if CODE is valid or not.
17199 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17200 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17201 is within the range of charset->min_code and carset->max_code.
17202
17203 2008-02-01 Dave Love <fx@gnu.org>
17204
17205 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17206
17207 * dispextern.h (generate_ascii_font): Fix return type.
17208
17209 * xfaces.c (generate_ascii_font): Fix arg declaration.
17210
17211 * coding.c (coding_inherit_eol_type)
17212 (Fset_terminal_coding_system_internal)
17213 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17214
17215 2008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17218 multiple charsets correctly.
17219
17220 2008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * search.c (boyer_moore): Fix handling of multibyte character
17223 translation.
17224
17225 * xdisp.c (display_mode_element): When the variable `elt' is
17226 changed, update `this' and `lisp_string'.
17227
17228 2008-02-01 Kenichi Handa <handa@m17n.org>
17229
17230 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17231
17232 * callproc.c (Fcall_process): Be sure to give the current buffer
17233 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17234
17235 * charset.c (struct charset_map_entries): New struct.
17236 (load_charset_map): Rename from parse_charset_map. New args
17237 entries and n_entries. Change caller.
17238 (load_charset_map_from_file): Rename from load_charset_map.
17239 Change caller. New arg control_flag. Call load_charset_map at
17240 the tail.
17241 (load_charset_map_from_vector): New function.
17242 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17243 (encode_char): If the charset is compact, change a character index
17244 to a code point.
17245
17246 * coding.c (coding_alloc_by_making_gap): Check the case that the
17247 source and destination are the same correctly.
17248 (decode_coding_raw_text): Set coding->consumed_char and
17249 coding->consumed to 0.
17250 (produce_chars): If coding->chars_at_source is nonzero, update
17251 coding->consumed_char and coding->consumed before calling
17252 alloc_destination.
17253 (Fdefine_coding_system_alias): Register ALIAS in
17254 Vcoding_system_alist.
17255 (syms_of_coding): Define `no-conversion' coding system at the tail.
17256
17257 * fileio.c (Finsert_file_contents): Set coding_system instead of
17258 val. If the current buffer is multibyte, always call
17259 decode_coding_gap.
17260
17261 * xfaces.c (try_font_list): Give higher priority to fontset's
17262 family than face's family.
17263
17264 2008-02-01 Kenichi Handa <handa@m17n.org>
17265
17266 * callproc.c (Fcall_process): Be sure to give the current buffer
17267 to decode_coding_c_string.
17268
17269 * xfaces.c (try_font_list): Give a family specified in a fontset
17270 higher priority than a family specified in a face.
17271
17272 2008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17275 Fix arguments to insert_from_buffer.
17276
17277 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17278
17279 2008-02-01 Kenichi Handa <handa@m17n.org>
17280
17281 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17282 (decode_coding_gap): Set coding->dst_multibyte correctly.
17283
17284 2008-02-01 Kenichi Handa <handa@m17n.org>
17285
17286 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17287 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17288 (encode_coding_utf_16): Substitute coding->default_char for
17289 non-Unicode characters.
17290 (decode_coding): Don't call record_insert here.
17291 (setup_coding_system): Initialize `surrogate' of
17292 coding->spec.utf_16 to 0.
17293 (EMIT_ONE_BYTE): Fix for multibyte case.
17294
17295 * insdel.c (insert_from_gap): Call record_insert.
17296
17297 2008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * casefiddle.c (casify_region): Fix multibyte case.
17300
17301 * character.c (c_string_width): Add return type `int'.
17302 (char_string_with_unification): Delete arg ADVANCED.
17303
17304 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17305 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17306 (CHAR_STRING_ADVANCE): Make it do-while statement.
17307
17308 * chartab.c (sub_char_table_set_range): Optimize for the case
17309 DEPTH == 3. Add workaround code for a GCC optimization bug.
17310
17311 * charset.c (parse_charset_map): Remove an unused variable.
17312
17313 * coding.c: Delete unused variables.
17314
17315 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17316 earlier. If inserted is zero and the coding system doesn't
17317 require flushing, don't call decode_coding_gap.
17318
17319 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17320
17321 2008-02-01 Kenichi Handa <handa@m17n.org>
17322
17323 The following changes are for using Unicode as an internal
17324 character model, and use UTF-8 format for buffer/string
17325 representation.
17326
17327 * .gdbinit (xchartable): Adjust for the change of char table structure.
17328 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17329
17330 * Makefile.in (obj): Add character.o and chartab.o.
17331 (lisp, shortlisp): Remove utf-8.elc.
17332 (*.o): For many files, change dependency on charset.h to
17333 character.h, and add dependency on character.h.
17334 (character.o, chartab.o): New targets.
17335
17336 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17337 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17338 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17339 of "charset.h".
17340
17341 * dired.c, filelock.c: Include "character.h".
17342
17343 * alloc.c: Include "character.h" instead of "charset.h".
17344 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17345 (syms_of_alloc): Remove defsubr for Smake_char_table.
17346
17347 * buffer.c: Include "character.h" instead of "charset.h", don't
17348 include "coding.h".
17349 (Fset_buffer_multibyte): Adjust for UTF-8.
17350
17351 * buffer.h: EXFUN Fbuffer_live_p.
17352
17353 * callproc.c: Include "character.h" instead of "charset.h".
17354 (Fcall_process): Big change for the new code-conversion APIs.
17355
17356 * casetab.c: Include "character.h" instead of "charset.h".
17357 (set_canon, set_identity, shuffle): Adjust for the new
17358 map_char_table spec.
17359 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17360 accessing the char table structure.
17361
17362 * chartab.c: New file that implements char table.
17363
17364 * category.c: Include "character.h".
17365 (copy_category_entry): New function.
17366 (copy_category_table): Call map_char_table and copy_category_entry.
17367 (Fmake_category_table): Initialize all top-level slots.
17368 (char_category_set): New function.
17369 (modify_lower_category_set): Delete.
17370 (Fmodify_category_entry): Call char_table_ref_and_range.
17371
17372 * category.h (CATEGORY_SET): Just call char_category_set.
17373
17374 * ccl.c: Include "character.h".
17375 (Qccl, Qcclp): New variables.
17376 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17377 it's less than 256.
17378 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17379 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17380 and DST type.
17381 (ccl_driver): Change types of argument, adjust code accordingly.
17382 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17383 ccl_driver.
17384 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17385
17386 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17387 New members src_multibyte, dst_multibyte, consumed, and produced.
17388 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17389 (CODING_SPEC_CCL_PROGRAM): New macro.
17390 (ccl_driver): Update prototype.
17391 (Qccl, Qcclp, Fccl_program_p): Extern them.
17392 (CHECK_CCL_PROGRAM): New macro.
17393
17394 * character.c, character.h, chartab.c: New files.
17395
17396 * charset.c: Mostly re-written. Move character and multibyte sequence
17397 handling codes to character.c.
17398
17399 * charset.h: Mostly re-written. Move character and multibyte sequence
17400 handling codes to character.h.
17401
17402 * coding.c, coding.h: Mostly re-written.
17403
17404 * composite.c: Include "character.h" instead of "charset.h".
17405 (CHAR_WIDTH): Move to character.h.
17406 (HASH_KEY, HASH_VALUE): Delete.
17407
17408 * composite.h (enum composition_method): Change order of enumeration
17409 symbols.
17410
17411 * data.c: Include "character.h" instead of "charset.h".
17412 (Faref): Call CHAR_TABLE_REF for a char table.
17413 (Faset): Call CHAR_TABLE_SET for a char table.
17414
17415 * dispextern.h (free_realized_face, check_face_attribytes)
17416 (generate_ascii_font): Extern them.
17417 (free_realized_multibyte_face): Delete extern.
17418
17419 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17420 table structure.
17421
17422 * editfns.c: Include "character.h" instead of "charset.h".
17423 (Fchar_to_string): Always call CHAR_STRING.
17424
17425 * emacs.c (main): Call init_charset_once, init_charset,
17426 syms_of_chartab, and syms_of_character.
17427
17428 * fileio.c: Include "character.h" instead of "charset.h".
17429 (Finsert_file_contents): Big change for the new code-conversion API.
17430 (choose_write_coding_system, Fwrite_region): Likewise.
17431 (build_annotations_2): Delete.
17432 (e_write): Big change for the new code-conversion API.
17433
17434 * fns.c: Include "character.h" instead of "charset.h".
17435 (copy_sub_char_table): Move to chartab.c.
17436 (Fcopy_sequence): Call copy_char_table for a char table.
17437 (concat): Delete codes calling count_multibyte.
17438 (string_char_to_byte, string_byte_to_char): Adjust for the new
17439 multibyte form.
17440 (internal_equal): Adjust for the change of char table structure.
17441 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17442 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17443 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17444 (char_table_translate, optimize_sub_char_table)
17445 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17446 chartab.c.
17447 (char_table_ref_and_index): Delete.
17448 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17449 (Fmd5): Call preferred_coding_system instead of accessing
17450 Vcoding_category_list. Adjust for the new code-conversion API.
17451 (syms_of_fns): Move defsubr for char table related functions to
17452 chartab.c.
17453
17454 * fontset.c: Mostly re-written.
17455
17456 * fontset.h (struct font_info): Change type of the member encoding_type.
17457 (enum FONT_SPEC_INDEX): New enum.
17458 (fontset_font_pattern, fs_load_font): Update prototype.
17459 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17460
17461 * indent.c: Include "character.h" instead of "charset.h".
17462 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17463
17464 * insdel.c: Include "character.h" instead of "charset.h".
17465 (copy_text): Don't refer to Vnonascii_translation_table.
17466 (insert_from_gap): New function.
17467
17468 * keyboard.c: Include "character.h" instead of "charset.h".
17469 (command_loop_1): Never call direct_output_forward_char before
17470 a non-ASCII character.
17471 (read_char): If Vkeyboard_translate_table is a char table, always
17472 translate a character.
17473
17474 * keymap.c: Include "character.h".
17475 (store_in_keymap): Handle the case that IDX is a cons.
17476 (Fdefine_key): Handle the case that KEY is a cons and the car part
17477 is also a cons (range).
17478 (push_key_description): Adjust for the new character code.
17479 (describe_vector): Call describe_char_table for a char table.
17480 (describe_char_table): New function.
17481
17482 * keymap.h (describe_char_table): Extern it.
17483
17484 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17485 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17486 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17487 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17488 Delete.
17489 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17490 structure.
17491 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17492 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17493 (CHARTAB_SIZE_BITS_3): New macros.
17494 (chartab_size): Extern it.
17495 (struct Lisp_Char_Table): Re-design.
17496 (struct Lisp_Sub_Char_Table): New structure.
17497 (HASH_KEY, HASH_VALUE): Move from fns.c.
17498 (CHARACTERBITS): Define as 22.
17499 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17500 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17501 (GC_SUB_CHAR_TABLE_P): New macro.
17502 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17503 (code_convert_string_norecord): Deleted extern.
17504 (init_character_once, syms_of_character, init_charset)
17505 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17506
17507 * lread.c: Include "character.h".
17508 (read_multibyte): New arg NBYTES.
17509 (read_escape): Change the meaning of returned *BYTEREP.
17510 (to_multibyte): Delete.
17511 (read1): Adjust the handling of char table and string.
17512
17513 * print.c: Include "character.h" instead of "charset.h".
17514 (print_string): Convert 8-bit raw bytes to octal form by
17515 string_escape_byte8.
17516 (print_object): Adjust for the new multibyte form. Print 8-bit
17517 raw bytes always in octal form. Handle sub char table correctly.
17518
17519 * process.c: Include "character.h" instead of "charset.h".
17520 (read_process_output, send_process): Adjust for the new
17521 code-conversion API.
17522
17523 * puresize.h (BASE_PURESIZE): Increase.
17524
17525 * regex.c: Include "character.h" instead of "charset.h".
17526 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17527 (regex_compile): Accept a range whose starting and ending
17528 character have different leading bytes.
17529 (analyse_first): Adjust for the above change.
17530
17531 * search.c: Include "character.h" instead of "charset.h".
17532 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17533 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17534
17535 * syntax.c: Include "character.h" instead of "charset.h".
17536 (syntax_parent_lookup): Delete.
17537 (Fmodify_syntax_entry): Accept a cons as CHAR.
17538 (skip_chars): Adjust for the new multibyte form.
17539 (init_syntax_once): Call char_table_set_range instead of directly
17540 accessing the structure of a char table.
17541
17542 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17543 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17544 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17545 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17546
17547 * term.c: Include "buffer.h" and "character.h".
17548 (encode_terminal_code, write_glyphs): Adjust for the new
17549 code-conversion API.
17550 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17551
17552 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17553
17554 * xdisp.c: Include "character.h".
17555 (get_next_display_element): Adjust for the new multibyte form.
17556 (disp_char_vector): Adjust for the new char table structure.
17557 (decode_mode_spec_coding): Adjust for the new structure of
17558 coding system.
17559 (decode_mode_spec): Adjust for the new code-conversion API.
17560
17561 * xfaces.c: Include "character.h" instead of "charset.h".
17562 (load_face_font): Adjust for the change of choose_face_font and
17563 FS_LOAD_FONT.
17564 (generate_ascii_font): New function.
17565 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17566 (set_font_frame_param): Adjust for the change of choose_face_font.
17567 (free_realized_face): Make it public.
17568 (free_realized_faces_for_fontset): Rename from
17569 free_realized_multibyte_face. Free also faces realized for ASCII.
17570 (choose_face_font): Change arguments. Adjust for the change of
17571 fontset_font_pattern and FS_LOAD_FONT.
17572
17573 * xfns.c: Include "character.h".
17574 (x_encode_text): Adjust for the new code-conversion API.
17575
17576 * xselect.c: Don't include "charset.h".
17577 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17578
17579 * xterm.c: Include "character.h".
17580 (x_encode_char): New argument CHARSET. Change caller.
17581 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17582 Call ENCODE_CHAR instead of SPLIT_CHAR.
17583 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17584 CHAR_WIDTH instead of CHARSET_WIDTH.
17585 (XTread_socket): Adjust for the new code-conversion API.
17586 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17587 (x_load_font): Adjust for the change of struct font.
17588
17589 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17590
17591 * xfaces.c (face_at_buffer_position): Remove unused vars.
17592
17593 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17594
17595 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17596 Fix overflow checking.
17597
17598 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17599
17600 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17601 Cancel previous change.
17602
17603 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17604
17605 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17606 ccl->eight_bit_control. Fix check for buffer overflow.
17607 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17608 (ccl_driver): Initialize extra_bytes to 0.
17609
17610 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17611
17612 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17613 return it ORed with ctrl_modifier.
17614
17615 2008-01-29 Miles Bader <miles@gnu.org>
17616
17617 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17618
17619 2008-01-28 Jason Rumney <jasonr@gnu.org>
17620
17621 * w32.c (stat): Don't double check for networked drive.
17622
17623 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17624
17625 * window.c (run_window_configuration_change_hook): New function.
17626 Code extracted from set_window_buffer. Set the selected frame.
17627 (set_window_buffer): Use it.
17628 * window.h (run_window_configuration_change_hook): Declare.
17629 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17630
17631 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17632
17633 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17634
17635 * Makefile.in: Remove references to unused macros.
17636
17637 2008-01-26 Eli Zaretskii <eliz@gnu.org>
17638
17639 * w32.c (g_b_init_get_sid_sub_authority)
17640 (g_b_init_get_sid_sub_authority_count): New static variables.
17641 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17642 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17643 (init_user_info): Use them to retrieve uid and gid.
17644 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17645 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17646 st_uid and st_gid of the file.
17647
17648 2008-01-26 Jason Rumney <jasonr@gnu.org>
17649
17650 * w32.c (logon_network_drive): New function.
17651 (stat): Use it.
17652
17653 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
17654
17655 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17656 invisible text covered with an ellipsis.
17657
17658 2008-01-25 Richard Stallman <rms@gnu.org>
17659
17660 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17661 jump back to beginning. Move some other initializations after that.
17662 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17663 New variables.
17664 (syms_of_xdisp): Init them.
17665
17666 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17667
17668 * buffer.c (reset_buffer_local_variables):
17669 Implement `permanent-local-hook'.
17670 (Qpermanent_local_hook): New variable.
17671 (syms_of_buffer): Init and staticpro it.
17672
17673 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
17674
17675 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17676
17677 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17678
17679 * fns.c (Fclrhash): Return TABLE.
17680
17681 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17682
17683 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17684 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17685 is set even without positional changes.
17686 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17687
17688 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17689
17690 2008-01-23 Jason Rumney <jasonr@gnu.org>
17691
17692 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17693
17694 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17695 the unicode range available in MULE by locale-coding-system.
17696 Improve dbcs lead byte detection. Set event timestamp and modifiers
17697 earlier.
17698
17699 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17700
17701 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17702 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17703 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17704 when used on child processes.
17705
17706 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
17707
17708 * dbusbind.c (Fdbus_method_return_internal): Rename from
17709 Fdbus_method_return.
17710 (Fdbus_unregister_object): Move to dbus.el.
17711 (Fdbus_call_method, Fdbus_method_return_internal)
17712 (Fdbus_send_signal): Improve debug messages.
17713
17714 2008-01-20 Martin Rudalics <rudalics@gmx.at>
17715
17716 * undo.c (undo_inhibit_record_point): New variable.
17717 (syms_of_undo): Initialize it.
17718 (record_point): Don't record point when undo_inhibit_record_point
17719 is set.
17720
17721 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17722
17723 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17724
17725 * xdisp.c (Qauto_hscroll_mode): New var.
17726 (syms_of_xdisp): Initialize it.
17727 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17728 window's buffer.
17729 (hscroll_windows): Don't check automatic_hscrolling_p here.
17730
17731 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17732 vscroll if we're setting window-buffer to the value it already has.
17733
17734 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17735
17736 * m/intel386.h: Remove references to XENIX.
17737
17738 2008-01-17 Andreas Schwab <schwab@suse.de>
17739
17740 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17741 instead of HAVE_X86_64_LIB64_DIR.
17742 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17743
17744 2008-01-17 Glenn Morris <rgm@gnu.org>
17745
17746 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17747 to HAVE_X86_64_LIB64_DIR.
17748
17749 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17750
17751 * s/irix3-3.h:
17752 * s/irix4-0.h:
17753 * s/386-ix.h:
17754 * s/domain.h:
17755 * s/hpux9-x11r4.h:
17756 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17757
17758 * sysdep.c: Remove code containing references to symbols defined
17759 by unsupported systems.
17760
17761 2008-01-16 Glenn Morris <rgm@gnu.org>
17762
17763 * coding.c (select-safe-coding-system-function): Doc fix.
17764
17765 2008-01-15 Glenn Morris <rgm@gnu.org>
17766
17767 * config.in: Revert 2008-01-13 change: this is a generated file.
17768
17769 2008-01-13 Tom Tromey <tromey@redhat.com>
17770
17771 * lisp.h: Fix typo.
17772
17773 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17774
17775 * m/sequent-ptx.h:
17776 * m/sequent.h:
17777 * s/ptx.h:
17778 * s/ptx4-2.h:
17779 * s/ptx4.h: Remove files for systems no longer supported.
17780
17781 * callproc.c (Fcall_process): Fix previous change.
17782
17783 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17784
17785 * unexsunos4.c: Remove file, system not supported anymore.
17786
17787 * m/mips.h:
17788 * m/intel386.h:
17789 * callproc.c:
17790 * config.in:
17791 * ecrt0.c:
17792 * emacs.c:
17793 * fileio.c:
17794 * frame.c:
17795 * getpagesize.h:
17796 * keyboard.c:
17797 * lread.c:
17798 * process.c:
17799 * puresize.h:
17800 * sysdep.c:
17801 * systty.h:
17802 * syswait.h:
17803 * unexec.c:
17804 * xdisp.c:
17805 * alloc.c: Remove code containing references to symbols defined by
17806 unsupported systems.
17807
17808 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17809
17810 * coding.c (detect_coding_mask): Fix previous change.
17811
17812 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17813
17814 * coding.c (detect_coding_iso2022): New arg
17815 latin_extra_code_state. Allow Latin extra codes only
17816 when *latin_extra_code_state is nonzero.
17817 (detect_coding_mask): If there is a NULL byte, detect the encoding
17818 as UTF-16 or binary. If Latin extra codes exist, detect the
17819 encoding as ISO-2022 only when there's no other proper encoding is
17820 found.
17821
17822 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17823
17824 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17825 #ifdef MAC_OS.
17826
17827 2008-01-08 Richard Stallman <rms@gnu.org>
17828
17829 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17830
17831 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
17832
17833 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17834 menu bar in parentheses.
17835
17836 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17837
17838 * m/7300.h:
17839 * m/acorn.h:
17840 * m/alliant-2800.h:
17841 * m/alliant.h:
17842 * m/alliant1.h:
17843 * m/alliant4.h:
17844 * m/altos.h:
17845 * m/amdahl.h:
17846 * m/apollo.h:
17847 * m/att3b.h:
17848 * m/aviion-intel.h:
17849 * m/aviion.h:
17850 * m/celerity.h:
17851 * m/clipper.h:
17852 * m/cnvrgnt.h:
17853 * m/convex.h:
17854 * m/cydra5.h:
17855 * m/delta88k.h:
17856 * m/dpx2.h:
17857 * m/dual.h:
17858 * m/elxsi.h:
17859 * m/f301.h:
17860 * m/gould-np1.h:
17861 * m/gould.h:
17862 * m/i860.h:
17863 * m/ibmps2-aix.h:
17864 * m/ibmrt-aix.h:
17865 * m/ibmrt.h:
17866 * m/irist.h:
17867 * m/is386.h:
17868 * m/isi-ov.h:
17869 * m/mega68.h:
17870 * m/mg1.h:
17871 * m/news-r6.h:
17872 * m/news-risc.h:
17873 * m/news.h:
17874 * m/nh3000.h:
17875 * m/nh4000.h:
17876 * m/ns16000.h:
17877 * m/ns32000.h:
17878 * m/nu.h:
17879 * m/orion.h:
17880 * m/orion105.h:
17881 * m/paragon.h:
17882 * m/pfa50.h:
17883 * m/plexus.h:
17884 * m/pyramid.h:
17885 * m/pyrmips.h:
17886 * m/sh3el.h:
17887 * m/sps7.h:
17888 * m/sr2k.h:
17889 * m/stride.h:
17890 * m/sun1.h:
17891 * m/sun2.h:
17892 * m/sun3-68881.h:
17893 * m/sun3-fpa.h:
17894 * m/sun3-soft.h:
17895 * m/sun3.h:
17896 * m/sun386.h:
17897 * m/symmetry.h:
17898 * m/tad68k.h:
17899 * m/tahoe.h:
17900 * m/targon31.h:
17901 * m/tek4300.h:
17902 * m/tekxd88.h:
17903 * m/tower32.h:
17904 * m/tower32v3.h:
17905 * m/ustation.h:
17906 * m/wicat.h:
17907 * m/xps100.h:
17908 * s/cxux.h:
17909 * s/cxux7.h:
17910 * s/dgux.h:
17911 * s/dgux4.h:
17912 * s/dgux5-4-3.h:
17913 * s/dgux5-4r2.h:
17914 * s/esix.h:
17915 * s/esix5r4.h:
17916 * s/hiuxmpp.h:
17917 * s/hiuxwe2.h:
17918 * s/iris3-5.h:
17919 * s/iris3-6.h:
17920 * s/isc2-2.h:
17921 * s/isc3-0.h:
17922 * s/isc4-0.h:
17923 * s/isc4-1.h:
17924 * s/newsos5.h:
17925 * s/newsos6.h:
17926 * s/osf1.h:
17927 * s/osf5-0.h:
17928 * s/riscix1-1.h:
17929 * s/riscix12.h:
17930 * s/sco4.h:
17931 * s/sco5.h:
17932 * s/sunos4-0.h:
17933 * s/sunos4-1.h:
17934 * s/sunos413.h:
17935 * s/sunos4shr.h:
17936 * s/umax.h:
17937 * s/unipl5-2.h:
17938 * s/xenix.h:
17939 * cxux-crt0.s:
17940 * unexapollo.c:
17941 * unexconvex.c:
17942 * unexenix.c:
17943 * unexsni.c: Remove files for systems no longer supported.
17944
17945 * m/intel386.h: Remove references to unsupported systems.
17946
17947 * w32.c (get_emacs_configuration): Remove reference to i860.
17948
17949 * sysdep.c: Remove dead code.
17950
17951 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17952
17953 * s/rtu.h:
17954 * m/masscomp.h: Remove files. Platform is obsolete.
17955
17956 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
17957
17958 * dbusbind.c (Fdbus_method_return): New function.
17959 (xd_read_message): Add the serial number to the event.
17960 (Fdbus_register_method): Activate the function.
17961
17962 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17963
17964 * keyboard.c (read_key_sequence): Fix typo.
17965
17966 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
17967
17968 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17969 (xd_signature, xd_append_arg): Handle element type detection for
17970 empty arrays.
17971 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17972 SDATA () calls; this must be solved more general.
17973 (Fdbus_register_signal): Use SBYTES instead of strlen.
17974
17975 2008-01-03 Magnus Henoch <magnus@zemdatav>
17976
17977 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17978 unsigned int for byte values (necessary for big-endian platform).
17979 (Fdbus_call_method): Handle the case of no returned arguments.
17980
17981 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17982
17983 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17984
17985 2007-12-31 Magnus Henoch <mange@freemail.hu>
17986
17987 * dbusbind.c (xd_signature): Signature of variant is just "v".
17988
17989 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
17990
17991 * dbusbind.c: Fix several errors and compiler warnings.
17992 Reported by Tom Tromey <tromey@redhat.com>.
17993 (XD_ERROR, XD_DEBUG_MESSAGE)
17994 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17995 (xd_append_arg): Part for basic D-Bus types rewritten.
17996 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17997 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17998 appropriate.
17999 (xd_read_message): Return Qnil. Don't signal an error; it is not
18000 useful during event reading.
18001 (Fdbus_register_signal): Signal an error if the check for
18002 FUNCTIONP fails.
18003 (Fdbus_register_method): New function. The implementation is not
18004 complete, the call of the function signals an error therefore.
18005 (Fdbus_unregister_object): New function, renamed from
18006 Fdbus_unregister_signal. The initial check signals an error, if
18007 the object is not well formed.
18008
18009 2007-12-30 Richard Stallman <rms@gnu.org>
18010
18011 * textprop.c (get_char_property_and_overlay):
18012 Signal error if POSITION is out of range in a buffer.
18013
18014 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18015
18016 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18017 because the original parameters are in pure storage now.
18018
18019 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18020
18021 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18022
18023 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18024
18025 * callint.c (syms_of_callint) <command-history>: Add reference to
18026 history-length in the doc string.
18027
18028 2007-12-17 Jason Rumney <jasonr@gnu.org>
18029
18030 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18031 before passing as wParam.
18032
18033 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18034
18035 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18036 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18037 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18038 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18039 as number.
18040 (Fdbus_call_method): Fix docstring.
18041
18042 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18043
18044 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18045 New macros.
18046 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18047 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18048 Simplify.
18049 (xd_signature): New function.
18050 (xd_append_arg): Compute also signatures. Major rewrite.
18051 (xd_retrieve_arg): Make debug messages friendly.
18052 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18053 Check for signatures of arguments.
18054
18055 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18056
18057 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18058 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18059 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18060 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18061 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18062 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18063 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18064 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18065 (xd_retrieve_value): Remove. Functionality included in ...
18066 (xd_append_arg): New function.
18067 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18068
18069 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18070
18071 * dbusbind.c (top): Include <stdio.h>.
18072 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18073 dbus_message_new_method_call and dbus_message_new_signal.
18074 (Fdbus_register_signal): Rename unique_name to uname.
18075 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18076 non-existing unique name. Fix typos in matching rule. Return an
18077 object which is useful in Fdbus_unregister_signal.
18078 (Fdbus_unregister_signal): Reimplementation, in order to remove
18079 only the corresponding entry.
18080 (Vdbus_registered_functions_table): Change the order of entries.
18081 Apply these changes in xd_read_message and Fdbus_register_signal.
18082
18083 2007-12-16 Andreas Schwab <schwab@suse.de>
18084
18085 * fileio.c (Finsert_file_contents): Fix overflow check to not
18086 depend on undefined integer overflow.
18087
18088 2007-12-14 Jason Rumney <jasonr@gnu.org>
18089
18090 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18091 for characters above 127.
18092
18093 2007-12-13 Jason Rumney <jasonr@gnu.org>
18094
18095 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18096 before dereferencing array.
18097 (lookup_vk_code): Remove zero comparison.
18098
18099 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18100
18101 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18102 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18103 Use `unsigned int' instead of `uint'.
18104 (xd_read_message, Fdbus_register_signal): Split expressions into
18105 multiple lines before operators "&&" and "||", according to the
18106 GNU Coding Standards.
18107
18108 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18109
18110 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18111
18112 2007-12-12 Juri Linkov <juri@jurta.org>
18113
18114 * buffer.c (Frename_buffer): In interactive spec replace
18115 `read-buffer' with `read-string' that uses `buffer-name-history'
18116 as history, and the current buffer's name as default.
18117
18118 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18119
18120 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18121 manipulating the backtrace manually.
18122 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18123 (struct backtrace, backtrace_list): Remove.
18124 (command_loop_1): Remove dead var `no_direct'.
18125
18126 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18127 preserve non-built-in buffer-local variables.
18128 (Fkill_all_local_variables): Don't re-create&re-set permanent
18129 buffer-local variables.
18130
18131 2007-12-09 Juri Linkov <juri@jurta.org>
18132
18133 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18134 Lisp code that uses `read-buffer' with current buffer as default.
18135
18136 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18137
18138 * dbusbind.c (xd_read_message): Generate an event for every
18139 registered handler. There might be several handlers registered
18140 for the same signal.
18141 (Fdbus_register_signal): Don't overwrite a registration for the
18142 same signal. Add a new registration if handlers are different.
18143 (Vdbus_registered_functions_table): Rework doc string.
18144
18145 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18146
18147 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18148 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18149 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18150 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18151 Unify argument lists.
18152 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18153 arguments and hash table keys. Use unique name for service.
18154 (Fdbus_unregister_signal): Remove checks.
18155 (Vdbus_registered_functions_table): Fix doc string.
18156
18157 2007-12-05 Magnus Henoch <mange@freemail.hu>
18158
18159 * process.c (make_process): Initialize pty_flag to 0.
18160
18161 2007-12-05 Jason Rumney <jasonr@gnu.org>
18162
18163 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18164 specified XBMs.
18165
18166 2007-12-05 Richard Stallman <rms@gnu.org>
18167
18168 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18169
18170 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18171
18172 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18173 New variable.
18174 (mac_try_close_socket) [MAC_OSX]: New function.
18175 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18176 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18177
18178 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18179 Use mac_try_close_socket.
18180
18181 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18182
18183 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18184 reloc_base.
18185 (copy_dysymtab): Compute relocation base here.
18186 (rebase_reloc_address) [__ppc64__]: New function.
18187 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18188 changed.
18189
18190 2007-12-05 Jason Rumney <jasonr@gnu.org>
18191
18192 * w32proc.c (sys_spawnve): Quote args with wildcards.
18193
18194 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18195
18196 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18197 __objc_* sections.
18198 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18199
18200 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18201
18202 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18203 Move check for Vdbus_registered_functions_table to
18204 xd_read_queued_messages.
18205 (xd_read_queued_messages): Protect xd_read_message calls by
18206 internal_condition_case_1.
18207
18208 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18209
18210 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18211 Qdbus_system_bus and Qdbus_session_bus, respectively.
18212 (Vdbus_intern_symbols): Remove.
18213 (Vdbus_registered_functions_table): New hash table.
18214 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18215 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18216 Rewrite in order to manage registered functions by hash table
18217 Vdbus_registered_functions_table.
18218
18219 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18220
18221 * xterm.c: Update URL to Window Manager Specification in comment.
18222
18223 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18224
18225 * config.in (HAVE_DBUS): Add.
18226
18227 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18228 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18229 (obj): Add $(DBUS_OBJ).
18230 (LIBES): Add $(DBUS_LIBS).
18231 (dbusbind.o): New target.
18232
18233 * dbusbind.c: New file.
18234
18235 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18236
18237 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18238 (Qdbus_event): New Lisp symbol.
18239 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18240 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18241 (keys_of_keyboard): Define dbus-event.
18242
18243 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18244
18245 2007-12-01 Richard Stallman <rms@gnu.org>
18246
18247 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18248
18249 2007-11-30 Jason Rumney <jasonr@gnu.org>
18250
18251 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18252 (w32con_reset_terminal_modes): Clear screen buffer.
18253 (w32_face_attributes): Don't use color indexes that are out of range.
18254 Only reverse the default colors.
18255
18256 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18257 WINDOWSNT.
18258
18259 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18260
18261 2007-11-29 Jason Rumney <jasonr@gnu.org>
18262
18263 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18264 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18265 if the terminal colors are initialized.
18266 (unspecified_fg, unspecified_bg): Remove unused declarations.
18267
18268 2007-11-29 Andreas Schwab <schwab@suse.de>
18269
18270 * keyboard.c (apply_modifiers): Fix typo.
18271
18272 2007-11-29 Richard Stallman <rms@gnu.org>
18273
18274 * keymap.c (Fcurrent_local_map): Doc fix.
18275
18276 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18277
18278 * s/gnu-kfreebsd.h: New file.
18279
18280 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18281
18282 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18283 Don't cast redundantly.
18284
18285 * keyboard.c (KEY_TO_CHAR): New macro.
18286 (parse_modifiers, apply_modifiers): Accept integer arguments.
18287 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18288 for chars and symbol keys.
18289 After doing such remapping, apply function-key-map again.
18290
18291 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18292
18293 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18294 compiled anymore.
18295
18296 2007-11-26 Andreas Schwab <schwab@suse.de>
18297
18298 * process.c (list_processes_1): Fix indentation level of the
18299 command column.
18300
18301 2007-11-23 Andreas Schwab <schwab@suse.de>
18302
18303 * editfns.c (Fformat): Handle %c specially since it requires the
18304 argument to be of type int.
18305
18306 2007-11-23 Markus Triska <markus.triska@gmx.at>
18307
18308 * emacs.c (main): Call init_editfns before init_process, since
18309 init_process sets Vprocess_connection_type depending on OS release.
18310
18311 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18312
18313 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18314 (find_symbol_value): Use do_symval_forwarding.
18315
18316 * data.c (set_internal): Set the value in the `cons-cell' (for
18317 Buffer_Local_values) not only for frame-local variables.
18318
18319 2007-11-22 Andreas Schwab <schwab@suse.de>
18320
18321 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18322 values to sprintf.
18323 * keymap.c (Fsingle_key_description): Likewise.
18324 * print.c (print_object): Likewise.
18325
18326 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18327
18328 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18329 file for image is nil.
18330
18331 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18332
18333 * term.c: Include stdarg.h.
18334 (fatal): Implement using varargs.
18335 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18336
18337 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18338
18339 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18340 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18341 Update call to buffer_slot_type_mismatch.
18342 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18343 (buffer_slot_type_mismatch): Update.
18344 * buffer.c (buffer_local_types): Remove.
18345 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18346 (defvar_per_buffer): Set the type in the buffer_objfwd.
18347
18348 2007-11-21 Jason Rumney <jasonr@gnu.org>
18349
18350 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18351 CreateFileMapping returns NULL on failure.
18352
18353 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18354
18355 * search.c (Fset_match_data): Remove the `evaporate' feature.
18356 (unwind_set_match_data): Don't use the `evaporate' feature.
18357
18358 2007-11-21 Jason Rumney <jasonr@gnu.org>
18359
18360 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18361
18362 * w32console.c (w32con_write_glyphs): Remove unused variables.
18363
18364 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18365
18366 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18367
18368 * s/darwin.h (MULTI_KBOARD): Remove.
18369
18370 * macfns.c (x_create_tip_frame, Fx_create_frame)
18371 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18372
18373 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18374
18375 * buffer.c (Fbuffer_local_value): Remove redundant test.
18376 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18377 than in `current-buffer' to match the comment.
18378 Do the swap using swap_in_global_binding.
18379
18380 * data.c (store_symval_forwarding, set_internal):
18381 * eval.c (specbind): Remove dead code.
18382
18383 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18384 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18385 Since we do not want to see internal Lisp_*fwd objects here.
18386
18387 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18388
18389 * sysdep.c (init_system_name): Use getaddrinfo if available.
18390
18391 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18392 (x_scroll_bar_note_movement): start, end, with, height in struct
18393 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18394
18395 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18396
18397 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18398
18399 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18400
18401 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18402 This undoes Richard's change of 14-Oct-2002.
18403
18404 * alloc.c (allocate_other_vector):
18405 * lisp.h (allocate_other_vector): Remove.
18406
18407 * window.c (struct save_window_data): Move non-lisp data to the end
18408 and make it `int' rather than Lisp_Object.
18409 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18410 Done wrap/unwrap integer values.
18411 (Fset_window_configuration, compare_window_configurations):
18412 Update use of fields to their new types.
18413
18414 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18415 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18416 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18417 (SET_SCROLL_BAR_X_WINDOW): Remove.
18418 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18419 Access the new x_window field directly.
18420 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18421 Don't wrap/unwrap integers into Lisp_Objects.
18422 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18423 (x_scroll_bar_report_motion):
18424 Don't wrap/unwrap integers into Lisp_Objects.
18425 (x_term_init): Use SDATA.
18426 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18427 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18428 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18429 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18430 * xfns.c (x_set_background_color):
18431 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18432 Access the new x_window field directly.
18433
18434 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18435 (allocate_pseudovector): Make non-static.
18436
18437 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18438 (allocate_pseudovector): Declare.
18439 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18440
18441 2007-11-15 Andreas Schwab <schwab@suse.de>
18442
18443 * editfns.c (Fformat): Correctly format EMACS_INT values.
18444 Also take precision into account when formatting an integer.
18445
18446 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18447
18448 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18449
18450 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18451 (syms_of_keyboard): Defsubr it.
18452
18453 * data.c (swap_in_global_binding): Fix longstanding bug where
18454 store_symval_forwarding was not called with the right second argument,
18455 thus causing objfwd-ing from being dropped.
18456
18457 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18458
18459 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18460 (Fx_display_pixel_height, Fx_display_planes)
18461 (Fx_display_color_cells, Fx_server_max_request_size)
18462 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18463 (Fx_display_visual_class, Fx_display_save_under):
18464 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18465 (Fx_display_pixel_height, Fx_display_planes)
18466 (Fx_display_color_cells, Fx_server_max_request_size)
18467 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18468 (Fx_display_mm_height, Fx_display_mm_width)
18469 (Fx_display_backing_store, Fx_display_visual_class)
18470 (Fw32_select_font, Fx_display_save_under):
18471 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18472 (Fx_display_pixel_height, Fx_display_planes)
18473 (Fx_display_color_cells, Fx_server_max_request_size)
18474 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18475 (Fx_display_save_under): Fix typos in docstrings.
18476
18477 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
18478
18479 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18480 corresponding to deleted entries; they are an implementation detail.
18481 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18482 Remove variables.
18483 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18484 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18485 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18486 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18487 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18488 (Fw32_define_rgb_color, Fw32_load_color_file)
18489 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18490 Fix typos in docstrings.
18491 (Fx_server_version): Reflow docstring.
18492 (Fw32_shell_execute): Doc fixes.
18493
18494 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
18495
18496 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18497 if w32_parse_hot_key returned nil.
18498
18499 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18500
18501 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18502
18503 2007-11-09 Jason Rumney <jasonr@gnu.org>
18504
18505 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18506
18507 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18508
18509 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18510 Remove W32_SCROLL_BAR_CLICK_EVENT.
18511
18512 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18513 Add MULTIMEDIA_KEY_EVENT.
18514
18515 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18516 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18517 (make_lispy_event) [WINDOWSNT]: Use it to translate
18518 MULTIMEDIA_KEY_EVENT.
18519
18520 * w32term.h (WM_APPCOMMAND): Define if not already.
18521 (GET_APPCOMMAND_LPARAM): Likewise.
18522
18523 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18524 WM_APPCOMMAND.
18525
18526 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18527 (syms_of_w32fns): Export and initialize it.
18528 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18529
18530 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
18531
18532 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18533 twice.
18534
18535 * xdisp.c (handle_face_prop): Fix last change.
18536
18537 2007-11-09 Richard Stallman <rms@gnu.org>
18538
18539 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18540 not just for after-strings and before-strings.
18541 Call face_for_overlay_string and pass the overlay to it.
18542 (handle_display_prop): Determine whether property came from an overlay.
18543 Pass OVERLAY arg to handle_single_display_spec.
18544 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18545 (load_overlay_strings): Fill in it->string_overlays.
18546 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18547
18548 * xfaces.c (face_for_overlay_string): Function renamed from
18549 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18550
18551 * dispextern.h (struct it): New elt string_overlays.
18552 New elt from_overlay, also in stack.
18553 Rearrange a few elements.
18554 (face_for_overlay_string): Decl renamed from
18555 face_at_buffer_position_no_overlays, and add argument.
18556
18557 2007-11-09 Richard Stallman <rms@gnu.org>
18558
18559 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18560 to get the base face for an overlay string.
18561
18562 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18563
18564 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18565
18566 * xdisp.c (handle_stop): Move some code out of loop.
18567
18568 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18569
18570 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18571 Fix conversion from Lisp object to ATSUFontID.
18572
18573 2007-11-09 Jason Rumney <jasonr@gnu.org>
18574
18575 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18576
18577 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18578
18579 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18580 Don't assume regions are aligned to page boundary.
18581 (print_load_command_name): Add LC_UUID if defined.
18582
18583 2007-11-09 Richard Stallman <rms@gnu.org>
18584
18585 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18586
18587 2007-11-07 Jason Rumney <jasonr@gnu.org>
18588
18589 * s/windows95.h: Remove.
18590
18591 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18592
18593 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18594 abort with a message on unhandled store_type values.
18595
18596 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18597
18598 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18599 Remove HAVE_X11R5 and HAVE_X11R4.
18600
18601 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18602
18603 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18604
18605 2007-11-01 Johan Bockgård <bojohan@gnu.org>
18606
18607 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18608 Don't set s->stippled_p here, since it has already been set by
18609 x_set_glyph_string_gc from x_draw_glyph_string.
18610
18611 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18612
18613 * sunfns.c: Remove file.
18614
18615 * m/sun386.h:
18616 * m/sun2.h:
18617 * m/sparc.h: Remove Sun windows code.
18618
18619 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18620
18621 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18622 (init_keyboard): Set current_kboard's window-system to nil.
18623 (tty_read_avail_input): Typo.
18624 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18625
18626 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18627
18628 * s/usg5-4.h:
18629 * s/usg5-3.h:
18630 * s/ptx.h:
18631 * m/is386.h:
18632 * m/ibmps2-aix.h:
18633 * Makefile.in: Remove all mentions of X10.
18634
18635 * dispnew.c (syms_of_display): Don't mention version 10.
18636
18637 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
18638
18639 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18640 ($(BLD)/abbrev.$(O)): Remove.
18641
18642 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18643
18644 Rewrite abbrev.c in Elisp.
18645 * image.c (Qcount): Don't declare as extern.
18646 (syms_of_image): Initialize and staticpro `Qcount'.
18647 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18648 * emacs.c (main): Don't call syms_of_abbrev.
18649 * Makefile.in (obj): Remove abbrev.o.
18650 (abbrev.o): Remove.
18651 * abbrev.c: Remove.
18652
18653 2007-10-26 Martin Rudalics <rudalics@gmx.at>
18654
18655 * window.c (window_min_size_2): Don't count header-line.
18656
18657 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18658
18659 * frame.h (struct frame): Move all bit fields after the first bit
18660 field to take advantage of the available space. Group all the
18661 chars together to reduce wasted space due to padding.
18662
18663 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
18664
18665 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18666
18667 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18668 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18669 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18670 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18671 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18672 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18673 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18674 (last_marked, mark_object_loop_halt): Make static.
18675
18676 * frame.c (syms_of_frame) <delete-frame-functions>:
18677 Fix typo in docstring.
18678
18679 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
18680
18681 * w32.c (init_environment): Fix tiny memory leak.
18682 (w32_get_resource): Remove unused variable `ok'.
18683
18684 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18685
18686 Make `window-system' into a keyboard-local variable (rather than
18687 frame-local as done originally by multi-tty).
18688
18689 * keyboard.h (struct kboard): Add Vwindow_system.
18690 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18691 (mark_kboards): Mark Vwindow_system.
18692
18693 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18694 (init_display): Don't set the obsolete `window-system' frame-param.
18695
18696 * xterm.c (x_term_init):
18697 * w32term.c (w32_create_terminal):
18698 * term.c (init_tty): Set Vwindow_system.
18699 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18700 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18701
18702 * xfns.c (Fx_create_frame, x_create_tip_frame):
18703 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18704 * macfns.c (Fx_create_frame):
18705 Don't set the obsolete `window-system' frame-param.
18706
18707 * frame.h (Qwindow_system): Remove.
18708 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18709 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18710
18711 2007-10-24 Richard Stallman <rms@gnu.org>
18712
18713 * frame.c (x_figure_window_size): For fullscreen case,
18714 set USPosition | PPosition without clobbering rest of window_prompting.
18715
18716 * keyboard.c (Fcurrent_idle_time): Doc fix.
18717
18718 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18719
18720 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18721
18722 * process.c (unwind_request_sigio): Only define if __ultrix__.
18723
18724 * callproc.c (child_setup): Remove spurious *.
18725
18726 * lisp.h (Fget_text_property): Declare.
18727 (have_menus_p): Declare it here rather than in sys-dep header files.
18728 * macterm.h (have_menus_p):
18729 * msdos.h (have_menus_p):
18730 * xterm.h (have_menus_p): Remove.
18731
18732 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18733 (Fmake_variable_frame_local): Just check the variable's const-ness
18734 rather than checking nil or t.
18735
18736 2007-10-22 Jason Rumney <jasonr@gnu.org>
18737
18738 * w32fns.c: Include math.h.
18739 (w32_abort): Declaration moved to nt/config.nt.
18740
18741 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18742 (abort): Redefinition moved to nt/config.nt.
18743
18744 * m/windowsnt.h: Remove.
18745
18746 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
18747
18748 * emacs.c (Fdump_emacs): Fix typo in message.
18749 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18750 <installation-directory>: Reflow docstring.
18751
18752 2007-10-22 Juri Linkov <juri@jurta.org>
18753
18754 * minibuf.c: Allow minibuffer default to be a list of default values.
18755 With empty input use the first element of this list as returned default.
18756 (string_to_object)
18757 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18758 (read_minibuf): If defalt is cons, set histstring to its car.
18759 (Fread_string): If default_value is cons, set val to its car.
18760 (Fread_buffer): If def is cons, use its car.
18761 (Fcompleting_read): If defalt is cons, set val to its car.
18762
18763 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
18764
18765 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18766
18767 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
18768
18769 * doc.c (Fdocumentation): Check for advice in all cases.
18770
18771 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
18772
18773 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18774
18775 2007-10-19 Richard Stallman <rms@gnu.org>
18776
18777 * doc.c (Fdocumentation): Check for and handle an advised function.
18778
18779 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
18780
18781 * process.c (Fset_process_filter): Doc fix.
18782
18783 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18784
18785 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18786 which caused key-translation-map to applied repeatedly (thus breaking
18787 double-mode).
18788
18789 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18790
18791 * xselect.c (x_own_selection, x_handle_selection_clear)
18792 (x_clear_frame_selections):
18793 * w32menu.c (list_of_panes, list_of_items):
18794 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18795 * textprop.c (validate_plist, interval_has_all_properties)
18796 (interval_has_some_properties, interval_has_some_properties_list)
18797 (add_properties, text_property_list):
18798 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18799 * minibuf.c (Fassoc_string):
18800 * macselect.c (x_own_selection, x_clear_frame_selections)
18801 (Fx_disown_selection_internal):
18802 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18803 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18804
18805 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
18806
18807 * process.c: Link to libs for calling res_init() if available.
18808 (Fmake_network_process): Call res_init() before getaddrinfo or
18809 gethostbyname, if possible.
18810
18811 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18812
18813 * lread.c (read1): Set pvectype for char_tables.
18814
18815 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18816 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18817 Add type checks.
18818 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18819
18820 * alloc.c (free_misc): Use XMISCTYPE.
18821 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18822
18823 2007-10-17 Glenn Morris <rgm@gnu.org>
18824
18825 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18826 (syms_of_minibuf): Add Qcompletion_ignore_case.
18827 * dired.c (Qcompletion_ignore_case): Change to external.
18828 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18829 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18830 (Fread_file_name): Use it rather than intern'ing.
18831
18832 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18833 (Fread_coding_system): Ignore case of user input.
18834
18835 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18836
18837 * xdisp.c (handle_display_prop): Ignore display specs after
18838 replacing one when string text is being replaced.
18839 (handle_single_display_spec): Pretend as if characters with display
18840 property haven't been consumed only when buffer text is being replaced.
18841
18842 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18843
18844 * xfns.c (Fx_create_frame, Fx_display_list):
18845 * window.c (window_fixed_size_p, enlarge_window)
18846 (shrink_window_lowest_first):
18847 * macterm.c (init_font_name_table):
18848 * macfns.c (Fx_create_frame, Fx_display_list):
18849 * lread.c (close_load_descs):
18850 * keyboard.c (read_char_x_menu_prompt):
18851 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18852 * coding.c (code_convert_region_unwind): Test the type of an object
18853 rather than just !NILP before extracting data from it.
18854
18855 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18856
18857 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18858 (XMISCANY): New macro.
18859 (XMISCTYPE): Use it.
18860 (struct Lisp_Misc_Any): New type.
18861 (union Lisp_Misc): Use it.
18862 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18863 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18864 (find_symbol_value, set_internal, default_value, Fset_default)
18865 (Fmake_variable_buffer_local, Fmake_local_variable)
18866 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18867 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18868 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18869 * alloc.c (allocate_buffer): Set the size and tag.
18870 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18871 Use XMISCANY.
18872 (die): Follow the GNU convention for error messages.
18873 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18874 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18875 tag any more.
18876 (set_buffer_internal_1):
18877 * frame.c (store_frame_param):
18878 * eval.c (specbind):
18879 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18880
18881 * doc.c (Fsnarf_documentation): Simplify.
18882
18883 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18884
18885 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18886 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18887
18888 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18889
18890 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18891
18892 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
18893
18894 * eval.c (do_autoload): Don't save autoloads.
18895
18896 * data.c (Ffset): Save autoload of the function being set.
18897
18898 2007-10-07 John Paul Wallington <jpw@pobox.com>
18899
18900 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18901 parameter before setting up faces.
18902
18903 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18904
18905 * ccl.c (Fregister_code_conversion_map):
18906 * keyboard.c (append_tool_bar_item): Reformat last change.
18907
18908 * lisp.h (eabs): Rename from `abs'. All callers changed.
18909
18910 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18911
18912 * buffer.c (add_overlay_mod_hooklist):
18913 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18914 * fontset.c (make_fontset):
18915 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18916 (append_tool_bar_item):
18917 * macmenu.c (grow_menu_items):
18918 * w32menu.c (grow_menu_items):
18919 * xmenu.c (grow_menu_items): Use larger_vector.
18920
18921 2007-10-13 Eli Zaretskii <eliz@gnu.org>
18922
18923 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18924 selected frame'' on MSDOS).
18925
18926 2007-10-12 Martin Rudalics <rudalics@gmx.at>
18927
18928 * frame.c (Qexplicit_name): New variable.
18929 (x_report_frame_params): Report it in parameter alist.
18930 (syms_of_frame): Intern and staticpro it.
18931
18932 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18933
18934 * macfns.c (x_create_tip_frame): Set terminal for frame.
18935
18936 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18937
18938 * frame.c (Qenvironment): Remove.
18939 (syms_of_frame) <Qenvironment>: Don't initialize.
18940 (Fdelete_frame): Don't treat the `environment' param specially.
18941 * frame.h (Qenvironment): Don't declare.
18942 * callproc.c (set_initial_environment): Don't set unused frame param.
18943
18944 * frame.c (Fframe_with_environment): Remove.
18945 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18946
18947 * lisp.h (Fframe_with_environment): Don't declare.
18948
18949 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
18950
18951 * indent.c (indent_tabs_mode, last_known_column)
18952 (last_known_column_modified): Make static.
18953 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18954
18955 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18956
18957 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18958
18959 2007-10-09 Jason Rumney <jasonr@gnu.org>
18960
18961 * w32term.c (x_set_window_size): Disable code that attempts to tell
18962 Lisp code about a size change before it actually happens.
18963
18964 2007-10-09 Richard Stallman <rms@gnu.org>
18965
18966 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18967 return HANDLED_RETURN.
18968
18969 2007-10-08 Martin Rudalics <rudalics@gmx.at>
18970
18971 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18972 when there's an unread command event.
18973
18974 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18975 window autoselection act appropriately when leaving selected frame.
18976 (syms_of_frame): Initialize focus_follows_mouse.
18977 * frame.h (focus_follows_mouse): Extern it.
18978 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18979 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18980 * msdos.c (dos_rawgetc): Likewise.
18981 * w32term.c (w32_read_socket): Likewise.
18982 * xterm.c (handle_one_xevent): Likewise.
18983 * xdisp.c (syms_of_xdisp): In doc-string of
18984 mouse-autoselect-window mention focus-follows-mouse.
18985
18986 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18987
18988 * macterm.c (mac_load_query_font): Fix missing return value.
18989 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18990 Add BLOCK_INPUT.
18991
18992 2007-10-08 Richard Stallman <rms@gnu.org>
18993
18994 * xdisp.c (get_window_cursor_type): Implement documented behavior
18995 for cursor-in-non-selected-windows = t.
18996
18997 2007-10-08 Jason Rumney <jasonr@gnu.org>
18998
18999 * w32.c (w32_get_resource): Always close registry keys.
19000
19001 2007-10-08 Jason Rumney <jasonr@gnu.org>
19002
19003 * makefile.w32-in (LIBS): Add COMCTL32.
19004
19005 * w32fns.c (globals_of_w32fns): Init common controls.
19006
19007 2007-10-08 Richard Stallman <rms@gnu.org>
19008
19009 * image.c (our_memory_buffer): Rename from omfib_buffer.
19010
19011 2007-10-08 Richard Stallman <rms@gnu.org>
19012
19013 * buffer.c (Foverlays_at): Doc fix.
19014
19015 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19016
19017 * fns.c (Fplist_put): Preserve uneven tail data.
19018
19019 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19020
19021 * termhooks.h (enum event_kind): Remove trailing comma.
19022
19023 * frame.h (enum): Remove trailing comma.
19024
19025 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19026
19027 * w32proc.c (delete_child): Don't terminate threads of zombies.
19028
19029 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19030
19031 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19032
19033 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19034 last-repeatable-command.
19035 (init_kboard): Initialize Vlast_repeatable_command.
19036 (command_loop_1): Set it to real_this_command unless that was
19037 bound to an input event.
19038 (mark_kboards): Mark it.
19039
19040 2007-10-08 Richard Stallman <rms@gnu.org>
19041
19042 * eval.c (condition-case): Doc fix.
19043
19044 2007-10-08 Masatake YAMATO <jet@gyve.org>
19045
19046 * xfaces.c (tty_supports_face_attributes_p): Fix code
19047 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19048 was copied and not edited.
19049
19050 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19051
19052 Add new `input-decode-map' keymap and use it for terminal
19053 escape sequences.
19054 * keyboard.h (struct kboard): Add Vinput_decode_map.
19055 Remove Vlocal_key_translation_map.
19056 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19057 (init_kboard): Init input-decode-map.
19058 Replace local-key-translation-map back with key-translation-map.
19059 (syms_of_keyboard): Declare input-decode-map.
19060 Remove local-key-translation-map. Update docstrings.
19061 (mark_kboards): Mark Vinput_decode_map.
19062 Don't mark Vlocal_key_translation_map.
19063 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19064 Replace local-key-translation-map back with key-translation-map.
19065 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19066 Bind in input-decode-map rather than function-key-map.
19067
19068 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19069 This was made redundant by the previous introduction of XSETPVECTYPE.
19070
19071 2007-10-09 Richard Stallman <rms@gnu.org>
19072
19073 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19074
19075 2007-09-29 Richard Stallman <rms@gnu.org>
19076
19077 * eval.c (internal_condition_case_2, internal_condition_case_1)
19078 (internal_condition_case): Reenable abort if x_catching_errors ()
19079 to see if that really happens and why.
19080
19081 2007-10-06 Andreas Schwab <schwab@suse.de>
19082
19083 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19084
19085 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19086
19087 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19088
19089 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19092
19093 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19094
19095 * window.h (struct window):
19096 * window.c (struct save_window_data, struct saved_window):
19097 * termhooks.h (struct terminal):
19098 * process.h (struct Lisp_Process):
19099 * frame.h (struct frame):
19100 * buffer.h (struct buffer):
19101 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19102 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19103 The size field of (pseudo)vectors is now unsigned.
19104 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19105
19106 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19107 Turn `count' into an integer.
19108
19109 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19110 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19111 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19112 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19113 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19114
19115 * alloc.c (allocate_pseudovector): New fun.
19116 (ALLOCATE_PSEUDOVECTOR): New macro.
19117 (allocate_window, allocate_terminal, allocate_frame)
19118 (allocate_process): Use it.
19119 (mark_vectorlike): New function.
19120 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19121 (mark_terminals): Use it.
19122 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19123 (Fmake_byte_code): Use XSETPVECTYPE.
19124
19125 * frame.c (Fframe_parameters): Minor simplification.
19126
19127 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19128
19129 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19130
19131 * buffer.c (Fget_buffer_create, init_buffer_once):
19132 * lread.c (defsubr):
19133 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19134
19135 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19136 defined differently in the m/*.h files.
19137 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19138 (XSETPVECTYPE): New macro.
19139 (XSETPSEUDOVECTOR): Use it.
19140
19141 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19142 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19143
19144 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19145 * lread.c (defvar_per_buffer):
19146 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19147
19148 * window.c (candidate_window_p): Only consider as visible frames that
19149 are on the same terminal.
19150
19151 * m/ibms390x.h (MARKBIT): Remove unused macro.
19152
19153 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19154
19155 * lread.c (Fload): Fix typo in docstring.
19156
19157 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19158
19159 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19160 of a non-zero value can't yield zero.
19161
19162 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19163
19164 * term.c (term_clear_mouse_face, term_mouse_highlight)
19165 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19166
19167 * print.c (safe_debug_print): Use XHASH.
19168
19169 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19170 Lisp elements such as tags.
19171 (XHASH): New macro.
19172 (EQ): Use it.
19173 (SREF, SSET, STRING_COPYIN): Use SDATA.
19174 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19175
19176 * alloc.c (mark_terminal): Remove left-over declaration.
19177 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19178 (allocate_vectorlike): Remove type argument. Adjust callers.
19179 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19180 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19181
19182 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19183 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19184 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19185 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19186 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19187 Use them.
19188
19189 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19190 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19191 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19192
19193 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19194
19195 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19196 loaded by default.
19197
19198 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19199
19200 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19201 on this tty.
19202 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19203
19204 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19205 Update all users.
19206 (handle_one_term_event): Use Gpm_DrawPointer.
19207 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19208 Signal errors instead of returning nil. Always return nil.
19209 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19210 Make it a noop if gpm-mouse was not activated.
19211 (syms_of_term): Update names.
19212
19213 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19214
19215 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19216 (init_sys_modes): Check that gpm_tty is the current tty.
19217
19218 * alloc.c (allocate_terminal): Set the vector size to only count the
19219 lisp fields. Initialize those to nil.
19220 (mark_object): Don't treat terminals specially.
19221 (mark_terminal): Remove.
19222 (mark_terminals): Use mark_object instead.
19223
19224 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19225 the GC to the beginning.
19226
19227 * indent.h:
19228 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19229
19230 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19231
19232 2007-09-25 Jason Rumney <jasonr@gnu.org>
19233
19234 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19235
19236 * w32console.c (create_w32cons_output): Remove.
19237
19238 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19239
19240 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19241 (reset_sys_modes): Use reset_terminal_modes_hook.
19242
19243 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19244
19245 * eval.c (do_autoload): Don't output any message.
19246
19247 2007-09-24 Juri Linkov <juri@jurta.org>
19248
19249 * emacs.c (standard_args): Change priority of "--no-splash"
19250 from 40 to 3. Add "--no-desktop" with the same priority.
19251
19252 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19253
19254 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19255 and optimize the case where they are all 1.
19256
19257 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19258
19259 * lisp.h (abs): Define if not defined.
19260 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19261 Don't define `abs', since it's defined in lisp.h.
19262
19263 2007-09-22 Eli Zaretskii <eliz@gnu.org>
19264
19265 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19266 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19267 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19268 (init_tty): Use DEV_TTY instead of "/dev/tty".
19269 [WINDOWSNT]: No need to protect from NAME arg being null.
19270
19271 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19272
19273 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19274 up the tty state.
19275
19276 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19277
19278 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19279 (gpm_tty): Change its type.
19280 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19281 (gpm_tty): Change its type and initialize it.
19282 (Fterm_open_connection): Check the frame is indeed a tty.
19283 Use the new gpm_tty.
19284 (Fterm_close_connection): Use the new gpm_tty.
19285 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19286 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19287
19288 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
19289
19290 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19291 underline_color, to draw strike-through.
19292
19293 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19294
19295 * lisp.h (allocate_terminal): Declare.
19296
19297 * window.c (candidate_window_p): Consider frames that are being placed
19298 by the user as somewhere between visible and iconified.
19299 (window_loop): Prefer windows on the current frame.
19300 (Fselect_window): Move the use of select-frame to the beginning so we
19301 can just delegate all the work (it'll call us back anyway).
19302
19303 * frame.c (Qdisplay_environment_variable):
19304 * frame.h (Qdisplay_environment_variable): Delete.
19305
19306 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19307 of the first arg, since that value may be a union.
19308
19309 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19310 parameter rather than Qdisplay_environment_variable. If all else
19311 fails, look for DISPLAY in initial-environment.
19312
19313 2007-09-21 Glenn Morris <rgm@gnu.org>
19314
19315 * Makefile.in (emacstool): Remove target.
19316 (lisp, shortlisp): Remove termdev.elc.
19317
19318 2007-09-21 Markus Triska <markus.triska@gmx.at>
19319
19320 * xterm.c (x_delete_display): Compile session management conditionally.
19321
19322 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19323
19324 * callproc.c (getenv_internal_1): New function.
19325 (getenv_internal): Use it.
19326 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19327
19328 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19329 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19330 (Fset_terminal_parameter): Work with dead terminals as well.
19331 (Fmodify_terminal_parameters): Remove.
19332
19333 * terminal.c (get_terminal): Handle terminals.
19334 Make sure the terminal returned is live.
19335 (create_terminal): Use allocate_terminal.
19336 (mark_terminals): Move to alloc.c.
19337 (delete_terminal): Use terminal->name as liveness status.
19338 NULL out fields after freeing their contents.
19339 Don't deallocate the object.
19340 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19341 rather than an int.
19342 (Fterminal_live_p): Accept non-integer arguments.
19343 (Fterminal_list): Return terminal objects rather than an ints.
19344
19345 * alloc.c (enum mem_type): New member for `terminal' objects.
19346 (allocate_terminal): New function.
19347 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19348 Handle terminals.
19349 (mark_terminal): New fun.
19350 (mark_terminals): Move from terminal.c.
19351
19352 * term.c (get_tty_terminal): Don't treat output_initial specially.
19353 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19354 (delete_tty): Use terminal->name as liveness status.
19355
19356 * termhooks.h (struct terminal): Make it into a pseudovector.
19357 Remove `deleted' replaced by checking `name's nullness.
19358
19359 * print.c (print_object): Handle terminals.
19360
19361 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19362 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19363
19364 * frame.c (make_terminal_frame):
19365 * keyboard.c (tty_read_avail_input):
19366 * w32term.c (x_delete_terminal):
19367 * xfns.c (Fx_create_frame, x_create_tip_frame):
19368 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19369
19370 2007-09-20 Glenn Morris <rgm@gnu.org>
19371
19372 * process.c (Fmake_network_process): Doc fix.
19373
19374 2007-09-19 Jason Rumney <jasonr@gnu.org>
19375
19376 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19377
19378 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19379
19380 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19381 Fix a C warning regarding variable constness.
19382
19383 * xterm.c (handle_one_xevent): Fix a C warning.
19384
19385 2007-09-18 Jason Rumney <jasonr@gnu.org>
19386
19387 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19388
19389 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19390
19391 * gtkutil.c (gdpy_def): New variable.
19392 (xg_initialize): Initialize gdpy_def.
19393 (xg_display_close): If no other display exists, set gdpy_def to a
19394 new connection.
19395
19396 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19397
19398 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19399 when we have no file name for the icon.
19400 (xg_tool_bar_expose_callback): Remove.
19401 (xg_create_tool_bar): Don't connect expose signal to
19402 xg_tool_bar_expose_callback.
19403 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19404
19405 2007-09-16 Andreas Schwab <schwab@suse.de>
19406
19407 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19408 values instead of zapping them.
19409
19410 2007-09-14 Glenn Morris <rgm@gnu.org>
19411
19412 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19413 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19414 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19415 scope and rename to omfib_buffer for clarity.
19416 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19417
19418 2007-09-14 Kenichi Handa <handa@m17n.org>
19419
19420 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19421
19422 2007-09-13 Jason Rumney <jasonr@gnu.org>
19423
19424 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19425
19426 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19427
19428 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19429 (mac_term_init): Call here instead, passing rif.
19430
19431 2007-09-13 Glenn Morris <rgm@gnu.org>
19432
19433 * s/hpux.h: No longer define `static' as nothing.
19434
19435 2007-09-13 Johan Bockgård <bojohan@gnu.org>
19436
19437 * callint.c (Fcall_interactively): Remove unused var `fun'.
19438
19439 2007-09-12 Romain Francoise <romain@orebokech.com>
19440
19441 * window.c (prefer_window_split_horizontally, display_buffer):
19442 Revert 2007-09-08 change.
19443
19444 2007-09-12 Glenn Morris <rgm@gnu.org>
19445
19446 * alloca.c: Remove file.
19447 * Makefile.in (alloca): Do not undef.
19448 (allocaobj, alloca.o): Remove.
19449 (otherobj): Remove allocaobj.
19450 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19451 * regex.c (C_ALLOCA): Remove all references and code that was only
19452 used when this was defined.
19453 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19454 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19455 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19456
19457 * Makefile.in (SOURCES, unlock, relock): Delete.
19458
19459 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19460 (menu_grab_callback): All uses changed.
19461
19462 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19463 (x_reply_selection_request): All uses changed.
19464
19465 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19466
19467 * lread.c (load_warn_old_style_backquotes): Change message to look
19468 better when it appears in the middle of byte-compiler messages.
19469
19470 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19471
19472 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19473
19474 * xterm.c (x_create_terminal): Add comment.
19475
19476 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19477
19478 2007-09-10 Richard Stallman <rms@gnu.org>
19479
19480 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19481
19482 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19483
19484 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19485 (DEFUN): Document `intspec', use it instead of `prompt'.
19486
19487 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19488
19489 * data.c (Finteractive_form): If the interactive specification starts
19490 with a `(', use it as a Lisp form.
19491
19492 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19493 name and file modes.
19494
19495 * callint.c (Fcall_interactively): Comment fixes.
19496
19497 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19498
19499 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19500 and compiled functions.
19501
19502 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19503
19504 * window.c (prefer_window_split_horizontally): New variable.
19505 (display_buffer): Consider splitting window horizontally depending
19506 on prefer_window_split_horizontally.
19507
19508 2007-09-08 Eli Zaretskii <eliz@gnu.org>
19509
19510 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19511
19512 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19513
19514 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19515
19516 * frame.c (x_set_frame_parameters): Check number is positive before
19517 using XFASTINT.
19518
19519 * window.c (freeze_window_start): Don't presume selected_window holds
19520 a window object.
19521 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19522
19523 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19524
19525 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19526
19527 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19528
19529 * window.c (Vsplit_window_preferred_function): New var.
19530 (Fdisplay_buffer): Use it.
19531 (syms_of_window): Export, and initialize it.
19532
19533 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19534
19535 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19536
19537 2007-09-06 Glenn Morris <rgm@gnu.org>
19538
19539 * gtkutil.c (menu_grab_callback) <cnt>:
19540 * xselect.c (x_reply_selection_request) <cnt>: Move static
19541 variable to file scope.
19542
19543 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19544
19545 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19546 consistent values of selected_frame and selected_window.
19547
19548 2007-09-04 Jason Rumney <jasonr@gnu.org>
19549
19550 * w32console.c (initialize_w32_display): Zero unused hooks.
19551
19552 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19553
19554 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19555 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19556
19557 2007-09-04 Jason Rumney <jasonr@gnu.org>
19558
19559 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19560 in w32console.c. Set up input. Remove XXX comments that have been
19561 confirmed as correct.
19562
19563 * s/ms-w32.h (MULTI_KBOARD): Define.
19564
19565 * w32console.c (one_and_only_w32cons): Remove.
19566 (initialize_w32_display): Take terminal argument.
19567
19568 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19569 initialize_w32_display.
19570 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19571
19572 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19573
19574 * keyboard.c (discard_mouse_events): Discard it.
19575 (make_lispy_event): Translate it to a lisp event.
19576 (lispy_wheel_names): Add wheel-left and right events.
19577 (syms_of_keyboard): Enlarge wheel_syms.
19578
19579 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19580 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19581
19582 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19583
19584 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19585 from WM_MOUSEHWHEEL.
19586 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19587
19588 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19589 terminal.
19590
19591 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19592 keyboard for the terminal.
19593
19594 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19595
19596 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19597 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19598 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19599 and resume-tty-function to resume-tty-hook.
19600 (Fsuspend_tty, Fresume_tty): Use new names.
19601
19602 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19603
19604 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19605 if it starts with "n:".
19606
19607 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19608
19609 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19610
19611 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19612
19613 * frame.h:
19614 * frame.c (Qterm_environment_variable): Remove.
19615 (syms_of_frame): Don't init and staticpro it.
19616
19617 * callproc.c (getenv_internal): Remove special case for $TERM.
19618
19619 * callproc.c (Vinitial_environment): New variable.
19620 (set_initial_environment): Initialize it.
19621 (syms_of_callproc): Declare it.
19622 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19623 TERM under which a process runs is never related to the TERM in which
19624 Emacs is running.
19625
19626 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19627
19628 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19629 * s/darwin.h: ... do it here.
19630
19631 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19632
19633 * lisp.h (set_initial_environment): Rename from set_global_environment.
19634
19635 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19636 removed by mistake on the multi-tty branch.
19637
19638 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19639 (Fmodify_frame_parameters): Return a value.
19640
19641 * image.c (png_load): Comment-out var only used in commented-out code.
19642
19643 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19644 before passing it to mark_object.
19645
19646 * xfaces.c (internal_resolve_face_name): Return a value.
19647 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19648
19649 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19650 (x_icon): Comment-out var only used in commented-out code.
19651
19652 2007-08-29 Romain Francoise <romain@orebokech.com>
19653
19654 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19655 QUIT hasn't been provided.
19656
19657 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19658
19659 * callproc.c (child_setup, getenv_internal): Use the
19660 display-environment-variable and term-environment-variable frame params.
19661 (set_initial_environment): Initialise Vprocess_environment.
19662
19663 * config.in: Disable multi-keyboard support on a mac.
19664
19665 * frame.c (Qterm_environment_variable)
19666 (Qdisplay_environment_variable): New variables.
19667 (syms_of_frame): Intern and staticpro them.
19668 (Fmake_terminal_frame): Disable output method test.
19669
19670 * frame.h: Declare them here.
19671
19672 * macfns.c (x_set_mouse_color): Get rif from the frame.
19673 (x_set_tool_bar_lines): Don't use updating_frame.
19674 (mac_window): Add 2 new parameters for consistency with other systems.
19675 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19676 frame parameters following what is done in X11 and w32. Don't use
19677 FRAME_MAC_DISPLAY_INFO.
19678 (Fx_open_connection, start_hourglass): Remove window-system check.
19679 (x_create_tip_frame): Get the keyboard from the terminal.
19680
19681 * macmenu.c: Reorder includes.
19682 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19683
19684 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19685 terminal parameter.
19686 (x_clear_frame): Add a frame parameter.
19687 (note_mouse_movement): Get rif from the frame.
19688 (mac_term_init): Initialize the terminal.
19689 (mac_initialize): Make static and move terminal initialization ...
19690 (mac_create_terminal): ... to this new function.
19691
19692 * macterm.h (struct mac_display_info): Add terminal.
19693 (mac_initialize): Delete declaration.
19694
19695 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19696
19697 * sysdep.c: Comment out text after #endif.
19698
19699 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19700 is defined. Better initialize ttys in windows. Use terminal
19701 specific mouse_position_hook.
19702
19703 * termhooks.h (union display_info): Add mac_display_info.
19704
19705 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19706 Set the default minibuffer frame, window_system and the rest of the
19707 frame parameters following what is done in X11.
19708
19709 * w32term.c (w32_initialize): Make static.
19710
19711 * xselect.c (x_handle_selection_clear): Only access
19712 terminal->kboard when MULTI_KBOARD is defined.
19713
19714 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19715 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19716
19717 2007-08-29 Jason Rumney <jasonr@gnu.org>
19718
19719 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19720 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19721
19722 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19723 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19724
19725 * keyboard.c (restore_kboard_configuration): Only define when
19726 MULTI_KBOARD defined.
19727
19728 * makefile.w32-in: Update dependancies from Makefile.in.
19729 (OBJ1): Add terminal.$(O)
19730
19731 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19732 Don't define function body.
19733 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19734
19735 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19736
19737 * w32.c (request_sigio, unrequest_sigio): Remove.
19738
19739 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19740 (w32con_clear_frame, w32con_clear_end_of_line)
19741 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19742 (w32con_delete_glyphs, w32con_set_terminal_window)
19743 (scroll_line, w32_sys_ring_bell): Add frame arg.
19744 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19745 Add terminal arg.
19746 (PICK_FRAME): Remove.
19747 (w32con_write_glyphs): Use frame specific terminal coding.
19748 (one_and_only_w32cons): New global variable.
19749 (initialize_w32_display): Use it for storing hooks.
19750 (create_w32cons_output): New function.
19751
19752 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19753 arg a frame.
19754
19755 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19756 Set window_system.
19757 (x_set_tool_bar_lines): Don't use updating_frame.
19758 (Fx_create_frame): Set terminal and ref count.
19759 (Fx_open_connection): Remove window-system check.
19760
19761 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19762
19763 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19764 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19765 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19766 Add frame arg.
19767 (x_delete_terminal, w32_create_terminal): New functions.
19768 (w32_term_init): Create a terminal.
19769 (w32_initialize): Move terminal specific initialization to
19770 w32_create_terminal.
19771
19772 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19773 (w32_clear_rect, w32_clear_area): Use background from frame.
19774 (w32_display_info): Add terminal.
19775 (w32_sys_ring_bell, x_delete_display): Declare here.
19776
19777 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19778
19779 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19780
19781 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19782
19783 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19784 Fix get_named_tty calls for the controlling tty.
19785
19786 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19787
19788 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19789
19790 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19791
19792 * term.c (tty_insert_glyphs): Add missing first parameter.
19793
19794 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19795
19796 * buffer.c (Fbuffer_list, Fbury_buffer):
19797 Take frame->buried_buffer_list into account.
19798
19799 * cm.c (current_tty): New variable, for cmputc().
19800 (cmputc): Use it.
19801 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19802 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19803 (cmgoto): Add tty parameter. Pass it on to calccost().
19804 Use emacs_tputs() instead of tputs().
19805
19806 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19807 tputs().
19808 (current_tty): New variable, for cmputc().
19809 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19810
19811 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19812 (internal_condition_case, internal_condition_case_1)
19813 (internal_condition_case_2): Don't abort when x_catching_errors.
19814
19815 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19816 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19817 prevent crashes caused by bogus longjmps in read_char.
19818
19819 * keymap.h (Fset_keymap_parent): Add EXFUN.
19820
19821 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19822 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19823 Remove redundant definition.
19824
19825 * macfns.c (x_set_mouse_color, x_make_gc):
19826 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19827
19828 * w32term.c (x_free_frame_resources):
19829 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19830 (w32_initialize): Use the accessor macros for terminal characteristics.
19831
19832 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19833 Use the accessor macros for terminal characteristics.
19834 * msdos.c (internal_terminal_init): Use the accessor macros for
19835 terminal characteristics.
19836 (ScreenVisualBell, internal_terminal_init):
19837 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19838
19839 * termopts.h (no_redraw_on_reenter): Declare.
19840
19841 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19842 (mark_terminals, mark_ttys): Declare.
19843 (Fgarbage_collect): Call them.
19844 (mark_object): Mark buried_buffer_list.
19845
19846 * prefix-args.c: Include stdlib.h for exit.
19847
19848 * syssignal.h: Add comment.
19849
19850 * indent.c: Include stdio.h.
19851
19852 * window.h (Vinitial_window_system): Declare.
19853 (Vwindow_system): Delete declaration.
19854
19855 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19856
19857 * image.c (lookup_image): Don't initialize `c' until the xasserts
19858 have been run.
19859
19860 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19861 FRAME_FOREGROUND_PIXEL.
19862
19863 * print.c (print_preprocess): Don't lose print_depth levels while
19864 iterating.
19865
19866 * widget.c (update_from_various_frame_slots):
19867 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19868
19869 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19870 frames.
19871 (window_internal_height): Remove bogus make_number call.
19872 (init_window_once): Call make_terminal_frame with two zero parameters.
19873
19874 * fileio.c (Fread_file_name): Update comment.
19875
19876 * callint.c (Fcall_interactively):
19877 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19878 Make sure it is correctly unwound.
19879
19880 * xsmfns.c (x_session_close): New function.
19881
19882 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19883 Delete declarations.
19884
19885 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19886 (x_output): Remove background_pixel and foreground_pixel fields.
19887 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19888 (x_delete_device, x_session_close): Declare.
19889
19890 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19891 (read_filtered_event): Call `read_char' with a local
19892 `wrong_kboard_jmpbuf'.
19893
19894 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19895 Don't call single_kboard_state. Use FRAME_RIF.
19896
19897 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19898 systems.
19899
19900 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19901 (Fframe_with_environment, Fset_input_meta_mode)
19902 (Fset_quit_char): EXFUN.
19903 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19904 (init_sys_modes, reset_sys_modes): Update prototypes.
19905 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19906
19907 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19908 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19909 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19910 Delete declarations.
19911 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19912 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19913 New declarations.
19914
19915 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19916 already does that during init_display(). Call syms_of_keymap
19917 before syms_of_keyboard. Call `syms_of_terminal'.
19918 Call set_initial_environment, not set_process_environment.
19919 (shut_down_emacs): Call reset_all_sys_modes() instead of
19920 reset_sys_modes().
19921
19922 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19923 (internal_resolve_face_name, resolve_face_name_error): New functions.
19924 (resolve_face_name): Protect against loops and errors thrown by Fget.
19925 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19926 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19927
19928 * scroll.c: Replace CURTTY() with local variables throughout the
19929 file (where applicable).
19930 (calculate_scrolling, calculate_direct_scrolling)
19931 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19932 characteristics.
19933
19934 * keymap.c (Vfunction_key_map): Remove.
19935 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19936 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19937 (Vkey_translation_map): Remove.
19938 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19939 (Fdescribe_buffer_bindings)
19940 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19941 Update for terminal-local key-translation-map.
19942
19943 * Makefile.in (callproc.o): Update dependencies.
19944 (lisp, shortlisp): Add termdev.elc.
19945 (obj): Add terminal.o.
19946 (terminal.o): Add dependencies.
19947 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19948 (data.o, fns.o): Add termhooks.h dependency.
19949 (SOME_MACHINE_LISP): Add dnd.elc.
19950 (minibuf.o): Fix typo.
19951 Update dependencies.
19952
19953 * data.c (do_symval_forwarding, store_symval_forwarding)
19954 (find_symbol_value): Use the selected frame's keyboard, not
19955 current_kboard.
19956
19957 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19958 Vwindow_system.
19959
19960 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19961 Fmenu_bar_open.
19962 (syms_of_xmenu): Update defsubr.
19963 (mouse_position_for_popup, Fx_popup_menu)
19964 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19965 (set_frame_menubar, free_frame_menubar)
19966 (create_and_show_popup_menu, xmenu_show)
19967 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19968 an X frame.
19969
19970 * xselect.c (x_own_selection): Abort if not an X frame.
19971 (some_frame_on_display): Check if it is an X frame.
19972 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19973
19974 * coding.c: Include frame.h and termhooks.h.
19975 (terminal_coding, keyboard_coding): Delete.
19976 (Fset_terminal_coding_system_internal)
19977 (Fset_keyboard_coding_system_internal)
19978 (Fkeyboard_coding_system)
19979 (Fterminal_coding_system): Add a terminal parameter.
19980 Get terminal_coding from the terminal.
19981 (init_coding_once): Don't call setup_coding_system here.
19982
19983 * dispextern.h (set_scroll_region, turn_off_insert)
19984 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19985 (tty_clear_end_of_line, tty_setup_colors)
19986 (delete_tty, updating_frame)
19987 (produce_special_glyphs, produce_glyphs, write_glyphs)
19988 (insert_glyphs): Remove.
19989 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19990 (tty_turn_off_highlight, get_tty_size): Add declaration.
19991 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19992
19993 * frame.h (enum output_method): Add output_initial.
19994 (struct x_output): Delete.
19995 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19996 Access foreground_pixel and background_pixel directly from the frame.
19997 (tty_display): Delete.
19998 (struct frame): Add buried_buffer_list, foreground_pixel,
19999 background_pixel and terminal. Delete kboard.
20000 (union output_data): Add tty.
20001 (FRAME_KBOARD): Get the kboard from the terminal.
20002 (FRAME_INITIAL_P): New macro.
20003 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20004 (Qterm_environment_variable, Qdisplay_environment_variable)
20005 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20006 New declarations.
20007
20008 * termchar.h (tty_output, tty_display_info): New structures.
20009 (tty_list): Declare.
20010 (FRAME_TTY, CURTTY): New macros.
20011 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20012 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20013 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20014 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20015
20016 * callproc.c: Include frame.h and termhooks.h, for terminal
20017 parameters.
20018 (add_env): New function.
20019 (child_setup): Use it.
20020 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20021 (getenv_internal): Fix get_terminal_param call.
20022 (Fgetenv_internal, egetenv): Update doc.
20023 (syms_of_callproc): Initialize Vprocess_environment to nil.
20024 Register and initialize them. Remove obsolete defvars. Update doc
20025 strings.
20026 (child_setup): Handle Vlocal_environment_variables.
20027 (getenv_internal): Add terminal parameter.
20028 Handle Vlocal_environment_variables.
20029 (Fgetenv_internal): Add terminal parameter.
20030 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20031 environment in a frame (not terminal) parameter. Update doc strings.
20032 (set_initial_environment): Rename from set_global_environment.
20033 Store Emacs environment in initial frame parameter.
20034
20035 * xdisp.c (redisplay_internal): Update references to
20036 `previous_terminal_frame'.
20037 (display_mode_line, Fformat_mode_line): Replace calls to
20038 `push_frame_kboard' with `push_kboard'.
20039 (get_glyph_string_clip_rects): Add extra parentheses and
20040 braces to prevent compiler warnings.
20041 (calc_pixel_width_or_height): Add xassert to check that the
20042 frame is alive. Don't call `lookup_image' on a termcap frame.
20043 (message2_nolog, message3_nolog, redisplay_internal)
20044 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20045 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20046 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20047 (Fx_display_pixel_width, Fx_display_pixel_height)
20048 (Fx_display_planes, Fx_display_color_cells)
20049 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20050 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20051 (Fx_display_backing_store, Fx_display_visual_class)
20052 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20053 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20054
20055 * xfns.c (x_set_foreground_color x_set_background_color)
20056 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20057 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20058 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20059 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20060 terminal that is being deleted.
20061 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20062 frame parameter, and make sure it overrides any user-supplied setting.
20063 (Fx_close_connection, Fx_synchronize): Unify argument names with
20064 the rest of the DEFUNs.
20065
20066 * dispnew.c (Fsend_string_to_terminal): Update call to
20067 `get_tty_terminal'.
20068 (Fredraw_frame, Fsend_string_to_terminal)
20069 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20070 FRAME_TERMCAP_P and FRAME_TTY.
20071 (window_change_signal): Don't believe width/height values that are
20072 impossibly small.
20073 (Vinitial_window_system): Rename from Vwindow_system.
20074 (termscript, Wcm, rif): Delete.
20075
20076 * termhooks.h (struct terminal): New struct containing the
20077 previously global text display hooks and new members NAME,
20078 DELETED and PARAM_ALIST.
20079 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20080 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20081 (FRAME_RIF): New macros.
20082 (get_terminal_param, get_device): New declarations.
20083 (termscript): Delete declaration.
20084
20085 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20086 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20087 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20088 FRAME_FOREGROUND_PIXEL.
20089 (x_fully_uncatch_errors): Disable definition.
20090 (x_scroll_bar_expose): Fix reference to foreground pixel.
20091 (XTread_socket): Disable loop on all X displays.
20092 (x_delete_terminal): Don't set terminal->deleted and let
20093 delete_terminal delete the frames on the terminal.
20094 (x_delete_display): Doc update to reflect changes in
20095 delete_terminal.
20096 (x_display_info) <terminal>: Move member earlier in the struct.
20097 (deleting_tty): Remove old variable.
20098 (Fsuspend_tty): Call clear_tty_hooks.
20099 (Fresume_tty, init_tty): Call set_tty_hooks.
20100 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20101 errors on X frames.
20102 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20103 (handle_one_xevent): Initialize `f' to NULL.
20104 (x_delete_terminal, x_create_terminal): New functions.
20105 (XTset_terminal_modes, XTreset_terminal_modes)
20106 (XTread_socket, x_connection_closed, x_term_init)
20107 (x_term_init, x_delete_display): Add terminal parameter.
20108 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20109 X connections.
20110
20111 * frame.c: Include termchar.h.
20112 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20113 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20114 (Qdisplay_environment_variable): New vars.
20115 (Fframep): Deal with output_initial.
20116 (Fframe-live-p): Doc fix.
20117 (Fwindow-system): New function.
20118 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20119 (make_terminal_frame): Don't create frames on a terminal that is
20120 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20121 (store_frame_param): Check for found_for_frame before calling XFRAME.
20122 (Fmake_terminal_frame): Handle NULL tty names correctly.
20123 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20124 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20125 frames to refer to a deleted frame in their 'environment parameter.
20126 (Fframe_with_environment): New function.
20127 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20128 (get_future_frame_param): New function.
20129 (Fmake_terminal_frame): Use it.
20130 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20131
20132 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20133 * sysdep.c (reset_sys_modes): Update for renames.
20134
20135 * keyboard.c (tty_read_avail_input): New function.
20136 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20137 (syms_of_keyboard): Defsubr them.
20138 (Fset_input_meta_mode, Fset_quit_char): New functions.
20139 (Fset_input_mode): Split to above functions.
20140 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20141 parameter. Use it in call to `read_char'.
20142 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20143 Set wrong_kboard_jmpbuf correctly in recursive calls.
20144 Use current_kboard to access Vkeyboard_translate_table.
20145 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20146 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20147 Update longjmp invocations. Remember the original current_kboard,
20148 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20149 changes it. Comment out unnecessary calls to
20150 `record_single_kboard_state' and `any_kboard_state'.
20151 Update recursive calls.
20152 (wrong_kboard_jmpbuf): Remove global variable.
20153 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20154 Handle deleted interrupted_kboards correctly; that is a legal
20155 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20156 and read_char calls. Abort if interrupted_kboard died in read_char.
20157 (any_kboard_state, single_kboard_state)
20158 (push_frame_kboard): Remove function.
20159 (pop_kboard): Switch out of single_kboard mode if the kboard has
20160 been deleted. Remove unused variable. Help debugging by not
20161 changing current_kboard unnecessarily. Set current_kboard to the
20162 kboard of the selected frame when the stored kboard object has
20163 been deleted before pop_kboard.
20164 (temporarily_switch_to_single_kboard): Change first parameter to a
20165 frame pointer. Throw an error when caller wants to change kboards
20166 while in single_kboard mode. Don't push_kboard if we weren't in
20167 single kboard state. Don't pop_kboard if we popped into any
20168 kboard state.
20169 (restore_kboard_configuration): Abort if pop_kboard changed the
20170 kboard in single_kboard mode. Call pop_kboard only after setting
20171 up single_kboard mode.
20172 (Frecursive_edit): Switch to single_kboard mode only in nested
20173 command loops.
20174 (cmd_error, command_loop, command_loop_1, timer_check):
20175 Comment out unnecessary call to `any_kboard_state' and
20176 `record_single_kboard_state'.
20177 (delete_kboard): Exit single_kboard mode if we have just deleted
20178 that kboard. Use FRAME_KBOARD.
20179 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20180 `fatal_error_signal'.
20181 (record_single_kboard_state): Don't push_kboard if we weren't in
20182 single kboard state. Don't pop_kboard if we popped into any
20183 kboard state.
20184 (push_frame_kboard): Rename to push_kboard.
20185 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20186 (read_avail_input): Read input from all terminals.
20187 (mark_kboards): Also mark Vkeyboard_translate_table.
20188 (kbd_buffer_store_event_hold): Simplify condition.
20189 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20190 (Vkeyboard_translate_table): Move to struct kboard.
20191 (init_kboard): Initialize Vkeyboard_translate_table.
20192 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20193 Vkeyboard_translate_table. Update doc strings. Update docs of
20194 local-function-key-map and function-key-map.
20195
20196 * terminal.c: New file.
20197
20198 * term.c: Include errno.h.
20199 (Vring_bell_function, device_list, initial_device)
20200 (next_device_id, ring_bell, update_begin, update_end)
20201 (set_terminal_window, cursor_to, raw_cursor_to)
20202 (clear_to_end, clear_frame, clear_end_of_line)
20203 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20204 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20205 (syms_of_term): Move their initialization to terminal.c.
20206 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20207 (Ftty_display_color_cells)
20208 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20209 (clear_tty_hooks, set_tty_hooks)
20210 (init_tty, maybe_fatal): New functions.
20211 (Ftty_type): Return nil if terminal is not on a tty instead of
20212 throwing an error. Doc update.
20213 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20214 Doc update. Initialize new subrs and variables.
20215 (delete_tty): Use terminal->deleted.
20216 (tty_set_terminal_modes): Rename from set_terminal_modes.
20217 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20218 (set_scroll_region): Rename to `tty_set_scroll_region'.
20219 (turn_on_insert): Rename to `tty_turn_on_insert'.
20220 (turn_off_insert): Rename to `tty_turn_off_insert'.
20221 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20222 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20223 (toggle_highligh): Rename to `tty_toggle_highlight'.
20224 (background_highlight): Rename to `tty_background_highlight'.
20225 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20226 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20227 (tty_set_scroll_region, tty_background_highlight)
20228 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20229 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20230 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20231 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20232 Add static modifier.
20233 (tty_reset_terminal_modes, tty_set_terminal_window)
20234 (tty_set_scroll_region, tty_background_highlight)
20235 (tty_highlight_if_desired, tty_cursor_to)
20236 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20237 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20238 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20239 renames.
20240
20241 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20242
20243 * keyboard.c: Qrtl is new.
20244 (parse_tool_bar_item): Handle :rtl keyword.
20245 (syms_of_keyboard): Intern :rtl keyword.
20246
20247 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20248
20249 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20250 so no Lisp code is executed.
20251 (file_for_image, find_rtl_image): New functions.
20252 (xg_get_image_for_pixmap): Use file_for_image.
20253 (update_frame_tool_bar): If direction is RTL, use RTL image if
20254 defined. Use Gtk stock images if defined.
20255
20256 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20257
20258 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20259 for nonexistent or zero-width glyph in composition glyph.
20260
20261 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20262
20263 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20264
20265 * xdisp.c (Finvisible_p): New function.
20266 (syms_of_xdisp): defsubr it.
20267
20268 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
20269
20270 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20271 Doc fixes.
20272
20273 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20274
20275 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20276
20277 2007-08-24 Martin Rudalics <rudalics@gmx.at>
20278
20279 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20280 whether decoding has modified buffer contents.
20281
20282 2007-08-24 Jason Rumney <jasonr@gnu.org>
20283
20284 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20285 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20286 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20287 (init_svg_functions) [HAVE_NTGUI]: New function.
20288 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20289 (svg_load_image): Use them.
20290 (svg_load_image) [HAVE_NTGUI]: Implement background.
20291
20292 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20293
20294 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20295 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20296 (LIBX): Remove @RSVG_LIBS@.
20297 (LIBES): Add $(RSVG_LIBS).
20298
20299 * image.c (svg_load_image): Blend with specified background if exists.
20300 Use IMAGE_BACKGROUND. Add Mac OS Support.
20301
20302 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20303 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20304 Remove macros.
20305 [MAC_OSX] (socket_callback): Do nothing.
20306 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20307 ReceiveNextEvent.
20308 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20309 socket_callback.
20310 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20311
20312 2007-08-22 Glenn Morris <rgm@gnu.org>
20313
20314 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20315
20316 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20317
20318 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20319
20320 * image.c: Add support for SVG images. Some additional comments
20321 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20322 (svg_image_p): New function to test for SVG image.
20323 (svg_load): New function to load SVG image.
20324 (svg_load_image): New function, helper for svg_load.
20325 (Qsvg): New Lisp_object.
20326 (svg_keyword_index): New enum.
20327 (svg_format): New static `image_keyword' struct.
20328 (svg_type): New static `image_type' struct.
20329 (librsvg/rsvg.h): Include it.
20330
20331 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20332
20333 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20334
20335 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20336
20337 * lread.c (Qold_style_backquotes): New var.
20338 (syms_of_lread): Init and staticpro it.
20339 (load_warn_old_style_backquotes): New fun.
20340 (Fload): Use them to warn about old style backquotes.
20341 (end_of_file_error, Fload): Remove unused vars.
20342
20343 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20344
20345 * lread.c (Vold_style_backquotes): New var.
20346 (syms_of_lread): Init and export it to Elisp.
20347 (read1): Set it when we find an old-style (back)quote.
20348
20349 2007-08-22 Jason Rumney <jasonr@gnu.org>
20350
20351 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20352
20353 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20354
20355 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20356
20357 2007-08-19 Richard Stallman <rms@gnu.org>
20358
20359 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20360
20361 2007-08-19 Andreas Schwab <schwab@suse.de>
20362
20363 * alloc.c (pure): Round PURESIZE up.
20364
20365 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20366
20367 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20368 active frame.
20369
20370 2007-08-16 Richard Stallman <rms@gnu.org>
20371
20372 * eval.c (Fcommandp): Add parens to clarify.
20373
20374 * minibuf.c (Fall_completions): Use enum for type of table.
20375
20376 * emacs.c (USAGE2): Improve text.
20377
20378 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20379
20380 * term.c (tty_default_color_capabilities): Declare static
20381 variables in file scope, to avoid HPUX compiler problem.
20382
20383 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20384
20385 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20386 to gtk_toolbar_insert.
20387
20388 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20391
20392 * insdel.c (reset_var_on_error): New fun.
20393 (signal_before_change, signal_after_change):
20394 Use it to reset (after|before)-change-functions to nil in case of error.
20395 Bind inhibit-modification-hooks to t.
20396 Don't bind (after|before)-change-functions to nil while they run.
20397
20398 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20399
20400 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20401 filling pixmap with stippled background.
20402
20403 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20404
20405 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20406 Don't use invisible frame as parent window for repositioning.
20407
20408 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20409
20410 * print.c (new_backquote_output): Rename from old_backquote_output.
20411 (print): Inverse its logic (according to its name) so as to match the
20412 behavior of new_backquote_flag in lread.c.
20413
20414 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20415
20416 * gmalloc.c (posix_memalign): New function.
20417
20418 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20419 ActivateControl/DeactivateControl here.
20420 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20421 frame-notice-user-settings is non-nil.
20422 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20423 for kEventParamFMFontStyle.
20424 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20425 mac_pass_command_to_system and mac_pass_control_to_system here.
20426 (XTread_socket): Call ActivateControl/DeactivateControl here.
20427 (XTread_socket) [TARGET_API_MAC_CARBON]:
20428 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20429 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20430 for window repositioning.
20431
20432 2007-08-08 Glenn Morris <rgm@gnu.org>
20433
20434 * Replace `iff' in doc-strings and comments.
20435
20436 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
20437
20438 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20439
20440 2007-08-07 Martin Rudalics <rudalics@gmx.at>
20441
20442 * fileio.c (Finsert_file_contents): Run format-decode and
20443 after_insert_file_functions on entire buffer when REPLACE is
20444 non-nil and inhibit modification_hooks and point_motion_hooks.
20445 For consistency, run after_insert_file_functions iff something
20446 got inserted. Move signal_after_change and update_compositions
20447 after code running after_insert_file_functions. Make sure that
20448 undo_list doesn't record intermediate steps of the decoding process.
20449
20450 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20451
20452 * emacs.c (main)
20453 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20454 Call malloc_enable_thread on interactive startup.
20455
20456 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20457 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20458 [USE_PTHREAD]: Conditionalize with it.
20459 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20460 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20461 New functions.
20462
20463 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
20464
20465 * xdisp.c (redisplay_window): When restoring original buffer
20466 position, make sure it is still valid.
20467
20468 * image.c (png_load): Ignore png-supplied background color.
20469
20470 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20471
20472 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20473 Use kCFAbsoluteTimeIntervalSince1970.
20474
20475 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20476 New variable.
20477 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20478 event loop should be quit.
20479 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20480 Quit dialog event loop if quit_dialog_event_loop is set.
20481
20482 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20483 (Selection): New typedef. Use instead of ScrapRef.
20484 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20485 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20486 (mac_clear_selection): Rename from clear_scrap.
20487 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20488 scrap_has_target_type. All uses changed.
20489 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20490 (mac_selection_has_target_p): New functions.
20491 (mac_put_selection_value): Rename from put_scrap_string.
20492 (mac_get_selection_value): Rename from get_scrap_string.
20493 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20494 (put_scrap_private_timestamp, scrap_has_target_type)
20495 (get_scrap_private_timestamp): Remove functions.
20496 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20497 (x_own_selection, x_get_local_selection):
20498 Use mac_valid_selection_value_p.
20499 (x_own_selection): Don't use put_scrap_private_timestamp.
20500 Record OWNERSHIP-INFO into Vselection_alist instead.
20501 (x_get_local_selection): Don't check type if request is local.
20502 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20503 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20504
20505 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20506
20507 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20508 add comment explaining why.
20509
20510 2007-08-03 Richard Stallman <rms@gnu.org>
20511
20512 * fileio.c (Fvisited_file_modtime): Use make_time.
20513
20514 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20515
20516 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20517 build.
20518
20519 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20520
20521 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20522
20523 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20524
20525 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20526
20527 2007-07-30 Richard Stallman <rms@gnu.org>
20528
20529 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20530
20531 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20532
20533 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20534
20535 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
20536
20537 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20538 remote default-directory.
20539
20540 * buffer.c (mode-line-format): Update doc string.
20541
20542 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20543
20544 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20545 scroll bar gap.
20546 (x_scroll_bar_create): Set bar->fringe_extended_p.
20547 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20548 on frame edge. Check fringe background extension. Don't clear
20549 extended fringe background area.
20550
20551 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20552 (w32_fill_area): Enclose multiple statements with do ... while (0).
20553
20554 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20555 Extend fringe background to scroll bar gap.
20556 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20557 Set bar->fringe_extended_p.
20558 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20559 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20560 background extension. Don't clear extended fringe background area.
20561
20562 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20563 New member fringe_extended_p.
20564
20565 2007-07-25 Glenn Morris <rgm@gnu.org>
20566
20567 * Relicense all FSF files to GPLv3 or later.
20568
20569 * COPYING: Switch to GPLv3.
20570
20571 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20572
20573 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20574
20575 * data.c (Finteractive_form): Check for the presence of an
20576 `interactive-form' symbol property more thoroughly.
20577
20578 * data.c (Finteractive_form): Use an `interactive-form' property if
20579 present, analogous to the function-documentation property.
20580
20581 2007-07-24 Jason Rumney <jasonr@gnu.org>
20582
20583 * w32fns.c (x_real_positions): Get real position from OS instead of
20584 calculating it.
20585
20586 2007-07-23 Jason Rumney <jasonr@gnu.org>
20587
20588 * filelock.c (current_lock_owner): Allow for @ sign in username.
20589
20590 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
20591
20592 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20593 remote default-directory.
20594
20595 * buffer.c (mode-line-format): Describe above case in doc string.
20596
20597 2007-07-20 Eli Zaretskii <eliz@gnu.org>
20598
20599 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20600 Define if not defined.
20601
20602 2007-07-18 Jason Rumney <jasonr@gnu.org>
20603
20604 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20605
20606 2007-07-18 Richard Stallman <rms@gnu.org>
20607
20608 * data.c (Fsetq_default): Doc fix.
20609
20610 * eval.c (Fsetq): Doc fix.
20611
20612 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
20613
20614 * coding.c (Ffind_operation_coding_system):
20615 * eval.c (For, Fand): Doc fixes.
20616 Reported by Johan Bockgård.
20617
20618 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20619
20620 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20621
20622 * xterm.h: Declare x_ewmh_activate_frame.
20623
20624 * xterm.c (x_ewmh_activate_frame): New function.
20625 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20626
20627 2007-07-17 Martin Rudalics <rudalics@gmx.at>
20628
20629 * window.c (Fdisplay_buffer): If largest or LRU window is the
20630 only window, split it even if it is not eligible for splitting.
20631 This restores the original behavior broken by the 2007-07-15
20632 change.
20633
20634 2007-07-17 Glenn Morris <rgm@gnu.org>
20635
20636 * abbrev.c (abbrev_check_chars): New function.
20637 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20638 Call abbrev_check_chars to check abbrev characters are word
20639 constituents. Doc fix.
20640
20641 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * process.c (Fstart_process, Fmake_network_process)
20644 (read_process_output): Fix up last changes.
20645
20646 2007-07-16 Eli Zaretskii <eliz@gnu.org>
20647
20648 * makefile.w32-in (clean): Don't delete *~.
20649
20650 2007-07-16 Andreas Schwab <schwab@suse.de>
20651
20652 * window.c (Fdisplay_buffer): Use NILP.
20653 (Fset_window_scroll_bars): Likewise.
20654
20655 2007-07-15 Martin Rudalics <rudalics@gmx.at>
20656
20657 * window.c (window_min_size_2): New function.
20658 (window_min_size_1, size_window, Fdisplay_buffer)
20659 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20660 windows without mode- or header-lines when window-min-height is
20661 too small.
20662 (size_window): Reset nodelete_p after testing it, following an
20663 earlier note by Kim F. Storm.
20664 (display_buffer): Do not set split_height_threshold to twice the
20665 value of window_min_height to avoid changing the value of a
20666 customizable variable. Rather explicitly check whether the
20667 height of the window that shall be splitted is at least as large
20668 as split_height_threshold.
20669 (Fwindow_full_width_p): New defun.
20670 (syms_of_window): Defsubr it.
20671
20672 * window.h: Add EXFUN for Fwindow_full_width_p.
20673
20674 2007-07-14 Jason Rumney <jasonr@gnu.org>
20675
20676 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20677
20678 2007-07-14 Richard Stallman <rms@gnu.org>
20679
20680 * eval.c (maybe_call_debugger): New function.
20681 (find_handler_clause): Use maybe_call_debugger.
20682 Call it when the handler says `debug'.
20683 Eliminate DEBUGGER_VALUE_PTR.
20684 (Fsignal): Eliminate debugger_value.
20685 (Qdebug): New variable.
20686 (syms_of_eval): Initialize it.
20687
20688 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
20689
20690 * eval.c (Fprogn):
20691 * keyboard.c (Ftrack_mouse):
20692 * print.c (Fwith_output_to_temp_buffer):
20693 * window.c (Fsave_window_excursion): Doc fix.
20694
20695 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20696
20697 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20698
20699 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20700
20701 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20702 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20703 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20704 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20705 Remove unused encoding_carryover.
20706 * process.c: Adjust all functions accordingly.
20707
20708 2007-07-12 Richard Stallman <rms@gnu.org>
20709
20710 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20711
20712 2007-07-11 Jason Rumney <jasonr@gnu.org>
20713
20714 * makefile.w32-in (LIBS): Include OLE32.
20715
20716 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20717 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20718
20719 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20720
20721 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20722 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20723 from a Lisp_Object into a bare pointer.
20724 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20725 Adjust the code correspondingly.
20726
20727 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20728
20729 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20730 (term_show_mouse_face): Remove unused var `j'.
20731 (handle_one_term_event): Remove unused vars `i' and `j'.
20732 Don't cast return value of ttyname since it's not necessary.
20733
20734 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20735
20736 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20737 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20738
20739 * fns.c (map_char_table): Use an array of int for `indices' rather than
20740 an array of Lisp_Objects (which are only ever integers anyway).
20741 (Fmap_char_table): Update caller.
20742 * lisp.h: Update prototype.
20743 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20744 * fontset.c (Ffontset_info):
20745 * casetab.c (set_case_table): Update callers.
20746
20747 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20748
20749 * keymap.c (struct accessible_keymaps_data)
20750 (struct where_is_internal_data): New structures.
20751 (accessible_keymaps_1, where_is_internal_1): Use them to change
20752 interface to adhere to the one used by map_keymap.
20753 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20754 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20755
20756 * keymap.h (map_keymap_function_t): More informative prototype.
20757
20758 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20759
20760 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20761 (looking_at_1): Don't change search_regs and last_thing_searched
20762 if `inhibit-changing-match-data' is non-nil.
20763 (string_match_1, search_buffer, set_search_regs): Likewise.
20764 (syms_of_search): Add Lisp level definition for
20765 `inhibit-changing-match-data' and set it to nil.
20766 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20767 start and end of the match, instead of using values in search_regs.
20768
20769 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20770
20771 * minibuf.c (Fcompleting_read): New value `confirm-only'
20772 for `require-match'.
20773
20774 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20775
20776 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20777 part of the 2007-06-27 change to syms_of_fileio.
20778
20779 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20780
20781 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20782 Check WINDOWP before using XWINDOW. Consolidate return statements.
20783
20784 2007-06-27 Richard Stallman <rms@gnu.org>
20785
20786 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20787
20788 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
20789
20790 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20791
20792 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20793
20794 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20795 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20796 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20797 (_free_internal, memalign): Use them.
20798 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20799 Initialize to PTHREAD_MUTEX_INITIALIZER.
20800 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20801 (morecore_nolock): Rename from morecore. All uses changed.
20802 Use only nolock versions of internal allocation functions.
20803 (_malloc_internal_nolock, _realloc_internal_nolock)
20804 (_free_internal_nolock): New functions created from
20805 _malloc_internal, _realloc_internal, and _free_internal.
20806 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20807 Copy hook value to automatic variable before its use.
20808 (memalign): Copy hook value to automatic variable before its use.
20809
20810 2007-06-26 Kenichi Handa <handa@m17n.org>
20811
20812 * coding.c (Ffind_operation_coding_system): Docstring improved.
20813 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20814
20815 2007-06-25 David Kastrup <dak@gnu.org>
20816
20817 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20818 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20819 cater for additional parameter.
20820
20821 * keymap.h: Adjust number of parameters to `current-active-maps'.
20822
20823 * doc.c (Fsubstitute_command_keys): Adjust call of
20824 `current-active-maps'.
20825
20826 2007-06-25 David Kastrup <dak@gnu.org>
20827
20828 * callint.c (Fcall_interactively): Make the parsing of interactive
20829 specs somewhat more readable.
20830
20831 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20832
20833 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20834 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20835 if extended background has already been filled.
20836
20837 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20838
20839 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20840 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20841
20842 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20843 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20844 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20845 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20846 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20847 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20848 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20849 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20850 Run timers during dialog popup.
20851 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20852
20853 2007-06-21 Jason Rumney <jasonr@gnu.org>
20854
20855 * image.c (convert_mono_to_color_image): Swap fore and background.
20856
20857 2007-06-20 Jason Rumney <jasonr@gnu.org>
20858
20859 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20860 (w32_free_bdf_font): Unmap memory not handle.
20861
20862 2007-06-20 Sam Steingold <sds@gnu.org>
20863
20864 * gmalloc.c (__morecore): Fix the declaration to comply with the
20865 definition.
20866
20867 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
20868
20869 * w32term.c (w32_delete_display): Remove leftover declaration.
20870 (w32_define_cursor, w32_initialize): Make static.
20871
20872 * w32.c (_wsa_errlist): Fix typo in error message.
20873 (init_environment): Ignore any environment variable from the
20874 registry having a null value.
20875
20876 2007-06-20 Glenn Morris <rgm@gnu.org>
20877
20878 * Makefile.in (LIBGIF): Default to -lgif.
20879
20880 2007-06-17 Jason Rumney <jasonr@gnu.org>
20881
20882 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20883 unicode strings.
20884
20885 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
20886
20887 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20888 Fix typo in docstring.
20889
20890 2007-06-16 Eli Zaretskii <eliz@gnu.org>
20891
20892 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20893 and their keybindings.
20894
20895 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
20896
20897 * composite.c (update_compositions): Fix last fix.
20898
20899 2007-06-14 Jason Rumney <jasonr@gnu.org>
20900
20901 * w32.c (get_process_times_fn): New function pointer.
20902 (globals_of_w32): Intialize it if present in kernel32.dll.
20903 (w32_get_internal_run_time): New function.
20904
20905 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20906
20907 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20908
20909 * composite.c (update_compositions): Check the validness of
20910 compositions.
20911
20912 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20913
20914 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20915 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20916
20917 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20918 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20919
20920 * macgui.h (USE_MAC_TOOLBAR): New define.
20921
20922 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20923 Return immediately unless popup is activated.
20924
20925 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20926 background to scroll bar gap.
20927 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20928 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20929 scroll bars on frame edge. Check fringe background extension.
20930 Don't clear extended fringe background area.
20931 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20932 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20933 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20934 [USE_MAC_TOOLBAR]: New macros.
20935 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20936 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20937 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20938 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20939 [USE_MAC_TOOLBAR]: New functions.
20940 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20941 manually if previous repositioning has failed.
20942 (mac_handle_keyboard_event): Use precomputed event kind.
20943 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20944 as tool bar item click. Handle mouse movement over tool bar items.
20945
20946 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20947 toolbar_win_gravity.
20948 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20949 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20950 Add externs.
20951
20952 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20953 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20954
20955 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
20956
20957 * image.c (search_image_cache): Remove unused variable.
20958
20959 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
20960
20961 * xfns.c, xmenu.c: Link to xaw3d if available.
20962
20963 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20964
20965 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20966 frame_foreground and frame_background.
20967
20968 * image.c (lookup_image): Save frame foreground and background colors.
20969 (search_image_cache): Check if saved and current frame colors match.
20970
20971 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20972
20973 * regex.c (regex_compile): Remove the `regnum' counter.
20974 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20975
20976 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20977
20978 * term.c: Include intervals.h to declare Fget_text_property.
20979
20980 2007-06-10 Jason Rumney <jasonr@gnu.org>
20981
20982 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20983
20984 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
20985
20986 * callint.c (Fcall_interactively):
20987 * editfns.c (Fdelete_and_extract_region):
20988 * fileio.c (Fread_file_name):
20989 * fns.c (Fmapconcat):
20990 * keyboard.c (cmd_error_internal):
20991 * keymap.c (Fkey_description):
20992 * lread.c (openp):
20993 * minibuf.c (read_minibuf):
20994 * search.c (wordify):
20995 * sunfns.c (sel_read):
20996 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20997 * xfns.c (x_default_scroll_bar_color_parameter):
20998 * xmenu.c (menu_help_callback):
20999 * xselect.c (Fx_get_atom_name):
21000 * xterm.c (x_term_init): Use empty_unibyte_string.
21001
21002 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21003
21004 * alloc.c (init_strings): Initialize canonical empty strings.
21005 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21006 canonical empty string when the requested size is 0.
21007
21008 * emacs.c (empty_unibyte_string): Rename from empty_string.
21009 (empty_multibyte_string): New canonical empty string.
21010 (syms_of_emacs): Don't initialize empty_string.
21011
21012 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21013 string, if appropriate.
21014 (empty_unibyte_string, empty_multibyte_string): New externs.
21015 (empty_string): Remove extern.
21016
21017 * lread.c (syms_of_lread): Use empty_unibyte_string.
21018
21019 2007-06-07 Jason Rumney <jasonr@gnu.org>
21020
21021 * s/ms-w32.h: Don't define HAVE_TZNAME.
21022
21023 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21024
21025 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21026
21027 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21028
21029 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21030 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21031
21032 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21033 Don't call next handler.
21034 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21035 Remove argument. Install handler to application.
21036 (set_frame_menubar): Don't change deep_p.
21037 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21038 FRAME_OUTER_TO_INNER_DIFF_Y.
21039 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21040 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21041 [HAVE_DIALOGS]: New macros.
21042 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21043 Use them.
21044 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21045
21046 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21047 init_service_handler. All callers changed. Return OSStatus value.
21048
21049 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21050 All callers changed so as not to call SetPortWindowPort.
21051 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21052 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21053 mac_draw_string_common.
21054 (mac_draw_image_string_qd): Likewise.
21055 (mac_draw_string_common): Use them. Add INLINE.
21056 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21057 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21058 GetGlobalMouse.
21059 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21060 and FRAME_OUTER_TO_INNER_DIFF_Y.
21061 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21062 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21063 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21064 repositioning window to mac_handle_window_event.
21065 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21066 saving window location to mac_handle_window_event
21067 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21068 (install_menu_target_item_handler): Remove argument in extern.
21069 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21070 Also accept command events.
21071 (do_keystroke): New function created from XTread_socket.
21072 (init_command_handler): Remove functions.
21073 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21074 and save window location by kEventWindowShowing and kEventWindowHiding
21075 handlers here. Don't call next handler for window state change and
21076 focus events.
21077 (mac_handle_application_event, mac_handle_keyboard_event)
21078 [TARGET_API_MAC_CARBON]: New functions.
21079 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21080 kEventWindowShowing and kEventWindowHiding events. Move installation
21081 of mouse, font, text input and menu target item handlers to
21082 install_application_handler.
21083 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21084 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21085 New function.
21086 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21087 Register it.
21088 (XTread_socket) [TARGET_API_MAC_CARBON]:
21089 Consolidate SendEventToEventTarget calls.
21090 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21091 Move application activation handler to mac_handle_application_event.
21092 Move keyboard handler to mac_handle_keyboard_event.
21093 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21094 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21095 init_command_handler. Call install_application_handler.
21096
21097 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21098 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21099
21100 2007-06-07 Glenn Morris <rgm@gnu.org>
21101
21102 * emacs.c (main): Use `emacs-copyright' in --version output.
21103
21104 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21105
21106 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21107
21108 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21109
21110 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21111
21112 * macgui.h: Replace WindowPtr with WindowRef.
21113
21114 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21115 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21116 Replace ControlHandle with ControlRef.
21117 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21118
21119 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21120 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21121 Replace ControlHandle with ControlRef.
21122 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21123 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21124
21125 * macterm.h (struct scroll_bar): Rename member control_handle_low
21126 and control_handle_high to control_ref_low and control_ref_high.
21127 All uses changed.
21128 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21129 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21130 respectively. All uses changed.
21131 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21132 (install_window_handler, remove_window_handler): Replace WindowPtr
21133 with WindowRef in externs.
21134
21135 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21136
21137 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21138
21139 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21140
21141 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21142
21143 * frame.c (Fmouse_position, Fmouse_pixel_position):
21144 Condition on HAVE_GPM too.
21145
21146 * term.c (term_mouse_highlight): Remove unused variables.
21147 (Fterm_open_connection): Set gpm_zerobased to 1.
21148 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21149 Use zero based co-ordinates.
21150 (handle_one_term_event): Report a drag as mouse movement too.
21151
21152 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21153
21154 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21155
21156 * image.c (search_image_cache): New function. Require background
21157 color match if background color is unspecified in the image spec.
21158 (uncache_image, lookup_image): Use it.
21159
21160 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21161
21162 * window.c (Fshrink_window): Reflow docstring.
21163
21164 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21165
21166 * Version 22.1 released.
21167
21168 2007-06-01 Richard Stallman <rms@gnu.org>
21169
21170 * xfns.c (x_encode_text): Add GCPRO.
21171
21172 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21173
21174 * xfns.c (x_set_name_internal): Save encoded name before
21175 x_encode_text in case string data is relocated.
21176
21177 2007-05-31 Richard Stallman <rms@gnu.org>
21178
21179 * buffer.c (syms_of_buffer): Doc fix.
21180
21181 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21182
21183 * sysdep.c (init_sys_modes): Add rather than replace with
21184 O_NONBLOCK.
21185
21186 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21187 term_mouse_moveto.
21188
21189 * termhooks.h (term_mouse_moveto): New extern.
21190
21191 * term.c (mouse_face_window): Rename...
21192 (Qmouse_face_window): ...to this.
21193 (term_show_mouse_face, term_clear_mouse_face)
21194 (term_mouse_highlight): Use Qmouse_face_window.
21195 (term_mouse_moveto): New function.
21196 (term_mouse_position): Make it work.
21197 (syms_of_term): Uncomment assignment to mouse_position_hook.
21198 Staticpro Qmouse_face_window.
21199
21200 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21201
21202 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21203 around current_column call.
21204
21205 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21206
21207 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21208 * xdisp.c (next_element_from_buffer):
21209 * window.c (delete_window):
21210 * term.c (term_mouse_highlight):
21211 * msdos.c (getdefdir):
21212 * macterm.c (mac_create_bitmap_from_bitmap_data)
21213 (init_font_name_table):
21214 * fns.c (Fsxhash):
21215 * data.c (Fmake_local_variable):
21216 * ccl.c (ccl_driver): Likewise.
21217
21218 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21219
21220 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21221 Call mac_wakeup_from_rne on window size change.
21222
21223 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21224
21225 * image.c (uncache_image): Fix typo.
21226
21227 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21228
21229 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21230
21231 2007-05-22 Richard Stallman <rms@gnu.org>
21232
21233 * xterm.c (x_connection_closed): Remove NO_RETURN.
21234
21235 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21236
21237 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21238
21239 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21240
21241 * image.c (uncache_image): New function.
21242 (Fimage_refresh): New function.
21243
21244 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21245
21246 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21247
21248 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21249
21250 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21251 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21252
21253 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21254
21255 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21256 conditional on [HAVE_GPM_H].
21257
21258 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21259
21260 * syntax.c (skip_chars): Update syntax-table only after we checked that
21261 the new location is valid.
21262
21263 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21264
21265 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21266 mac_get_window_bounds.
21267
21268 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21269
21270 * Makefile.in (LIBGPM): Allow it to be set from configure.
21271 If set then link Emacs with it.
21272
21273 * config.in: Regenerate.
21274
21275 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21276 New externs.
21277
21278 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21279 Include gpm.h.
21280 (handle_one_term_event, term_gpm): New externs.
21281
21282 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21283 and allow it to be interrupted by SIGIO.
21284
21285 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21286 (wait_reading_process_output): Wait on gpm_fd too.
21287 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21288 (add_gpm_wait_descriptor_called_flag): New variable.
21289 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21290
21291 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21292 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21293 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21294 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21295 (make_lispy_event): Add case GPM_CLICK_EVENT.
21296 (read_avail_input): Handle mouse input.
21297
21298 * term.c (write_glyphs_with_face): New function.
21299 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21300 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21301 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21302 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21303 (last_mouse_x, last_mouse_y): New variables.
21304 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21305 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21306 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21307 (Fterm_close_connection): New functions.
21308 (term_init): Initialise mouse_face_window.
21309
21310 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
21311
21312 * xdisp.c (redisplay_window): If first window line is a
21313 continuation line, recompute the new window start instead of
21314 recentering.
21315
21316 2007-05-18 Glenn Morris <rgm@gnu.org>
21317
21318 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21319 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21320
21321 2007-05-17 Glenn Morris <rgm@gnu.org>
21322
21323 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21324
21325 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21326
21327 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21328 dead key repeat and up events.
21329
21330 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
21331
21332 * image.c (pbm_load): Check image size for monochrome pbm.
21333
21334 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
21335
21336 * xterm.c (XTread_socket): Revert last change.
21337
21338 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
21339
21340 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21341
21342 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21343
21344 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21345
21346 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21347 mixup (YAILOM).
21348
21349 2007-05-07 Andreas Schwab <schwab@suse.de>
21350
21351 * keymap.c (Flookup_key): Fix typo in last change.
21352
21353 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21354
21355 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21356 mapping for unibyte strings.
21357
21358 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21359
21360 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21361 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21362
21363 2007-04-29 Richard Stallman <rms@gnu.org>
21364
21365 * insdel.c (replace_range): For undo, record insertion first.
21366
21367 2007-04-29 Andreas Schwab <schwab@suse.de>
21368
21369 * lisp.h (VECSIZE): Use OFFSETOF.
21370
21371 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21372
21373 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21374 disabled lines.
21375
21376 2007-04-28 Richard Stallman <rms@gnu.org>
21377
21378 * lread.c (read_escape): In a string, \s is always space.
21379
21380 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21381
21382 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21383
21384 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21385 submenu for menu bar items.
21386
21387 See ChangeLog.10 for earlier changes.
21388
21389 ;; Local Variables:
21390 ;; coding: utf-8
21391 ;; add-log-time-zone-rule: t
21392 ;; End:
21393
21394 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
21395
21396 This file is part of GNU Emacs.
21397
21398 GNU Emacs is free software: you can redistribute it and/or modify
21399 it under the terms of the GNU General Public License as published by
21400 the Free Software Foundation, either version 3 of the License, or
21401 (at your option) any later version.
21402
21403 GNU Emacs is distributed in the hope that it will be useful,
21404 but WITHOUT ANY WARRANTY; without even the implied warranty of
21405 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21406 GNU General Public License for more details.
21407
21408 You should have received a copy of the GNU General Public License
21409 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21410
21411 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40